diff --git a/404.html b/404.html index ab3b33e..9c48e8e 100644 --- a/404.html +++ b/404.html @@ -1,16 +1,18 @@ - - - - ngx-filesaver | Simple file save with FileSaver.js - - - + + + + + ngx-filesaver | Simple file save with FileSaver.js + + + + + + + Fork me on GitHub + +
Loading...
+ - - - Fork me on GitHub - -
Loading...
- diff --git a/index.html b/index.html index ab3b33e..9c48e8e 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,18 @@ - - - - ngx-filesaver | Simple file save with FileSaver.js - - - + + + + + ngx-filesaver | Simple file save with FileSaver.js + + + + + + + Fork me on GitHub + +
Loading...
+ - - - Fork me on GitHub - -
Loading...
- diff --git a/main-OEQXZ4P2.js b/main-OEQXZ4P2.js deleted file mode 100644 index 585df40..0000000 --- a/main-OEQXZ4P2.js +++ /dev/null @@ -1,8 +0,0 @@ -var ll=Object.create;var xr=Object.defineProperty,dl=Object.defineProperties,fl=Object.getOwnPropertyDescriptor,hl=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertyNames,Ki=Object.getOwnPropertySymbols,gl=Object.getPrototypeOf,Xi=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable;var Ji=(e,t,n)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||={})Xi.call(t,n)&&Ji(e,n,t[n]);if(Ki)for(var n of Ki(t))ml.call(t,n)&&Ji(e,n,t[n]);return e},B=(e,t)=>dl(e,hl(t));var yl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pl(t))!Xi.call(e,o)&&o!==n&&xr(e,o,{get:()=>t[o],enumerable:!(r=fl(t,o))||r.enumerable});return e};var Dl=(e,t,n)=>(n=e!=null?ll(gl(e)):{},vl(t||!e||!e.__esModule?xr(n,"default",{value:e,enumerable:!0}):n,e));var Ar=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var ol=yl((Zi,Yi)=>{"use strict";(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Zi<"u"?t():(t(),e.FileSaver={})})(Zi,function(){"use strict";function e(a,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function t(a,c,u){var l=new XMLHttpRequest;l.open("GET",a),l.responseType="blob",l.onload=function(){s(l.response,c,u)},l.onerror=function(){console.error("could not download file")},l.send()}function n(a){var c=new XMLHttpRequest;c.open("HEAD",a,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function r(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(a,c,u){var l=o.URL||o.webkitURL,d=document.createElement("a");c=c||a.name||"download",d.download=c,d.rel="noopener",typeof a=="string"?(d.href=a,d.origin===location.origin?r(d):n(d.href)?t(a,c,u):r(d,d.target="_blank")):(d.href=l.createObjectURL(a),setTimeout(function(){l.revokeObjectURL(d.href)},4e4),setTimeout(function(){r(d)},0))}:"msSaveOrOpenBlob"in navigator?function(a,c,u){if(c=c||a.name||"download",typeof a!="string")navigator.msSaveOrOpenBlob(e(a,u),c);else if(n(a))t(a,c,u);else{var l=document.createElement("a");l.href=a,l.target="_blank",setTimeout(function(){r(l)})}}:function(a,c,u,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof a=="string")return t(a,c,u);var d=a.type==="application/octet-stream",h=/constructor/i.test(o.HTMLElement)||o.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||d&&h||i)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var g=p.result;g=f?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=g:location=g,l=null},p.readAsDataURL(a)}else{var E=o.URL||o.webkitURL,m=E.createObjectURL(a);l?l.location=m:location.href=m,l=null,setTimeout(function(){E.revokeObjectURL(m)},4e4)}});o.saveAs=s.saveAs=s,typeof Yi<"u"&&(Yi.exports=s)})});var Or=null;var Nr=1,Fr=Symbol("SIGNAL");function T(e){let t=Or;return Or=e,t}function es(){return Or}var Rr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function El(e){if(!(jr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Nr)){if(!e.producerMustRecompute(e)&&!kr(e)){e.dirty=!1,e.lastCleanEpoch=Nr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Nr}}function Pr(e){return e&&(e.nextProducerIndex=0),T(e)}function ts(e,t){if(T(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(jr(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function kr(e){Br(e);for(let t=0;t0}function Br(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function wl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Cl(e){return e.producerNode!==void 0}function Il(){throw new Error}var bl=Il;function ns(e){bl=e}function y(e){return typeof e=="function"}function fn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var hn=fn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Nt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Z=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(y(r))try{r()}catch(i){t=i instanceof hn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{rs(i)}catch(s){t=t??[],s instanceof hn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new hn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)rs(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Nt(n,t)}remove(t){let{_finalizers:n}=this;n&&Nt(n,t),t instanceof e&&t._removeParent(this)}};Z.EMPTY=(()=>{let e=new Z;return e.closed=!0,e})();var $r=Z.EMPTY;function pn(e){return e instanceof Z||e&&"closed"in e&&y(e.remove)&&y(e.add)&&y(e.unsubscribe)}function rs(e){y(e)?e():e.unsubscribe()}var ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xe={setTimeout(e,t,...n){let{delegate:r}=Xe;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xe;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function gn(e){Xe.setTimeout(()=>{let{onUnhandledError:t}=ae;if(t)t(e);else throw e})}function Ot(){}var os=Ur("C",void 0,void 0);function is(e){return Ur("E",void 0,e)}function ss(e){return Ur("N",e,void 0)}function Ur(e,t,n){return{kind:e,value:t,error:n}}var Le=null;function et(e){if(ae.useDeprecatedSynchronousErrorHandling){let t=!Le;if(t&&(Le={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Le;if(Le=null,n)throw r}}else e()}function as(e){ae.useDeprecatedSynchronousErrorHandling&&Le&&(Le.errorThrown=!0,Le.error=e)}var Ve=class extends Z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,pn(t)&&t.add(this)):this.destination=Tl}static create(t,n,r){return new tt(t,n,r)}next(t){this.isStopped?Gr(ss(t),this):this._next(t)}error(t){this.isStopped?Gr(is(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Gr(os,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()}}},_l=Function.prototype.bind;function Hr(e,t){return _l.call(e,t)}var zr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){mn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){mn(r)}else mn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){mn(n)}}},tt=class extends Ve{constructor(t,n,r){super();let o;if(y(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ae.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Hr(t.next,i),error:t.error&&Hr(t.error,i),complete:t.complete&&Hr(t.complete,i)}):o=t}this.destination=new zr(o)}};function mn(e){ae.useDeprecatedSynchronousErrorHandling?as(e):gn(e)}function Ml(e){throw e}function Gr(e,t){let{onStoppedNotification:n}=ae;n&&Xe.setTimeout(()=>n(e,t))}var Tl={closed:!0,next:Ot,error:Ml,complete:Ot};var nt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function cs(e){return e}function us(e){return e.length===0?cs:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var O=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=xl(n)?n:new tt(n,r,o);return et(()=>{let{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 r=ls(r),new r((o,i)=>{let s=new tt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[nt](){return this}pipe(...n){return us(n)(this)}toPromise(n){return n=ls(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ls(e){var t;return(t=e??ae.Promise)!==null&&t!==void 0?t:Promise}function Sl(e){return e&&y(e.next)&&y(e.error)&&y(e.complete)}function xl(e){return e&&e instanceof Ve||Sl(e)&&pn(e)}function Al(e){return y(e?.lift)}function z(e){return t=>{if(Al(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")}}function W(e,t,n,r,o){return new Wr(e,t,n,r,o)}var Wr=class extends Ve{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var ds=fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new yn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ds}next(n){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?$r:(this.currentObservers=null,i.push(n),new Z(()=>{this.currentObservers=null,Nt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new O;return n.source=this,n}}return e.create=(t,n)=>new yn(t,n),e})(),yn=class extends ee{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:$r}};var Ft=class extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function fs(e){return e&&y(e.schedule)}function hs(e){return e[e.length-1]}function ps(e){return y(hs(e))?e.pop():void 0}function gs(e){return fs(hs(e))?e.pop():void 0}function ys(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function ms(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function je(e){return this instanceof je?(this.v=e,this):new je(e)}function vs(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){r[h]&&(o[h]=function(f){return new Promise(function(p,E){i.push([h,f,p,E])>1||a(h,f)})})}function a(h,f){try{c(r[h](f))}catch(p){d(i[0][3],p)}}function c(h){h.value instanceof je?Promise.resolve(h.value.v).then(u,l):d(i[0][2],h)}function u(h){a("next",h)}function l(h){a("throw",h)}function d(h,f){h(f),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ds(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ms=="function"?ms(e):e[Symbol.iterator](),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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var rt=e=>e&&typeof e.length=="number"&&typeof e!="function";function vn(e){return y(e?.then)}function Dn(e){return y(e[nt])}function En(e){return Symbol.asyncIterator&&y(e?.[Symbol.asyncIterator])}function wn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Nl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cn=Nl();function In(e){return y(e?.[Cn])}function bn(e){return vs(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield je(n.read());if(o)return yield je(void 0);yield yield je(r)}}finally{n.releaseLock()}})}function _n(e){return y(e?.getReader)}function $(e){if(e instanceof O)return e;if(e!=null){if(Dn(e))return Ol(e);if(rt(e))return Fl(e);if(vn(e))return Rl(e);if(En(e))return Es(e);if(In(e))return Pl(e);if(_n(e))return kl(e)}throw wn(e)}function Ol(e){return new O(t=>{let n=e[nt]();if(y(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Fl(e){return new O(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,gn)})}function Pl(e){return new O(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Es(e){return new O(t=>{Ll(e,t).catch(n=>t.error(n))})}function kl(e){return Es(bn(e))}function Ll(e,t){var n,r,o,i;return ys(this,void 0,void 0,function*(){try{for(n=Ds(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),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()})}function te(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Mn(e,t=0){return z((n,r)=>{n.subscribe(W(r,o=>te(r,e,()=>r.next(o),t),()=>te(r,e,()=>r.complete(),t),o=>te(r,e,()=>r.error(o),t)))})}function Tn(e,t=0){return z((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ws(e,t){return $(e).pipe(Tn(t),Mn(t))}function Cs(e,t){return $(e).pipe(Tn(t),Mn(t))}function Is(e,t){return new O(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function bs(e,t){return new O(n=>{let r;return te(n,t,()=>{r=e[Cn](),te(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>y(r?.return)&&r.return()})}function Sn(e,t){if(!e)throw new Error("Iterable cannot be null");return new O(n=>{te(n,t,()=>{let r=e[Symbol.asyncIterator]();te(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _s(e,t){return Sn(bn(e),t)}function Ms(e,t){if(e!=null){if(Dn(e))return ws(e,t);if(rt(e))return Is(e,t);if(vn(e))return Cs(e,t);if(En(e))return Sn(e,t);if(In(e))return bs(e,t);if(_n(e))return _s(e,t)}throw wn(e)}function Be(e,t){return t?Ms(e,t):$(e)}function xn(...e){let t=gs(e);return Be(e,t)}function Q(e,t){return z((n,r)=>{let o=0;n.subscribe(W(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Vl}=Array;function jl(e,t){return Vl(t)?e(...t):e(t)}function An(e){return Q(t=>jl(e,t))}var{isArray:Bl}=Array,{getPrototypeOf:$l,prototype:Ul,keys:Hl}=Object;function Ts(e){if(e.length===1){let t=e[0];if(Bl(t))return{args:t,keys:null};if(Gl(t)){let n=Hl(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Gl(e){return e&&typeof e=="object"&&$l(e)===Ul}function Ss(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function xs(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=E=>u{i&&t.next(E),u++;let m=!1;$(n(E,l++)).subscribe(W(t,g=>{o?.(g),i?f(g):t.next(g)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;c.length&&up(g)):p(g)}h()}catch(g){t.error(g)}}))};return e.subscribe(W(t,f,()=>{d=!0,h()})),()=>{a?.()}}function ot(e,t,n=1/0){return y(t)?ot((r,o)=>Q((i,s)=>t(r,i,o,s))($(e(r,o))),n):(typeof t=="number"&&(n=t),z((r,o)=>xs(r,o,e,n)))}function qr(...e){let t=ps(e),{args:n,keys:r}=Ts(e),o=new O(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ss(r,a):a),i.complete())}))}});return t?o.pipe(An(t)):o}var zl=["addListener","removeListener"],Wl=["addEventListener","removeEventListener"],ql=["on","off"];function Rt(e,t,n,r){if(y(n)&&(r=n,n=void 0),r)return Rt(e,t,n).pipe(An(r));let[o,i]=Ql(e)?Wl.map(s=>a=>e[s](t,a,n)):Zl(e)?zl.map(As(e,t)):Yl(e)?ql.map(As(e,t)):[];if(!o&&rt(e))return ot(s=>Rt(s,t,n))($(e));if(!o)throw new TypeError("Invalid event target");return new O(s=>{let a=(...c)=>s.next(1i(a)})}function As(e,t){return n=>r=>e[n](t,r)}function Zl(e){return y(e.addListener)&&y(e.removeListener)}function Yl(e){return y(e.on)&&y(e.off)}function Ql(e){return y(e.addEventListener)&&y(e.removeEventListener)}function it(e,t){return z((n,r)=>{let o=0;n.subscribe(W(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Zr(e,t){return y(t)?ot(e,t,1):ot(e,1)}function Yr(e){return z((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Qr(e,t){return z((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(W(r,c=>{o?.unsubscribe();let u=0,l=i++;$(e(c,l)).subscribe(o=W(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Nn(e){return z((t,n)=>{$(e).subscribe(W(n,()=>n.complete(),Ot)),!n.closed&&t.subscribe(n)})}var Kl="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(Jn(t,n)),this.code=t}};function Jn(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Xn(e){return{toString:e}.toString()}var lo=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function Jl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Ns(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Xl=A({__forward_ref__:A});function It(e){return e.__forward_ref__=It,e.toString=function(){return oe(this())},e}function Y(e){return ha(e)?e():e}function ha(e){return typeof e=="function"&&e.hasOwnProperty(Xl)&&e.__forward_ref__===It}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yo(e){return Os(e,pa)||Os(e,ga)}function Os(e,t){return e.hasOwnProperty(t)?e[t]:null}function ed(e){let t=e&&(e[pa]||e[ga]);return t||null}function Fs(e){return e&&(e.hasOwnProperty(Rs)||e.hasOwnProperty(td))?e[Rs]:null}var pa=A({\u0275prov:A}),Rs=A({\u0275inj:A}),ga=A({ngInjectableDef:A}),td=A({ngInjectorDef:A}),D=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ma(e){return e&&!!e.\u0275providers}var nd=A({\u0275cmp:A}),rd=A({\u0275dir:A}),od=A({\u0275pipe:A});var Vn=A({\u0275fac:A}),Pt=A({__NG_ELEMENT_ID__:A}),Ps=A({__NG_ENV_ID__:A});function id(e){return typeof e=="string"?e:e==null?"":String(e)}function sd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():id(e)}function ad(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function Qo(e,t){throw new b(-201,!1)}var C=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(C||{}),fo;function ya(){return fo}function ne(e){let t=fo;return fo=e,t}function va(e,t,n){let r=Yo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&C.Optional)return null;if(t!==void 0)return t;Qo(e,"Injector")}var cd={},kt=cd,ud="__NG_DI_FLAG__",jn="ngTempTokenPath",ld="ngTokenPath",dd=/\n/gm,fd="\u0275",ks="__source",ut;function hd(){return ut}function _e(e){let t=ut;return ut=e,t}function pd(e,t=C.Default){if(ut===void 0)throw new b(-203,!1);return ut===null?va(e,void 0,t):ut.get(e,t&C.Optional?null:void 0,t)}function I(e,t=C.Default){return(ya()||pd)(Y(e),t)}function w(e,t=C.Default){return I(e,er(t))}function er(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ho(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(dd,` - `)}`}function dt(e,t){let n=e.hasOwnProperty(Vn);return n?e[Vn]:null}function Ko(e,t){e.forEach(n=>Array.isArray(n)?Ko(n,t):t(n))}function Da(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Dd(e,t,n){let r=Wt(e,t);return r>=0?e[r|1]=n:(r=~r,vd(e,r,t,n)),r}function Kr(e,t){let n=Wt(e,t);if(n>=0)return e[n|1]}function Wt(e,t){return Ed(e,t,1)}function Ed(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ce(r))return!1;s=!0}}}}return ce(r)||s}function ce(e){return(e&1)===0}function Td(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ce(s)&&(t+=Vs(i,o),o=""),r=s,i=i||!ce(r);n++}return o!==""&&(t+=Vs(i,o)),t}function Od(e){return e.map(Nd).join(",")}function Fd(e){let t=[],n=[],r=1,o=2;for(;r{let t=Ta(e),n=B(P({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ca.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||fe.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});Sa(n);let r=e.dependencies;return n.directiveDefs=Bs(r,!1),n.pipeDefs=Bs(r,!0),n.id=Ld(n),n})}function Rd(e){return tr(e)||_a(e)}function Pd(e){return e!==null}function Ze(e){return Xn(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function js(e,t){if(e==null)return ft;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=ht.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ht.None?[r,a]:r,t[i]=s):n[i]=r}return n}function he(e){return Xn(()=>{let t=Ta(e);return Sa(t),t})}function tr(e){return e[nd]||null}function _a(e){return e[rd]||null}function Ma(e){return e[od]||null}function kd(e){let t=tr(e)||_a(e)||Ma(e);return t!==null?t.standalone:!1}function Ta(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ft,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:js(e.inputs,t),outputs:js(e.outputs),debugInfo:null}}function Sa(e){e.features?.forEach(t=>t(e))}function Bs(e,t){if(!e)return null;let n=t?Ma:Rd;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Pd)}function Ld(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Xo(e){return{\u0275providers:e}}function Vd(...e){return{\u0275providers:xa(!0,e),\u0275fromNgModule:!0}}function xa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ko(t,s=>{let a=s;go(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Aa(o,i),n}function Aa(e,t){for(let n=0;n{t(i,r)})}}function go(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Fs(e),s=!i&&tr(e);if(!i&&!s){let c=e.ngModule;if(i=Fs(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)go(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ko(i.imports,l=>{go(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Aa(u,t)}if(!a){let u=dt(o)||(()=>new o);t({provide:o,useFactory:u,deps:re},o),t({provide:wa,useValue:o,multi:!0},o),t({provide:Lt,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ei(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ei(e,t){for(let n of e)ma(n)&&(n=n.\u0275providers),Array.isArray(n)?ei(n,t):t(n)}var jd=A({provide:String,useValue:A});function Na(e){return e!==null&&typeof e=="object"&&jd in e}function Bd(e){return!!(e&&e.useExisting)}function $d(e){return!!(e&&e.useFactory)}function pt(e){return typeof e=="function"}function Ud(e){return!!e.useClass}var nr=new D(""),Rn={},Hd={},Jr;function ti(){return Jr===void 0&&(Jr=new Bn),Jr}var ye=class{},jt=class extends ye{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yo(t,s=>this.processProvider(s)),this.records.set(Ea,st(void 0,this)),o.has("environment")&&this.records.set(ye,st(void 0,this));let i=this.records.get(nr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(wa,re,C.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=_e(this),r=ne(void 0),o;try{return t()}finally{_e(n),ne(r)}}get(t,n=kt,r=C.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ps))return t[Ps](this);r=er(r);let o,i=_e(this),s=ne(void 0);try{if(!(r&C.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Zd(t)&&Yo(t);u&&this.injectableDefInScope(u)?c=st(mo(t),Rn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&C.Self?ti():this.parent;return n=r&C.Optional&&n===kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[jn]=a[jn]||[]).unshift(oe(t)),i)throw a;return md(a,t,"R3InjectorError",this.source)}else throw a}finally{ne(s),_e(i)}}resolveInjectorInitializers(){let t=T(null),n=_e(this),r=ne(void 0),o;try{let i=this.get(Lt,re,C.Self);for(let s of i)s()}finally{_e(n),ne(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Y(t);let n=pt(t)?t:Y(t&&t.provide),r=zd(t);if(!pt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=st(void 0,Rn,!0),o.factory=()=>ho(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=T(null);try{return n.value===Rn&&(n.value=Hd,n.value=n.factory()),typeof n.value=="object"&&n.value&&qd(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function mo(e){let t=Yo(e),n=t!==null?t.factory:dt(e);if(n!==null)return n;if(e instanceof D)throw new b(204,!1);if(e instanceof Function)return Gd(e);throw new b(204,!1)}function Gd(e){if(e.length>0)throw new b(204,!1);let n=ed(e);return n!==null?()=>n.factory(e):()=>new e}function zd(e){if(Na(e))return st(void 0,e.useValue);{let t=Oa(e);return st(t,Rn)}}function Oa(e,t,n){let r;if(pt(e)){let o=Y(e);return dt(o)||mo(o)}else if(Na(e))r=()=>Y(e.useValue);else if($d(e))r=()=>e.useFactory(...ho(e.deps||[]));else if(Bd(e))r=()=>I(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(Wd(e))r=()=>new o(...ho(e.deps));else return dt(o)||mo(o)}return r}function st(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Wd(e){return!!e.deps}function qd(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Zd(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function yo(e,t){for(let n of e)Array.isArray(n)?yo(n,t):n&&ma(n)?yo(n.\u0275providers,t):t(n)}function Fa(e,t){e instanceof jt&&e.assertNotDestroyed();let n,r=_e(e),o=ne(void 0);try{return t()}finally{_e(r),ne(o)}}function Yd(){return ya()!==void 0||hd()!=null}var Ae=0,_=1,v=2,ue=3,Me=4,Ne=5,vo=6,$n=7,ve=8,gt=9,De=10,K=11,Bt=12,$s=13,qt=14,Ee=15,Un=16,at=17,ni=18,rr=19,Ra=20,Te=21,Xr=22,ie=23,He=25,Pa=1;var Do=7,Qd=8,Hn=9,Ue=10,Gn=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Gn||{});function Se(e){return Array.isArray(e)&&typeof e[Pa]=="object"}function bt(e){return Array.isArray(e)&&e[Pa]===!0}function ka(e){return(e.flags&4)!==0}function or(e){return e.componentOffset>-1}function La(e){return(e.flags&1)===1}function xe(e){return!!e.template}function Eo(e){return(e[v]&512)!==0}var wo=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Va(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ir(){return ja}function ja(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jd),Kd}ir.ngInherit=!0;function Kd(){let e=$a(this),t=e?.current;if(t){let n=e.previous;if(n===ft)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Jd(e,t,n,r,o){let i=this.declaredInputs[r],s=$a(e)||Xd(e,{previous:ft,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new wo(u&&u.currentValue,n,c===ft),Va(e,t,o,n)}var Ba="__ngSimpleChanges__";function $a(e){return e[Ba]||null}function Xd(e,t){return e[Ba]=t}var Us=null;var le=function(e,t,n){Us?.(e,t,n)},ef="svg",tf="math";function Ye(e){for(;Array.isArray(e);)e=e[Ae];return e}function nf(e,t){return Ye(t[e])}function Ie(e,t){return Ye(t[e.index])}function Ua(e,t){return e.data[t]}function Oe(e,t){let n=t[e];return Se(n)?n:n[Ae]}function ri(e){return(e[v]&128)===128}function Hs(e,t){return t==null?null:e[t]}function Ha(e){e[at]=0}function Ga(e){e[v]&1024||(e[v]|=1024,ri(e)&&sr(e))}function $t(e){return!!(e[v]&9216||e[ie]?.dirty)}function Gs(e){e[De].changeDetectionScheduler?.notify(7),e[v]&64&&(e[v]|=1024),$t(e)&&sr(e)}function sr(e){e[De].changeDetectionScheduler?.notify(0);let t=mt(e);for(;t!==null&&!(t[v]&8192||(t[v]|=8192,!ri(t)));)t=mt(t)}function za(e,t){if((e[v]&256)===256)throw new b(911,!1);e[Te]===null&&(e[Te]=[]),e[Te].push(t)}function rf(e,t){if(e[Te]===null)return;let n=e[Te].indexOf(t);n!==-1&&e[Te].splice(n,1)}function mt(e){let t=e[ue];return bt(t)?t[ue]:t}var M={lFrame:ec(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Wa=!1;function of(){return M.lFrame.elementDepthCount}function sf(){M.lFrame.elementDepthCount++}function af(){M.lFrame.elementDepthCount--}function qa(){return M.bindingsEnabled}function cf(){return M.skipHydrationRootTNode!==null}function uf(e){return M.skipHydrationRootTNode===e}function lf(){M.skipHydrationRootTNode=null}function U(){return M.lFrame.lView}function pe(){return M.lFrame.tView}function se(){let e=Za();for(;e!==null&&e.type===64;)e=e.parent;return e}function Za(){return M.lFrame.currentTNode}function df(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function ar(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Ya(){return M.lFrame.isParent}function ff(){M.lFrame.isParent=!1}function Qa(){return Wa}function zs(e){Wa=e}function hf(e){return M.lFrame.bindingIndex=e}function pf(){return M.lFrame.bindingIndex++}function gf(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mf(){return M.lFrame.inI18n}function yf(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,Co(t)}function vf(){return M.lFrame.currentDirectiveIndex}function Co(e){M.lFrame.currentDirectiveIndex=e}function Df(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ka(e){M.lFrame.currentQueryIndex=e}function Ef(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Ne]:null}function Ja(e,t,n){if(n&C.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&C.Host);)if(o=Ef(i),o===null||(i=i[qt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Xa();return r.currentTNode=t,r.lView=e,!0}function oi(e){let t=Xa(),n=e[_];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xa(){let e=M.lFrame,t=e===null?null:e.child;return t===null?ec(e):t}function ec(e){let 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 e!==null&&(e.child=t),t}function tc(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var nc=tc;function ii(){let e=tc();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 Zt(){return M.lFrame.selectedIndex}function Ge(e){M.lFrame.selectedIndex=e}function wf(){let e=M.lFrame;return Ua(e.tView,e.selectedIndex)}function Cf(){return M.lFrame.currentNamespace}var rc=!0;function oc(){return rc}function ic(e){rc=e}function If(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ja(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function sc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[at]+=65536),(a>14>16&&(e[v]&3)===t&&(e[v]+=16384,Ws(a,i)):Ws(a,i)}var lt=-1,ze=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function _f(e){return e instanceof ze}function Mf(e){return(e.flags&8)!==0}function Tf(e){return(e.flags&16)!==0}function Sf(e){return e!==lt}function Io(e){return e&32767}function xf(e){return e>>16}function bo(e,t){let n=xf(e),r=t;for(;n>0;)r=r[qt],n--;return r}var _o=!0;function qs(e){let t=_o;return _o=e,t}var Af=256,cc=Af-1,uc=5,Nf=0,de={};function Of(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pt)&&(r=n[Pt]),r==null&&(r=n[Pt]=Nf++);let o=r&cc,i=1<>uc)]|=i}function zn(e,t){let n=lc(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,to(r.data,e),to(t,null),to(r.blueprint,null));let o=dc(e,t),i=e.injectorIndex;if(Sf(o)){let s=Io(o),a=bo(o,t),c=a[_].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function to(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function dc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=mc(o),r===null)return lt;if(n++,o=o[qt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return lt}function Mo(e,t,n){Of(e,t,n)}function fc(e,t,n){if(n&C.Optional||e!==void 0)return e;Qo(t,"NodeInjector")}function hc(e,t,n,r){if(n&C.Optional&&r===void 0&&(r=null),!(n&(C.Self|C.Host))){let o=e[gt],i=ne(void 0);try{return o?o.get(t,r,n&C.Optional):va(t,r,n&C.Optional)}finally{ne(i)}}return fc(r,t,n)}function pc(e,t,n,r=C.Default,o){if(e!==null){if(t[v]&2048&&!(r&C.Self)){let s=Lf(e,t,n,r,de);if(s!==de)return s}let i=gc(e,t,n,r,de);if(i!==de)return i}return hc(t,n,r,o)}function gc(e,t,n,r,o){let i=Pf(n);if(typeof i=="function"){if(!Ja(t,e,r))return r&C.Host?fc(o,n,r):hc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&C.Optional))Qo(n);else return s}finally{nc()}}else if(typeof i=="number"){let s=null,a=lc(e,t),c=lt,u=r&C.Host?t[Ee][Ne]:null;for((a===-1||r&C.SkipSelf)&&(c=a===-1?dc(e,t):t[a+8],c===lt||!Ys(r,!1)?a=-1:(s=t[_],a=Io(c),t=bo(c,t)));a!==-1;){let l=t[_];if(Zs(i,a,l.data)){let d=Ff(a,t,n,s,r,u);if(d!==de)return d}c=t[a+8],c!==lt&&Ys(r,t[_].data[a+8]===u)&&Zs(i,a,t)?(s=l,a=Io(c),t=bo(c,t)):a=-1}}return o}function Ff(e,t,n,r,o,i){let s=t[_],a=s.data[e+8],c=r==null?or(a)&&_o:r!=s&&(a.type&3)!==0,u=o&C.Host&&i===a,l=Rf(a,s,n,c,u);return l!==null?yt(t,s,l,a):de}function Rf(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&p.type===n)return f}if(o){let f=s[c];if(f&&xe(f)&&f.type===n)return c}return null}function yt(e,t,n,r){let o=e[n],i=t.data;if(_f(o)){let s=o;s.resolving&&ad(sd(i[n]));let a=qs(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ne(s.injectImpl):null,l=Ja(e,r,C.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&If(n,i[n],t)}finally{u!==null&&ne(u),qs(a),s.resolving=!1,nc()}}return o}function Pf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Pt)?e[Pt]:void 0;return typeof t=="number"?t>=0?t&cc:kf:t}function Zs(e,t,n){let r=1<>uc)]&r)}function Ys(e,t){return!(e&C.Self)&&!(e&C.Host&&t)}var Wn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return pc(this._tNode,this._lView,t,er(r),n)}};function kf(){return new Wn(se(),U())}function si(e){return Xn(()=>{let t=e.prototype.constructor,n=t[Vn]||To(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Vn]||To(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function To(e){return ha(e)?()=>{let t=To(Y(e));return t&&t()}:dt(e)}function Lf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[v]&2048&&!(s[v]&512);){let a=gc(i,s,n,r|C.Self,de);if(a!==de)return a;let c=i.parent;if(!c){let u=s[Ra];if(u){let l=u.get(n,de,r);if(l!==de)return l}c=mc(s),s=s[qt]}i=c}return o}function mc(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Ne]:null}function Qs(e,t=null,n=null,r){let o=Vf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Vf(e,t=null,n=null,r,o=new Set){let i=[n||re,Vd(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new jt(i,t||ti(),r||null,o)}var $e=class $e{static create(t,n){if(Array.isArray(t))return Qs({name:""},n,t,"");{let r=t.name??"";return Qs({name:r},t.parent,t.providers,r)}}};$e.THROW_IF_NOT_FOUND=kt,$e.NULL=new Bn,$e.\u0275prov=S({token:$e,providedIn:"any",factory:()=>I(Ea)}),$e.__NG_ELEMENT_ID__=-1;var vt=$e;var jf=new D("");jf.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&C.Optional)return null;throw new b(204,!1)};var Bf="ngOriginalError";function no(e){return e[Bf]}var we=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&no(t);for(;n&&no(n);)n=no(n);return n||null}},yc=new D("",{providedIn:"root",factory:()=>w(we).handleError.bind(void 0)}),vc=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=$f,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),So=class extends vc{constructor(t){super(),this._lView=t}onDestroy(t){return za(this._lView,t),()=>rf(this._lView,t)}};function $f(){return new So(U())}function Uf(){return Dc(se(),U())}function Dc(e,t){return new Fe(Ie(e,t))}var Fe=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Uf;let e=t;return e})();var _t=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ft(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();var xo=class extends ee{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Yd()&&(this.destroyRef=w(vc,{optional:!0})??void 0,this.pendingTasks=w(_t,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},q=xo;function Hf(e){return(e.flags&128)===128}var Ec=new Map,Gf=0;function zf(){return Gf++}function Wf(e){Ec.set(e[rr],e)}function qf(e){Ec.delete(e[rr])}var Ks="__ngContext__";function Dt(e,t){Se(t)?(e[Ks]=t[rr],Wf(t)):e[Ks]=t}function wc(e){return Ic(e[Bt])}function Cc(e){return Ic(e[Me])}function Ic(e){for(;e!==null&&!bt(e);)e=e[Me];return e}var Ao;function bc(e){Ao=e}function Zf(){if(Ao!==void 0)return Ao;if(typeof document<"u")return document;throw new b(210,!1)}var ai=new D("",{providedIn:"root",factory:()=>Yf}),Yf="ng",ci=new D(""),Re=new D("",{providedIn:"platform",factory:()=>"unknown"});var ui=new D("",{providedIn:"root",factory:()=>Zf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qf="h",Kf="b";var Jf=()=>null;function li(e,t,n=!1){return Jf(e,t,n)}var _c=!1,Xf=new D("",{providedIn:"root",factory:()=>_c});var No=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Kl})`}};function di(e){return e instanceof No?e.changingThisBreaksApplicationSecurity:e}var Ce=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ce||{}),eh;function Mc(e,t){return eh(e,t)}function ct(e,t,n,r,o){if(r!=null){let i,s=!1;bt(r)?i=r:Se(r)&&(s=!0,r=r[Ae]);let a=Ye(r);e===0&&n!==null?o==null?xc(t,n,a):Oo(t,n,a,o||null,!0):e===1&&n!==null?Oo(t,n,a,o||null,!0):e===2?yh(t,a,s):e===3&&t.destroyNode(a),i!=null&&Dh(t,e,i,n,o)}}function th(e,t){return e.createText(t)}function Tc(e,t,n){return e.createElement(t,n)}function nh(e,t){Sc(e,t),t[Ae]=null,t[Ne]=null}function Sc(e,t){t[De].changeDetectionScheduler?.notify(8),pi(e,t,t[K],2,null,null)}function rh(e){let t=e[Bt];if(!t)return ro(e[_],e);for(;t;){let n=null;if(Se(t))n=t[Bt];else{let r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)Se(t)&&ro(t[_],t),t=t[ue];t===null&&(t=e),Se(t)&&ro(t[_],t),n=t&&t[Me]}t=n}}function oh(e,t){let n=e[Hn],r=t[ue];if(Se(r))e[v]|=Gn.HasTransplantedViews;else{let o=r[ue][Ee];t[Ee]!==o&&(e[v]|=Gn.HasTransplantedViews)}n===null?e[Hn]=[t]:n.push(t)}function fi(e,t){let n=e[Hn],r=n.indexOf(t);n.splice(r,1)}function ih(e,t){if(e.length<=Ue)return;let n=Ue+t,r=e[n];if(r){let o=r[Un];o!==null&&o!==e&&fi(o,r),t>0&&(e[n-1][Me]=r[Me]);let i=Da(e,Ue+t);nh(r[_],r);let s=i[ni];s!==null&&s.detachView(i[_]),r[ue]=null,r[Me]=null,r[v]&=-129}return r}function sh(e,t){if(!(t[v]&256)){let n=t[K];n.destroyNode&&pi(e,t,n,3,null,null),rh(t)}}function ro(e,t){if(t[v]&256)return;let n=T(null);try{t[v]&=-129,t[v]|=256,t[ie]&&Lr(t[ie]),ch(e,t),ah(e,t),t[_].type===1&&t[K].destroy();let r=t[Un];if(r!==null&&bt(t[ue])){r!==t[ue]&&fi(r,t);let o=t[ni];o!==null&&o.detachView(e)}qf(t)}finally{T(n)}}function ah(e,t){let n=e.cleanup,r=t[$n];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[$n]=null);let o=t[Te];if(o!==null){t[Te]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===fe.None||i===fe.Emulated)return null}return Ie(r,n)}}function Oo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function xc(e,t,n){e.appendChild(t,n)}function Js(e,t,n,r,o){r!==null?Oo(e,t,n,r,o):xc(e,t,n)}function dh(e,t,n,r){e.removeChild(t,n,r)}function fh(e,t){return e.parentNode(t)}function hh(e,t,n){return gh(e,t,n)}function ph(e,t,n){return e.type&40?Ie(e,n):null}var gh=ph,Xs;function Ac(e,t,n,r){let o=uh(e,r,t),i=t[K],s=r.parent||t[Ne],a=hh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cHe&&Fc(e,t,He,!1),le(s?2:0,o),n(r,o)}finally{Ge(i),le(s?3:1,o)}}function Lc(e,t,n){if(ka(t)){let r=T(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Ah(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return cf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ea(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=ht.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?ta(r,n,u,a,c):ta(r,n,u,a)}return r}function ta(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Nh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Vh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;or(n)&&zh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||zn(n,t),Dt(r,t);let s=n.initialInputs;for(let a=o;a{sr(e.lView)},consumerOnSignalRead(){this.lView[ie]=this}});function op(e){let t=e[ie]??Object.create(ip);return t.lView=e,t}var ip=B(P({},Rr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=mt(e.lView);for(;t&&!qc(t[_]);)t=mt(t);t&&Ga(t)},consumerOnSignalRead(){this.lView[ie]=this}});function qc(e){return e.type!==2}var sp=100;function Zc(e,t=!0,n=0){let r=e[De],o=r.rendererFactory,i=!1;i||o.begin?.();try{ap(e,n)}catch(s){throw t&&Gc(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function ap(e,t){let n=Qa();try{zs(!0),Po(e,t);let r=0;for(;$t(e);){if(r===sp)throw new b(103,!1);r++,Po(e,1)}}finally{zs(n)}}function cp(e,t,n,r){let o=t[v];if((o&256)===256)return;let i=!1,s=!1;!i&&t[De].inlineEffectRunner?.flush(),oi(t);let a=!0,c=null,u=null;i||(qc(e)?(u=ep(t),c=Pr(u)):es()===null?(a=!1,u=op(t),c=Pr(u)):t[ie]&&(Lr(t[ie]),t[ie]=null));try{Ha(t),hf(e.bindingStartIndex),n!==null&&kc(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Pn(t,f,null)}else{let f=e.preOrderHooks;f!==null&&kn(t,f,0,null),eo(t,0)}if(s||up(t),Yc(t,0),e.contentQueries!==null&&Uc(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Pn(t,f)}else{let f=e.contentHooks;f!==null&&kn(t,f,1),eo(t,1)}Ch(e,t);let d=e.components;d!==null&&Kc(t,d,0);let h=e.viewQuery;if(h!==null&&Ro(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Pn(t,f)}else{let f=e.viewHooks;f!==null&&kn(t,f,2),eo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Xr]){for(let f of t[Xr])f();t[Xr]=null}i||(t[v]&=-73)}catch(l){throw i||sr(t),l}finally{u!==null&&(ts(u,c),a&&np(u)),ii()}}function Yc(e,t){for(let n=wc(e);n!==null;n=Cc(n))for(let r=Ue;r-1&&(ih(t,r),Da(n,r))}this._attachedToViewContainer=!1}sh(this._lView[_],this._lView)}onDestroy(t){za(this._lView,t)}markForCheck(){Di(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[v]&=-129}reattach(){Gs(this._lView),this._lView[v]|=128}detectChanges(){this._lView[v]|=1024,Zc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Eo(this._lView),n=this._lView[Un];n!==null&&!t&&fi(n,this._lView),Sc(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=Eo(this._lView),r=this._lView[Un];r!==null&&!n&&oh(r,this._lView),Gs(this._lView)}};var XE=new RegExp(`^(\\d+)*(${Kf}|${Qf})*(.*)`);var Ht=class{},Jc=new D("",{providedIn:"root",factory:()=>!1});var Xc=new D(""),ko=class{},Zn=class{};function dp(e){let t=Error(`No component factory found for ${oe(e)}.`);return t[fp]=e,t}var fp="ngComponent";var Lo=class{resolveComponentFactory(t){throw dp(t)}},Mi=class Mi{};Mi.NULL=new Lo;var Gt=Mi,Et=class{},Yt=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>hp();let e=t;return e})();function hp(){let e=U(),t=se(),n=Oe(t.index,e);return(Se(n)?n:e)[K]}var pp=(()=>{let t=class t{};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),oo={};var na=new Set;function Ei(e){na.has(e)||(na.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function eu(e){let t=!0;return setTimeout(()=>{t&&(t=!1,e())}),typeof lo.requestAnimationFrame=="function"&&lo.requestAnimationFrame(()=>{t&&(t=!1,e())}),()=>{t=!1}}function ra(e){let t=!0;return queueMicrotask(()=>{t&&e()}),()=>{t=!1}}function oa(...e){}var k=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new q(!1),this.onMicrotaskEmpty=new q(!1),this.onStable=new q(!1),this.onError=new q(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let 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.callbackScheduled=!1,yp(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,gp,oa,oa);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)}},gp={};function wi(e){if(e._nesting==0&&!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 mp(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{eu(()=>{e.callbackScheduled=!1,Vo(e),e.isCheckStableRunning=!0,wi(e),e.isCheckStableRunning=!1})}),Vo(e))}function yp(e){let t=()=>{mp(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(vp(a))return n.invokeTask(o,i,s,a);try{return ia(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),sa(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return ia(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Dp(a)&&t(),sa(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Vo(e),wi(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Vo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ia(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function sa(e){e._nesting--,wi(e)}var jo=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new q,this.onMicrotaskEmpty=new q,this.onStable=new q,this.onError=new q}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)}};function vp(e){return tu(e,"__ignore_ng_zone__")}function Dp(e){return tu(e,"__scheduler_tick__")}function tu(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var nu=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=S({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Bo(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Nc(e,n,i.join(" "))}}function Mp(e,t,n){let r=e.projection=[];for(let o=0;o=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Vt(o.hostAttrs,n=Vt(n,o.hostAttrs))}}function On(e){return e===ft?{}:e===re?[]:e}function Op(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Fp(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Rp(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var wt=class{};var Yn=class extends wt{constructor(t){super(),this.componentFactoryResolver=new $o(this),this.instance=null;let n=new jt([...t.providers,{provide:wt,useValue:this},{provide:Gt,useValue:this.componentFactoryResolver}],t.parent||ti(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Pp(e,t,n=null){return new Yn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function ou(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function kp(e){return(e.flags&32)===32}function Fn(e,t){return e<<17|t<<2}function We(e){return e>>17&32767}function Lp(e){return(e&2)==2}function Vp(e,t){return e&131071|t<<17}function zo(e){return e|2}function Ct(e){return(e&131068)>>2}function io(e,t){return e&-131069|t<<2}function jp(e){return(e&1)===1}function Wo(e){return e|1}function Bp(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=We(s),c=Ct(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Wt(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=We(e[a+1]);e[r+1]=Fn(h,a),h!==0&&(e[h+1]=io(e[h+1],r)),e[a+1]=Vp(e[a+1],r)}else e[r+1]=Fn(a,0),a!==0&&(e[a+1]=io(e[a+1],r)),a=r;else e[r+1]=Fn(c,0),a===0?a=r:e[c+1]=io(e[c+1],r),c=r;u&&(e[r+1]=zo(e[r+1])),ca(e,l,r,!0),ca(e,l,r,!1),$p(t,l,e,r,i),s=Fn(a,c),i?t.classBindings=s:t.styleBindings=s}function $p(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Wt(i,t)>=0&&(n[r+1]=Wo(n[r+1]))}function ca(e,t,n,r){let o=e[n+1],i=t===null,s=r?We(o):Ct(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Up(c,t)&&(a=!0,e[s+1]=r?Wo(u):zo(u)),s=r?We(u):Ct(u)}a&&(e[n+1]=r?zo(o):Wo(o))}function Up(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Wt(e,t)>=0:!1}function ua(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";vi(e,n,i[s],s,r)}function Ci(e,t){return Hp(e,t,null,!0),Ci}function Hp(e,t,n,r){let o=U(),i=pe(),s=gf(2);if(i.firstUpdatePass&&zp(i,e,s,r),t!==cr&&ou(o,s,t)){let a=i.data[Zt()];Qp(i,a,o,o[K],e,o[s+1]=Kp(t,n),r,s)}}function Gp(e,t){return t>=e.expandoStartIndex}function zp(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Zt()],s=Gp(e,n);Jp(i,r)&&t===null&&!s&&(t=!1),t=Wp(o,i,t,r),Bp(o,i,t,n,s,r)}}function Wp(e,t,n,r){let o=Df(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=so(null,e,t,n,r),n=zt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=so(o,e,t,n,r),i===null){let c=qp(e,t,r);c!==void 0&&Array.isArray(c)&&(c=so(null,e,t,c[1],r),c=zt(c,t.attrs,r),Zp(e,t,r,c))}else i=Yp(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function qp(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Ct(r)!==0)return e[We(r)]}function Zp(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[We(o)]=r}function Yp(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===cr&&(h=d?re:void 0);let f=d?Kr(h,r):l===r?h:void 0;if(u&&!Qn(f)&&(f=Kr(c,r)),Qn(f)&&(a=f,s))return a;let p=e[o+1];o=s?We(p):Ct(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Kr(c,r))}return a}function Qn(e){return e!==void 0}function Kp(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oe(di(e)))),e}function Jp(e,t){return(e.flags&(t?8:16))!==0}function Xp(e,t,n,r,o,i){let s=t.consts,a=Hs(s,o),c=yi(t,e,2,r,a);return Ph(t,n,c,Hs(s,i)),c.attrs!==null&&Bo(c,c.attrs,!1),c.mergedAttrs!==null&&Bo(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function F(e,t,n,r){let o=U(),i=pe(),s=He+e,a=o[K],c=i.firstCreatePass?Xp(s,i,o,t,n,r):i.data[s],u=eg(i,o,c,a,t,e);o[s]=u;let l=La(c);return ar(c,!0),Oc(a,u,c),!kp(c)&&oc()&&Ac(i,o,u,c),of()===0&&Dt(u,o),sf(),l&&(bh(i,o,c),Lc(i,c,o)),r!==null&&_h(o,c),F}function R(){let e=se();Ya()?ff():(e=e.parent,ar(e,!1));let t=e;uf(t)&&lf(),af();let n=pe();return n.firstCreatePass&&(sc(n,e),ka(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Mf(t)&&ua(n,t,U(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Tf(t)&&ua(n,t,U(),t.stylesWithoutHost,!1),R}var eg=(e,t,n,r,o,i)=>(ic(!0),Tc(r,o,Cf()));var Kn="en-US";var tg=Kn;function ng(e){typeof e=="string"&&(tg=e.toLowerCase().replace(/_/g,"-"))}var rg=(e,t,n)=>{};function H(e,t,n,r){let o=U(),i=pe(),s=se();return iu(i,o,o[K],s,e,t,r),H}function og(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function iu(e,t,n,r,o,i,s){let a=La(r),u=e.firstCreatePass&&Yh(e),l=t[ve],d=Zh(t),h=!0;if(r.type&3||s){let E=Ie(r,t),m=s?s(E):E,g=d.length,G=s?x=>s(Ye(x[r.index])):r.index,V=null;if(!s&&a&&(V=og(e,t,o,r.index)),V!==null){let x=V.__ngLastListenerFn__||V;x.__ngNextListenerFn__=i,V.__ngLastListenerFn__=i,h=!1}else{i=fa(r,t,l,i),rg(E,o,i);let x=n.listen(m,o,i);d.push(i,x),u&&u.push(o,G,g,g+1)}}else i=fa(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let E=p.length;if(E)for(let m=0;m-1?Oe(e.index,t):t;Di(s,5);let a=da(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=da(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function L(e,t=""){let n=U(),r=pe(),o=e+He,i=r.firstCreatePass?yi(r,o,1,t,null):r.data[o],s=ig(r,n,i,t,e);n[o]=s,oc()&&Ac(r,n,s,i),ar(i,!1)}var ig=(e,t,n,r,o)=>(ic(!0),th(t[K],r));function ur(e,t,n){ru(t)&&(t=t());let r=U(),o=pf();if(ou(r,o,t)){let i=pe(),s=wf();Fh(i,s,r,e,t,r[K],n,!1)}return ur}function Ii(e,t){let n=ru(e);return n&&e.set(t),n}function lr(e,t){let n=U(),r=pe(),o=se();return iu(r,n,n[K],o,e,t),lr}function sg(e,t,n){let r=pe();if(r.firstCreatePass){let o=xe(e);qo(n,r.data,r.blueprint,o,!0),qo(t,r.data,r.blueprint,o,!1)}}function qo(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i>20;if(pt(e)||!e.multi){let f=new ze(u,o,N),p=co(c,t,o?l:l+h,d);p===-1?(Mo(zn(a,s),i,c),ao(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=co(c,t,l+h,d),p=co(c,t,l,l+h),E=f>=0&&n[f],m=p>=0&&n[p];if(o&&!m||!o&&!E){Mo(zn(a,s),i,c);let g=ug(o?cg:ag,n.length,o,r,u);!o&&m&&(n[p].providerFactory=g),ao(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(g),s.push(g)}else{let g=su(n[o?p:f],u,!o&&r);ao(i,e,f>-1?f:p,g)}!o&&r&&m&&n[p].componentProviders++}}}function ao(e,t,n,r){let o=pt(t),i=Ud(t);if(o||i){let c=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function su(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function co(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>sg(r,o?o(e):e,t)}}var lg=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=xa(!1,r.type),i=o.length>0?Pp([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=S({token:t,providedIn:"environment",factory:()=>new t(I(ye))});let e=t;return e})();function au(e){Ei("NgStandalone"),e.getStandaloneInjector=t=>t.get(lg).getOrCreateStandaloneInjector(e)}var cu=new D("");function Qt(e){return!!e&&typeof e.then=="function"}function uu(e){return!!e&&typeof e.subscribe=="function"}var dg=new D(""),lu=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=w(dg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Qt(s))r.push(s);else if(uu(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),du=new D("");function fg(){ns(()=>{throw new b(600,!1)})}function hg(e){return e.isBoundToModule}var pg=10;function gg(e,t,n){try{let r=n();return Qt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Kt=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(yc),this.afterRenderEffectManager=w(nu),this.zonelessEnabled=w(Jc),this.externalTestViews=new Set,this.beforeRender=new ee,this.afterTick=new ee,this.componentTypes=[],this.components=[],this.isStable=w(_t).hasPendingTasks.pipe(Q(r=>!r)),this._injector=w(ye)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Zn;if(!this._injector.get(lu).done){let f=!i&&kd(r),p=!1;throw new b(405,p)}let a;i?a=r:a=this._injector.get(Gt).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=hg(a)?void 0:this._injector.get(wt),u=o||a.selector,l=a.create(vt.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(cu,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),uo(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new b(101,!1);let o=T(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,T(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(Et,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;i$t(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>$t(c))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;uo(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(du,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>uo(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new b(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function uo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function mg(e,t,n,r){if(!n&&!$t(e))return;Zc(e,t,n&&!r?0:1)}var yg=(()=>{let t=class t{constructor(){this.zone=w(k),this.changeDetectionScheduler=w(Ht),this.applicationRef=w(Kt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function vg({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new k(Eg()),[{provide:k,useFactory:e},{provide:Lt,multi:!0,useFactory:()=>{let n=w(yg,{optional:!0});return()=>n.initialize()}},{provide:Lt,multi:!0,useFactory:()=>{let n=w(wg);return()=>{n.initialize()}}},{provide:yc,useFactory:Dg},t===!0?{provide:Xc,useValue:!0}:[]]}function Dg(){let e=w(k),t=w(we);return n=>e.runOutsideAngular(()=>t.handleError(n))}function Eg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var wg=(()=>{let t=class t{constructor(){this.subscription=new Z,this.initialized=!1,this.zone=w(k),this.pendingTasks=w(_t)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{k.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{k.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Cg=(()=>{let t=class t{constructor(){this.appRef=w(Kt),this.taskService=w(_t),this.ngZone=w(k),this.zonelessEnabled=w(Jc),this.disableScheduling=w(Xc,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Z,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jo||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?ra:eu;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&k.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ra(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ig(){return typeof $localize<"u"&&$localize.locale||Kn}var bi=new D("",{providedIn:"root",factory:()=>w(bi,C.Optional|C.SkipSelf)||Ig()});var fu=new D("");var Ln=null;function bg(e=[],t){return vt.create({name:t,providers:[{provide:nr,useValue:"platform"},{provide:fu,useValue:new Set([()=>Ln=null])},...e]})}function _g(e=[]){if(Ln)return Ln;let t=bg(e);return Ln=t,fg(),Mg(t),t}function Mg(e){e.get(ci,null)?.forEach(n=>n())}var fr=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Tg;let e=t;return e})();function Tg(e){return Sg(se(),U(),(e&16)===16)}function Sg(e,t,n){if(or(e)&&!n){let r=Oe(e.index,t);return new Ut(r,r)}else if(e.type&47){let r=t[Ee];return new Ut(r,t)}return null}function hu(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=_g(r),i=[vg({}),{provide:Ht,useExisting:Cg},...n||[]],a=new Yn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(k);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(we,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:f=>{u.handleError(f)}})});let d=()=>a.destroy(),h=o.get(fu);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),gg(u,c,()=>{let f=a.get(lu);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(bi,Kn);ng(p||Kn);let E=a.get(Kt);return t!==void 0&&E.bootstrap(t),E})})})}catch(t){return Promise.reject(t)}}function _i(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var gu=null;function Tt(){return gu}function mu(e){gu??=e}var hr=class{};var ge=new D("");function pr(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ti=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ze({type:t}),t.\u0275inj=qe({});let e=t;return e})(),yu="browser",xg="server";function gr(e){return e===xg}var Mt=class{};var Xt=class{},yr=class{},be=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var xi=class{encodeKey(t){return vu(t)}encodeValue(t){return vu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ng(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Og=/%(\d[a-f0-9])/gi,Fg={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vu(e){return encodeURIComponent(e).replace(Og,(t,n)=>Fg[n]??t)}function mr(e){return`${e}`}var me=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new xi,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ng(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(mr):[mr(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(mr(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(mr(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Ai=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Rg(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Du(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Eu(e){return typeof Blob<"u"&&e instanceof Blob}function wu(e){return typeof FormData<"u"&&e instanceof FormData}function Pg(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Jt=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(Rg(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new be,this.context??=new Ai,!this.params)this.params=new me,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},ke=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ke||{}),en=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new be,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},vr=class e extends en{constructor(t={}){super(t),this.type=ke.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},tn=class e extends en{constructor(t={}){super(t),this.type=ke.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Pe=class extends en{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},_u=200,kg=204;function Si(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var nn=(()=>{let t=class t{constructor(r){this.handler=r}request(r,o,i={}){let s;if(r instanceof Jt)s=r;else{let u;i.headers instanceof be?u=i.headers:u=new be(i.headers);let l;i.params&&(i.params instanceof me?l=i.params:l=new me({fromObject:i.params})),s=new Jt(r,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=xn(s).pipe(Zr(u=>this.handler.handle(u)));if(r instanceof Jt||i.observe==="events")return a;let c=a.pipe(it(u=>u instanceof tn));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(Q(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(Q(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(Q(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(Q(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(r,o={}){return this.request("DELETE",r,o)}get(r,o={}){return this.request("GET",r,o)}head(r,o={}){return this.request("HEAD",r,o)}jsonp(r,o){return this.request("JSONP",r,{params:new me().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,o={}){return this.request("OPTIONS",r,o)}patch(r,o,i={}){return this.request("PATCH",r,Si(i,o))}post(r,o,i={}){return this.request("POST",r,Si(i,o))}put(r,o,i={}){return this.request("PUT",r,Si(i,o))}};t.\u0275fac=function(o){return new(o||t)(I(Xt))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Lg=/^\)\]\}',?\n/,Vg="X-Request-URL";function Cu(e){if(e.url)return e.url;let t=Vg.toLocaleLowerCase();return e.headers.get(t)}var jg=(()=>{let t=class t{constructor(){this.fetchImpl=w(Ni,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=w(k)}handle(r){return new O(o=>{let i=new AbortController;return this.doRequest(r,i.signal,o).then(Oi,s=>o.error(new Pe({error:s}))),()=>i.abort()})}doRequest(r,o,i){return Ar(this,null,function*(){let s=this.createRequestInit(r),a;try{let p=this.fetchImpl(r.urlWithParams,P({signal:o},s));Bg(p),i.next({type:ke.Sent}),a=yield p}catch(p){i.error(new Pe({error:p,status:p.status??0,statusText:p.statusText,url:r.urlWithParams,headers:p.headers}));return}let c=new be(a.headers),u=a.statusText,l=Cu(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&i.next(new vr({headers:c,status:d,statusText:u,url:l})),a.body){let p=a.headers.get("content-length"),E=[],m=a.body.getReader(),g=0,G,V,x=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Ar(this,null,function*(){for(;;){let{done:j,value:X}=yield m.read();if(j)break;if(E.push(X),g+=X.length,r.reportProgress){V=r.responseType==="text"?(V??"")+(G??=new TextDecoder).decode(X,{stream:!0}):void 0;let Je=()=>i.next({type:ke.DownloadProgress,total:p?+p:void 0,loaded:g,partialText:V});x?x.run(Je):Je()}}}));let J=this.concatChunks(E,g);try{let j=a.headers.get("Content-Type")??"";h=this.parseBody(r,J,j)}catch(j){i.error(new Pe({error:j,headers:new be(a.headers),status:a.status,statusText:a.statusText,url:Cu(a)??r.urlWithParams}));return}}d===0&&(d=h?_u:0),d>=200&&d<300?(i.next(new tn({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new Pe({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(r,o,i){switch(r.responseType){case"json":let s=new TextDecoder().decode(o).replace(Lg,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(r){let o={},i=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>o[s]=a.join(",")),o.Accept??="application/json, text/plain, */*",!o["Content-Type"]){let s=r.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:o,credentials:i}}concatChunks(r,o){let i=new Uint8Array(o),s=0;for(let a of r)i.set(a,s),s+=a.length;return i}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Ni=class{};function Oi(){}function Bg(e){e.then(Oi,Oi)}function $g(e,t){return t(e)}function Ug(e,t,n){return(r,o)=>Fa(n,()=>t(r,i=>e(i,o)))}var Mu=new D(""),Hg=new D(""),Gg=new D("",{providedIn:"root",factory:()=>!0});var Iu=(()=>{let t=class t extends Xt{constructor(r,o){super(),this.backend=r,this.injector=o,this.chain=null,this.pendingTasks=w(_t),this.contributeToStability=w(Gg)}handle(r){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Mu),...this.injector.get(Hg,[])]));this.chain=o.reduceRight((i,s)=>Ug(i,s,this.injector),$g)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(r,i=>this.backend.handle(i)).pipe(Yr(()=>this.pendingTasks.remove(o)))}else return this.chain(r,o=>this.backend.handle(o))}};t.\u0275fac=function(o){return new(o||t)(I(yr),I(ye))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();var zg=/^\)\]\}',?\n/;function Wg(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var bu=(()=>{let t=class t{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new b(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?Be(o.\u0275loadImpl()):xn(null)).pipe(Qr(()=>new O(s=>{let a=o.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((m,g)=>a.setRequestHeader(m,g.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let m=r.detectContentTypeHeader();m!==null&&a.setRequestHeader("Content-Type",m)}if(r.responseType){let m=r.responseType.toLowerCase();a.responseType=m!=="json"?m:"text"}let c=r.serializeBody(),u=null,l=()=>{if(u!==null)return u;let m=a.statusText||"OK",g=new be(a.getAllResponseHeaders()),G=Wg(a)||r.url;return u=new vr({headers:g,status:a.status,statusText:m,url:G}),u},d=()=>{let{headers:m,status:g,statusText:G,url:V}=l(),x=null;g!==kg&&(x=typeof a.response>"u"?a.responseText:a.response),g===0&&(g=x?_u:0);let J=g>=200&&g<300;if(r.responseType==="json"&&typeof x=="string"){let j=x;x=x.replace(zg,"");try{x=x!==""?JSON.parse(x):null}catch(X){x=j,J&&(J=!1,x={error:X,text:x})}}J?(s.next(new tn({body:x,headers:m,status:g,statusText:G,url:V||void 0})),s.complete()):s.error(new Pe({error:x,headers:m,status:g,statusText:G,url:V||void 0}))},h=m=>{let{url:g}=l(),G=new Pe({error:m,status:a.status||0,statusText:a.statusText||"Unknown Error",url:g||void 0});s.error(G)},f=!1,p=m=>{f||(s.next(l()),f=!0);let g={type:ke.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),r.responseType==="text"&&a.responseText&&(g.partialText=a.responseText),s.next(g)},E=m=>{let g={type:ke.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),s.next(g)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",E)),a.send(c),s.next({type:ke.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",E)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(o){return new(o||t)(I(Mt))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Tu=new D(""),qg="XSRF-TOKEN",Zg=new D("",{providedIn:"root",factory:()=>qg}),Yg="X-XSRF-TOKEN",Qg=new D("",{providedIn:"root",factory:()=>Yg}),Dr=class{},Kg=(()=>{let t=class t{constructor(r,o,i){this.doc=r,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=pr(r,this.cookieName),this.lastCookieString=r),this.lastToken}};t.\u0275fac=function(o){return new(o||t)(I(ge),I(Re),I(Zg))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Jg(e,t){let n=e.url.toLowerCase();if(!w(Tu)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=w(Dr).getToken(),o=w(Qg);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function Su(...e){let t=[nn,bu,Iu,{provide:Xt,useExisting:Iu},{provide:yr,useFactory:()=>w(jg,{optional:!0})??w(bu)},{provide:Mu,useValue:Jg,multi:!0},{provide:Tu,useValue:!0},{provide:Dr,useClass:Kg}];for(let n of e)t.push(...n.\u0275providers);return Xo(t)}var Pi=class extends hr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ki=class e extends Pi{static makeCurrent(){mu(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=em();return n==null?null:tm(n)}resetBaseElement(){rn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pr(document.cookie,t)}},rn=null;function em(){return rn=rn||document.querySelector("base"),rn?rn.getAttribute("href"):null}function tm(e){return new URL(e,document.baseURI).pathname}var nm=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Li=new D(""),Fu=(()=>{let t=class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new b(5101,!1);return this._eventNameToPlugin.set(r,o),o}};t.\u0275fac=function(o){return new(o||t)(I(Li),I(k))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Er=class{constructor(t){this._doc=t}},Fi="ng-app-id",Ru=(()=>{let t=class t{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=gr(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Fi}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(Fi),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Fi,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(I(ge),I(ai),I(ui,8),I(Re))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Ri={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/Math/MathML"},ji=/%COMP%/g,Pu="%COMP%",rm=`_nghost-${Pu}`,om=`_ngcontent-${Pu}`,im=!0,sm=new D("",{providedIn:"root",factory:()=>im});function am(e){return om.replace(ji,e)}function cm(e){return rm.replace(ji,e)}function ku(e,t){return t.map(n=>n.replace(ji,e))}var Au=(()=>{let t=class t{constructor(r,o,i,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=gr(c),this.defaultRenderer=new on(r,a,u,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===fe.ShadowDom&&(o=B(P({},o),{encapsulation:fe.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof wr?i.applyToHost(r):i instanceof sn&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case fe.Emulated:s=new wr(u,l,o,this.appId,d,a,c,h);break;case fe.ShadowDom:return new Vi(u,l,r,o,a,c,this.nonce,h);default:s=new sn(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(I(Fu),I(Ru),I(ai),I(sm),I(ge),I(Re),I(k),I(ui))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),on=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Ri[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Nu(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Nu(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);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;let i=Ri[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Ri[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&(Ce.DashCase|Ce.Important)?t.style.setProperty(n,r,o&Ce.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ce.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Tt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Nu(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Vi=class extends on{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ku(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},sn=class extends on{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?ku(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wr=class extends sn{constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=am(u),this.hostAttr=cm(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},um=(()=>{let t=class t extends Er{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(I(ge))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})(),Ou=["alt","control","meta","shift"],lm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dm={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},fm=(()=>{let t=class t extends Er{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),Ou.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(r,o){let i=lm[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ou.forEach(a=>{if(a!==i){let c=dm[a];c(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{t.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(o){return new(o||t)(I(ge))},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Lu(e,t){return hu(P({rootComponent:e},hm(t)))}function hm(e){return{appProviders:[...vm,...e?.providers??[]],platformProviders:ym}}function pm(){ki.makeCurrent()}function gm(){return new we}function mm(){return bc(document),document}var ym=[{provide:Re,useValue:yu},{provide:ci,useValue:pm,multi:!0},{provide:ge,useFactory:mm,deps:[]}];var vm=[{provide:nr,useValue:"root"},{provide:we,useFactory:gm,deps:[]},{provide:Li,useClass:um,multi:!0,deps:[ge,k,Re]},{provide:Li,useClass:fm,multi:!0,deps:[ge]},Au,Ru,Fu,{provide:Et,useExisting:Au},{provide:Mt,useClass:nm,deps:[]},[]];var zu=(()=>{let t=class t{constructor(r,o){this._renderer=r,this._elementRef=o,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(r,o){this._renderer.setProperty(this._elementRef.nativeElement,r,o)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(o){return new(o||t)(N(Yt),N(Fe))},t.\u0275dir=he({type:t});let e=t;return e})(),Wu=(()=>{let t=class t extends zu{};t.\u0275fac=(()=>{let r;return function(i){return(r||(r=si(t)))(i||t)}})(),t.\u0275dir=he({type:t,features:[Qe]});let e=t;return e})(),Gi=new D(""),Dm={provide:Gi,useExisting:It(()=>zi),multi:!0},zi=(()=>{let t=class t extends Wu{writeValue(r){this.setProperty("checked",r)}};t.\u0275fac=(()=>{let r;return function(i){return(r||(r=si(t)))(i||t)}})(),t.\u0275dir=he({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,i){o&1&&H("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[dr([Dm]),Qe]});let e=t;return e})(),Em={provide:Gi,useExisting:It(()=>Mr),multi:!0};function wm(){let e=Tt()?Tt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Cm=new D(""),Mr=(()=>{let t=class t extends zu{constructor(r,o,i){super(r,o),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!wm())}writeValue(r){let o=r??"";this.setProperty("value",o)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(o){return new(o||t)(N(Yt),N(Fe),N(Cm,8))},t.\u0275dir=he({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,i){o&1&&H("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[dr([Em]),Qe]});let e=t;return e})();var Im=new D(""),bm=new D("");function qu(e){return e!=null}function Zu(e){return Qt(e)?Be(e):e}function Yu(e){let t={};return e.forEach(n=>{t=n!=null?P(P({},t),n):t}),Object.keys(t).length===0?null:t}function Qu(e,t){return t.map(n=>n(e))}function _m(e){return!e.validate}function Ku(e){return e.map(t=>_m(t)?t:n=>t.validate(n))}function Mm(e){if(!e)return null;let t=e.filter(qu);return t.length==0?null:function(n){return Yu(Qu(n,t))}}function Ju(e){return e!=null?Mm(Ku(e)):null}function Tm(e){if(!e)return null;let t=e.filter(qu);return t.length==0?null:function(n){let r=Qu(n,t).map(Zu);return qr(r).pipe(Q(Yu))}}function Xu(e){return e!=null?Tm(Ku(e)):null}function Vu(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Sm(e){return e._rawValidators}function xm(e){return e._rawAsyncValidators}function Bi(e){return e?Array.isArray(e)?e:[e]:[]}function Ir(e,t){return Array.isArray(e)?e.includes(t):e===t}function ju(e,t){let n=Bi(t);return Bi(e).forEach(o=>{Ir(n,o)||n.push(o)}),n}function Bu(e,t){return Bi(t).filter(n=>!Ir(e,n))}var br=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ju(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Xu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},$i=class extends br{get formDirective(){return null}get path(){return null}},dn=class extends br{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ui=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Am={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},LC=B(P({},Am),{"[class.ng-submitted]":"isSubmitted"}),el=(()=>{let t=class t extends Ui{constructor(r){super(r)}};t.\u0275fac=function(o){return new(o||t)(N(dn,2))},t.\u0275dir=he({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,i){o&2&&Ci("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Qe]});let e=t;return e})();var an="VALID",Cr="INVALID",St="PENDING",cn="DISABLED",At=class{},_r=class extends At{constructor(t,n){super(),this.value=t,this.source=n}},un=class extends At{constructor(t,n){super(),this.pristine=t,this.source=n}},ln=class extends At{constructor(t,n){super(),this.touched=t,this.source=n}},xt=class extends At{constructor(t,n){super(),this.status=t,this.source=n}};function Nm(e){return(Tr(e)?e.validators:e)||null}function Om(e){return Array.isArray(e)?Ju(e):e||null}function Fm(e,t){return(Tr(t)?t.asyncValidators:e)||null}function Rm(e){return Array.isArray(e)?Xu(e):e||null}function Tr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Hi=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new ee,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===an}get invalid(){return this.status===Cr}get pending(){return this.status==St}get disabled(){return this.status===cn}get enabled(){return this.status!==cn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ju(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ju(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Bu(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Bu(t,this._rawAsyncValidators))}hasValidator(t){return Ir(this._rawValidators,t)}hasAsyncValidator(t){return Ir(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(B(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ln(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ln(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(B(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new un(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new un(!0,r))}markAsPending(t={}){this.status=St;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new xt(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(B(P({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=cn,this.errors=null,this._forEachChild(o=>{o.disable(B(P({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new _r(this.value,r)),this._events.next(new xt(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(B(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=an,this._forEachChild(r=>{r.enable(B(P({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(B(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===an||this.status===St)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new _r(this.value,n)),this._events.next(new xt(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(B(P({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cn:an}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=St,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Zu(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new xt(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new q,this.statusChanges=new q}_calculateStatus(){return this._allControlsDisabled()?cn:this.errors?Cr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(St)?St:this._anyControlsHaveStatus(Cr)?Cr:an}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new un(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ln(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Tr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Om(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Rm(this._rawAsyncValidators)}};var tl=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Wi}),Wi="always";function Pm(e,t){return[...t.path,e]}function km(e,t,n=Wi){Vm(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),jm(e,t),$m(e,t),Bm(e,t),Lm(e,t)}function $u(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Lm(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Vm(e,t){let n=Sm(e);t.validator!==null?e.setValidators(Vu(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=xm(e);t.asyncValidator!==null?e.setAsyncValidators(Vu(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();$u(t._rawValidators,o),$u(t._rawAsyncValidators,o)}function jm(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&nl(e,t)})}function Bm(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&nl(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function nl(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $m(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Um(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Hm(e){return Object.getPrototypeOf(e.constructor)===Wu}function Gm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Mr?n=i:Hm(i)?r=i:o=i}),o||r||n||null}function Uu(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Hu(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var zm=class extends Hi{constructor(t=null,n,r){super(Nm(n),Fm(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Hu(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Uu(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Uu(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Hu(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Wm={provide:dn,useExisting:It(()=>qi)},Gu=Promise.resolve(),qi=(()=>{let t=class t extends dn{constructor(r,o,i,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new zm,this._registered=!1,this.name="",this.update=new q,this._parent=r,this._setValidators(o),this._setAsyncValidators(i),this.valueAccessor=Gm(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let o=r.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),Um(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){km(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){Gu.then(()=>{this.control.setValue(r,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(r){let o=r.isDisabled.currentValue,i=o!==0&&_i(o);Gu.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(r){return this._parent?Pm(r,this._parent):[r]}};t.\u0275fac=function(o){return new(o||t)(N($i,9),N(Im,10),N(bm,10),N(Gi,10),N(fr,8),N(tl,8))},t.\u0275dir=he({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[dr([Wm]),Qe,ir]});let e=t;return e})();var qm=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ze({type:t}),t.\u0275inj=qe({});let e=t;return e})();var rl=(()=>{let t=class t{static withConfig(r){return{ngModule:t,providers:[{provide:tl,useValue:r.callSetDisabledState??Wi}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ze({type:t}),t.\u0275inj=qe({imports:[qm]});let e=t;return e})();var il=Dl(ol());var Qi;try{Qi=!!new Blob}catch{Qi=!1}var Sr=(()=>{let t=class t{get isFileSaverSupported(){return Qi}genType(r){if(!r||r.lastIndexOf(".")===-1)return"text/plain";let o=r.substring(r.lastIndexOf(".")+1);switch(o){case"txt":return"text/plain";case"xml":case"html":return`text/${o}`;case"json":return"octet/stream";default:return`application/${o}`}}save(r,o,i,s){if(!r)throw new Error("Data argument should be a blob instance");let a=new Blob([r],{type:i||r.type||this.genType(o)});(0,il.saveAs)(a,decodeURI(o||"download"),s)}saveText(r,o,i){let s=new Blob([r]);this.save(s,o,void 0,i)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var sl=(()=>{let t=class t{constructor(r,o,i,s){this.ngZone=r,this.el=o,this.fss=i,this.httpClient=s,this.method="GET",this.success=new q,this.error=new q,this.destroy$=new ee,i.isFileSaverSupported||o.nativeElement.classList.add("filesaver__not-support")}ngOnInit(){this.ngZone.runOutsideAngular(()=>this.setupClickListener())}ngOnDestroy(){this.destroy$.next()}getName(r){return decodeURI(this.fileName||r.headers.get("filename")||r.headers.get("x-filename")||"")}setDisabled(r){let o=this.el.nativeElement;o.disabled=r,o.classList[r?"add":"remove"]("filesaver__disabled")}setupClickListener(){Rt(this.el.nativeElement,"click").pipe(it(()=>this.fss.isFileSaverSupported),Nn(this.destroy$)).subscribe(()=>{let r=this.http;if(!r){let o=new me,i=this.query||{};for(let s in i)o=o.set(s,i[s]);r=this.httpClient.request(this.method,this.url,{observe:"response",responseType:"blob",headers:this.header,params:o})}this.setDisabled(!0),r.pipe(Nn(this.destroy$)).subscribe({next:o=>{if(o.status!==200||o.body.size<=0){this.emitIfHasObservers(this.error,o);return}this.fss.save(o.body,this.getName(o),void 0,this.fsOptions),this.emitIfHasObservers(this.success,o)},error:o=>this.emitIfHasObservers(this.error,o),complete:()=>this.setDisabled(!1)})})}emitIfHasObservers(r,o){Qm(r)&&this.ngZone.run(()=>r.emit(o))}};t.\u0275fac=function(o){return new(o||t)(N(k),N(Fe),N(Sr),N(nn))},t.\u0275dir=he({type:t,selectors:[["","fileSaver",""]],inputs:{method:"method",http:"http",query:"query",header:"header",url:"url",fileName:"fileName",fsOptions:"fsOptions"},outputs:{success:"success",error:"error"},exportAs:["fileSaver"],standalone:!0});let e=t;return e})();function Qm(e){return e.observed??e.observers.length>0}var al=(()=>{let t=class t{constructor(r,o){this.httpClient=r,this.fileSaverService=o,this.text='{ "text": "This is text file!\u4E2D\u6587" }',this.options={autoBom:!1}}onDown(r,o){let i=`save.${r}`;if(o){this.httpClient.get(`files/demo.${r}`,{observe:"response",responseType:"blob"}).subscribe(c=>{this.fileSaverService.save(c.body,i)});return}let s=this.fileSaverService.genType(i),a=new Blob([this.text],{type:s});this.fileSaverService.save(a,i,void 0,this.options)}};t.\u0275fac=function(o){return new(o||t)(N(nn),N(Sr))},t.\u0275cmp=ba({type:t,selectors:[["app-root"]],standalone:!0,features:[au],decls:44,vars:2,consts:[["href","https://github.com/cipchk/ngx-filesaver/blob/master/README.md","target","_blank"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["type","button",3,"click"],["type","button","fileSaver","","url","assets/files/demo.docx"]],template:function(o,i){o&1&&(F(0,"h1"),L(1,"ngx-filesaver"),R(),F(2,"p"),L(3," Simple file save with FileSaver.js, pls refer "),F(4,"a",0),L(5,"README.md"),R()(),F(6,"h1"),L(7,"Filesaver option"),R(),F(8,"label")(9,"input",1),lr("ngModelChange",function(a){return Ii(i.options.autoBom,a)||(i.options.autoBom=a),a}),R(),L(10," AutoBOM "),R(),F(11,"h1"),L(12,"Text Document"),R(),F(13,"textarea",2),lr("ngModelChange",function(a){return Ii(i.text,a)||(i.text=a),a}),R(),F(14,"button",3),H("click",function(){return i.onDown("txt",!1)}),L(15,"Save Text"),R(),F(16,"button",3),H("click",function(){return i.onDown("json",!1)}),L(17,"Save JSON"),R(),F(18,"h1"),L(19,"Remote file download"),R(),F(20,"button",3),H("click",function(){return i.onDown("docx",!0)}),L(21,"Save Word"),R(),F(22,"button",3),H("click",function(){return i.onDown("xlsx",!0)}),L(23,"Save Excel"),R(),F(24,"button",3),H("click",function(){return i.onDown("csv",!0)}),L(25,"Save CSV"),R(),F(26,"button",3),H("click",function(){return i.onDown("pptx",!0)}),L(27,"Save PPT"),R(),F(28,"button",3),H("click",function(){return i.onDown("pdf",!0)}),L(29,"Save PDF"),R(),F(30,"button",3),H("click",function(){return i.onDown("zip",!0)}),L(31,"Save Zip"),R(),F(32,"button",3),H("click",function(){return i.onDown("7z",!0)}),L(33,"Save 7z"),R(),F(34,"button",3),H("click",function(){return i.onDown("jpg",!0)}),L(35,"Save JPG"),R(),F(36,"button",3),H("click",function(){return i.onDown("gif",!0)}),L(37,"Save Gif"),R(),F(38,"button",3),H("click",function(){return i.onDown("png",!0)}),L(39,"Save Png"),R(),F(40,"h1"),L(41,"fileSaver Directive"),R(),F(42,"button",4),L(43,"Save Word"),R()),o&2&&(gi(9),ur("ngModel",i.options.autoBom),gi(4),ur("ngModel",i.text))},dependencies:[Ti,rl,Mr,zi,el,qi,sl],encapsulation:2});let e=t;return e})();Lu(al,{providers:[Su()]}).catch(e=>console.error(e)); diff --git a/main-YS5ZETAB.js b/main-YS5ZETAB.js new file mode 100644 index 0000000..e2fd170 --- /dev/null +++ b/main-YS5ZETAB.js @@ -0,0 +1,8 @@ +var Bl=Object.create;var Zr=Object.defineProperty,Hl=Object.defineProperties,Ul=Object.getOwnPropertyDescriptor,$l=Object.getOwnPropertyDescriptors,Gl=Object.getOwnPropertyNames,Es=Object.getOwnPropertySymbols,zl=Object.getPrototypeOf,Cs=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable;var ws=(e,t,n)=>t in e?Zr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||={})Cs.call(t,n)&&ws(e,n,t[n]);if(Es)for(var n of Es(t))Wl.call(t,n)&&ws(e,n,t[n]);return e},L=(e,t)=>Hl(e,$l(t));var ql=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gl(t))!Cs.call(e,o)&&o!==n&&Zr(e,o,{get:()=>t[o],enumerable:!(r=Ul(t,o))||r.enumerable});return e};var Yl=(e,t,n)=>(n=e!=null?Bl(zl(e)):{},Zl(t||!e||!e.__esModule?Zr(n,"default",{value:e,enumerable:!0}):n,e));var Rt=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var Pl=ql((ys,vs)=>{"use strict";(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof ys<"u"?t():(t(),e.FileSaver={})})(ys,function(){"use strict";function e(a,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function t(a,c,u){var l=new XMLHttpRequest;l.open("GET",a),l.responseType="blob",l.onload=function(){s(l.response,c,u)},l.onerror=function(){console.error("could not download file")},l.send()}function n(a){var c=new XMLHttpRequest;c.open("HEAD",a,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function r(a){try{a.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(a,c,u){var l=o.URL||o.webkitURL,d=document.createElement("a");c=c||a.name||"download",d.download=c,d.rel="noopener",typeof a=="string"?(d.href=a,d.origin===location.origin?r(d):n(d.href)?t(a,c,u):r(d,d.target="_blank")):(d.href=l.createObjectURL(a),setTimeout(function(){l.revokeObjectURL(d.href)},4e4),setTimeout(function(){r(d)},0))}:"msSaveOrOpenBlob"in navigator?function(a,c,u){if(c=c||a.name||"download",typeof a!="string")navigator.msSaveOrOpenBlob(e(a,u),c);else if(n(a))t(a,c,u);else{var l=document.createElement("a");l.href=a,l.target="_blank",setTimeout(function(){r(l)})}}:function(a,c,u,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof a=="string")return t(a,c,u);var d=a.type==="application/octet-stream",h=/constructor/i.test(o.HTMLElement)||o.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||d&&h||i)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var w=g.result;w=f?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=w:location=w,l=null},g.readAsDataURL(a)}else{var p=o.URL||o.webkitURL,m=p.createObjectURL(a);l?l.location=m:location.href=m,l=null,setTimeout(function(){p.revokeObjectURL(m)},4e4)}});o.saveAs=s.saveAs=s,typeof vs<"u"&&(vs.exports=s)})});function Jr(e,t){return Object.is(e,t)}var H=null,yn=!1,Xr=1,te=Symbol("SIGNAL");function T(e){let t=H;return H=e,t}function _s(){return H}var Pt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function eo(e){if(yn)throw new Error("");if(H===null)return;H.consumerOnSignalRead(e);let t=H.nextProducerIndex++;if(wn(H),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ro(e){wn(e);for(let t=0;t0}function wn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ts(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ss(e){return e.producerNode!==void 0}function Ns(e){let t=Object.create(Jl);t.computation=e;let n=()=>{if(to(t),eo(t),t.value===vn)throw t.error;return t.value};return n[te]=t,n}var Yr=Symbol("UNSET"),Qr=Symbol("COMPUTING"),vn=Symbol("ERRORED"),Jl=L(A({},Pt),{value:Yr,dirty:!0,error:null,equal:Jr,producerMustRecompute(e){return e.value===Yr||e.value===Qr},producerRecomputeValue(e){if(e.value===Qr)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Qr;let n=Dn(e),r;try{r=e.computation()}catch(o){r=vn,e.error=o}finally{no(e,n)}if(t!==Yr&&t!==vn&&r!==vn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Xl(){throw new Error}var As=Xl;function xs(){As()}function Os(e){As=e}var ed=null;function Rs(e){let t=Object.create(Ps);t.value=e;let n=()=>(eo(t),t.value);return n[te]=t,n}function io(e,t){bs()||xs(),e.equal(e.value,t)||(e.value=t,td(e))}function Fs(e,t){bs()||xs(),io(e,t(e.value))}var Ps=L(A({},Pt),{equal:Jr,value:void 0});function td(e){e.version++,Ql(),Is(e),ed?.()}function v(e){return typeof e=="function"}function Cn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _n=Cn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function kt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Z=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(i){t=i instanceof _n?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ks(i)}catch(s){t=t??[],s instanceof _n?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _n(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ks(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&kt(n,t)}remove(t){let{_finalizers:n}=this;n&&kt(n,t),t instanceof e&&t._removeParent(this)}};Z.EMPTY=(()=>{let e=new Z;return e.closed=!0,e})();var so=Z.EMPTY;function In(e){return e instanceof Z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ks(e){v(e)?e():e.unsubscribe()}var ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nt={setTimeout(e,t,...n){let{delegate:r}=nt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=nt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function bn(e){nt.setTimeout(()=>{let{onUnhandledError:t}=ae;if(t)t(e);else throw e})}function Lt(){}var Ls=ao("C",void 0,void 0);function Vs(e){return ao("E",void 0,e)}function js(e){return ao("N",e,void 0)}function ao(e,t,n){return{kind:e,value:t,error:n}}var He=null;function rt(e){if(ae.useDeprecatedSynchronousErrorHandling){let t=!He;if(t&&(He={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=He;if(He=null,n)throw r}}else e()}function Bs(e){ae.useDeprecatedSynchronousErrorHandling&&He&&(He.errorThrown=!0,He.error=e)}var Ue=class extends Z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,In(t)&&t.add(this)):this.destination=od}static create(t,n,r){return new ot(t,n,r)}next(t){this.isStopped?uo(js(t),this):this._next(t)}error(t){this.isStopped?uo(Vs(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?uo(Ls,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()}}},nd=Function.prototype.bind;function co(e,t){return nd.call(e,t)}var lo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Mn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Mn(r)}else Mn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Mn(n)}}},ot=class extends Ue{constructor(t,n,r){super();let o;if(v(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ae.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&co(t.next,i),error:t.error&&co(t.error,i),complete:t.complete&&co(t.complete,i)}):o=t}this.destination=new lo(o)}};function Mn(e){ae.useDeprecatedSynchronousErrorHandling?Bs(e):bn(e)}function rd(e){throw e}function uo(e,t){let{onStoppedNotification:n}=ae;n&&nt.setTimeout(()=>n(e,t))}var od={closed:!0,next:Lt,error:rd,complete:Lt};var it=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Hs(e){return e}function Us(e){return e.length===0?Hs:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=sd(n)?n:new ot(n,r,o);return rt(()=>{let{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 r=$s(r),new r((o,i)=>{let s=new ot({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[it](){return this}pipe(...n){return Us(n)(this)}toPromise(n){return n=$s(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function $s(e){var t;return(t=e??ae.Promise)!==null&&t!==void 0?t:Promise}function id(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function sd(e){return e&&e instanceof Ue||id(e)&&In(e)}function ad(e){return v(e?.lift)}function W(e){return t=>{if(ad(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")}}function q(e,t,n,r,o){return new fo(e,t,n,r,o)}var fo=class extends Ue{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Gs=Cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Tn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gs}next(n){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?so:(this.currentObservers=null,i.push(n),new Z(()=>{this.currentObservers=null,kt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Tn(t,n),e})(),Tn=class extends ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:so}};var Vt=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function zs(e){return e&&v(e.schedule)}function Ws(e){return e[e.length-1]}function qs(e){return v(Ws(e))?e.pop():void 0}function Zs(e){return zs(Ws(e))?e.pop():void 0}function Qs(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Ys(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function $e(e){return this instanceof $e?(this.v=e,this):new $e(e)}function Ks(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){r[h]&&(o[h]=function(f){return new Promise(function(g,p){i.push([h,f,g,p])>1||a(h,f)})})}function a(h,f){try{c(r[h](f))}catch(g){d(i[0][3],g)}}function c(h){h.value instanceof $e?Promise.resolve(h.value.v).then(u,l):d(i[0][2],h)}function u(h){a("next",h)}function l(h){a("throw",h)}function d(h,f){h(f),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Js(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ys=="function"?Ys(e):e[Symbol.iterator](),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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var st=e=>e&&typeof e.length=="number"&&typeof e!="function";function Sn(e){return v(e?.then)}function Nn(e){return v(e[it])}function An(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function xn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function cd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var On=cd();function Rn(e){return v(e?.[On])}function Fn(e){return Ks(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield $e(n.read());if(o)return yield $e(void 0);yield yield $e(r)}}finally{n.releaseLock()}})}function Pn(e){return v(e?.getReader)}function U(e){if(e instanceof R)return e;if(e!=null){if(Nn(e))return ud(e);if(st(e))return ld(e);if(Sn(e))return dd(e);if(An(e))return Xs(e);if(Rn(e))return fd(e);if(Pn(e))return hd(e)}throw xn(e)}function ud(e){return new R(t=>{let n=e[it]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ld(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,bn)})}function fd(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Xs(e){return new R(t=>{pd(e,t).catch(n=>t.error(n))})}function hd(e){return Xs(Fn(e))}function pd(e,t){var n,r,o,i;return Qs(this,void 0,void 0,function*(){try{for(n=Js(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),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()})}function ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function kn(e,t=0){return W((n,r)=>{n.subscribe(q(r,o=>ne(r,e,()=>r.next(o),t),()=>ne(r,e,()=>r.complete(),t),o=>ne(r,e,()=>r.error(o),t)))})}function Ln(e,t=0){return W((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ea(e,t){return U(e).pipe(Ln(t),kn(t))}function ta(e,t){return U(e).pipe(Ln(t),kn(t))}function na(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ra(e,t){return new R(n=>{let r;return ne(n,t,()=>{r=e[On](),ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>v(r?.return)&&r.return()})}function Vn(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{ne(n,t,()=>{let r=e[Symbol.asyncIterator]();ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function oa(e,t){return Vn(Fn(e),t)}function ia(e,t){if(e!=null){if(Nn(e))return ea(e,t);if(st(e))return na(e,t);if(Sn(e))return ta(e,t);if(An(e))return Vn(e,t);if(Rn(e))return ra(e,t);if(Pn(e))return oa(e,t)}throw xn(e)}function Ge(e,t){return t?ia(e,t):U(e)}function jn(...e){let t=Zs(e);return Ge(e,t)}function J(e,t){return W((n,r)=>{let o=0;n.subscribe(q(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:gd}=Array;function md(e,t){return gd(t)?e(...t):e(t)}function Bn(e){return J(t=>md(e,t))}var{isArray:yd}=Array,{getPrototypeOf:vd,prototype:Dd,keys:Ed}=Object;function sa(e){if(e.length===1){let t=e[0];if(yd(t))return{args:t,keys:null};if(wd(t)){let n=Ed(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function wd(e){return e&&typeof e=="object"&&vd(e)===Dd}function aa(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ca(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=p=>u{i&&t.next(p),u++;let m=!1;U(n(p,l++)).subscribe(q(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;c.length&&ug(w)):g(w)}h()}catch(w){t.error(w)}}))};return e.subscribe(q(t,f,()=>{d=!0,h()})),()=>{a?.()}}function at(e,t,n=1/0){return v(t)?at((r,o)=>J((i,s)=>t(r,i,o,s))(U(e(r,o))),n):(typeof t=="number"&&(n=t),W((r,o)=>ca(r,o,e,n)))}function ho(...e){let t=qs(e),{args:n,keys:r}=sa(e),o=new R(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?aa(r,a):a),i.complete())}))}});return t?o.pipe(Bn(t)):o}var Cd=["addListener","removeListener"],_d=["addEventListener","removeEventListener"],Id=["on","off"];function jt(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return jt(e,t,n).pipe(Bn(r));let[o,i]=Td(e)?_d.map(s=>a=>e[s](t,a,n)):bd(e)?Cd.map(ua(e,t)):Md(e)?Id.map(ua(e,t)):[];if(!o&&st(e))return at(s=>jt(s,t,n))(U(e));if(!o)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1i(a)})}function ua(e,t){return n=>r=>e[n](t,r)}function bd(e){return v(e.addListener)&&v(e.removeListener)}function Md(e){return v(e.on)&&v(e.off)}function Td(e){return v(e.addEventListener)&&v(e.removeEventListener)}function ct(e,t){return W((n,r)=>{let o=0;n.subscribe(q(r,i=>e.call(t,i,o++)&&r.next(i)))})}function po(e,t){return v(t)?at(e,t,1):at(e,1)}function go(e){return W((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function mo(e,t){return W((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(q(r,c=>{o?.unsubscribe();let u=0,l=i++;U(e(c,l)).subscribe(o=q(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Hn(e){return W((t,n)=>{U(e).subscribe(q(n,()=>n.complete(),Lt)),!n.closed&&t.subscribe(n)})}var Sd="https://g.co/ng/security#xss",_=class extends Error{code;constructor(t,n){super(hr(t,n)),this.code=t}};function hr(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function pr(e){return{toString:e}.toString()}function x(e){for(let t in e)if(e[t]===x)return t;throw Error("Could not find renamed property on target object.")}function Nd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function la(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Ad=x({__forward_ref__:x});function It(e){return e.__forward_ref__=It,e.toString=function(){return ie(this())},e}function Y(e){return Wa(e)?e():e}function Wa(e){return typeof e=="function"&&e.hasOwnProperty(Ad)&&e.__forward_ref__===It}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ke(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return da(e,qa)||da(e,Za)}function da(e,t){return e.hasOwnProperty(t)?e[t]:null}function xd(e){let t=e&&(e[qa]||e[Za]);return t||null}function fa(e){return e&&(e.hasOwnProperty(ha)||e.hasOwnProperty(Od))?e[ha]:null}var qa=x({\u0275prov:x}),ha=x({\u0275inj:x}),Za=x({ngInjectableDef:x}),Od=x({ngInjectorDef:x}),D=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ya(e){return e&&!!e.\u0275providers}var Rd=x({\u0275cmp:x}),Fd=x({\u0275dir:x}),Pd=x({\u0275pipe:x});var Qn=x({\u0275fac:x}),Ht=x({__NG_ELEMENT_ID__:x}),pa=x({__NG_ENV_ID__:x});function kd(e){return typeof e=="string"?e:e==null?"":String(e)}function Ld(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():kd(e)}function Vd(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new _(-200,e)}function mi(e,t){throw new _(-201,!1)}var C=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(C||{}),So;function Qa(){return So}function re(e){let t=So;return So=e,t}function Ka(e,t,n){let r=gi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&C.Optional)return null;if(t!==void 0)return t;mi(e,"Injector")}var jd={},Ut=jd,Bd="__NG_DI_FLAG__",Kn="ngTempTokenPath",Hd="ngTokenPath",Ud=/\n/gm,$d="\u0275",ga="__source",ft;function Gd(){return ft}function be(e){let t=ft;return ft=e,t}function zd(e,t=C.Default){if(ft===void 0)throw new _(-203,!1);return ft===null?Ka(e,void 0,t):ft.get(e,t&C.Optional?null:void 0,t)}function I(e,t=C.Default){return(Qa()||zd)(Y(e),t)}function E(e,t=C.Default){return I(e,gr(t))}function gr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function No(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ud,` + `)}`}function pt(e,t){let n=e.hasOwnProperty(Qn);return n?e[Qn]:null}function yi(e,t){e.forEach(n=>Array.isArray(n)?yi(n,t):t(n))}function Ja(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Qd(e,t,n){let r=Kt(e,t);return r>=0?e[r|1]=n:(r=~r,Yd(e,r,t,n)),r}function yo(e,t){let n=Kt(e,t);if(n>=0)return e[n|1]}function Kt(e,t){return Kd(e,t,1)}function Kd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return yi(t,s=>{let a=s;Ao(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&oc(o,i),n}function oc(e,t){for(let n=0;n{t(i,r)})}}function Ao(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=fa(e),s=!i&&mr(e);if(!i&&!s){let c=e.ngModule;if(i=fa(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ao(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{yi(i.imports,l=>{Ao(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&oc(u,t)}if(!a){let u=pt(o)||(()=>new o);t({provide:o,useFactory:u,deps:oe},o),t({provide:ec,useValue:o,multi:!0},o),t({provide:$t,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Di(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Di(e,t){for(let n of e)Ya(n)&&(n=n.\u0275providers),Array.isArray(n)?Di(n,t):t(n)}var ef=x({provide:String,useValue:x});function ic(e){return e!==null&&typeof e=="object"&&ef in e}function tf(e){return!!(e&&e.useExisting)}function nf(e){return!!(e&&e.useFactory)}function mt(e){return typeof e=="function"}function rf(e){return!!e.useClass}var yr=new D(""),zn={},of={},vo;function Ei(){return vo===void 0&&(vo=new Jn),vo}var De=class{},Gt=class extends De{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Oo(t,s=>this.processProvider(s)),this.records.set(Xa,ut(void 0,this)),o.has("environment")&&this.records.set(De,ut(void 0,this));let i=this.records.get(yr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ec,oe,C.Self))}destroy(){Bt(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return Bt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Bt(this);let n=be(this),r=re(void 0),o;try{return t()}finally{be(n),re(r)}}get(t,n=Ut,r=C.Default){if(Bt(this),t.hasOwnProperty(pa))return t[pa](this);r=gr(r);let o,i=be(this),s=re(void 0);try{if(!(r&C.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=lf(t)&&gi(t);u&&this.injectableDefInScope(u)?c=ut(xo(t),zn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&C.Self?Ei():this.parent;return n=r&C.Optional&&n===Ut?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Kn]=a[Kn]||[]).unshift(ie(t)),i)throw a;return qd(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),be(i)}}resolveInjectorInitializers(){let t=T(null),n=be(this),r=re(void 0),o;try{let i=this.get($t,oe,C.Self);for(let s of i)s()}finally{be(n),re(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=mt(t)?t:Y(t&&t.provide),r=af(t);if(!mt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ut(void 0,zn,!0),o.factory=()=>No(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=T(null);try{return n.value===zn&&(n.value=of,n.value=n.factory()),typeof n.value=="object"&&n.value&&uf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function xo(e){let t=gi(e),n=t!==null?t.factory:pt(e);if(n!==null)return n;if(e instanceof D)throw new _(204,!1);if(e instanceof Function)return sf(e);throw new _(204,!1)}function sf(e){if(e.length>0)throw new _(204,!1);let n=xd(e);return n!==null?()=>n.factory(e):()=>new e}function af(e){if(ic(e))return ut(void 0,e.useValue);{let t=sc(e);return ut(t,zn)}}function sc(e,t,n){let r;if(mt(e)){let o=Y(e);return pt(o)||xo(o)}else if(ic(e))r=()=>Y(e.useValue);else if(nf(e))r=()=>e.useFactory(...No(e.deps||[]));else if(tf(e))r=()=>I(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(cf(e))r=()=>new o(...No(e.deps));else return pt(o)||xo(o)}return r}function Bt(e){if(e.destroyed)throw new _(205,!1)}function ut(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function cf(e){return!!e.deps}function uf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function lf(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function Oo(e,t){for(let n of e)Array.isArray(n)?Oo(n,t):n&&Ya(n)?Oo(n.\u0275providers,t):t(n)}function vr(e,t){e instanceof Gt&&Bt(e);let n,r=be(e),o=re(void 0);try{return t()}finally{be(r),re(o)}}function df(){return Qa()!==void 0||Gd()!=null}var Re=0,b=1,y=2,le=3,Me=4,Fe=5,Ro=6,Xn=7,Ee=8,yt=9,Ne=10,ee=11,zt=12,ma=13,Jt=14,we=15,er=16,lt=17,wi=18,Dr=19,ac=20,Te=21,Do=22,tr=23,X=24,We=25,cc=1;var Fo=7,ff=8,nr=9,ze=10,rr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(rr||{});function Se(e){return Array.isArray(e)&&typeof e[cc]=="object"}function bt(e){return Array.isArray(e)&&e[cc]===!0}function uc(e){return(e.flags&4)!==0}function Er(e){return e.componentOffset>-1}function lc(e){return(e.flags&1)===1}function Ae(e){return!!e.template}function Po(e){return(e[y]&512)!==0}var ko=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function dc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ci=(()=>{let e=()=>fc;return e.ngInherit=!0,e})();function fc(e){return e.type.prototype.ngOnChanges&&(e.setInput=pf),hf}function hf(){let e=pc(this),t=e?.current;if(t){let n=e.previous;if(n===gt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function pf(e,t,n,r,o){let i=this.declaredInputs[r],s=pc(e)||gf(e,{previous:gt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ko(u&&u.currentValue,n,c===gt),dc(e,t,o,n)}var hc="__ngSimpleChanges__";function pc(e){return e[hc]||null}function gf(e,t){return e[hc]=t}var ya=null;var de=function(e,t,n){ya?.(e,t,n)},mf="svg",yf="math";function Je(e){for(;Array.isArray(e);)e=e[Re];return e}function vf(e,t){return Je(t[e])}function _e(e,t){return Je(t[e.index])}function gc(e,t){return e.data[t]}function Pe(e,t){let n=t[e];return Se(n)?n:n[Re]}function _i(e){return(e[y]&128)===128}function va(e,t){return t==null?null:e[t]}function mc(e){e[lt]=0}function Ii(e){e[y]&1024||(e[y]|=1024,_i(e)&&Cr(e))}function wr(e){return!!(e[y]&9216||e[X]?.dirty)}function Da(e){e[Ne].changeDetectionScheduler?.notify(9),e[y]&64&&(e[y]|=1024),wr(e)&&Cr(e)}function Cr(e){e[Ne].changeDetectionScheduler?.notify(0);let t=vt(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!_i(t)));)t=vt(t)}function yc(e,t){if((e[y]&256)===256)throw new _(911,!1);e[Te]===null&&(e[Te]=[]),e[Te].push(t)}function Df(e,t){if(e[Te]===null)return;let n=e[Te].indexOf(t);n!==-1&&e[Te].splice(n,1)}function vt(e){let t=e[le];return bt(t)?t[le]:t}var M={lFrame:bc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Lo=!1;function Ef(){return M.lFrame.elementDepthCount}function wf(){M.lFrame.elementDepthCount++}function Cf(){M.lFrame.elementDepthCount--}function vc(){return M.bindingsEnabled}function _f(){return M.skipHydrationRootTNode!==null}function If(e){return M.skipHydrationRootTNode===e}function bf(){M.skipHydrationRootTNode=null}function G(){return M.lFrame.lView}function pe(){return M.lFrame.tView}function se(){let e=Dc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dc(){return M.lFrame.currentTNode}function Mf(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _r(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Ec(){return M.lFrame.isParent}function Tf(){M.lFrame.isParent=!1}function wc(){return Lo}function Ea(e){let t=Lo;return Lo=e,t}function Sf(e){return M.lFrame.bindingIndex=e}function Nf(){return M.lFrame.bindingIndex++}function Af(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function xf(){return M.lFrame.inI18n}function Of(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,Vo(t)}function Rf(){return M.lFrame.currentDirectiveIndex}function Vo(e){M.lFrame.currentDirectiveIndex=e}function Ff(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cc(e){M.lFrame.currentQueryIndex=e}function Pf(e){let t=e[b];return t.type===2?t.declTNode:t.type===1?e[Fe]:null}function _c(e,t,n){if(n&C.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&C.Host);)if(o=Pf(i),o===null||(i=i[Jt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Ic();return r.currentTNode=t,r.lView=e,!0}function bi(e){let t=Ic(),n=e[b];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ic(){let e=M.lFrame,t=e===null?null:e.child;return t===null?bc(e):t}function bc(e){let 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 e!==null&&(e.child=t),t}function Mc(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tc=Mc;function Mi(){let e=Mc();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 Xt(){return M.lFrame.selectedIndex}function qe(e){M.lFrame.selectedIndex=e}function kf(){let e=M.lFrame;return gc(e.tView,e.selectedIndex)}function Lf(){return M.lFrame.currentNamespace}var Sc=!0;function Nc(){return Sc}function Ac(e){Sc=e}function Vf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=fc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function xc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[lt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,wa(a,i)):wa(a,i)}var ht=-1,Ze=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Bf(e){return e instanceof Ze}function Hf(e){return(e.flags&8)!==0}function Uf(e){return(e.flags&16)!==0}function jo(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Uo(e,t){let n=Wf(e),r=t;for(;n>0;)r=r[Jt],n--;return r}var $o=!0;function _a(e){let t=$o;return $o=e,t}var qf=256,Rc=qf-1,Fc=5,Zf=0,fe={};function Yf(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ht)&&(r=n[Ht]),r==null&&(r=n[Ht]=Zf++);let o=r&Rc,i=1<>Fc)]|=i}function or(e,t){let n=Pc(e,t);if(n!==-1)return n;let r=t[b];r.firstCreatePass&&(e.injectorIndex=t.length,Co(r.data,e),Co(t,null),Co(r.blueprint,null));let o=kc(e,t),i=e.injectorIndex;if(zf(o)){let s=Ho(o),a=Uo(o,t),c=a[b].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Co(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function kc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Hc(o),r===null)return ht;if(n++,o=o[Jt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ht}function Go(e,t,n){Yf(e,t,n)}function Lc(e,t,n){if(n&C.Optional||e!==void 0)return e;mi(t,"NodeInjector")}function Vc(e,t,n,r){if(n&C.Optional&&r===void 0&&(r=null),!(n&(C.Self|C.Host))){let o=e[yt],i=re(void 0);try{return o?o.get(t,r,n&C.Optional):Ka(t,r,n&C.Optional)}finally{re(i)}}return Lc(r,t,n)}function jc(e,t,n,r=C.Default,o){if(e!==null){if(t[y]&2048&&!(r&C.Self)){let s=eh(e,t,n,r,fe);if(s!==fe)return s}let i=Bc(e,t,n,r,fe);if(i!==fe)return i}return Vc(t,n,r,o)}function Bc(e,t,n,r,o){let i=Jf(n);if(typeof i=="function"){if(!_c(t,e,r))return r&C.Host?Lc(o,n,r):Vc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&C.Optional))mi(n);else return s}finally{Tc()}}else if(typeof i=="number"){let s=null,a=Pc(e,t),c=ht,u=r&C.Host?t[we][Fe]:null;for((a===-1||r&C.SkipSelf)&&(c=a===-1?kc(e,t):t[a+8],c===ht||!ba(r,!1)?a=-1:(s=t[b],a=Ho(c),t=Uo(c,t)));a!==-1;){let l=t[b];if(Ia(i,a,l.data)){let d=Qf(a,t,n,s,r,u);if(d!==fe)return d}c=t[a+8],c!==ht&&ba(r,t[b].data[a+8]===u)&&Ia(i,a,t)?(s=l,a=Ho(c),t=Uo(c,t)):a=-1}}return o}function Qf(e,t,n,r,o,i){let s=t[b],a=s.data[e+8],c=r==null?Er(a)&&$o:r!=s&&(a.type&3)!==0,u=o&C.Host&&i===a,l=Kf(a,s,n,c,u);return l!==null?Dt(t,s,l,a):fe}function Kf(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&Ae(f)&&f.type===n)return c}return null}function Dt(e,t,n,r){let o=e[n],i=t.data;if(Bf(o)){let s=o;s.resolving&&Vd(Ld(i[n]));let a=_a(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?re(s.injectImpl):null,l=_c(e,r,C.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Vf(n,i[n],t)}finally{u!==null&&re(u),_a(a),s.resolving=!1,Tc()}}return o}function Jf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ht)?e[Ht]:void 0;return typeof t=="number"?t>=0?t&Rc:Xf:t}function Ia(e,t,n){let r=1<>Fc)]&r)}function ba(e,t){return!(e&C.Self)&&!(e&C.Host&&t)}var ir=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return jc(this._tNode,this._lView,t,gr(r),n)}};function Xf(){return new ir(se(),G())}function Ti(e){return pr(()=>{let t=e.prototype.constructor,n=t[Qn]||zo(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Qn]||zo(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function zo(e){return Wa(e)?()=>{let t=zo(Y(e));return t&&t()}:pt(e)}function eh(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=Bc(i,s,n,r|C.Self,fe);if(a!==fe)return a;let c=i.parent;if(!c){let u=s[ac];if(u){let l=u.get(n,fe,r);if(l!==fe)return l}c=Hc(s),s=s[Jt]}i=c}return o}function Hc(e){let t=e[b],n=t.type;return n===2?t.declTNode:n===1?e[Fe]:null}function Ma(e,t=null,n=null,r){let o=th(e,t,n,r);return o.resolveInjectorInitializers(),o}function th(e,t=null,n=null,r,o=new Set){let i=[n||oe,Xd(e)];return r=r||(typeof e=="object"?void 0:ie(e)),new Gt(i,t||Ei(),r||null,o)}var Ye=class e{static THROW_IF_NOT_FOUND=Ut;static NULL=new Jn;static create(t,n){if(Array.isArray(t))return Ma({name:""},n,t,"");{let r=t.name??"";return Ma({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>I(Xa)});static __NG_ELEMENT_ID__=-1};var nh=new D("");nh.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&C.Optional)return null;throw new _(204,!1)};var Uc=!1,$c=(()=>{class e{static __NG_ELEMENT_ID__=rh;static __NG_ENV_ID__=n=>n}return e})(),Wo=class extends $c{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yc(this._lView,t),()=>Df(this._lView,t)}};function rh(){return new Wo(G())}var qt=class{},Si=new D("",{providedIn:"root",factory:()=>!1});var Gc=new D(""),zc=new D(""),Mt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Vt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var qo=class extends ce{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,df()&&(this.destroyRef=E($c,{optional:!0})??void 0,this.pendingTasks=E(Mt,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Q=qo;function sr(...e){}function Wc(e){let t,n;function r(){e=sr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ta(e){return queueMicrotask(()=>e()),()=>{e=sr}}var Ni="isAngularZone",ar=Ni+"_ID",oh=0,V=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Q(!1);onMicrotaskEmpty=new Q(!1);onStable=new Q(!1);onError=new Q(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Uc}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,ah(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ni)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,ih,sr,sr);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)}},ih={};function Ai(e){if(e._nesting==0&&!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 sh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Wc(()=>{e.callbackScheduled=!1,Zo(e),e.isCheckStableRunning=!0,Ai(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Zo(e)}function ah(e){let t=()=>{sh(e)},n=oh++;e._inner=e._inner.fork({name:"angular",properties:{[Ni]:!0,[ar]:n,[ar+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(ch(c))return r.invokeTask(i,s,a,c);try{return Sa(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Na(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Sa(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!uh(c)&&t(),Na(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Zo(e),Ai(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Zo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Sa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Na(e){e._nesting--,Ai(e)}var Yo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Q;onMicrotaskEmpty=new Q;onStable=new Q;onError=new Q;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)}};function ch(e){return qc(e,"__ignore_ng_zone__")}function uh(e){return qc(e,"__scheduler_tick__")}function qc(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var xe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},lh=new D("",{providedIn:"root",factory:()=>{let e=E(V),t=E(xe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function dh(){return Zc(se(),G())}function Zc(e,t){return new ke(_e(e,t))}var ke=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dh}return e})();function fh(e){return(e.flags&128)===128}var Yc=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Yc||{}),Qc=new Map,hh=0;function ph(){return hh++}function gh(e){Qc.set(e[Dr],e)}function Qo(e){Qc.delete(e[Dr])}var Aa="__ngContext__";function Et(e,t){Se(t)?(e[Aa]=t[Dr],gh(t)):e[Aa]=t}function Kc(e){return Xc(e[zt])}function Jc(e){return Xc(e[Me])}function Xc(e){for(;e!==null&&!bt(e);)e=e[Me];return e}var Ko;function eu(e){Ko=e}function mh(){if(Ko!==void 0)return Ko;if(typeof document<"u")return document;throw new _(210,!1)}var xi=new D("",{providedIn:"root",factory:()=>yh}),yh="ng",Oi=new D(""),Le=new D("",{providedIn:"platform",factory:()=>"unknown"});var Ri=new D("",{providedIn:"root",factory:()=>mh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vh="h",Dh="b";var tu=!1,Eh=new D("",{providedIn:"root",factory:()=>tu});var xa=new Set;function en(e){xa.has(e)||(xa.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var wh=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ch=()=>null;function Fi(e,t,n=!1){return Ch(e,t,n)}var he=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(he||{});var Jo=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Sd})`}};function Pi(e){return e instanceof Jo?e.changingThisBreaksApplicationSecurity:e}var Oe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Oe||{}),Ce=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ce||{}),_h;function nu(e,t){return _h(e,t)}function dt(e,t,n,r,o){if(r!=null){let i,s=!1;bt(r)?i=r:Se(r)&&(s=!0,r=r[Re]);let a=Je(r);e===0&&n!==null?o==null?iu(t,n,a):Xo(t,n,a,o||null,!0):e===1&&n!==null?Xo(t,n,a,o||null,!0):e===2?Vh(t,a,s):e===3&&t.destroyNode(a),i!=null&&Bh(t,e,i,n,o)}}function Ih(e,t){return e.createText(t)}function ru(e,t,n){return e.createElement(t,n)}function bh(e,t){ou(e,t),t[Re]=null,t[Fe]=null}function ou(e,t){t[Ne].changeDetectionScheduler?.notify(10),Vi(e,t,t[ee],2,null,null)}function Mh(e){let t=e[zt];if(!t)return _o(e[b],e);for(;t;){let n=null;if(Se(t))n=t[zt];else{let r=t[ze];r&&(n=r)}if(!n){for(;t&&!t[Me]&&t!==e;)Se(t)&&_o(t[b],t),t=t[le];t===null&&(t=e),Se(t)&&_o(t[b],t),n=t&&t[Me]}t=n}}function Th(e,t){let n=e[nr],r=t[le];if(Se(r))e[y]|=rr.HasTransplantedViews;else{let o=r[le][we];t[we]!==o&&(e[y]|=rr.HasTransplantedViews)}n===null?e[nr]=[t]:n.push(t)}function ki(e,t){let n=e[nr],r=n.indexOf(t);n.splice(r,1)}function Sh(e,t){if(e.length<=ze)return;let n=ze+t,r=e[n];if(r){let o=r[er];o!==null&&o!==e&&ki(o,r),t>0&&(e[n-1][Me]=r[Me]);let i=Ja(e,ze+t);bh(r[b],r);let s=i[wi];s!==null&&s.detachView(i[b]),r[le]=null,r[Me]=null,r[y]&=-129}return r}function Nh(e,t){if(!(t[y]&256)){let n=t[ee];n.destroyNode&&Vi(e,t,n,3,null,null),Mh(t)}}function _o(e,t){if(t[y]&256)return;let n=T(null);try{t[y]&=-129,t[y]|=256,t[X]&&oo(t[X]),xh(e,t),Ah(e,t),t[b].type===1&&t[ee].destroy();let r=t[er];if(r!==null&&bt(t[le])){r!==t[le]&&ki(r,t);let o=t[wi];o!==null&&o.detachView(e)}Qo(t)}finally{T(n)}}function Ah(e,t){let n=e.cleanup,r=t[Xn];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Xn]=null);let o=t[Te];if(o!==null){t[Te]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===he.None||i===he.Emulated)return null}return _e(r,n)}}function Xo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function iu(e,t,n){e.appendChild(t,n)}function Oa(e,t,n,r,o){r!==null?Xo(e,t,n,r,o):iu(e,t,n)}function Fh(e,t,n){return kh(e,t,n)}function Ph(e,t,n){return e.type&40?_e(e,n):null}var kh=Ph,Ra;function su(e,t,n,r){let o=Oh(e,r,t),i=t[ee],s=r.parent||t[Fe],a=Fh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ue(r))return!1;s=!0}}}}return ue(r)||s}function ue(e){return(e&1)===0}function qh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ue(s)&&(t+=Fa(i,o),o=""),r=s,i=i||!ue(r);n++}return o!==""&&(t+=Fa(i,o)),t}function Jh(e){return e.map(Kh).join(",")}function Xh(e){let t=[],n=[],r=1,o=2;for(;rWe&&lu(e,t,We,!1),de(s?2:0,o),n(r,o)}finally{qe(i),de(s?3:1,o)}}function pu(e,t,n){if(uc(t)){let r=T(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function cp(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return _f()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Pa(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Oe.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?ka(r,n,u,a,c):ka(r,n,u,a)}return r}function ka(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function up(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mp(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Er(n)&&_p(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||or(n,t),Et(r,t);let s=n.initialInputs;for(let a=o;a{Cr(e.lView)},consumerOnSignalRead(){this.lView[X]=this}});function kp(e){let t=e[X]??Object.create(Lp);return t.lView=e,t}var Lp=L(A({},Pt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=vt(e.lView);for(;t&&!bu(t[b]);)t=vt(t);t&&Ii(t)},consumerOnSignalRead(){this.lView[X]=this}});function bu(e){return e.type!==2}function Mu(e){if(e[tr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[tr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[y]&8192)}}var Vp=100;function Tu(e,t=!0,n=0){let o=e[Ne].rendererFactory,i=!1;i||o.begin?.();try{jp(e,n)}catch(s){throw t&&Cu(e,s),s}finally{i||o.end?.()}}function jp(e,t){let n=wc();try{Ea(!0),ni(e,t);let r=0;for(;wr(e);){if(r===Vp)throw new _(103,!1);r++,ni(e,1)}}finally{Ea(n)}}function Bp(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;bi(t);let a=!0,c=null,u=null;i||(bu(e)?(u=Op(t),c=Dn(u)):_s()===null?(a=!1,u=kp(t),c=Dn(u)):t[X]&&(oo(t[X]),t[X]=null));try{mc(t),Sf(e.bindingStartIndex),n!==null&&hu(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Wn(t,f,null)}else{let f=e.preOrderHooks;f!==null&&qn(t,f,0,null),Eo(t,0)}if(s||Hp(t),Mu(t),Su(t,0),e.contentQueries!==null&&Eu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Wn(t,f)}else{let f=e.contentHooks;f!==null&&qn(t,f,1),Eo(t,1)}ep(e,t);let d=e.components;d!==null&&Au(t,d,0);let h=e.viewQuery;if(h!==null&&ti(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Wn(t,f)}else{let f=e.viewHooks;f!==null&&qn(t,f,2),Eo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Do]){for(let f of t[Do])f();t[Do]=null}i||(t[y]&=-73)}catch(l){throw i||Cr(t),l}finally{u!==null&&(no(u,c),a&&Fp(u)),Mi()}}function Su(e,t){for(let n=Kc(e);n!==null;n=Jc(n))for(let r=ze;r-1&&(Sh(t,r),Ja(n,r))}this._attachedToViewContainer=!1}Nh(this._lView[b],this._lView)}onDestroy(t){yc(this._lView,t)}markForCheck(){Gi(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Ii(this._cdRefInjectingView||this._lView)}detach(){this._lView[y]&=-129}reattach(){Da(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,Tu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Po(this._lView),n=this._lView[er];n!==null&&!t&&ki(n,this._lView),ou(this._lView[b],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=Po(this._lView),r=this._lView[er];r!==null&&!n&&Th(r,this._lView),Da(this._lView)}};var ri=class{resolveComponentFactory(t){throw Error(`No component factory found for ${ie(t)}.`)}},Yt=class{static NULL=new ri},wt=class{};var oi=class{},ur=class{},Ct=class{},tn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>$p()}return e})();function $p(){let e=G(),t=se(),n=Pe(t.index,e);return(Se(n)?n:e)[ee]}var Gp=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();function ii(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&au(e,n,i.join(" "))}}function Kp(e,t,n){let r=e.projection=[];for(let o=0;o{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rc(!1,n.type),o=r.length>0?Xp([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(I(De))})}return e})();function xu(e){return pr(()=>{let t=Ou(e),n=L(A({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||he.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&en("NgStandalone"),Ru(n);let r=e.dependencies;return n.directiveDefs=ja(r,!1),n.pipeDefs=ja(r,!0),n.id=rg(n),n})}function tg(e){return mr(e)||tc(e)}function ng(e){return e!==null}function Xe(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Va(e,t){if(e==null)return gt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Oe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Oe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ge(e){return pr(()=>{let t=Ou(e);return Ru(t),t})}function Ou(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||gt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Va(e.inputs,t),outputs:Va(e.outputs),debugInfo:null}}function Ru(e){e.features?.forEach(t=>t(e))}function ja(e,t){if(!e)return null;let n=t?nc:tg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(ng)}function rg(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function og(e){return typeof e=="function"&&e[te]!==void 0}var Fu=new D("");function nn(e){return!!e&&typeof e.then=="function"}function Pu(e){return!!e&&typeof e.subscribe=="function"}var ig=new D("");var ku=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=E(ig,{optional:!0})??[];injector=E(Ye);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=vr(this.injector,o);if(nn(i))n.push(i);else if(Pu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sg=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new ui})}return e})(),ui=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Lu=new D("");function ag(){Os(()=>{throw new _(600,!1)})}function cg(e){return e.isBoundToModule}var ug=10;function lg(e,t,n){try{let r=n();return nn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Tt=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=E(lh);afterRenderManager=E(wh);zonelessEnabled=E(Si);rootEffectScheduler=E(sg);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new ce;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=E(Mt).hasPendingTasks.pipe(J(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=E(De);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ur;if(!this._injector.get(ku).done){let h=!o&&Jd(n),f=!1;throw new _(405,f)}let s;o?s=n:s=this._injector.get(Yt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=cg(s)?void 0:this._injector.get(wt),c=r||s.selector,u=s.create(Ye.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Fu,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Zn(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new _(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,T(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Ct,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++wr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Zn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Lu,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Zn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function dg(e,t,n,r){if(!n&&!wr(e))return;Tu(e,t,n&&!r?0:1)}var Tw=new RegExp(`^(\\d+)*(${Dh}|${vh})*(.*)`);function br(e,t){en("NgSignals");let n=Rs(e),r=n[te];return t?.equal&&(r.equal=t.equal),n.set=o=>io(r,o),n.update=o=>Fs(r,o),n.asReadonly=fg.bind(n),n}function fg(){let e=this[te];if(e.readonlyFn===void 0){let t=()=>this();t[te]=e,e.readonlyFn=t}return e.readonlyFn}function Vu(e){return og(e)&&typeof e.set=="function"}function hg(e){return Object.getPrototypeOf(e.prototype).constructor}function et(e){let t=hg(e.type),n=!0,r=[e];for(;t;){let o;if(Ae(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Un(e.inputs),s.inputTransforms=Un(e.inputTransforms),s.declaredInputs=Un(e.declaredInputs),s.outputs=Un(e.outputs);let a=o.hostBindings;a&&vg(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&mg(e,c),u&&yg(e,u),pg(e,o),Nd(e.outputs,o.outputs),Ae(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Wt(o.hostAttrs,n=Wt(n,o.hostAttrs))}}function Un(e){return e===gt?{}:e===oe?[]:e}function mg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function yg(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function vg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ju(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Dg(e){return(e.flags&32)===32}function $n(e,t){return e<<17|t<<2}function Qe(e){return e>>17&32767}function Eg(e){return(e&2)==2}function wg(e,t){return e&131071|t<<17}function li(e){return e|2}function _t(e){return(e&131068)>>2}function Io(e,t){return e&-131069|t<<2}function Cg(e){return(e&1)===1}function di(e){return e|1}function _g(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Qe(s),c=_t(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Kt(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Qe(e[a+1]);e[r+1]=$n(h,a),h!==0&&(e[h+1]=Io(e[h+1],r)),e[a+1]=wg(e[a+1],r)}else e[r+1]=$n(a,0),a!==0&&(e[a+1]=Io(e[a+1],r)),a=r;else e[r+1]=$n(c,0),a===0?a=r:e[c+1]=Io(e[c+1],r),c=r;u&&(e[r+1]=li(e[r+1])),Ba(e,l,r,!0),Ba(e,l,r,!1),Ig(t,l,e,r,i),s=$n(a,c),i?t.classBindings=s:t.styleBindings=s}function Ig(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Kt(i,t)>=0&&(n[r+1]=di(n[r+1]))}function Ba(e,t,n,r){let o=e[n+1],i=t===null,s=r?Qe(o):_t(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];bg(c,t)&&(a=!0,e[s+1]=r?di(u):li(u)),s=r?Qe(u):_t(u)}a&&(e[n+1]=r?li(o):di(o))}function bg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Kt(e,t)>=0:!1}function Ha(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";$i(e,n,i[s],s,r)}function zi(e,t){return Mg(e,t,null,!0),zi}function Mg(e,t,n,r){let o=G(),i=pe(),s=Af(2);if(i.firstUpdatePass&&Sg(i,e,s,r),t!==Ir&&ju(o,s,t)){let a=i.data[Xt()];Rg(i,a,o,o[ee],e,o[s+1]=Fg(t,n),r,s)}}function Tg(e,t){return t>=e.expandoStartIndex}function Sg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Xt()],s=Tg(e,n);Pg(i,r)&&t===null&&!s&&(t=!1),t=Ng(o,i,t,r),_g(o,i,t,n,s,r)}}function Ng(e,t,n,r){let o=Ff(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=bo(null,e,t,n,r),n=Qt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=bo(o,e,t,n,r),i===null){let c=Ag(e,t,r);c!==void 0&&Array.isArray(c)&&(c=bo(null,e,t,c[1],r),c=Qt(c,t.attrs,r),xg(e,t,r,c))}else i=Og(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ag(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_t(r)!==0)return e[Qe(r)]}function xg(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Qe(o)]=r}function Og(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===Ir&&(h=d?oe:void 0);let f=d?yo(h,r):l===r?h:void 0;if(u&&!dr(f)&&(f=yo(c,r)),dr(f)&&(a=f,s))return a;let g=e[o+1];o=s?Qe(g):_t(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=yo(c,r))}return a}function dr(e){return e!==void 0}function Fg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ie(Pi(e)))),e}function Pg(e,t){return(e.flags&(t?8:16))!==0}function kg(e,t,n,r,o,i){let s=t.consts,a=va(s,o),c=Ui(t,e,2,r,a);return hp(t,n,c,va(s,i)),c.attrs!==null&&ii(c,c.attrs,!1),c.mergedAttrs!==null&&ii(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function F(e,t,n,r){let o=G(),i=pe(),s=We+e,a=o[ee],c=i.firstCreatePass?kg(s,i,o,t,n,r):i.data[s],u=Lg(i,o,c,a,t,e);o[s]=u;let l=lc(c);return _r(c,!0),cu(a,u,c),!Dg(c)&&Nc()&&su(i,o,u,c),Ef()===0&&Et(u,o),wf(),l&&(np(i,o,c),pu(i,c,o)),r!==null&&rp(o,c),F}function P(){let e=se();Ec()?Tf():(e=e.parent,_r(e,!1));let t=e;If(t)&&bf(),Cf();let n=pe();return n.firstCreatePass&&(xc(n,e),uc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Hf(t)&&Ha(n,t,G(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Uf(t)&&Ha(n,t,G(),t.stylesWithoutHost,!1),P}var Lg=(e,t,n,r,o,i)=>(Ac(!0),ru(r,o,Lf()));var fr="en-US";var Vg=fr;function jg(e){typeof e=="string"&&(Vg=e.toLowerCase().replace(/_/g,"-"))}var Bg=(e,t,n)=>{};function z(e,t,n,r){let o=G(),i=pe(),s=se();return Bu(i,o,o[ee],s,e,t,r),z}function Hg(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Bu(e,t,n,r,o,i,s){let a=lc(r),u=e.firstCreatePass&&Tp(e),l=t[Ee],d=Mp(t),h=!0;if(r.type&3||s){let p=_e(r,t),m=s?s(p):p,w=d.length,j=s?$=>s(Je($[r.index])):r.index,N=null;if(!s&&a&&(N=Hg(e,t,o,r.index)),N!==null){let $=N.__ngLastListenerFn__||N;$.__ngNextListenerFn__=i,N.__ngLastListenerFn__=i,h=!1}else{i=Ga(r,t,l,i),Bg(p,o,i);let $=n.listen(m,o,i);d.push(i,$),u&&u.push(o,j,w,w+1)}}else i=Ga(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let p=g.length;if(p)for(let m=0;m-1?Pe(e.index,t):t;Gi(s,5);let a=$a(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=$a(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function k(e,t=""){let n=G(),r=pe(),o=e+We,i=r.firstCreatePass?Ui(r,o,1,t,null):r.data[o],s=Ug(r,n,i,t,e);n[o]=s,Nc()&&su(r,n,s,i),_r(i,!1)}var Ug=(e,t,n,r,o)=>(Ac(!0),Ih(t[ee],r));function Mr(e,t,n){Vu(t)&&(t=t());let r=G(),o=Nf();if(ju(r,o,t)){let i=pe(),s=kf();dp(i,s,r,e,t,r[ee],n,!1)}return Mr}function Wi(e,t){let n=Vu(e);return n&&e.set(t),n}function Tr(e,t){let n=G(),r=pe(),o=se();return Bu(r,n,n[ee],o,e,t),Tr}function $g(e,t,n){let r=pe();if(r.firstCreatePass){let o=Ae(e);fi(n,r.data,r.blueprint,o,!0),fi(t,r.data,r.blueprint,o,!1)}}function fi(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i>20;if(mt(e)||!e.multi){let f=new Ze(u,o,O),g=To(c,t,o?l:l+h,d);g===-1?(Go(or(a,s),i,c),Mo(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=To(c,t,l+h,d),g=To(c,t,l,l+h),p=f>=0&&n[f],m=g>=0&&n[g];if(o&&!m||!o&&!p){Go(or(a,s),i,c);let w=Wg(o?zg:Gg,n.length,o,r,u);!o&&m&&(n[g].providerFactory=w),Mo(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Hu(n[o?g:f],u,!o&&r);Mo(i,e,f>-1?f:g,w)}!o&&r&&m&&n[g].componentProviders++}}}function Mo(e,t,n,r){let o=mt(t),i=rf(t);if(o||i){let c=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Hu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function To(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>$g(r,o?o(e):e,t)}}var qg=(()=>{class e{zone=E(V);changeDetectionScheduler=E(qt);applicationRef=E(Tt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zg({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new V(L(A({},Yg()),{scheduleInRootZone:n})),[{provide:V,useFactory:e},{provide:$t,multi:!0,useFactory:()=>{let r=E(qg,{optional:!0});return()=>r.initialize()}},{provide:$t,multi:!0,useFactory:()=>{let r=E(Qg);return()=>{r.initialize()}}},t===!0?{provide:Gc,useValue:!0}:[],{provide:zc,useValue:n??Uc}]}function Yg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Qg=(()=>{class e{subscription=new Z;initialized=!1;zone=E(V);pendingTasks=E(Mt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{V.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Kg=(()=>{class e{appRef=E(Tt);taskService=E(Mt);ngZone=E(V);zonelessEnabled=E(Si);disableScheduling=E(Gc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Z;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ar):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(E(zc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Yo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ta:Wc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ar+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ta(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jg(){return typeof $localize<"u"&&$localize.locale||fr}var qi=new D("",{providedIn:"root",factory:()=>E(qi,C.Optional|C.SkipSelf)||Jg()});var pi=new D("");function Gn(e){return!e.moduleRef}function Xg(e){let t=Gn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(V);return n.run(()=>{Gn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(xe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Gn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(pi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(pi);s.add(i),e.moduleRef.onDestroy(()=>{Zn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return lg(r,n,()=>{let i=t.get(ku);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(qi,fr);if(jg(s||fr),Gn(e)){let a=t.get(Tt);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return em(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function em(e,t){let n=e.injector.get(Tt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}var Yn=null;function tm(e=[],t){return Ye.create({name:t,providers:[{provide:yr,useValue:"platform"},{provide:pi,useValue:new Set([()=>Yn=null])},...e]})}function nm(e=[]){if(Yn)return Yn;let t=tm(e);return Yn=t,ag(),rm(t),t}function rm(e){let t=e.get(Oi,null);vr(e,()=>{t?.forEach(n=>n())})}var Nr=(()=>{class e{static __NG_ELEMENT_ID__=om}return e})();function om(e){return im(se(),G(),(e&16)===16)}function im(e,t,n){if(Er(e)&&!n){let r=Pe(e.index,t);return new Zt(r,r)}else if(e.type&175){let r=t[we];return new Zt(r,t)}return null}function Uu(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=nm(r),i=[Zg({}),{provide:qt,useExisting:Kg},...n||[]],s=new lr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Xg({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Zi(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ar(e,t){en("NgSignals");let n=Ns(e);return t?.equal&&(n[te].equal=t.equal),n}function Ve(e){let t=T(null);try{return e()}finally{T(t)}}var za=class{[te];constructor(t){this[te]=t}destroy(){this[te].destroy()}};var Gu=null;function Nt(){return Gu}function zu(e){Gu??=e}var xr=class{};var me=new D("");function Or(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Yi=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xe({type:e});static \u0275inj=Ke({})}return e})(),Wu="browser",am="server";function Rr(e){return e===am}var St=class{};var on=class{},Pr=class{},Ie=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Ki=class{encodeKey(t){return qu(t)}encodeValue(t){return qu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function um(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var lm=/%(\d[a-f0-9])/gi,dm={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qu(e){return encodeURIComponent(e).replace(lm,(t,n)=>dm[n]??t)}function Fr(e){return`${e}`}var ye=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ki,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=um(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Fr):[Fr(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Fr(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Fr(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Ji=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function fm(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Zu(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Yu(e){return typeof Blob<"u"&&e instanceof Blob}function Qu(e){return typeof FormData<"u"&&e instanceof FormData}function hm(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var rn=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(fm(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Ie,this.context??=new Ji,!this.params)this.params=new ye,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Be=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Be||{}),sn=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ie,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},kr=class e extends sn{constructor(t={}){super(t)}type=Be.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},an=class e extends sn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Be.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},je=class extends sn{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},el=200,pm=204;function Qi(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var cn=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof rn)i=n;else{let c;o.headers instanceof Ie?c=o.headers:c=new Ie(o.headers);let u;o.params&&(o.params instanceof ye?u=o.params:u=new ye({fromObject:o.params})),i=new rn(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=jn(i).pipe(po(c=>this.handler.handle(c)));if(n instanceof rn||o.observe==="events")return s;let a=s.pipe(ct(c=>c instanceof an));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(J(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(J(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(J(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(J(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ye().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Qi(o,r))}post(n,r,o={}){return this.request("POST",n,Qi(o,r))}put(n,r,o={}){return this.request("PUT",n,Qi(o,r))}static \u0275fac=function(r){return new(r||e)(I(on))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),gm=/^\)\]\}',?\n/,mm="X-Request-URL";function Ku(e){if(e.url)return e.url;let t=mm.toLocaleLowerCase();return e.headers.get(t)}var ym=(()=>{class e{fetchImpl=E(Xi,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=E(V);handle(n){return new R(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(es,i=>r.error(new je({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Rt(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,A({signal:r},i)));vm(f),o.next({type:Be.Sent}),s=yield f}catch(f){o.error(new je({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new Ie(s.headers),c=s.statusText,u=Ku(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new kr({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],p=s.body.getReader(),m=0,w,j,N=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Rt(this,null,function*(){for(;;){let{done:K,value:B}=yield p.read();if(K)break;if(g.push(B),m+=B.length,n.reportProgress){j=n.responseType==="text"?(j??"")+(w??=new TextDecoder).decode(B,{stream:!0}):void 0;let ve=()=>o.next({type:Be.DownloadProgress,total:f?+f:void 0,loaded:m,partialText:j});N?N.run(ve):ve()}}}));let $=this.concatChunks(g,m);try{let K=s.headers.get("Content-Type")??"";d=this.parseBody(n,$,K)}catch(K){o.error(new je({error:K,headers:new Ie(s.headers),status:s.status,statusText:s.statusText,url:Ku(s)??n.urlWithParams}));return}}l===0&&(l=d?el:0),l>=200&&l<300?(o.next(new an({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new je({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(gm,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Xi=class{};function es(){}function vm(e){e.then(es,es)}function Dm(e,t){return t(e)}function Em(e,t,n){return(r,o)=>vr(n,()=>t(r,i=>e(i,o)))}var tl=new D(""),wm=new D(""),Cm=new D("",{providedIn:"root",factory:()=>!0});var Ju=(()=>{class e extends on{backend;injector;chain=null;pendingTasks=E(Mt);contributeToStability=E(Cm);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(tl),...this.injector.get(wm,[])]));this.chain=r.reduceRight((o,i)=>Em(o,i,this.injector),Dm)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(go(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(Pr),I(De))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();var _m=/^\)\]\}',?\n/;function Im(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Xu=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ge(r.\u0275loadImpl()):jn(null)).pipe(mo(()=>new R(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((p,m)=>s.setRequestHeader(p,m.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let p=n.detectContentTypeHeader();p!==null&&s.setRequestHeader("Content-Type",p)}if(n.responseType){let p=n.responseType.toLowerCase();s.responseType=p!=="json"?p:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let p=s.statusText||"OK",m=new Ie(s.getAllResponseHeaders()),w=Im(s)||n.url;return c=new kr({headers:m,status:s.status,statusText:p,url:w}),c},l=()=>{let{headers:p,status:m,statusText:w,url:j}=u(),N=null;m!==pm&&(N=typeof s.response>"u"?s.responseText:s.response),m===0&&(m=N?el:0);let $=m>=200&&m<300;if(n.responseType==="json"&&typeof N=="string"){let K=N;N=N.replace(_m,"");try{N=N!==""?JSON.parse(N):null}catch(B){N=K,$&&($=!1,N={error:B,text:N})}}$?(i.next(new an({body:N,headers:p,status:m,statusText:w,url:j||void 0})),i.complete()):i.error(new je({error:N,headers:p,status:m,statusText:w,url:j||void 0}))},d=p=>{let{url:m}=u(),w=new je({error:p,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(w)},h=!1,f=p=>{h||(i.next(u()),h=!0);let m={type:Be.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),n.responseType==="text"&&s.responseText&&(m.partialText=s.responseText),i.next(m)},g=p=>{let m={type:Be.UploadProgress,loaded:p.loaded};p.lengthComputable&&(m.total=p.total),i.next(m)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Be.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(St))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),nl=new D(""),bm="XSRF-TOKEN",Mm=new D("",{providedIn:"root",factory:()=>bm}),Tm="X-XSRF-TOKEN",Sm=new D("",{providedIn:"root",factory:()=>Tm}),Lr=class{},Nm=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Or(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(me),I(Le),I(Mm))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function Am(e,t){let n=e.url.toLowerCase();if(!E(nl)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=E(Lr).getToken(),o=E(Sm);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function rl(...e){let t=[cn,Xu,Ju,{provide:on,useExisting:Ju},{provide:Pr,useFactory:()=>E(ym,{optional:!0})??E(Xu)},{provide:tl,useValue:Am,multi:!0},{provide:nl,useValue:!0},{provide:Lr,useClass:Nm}];for(let n of e)t.push(...n.\u0275providers);return vi(t)}var ns=class extends xr{supportsDOMEvents=!0},rs=class e extends ns{static makeCurrent(){zu(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Om();return n==null?null:Rm(n)}resetBaseElement(){un=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Or(document.cookie,t)}},un=null;function Om(){return un=un||document.querySelector("base"),un?un.getAttribute("href"):null}function Rm(e){return new URL(e,document.baseURI).pathname}var Fm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),os=new D(""),ll=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I(os),I(V))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Vr=class{_doc;constructor(t){this._doc=t}manager},is="ng-app-id";function il(e){for(let t of e)t.remove()}function sl(e,t){let n=t.createElement("style");return n.textContent=e,n}function Pm(e,t,n){let r=e.head?.querySelectorAll(`style[${is}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(is),n.set(o.textContent,{usage:0,elements:[o]}))}function ss(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var dl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Rr(i),Pm(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,sl);r?.forEach(o=>this.addUsage(o,this.external,ss))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(il(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])il(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,sl(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ss(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(is,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(me),I(xi),I(Ri,8),I(Le))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),ts={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/Math/MathML"},cs=/%COMP%/g,fl="%COMP%",km=`_nghost-${fl}`,Lm=`_ngcontent-${fl}`,Vm=!0,jm=new D("",{providedIn:"root",factory:()=>Vm});function Bm(e){return Lm.replace(cs,e)}function Hm(e){return km.replace(cs,e)}function hl(e,t){return t.map(n=>n.replace(cs,e))}var al=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Rr(a),this.defaultRenderer=new ln(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===he.ShadowDom&&(r=L(A({},r),{encapsulation:he.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof jr?o.applyToHost(n):o instanceof dn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case he.Emulated:i=new jr(c,u,r,this.appId,l,s,a,d);break;case he.ShadowDom:return new as(c,u,n,r,s,a,this.nonce,d);default:i=new dn(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(I(ll),I(dl),I(xi),I(jm),I(me),I(Le),I(V),I(Ri))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),ln=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ts[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(cl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(cl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new _(-5104,!1);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;let i=ts[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ts[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&(Ce.DashCase|Ce.Important)?t.style.setProperty(n,r,o&Ce.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ce.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Nt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function cl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var as=class extends ln{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=hl(o.id,o.styles);for(let d of u){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=d,this.shadowRoot.appendChild(h)}let l=o.getExternalStyles?.();if(l)for(let d of l){let h=ss(d,i);a&&h.setAttribute("nonce",a),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},dn=class extends ln{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?hl(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},jr=class extends dn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Bm(u),this.hostAttr=Hm(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Um=(()=>{class e extends Vr{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)}static \u0275fac=function(r){return new(r||e)(I(me))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),ul=["alt","control","meta","shift"],$m={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Gm={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},zm=(()=>{class e extends Vr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ul.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=$m[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ul.forEach(s=>{if(s!==o){let a=Gm[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(me))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function pl(e,t){return Uu(A({rootComponent:e},Wm(t)))}function Wm(e){return{appProviders:[...Km,...e?.providers??[]],platformProviders:Qm}}function qm(){rs.makeCurrent()}function Zm(){return new xe}function Ym(){return eu(document),document}var Qm=[{provide:Le,useValue:Wu},{provide:Oi,useValue:qm,multi:!0},{provide:me,useFactory:Ym,deps:[]}];var Km=[{provide:yr,useValue:"root"},{provide:xe,useFactory:Zm,deps:[]},{provide:os,useClass:Um,multi:!0,deps:[me,V,Le]},{provide:os,useClass:zm,multi:!0,deps:[me]},al,dl,ll,{provide:Ct,useExisting:al},{provide:St,useClass:Fm,deps:[]},[]];var Cl=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(O(tn),O(ke))};static \u0275dir=ge({type:e})}return e})(),_l=(()=>{class e extends Cl{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(e)))(o||e)}})();static \u0275dir=ge({type:e,features:[et]})}return e})(),hs=new D(""),Jm={provide:hs,useExisting:It(()=>ps),multi:!0},ps=(()=>{class e extends _l{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(e)))(o||e)}})();static \u0275dir=ge({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Sr([Jm]),et]})}return e})(),Xm={provide:hs,useExisting:It(()=>Gr),multi:!0};function ey(){let e=Nt()?Nt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var ty=new D(""),Gr=(()=>{class e extends Cl{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!ey())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(O(tn),O(ke),O(ty,8))};static \u0275dir=ge({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&z("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Sr([Xm]),et]})}return e})();var ny=new D(""),ry=new D("");function Il(e){return e!=null}function bl(e){return nn(e)?Ge(e):e}function Ml(e){let t={};return e.forEach(n=>{t=n!=null?A(A({},t),n):t}),Object.keys(t).length===0?null:t}function Tl(e,t){return t.map(n=>n(e))}function oy(e){return!e.validate}function Sl(e){return e.map(t=>oy(t)?t:n=>t.validate(n))}function iy(e){if(!e)return null;let t=e.filter(Il);return t.length==0?null:function(n){return Ml(Tl(n,t))}}function Nl(e){return e!=null?iy(Sl(e)):null}function sy(e){if(!e)return null;let t=e.filter(Il);return t.length==0?null:function(n){let r=Tl(n,t).map(bl);return ho(r).pipe(J(Ml))}}function Al(e){return e!=null?sy(Sl(e)):null}function gl(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ay(e){return e._rawValidators}function cy(e){return e._rawAsyncValidators}function us(e){return e?Array.isArray(e)?e:[e]:[]}function Hr(e,t){return Array.isArray(e)?e.includes(t):e===t}function ml(e,t){let n=us(t);return us(e).forEach(o=>{Hr(n,o)||n.push(o)}),n}function yl(e,t){return us(t).filter(n=>!Hr(e,n))}var Ur=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Nl(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Al(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ls=class extends Ur{name;get formDirective(){return null}get path(){return null}},mn=class extends Ur{_parent=null;name=null;valueAccessor=null},ds=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},uy={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},f_=L(A({},uy),{"[class.ng-submitted]":"isSubmitted"}),xl=(()=>{class e extends ds{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(O(mn,2))};static \u0275dir=ge({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&zi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[et]})}return e})();var fn="VALID",Br="INVALID",At="PENDING",hn="DISABLED",Ot=class{},$r=class extends Ot{value;source;constructor(t,n){super(),this.value=t,this.source=n}},pn=class extends Ot{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},gn=class extends Ot{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},xt=class extends Ot{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function ly(e){return(zr(e)?e.validators:e)||null}function dy(e){return Array.isArray(e)?Nl(e):e||null}function fy(e,t){return(zr(t)?t.asyncValidators:e)||null}function hy(e){return Array.isArray(e)?Al(e):e||null}function zr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var fs=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ve(this.statusReactive)}set status(t){Ve(()=>this.statusReactive.set(t))}_status=Ar(()=>this.statusReactive());statusReactive=br(void 0);get valid(){return this.status===fn}get invalid(){return this.status===Br}get pending(){return this.status==At}get disabled(){return this.status===hn}get enabled(){return this.status!==hn}errors;get pristine(){return Ve(this.pristineReactive)}set pristine(t){Ve(()=>this.pristineReactive.set(t))}_pristine=Ar(()=>this.pristineReactive());pristineReactive=br(!0);get dirty(){return!this.pristine}get touched(){return Ve(this.touchedReactive)}set touched(t){Ve(()=>this.touchedReactive.set(t))}_touched=Ar(()=>this.touchedReactive());touchedReactive=br(!1);get untouched(){return!this.touched}_events=new ce;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ml(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ml(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(yl(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(yl(t,this._rawAsyncValidators))}hasValidator(t){return Hr(this._rawValidators,t)}hasAsyncValidator(t){return Hr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(L(A({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new gn(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new gn(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(L(A({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new pn(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new pn(!0,r))}markAsPending(t={}){this.status=At;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new xt(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(L(A({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hn,this.errors=null,this._forEachChild(o=>{o.disable(L(A({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $r(this.value,r)),this._events.next(new xt(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(L(A({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=fn,this._forEachChild(r=>{r.enable(L(A({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(L(A({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fn||this.status===At)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $r(this.value,n)),this._events.next(new xt(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(L(A({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hn:fn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=At,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=bl(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new xt(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?hn:this.errors?Br:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(At)?At:this._anyControlsHaveStatus(Br)?Br:fn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new pn(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new gn(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){zr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=dy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=hy(this._rawAsyncValidators)}};var Ol=new D("CallSetDisabledState",{providedIn:"root",factory:()=>gs}),gs="always";function py(e,t){return[...t.path,e]}function gy(e,t,n=gs){yy(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),vy(e,t),Ey(e,t),Dy(e,t),my(e,t)}function vl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function my(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function yy(e,t){let n=ay(e);t.validator!==null?e.setValidators(gl(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=cy(e);t.asyncValidator!==null?e.setAsyncValidators(gl(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();vl(t._rawValidators,o),vl(t._rawAsyncValidators,o)}function vy(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Rl(e,t)})}function Dy(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Rl(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Rl(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ey(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function wy(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Cy(e){return Object.getPrototypeOf(e.constructor)===_l}function _y(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Gr?n=i:Cy(i)?r=i:o=i}),o||r||n||null}function Dl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function El(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Iy=class extends fs{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(ly(n),fy(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(El(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Dl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Dl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){El(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var by={provide:mn,useExisting:It(()=>ms)},wl=Promise.resolve(),ms=(()=>{class e extends mn{_changeDetectorRef;callSetDisabledState;control=new Iy;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Q;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=_y(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),wy(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){gy(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){wl.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Zi(r);wl.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?py(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(O(ls,9),O(ny,10),O(ry,10),O(hs,10),O(Nr,8),O(Ol,8))};static \u0275dir=ge({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Sr([by]),et,Ci]})}return e})();var My=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xe({type:e});static \u0275inj=Ke({})}return e})();var Fl=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ol,useValue:n.callSetDisabledState??gs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xe({type:e});static \u0275inj=Ke({imports:[My]})}return e})();var kl=Yl(Pl());var Ds;try{Ds=!!new Blob}catch{Ds=!1}var Wr=(()=>{let t=class t{get isFileSaverSupported(){return Ds}genType(r){if(!r||r.lastIndexOf(".")===-1)return"text/plain";let o=r.substring(r.lastIndexOf(".")+1);switch(o){case"txt":return"text/plain";case"xml":case"html":return`text/${o}`;case"json":return"octet/stream";default:return`application/${o}`}}save(r,o,i,s){if(!r)throw new Error("Data argument should be a blob instance");let a=new Blob([r],{type:i||r.type||this.genType(o)});(0,kl.saveAs)(a,decodeURI(o||"download"),s)}saveText(r,o,i){let s=new Blob([r]);this.save(s,o,void 0,i)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ll=(()=>{let t=class t{constructor(r,o,i,s){this.ngZone=r,this.el=o,this.fss=i,this.httpClient=s,this.method="GET",this.success=new Q,this.error=new Q,this.destroy$=new ce,i.isFileSaverSupported||o.nativeElement.classList.add("filesaver__not-support")}ngOnInit(){this.ngZone.runOutsideAngular(()=>this.setupClickListener())}ngOnDestroy(){this.destroy$.next()}getName(r){return decodeURI(this.fileName||r.headers.get("filename")||r.headers.get("x-filename")||"")}setDisabled(r){let o=this.el.nativeElement;o.disabled=r,o.classList[r?"add":"remove"]("filesaver__disabled")}setupClickListener(){jt(this.el.nativeElement,"click").pipe(ct(()=>this.fss.isFileSaverSupported),Hn(this.destroy$)).subscribe(()=>{let r=this.http;if(!r){let o=new ye,i=this.query||{};for(let s in i)o=o.set(s,i[s]);r=this.httpClient.request(this.method,this.url,{observe:"response",responseType:"blob",headers:this.header,params:o})}this.setDisabled(!0),r.pipe(Hn(this.destroy$)).subscribe({next:o=>{if(o.status!==200||o.body.size<=0){this.emitIfHasObservers(this.error,o);return}this.fss.save(o.body,this.getName(o),void 0,this.fsOptions),this.emitIfHasObservers(this.success,o)},error:o=>this.emitIfHasObservers(this.error,o),complete:()=>this.setDisabled(!1)})})}emitIfHasObservers(r,o){Ny(r)&&this.ngZone.run(()=>r.emit(o))}};t.\u0275fac=function(o){return new(o||t)(O(V),O(ke),O(Wr),O(cn))},t.\u0275dir=ge({type:t,selectors:[["","fileSaver",""]],inputs:{method:"method",http:"http",query:"query",header:"header",url:"url",fileName:"fileName",fsOptions:"fsOptions"},outputs:{success:"success",error:"error"},exportAs:["fileSaver"]});let e=t;return e})();function Ny(e){return e.observed??e.observers.length>0}var Vl=(()=>{let t=class t{constructor(r,o){this.httpClient=r,this.fileSaverService=o,this.text='{ "text": "This is text file!\u4E2D\u6587" }',this.options={autoBom:!1}}onDown(r,o){let i=`save.${r}`;if(o){this.httpClient.get(`files/demo.${r}`,{observe:"response",responseType:"blob"}).subscribe(c=>{this.fileSaverService.save(c.body,i)});return}let s=this.fileSaverService.genType(i),a=new Blob([this.text],{type:s});this.fileSaverService.save(a,i,void 0,this.options)}};t.\u0275fac=function(o){return new(o||t)(O(cn),O(Wr))},t.\u0275cmp=xu({type:t,selectors:[["app-root"]],decls:44,vars:2,consts:[["href","https://github.com/cipchk/ngx-filesaver/blob/master/README.md","target","_blank"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["type","button",3,"click"],["type","button","fileSaver","","url","assets/files/demo.docx"]],template:function(o,i){o&1&&(F(0,"h1"),k(1,"ngx-filesaver"),P(),F(2,"p"),k(3," Simple file save with FileSaver.js, pls refer "),F(4,"a",0),k(5,"README.md"),P()(),F(6,"h1"),k(7,"Filesaver option"),P(),F(8,"label")(9,"input",1),Tr("ngModelChange",function(a){return Wi(i.options.autoBom,a)||(i.options.autoBom=a),a}),P(),k(10," AutoBOM "),P(),F(11,"h1"),k(12,"Text Document"),P(),F(13,"textarea",2),Tr("ngModelChange",function(a){return Wi(i.text,a)||(i.text=a),a}),P(),F(14,"button",3),z("click",function(){return i.onDown("txt",!1)}),k(15,"Save Text"),P(),F(16,"button",3),z("click",function(){return i.onDown("json",!1)}),k(17,"Save JSON"),P(),F(18,"h1"),k(19,"Remote file download"),P(),F(20,"button",3),z("click",function(){return i.onDown("docx",!0)}),k(21,"Save Word"),P(),F(22,"button",3),z("click",function(){return i.onDown("xlsx",!0)}),k(23,"Save Excel"),P(),F(24,"button",3),z("click",function(){return i.onDown("csv",!0)}),k(25,"Save CSV"),P(),F(26,"button",3),z("click",function(){return i.onDown("pptx",!0)}),k(27,"Save PPT"),P(),F(28,"button",3),z("click",function(){return i.onDown("pdf",!0)}),k(29,"Save PDF"),P(),F(30,"button",3),z("click",function(){return i.onDown("zip",!0)}),k(31,"Save Zip"),P(),F(32,"button",3),z("click",function(){return i.onDown("7z",!0)}),k(33,"Save 7z"),P(),F(34,"button",3),z("click",function(){return i.onDown("jpg",!0)}),k(35,"Save JPG"),P(),F(36,"button",3),z("click",function(){return i.onDown("gif",!0)}),k(37,"Save Gif"),P(),F(38,"button",3),z("click",function(){return i.onDown("png",!0)}),k(39,"Save Png"),P(),F(40,"h1"),k(41,"fileSaver Directive"),P(),F(42,"button",4),k(43,"Save Word"),P()),o&2&&(Bi(9),Mr("ngModel",i.options.autoBom),Bi(4),Mr("ngModel",i.text))},dependencies:[Yi,Fl,Gr,ps,xl,ms,Ll],encapsulation:2});let e=t;return e})();pl(Vl,{providers:[rl()]}).catch(e=>console.error(e)); diff --git a/polyfills-6EAL64PA.js b/polyfills-6EAL64PA.js deleted file mode 100644 index f67a2da..0000000 --- a/polyfills-6EAL64PA.js +++ /dev/null @@ -1,2 +0,0 @@ -var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.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 r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}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}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/polyfills-SCHOHYNV.js b/polyfills-SCHOHYNV.js new file mode 100644 index 0000000..de84613 --- /dev/null +++ b/polyfills-SCHOHYNV.js @@ -0,0 +1,2 @@ +var ae=globalThis;function ee(e){return(ae.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ae.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,i){e&&e.measure&&e.measure(j,i)}n("Zone");let Y=class Y{static assertZonePatched(){if(ae.Promise!==S.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 i=Y.current;for(;i.parent;)i=i.parent;return i}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(i,s,o=!1){if(S.hasOwnProperty(i)){let p=ae[ee("forceDuplicateZoneCheck")]===!0;if(!o&&p)throw Error("Already loaded patch: "+i)}else if(!ae["__Zone_disable_"+i]){let p="Zone:"+i;n(p),S[i]=s(ae,Y,w),a(p,p)}}get parent(){return this._parent}get name(){return this._name}constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let o=this._zoneDelegate.intercept(this,i,s),p=this;return function(){return p.runGuarded(o,this,arguments,s)}}run(i,s,o,p){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,i,s,o,p)}finally{b=b.parent}}runGuarded(i,s=null,o,p){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,o,p)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{b=b.parent}}runTask(i,s,o){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");let p=i,{type:H,data:{isPeriodic:M=!1,isRefreshable:se=!1}={}}=i;if(i.state===q&&(H===z||H===g))return;let le=i.state!=Z;le&&p._transitionTo(Z,d);let ue=D;D=p,b={parent:b,zone:this};try{H==g&&i.data&&!M&&!se&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,p,s,o)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=i.state;if(ne!==q&&ne!==X)if(H==z||M||se&&ne===k)le&&p._transitionTo(d,Z,k);else{let h=p._zoneDelegates;this._updateTaskCount(p,-1),le&&p._transitionTo(q,Z,q),se&&(p._zoneDelegates=h)}b=b.parent,D=ue}}scheduleTask(i){if(i.zone&&i.zone!==this){let o=this;for(;o;){if(o===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);o=o.parent}}i._transitionTo(k,q);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(o){throw i._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==k&&i._transitionTo(d,k),i}scheduleMicroTask(i,s,o,p){return this.scheduleTask(new E(G,i,s,o,p,void 0))}scheduleMacroTask(i,s,o,p,H){return this.scheduleTask(new E(g,i,s,o,p,H))}scheduleEventTask(i,s,o,p,H){return this.scheduleTask(new E(z,i,s,o,p,H))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");if(!(i.state!==d&&i.state!==Z)){i._transitionTo(V,d,Z);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(X,V),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(q,V),i.runCount=-1,i}}_updateTaskCount(i,s){let o=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let p=0;pj.hasTask(s,o),onScheduleTask:(j,i,s,o)=>j.scheduleTask(s,o),onInvokeTask:(j,i,s,o,p,H)=>j.invokeTask(s,o,p,H),onCancelTask:(j,i,s,o)=>j.cancelTask(s,o)};class f{get zone(){return this._zone}constructor(i,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,H=s&&s._hasTaskZS;(p||H)&&(this._hasTaskZS=p?o:c,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this._zone))}fork(i,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,s):new t(i,s)}intercept(i,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,s,o):s}invoke(i,s,o,p,H){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,s,o,p,H):s.apply(o,p)}handleError(i,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,s):!0}scheduleTask(i,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==G)U(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(i,s,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,s,o,p):s.callback.apply(o,p)}cancelTask(i,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(i,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,s)}catch(o){this.handleError(i,o)}}_updateTaskCount(i,s){let o=this._taskCounts,p=o[i],H=o[i]=p+s;if(H<0)throw new Error("More tasks executed then were scheduled.");if(p==0||H==0){let M={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:i};this.hasTask(this._zone,M)}}}class E{constructor(i,s,o,p,H,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=s,this.data=p,this.scheduleFn=H,this.cancelFn=M,!o)throw new Error("callback is not defined");this.callback=o;let se=this;i===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ae,se,this,arguments)}}static invokeTask(i,s,o){i||(i=this),Q++;try{return i.runCount++,i.zone.runTask(i,s,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(i,s,o){if(this._state===s||this._state===o)this._state=i,i==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}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}}}let T=ee("setTimeout"),m=ee("Promise"),C=ee("then"),_=[],P=!1,I;function x(j){if(I||ae[m]&&(I=ae[m].resolve(0)),I){let i=I[C];i||(i=I.then),i.call(I,j)}else ae[T](j,0)}function U(j){Q===0&&_.length===0&&x(J),j&&_.push(j)}function J(){if(!P){for(P=!0;_.length;){let j=_;_=[];for(let i=0;ib,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("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:x},b={parent:null,zone:new t(null,null)},D=null,Q=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),fe="true",he="false",Pe=ee("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var A=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return T.apply(this,Fe(arguments,a+"."+c))};return _e(m,T),m})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=A("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=A("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),m=Ce[T];m||(m=Ce[T]=A("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===$&&(_=$),!_)return;typeof _[m]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[m]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===$&&(C=$),!C)return null;let _=C[m];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let m=a(E,T);return m.cbIdx>=0&&typeof T[m.cbIdx]=="function"?Ge(m.name,T[m.cbIdx],m,c):f.apply(E,T)})}function _e(e,n){e[A("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=A("propagationStopped");function at(e,n){let a=(n?n(e):e)+he,t=(n?n(e):e)+fe,c=Pe+a,f=Pe+t;te[e]={},te[e][he]=c,te[e][fe]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=A(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,Z){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let X;try{k.invoke(k,d,[Z])}catch(g){X=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,Z.type,g,G)}return X};function x(k,d,Z){if(d=d||e.event,!d)return;let V=k||d.target||e,X=V[te[d.type][Z?fe:he]];if(X){let G=[];if(X.length===1){let g=I(X[0],V,d);g&&G.push(g)}else{let g=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,d){if(!k)return!1;let Z=!0;d&&d.useG!==void 0&&(Z=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&k[c]&&(g=k),!g||g[m])return!1;let z=d&&d.eventNameToString,S={},w=g[m]=g[c],b=g[A(f)]=g[f],D=g[A(E)]=g[E],Q=g[A(T)]=g[T],W;d&&d.prepend&&(W=g[A(d.prepend)]=g[d.prepend]);function Y(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let j=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?J:U,S.options)},i=function(r){if(!r.isRemoved){let u=te[r.eventName],v;u&&(v=u[r.capture?fe:he]);let R=v&&r.target[v];if(R){for(let y=0;yre.zone.cancelTask(re);r.call(Te,"abort",ce,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ce)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=ie),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),y)return N}};return g[c]=l(w,C,H,M,G),W&&(g[_]=l(W,P,o,M,G,!0)),g[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,r,arguments))return;let O=te[u],N;O&&(N=O[R?fe:he]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=A("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function m(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=de(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},x=P[0];P[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:Z,handleId:V,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(V?delete E[V]:Z&&(Z[Re]=null))}};let U=Ge(n,P[0],I,T,m);if(!U)return U;let{handleId:J,handle:K,isRefreshable:q,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,q&&!k)){let d=K.refresh;K.refresh=function(){let{zone:Z,state:V}=U;return V==="notScheduled"?(U._state="scheduled",Z._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),d.call(this)}}return K??J??U}else return C.apply(e,P)}),f=de(e,a,C=>function(_,P){let I=P[0],x;Qe(I)?(x=E[I],delete E[I]):(x=I?.[Re],x?I[Re]=null:x=I),x?.type?x.cancelFn&&x.zone.cancelTask(x):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=A("xhrTask"),c=A("xhrSync"),f=A("xhrListener"),E=A("xhrScheduled"),T=A("xhrURL"),m=A("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function x(w){return w[t]}let U=I[Le],J=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[m]=!1;let Q=D[f];U||(U=D[Le],J=D[Ie]),Q&&J.call(D,K,Q);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let j=D[a.__symbol__("loadfalse")];if(D.status!==0&&j&&j.length>0){let i=w.invoke;w.invoke=function(){let s=D[a.__symbol__("loadfalse")];for(let o=0;ofunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],V.apply(w,b)}),X="XMLHttpRequest.send",G=A("fetchTaskAborting"),g=A("fetchTaskScheduling"),z=de(I,"send",()=>function(w,b){if(a.current[g]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(X,d,D,k,Z);w&&w[m]===!0&&!D.aborted&&Q.state===q&&Q.invoke()}}),S=de(I,"abort",()=>function(w,b){let D=x(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[A("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[A("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,m=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let x=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[x];typeof l=="function"&&l.call(this,h)}catch{}}function J(h){return h&&h.then}function K(h){return h}function q(h){return M.reject(h)}let k=T("state"),d=T("value"),Z=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",g=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{Y(h,l,r)}catch(u){Y(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function Y(h,l,r){let u=D();if(h===r)throw new TypeError(Q);if(h[k]===g){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{Y(h,!1,R)})(),h}if(l!==S&&r instanceof M&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==g)i(r),Y(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{Y(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[Z]===Z&&l===z&&(h[k]=h[X],h[d]=h[V]),l===S&&r instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];y&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!r&&Z===r[Z];N&&(r[V]=O,r[X]=R);let L=l.run(y,void 0,N&&y!==q&&y!==K?[]:[O]);Y(r,!0,L)}catch(O){Y(r,!1,O)}},r)}let o="function ZoneAwarePromise() { [native code] }",p=function(){},H=n.AggregateError;class M{static toString(){return o}static resolve(l){return l instanceof M?l:Y(new this(null),z,l)}static reject(l){return Y(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new H([],"All promises were rejected"));let r=[],u=0;try{for(let y of l)u++,r.push(M.resolve(y))}catch{return Promise.reject(new H([],"All promises were rejected"))}if(u===0)return Promise.reject(new H([],"All promises were rejected"));let v=!1,R=[];return new M((y,O)=>{for(let N=0;N{v||(v=!0,y(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new H(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function y(O){u(O)}for(let O of l)J(O)||(O=this.resolve(O)),O.then(R,y);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),y=2,O=0,N=[];for(let L of l){J(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,y--,y===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),y--,y===0&&u(N)):v(B)})}catch(B){v(B)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof M))throw new Error("Must be an instanceof Promise.");r[k]=g,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){Y(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(p),R=a.current;return this[k]==g?this[d].push(R,v,l,r):s(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=M);let u=new r(p);u[Z]=Z;let v=a.current;return this[k]==g?this[d].push(v,u,l,l):s(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let se=n[_]=n.Promise;n.Promise=M;let le=T("thenPatched");function ue(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new M((O,N)=>{u.call(this,O,N)}).then(v,R)},h[le]=!0}t.patchThen=ue;function ne(h){return function(l,r){let u=h.apply(l,r);if(u instanceof M)return u;let v=u.constructor;return v[le]||ue(v),u}}return se&&(ue(se),de(n,"fetch",h=>ne(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=A("OriginalDelegate"),c=A("Promise"),f=A("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,m,C){return m&&m.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=m.prototype;try{if(I.hasOwnProperty(_)){let x=e.ObjectGetOwnPropertyDescriptor(I,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,P),e._redefineProperty(m.prototype,_,x)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,m,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=de,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=_e,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:fe,FALSE_STR:he,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);