commit c91a2d1b7d22b12e5b67da8b86c6c4e629d394da Author: CI Bot Date: Sun Apr 6 07:47:23 2025 +0000 Deploy build 11 at Sun Apr 6 07:47:23 UTC 2025 diff --git a/latest/FotoboxController b/latest/FotoboxController new file mode 100755 index 0000000..2e7facf Binary files /dev/null and b/latest/FotoboxController differ diff --git a/latest/FotoboxController.pdb b/latest/FotoboxController.pdb new file mode 100644 index 0000000..2154547 Binary files /dev/null and b/latest/FotoboxController.pdb differ diff --git a/latest/appsettings.Development.json b/latest/appsettings.Development.json new file mode 100644 index 0000000..b2dcdb6 --- /dev/null +++ b/latest/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/latest/appsettings.json b/latest/appsettings.json new file mode 100644 index 0000000..b2dcdb6 --- /dev/null +++ b/latest/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/latest/version.txt b/latest/version.txt new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/latest/version.txt @@ -0,0 +1 @@ +11 diff --git a/latest/wwwroot/3rdpartylicenses.txt b/latest/wwwroot/3rdpartylicenses.txt new file mode 100644 index 0000000..d25fc26 --- /dev/null +++ b/latest/wwwroot/3rdpartylicenses.txt @@ -0,0 +1,241 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/platform-browser +MIT + +@microsoft/signalr +MIT + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2022 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/latest/wwwroot/favicon.ico b/latest/wwwroot/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/latest/wwwroot/favicon.ico differ diff --git a/latest/wwwroot/index.html b/latest/wwwroot/index.html new file mode 100644 index 0000000..2315d1d --- /dev/null +++ b/latest/wwwroot/index.html @@ -0,0 +1,13 @@ + + + + PicturePresenter + + + + + + + + + \ No newline at end of file diff --git a/latest/wwwroot/main.ea95d4fbb47ff696.js b/latest/wwwroot/main.ea95d4fbb47ff696.js new file mode 100644 index 0000000..7f05627 --- /dev/null +++ b/latest/wwwroot/main.ea95d4fbb47ff696.js @@ -0,0 +1 @@ +(self.webpackChunkPicturePresenter=self.webpackChunkPicturePresenter||[]).push([[179],{289:(Gi,wl,Yt)=>{"use strict";function oe(t){return"function"==typeof t}function Cl(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const qi=Cl(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Ki(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class ht{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(oe(r))try{r()}catch(i){e=i instanceof qi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Il(i)}catch(s){e=e??[],s instanceof qi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Il(e);else{if(e instanceof ht){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Ki(n,e)}remove(e){const{_finalizers:n}=this;n&&Ki(n,e),e instanceof ht&&e._removeParent(this)}}ht.EMPTY=(()=>{const t=new ht;return t.closed=!0,t})();const El=ht.EMPTY;function bl(t){return t instanceof ht||t&&"closed"in t&&oe(t.remove)&&oe(t.add)&&oe(t.unsubscribe)}function Il(t){oe(t)?t():t.unsubscribe()}const Zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},co={setTimeout(t,e,...n){const{delegate:r}=co;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=co;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Sl(t){co.setTimeout(()=>{const{onUnhandledError:e}=Zt;if(!e)throw t;e(t)})}function Ml(){}const Xm=Xi("C",void 0,void 0);function Xi(t,e,n){return{kind:t,value:e,error:n}}let Jt=null;function lo(t){if(Zt.useDeprecatedSynchronousErrorHandling){const e=!Jt;if(e&&(Jt={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=Jt;if(Jt=null,n)throw r}}else t()}class Yi extends ht{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,bl(e)&&e.add(this)):this.destination=ny}static create(e,n,r){return new cr(e,n,r)}next(e){this.isStopped?Ji(function Zm(t){return Xi("N",t,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Ji(function Ym(t){return Xi("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ji(Xm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Qm=Function.prototype.bind;function Zi(t,e){return Qm.call(t,e)}class ey{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){uo(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){uo(r)}else uo(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){uo(n)}}}class cr extends Yi{constructor(e,n,r){let o;if(super(),oe(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Zt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Zi(e.next,i),error:e.error&&Zi(e.error,i),complete:e.complete&&Zi(e.complete,i)}):o=e}this.destination=new ey(o)}}function uo(t){Zt.useDeprecatedSynchronousErrorHandling?function Jm(t){Zt.useDeprecatedSynchronousErrorHandling&&Jt&&(Jt.errorThrown=!0,Jt.error=t)}(t):Sl(t)}function Ji(t,e){const{onStoppedNotification:n}=Zt;n&&co.setTimeout(()=>n(t,e))}const ny={closed:!0,next:Ml,error:function ty(t){throw t},complete:Ml},Qi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Tl(t){return t}let Pe=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function oy(t){return t&&t instanceof Yi||function ry(t){return t&&oe(t.next)&&oe(t.error)&&oe(t.complete)}(t)&&bl(t)}(n)?n:new cr(n,r,o);return lo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Pl(r))((o,i)=>{const s=new cr({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Qi](){return this}pipe(...n){return function Al(t){return 0===t.length?Tl:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Pl(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Pl(t){var e;return null!==(e=t??Zt.Promise)&&void 0!==e?e:Promise}const iy=Cl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let es=(()=>{class t extends Pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Nl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iy}next(n){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?El:(this.currentObservers=null,i.push(n),new ht(()=>{this.currentObservers=null,Ki(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Pe;return n.source=this,n}}return t.create=(e,n)=>new Nl(e,n),t})();class Nl extends es{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:El}}function Dn(t){return e=>{if(function sy(t){return oe(t?.lift)}(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function lr(t,e,n,r,o){return new ay(t,e,n,r,o)}class ay extends Yi{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function ur(t,e){return Dn((n,r)=>{let o=0;n.subscribe(lr(r,i=>{r.next(t.call(e,i,o++))}))})}function Bt(t){return this instanceof Bt?(this.v=t,this):new Bt(t)}function kl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function os(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=t[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ol=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ll(t){return oe(t?.then)}function jl(t){return oe(t[Qi])}function Hl(t){return Symbol.asyncIterator&&oe(t?.[Symbol.asyncIterator])}function Bl(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const $l=function Ay(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vl(t){return oe(t?.[$l])}function Ul(t){return function Fl(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function c(f){f.value instanceof Bt?Promise.resolve(f.value.v).then(l,u):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:o}=yield Bt(n.read());if(o)return yield Bt(void 0);yield yield Bt(r)}}finally{n.releaseLock()}})}function zl(t){return oe(t?.getReader)}function $t(t){if(t instanceof Pe)return t;if(null!=t){if(jl(t))return function Py(t){return new Pe(e=>{const n=t[Qi]();if(oe(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ol(t))return function Ny(t){return new Pe(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Sl)})}(t);if(Hl(t))return Wl(t);if(Vl(t))return function Ry(t){return new Pe(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(zl(t))return function Fy(t){return Wl(Ul(t))}(t)}throw Bl(t)}function Wl(t){return new Pe(e=>{(function ky(t,e){var n,r,o,i;return function xl(t,e,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=kl(t);!(r=yield n.next()).done;)if(e.next(r.value),e.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}}e.complete()})})(t,e).catch(n=>e.error(n))})}function Vt(t,e,n,r=0,o=!1){const i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function fo(t,e,n=1/0){return oe(e)?fo((r,o)=>ur((i,s)=>e(r,i,o,s))($t(t(r,o))),n):("number"==typeof e&&(n=e),Dn((r,o)=>function Oy(t,e,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&e.complete()},h=g=>l{i&&e.next(g),l++;let v=!1;$t(n(g,u++)).subscribe(lr(e,D=>{o?.(D),i?h(D):e.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lp(D)):p(D)}f()}catch(D){e.error(D)}}))};return t.subscribe(lr(e,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,t,n)))}const Gl=new Pe(t=>t.complete());function is(t){return t[t.length-1]}function ql(t){return function Hy(t){return t&&oe(t.schedule)}(is(t))?t.pop():void 0}function Kl(t,e=0){return Dn((n,r)=>{n.subscribe(lr(r,o=>Vt(r,t,()=>r.next(o),e),()=>Vt(r,t,()=>r.complete(),e),o=>Vt(r,t,()=>r.error(o),e)))})}function Xl(t,e=0){return Dn((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Yl(t,e){if(!t)throw new Error("Iterable cannot be null");return new Pe(n=>{Vt(n,e,()=>{const r=t[Symbol.asyncIterator]();Vt(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Zl(t,e){return e?function Gy(t,e){if(null!=t){if(jl(t))return function $y(t,e){return $t(t).pipe(Xl(e),Kl(e))}(t,e);if(Ol(t))return function Uy(t,e){return new Pe(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(Ll(t))return function Vy(t,e){return $t(t).pipe(Xl(e),Kl(e))}(t,e);if(Hl(t))return Yl(t,e);if(Vl(t))return function zy(t,e){return new Pe(n=>{let r;return Vt(n,e,()=>{r=t[$l](),Vt(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>oe(r?.return)&&r.return()})}(t,e);if(zl(t))return function Wy(t,e){return Yl(Ul(t),e)}(t,e)}throw Bl(t)}(t,e):$t(t)}function ss(t,e,...n){if(!0===e)return void t();if(!1===e)return;const r=new cr({next:()=>{r.unsubscribe(),t()}});return $t(e(...n)).subscribe(r)}function X(t){for(let e in t)if(t[e]===X)return e;throw Error("Could not find renamed property on target object.")}function Y(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Y).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function cs(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Xy=X({__forward_ref__:X});function ls(t){return t.__forward_ref__=ls,t.toString=function(){return Y(this())},t}function M(t){return function us(t){return"function"==typeof t&&t.hasOwnProperty(Xy)&&t.__forward_ref__===ls}(t)?t():t}function ds(t){return t&&!!t.\u0275providers}class b extends Error{constructor(e,n){super(ho(e,n)),this.code=e}}function ho(t,e){return`NG0${Math.abs(t)}${e?": "+e.trim():""}`}function N(t){return"string"==typeof t?t:null==t?"":String(t)}function po(t,e){throw new b(-201,!1)}function Xe(t,e){null==t&&function W(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function go(t){return Ql(t,mo)||Ql(t,tu)}function Ql(t,e){return t.hasOwnProperty(e)?t[e]:null}function eu(t){return t&&(t.hasOwnProperty(fs)||t.hasOwnProperty(n_))?t[fs]:null}const mo=X({\u0275prov:X}),fs=X({\u0275inj:X}),tu=X({ngInjectableDef:X}),n_=X({ngInjectorDef:X});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let hs;function Ye(t){const e=hs;return hs=t,e}function nu(t,e,n){const r=go(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==e?e:void po(Y(t))}const J=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),dr={},ps="__NG_DI_FLAG__",yo="ngTempTokenPath",o_="ngTokenPath",i_=/\n/gm,s_="\u0275",ru="__source";let fr;function vn(t){const e=fr;return fr=t,e}function a_(t,e=A.Default){if(void 0===fr)throw new b(-203,!1);return null===fr?nu(t,void 0,e):fr.get(t,e&A.Optional?null:void 0,e)}function H(t,e=A.Default){return(function r_(){return hs}()||a_)(M(t),e)}function hr(t,e=A.Default){return H(t,_o(e))}function _o(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gs(t){const e=[];for(let n=0;n((pt=pt||{})[pt.OnPush=0]="OnPush",pt[pt.Default=1]="Default",pt))(),gt=(()=>{return(t=gt||(gt={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",gt;var t})();const Mt={},V=[],Do=X({\u0275cmp:X}),ms=X({\u0275dir:X}),ys=X({\u0275pipe:X}),iu=X({\u0275mod:X}),Tt=X({\u0275fac:X}),gr=X({__NG_ELEMENT_ID__:X});let d_=0;function su(t){return St(()=>{const e=cu(t),n={...e,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c"+d_++,styles:t.styles||V,_:null,schemas:t.schemas||null,tView:null};lu(n);const r=t.dependencies;return n.directiveDefs=vo(r,!1),n.pipeDefs=vo(r,!0),n})}function h_(t){return G(t)||be(t)}function p_(t){return null!==t}function wn(t){return St(()=>({type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function au(t,e){if(null==t)return Mt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}function Ze(t){return St(()=>{const e=cu(t);return lu(e),e})}function G(t){return t[Do]||null}function be(t){return t[ms]||null}function Le(t){return t[ys]||null}function cu(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:au(t.inputs,e),outputs:au(t.outputs)}}function lu(t){t.features?.forEach(e=>e(t))}function vo(t,e){if(!t)return null;const n=e?Le:h_;return()=>("function"==typeof t?t():t).map(r=>n(r)).filter(p_)}const At=0,E=1,k=2,ie=3,rt=4,en=5,Ie=6,Cn=7,ae=8,wo=9,Co=10,j=11,_s=12,yr=13,uu=14,En=15,Se=16,_r=17,bn=18,mt=19,Dr=20,du=21,Q=22,Ds=1,fu=2,Eo=7,bo=8,In=9,Ne=10;function ze(t){return Array.isArray(t)&&"object"==typeof t[Ds]}function ot(t){return Array.isArray(t)&&!0===t[Ds]}function vs(t){return 0!=(4&t.flags)}function vr(t){return t.componentOffset>-1}function Io(t){return 1==(1&t.flags)}function it(t){return!!t.template}function m_(t){return 0!=(256&t[k])}function tn(t,e){return t.hasOwnProperty(Tt)?t[Tt]:null}class D_{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function gu(t){return t.type.prototype.ngOnChanges&&(t.setInput=w_),v_}function v_(){const t=yu(this),e=t?.current;if(e){const n=t.previous;if(n===Mt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function w_(t,e,n,r){const o=this.declaredInputs[n],i=yu(t)||function C_(t,e){return t[mu]=e}(t,{previous:Mt,current:null}),s=i.current||(i.current={}),a=i.previous,c=a[o];s[o]=new D_(c&&c.currentValue,e,a===Mt),t[r]=e}const mu="__ngSimpleChanges__";function yu(t){return t[mu]||null}const Je=function(t,e,n){};function we(t){for(;Array.isArray(t);)t=t[At];return t}function Mo(t,e){return we(e[t])}function We(t,e){return we(e[t.index])}function vu(t,e){return t.data[e]}function je(t,e){const n=e[t];return ze(n)?n:n[At]}function To(t){return 64==(64&t[k])}function zt(t,e){return null==e?null:t[e]}function wu(t){t[bn]=0}function Cs(t,e){t[en]+=e;let n=t,r=t[ie];for(;null!==r&&(1===e&&1===n[en]||-1===e&&0===n[en]);)r[en]+=e,n=r,r=r[ie]}const x={lFrame:Nu(null),bindingsEnabled:!0};function Eu(){return x.bindingsEnabled}function _(){return x.lFrame.lView}function $(){return x.lFrame.tView}function Ce(){let t=bu();for(;null!==t&&64===t.type;)t=t.parent;return t}function bu(){return x.lFrame.currentTNode}function yt(t,e){const n=x.lFrame;n.currentTNode=t,n.isParent=e}function Es(){return x.lFrame.isParent}function Mn(){return x.lFrame.bindingIndex++}function L_(t,e){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,Is(e)}function Is(t){x.lFrame.currentDirectiveIndex=t}function Tu(){return x.lFrame.currentQueryIndex}function Ms(t){x.lFrame.currentQueryIndex=t}function H_(t){const e=t[E];return 2===e.type?e.declTNode:1===e.type?t[Ie]:null}function Au(t,e,n){if(n&A.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&A.Host||(o=H_(i),null===o||(i=i[En],10&o.type))););if(null===o)return!1;e=o,t=i}const r=x.lFrame=Pu();return r.currentTNode=e,r.lView=t,!0}function Ts(t){const e=Pu(),n=t[E];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Pu(){const t=x.lFrame,e=null===t?null:t.child;return null===e?Nu(t):e}function Nu(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function xu(){const t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ru=xu;function As(){const t=xu();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Re(){return x.lFrame.selectedIndex}function nn(t){x.lFrame.selectedIndex=t}function Ao(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[c]<0&&(t[bn]+=65536),(a>11>16&&(3&t[k])===e){t[k]+=2048,Je(4,a,i);try{i.call(a)}finally{Je(5,a,i)}}}else{Je(4,a,i);try{i.call(a)}finally{Je(5,a,i)}}}const Tn=-1;class Cr{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function xs(t,e,n){let r=0;for(;re){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[En],n--;return r}let Rs=!0;function Fo(t){const e=Rs;return Rs=t,e}const Hu=255,Bu=5;let Q_=0;const _t={};function ko(t,e){const n=$u(t,e);if(-1!==n)return n;const r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,Fs(r.data,t),Fs(e,null),Fs(r.blueprint,null));const o=ks(t,e),i=t.injectorIndex;if(ju(o)){const s=xo(o),a=Ro(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function Fs(t,e){t.push(0,0,0,0,0,0,0,0,e)}function $u(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ks(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){if(r=Ku(o),null===r)return Tn;if(n++,o=o[En],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Tn}function Os(t,e,n){!function eD(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(gr)&&(r=n[gr]),null==r&&(r=n[gr]=Q_++);const o=r&Hu;e.data[t+(o>>Bu)]|=1<=0?e&Hu:oD:e}(n);if("function"==typeof i){if(!Au(e,t,r))return r&A.Host?Vu(o,0,r):Uu(e,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;po()}finally{Ru()}}else if("number"==typeof i){let s=null,a=$u(t,e),c=Tn,l=r&A.Host?e[Se][Ie]:null;for((-1===a||r&A.SkipSelf)&&(c=-1===a?ks(t,e):e[a+8],c!==Tn&&qu(r,!1)?(s=e[E],a=xo(c),e=Ro(c,e)):a=-1);-1!==a;){const u=e[E];if(Gu(i,a,u.data)){const d=nD(a,e,n,s,r,l);if(d!==_t)return d}c=e[a+8],c!==Tn&&qu(r,e[E].data[a+8]===l)&&Gu(i,a,e)?(s=u,a=xo(c),e=Ro(c,e)):a=-1}}return o}function nD(t,e,n,r,o,i){const s=e[E],a=s.data[t+8],u=Oo(a,s,n,null==r?vr(a)&&Rs:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==u?rn(e,s,u,a):_t}function Oo(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,c=t.directiveStart,u=i>>20,f=o?a+u:t.directiveEnd;for(let h=r?a:a+u;h=c&&p.type===n)return h}if(o){const h=s[c];if(h&&it(h)&&h.type===n)return c}return null}function rn(t,e,n,r){let o=t[n];const i=e.data;if(function X_(t){return t instanceof Cr}(o)){const s=o;s.resolving&&function Yy(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,`Circular dependency in DI detected for ${t}${n}`)}(function z(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():N(t)}(i[n]));const a=Fo(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Ye(s.injectImpl):null;Au(t,r,A.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function q_(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=gu(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==c&&Ye(c),Fo(a),s.resolving=!1,Ru()}}return o}function Gu(t,e,n){return!!(n[e+(t>>Bu)]&1<Array.isArray(n)?on(n,e):e(n))}function Yu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Lo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ge(t,e,n){let r=Fn(t,e);return r>=0?t[1|r]=n:(r=~r,function uD(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function $s(t,e){const n=Fn(t,e);if(n>=0)return t[1|n]}function Fn(t,e){return function Zu(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o<((He=He||{})[He.Important=1]="Important",He[He.DashCase=2]="DashCase",He))();const qs=new Map;let xD=0;const Xs="__ngContext__";function Me(t,e){ze(e)?(t[Xs]=e[Dr],function FD(t){qs.set(t[Dr],t)}(e)):t[Xs]=e}let Ys;function Zs(t,e){return Ys(t,e)}function Pr(t){const e=t[ie];return ot(e)?e[ie]:e}function Js(t){return yd(t[yr])}function Qs(t){return yd(t[rt])}function yd(t){for(;null!==t&&!ot(t);)t=t[rt];return t}function On(t,e,n,r,o){if(null!=r){let i,s=!1;ot(r)?i=r:ze(r)&&(s=!0,r=r[At]);const a=we(r);0===t&&null!==n?null==o?Ed(e,n,a):sn(e,n,a,o||null,!0):1===t&&null!==n?sn(e,n,a,o||null,!0):2===t?function sa(t,e,n){const r=Uo(t,e);r&&function ev(t,e,n,r){t.removeChild(e,n,r)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function rv(t,e,n,r,o){const i=n[Eo];i!==we(n)&&On(e,t,r,i,o);for(let a=Ne;a0&&(t[n-1][rt]=r[rt]);const i=Lo(t,Ne+e);!function GD(t,e){Nr(t,e,e[j],2,null,null),e[At]=null,e[Ie]=null}(r[E],r);const s=i[mt];null!==s&&s.detachView(i[E]),r[ie]=null,r[rt]=null,r[k]&=-65}return r}function vd(t,e){if(!(128&e[k])){const n=e[j];n.destroyNode&&Nr(t,e,n,3,null,null),function XD(t){let e=t[yr];if(!e)return ra(t[E],t);for(;e;){let n=null;if(ze(e))n=e[yr];else{const r=e[Ne];r&&(n=r)}if(!n){for(;e&&!e[rt]&&e!==t;)ze(e)&&ra(e[E],e),e=e[ie];null===e&&(e=t),ze(e)&&ra(e[E],e),n=e&&e[rt]}e=n}}(e)}}function ra(t,e){if(!(128&e[k])){e[k]&=-65,e[k]|=128,function QD(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===gt.None||i===gt.Emulated)return null}return We(r,n)}}(t,e.parent,n)}function sn(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Ed(t,e,n){t.appendChild(e,n)}function bd(t,e,n,r,o){null!==r?sn(t,e,n,r,o):Ed(t,e,n)}function Uo(t,e){return t.parentNode(e)}let oa,la,Md=function Sd(t,e,n){return 40&t.type?We(t,n):null};function zo(t,e,n,r){const o=wd(t,r,e),i=e[j],a=function Id(t,e,n){return Md(t,e,n)}(r.parent||e[Ie],r,e);if(null!=o)if(Array.isArray(n))for(let c=0;c{const s=i;ga(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Zd(o,n),n}function Zd(t,e){for(let n=0;n{e.push(i)})}}function ga(t,e,n,r){if(!(t=M(t)))return!1;let o=null,i=eu(t);const s=!i&&G(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const c=t.ngModule;if(i=eu(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)ga(l,e,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{on(i.imports,u=>{ga(u,e,n,r)&&(l||(l=[]),l.push(u))})}finally{}void 0!==l&&Zd(l,e)}if(!a){const l=tn(o)||(()=>new o);e.push({provide:o,useFactory:l,deps:V},{provide:Kd,useValue:o,multi:!0},{provide:Gd,useValue:()=>H(o),multi:!0})}const c=i.providers;null==c||a||ma(c,u=>{e.push(u)})}}return o!==t&&void 0!==t.providers}function ma(t,e){for(let n of t)ds(n)&&(n=n.\u0275providers),Array.isArray(n)?ma(n,e):e(n)}const kv=X({provide:String,useValue:X});function ya(t){return null!==t&&"object"==typeof t&&kv in t}function an(t){return"function"==typeof t}const _a=new P("Set Injector scope."),Xo={},Lv={};let Da;function Yo(){return void 0===Da&&(Da=new Xd),Da}class cn{}class ef extends cn{get destroyed(){return this._destroyed}constructor(e,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,wa(e,s=>this.processProvider(s)),this.records.set(qd,jn(void 0,this)),o.has("environment")&&this.records.set(cn,jn(void 0,this));const i=this.records.get(_a);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Kd.multi,V,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const n=vn(this),r=Ye(void 0);try{return e()}finally{vn(n),Ye(r)}}get(e,n=dr,r=A.Default){this.assertNotDestroyed(),r=_o(r);const o=vn(this),i=Ye(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(e);if(void 0===a){const c=function Vv(t){return"function"==typeof t||"object"==typeof t&&t instanceof P}(e)&&go(e);a=c&&this.injectableDefInScope(c)?jn(va(e),Xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&A.Self?Yo():this.parent).get(e,n=r&A.Optional&&n===dr?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[yo]=s[yo]||[]).unshift(Y(e)),o)throw s;return function l_(t,e,n,r){const o=t[yo];throw e[ru]&&o.unshift(e[ru]),t.message=function u_(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==s_?t.slice(2):t;let o=Y(e);if(Array.isArray(e))o=e.map(Y).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Y(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(i_,"\n ")}`}("\n"+t.message,o,n,r),t[o_]=o,t[yo]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{Ye(i),vn(o)}}resolveInjectorInitializers(){const e=vn(this),n=Ye(void 0);try{const r=this.get(Gd.multi,V,A.Self);for(const o of r)o()}finally{vn(e),Ye(n)}}toString(){const e=[],n=this.records;for(const r of n.keys())e.push(Y(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){let n=an(e=M(e))?e:M(e&&e.provide);const r=function Hv(t){return ya(t)?jn(void 0,t.useValue):jn(function tf(t,e,n){let r;if(an(t)){const o=M(t);return tn(o)||va(o)}if(ya(t))r=()=>M(t.useValue);else if(function Qd(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...gs(t.deps||[]));else if(function Jd(t){return!(!t||!t.useExisting)}(t))r=()=>H(M(t.useExisting));else{const o=M(t&&(t.useClass||t.provide));if(!function Bv(t){return!!t.deps}(t))return tn(o)||va(o);r=()=>new o(...gs(t.deps))}return r}(t),Xo)}(e);if(an(e)||!0!==e.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=jn(void 0,Xo,!0),o.factory=()=>gs(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===Xo&&(n.value=Lv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=M(e.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function va(t){const e=go(t),n=null!==e?e.factory:tn(t);if(null!==n)return n;if(t instanceof P)throw new b(204,!1);if(t instanceof Function)return function jv(t){const e=t.length;if(e>0)throw function Sr(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new b(204,!1)}function jn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function wa(t,e){for(const n of t)Array.isArray(n)?wa(n,e):n&&ds(n)?wa(n.\u0275providers,e):e(n)}class Uv{}class nf{}class Wv{resolveComponentFactory(e){throw function zv(t){const e=Error(`No component factory found for ${Y(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Zo=(()=>{class t{}return t.NULL=new Wv,t})();function Gv(){return Hn(Ce(),_())}function Hn(t,e){return new Bn(We(t,e))}let Bn=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=Gv,t})();function qv(t){return t instanceof Bn?t.nativeElement:t}class of{}let Ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Kv(){const t=_(),n=je(Ce().index,t);return(ze(n)?n:t)[j]}(),t})(),Xv=(()=>{class t{}return t.\u0275prov=q({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Yv=new Ea("15.2.10"),ba={},Ia="ngOriginalError";function Sa(t){return t[Ia]}class $n{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Sa(e);for(;n&&Sa(n);)n=Sa(n);return n||null}}function af(t,e,n){let r=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}const cf="ng-template";function aw(t,e,n){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==af(h,l,0)||2&r&&l!==f){if(st(r))return!1;s=!0}}}}else{if(!s&&!st(r)&&!st(c))return!1;if(s&&st(c))continue;s=!1,r=c|1&r}}return st(r)||s}function st(t){return 0==(1&t)}function uw(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!st(s)&&(e+=df(i,o),o=""),r=s,i=i||!st(r);n++}return""!==o&&(e+=df(i,o)),e}const R={};function ln(t){ff($(),_(),Re()+t,!1)}function ff(t,e,n,r){if(!r)if(3==(3&e[k])){const i=t.preOrderCheckHooks;null!==i&&Po(e,i,n)}else{const i=t.preOrderHooks;null!==i&&No(e,i,0,n)}nn(n)}function mf(t,e=null,n=null,r){const o=yf(t,e,n,r);return o.resolveInjectorInitializers(),o}function yf(t,e=null,n=null,r,o=new Set){const i=[n||V,Fv(t)];return r=r||("object"==typeof t?void 0:Y(t)),new ef(i,e||Yo(),r||null,o)}let un=(()=>{class t{static create(n,r){if(Array.isArray(n))return mf({name:""},r,n,"");{const o=n.name??"";return mf({name:o},n.parent,n.providers,o)}}}return t.THROW_IF_NOT_FOUND=dr,t.NULL=new Xd,t.\u0275prov=q({token:t,providedIn:"any",factory:()=>H(qd)}),t.__NG_ELEMENT_ID__=-1,t})();function O(t,e=A.Default){const n=_();return null===n?H(t,e):zu(Ce(),n,M(t),e)}function bf(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rQ&&ff(t,e,Q,!1),Je(s?2:0,o),n(r,o)}finally{nn(i),Je(s?3:1,o)}}function Ra(t,e,n){if(vs(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(t,e,r,kr(t,n,o.hostVars,R),o)}function rC(t,e,n,r,o,i){const s=i[e];if(null!==s){const a=r.setInput;for(let c=0;c0&&Ba(n)}}function Ba(t){for(let r=Js(t);null!==r;r=Qs(r))for(let o=Ne;o0&&Ba(i)}const n=t[E].components;if(null!==n)for(let r=0;r0&&Ba(o)}}function cC(t,e){const n=je(e,t),r=n[E];(function lC(t,e){for(let n=e.length;n-1&&(na(e,r),Lo(n,r))}this._attachedToViewContainer=!1}vd(this._lView[E],this._lView)}onDestroy(e){Mf(this._lView[E],this._lView,null,e)}markForCheck(){ni(this._cdRefInjectingView||this._lView)}detach(){this._lView[k]&=-65}reattach(){this._lView[k]|=64}detectChanges(){ri(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function KD(t,e){Nr(t,e,e[j],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e}}class uC extends Or{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;ri(e[E],e,e[ae],!1)}checkNoChanges(){}get context(){return null}}class Lf extends Zo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=G(e);return new Lr(n,this.ngModule)}}function jf(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class fC{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=_o(r);const o=this.injector.get(e,ba,r);return o!==ba||n===ba?o:this.parentInjector.get(e,n,r)}}class Lr extends nf{get inputs(){return jf(this.componentDef.inputs)}get outputs(){return jf(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function mw(t){return t.map(gw).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,o){let i=(o=o||this.ngModule)instanceof cn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new fC(e,i):e,a=s.get(of,null);if(null===a)throw new b(407,!1);const c=s.get(Xv,null),l=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=r?function $w(t,e,n){return t.selectRootElement(e,n===gt.ShadowDom)}(l,r,this.componentDef.encapsulation):ta(l,u,function dC(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),f=this.componentDef.onPush?288:272,h=Oa(0,null,null,1,0,null,null,null,null,null),p=Qo(null,h,null,f,null,null,a,l,c,s,null);let g,v;Ts(p);try{const D=this.componentDef;let C,y=null;D.findHostDirectiveDefs?(C=[],y=new Map,D.findHostDirectiveDefs(D,C,y),C.push(D)):C=[D];const I=function pC(t,e){const n=t[E],r=Q;return t[r]=e,zn(n,r,2,"#host",null)}(p,d),U=function gC(t,e,n,r,o,i,s,a){const c=o[E];!function mC(t,e,n,r){for(const o of t)e.mergedAttrs=Er(e.mergedAttrs,o.hostAttrs);null!==e.mergedAttrs&&(oi(e,e.mergedAttrs,!0),null!==n&&xd(r,n,e))}(r,t,e,s);const l=i.createRenderer(e,n),u=Qo(o,Sf(n),null,n.onPush?32:16,o[t.index],t,i,l,a||null,null,null);return c.firstCreatePass&&ja(c,t,r.length-1),ti(o,u),o[t.index]=u}(I,d,D,C,p,a,l);v=vu(h,Q),d&&function _C(t,e,n,r){if(r)xs(t,n,["ng-version",Yv.full]);else{const{attrs:o,classes:i}=function yw(t){const e=[],n=[];let r=1,o=2;for(;r0&&Nd(t,n,i.join(" "))}}(l,D,d,r),void 0!==n&&function DC(t,e,n){const r=t.projection=[];for(let o=0;o0;)e=e[En],t--;return e}(t,x.lFrame.contextLView))[ae]}(t)}function li(t,e){return t<<17|e<<2}function Gt(t){return t>>17&32767}function Ja(t){return 2|t}function pn(t){return(131068&t)>>2}function Qa(t,e){return-131069&t|e<<2}function ec(t){return 1|t}function yh(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?Gt(i):pn(i),c=!1;for(;0!==a&&(!1===c||s);){const u=t[a+1];YC(t[a],e)&&(c=!0,t[a+1]=r?ec(u):Ja(u)),a=r?Gt(u):pn(u)}c&&(t[n+1]=r?Ja(i):ec(i))}function YC(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Fn(t,e)>=0}function Hr(t,e,n){return function at(t,e,n,r){const o=_(),i=$(),s=function Nt(t){const e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function Sh(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[Re()],s=function Ih(t,e){return e>=t.expandoStartIndex}(t,n);(function Ph(t,e){return 0!=(t.flags&(e?8:16))})(i,r)&&null===e&&!s&&(e=!1),e=function iE(t,e,n,r){const o=function Ss(t){const e=x.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Br(n=tc(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=tc(o,t,e,n,r),null===i){let c=function sE(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==pn(r))return t[Gt(r)]}(t,e,r);void 0!==c&&Array.isArray(c)&&(c=tc(null,t,e,c[1],r),c=Br(c,e.attrs,r),function aE(t,e,n,r){t[Gt(n?e.classBindings:e.styleBindings)]=r}(t,e,r,c))}else i=function cE(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)):u=n,o)if(0!==c){const f=Gt(t[a+1]);t[r+1]=li(f,a),0!==f&&(t[f+1]=Qa(t[f+1],r)),t[a+1]=function GC(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=li(a,0),0!==a&&(t[a+1]=Qa(t[a+1],r)),a=r;else t[r+1]=li(c,0),0===a?a=r:t[c+1]=Qa(t[c+1],r),c=r;l&&(t[r+1]=Ja(t[r+1])),yh(t,u,r,!0),yh(t,u,r,!1),function XC(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&Fn(i,e)>=0&&(n[r+1]=ec(n[r+1]))}(e,u,t,r,i),s=li(a,c),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==R&&Te(o,s,e)&&function Th(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const c=t.data,l=c[a+1],u=function qC(t){return 1==(1&t)}(l)?Ah(c,e,n,o,pn(l),s):void 0;ui(u)||(ui(i)||function WC(t){return 2==(2&t)}(l)&&(i=Ah(c,null,n,o,a,s)),function ov(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:He.DashCase;null==o?t.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=He.Important),t.setStyle(n,r,o,i))}}(r,s,Mo(Re(),n),o,i))}(i,i.data[Re()],o,o[j],t,o[s+1]=function fE(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Y(function Wt(t){return t instanceof Ld?t.changingThisBreaksApplicationSecurity:t}(t)))),t}(e,n),r,s)}(t,e,n,!1),Hr}function tc(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=n[o+1];f===R&&(f=d?V:void 0);let h=d?$s(f,r):u===r?f:void 0;if(l&&!ui(h)&&(h=$s(c,r)),ui(h)&&(a=h,s))return a;const p=t[o+1];o=s?Gt(p):pn(p)}if(null!==e){let c=i?e.residualClasses:e.residualStyles;null!=c&&(a=$s(c,r))}return a}function ui(t){return void 0!==t}function $r(t,e=""){const n=_(),r=$(),o=t+Q,i=r.firstCreatePass?zn(r,o,1,e,null):r.data[o],s=n[o]=function ea(t,e){return t.createText(e)}(n[j],e);zo(r,n,s,i),yt(i,!1)}function nc(t){return di("",t,""),nc}function di(t,e,n){const r=_(),o=function Gn(t,e,n,r){return Te(t,Mn(),n)?e+N(n)+r:R}(r,t,e,n);return o!==R&&function Ft(t,e,n){const r=Mo(e,t);!function _d(t,e,n){t.setValue(e,n)}(t[j],r,n)}(r,Re(),o),di}const nr="en-US";let Jh=nr;class rr{}class xb{}class bp extends rr{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lf(this);const r=function Ue(t,e){const n=t[iu]||null;if(!n&&!0===e)throw new Error(`Type ${Y(t)} does not have '\u0275mod' property.`);return n}(e);this._bootstrapComponents=function Rt(t){return t instanceof Function?t():t}(r.bootstrap),this._r3Injector=yf(e,n,[{provide:rr,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],Y(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class lc extends xb{constructor(e){super(),this.moduleType=e}create(e){return new bp(this.moduleType,e)}}function dc(t){return e=>{setTimeout(t,void 0,e)}}const kt=class cI extends es{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&"object"==typeof e){const c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=dc(i),o&&(o=dc(o)),s&&(s=dc(s)));const a=super.subscribe({next:o,error:i,complete:s});return e instanceof ht&&e.add(a),a}};function lI(){return this._results[Symbol.iterator]()}class fc{get changes(){return this._changes||(this._changes=new kt)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=fc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=lI)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const o=function Qe(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function cD(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=fI,t})();const uI=Ot,dI=class extends uI{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e,n){const r=this._declarationTContainer.tView,o=Qo(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,n||null);o[_r]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[mt];return null!==s&&(o[mt]=s.createEmbeddedView(r)),xa(r,o,e),new Or(o)}};function fI(){return mi(Ce(),_())}function mi(t,e){return 4&t.type?new dI(e,t,Hn(t,e)):null}let Et=(()=>{class t{}return t.__NG_ELEMENT_ID__=hI,t})();function hI(){return Hp(Ce(),_())}const pI=Et,Lp=class extends pI{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Hn(this._hostTNode,this._hostLView)}get injector(){return new An(this._hostTNode,this._hostLView)}get parentInjector(){const e=ks(this._hostTNode,this._hostLView);if(ju(e)){const n=Ro(e,this._hostLView),r=xo(e);return new An(n[E].data[r+8],n)}return new An(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=jp(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-Ne}createEmbeddedView(e,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=e.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(e,n,r,o,i){const s=e&&!function Ir(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const c=s?e:new Lr(G(e)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const f=(s?l:this.parentInjector).get(cn,null);f&&(i=f)}const u=c.create(l,o,void 0,i);return this.insert(u.hostView,a),u}insert(e,n){const r=e._lView,o=r[E];if(function M_(t){return ot(t[ie])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=r[ie],f=new Lp(d,d[Ie],d[ie]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function YD(t,e,n,r){const o=Ne+r,i=n.length;r>0&&(n[o-1][rt]=e),r0)r.push(s[a/2]);else{const l=i[a+1],u=e[-c];for(let d=Ne;d{class t{constructor(n){this.appInits=n,this.resolve=_i,this.reject=_i,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(H(lg,8))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yr=new P("AppId",{providedIn:"root",factory:function ug(){return`${Sc()}${Sc()}${Sc()}`}});function Sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dg=new P("Platform Initializer"),Mc=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Lt=new P("LocaleId",{providedIn:"root",factory:()=>hr(Lt,A.Optional|A.SkipSelf)||function VI(){return typeof $localize<"u"&&$localize.locale||nr}()}),qI=(()=>Promise.resolve(0))();function Tc(t){typeof Zone>"u"?qI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ae{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kt(!1),this.onMicrotaskEmpty=new kt(!1),this.onStable=new kt(!1),this.onError=new kt(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function KI(){let t=J.requestAnimationFrame,e=J.cancelAnimationFrame;if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function ZI(t){const e=()=>{!function YI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(J,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Pc(t),t.isCheckStableRunning=!0,Ac(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Pc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return pg(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),gg(t)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return pg(t),n.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),gg(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Pc(t),Ac(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new b(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,XI,_i,_i);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const XI={};function Ac(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Pc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function pg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function gg(t){t._nesting--,Ac(t)}class JI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kt,this.onMicrotaskEmpty=new kt,this.onStable=new kt,this.onError=new kt}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}const mg=new P(""),vi=new P("");let Rc,Nc=(()=>{class t{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Rc||(function QI(t){Rc=t}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ae.assertNotInAngularZone(),Tc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Tc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(H(Ae),H(xc),H(vi))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})(),xc=(()=>{class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Rc?.findTestabilityInTree(this,n,r)??null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const jt=!1;let qt=null;const yg=new P("AllowMultipleToken"),Fc=new P("PlatformDestroyListeners"),eS=new P("appBootstrapListener");function Dg(t,e,n=[]){const r=`Platform: ${e}`,o=new P(r);return(i=[])=>{let s=kc();if(!s||s.injector.get(yg,!1)){const a=[...n,...i,{provide:o,useValue:!0}];t?t(a):function rS(t){if(qt&&!qt.get(yg,!1))throw new b(400,!1);qt=t;const e=t.get(wg);(function _g(t){const e=t.get(dg,null);e&&e.forEach(n=>n())})(t)}(function vg(t=[],e){return un.create({name:e,providers:[{provide:_a,useValue:"platform"},{provide:Fc,useValue:new Set([()=>qt=null])},...t]})}(a,r))}return function iS(t){const e=kc();if(!e)throw new b(401,!1);return e}()}}function kc(){return qt?.get(wg)??null}let wg=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Eg(t,e){let n;return n="noop"===t?new JI:("zone.js"===t?void 0:t)||new Ae(e),n}(r?.ngZone,function Cg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ae,useValue:o}];return o.run(()=>{const s=un.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get($n,null);if(!c)throw new b(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:u=>{c.handleError(u)}});a.onDestroy(()=>{wi(this._modules,a),l.unsubscribe()})}),function bg(t,e,n){try{const r=n();return Ya(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(c,o,()=>{const l=a.injector.get(Di);return l.runInitializers(),l.donePromise.then(()=>(function Qh(t){Xe(t,"Expected localeId to be defined"),"string"==typeof t&&(Jh=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Lt,nr)||nr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Ig({},r);return function tS(t,e,n){const r=new lc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Oc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new b(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Fc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(H(un))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Ig(t,e){return Array.isArray(e)?e.reduce(Ig,t):{...t,...e}}let Oc=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new Pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Pe(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),Tc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=function qy(...t){const e=ql(t),n=function By(t,e){return"number"==typeof is(t)?t.pop():e}(t,1/0),r=t;return r.length?1===r.length?$t(r[0]):function Ly(t=1/0){return fo(Tl,t)}(n)(Zl(r,e)):Gl}(i,s.pipe(function Ky(t={}){const{connector:e=(()=>new es),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Dn((g,v)=>{l++,!d&&!u&&f();const D=c=c??e();v.add(()=>{l--,0===l&&!d&&!u&&(a=ss(p,o))}),D.subscribe(v),!s&&l>0&&(s=new cr({next:C=>D.next(C),error:C=>{d=!0,f(),a=ss(h,n,C),D.error(C)},complete:()=>{u=!0,f(),a=ss(h,r),D.complete()}}),$t(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof nf;if(!this._injector.get(Di).done){!o&&function mr(t){const e=G(t)||be(t)||Le(t);return null!==e&&e.standalone}(n);throw new b(405,jt)}let s;s=o?n:this._injector.get(Zo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function nS(t){return t.isBoundToModule}(s)?void 0:this._injector.get(rr),l=s.create(un.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(mg,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),wi(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;wi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(eS,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>wi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(n){return new(n||t)(H(Ae),H(cn),H($n))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const CS=Dg(null,"core",[]);let ES=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(H(Oc))},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({}),t})(),$c=null;function Ii(){return $c}class SS{}const bt=new P("DocumentToken");function Wg(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}let Yg=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new y0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Zg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Zg("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(O(Et),O(Ot))},t.\u0275dir=Ze({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class y0{constructor(){this.$implicit=null,this.ngIf=null}}function Zg(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Y(e)}'.`)}let V0=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({}),t})();class nm{}class DM extends SS{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ol extends DM{static makeCurrent(){!function IS(t){$c||($c=t)}(new ol)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function vM(){return to=to||document.querySelector("base"),to?to.getAttribute("href"):null}();return null==n?null:function wM(t){Li=Li||document.createElement("a"),Li.setAttribute("href",t);const e=Li.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){to=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wg(document.cookie,e)}}let Li,to=null;const am=new P("TRANSITION_ID"),EM=[{provide:lg,useFactory:function CM(t,e,n){return()=>{n.get(Di).donePromise.then(()=>{const r=Ii(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const ji=new P("EventManagerPlugins");let Hi=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})(),no=(()=>{class t extends lm{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const il={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},sl=/%COMP%/g,fm=new P("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function hm(t,e){return e.flat(100).map(n=>n.replace(sl,t))}function pm(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let al=(()=>{class t{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new cl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof ym?o.applyToHost(n):o instanceof ll&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case gt.Emulated:i=new ym(s,a,r,this.appId,c);break;case gt.ShadowDom:return new xM(s,a,n,r);default:i=new ll(s,a,r,c)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(H(Hi),H(no),H(Yr),H(fm))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();class cl{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(il[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){(mm(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(mm(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=il[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=il[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(He.DashCase|He.Important)?e.style.setProperty(n,r,o&He.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&He.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,pm(r)):this.eventManager.addEventListener(e,n,pm(r))}}function mm(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xM extends cl{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=hm(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ll extends cl{constructor(e,n,r,o,i=r.id){super(e),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=hm(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class ym extends ll{constructor(e,n,r,o,i){const s=o+"-"+r.id;super(e,n,r,i,s),this.contentAttr=function AM(t){return"_ngcontent-%COMP%".replace(sl,t)}(s),this.hostAttr=function PM(t){return"_nghost-%COMP%".replace(sl,t)}(s)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}let RM=(()=>{class t extends cm{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const _m=["alt","control","meta","shift"],FM={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},kM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let OM=(()=>{class t extends cm{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ii().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_m.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=FM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),_m.forEach(s=>{s!==o&&(0,kM[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{t.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const BM=Dg(CS,"browser",[{provide:Mc,useValue:"browser"},{provide:dg,useValue:function LM(){ol.makeCurrent()},multi:!0},{provide:bt,useFactory:function HM(){return function lv(t){la=t}(document),document},deps:[]}]),wm=new P(""),Cm=[{provide:vi,useClass:class bM{addToWindow(e){J.getAngularTestability=(r,o=!0)=>{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},J.getAllAngularTestabilities=()=>e.getAllTestabilities(),J.getAllAngularRootElements=()=>e.getAllRootElements(),J.frameworkStabilizers||(J.frameworkStabilizers=[]),J.frameworkStabilizers.push(r=>{const o=J.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(c){s=s||c,i--,0==i&&r(s)};o.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(e,n,r){return null==n?null:e.getTestability(n)??(r?Ii().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},deps:[]},{provide:mg,useClass:Nc,deps:[Ae,xc,vi]},{provide:Nc,useClass:Nc,deps:[Ae,xc,vi]}],Em=[{provide:_a,useValue:"root"},{provide:$n,useFactory:function jM(){return new $n},deps:[]},{provide:ji,useClass:RM,multi:!0,deps:[bt,Ae,Mc]},{provide:ji,useClass:OM,multi:!0,deps:[bt]},{provide:al,useClass:al,deps:[Hi,no,Yr,fm]},{provide:of,useExisting:al},{provide:lm,useExisting:no},{provide:no,useClass:no,deps:[bt]},{provide:Hi,useClass:Hi,deps:[ji,Ae]},{provide:nm,useClass:IM,deps:[]},[]];let $M=(()=>{class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Yr,useValue:n.appId},{provide:am,useExisting:Yr},EM]}}}return t.\u0275fac=function(n){return new(n||t)(H(wm,12))},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({providers:[...Em,...Cm],imports:[V0,ES]}),t})();typeof window<"u"&&window;class Bi{}class fl{}class It{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const 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])}})}:()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof It?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new It;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof It?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class JM{encodeKey(e){return Sm(e)}encodeValue(e){return Sm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const eT=/%(\d[a-f0-9])/gi,tT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sm(t){return encodeURIComponent(t).replace(eT,(e,n)=>tT[n]??e)}function $i(t){return`${t}`}class Xt{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new JM,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function QM(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n],o=Array.isArray(r)?r.map($i):[$i(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[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(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Xt({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push($i(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf($i(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class nT{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Mm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Tm(t){return typeof Blob<"u"&&t instanceof Blob}function Am(t){return typeof FormData<"u"&&t instanceof FormData}class ro{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function rT(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?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.headers||(this.headers=new It),this.context||(this.context=new nT),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),l)),new ro(n,r,i,{params:l,headers:c,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var me=(()=>((me=me||{})[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class hl{constructor(e,n=200,r="OK"){this.headers=e.headers||new It,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class pl extends hl{constructor(e={}){super(e),this.type=me.ResponseHeader}clone(e={}){return new pl({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Vi extends hl{constructor(e={}){super(e),this.type=me.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Vi({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pm extends hl{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function gl(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Nm=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ro)i=n;else{let c,l;c=o.headers instanceof It?o.headers:new It(o.headers),o.params&&(l=o.params instanceof Xt?o.params:new Xt({fromObject:o.params})),i=new ro(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=function XM(...t){return Zl(t,ql(t))}(i).pipe(function YM(t,e){return oe(e)?fo(t,e,1):fo(t,1)}(c=>this.handler.handle(c)));if(n instanceof ro||"events"===o.observe)return s;const a=s.pipe(function ZM(t,e){return Dn((n,r)=>{let o=0;n.subscribe(lr(r,i=>t.call(e,i,o++)&&r.next(i)))})}(c=>c instanceof Vi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ur(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(ur(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(ur(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(ur(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 Xt).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,gl(o,r))}post(n,r,o={}){return this.request("POST",n,gl(o,r))}put(n,r,o={}){return this.request("PUT",n,gl(o,r))}}return t.\u0275fac=function(n){return new(n||t)(H(Bi))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();function xm(t,e){return e(t)}function iT(t,e){return(n,r)=>e.intercept(n,{handle:o=>t(o,r)})}const aT=new P("HTTP_INTERCEPTORS"),oo=new P("HTTP_INTERCEPTOR_FNS");function cT(){let t=null;return(e,n)=>(null===t&&(t=(hr(aT,{optional:!0})??[]).reduceRight(iT,xm)),t(e,n))}let Rm=(()=>{class t extends Bi{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(oo)));this.chain=r.reduceRight((o,i)=>function sT(t,e,n){return(r,o)=>n.runInContext(()=>e(r,i=>t(i,o)))}(o,i,this.injector),xm)}return this.chain(n,r=>this.backend.handle(r))}}return t.\u0275fac=function(n){return new(n||t)(H(fl),H(cn))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const fT=/^\)\]\}',?\n/;let km=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Pe(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new It(o.getAllResponseHeaders()),g=function hT(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new pl({headers:p,status:o.status,statusText:h,url:g}),s},c=()=>{let{headers:h,status:p,statusText:g,url:v}=a(),D=null;204!==p&&(D=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=D?200:0);let C=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const y=D;D=D.replace(fT,"");try{D=""!==D?JSON.parse(D):null}catch(I){D=y,C&&(C=!1,D={error:I,text:D})}}C?(r.next(new Vi({body:D,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new Pm({error:D,headers:h,status:p,statusText:g,url:v||void 0}))},l=h=>{const{url:p}=a(),g=new Pm({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let u=!1;const d=h=>{u||(r.next(a()),u=!0);let p={type:me.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:me.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",c),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:me.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",c),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(H(nm))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const ml=new P("XSRF_ENABLED"),Om=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lm=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jm{}let mT=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wg(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(H(bt),H(Mc),H(Om))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();function yT(t,e){const n=t.url.toLowerCase();if(!hr(ml)||"GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e(t);const r=hr(jm).getToken(),o=hr(Lm);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),e(t)}var ue=(()=>((ue=ue||{})[ue.Interceptors=0]="Interceptors",ue[ue.LegacyInterceptors=1]="LegacyInterceptors",ue[ue.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ue[ue.NoXsrfProtection=3]="NoXsrfProtection",ue[ue.JsonpSupport=4]="JsonpSupport",ue[ue.RequestsMadeViaParent=5]="RequestsMadeViaParent",ue))();function sr(t,e){return{\u0275kind:t,\u0275providers:e}}function _T(...t){const e=[Nm,km,Rm,{provide:Bi,useExisting:Rm},{provide:fl,useExisting:km},{provide:oo,useValue:yT,multi:!0},{provide:ml,useValue:!0},{provide:jm,useClass:mT}];for(const n of t)e.push(...n.\u0275providers);return function Rv(t){return{\u0275providers:t}}(e)}const Hm=new P("LEGACY_INTERCEPTOR_FN");let vT=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({providers:[_T(sr(ue.LegacyInterceptors,[{provide:Hm,useFactory:cT},{provide:oo,useExisting:Hm,multi:!0}]))]}),t})();const wT=[0,2e3,1e4,3e4,null];class Bm{constructor(e){this._retryDelays=void 0!==e?[...e,null]:wT}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}function $m(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(l){return void n(l)}a.done?e(c):Promise.resolve(c).then(r,o)}function K(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(c){$m(i,r,o,s,a,"next",c)}function a(c){$m(i,r,o,s,a,"throw",c)}s(void 0)})}}let io=(()=>{class t{}return t.Authorization="Authorization",t.Cookie="Cookie",t})();class Vm{constructor(e,n,r){this.statusCode=e,this.statusText=n,this.content=r}}class Ui{get(e,n){return this.send({...n,method:"GET",url:e})}post(e,n){return this.send({...n,method:"POST",url:e})}delete(e,n){return this.send({...n,method:"DELETE",url:e})}getCookieString(e){return""}}class CT extends Ui{constructor(e,n){super(),this._innerClient=e,this._accessTokenFactory=n}send(e){var n=this;return K(function*(){let r=!0;n._accessTokenFactory&&(!n._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(r=!1,n._accessToken=yield n._accessTokenFactory()),n._setAuthorizationHeader(e);const o=yield n._innerClient.send(e);return r&&401===o.statusCode&&n._accessTokenFactory?(n._accessToken=yield n._accessTokenFactory(),n._setAuthorizationHeader(e),yield n._innerClient.send(e)):o})()}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[io.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[io.Authorization]&&delete e.headers[io.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}class yn extends Error{constructor(e,n){const r=new.target.prototype;super(`${e}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class yl extends Error{constructor(e="A timeout occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class ft extends Error{constructor(e="An abort occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class ET extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class bT extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class IT extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class Um extends Error{constructor(e){const n=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class ST extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.innerErrors=n,this.__proto__=r}}var m=(()=>{return(t=m||(m={}))[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None",m;var t})();class so{constructor(){}log(e,n){}}so.instance=new so;const MT="8.0.0";class ye{static isRequired(e,n){if(null==e)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(e,n){if(!e||e.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(e,n,r){if(!(e in n))throw new Error(`Unknown ${r} value: ${e}.`)}}class re{static get isBrowser(){return!re.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!re.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!re.isNode&&"object"==typeof window&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&"node"===process.release.name}}function ao(t,e){let n="";return _n(t)?(n=`Binary data of length ${t.byteLength}`,e&&(n+=`. Content: '${function TT(t){const e=new Uint8Array(t);let n="";return e.forEach(r=>{n+=`0x${r<16?"0":""}${r.toString(16)} `}),n.substr(0,n.length-1)}(t)}'`)):"string"==typeof t&&(n=`String data of length ${t.length}`,e&&(n+=`. Content: '${t}'`)),n}function _n(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function zm(t,e,n,r,o,i){return _l.apply(this,arguments)}function _l(){return(_l=K(function*(t,e,n,r,o,i){const s={},[a,c]=ar();s[a]=c,t.log(m.Trace,`(${e} transport) sending data. ${ao(o,i.logMessageContent)}.`);const l=_n(o)?"arraybuffer":"text",u=yield n.post(r,{content:o,headers:{...s,...i.headers},responseType:l,timeout:i.timeout,withCredentials:i.withCredentials});t.log(m.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)})).apply(this,arguments)}class PT{constructor(e,n){this._subject=e,this._observer=n}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class zi{constructor(e){this._minLevel=e,this.out=console}log(e,n){if(e>=this._minLevel){const r=`[${(new Date).toISOString()}] ${m[e]}: ${n}`;switch(e){case m.Critical:case m.Error:this.out.error(r);break;case m.Warning:this.out.warn(r);break;case m.Information:this.out.info(r);break;default:this.out.log(r)}}}}function ar(){let t="X-SignalR-User-Agent";return re.isNode&&(t="User-Agent"),[t,NT(MT,xT(),re.isNode?"NodeJS":"Browser",RT())]}function NT(t,e,n,r){let o="Microsoft SignalR/";const i=t.split(".");return o+=`${i[0]}.${i[1]}`,o+=` (${t}; `,o+=e&&""!==e?`${e}; `:"Unknown OS; ",o+=`${n}`,o+=r?`; ${r}`:"; Unknown Runtime Version",o+=")",o}function xT(){if(!re.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function RT(){if(re.isNode)return process.versions.node}function Wm(t){return t.stack?t.stack:t.message?t.message:`${t}`}class BT extends Ui{constructor(e){super(),this._logger=e;const n={_fetchType:void 0,_jar:void 0};!function OT(t){return!!(typeof fetch>"u"||re.isNode)&&(t._jar=new(Yt(333).CookieJar),t._fetchType=typeof fetch>"u"?Yt(190):fetch,t._fetchType=Yt(45)(t._fetchType,t._jar),!0)}(n)?this._fetchType=fetch.bind(function kT(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}()):(this._fetchType=n._fetchType,this._jar=n._jar),this._abortControllerType=AbortController;const r={_abortControllerType:this._abortControllerType};(function LT(t){return typeof AbortController>"u"&&(t._abortControllerType=Yt(771),!0)})(r)&&(this._abortControllerType=r._abortControllerType)}send(e){var n=this;return K(function*(){if(e.abortSignal&&e.abortSignal.aborted)throw new ft;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new n._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new ft});let s,i=null;e.timeout&&(i=setTimeout(()=>{r.abort(),n._logger.log(m.Warning,"Timeout from HTTP request."),o=new yl},e.timeout)),""===e.content&&(e.content=void 0),e.content&&(e.headers=e.headers||{},e.headers["Content-Type"]=_n(e.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{s=yield n._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(l){throw o||(n._logger.log(m.Warning,`Error from HTTP request. ${l}.`),l)}finally{i&&clearTimeout(i),e.abortSignal&&(e.abortSignal.onabort=null)}if(!s.ok){const l=yield Gm(s,"text");throw new yn(l||s.statusText,s.status)}const c=yield Gm(s,e.responseType);return new Vm(s.status,s.statusText,c)})()}getCookieString(e){let n="";return re.isNode&&this._jar&&this._jar.getCookies(e,(r,o)=>n=o.join("; ")),n}}function Gm(t,e){let n;switch(e){case"arraybuffer":n=t.arrayBuffer();break;case"text":default:n=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`)}return n}class $T extends Ui{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ft):e.method?e.url?new Promise((n,r)=>{const o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=void 0===e.withCredentials||e.withCredentials,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===e.content&&(e.content=void 0),e.content&&(_n(e.content)?o.setRequestHeader("Content-Type","application/octet-stream"):o.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(s=>{o.setRequestHeader(s,i[s])}),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{o.abort(),r(new ft)}),e.timeout&&(o.timeout=e.timeout),o.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Vm(o.status,o.statusText,o.response||o.responseText)):r(new yn(o.response||o.responseText||o.statusText,o.status))},o.onerror=()=>{this._logger.log(m.Warning,`Error from HTTP request. ${o.status}: ${o.statusText}.`),r(new yn(o.statusText,o.status))},o.ontimeout=()=>{this._logger.log(m.Warning,"Timeout from HTTP request."),r(new yl)},o.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class VT extends Ui{constructor(e){if(super(),typeof fetch<"u"||re.isNode)this._httpClient=new BT(e);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new $T(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ft):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}var de=(()=>{return(t=de||(de={}))[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling",de;var t})(),Ee=(()=>{return(t=Ee||(Ee={}))[t.Text=1]="Text",t[t.Binary=2]="Binary",Ee;var t})();class UT{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class qm{get pollAborted(){return this._pollAbort.aborted}constructor(e,n,r){this._httpClient=e,this._logger=n,this._pollAbort=new UT,this._options=r,this._running=!1,this.onreceive=null,this.onclose=null}connect(e,n){var r=this;return K(function*(){if(ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._url=e,r._logger.log(m.Trace,"(LongPolling transport) Connecting."),n===Ee.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,i]=ar(),s={[o]:i,...r._options.headers},a={abortSignal:r._pollAbort.signal,headers:s,timeout:1e5,withCredentials:r._options.withCredentials};n===Ee.Binary&&(a.responseType="arraybuffer");const c=`${e}&_=${Date.now()}`;r._logger.log(m.Trace,`(LongPolling transport) polling: ${c}.`);const l=yield r._httpClient.get(c,a);200!==l.statusCode?(r._logger.log(m.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),r._closeError=new yn(l.statusText||"",l.statusCode),r._running=!1):r._running=!0,r._receiving=r._poll(r._url,a)})()}_poll(e,n){var r=this;return K(function*(){try{for(;r._running;)try{const o=`${e}&_=${Date.now()}`;r._logger.log(m.Trace,`(LongPolling transport) polling: ${o}.`);const i=yield r._httpClient.get(o,n);204===i.statusCode?(r._logger.log(m.Information,"(LongPolling transport) Poll terminated by server."),r._running=!1):200!==i.statusCode?(r._logger.log(m.Error,`(LongPolling transport) Unexpected response code: ${i.statusCode}.`),r._closeError=new yn(i.statusText||"",i.statusCode),r._running=!1):i.content?(r._logger.log(m.Trace,`(LongPolling transport) data received. ${ao(i.content,r._options.logMessageContent)}.`),r.onreceive&&r.onreceive(i.content)):r._logger.log(m.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){r._running?o instanceof yl?r._logger.log(m.Trace,"(LongPolling transport) Poll timed out, reissuing."):(r._closeError=o,r._running=!1):r._logger.log(m.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{r._logger.log(m.Trace,"(LongPolling transport) Polling complete."),r.pollAborted||r._raiseOnClose()}})()}send(e){var n=this;return K(function*(){return n._running?zm(n._logger,"LongPolling",n._httpClient,n._url,e,n._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var e=this;return K(function*(){e._logger.log(m.Trace,"(LongPolling transport) Stopping polling."),e._running=!1,e._pollAbort.abort();try{yield e._receiving,e._logger.log(m.Trace,`(LongPolling transport) sending DELETE request to ${e._url}.`);const n={},[r,o]=ar();n[r]=o;const i={headers:{...n,...e._options.headers},timeout:e._options.timeout,withCredentials:e._options.withCredentials};let s;try{yield e._httpClient.delete(e._url,i)}catch(a){s=a}s?s instanceof yn&&e._logger.log(m.Trace,404===s.statusCode?"(LongPolling transport) A 404 response was returned from sending a DELETE request.":`(LongPolling transport) Error sending a DELETE request: ${s}`):e._logger.log(m.Trace,"(LongPolling transport) DELETE request accepted.")}finally{e._logger.log(m.Trace,"(LongPolling transport) Stop finished."),e._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(m.Trace,e),this.onclose(this._closeError)}}}class zT{constructor(e,n,r,o){this._httpClient=e,this._accessToken=n,this._logger=r,this._options=o,this.onreceive=null,this.onclose=null}connect(e,n){var r=this;return K(function*(){return ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._logger.log(m.Trace,"(SSE transport) Connecting."),r._url=e,r._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(r._accessToken)}`),new Promise((o,i)=>{let a,s=!1;if(n===Ee.Text){if(re.isBrowser||re.isWebWorker)a=new r._options.EventSource(e,{withCredentials:r._options.withCredentials});else{const c=r._httpClient.getCookieString(e),l={};l.Cookie=c;const[u,d]=ar();l[u]=d,a=new r._options.EventSource(e,{withCredentials:r._options.withCredentials,headers:{...l,...r._options.headers}})}try{a.onmessage=c=>{if(r.onreceive)try{r._logger.log(m.Trace,`(SSE transport) data received. ${ao(c.data,r._options.logMessageContent)}.`),r.onreceive(c.data)}catch(l){return void r._close(l)}},a.onerror=c=>{s?r._close():i(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{r._logger.log(m.Information,`SSE connected to ${r._url}`),r._eventSource=a,s=!0,o()}}catch(c){return void i(c)}}else i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(e){var n=this;return K(function*(){return n._eventSource?zm(n._logger,"SSE",n._httpClient,n._url,e,n._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class WT{constructor(e,n,r,o,i,s){this._logger=r,this._accessTokenFactory=n,this._logMessageContent=o,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=s}connect(e,n){var r=this;return K(function*(){let o;return ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._logger.log(m.Trace,"(WebSockets transport) Connecting."),r._accessTokenFactory&&(o=yield r._accessTokenFactory()),new Promise((i,s)=>{let a;e=e.replace(/^http/,"ws");const c=r._httpClient.getCookieString(e);let l=!1;if(re.isNode||re.isReactNative){const u={},[d,f]=ar();u[d]=f,o&&(u[io.Authorization]=`Bearer ${o}`),c&&(u[io.Cookie]=c),a=new r._webSocketConstructor(e,void 0,{headers:{...u,...r._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new r._webSocketConstructor(e)),n===Ee.Binary&&(a.binaryType="arraybuffer"),a.onopen=u=>{r._logger.log(m.Information,`WebSocket connected to ${e}.`),r._webSocket=a,l=!0,i()},a.onerror=u=>{let d=null;d=typeof ErrorEvent<"u"&&u instanceof ErrorEvent?u.error:"There was an error with the transport",r._logger.log(m.Information,`(WebSockets transport) ${d}.`)},a.onmessage=u=>{if(r._logger.log(m.Trace,`(WebSockets transport) data received. ${ao(u.data,r._logMessageContent)}.`),r.onreceive)try{r.onreceive(u.data)}catch(d){return void r._close(d)}},a.onclose=u=>{if(l)r._close(u);else{let d=null;d=typeof ErrorEvent<"u"&&u instanceof ErrorEvent?u.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",s(new Error(d))}}})})()}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(m.Trace,`(WebSockets transport) sending data. ${ao(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(m.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code}}class GT{constructor(e,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,ye.isRequired(e,"url"),this._logger=function AT(t){return void 0===t?new zi(m.Information):null===t?so.instance:void 0!==t.log?t:new zi(t)}(n.logger),this.baseUrl=this._resolveUrl(e),(n=n||{}).logMessageContent=void 0!==n.logMessageContent&&n.logMessageContent,"boolean"!=typeof n.withCredentials&&void 0!==n.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.withCredentials=void 0===n.withCredentials||n.withCredentials,n.timeout=void 0===n.timeout?1e5:n.timeout;let r=null,o=null;re.isNode&&(r=function jT(){return Yt(139)}(),o=function HT(){return Yt(22)}()),!re.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:re.isNode&&!n.WebSocket&&r&&(n.WebSocket=r),!re.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:re.isNode&&!n.EventSource&&typeof o<"u"&&(n.EventSource=o),this._httpClient=new CT(n.httpClient||new VT(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}start(e){var n=this;return K(function*(){if(ye.isIn(e=e||Ee.Binary,Ee,"transferFormat"),n._logger.log(m.Debug,`Starting connection with transfer format '${Ee[e]}'.`),"Disconnected"!==n._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(n._connectionState="Connecting",n._startInternalPromise=n._startInternal(e),yield n._startInternalPromise,"Disconnecting"===n._connectionState){const r="Failed to start the HttpConnection before stop() was called.";return n._logger.log(m.Error,r),yield n._stopPromise,Promise.reject(new ft(r))}if("Connected"!==n._connectionState){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return n._logger.log(m.Error,r),Promise.reject(new ft(r))}n._connectionStarted=!0})()}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Dl(this.transport)),this._sendQueue.send(e))}stop(e){var n=this;return K(function*(){return"Disconnected"===n._connectionState?(n._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===n._connectionState?(n._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),n._stopPromise):(n._connectionState="Disconnecting",n._stopPromise=new Promise(r=>{n._stopPromiseResolver=r}),yield n._stopInternal(e),void(yield n._stopPromise))})()}_stopInternal(e){var n=this;return K(function*(){n._stopError=e;try{yield n._startInternalPromise}catch{}if(n.transport){try{yield n.transport.stop()}catch(r){n._logger.log(m.Error,`HttpConnection.transport.stop() threw error '${r}'.`),n._stopConnection()}n.transport=void 0}else n._logger.log(m.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(e){var n=this;return K(function*(){let r=n.baseUrl;n._accessTokenFactory=n._options.accessTokenFactory,n._httpClient._accessTokenFactory=n._accessTokenFactory;try{if(n._options.skipNegotiation){if(n._options.transport!==de.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");n.transport=n._constructTransport(de.WebSockets),yield n._startTransport(r,e)}else{let o=null,i=0;do{if(o=yield n._getNegotiationResponse(r),"Disconnecting"===n._connectionState||"Disconnected"===n._connectionState)throw new ft("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const s=o.accessToken;n._accessTokenFactory=()=>s,n._httpClient._accessToken=s,n._httpClient._accessTokenFactory=void 0}i++}while(o.url&&i<100);if(100===i&&o.url)throw new Error("Negotiate redirection limit exceeded.");yield n._createTransport(r,n._options.transport,o,e)}n.transport instanceof qm&&(n.features.inherentKeepAlive=!0),"Connecting"===n._connectionState&&(n._logger.log(m.Debug,"The HttpConnection connected successfully."),n._connectionState="Connected")}catch(o){return n._logger.log(m.Error,"Failed to start the connection: "+o),n._connectionState="Disconnected",n.transport=void 0,n._stopPromiseResolver(),Promise.reject(o)}})()}_getNegotiationResponse(e){var n=this;return K(function*(){const r={},[o,i]=ar();r[o]=i;const s=n._resolveNegotiateUrl(e);n._logger.log(m.Debug,`Sending negotiation request: ${s}.`);try{const a=yield n._httpClient.post(s,{content:"",headers:{...r,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials});if(200!==a.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));const c=JSON.parse(a.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&!0!==n._options._useStatefulReconnect?Promise.reject(new Um("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(a){let c="Failed to complete negotiation with the server: "+a;return a instanceof yn&&404===a.statusCode&&(c+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),n._logger.log(m.Error,c),Promise.reject(new Um(c))}})()}_createConnectUrl(e,n){return n?e+(-1===e.indexOf("?")?"?":"&")+`id=${n}`:e}_createTransport(e,n,r,o){var i=this;return K(function*(){let s=i._createConnectUrl(e,r.connectionToken);if(i._isITransport(n))return i._logger.log(m.Debug,"Connection was provided an instance of ITransport, using that directly."),i.transport=n,yield i._startTransport(s,o),void(i.connectionId=r.connectionId);const a=[],c=r.availableTransports||[];let l=r;for(const u of c){const d=i._resolveTransportOrError(u,n,o,!0===l?.useStatefulReconnect);if(d instanceof Error)a.push(`${u.transport} failed:`),a.push(d);else if(i._isITransport(d)){if(i.transport=d,!l){try{l=yield i._getNegotiationResponse(e)}catch(f){return Promise.reject(f)}s=i._createConnectUrl(e,l.connectionToken)}try{return yield i._startTransport(s,o),void(i.connectionId=l.connectionId)}catch(f){if(i._logger.log(m.Error,`Failed to start the transport '${u.transport}': ${f}`),l=void 0,a.push(new IT(`${u.transport} failed: ${f}`,de[u.transport])),"Connecting"!==i._connectionState){const h="Failed to select transport before stop() was called.";return i._logger.log(m.Debug,h),Promise.reject(new ft(h))}}}}return Promise.reject(a.length>0?new ST(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(e){switch(e){case de.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new WT(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case de.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new zT(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case de.LongPolling:return new qm(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,n){var r=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?function(){var o=K(function*(i){let s=!1;if(r.features.reconnect){try{r.features.disconnected(),yield r.transport.connect(e,n),yield r.features.resend()}catch{s=!0}s&&r._stopConnection(i)}else r._stopConnection(i)});return function(i){return o.apply(this,arguments)}}():o=>this._stopConnection(o),this.transport.connect(e,n)}_resolveTransportOrError(e,n,r,o){const i=de[e.transport];if(null==i)return this._logger.log(m.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!function qT(t,e){return!t||0!=(e&t)}(n,i))return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it was disabled by the client.`),new bT(`'${de[i]}' is disabled by the client.`,i);if(!(e.transferFormats.map(a=>Ee[a]).indexOf(r)>=0))return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it does not support the requested transfer format '${Ee[r]}'.`),new Error(`'${de[i]}' does not support ${Ee[r]}.`);if(i===de.WebSockets&&!this._options.WebSocket||i===de.ServerSentEvents&&!this._options.EventSource)return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it is not supported in your environment.'`),new ET(`'${de[i]}' is not supported in your environment.`,i);this._logger.log(m.Debug,`Selecting transport '${de[i]}'.`);try{return this.features.reconnect=i===de.WebSockets?o:void 0,this._constructTransport(i)}catch(a){return a}}_isITransport(e){return e&&"object"==typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(m.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(m.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(m.Error,`Connection disconnected with error '${e}'.`):this._logger.log(m.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(m.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(n){this._logger.log(m.Error,`HttpConnection.onclose(${e}) threw error '${n}'.`)}}}else this._logger.log(m.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!re.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const n=window.document.createElement("a");return n.href=e,this._logger.log(m.Information,`Normalizing '${e}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(e){const n=new URL(e);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const r=new URLSearchParams(n.searchParams);return r.has("negotiateVersion")||r.append("negotiateVersion",this._negotiateVersion.toString()),r.has("useStatefulReconnect")?"true"===r.get("useStatefulReconnect")&&(this._options._useStatefulReconnect=!0):!0===this._options._useStatefulReconnect&&r.append("useStatefulReconnect","true"),n.search=r.toString(),n.toString()}}class Dl{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new Wi,this._transportResult=new Wi,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Wi),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}_sendLoop(){var e=this;return K(function*(){for(;;){if(yield e._sendBufferedData.promise,!e._executing){e._transportResult&&e._transportResult.reject("Connection stopped.");break}e._sendBufferedData=new Wi;const n=e._transportResult;e._transportResult=void 0;const r="string"==typeof e._buffer[0]?e._buffer.join(""):Dl._concatBuffers(e._buffer);e._buffer.length=0;try{yield e._transport.send(r),n.resolve()}catch(o){n.reject(o)}}})()}static _concatBuffers(e){const n=e.map(i=>i.byteLength).reduce((i,s)=>i+s),r=new Uint8Array(n);let o=0;for(const i of e)r.set(new Uint8Array(i),o),o+=i.byteLength;return r.buffer}}class Wi{constructor(){this.promise=new Promise((e,n)=>[this._resolver,this._rejecter]=[e,n])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}class Ke{static write(e){return`${e}${Ke.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Ke.RecordSeparator)throw new Error("Message is incomplete.");const n=e.split(Ke.RecordSeparator);return n.pop(),n}}Ke.RecordSeparatorCode=30,Ke.RecordSeparator=String.fromCharCode(Ke.RecordSeparatorCode);class KT{writeHandshakeRequest(e){return Ke.write(JSON.stringify(e))}parseHandshakeResponse(e){let n,r;if(_n(e)){const a=new Uint8Array(e),c=a.indexOf(Ke.RecordSeparatorCode);if(-1===c)throw new Error("Message is incomplete.");const l=c+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(a.slice(0,l))),r=a.byteLength>l?a.slice(l).buffer:null}else{const a=e,c=a.indexOf(Ke.RecordSeparator);if(-1===c)throw new Error("Message is incomplete.");const l=c+1;n=a.substring(0,l),r=a.length>l?a.substring(l):null}const o=Ke.parse(n),i=JSON.parse(o[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[r,i]}}var F=(()=>{return(t=F||(F={}))[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence",F;var t})();class XT{constructor(){this.observers=[]}next(e){for(const n of this.observers)n.next(e)}error(e){for(const n of this.observers)n.error&&n.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new PT(this,e)}}class YT{constructor(e,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=n,this._bufferSize=r}_send(e){var n=this;return K(function*(){const r=n._protocol.writeMessage(e);let o=Promise.resolve();if(n._isInvocationMessage(e)){n._totalMessageCount++;let i=()=>{},s=()=>{};_n(r)?n._bufferedByteCount+=r.byteLength:n._bufferedByteCount+=r.length,n._bufferedByteCount>=n._bufferSize&&(o=new Promise((a,c)=>{i=a,s=c})),n._messages.push(new ZT(r,n._totalMessageCount,i,s))}try{n._reconnectInProgress||(yield n._connection.send(r))}catch{n._disconnected()}yield o})()}_ack(e){let n=-1;for(let r=0;rthis._nextReceivingSequenceId?this._connection.stop(new Error("Sequence ID greater than amount of messages we've received.")):this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){var e=this;return K(function*(){const n=0!==e._messages.length?e._messages[0]._id:e._totalMessageCount+1;yield e._connection.send(e._protocol.writeMessage({type:F.Sequence,sequenceId:n}));const r=e._messages;for(const o of r)yield e._connection.send(o._message);e._reconnectInProgress=!1})()}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(e)}_isInvocationMessage(e){switch(e.type){case F.Invocation:case F.StreamItem:case F.Completion:case F.StreamInvocation:case F.CancelInvocation:return!0;case F.Close:case F.Sequence:case F.Ping:case F.Ack:return!1}}_ackTimer(){var e=this;void 0===this._ackTimerHandle&&(this._ackTimerHandle=setTimeout(K(function*(){try{e._reconnectInProgress||(yield e._connection.send(e._protocol.writeMessage({type:F.Ack,sequenceId:e._latestReceivedSequenceId})))}catch{}clearTimeout(e._ackTimerHandle),e._ackTimerHandle=void 0}),1e3))}}class ZT{constructor(e,n,r,o){this._message=e,this._id=n,this._resolver=r,this._rejector=o}}var ee=(()=>{return(t=ee||(ee={})).Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting",ee;var t})();class vl{static create(e,n,r,o,i,s,a){return new vl(e,n,r,o,i,s,a)}constructor(e,n,r,o,i,s,a){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(m.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},ye.isRequired(e,"connection"),ye.isRequired(n,"logger"),ye.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=i??3e4,this.keepAliveIntervalInMilliseconds=s??15e3,this._statefulReconnectBufferSize=a??1e5,this._logger=n,this._protocol=r,this.connection=e,this._reconnectPolicy=o,this._handshakeProtocol=new KT,this.connection.onreceive=c=>this._processIncomingData(c),this.connection.onclose=c=>this._connectionClosed(c),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ee.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:F.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==ee.Disconnected&&this._connectionState!==ee.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var e=this;return K(function*(){if(e._connectionState!==ee.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));e._connectionState=ee.Connecting,e._logger.log(m.Debug,"Starting HubConnection.");try{yield e._startInternal(),re.isBrowser&&window.document.addEventListener("freeze",e._freezeEventListener),e._connectionState=ee.Connected,e._connectionStarted=!0,e._logger.log(m.Debug,"HubConnection connected successfully.")}catch(n){return e._connectionState=ee.Disconnected,e._logger.log(m.Debug,`HubConnection failed to start successfully because of error '${n}'.`),Promise.reject(n)}})()}_startInternal(){var e=this;return K(function*(){e._stopDuringStartError=void 0,e._receivedHandshakeResponse=!1;const n=new Promise((r,o)=>{e._handshakeResolver=r,e._handshakeRejecter=o});yield e.connection.start(e._protocol.transferFormat);try{let r=e._protocol.version;e.connection.features.reconnect||(r=1);const o={protocol:e._protocol.name,version:r};if(e._logger.log(m.Debug,"Sending handshake request."),yield e._sendMessage(e._handshakeProtocol.writeHandshakeRequest(o)),e._logger.log(m.Information,`Using HubProtocol '${e._protocol.name}'.`),e._cleanupTimeout(),e._resetTimeoutPeriod(),e._resetKeepAliveInterval(),yield n,e._stopDuringStartError)throw e._stopDuringStartError;!!e.connection.features.reconnect&&(e._messageBuffer=new YT(e._protocol,e.connection,e._statefulReconnectBufferSize),e.connection.features.disconnected=e._messageBuffer._disconnected.bind(e._messageBuffer),e.connection.features.resend=()=>{if(e._messageBuffer)return e._messageBuffer._resend()}),e.connection.features.inherentKeepAlive||(yield e._sendMessage(e._cachedPingMessage))}catch(r){throw e._logger.log(m.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),e._cleanupTimeout(),e._cleanupPingTimer(),yield e.connection.stop(r),r}})()}stop(){var e=this;return K(function*(){const n=e._startPromise;e.connection.features.reconnect=!1,e._stopPromise=e._stopInternal(),yield e._stopPromise;try{yield n}catch{}})()}_stopInternal(e){if(this._connectionState===ee.Disconnected)return this._logger.log(m.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===ee.Disconnecting)return this._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=ee.Disconnecting,this._logger.log(m.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(m.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===ee.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new ft("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}_sendCloseMessage(){var e=this;return K(function*(){try{yield e._sendWithProtocol(e._createCloseMessage())}catch{}})()}stream(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._createStreamInvocation(e,n,o);let s;const a=new XT;return a.cancelCallback=()=>{const c=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then(()=>this._sendWithProtocol(c))},this._callbacks[i.invocationId]=(c,l)=>{l?a.error(l):c&&(c.type===F.Completion?c.error?a.error(new Error(c.error)):a.complete():a.next(c.item))},s=this._sendWithProtocol(i).catch(c=>{a.error(c),delete this._callbacks[i.invocationId]}),this._launchStreams(r,s),a}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._sendWithProtocol(this._createInvocation(e,n,!0,o));return this._launchStreams(r,i),i}invoke(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._createInvocation(e,n,!1,o);return new Promise((a,c)=>{this._callbacks[i.invocationId]=(u,d)=>{d?c(d):u&&(u.type===F.Completion?u.error?c(new Error(u.error)):a(u.result):c(new Error(`Unexpected message type: ${u.type}`)))};const l=this._sendWithProtocol(i).catch(u=>{c(u),delete this._callbacks[i.invocationId]});this._launchStreams(r,l)})}on(e,n){!e||!n||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(n)&&this._methods[e].push(n))}off(e,n){if(!e)return;e=e.toLowerCase();const r=this._methods[e];if(r)if(n){const o=r.indexOf(n);-1!==o&&(r.splice(o,1),0===r.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const n=this._protocol.parseMessages(e,this._logger);for(const r of n)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(r))switch(r.type){case F.Invocation:this._invokeClientMethod(r);break;case F.StreamItem:case F.Completion:{const o=this._callbacks[r.invocationId];if(o){r.type===F.Completion&&delete this._callbacks[r.invocationId];try{o(r)}catch(i){this._logger.log(m.Error,`Stream callback threw error: ${Wm(i)}`)}}break}case F.Ping:break;case F.Close:{this._logger.log(m.Information,"Close message received from server.");const o=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(o):this._stopPromise=this._stopInternal(o);break}case F.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case F.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(m.Warning,`Invalid message type: ${r.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(o){const i="Error parsing handshake response: "+o;this._logger.log(m.Error,i);const s=new Error(i);throw this._handshakeRejecter(s),s}if(n.error){const o="Server returned handshake error: "+n.error;this._logger.log(m.Error,o);const i=new Error(o);throw this._handshakeRejecter(i),i}return this._logger.log(m.Debug,"Server handshake complete."),this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var e=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let n=this._nextKeepAlive-(new Date).getTime();n<0&&(n=0),this._pingServerHandle=setTimeout(K(function*(){if(e._connectionState===ee.Connected)try{yield e._sendMessage(e._cachedPingMessage)}catch{e._cleanupPingTimer()}}),n)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){var n=this;return K(function*(){const r=e.target.toLowerCase(),o=n._methods[r];if(!o)return n._logger.log(m.Warning,`No client method with the name '${r}' found.`),void(e.invocationId&&(n._logger.log(m.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),yield n._sendWithProtocol(n._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null))));const i=o.slice(),s=!!e.invocationId;let a,c,l;for(const u of i)try{const d=a;a=yield u.apply(n,e.arguments),s&&a&&d&&(n._logger.log(m.Error,`Multiple results provided for '${r}'. Sending error to server.`),l=n._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),c=void 0}catch(d){c=d,n._logger.log(m.Error,`A callback for the method '${r}' threw error '${d}'.`)}l?yield n._sendWithProtocol(l):s?(c?l=n._createCompletionMessage(e.invocationId,`${c}`,null):void 0!==a?l=n._createCompletionMessage(e.invocationId,null,a):(n._logger.log(m.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),l=n._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),yield n._sendWithProtocol(l)):a&&n._logger.log(m.Error,`Result given for '${r}' method but server is not expecting a result.`)})()}_connectionClosed(e){this._logger.log(m.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new ft("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ee.Disconnecting?this._completeClose(e):this._connectionState===ee.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===ee.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=ee.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),re.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[e]))}catch(n){this._logger.log(m.Error,`An onclose callback called with error '${e}' threw error '${n}'.`)}}}_reconnect(e){var n=this;return K(function*(){const r=Date.now();let o=0,i=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),s=n._getNextRetryDelay(o++,0,i);if(null===s)return n._logger.log(m.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void n._completeClose(e);if(n._connectionState=ee.Reconnecting,n._logger.log(m.Information,e?`Connection reconnecting because of error '${e}'.`:"Connection reconnecting."),0!==n._reconnectingCallbacks.length){try{n._reconnectingCallbacks.forEach(a=>a.apply(n,[e]))}catch(a){n._logger.log(m.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(n._connectionState!==ee.Reconnecting)return void n._logger.log(m.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==s;){if(n._logger.log(m.Information,`Reconnect attempt number ${o} will start in ${s} ms.`),yield new Promise(a=>{n._reconnectDelayHandle=setTimeout(a,s)}),n._reconnectDelayHandle=void 0,n._connectionState!==ee.Reconnecting)return void n._logger.log(m.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield n._startInternal(),n._connectionState=ee.Connected,n._logger.log(m.Information,"HubConnection reconnected successfully."),0!==n._reconnectedCallbacks.length)try{n._reconnectedCallbacks.forEach(a=>a.apply(n,[n.connection.connectionId]))}catch(a){n._logger.log(m.Error,`An onreconnected callback called with connectionId '${n.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(n._logger.log(m.Information,`Reconnect attempt failed because of error '${a}'.`),n._connectionState!==ee.Reconnecting)return n._logger.log(m.Debug,`Connection moved to the '${n._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(n._connectionState===ee.Disconnecting&&n._completeClose());i=a instanceof Error?a:new Error(a.toString()),s=n._getNextRetryDelay(o++,Date.now()-r,i)}}n._logger.log(m.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),n._completeClose()})()}_getNextRetryDelay(e,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:e,retryReason:r})}catch(o){return this._logger.log(m.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${n}) threw error '${o}'.`),null}}_cancelCallbacksWithError(e){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const o=n[r];try{o(null,e)}catch(i){this._logger.log(m.Error,`Stream 'error' callback called with '${e}' threw error: ${Wm(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,n,r,o){if(r)return 0!==o.length?{arguments:n,streamIds:o,target:e,type:F.Invocation}:{arguments:n,target:e,type:F.Invocation};{const i=this._invocationId;return this._invocationId++,0!==o.length?{arguments:n,invocationId:i.toString(),streamIds:o,target:e,type:F.Invocation}:{arguments:n,invocationId:i.toString(),target:e,type:F.Invocation}}}_launchStreams(e,n){if(0!==e.length){n||(n=Promise.resolve());for(const r in e)e[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:o=>{let i;i=o instanceof Error?o.message:o&&o.toString?o.toString():"Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,i)))},next:o=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,o)))}})}}_replaceStreamingParams(e){const n=[],r=[];for(let o=0;o{class t{constructor(n,r){this.renderer=n,this.http=r,this.photoList=[],this.currentImageIndex=0,this.nextImageIndex=1,this.photoChallenge=!0,this.eventId="",this.countdown=0,this.eventIdSplitted="",this.photoChallengeList={challenges:[],challengeDuration:30,challengeInterval:180,challengeStartTime:new Date},this.liveimg="img1",this.headers=new It({"Content-Type":"application/json",accept:"*/*"})}ngOnInit(){console.log("Loading data from a url file: "+window.location.protocol+"://"+window.location.hostname+"/api/CurrentEvent"),this.http.get(window.location.protocol+"//"+window.location.hostname+"/api/CurrentEvent",{responseType:"text"}).subscribe(n=>{console.log(n),this.eventId=n,console.log("Loading challenge data from a url file"),this.eventIdSplitted=this.eventId.split("-")[0],this.http.get(window.location.protocol+"//"+window.location.hostname+"/event/"+this.eventIdSplitted+"/challenges.json").subscribe(o=>{console.log(o),this.photoChallengeList=o,localStorage.setItem("challenges",JSON.stringify(o)),this.photoChallengeList.challengeDuration=o.challengeDuration,this.photoChallengeList.challengeInterval=o.challengeInterval;const i=new Date(this.photoChallengeList.challengeStartTime);let s=null;setInterval(()=>{const c=new Date;i<=c?!s||c>=s?(console.log("Setting random challenge"),this.setRandomChallenge(),s=new Date(c.getTime()+1e3*this.photoChallengeList.challengeDuration),console.log("New challenge set. Ends at: "+s.toLocaleString())):console.log("Challenge is active. Ends at: "+s.toLocaleString()):(console.log("Waiting for challenge start time"),console.log("ChallengeStartTime: "+i),console.log("CurrentTime: "+c))},1e3*this.photoChallengeList.challengeInterval),console.log("Loading challenge data from a url file"),this.http.post(window.location.protocol+"//"+window.location.hostname+"/api/Photo",'"C:\\\\Fotobox\\\\Nextcloud\\\\Pictures\\\\'+this.eventId+'"',{headers:this.headers}).subscribe(c=>{})}),setInterval(()=>{this.photoList.length>0&&("img1"===this.liveimg?(console.log("switching to img2"),this.renderer.addClass(this.img1?.nativeElement,"hide"),this.renderer.removeClass(this.img2?.nativeElement,"hide"),this.liveimg="img2"):"img2"===this.liveimg&&(console.log("switching to img1"),this.renderer.addClass(this.img2?.nativeElement,"hide"),this.renderer.removeClass(this.img1?.nativeElement,"hide"),this.liveimg="img1"),setTimeout(()=>{this.updateImageSources()},2e3))},1e4);const r=(new iA).withUrl(window.location.protocol+"//"+window.location.hostname+"/photoPresenterHub",{transport:de.WebSockets,skipNegotiation:!0}).build();r.start().then(()=>{console.log("Connection established")}).catch(o=>{console.error(o)}),r.on("PhotolistInit",o=>{let i=JSON.parse(o);this.photoList=i,this.randomizeImages()}),r.on("PhotolistUpdate",o=>{console.log("list update");let i=JSON.parse(o),s=this.photoList.length;this.photoList=i,0==s&&(this.randomizeImages(),this.updateImageSources())})})}updateImageSources(){"img1"===this.liveimg?this.renderer.setProperty(this.img2?.nativeElement,"src",this.nextImageUrl):"img2"===this.liveimg&&this.renderer.setProperty(this.img1?.nativeElement,"src",this.nextImageUrl),this.randomizeImages()}randomizeImages(){this.currentImageIndex=this.nextImageIndex,this.nextImageIndex=this.getRandomIndex()}getRandomIndex(){let n=this.currentImageIndex;for(;n===this.currentImageIndex;)n=Math.floor(Math.random()*this.photoList.length);return n}get currentImageUrl(){return window.location.protocol+"//"+window.location.hostname+"/pictures"+this.photoList[this.currentImageIndex].localRelUri}get nextImageUrl(){return console.log(this.photoList),console.log(this.nextImageIndex),console.log(this.photoList[this.nextImageIndex]),window.location.protocol+"//"+window.location.hostname+"/pictures"+this.photoList[this.nextImageIndex].localRelUri}setRandomChallenge(){if(console.log(this.photoChallengeList),console.log(this.photoChallengeList.challenges),console.log(this.photoChallengeList.challenges.length),this.photoChallengeList&&this.photoChallengeList.challenges&&this.photoChallengeList.challenges.length>0){let n=this.photoChallengeList.challenges,o=n[Math.floor(Math.random()*n.length)];this.currentChallenge=o,o.done=new Date,localStorage.setItem("challenges",JSON.stringify(this.photoChallengeList)),setTimeout(()=>{this.currentChallenge=void 0},1e3*this.photoChallengeList.challengeDuration),this.countdown=this.photoChallengeList.challengeDuration;let i=setInterval(()=>{this.countdown--,0===this.countdown&&clearInterval(i)},1e3)}else console.warn("No challenges available to set.")}static#e=this.\u0275fac=function(r){return new(r||t)(O(Ca),O(Nm))};static#t=this.\u0275cmp=su({type:t,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&(vc(aA,5),vc(cA,5)),2&r){let i;Dc(i=wc())&&(o.img1=i.first),Dc(i=wc())&&(o.img2=i.first)}},decls:12,vars:9,consts:[[1,"image"],["img2",""],["img1",""],["class","noPics",4,"ngIf"],[1,"photoChallenge"],[1,"header"],["class","challenge",4,"ngIf"],[1,"countdown"],[1,"noPics"],[1,"challenge"]],template:function(r,o){1&r&&(qa(0,"img",0,1)(2,"img",0,2),Wa(4,lA,3,0,"div",3),fn(5,"div",4)(6,"div")(7,"span",5),$r(8,"Fotobox Challenge"),hn(),Wa(9,uA,2,1,"span",6),fn(10,"span",7),$r(11),hn()()()),2&r&&(Hr("visibility",o.currentChallenge?"hidden":"visible"),ln(2),Hr("visibility",o.currentChallenge?"hidden":"visible"),ln(2),ci("ngIf",0==o.photoList.length&&!o.currentChallenge),ln(1),Hr("visibility",o.currentChallenge?"visible":"hidden"),ln(4),ci("ngIf",o.currentChallenge),ln(2),di("noch ",o.countdown," Sekunden"))},dependencies:[Yg],styles:[".image[_ngcontent-%COMP%]{position:absolute;top:0%;left:0%;opacity:1;transition:opacity 2s ease-out;max-width:100vw;max-height:100vh;right:0;margin-left:auto;margin-right:auto}.zIndex1[_ngcontent-%COMP%]{z-index:1}.zIndex2[_ngcontent-%COMP%]{z-index:2}.image.hide[_ngcontent-%COMP%]{opacity:0}.noPics[_ngcontent-%COMP%]{margin-top:45vh;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.photoChallenge[_ngcontent-%COMP%]{color:#fff;position:absolute;top:0;left:0;opacity:1;transition:opacity 2s ease-out;width:100vw;height:100vh;right:0;margin-left:auto;margin-right:auto;display:flex;align-items:center;text-align:center;font-size:5em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.photoChallenge[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1em;margin-bottom:5px;margin-top:5px}.header[_ngcontent-%COMP%]{display:block;width:100vw;color:#f60;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;margin-bottom:40px;text-align:center}.challenge[_ngcontent-%COMP%]{display:block;margin-bottom:40px;width:100vw;text-align:center}.countdown[_ngcontent-%COMP%]{text-align:center;display:block;color:#f60;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;width:100vw}"]})}return t})(),fA=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=wn({type:t,bootstrap:[dA]});static#n=this.\u0275inj=Qt({imports:[$M,vT]})}return t})();BM().bootstrapModule(fA).catch(t=>console.error(t))},771:()=>{},22:()=>{},45:()=>{},190:()=>{},333:()=>{},139:()=>{}},Gi=>{Gi(Gi.s=289)}]); \ No newline at end of file diff --git a/latest/wwwroot/polyfills.4c582052dcd32e8a.js b/latest/wwwroot/polyfills.4c582052dcd32e8a.js new file mode 100644 index 0000000..a37cb0a --- /dev/null +++ b/latest/wwwroot/polyfills.4c582052dcd32e8a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkPicturePresenter=self.webpackChunkPicturePresenter||[]).push([[429],{583:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const p=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(p||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&p)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===w))return;const C=e.state!=E;C&&e._transitionTo(E,j),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==w&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(j,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(j,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new m(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new m(w,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new m(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===j||e.state===E){e._transitionTo(G,j,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),Z=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||t[Z]&&(K=t[Z].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else t[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,De="addEventListener",Oe="removeEventListener",Ze=Zone.__symbol__(De),Ne=Zone.__symbol__(Oe),ie="true",ce="false",me=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const A=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Ve(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(t){if(!(t=t||Y.event))return;let n=we[t.type];n||(n=we[t.type]=A("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return je&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function We(t,n,i){let o=ue(t,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,p=o.set,d=n.slice(2);let P=we[d];P||(P=we[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&t===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,Ue),p&&p.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},pe(t,n,o),t[c]=!0}function qe(t,n,i){if(n)for(let o=0;ofunction(p,d){const P=i(p,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Le(P.name,d[P.cbIdx],P,c):a.apply(p,d)})}function le(t,n){t[A("OriginalDelegate")]=n}let Xe=!1,Ae=!1;function ft(){if(Xe)return Ae;Xe=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,p=i.symbol,d=[],P=!0===t[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=p("Promise"),m=p("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=p("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return e.reject(l)}const q=p("state"),R=p("value"),_=p("finally"),J=p("parentPromiseValue"),x=p("parentPromiseState"),X="Promise.then",j=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=p("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const y=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];y&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{const S=l[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=b);const O=u.run(y,void 0,D&&y!==K&&y!==H?[]:[S]);z(s,!0,O)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let y of u)f++,s.push(e.resolve(y))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const b=[];return new e((y,S)=>{for(let D=0;D{g||(g=!0,y(O))},O=>{b.push(O),f--,0===f&&(g=!0,S(new T(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,D)=>{s=S,f=D});function b(S){s(S)}function y(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(b,y);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((O,V)=>{f=O,g=V}),y=2,S=0;const D=[];for(let O of u){B(O)||(O=this.resolve(O));const V=S;try{O.then(F=>{D[V]=s?s.thenCallback(F):F,y--,0===y&&f(D)},F=>{s?(D[V]=s.errorCallback(F),y--,0===y&&f(D)):g(F)})}catch(F){g(F)}y++,S++}return y-=2,0===y&&f(D),b}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||e);const b=new g(L),y=n.current;return this[q]==j?this[R].push(y,b,u,s):ee(this,y,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=e);const g=new f(L);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=p("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new e((S,D)=>{f.call(this,S,D)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=t[o];if(m)return n.call(m)}if(this===Error){const m=t[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const p=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":p.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=A("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ce,o=(n?n(t):t)+ie,c=me+i,a=me+o;te[t]={},te[t][ce]=c,te[t][ie]=a}function dt(t,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Oe,p=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",m="prependListener",M="."+m+":",Z=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][J?ie:ce]];if(X){const j=[];if(1===X.length){const E=Z(X[0],x,_);E&&j.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[P])return!1;const G=_&&_.eventNameToString,h={},I=E[P]=E[c],w=E[A(a)]=E[a],Q=E[A(p)]=E[p],oe=E[A(d)]=E[d];let z;_&&_.prepend&&(z=E[A(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const b=g&&s.target[g];if(b)for(let y=0;yfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const p=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=t.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],M))}else Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],M))}catch{}}),p.call(n,d,P,v)},t.attachOriginToPatched(n[o],p)}function Qe(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(t,n,i,o){t&&qe(t,Qe(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Me,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Oe})});const Re=A("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const p={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(t,m.args),v}function P(v){return a.call(t,v.data.handleId)}c=ae(t,n+=o,v=>function(m,M){if("function"==typeof M[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete p[Z.handleId]:Z.handleId&&(Z.handleId[Re]=null))}};const B=Le(n,M[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?p[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=ae(t,i,v=>function(m,M){const Z=M[0];let N;"number"==typeof Z?N=p[Z]:(N=Z&&Z[Re],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete p[Z]:Z&&(Z[Re]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function mt(t,n){n.patchEventPrototype(t,n)})(t,i),function pt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:p}=n.getGlobalObjects();for(let P=0;P{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(Pe&&!Be||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Ze],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===K){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[p]=I[1],J.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return E.apply(h,I);{const w={target:h,url:h[p],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),p=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Me(arguments,i+"."+c))};return le(P,d),P})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Ke(t,o).forEach(p=>{const d=t.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});p.invoke(P)}})}}t.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ue=>{ue(ue.s=583)}]); \ No newline at end of file diff --git a/latest/wwwroot/runtime.0380aa93c09113d2.js b/latest/wwwroot/runtime.0380aa93c09113d2.js new file mode 100644 index 0000000..c2ddb0a --- /dev/null +++ b/latest/wwwroot/runtime.0380aa93c09113d2.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},_={};function a(e){var l=_[e];if(void 0!==l)return l.exports;var r=_[e]={exports:{}};return v[e](r,r.exports,a),r.exports}a.m=v,e=[],a.O=(l,r,s,f)=>{if(!r){var c=1/0;for(n=0;n=f)&&Object.keys(a.O).every(p=>a.O[p](r[u]))?r.splice(u--,1):(o=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[r,s,f]},a.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={666:0};a.O.j=s=>0===e[s];var l=(s,f)=>{var u,t,[n,c,o]=f,i=0;if(n.some(h=>0!==e[h])){for(u in c)a.o(c,u)&&(a.m[u]=c[u]);if(o)var d=o(a)}for(s&&s(f);i