diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt new file mode 100644 index 0000000..dbed651 --- /dev/null +++ b/docs/3rdpartylicenses.txt @@ -0,0 +1,258 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/elements +MIT + +@angular/platform-browser +MIT + +ng-address-data-gouv-lib + +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. + + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +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/docs/assets/css/output.css b/docs/assets/css/output.css new file mode 100644 index 0000000..e69de29 diff --git a/docs/assets/css/page.css b/docs/assets/css/page.css new file mode 100644 index 0000000..02a6ac8 --- /dev/null +++ b/docs/assets/css/page.css @@ -0,0 +1 @@ +.highlight{color:#d0d0d0}.highlight table td{padding:5px}.highlight table pre{margin:0}.highlight .w{color:#d0d0d0}.highlight .err{color:#151515;background-color:#ac4142}.highlight .c,.highlight .cd,.highlight .cm,.highlight .c1,.highlight .cs{color:#888}.highlight .cp{color:#f4bf75}.highlight .o,.highlight .ow{color:#f4bf75}.highlight .p,.highlight .pi{color:#d0d0d0}.highlight .gi{color:#90a959}.highlight .gd{color:#ac4142}.highlight .gh{color:#6a9fb5;font-weight:bold}.highlight .k,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .kv{color:#aa759f}.highlight .kc,.highlight .kt,.highlight .kd{color:#d28445}.highlight .s,.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .sh,.highlight .sx,.highlight .s1{color:#90a959}.highlight .sr{color:#75b5aa}.highlight .si,.highlight .se{color:#8f5536}.highlight .nt,.highlight .nn,.highlight .nc,.highlight .no{color:#f4bf75}.highlight .na{color:#6a9fb5}.highlight .m,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .il,.highlight .mo,.highlight .mb,.highlight .mx{color:#90a959}.highlight .ss{color:#90a959}body{margin:0;padding:0;background:#151515 url("../images/bkg.png") 0 0;color:#eaeaea;font-size:16px;line-height:1.5;font-family:Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace}.container{width:90%;max-width:1000px;margin:0 auto}section{display:block;margin:0 0 20px 0}h1,h2,h3,h4,h5,h6{margin:0 0 20px}li{line-height:1.4}header{background:rgba(0,0,0,0.1);width:100%;border-bottom:1px dashed #b5e853;padding:20px 0;margin:0 0 40px 0}header h1{font-size:30px;line-height:1.5;margin:0 0 0 -40px;font-weight:bold;font-family:Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;color:#b5e853;text-shadow:0 1px 1px rgba(0,0,0,0.1),0 0 5px rgba(181,232,83,0.1),0 0 10px rgba(181,232,83,0.1);letter-spacing:-1px;-webkit-font-smoothing:antialiased}header h1:before{content:"./ ";font-size:24px}header h2{font-size:18px;font-weight:300;color:#666}#downloads .btn{display:inline-block;text-align:center;margin:0}#main_content{width:100%;-webkit-font-smoothing:antialiased}section img{max-width:100%}h1,h2,h3,h4,h5,h6{font-weight:normal;font-family:Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;color:#b5e853;letter-spacing:-0.03em;text-shadow:0 1px 1px rgba(0,0,0,0.1),0 0 5px rgba(181,232,83,0.1),0 0 10px rgba(181,232,83,0.1)}#main_content h1{font-size:30px}#main_content h2{font-size:24px}#main_content h3{font-size:18px}#main_content h4{font-size:14px}#main_content h5{font-size:12px;text-transform:uppercase;margin:0 0 5px 0}#main_content h6{font-size:12px;text-transform:uppercase;color:#999;margin:0 0 5px 0}dt{font-style:italic;font-weight:bold}ul li{list-style-image:url("../images/bullet.png")}blockquote{color:#aaa;padding-left:10px;border-left:1px dotted #666}pre{background:rgba(0,0,0,0.9);border:1px solid rgba(255,255,255,0.15);padding:10px;font-size:16px;color:#b5e853;border-radius:2px;word-wrap:normal;overflow:auto;overflow-y:hidden}code.highlighter-rouge{background:rgba(0,0,0,0.9);border:1px solid rgba(255,255,255,0.15);padding:0px 3px;margin:0px -3px;color:#aa759f;border-radius:2px}table{width:100%;margin:0 0 20px 0}th{text-align:left;border-bottom:1px dashed #b5e853;padding:5px 10px}td{padding:5px 10px}hr{height:0;border:0;border-bottom:1px dashed #b5e853;color:#b5e853}.btn{display:inline-block;background:-webkit-linear-gradient(top, rgba(40,40,40,0.3), rgba(35,35,35,0.3) 50%, rgba(10,10,10,0.3) 50%, rgba(0,0,0,0.3));padding:8px 18px;border-radius:50px;border:2px solid rgba(0,0,0,0.7);border-bottom:2px solid rgba(0,0,0,0.7);border-top:2px solid #000;color:rgba(255,255,255,0.8);font-family:Helvetica, Arial, sans-serif;font-weight:bold;font-size:13px;text-decoration:none;text-shadow:0 -1px 0 rgba(0,0,0,0.75);box-shadow:inset 0 1px 0 rgba(255,255,255,0.05)}.btn:hover{background:-webkit-linear-gradient(top, rgba(40,40,40,0.6), rgba(35,35,35,0.6) 50%, rgba(10,10,10,0.8) 50%, rgba(0,0,0,0.8))}.btn .icon{display:inline-block;width:16px;height:16px;margin:1px 8px 0 0;float:left}.btn-github .icon{opacity:0.6;background:url("../images/blacktocat.png") 0 0 no-repeat}a{color:#63c0f5;text-shadow:0 0 5px rgba(104,182,255,0.5)}.cf:before,.cf:after{content:"";display:table}.cf:after{clear:both}.cf{zoom:1} diff --git a/docs/assets/css/styles.css b/docs/assets/css/styles.css new file mode 100644 index 0000000..e69de29 diff --git a/docs/assets/js/output.js b/docs/assets/js/output.js new file mode 100644 index 0000000..c00b74b --- /dev/null +++ b/docs/assets/js/output.js @@ -0,0 +1,3 @@ +(()=>{"use strict";var e,p={},_={};function n(e){var a=_[e];if(void 0!==a)return a.exports;var r=_[e]={exports:{}};return p[e](r,r.exports,n),r.exports}n.m=p,e=[],n.O=(a,r,u,l)=>{if(!r){var o=1/0;for(f=0;f=l)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(s=!1,l0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,c,[f,o,s]=l,v=0;if(f.some(d=>0!==e[d])){for(t in o)n.o(o,t)&&(n.m[t]=o[t]);if(s)var b=s(n)}for(u&&u(l);v{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=300)}]); +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{930:()=>{function X(e){return"function"==typeof e}function eo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const to=eo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function pn(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Ze{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(X(r))try{r()}catch(s){t=s instanceof to?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{Il(s)}catch(i){t=t??[],i instanceof to?t=[...t,...i.errors]:t.push(i)}}if(t)throw new to(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Il(t);else{if(t instanceof Ze){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&pn(n,t)}remove(t){const{_finalizers:n}=this;n&&pn(n,t),t instanceof Ze&&t._removeParent(this)}}Ze.EMPTY=(()=>{const e=new Ze;return e.closed=!0,e})();const Cl=Ze.EMPTY;function bl(e){return e instanceof Ze||e&&"closed"in e&&X(e.remove)&&X(e.add)&&X(e.unsubscribe)}function Il(e){X(e)?e():e.unsubscribe()}const Zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},no={setTimeout(e,t,...n){const{delegate:r}=no;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=no;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ml(e){no.setTimeout(()=>{const{onUnhandledError:t}=Zt;if(!t)throw e;t(e)})}function $s(){}const ny=Us("C",void 0,void 0);function Us(e,t,n){return{kind:e,value:t,error:n}}let Qt=null;function ro(e){if(Zt.useDeprecatedSynchronousErrorHandling){const t=!Qt;if(t&&(Qt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Qt;if(Qt=null,n)throw r}}else e()}class Gs extends Ze{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,bl(t)&&t.add(this)):this.destination=ly}static create(t,n,r){return new ar(t,n,r)}next(t){this.isStopped?qs(function oy(e){return Us("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?qs(function ry(e){return Us("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?qs(ny,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const iy=Function.prototype.bind;function zs(e,t){return iy.call(e,t)}class ay{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){oo(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){oo(r)}else oo(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){oo(n)}}}class ar extends Gs{constructor(t,n,r){let o;if(super(),X(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let s;this&&Zt.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&zs(t.next,s),error:t.error&&zs(t.error,s),complete:t.complete&&zs(t.complete,s)}):o=t}this.destination=new ay(o)}}function oo(e){Zt.useDeprecatedSynchronousErrorHandling?function sy(e){Zt.useDeprecatedSynchronousErrorHandling&&Qt&&(Qt.errorThrown=!0,Qt.error=e)}(e):Ml(e)}function qs(e,t){const{onStoppedNotification:n}=Zt;n&&no.setTimeout(()=>n(e,t))}const ly={closed:!0,next:$s,error:function uy(e){throw e},complete:$s},Ws="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sl(e){return e}let _e=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const s=function dy(e){return e&&e instanceof Gs||function cy(e){return e&&X(e.next)&&X(e.error)&&X(e.complete)}(e)&&bl(e)}(n)?n:new ar(n,r,o);return ro(()=>{const{operator:i,source:a}=this;s.add(i?i.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Al(r))((o,s)=>{const i=new ar({next:a=>{try{n(a)}catch(u){s(u),i.unsubscribe()}},error:s,complete:o});this.subscribe(i)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ws](){return this}pipe(...n){return function Tl(e){return 0===e.length?Sl:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Al(n))((r,o)=>{let s;this.subscribe(i=>s=i,i=>o(i),()=>r(s))})}}return e.create=t=>new e(t),e})();function Al(e){var t;return null!==(t=e??Zt.Promise)&&void 0!==t?t:Promise}const fy=eo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Kt=(()=>{class e extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new xl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fy}next(n){ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ro(()=>{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(){ro(()=>{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:s}=this;return r||o?Cl:(this.currentObservers=null,s.push(n),new Ze(()=>{this.currentObservers=null,pn(s,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:s}=this;r?n.error(o):s&&n.complete()}asObservable(){const n=new _e;return n.source=this,n}}return e.create=(t,n)=>new xl(t,n),e})();class xl extends Kt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Cl}}function Dt(e){return t=>{if(function hy(e){return X(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(e,t,n,r,o){return new py(e,t,n,r,o)}class py extends Gs{constructor(t,n,r,o,s,i){super(t),this.onFinalize=s,this.shouldUnsubscribe=i,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Jt(e,t){return Dt((n,r)=>{let o=0;n.subscribe(vt(r,s=>{r.next(e.call(t,s,o++))}))})}function Yt(e){return this instanceof Yt?(this.v=e,this):new Yt(e)}function yy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),s=[];return o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o;function i(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){s.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Yt?Promise.resolve(f.value.v).then(l,c):d(s[0][2],f)}(r[f](h))}catch(p){d(s[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Dy(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Pl(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,u){!function o(s,i,a,u){Promise.resolve(u).then(function(l){s({value:l,done:a})},i)}(a,u,(i=e[s](i)).done,i.value)})}}}const Rl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ol(e){return X(e?.then)}function kl(e){return X(e[Ws])}function Ll(e){return Symbol.asyncIterator&&X(e?.[Symbol.asyncIterator])}function jl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Vl=function _y(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Bl(e){return X(e?.[Vl])}function Hl(e){return yy(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Yt(n.read());if(o)return yield Yt(void 0);yield yield Yt(r)}}finally{n.releaseLock()}})}function $l(e){return X(e?.getReader)}function _t(e){if(e instanceof _e)return e;if(null!=e){if(kl(e))return function wy(e){return new _e(t=>{const n=e[Ws]();if(X(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rl(e))return function Ey(e){return new _e(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ml)})}(e);if(Ll(e))return Ul(e);if(Bl(e))return function by(e){return new _e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($l(e))return function Iy(e){return Ul(Hl(e))}(e)}throw jl(e)}function Ul(e){return new _e(t=>{(function My(e,t){var n,r,o,s;return function gy(e,t,n,r){return new(n||(n=Promise))(function(s,i){function a(c){try{l(r.next(c))}catch(d){i(d)}}function u(c){try{l(r.throw(c))}catch(d){i(d)}}function l(c){c.done?s(c.value):function o(s){return s instanceof n?s:new n(function(i){i(s)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Dy(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(i){o={error:i}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function kt(e,t,n,r=0,o=!1){const s=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!o)return s}function so(e,t,n=1/0){return X(t)?so((r,o)=>Jt((s,i)=>t(r,s,o,i))(_t(e(r,o))),n):("number"==typeof t&&(n=t),Dt((r,o)=>function Sy(e,t,n,r,o,s,i,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l{s&&t.next(g),l++;let v=!1;_t(n(g,c++)).subscribe(vt(t,D=>{o?.(D),s?h(D):t.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;u.length&&lp(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(vt(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Qs=new _e(e=>e.complete());function Ks(e){return e[e.length-1]}function Gl(e){return function xy(e){return e&&X(e.schedule)}(Ks(e))?e.pop():void 0}function zl(e,t=0){return Dt((n,r)=>{n.subscribe(vt(r,o=>kt(r,e,()=>r.next(o),t),()=>kt(r,e,()=>r.complete(),t),o=>kt(r,e,()=>r.error(o),t)))})}function ql(e,t=0){return Dt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wl(e,t){if(!e)throw new Error("Iterable cannot be null");return new _e(n=>{kt(n,t,()=>{const r=e[Symbol.asyncIterator]();kt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Zl(e,t){return t?function Ly(e,t){if(null!=e){if(kl(e))return function Fy(e,t){return _t(e).pipe(ql(t),zl(t))}(e,t);if(Rl(e))return function Ry(e,t){return new _e(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ol(e))return function Py(e,t){return _t(e).pipe(ql(t),zl(t))}(e,t);if(Ll(e))return Wl(e,t);if(Bl(e))return function Oy(e,t){return new _e(n=>{let r;return kt(n,t,()=>{r=e[Vl](),kt(n,t,()=>{let o,s;try{({value:o,done:s}=r.next())}catch(i){return void n.error(i)}s?n.complete():n.next(o)},0,!0)}),()=>X(r?.return)&&r.return()})}(e,t);if($l(e))return function ky(e,t){return Wl(Hl(e),t)}(e,t)}throw jl(e)}(e,t):_t(e)}function Ql(...e){const t=Gl(e),n=function Ny(e,t){return"number"==typeof Ks(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?_t(r[0]):function Ty(e=1/0){return so(Sl,e)}(n)(Zl(r,t)):Qs}function Kl(e={}){const{connector:t=(()=>new Kt),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return s=>{let i,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),i=u=void 0,c=d=!1},p=()=>{const g=i;h(),g?.unsubscribe()};return Dt((g,v)=>{l++,!d&&!c&&f();const D=u=u??t();v.add(()=>{l--,0===l&&!d&&!c&&(a=Js(p,o))}),D.subscribe(v),!i&&l>0&&(i=new ar({next:E=>D.next(E),error:E=>{d=!0,f(),a=Js(h,n,E),D.error(E)},complete:()=>{c=!0,f(),a=Js(h,r),D.complete()}}),_t(g).subscribe(i))})(s)}}function Js(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new ar({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function W(e){for(let t in e)if(e[t]===W)return t;throw Error("Could not find renamed property on target object.")}function Z(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Xs(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const jy=W({__forward_ref__:W});function ei(e){return e.__forward_ref__=ei,e.toString=function(){return Z(this())},e}function M(e){return function ti(e){return"function"==typeof e&&e.hasOwnProperty(jy)&&e.__forward_ref__===ei}(e)?e():e}class S extends Error{constructor(t,n){super(function io(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function x(e){return"string"==typeof e?e:null==e?"":String(e)}function ao(e,t){throw new S(-201,!1)}function Pe(e,t){null==e&&function G(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{providers:e.providers||[],imports:e.imports||[]}}function ni(e){return Jl(e,uo)||Jl(e,Xl)}function Jl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yl(e){return e&&(e.hasOwnProperty(ri)||e.hasOwnProperty(qy))?e[ri]:null}const uo=W({\u0275prov:W}),ri=W({\u0275inj:W}),Xl=W({ngInjectableDef:W}),qy=W({ngInjectorDef:W});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let oi;function Be(e){const t=oi;return oi=e,t}function ec(e,t,n){const r=ni(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void ao(Z(e))}function Lt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),at=(()=>{return(e=at||(at={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",at;var e})();const q=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gn={},U=[],lo=W({\u0275cmp:W}),si=W({\u0275dir:W}),ii=W({\u0275pipe:W}),tc=W({\u0275mod:W}),Ct=W({\u0275fac:W}),ur=W({__NG_ELEMENT_ID__:W});let Zy=0;function ai(e){return Lt(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||U,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c"+Zy++,styles:e.styles||U,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,i=e.features;return o.inputs=oc(e.inputs,r),o.outputs=oc(e.outputs),i&&i.forEach(a=>a(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(nc).filter(rc):null,o.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ee).filter(rc):null,o})}function nc(e){return z(e)||we(e)}function rc(e){return null!==e}function jt(e){return Lt(()=>({type:e.type,bootstrap:e.bootstrap||U,declarations:e.declarations||U,imports:e.imports||U,exports:e.exports||U,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function oc(e,t){if(null==e)return gn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=r,t&&(t[o]=s)}return n}const He=ai;function Te(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function z(e){return e[lo]||null}function we(e){return e[si]||null}function Ee(e){return e[ii]||null}const O=11,Q=22;function Ae(e){return Array.isArray(e)&&"object"==typeof e[1]}function Je(e){return Array.isArray(e)&&!0===e[1]}function ci(e){return 0!=(8&e.flags)}function po(e){return 2==(2&e.flags)}function go(e){return 1==(1&e.flags)}function Ye(e){return null!==e.template}function eD(e){return 0!=(256&e[2])}function rn(e,t){return e.hasOwnProperty(Ct)?e[Ct]:null}class ac{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function uc(e){return e.type.prototype.ngOnChanges&&(e.setInput=oD),rD}function rD(){const e=cc(this),t=e?.current;if(t){const n=e.previous;if(n===gn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function oD(e,t,n,r){const o=cc(e)||function sD(e,t){return e[lc]=t}(e,{previous:gn,current:null}),s=o.current||(o.current={}),i=o.previous,a=this.declaredInputs[n],u=i[a];s[a]=new ac(u&&u.currentValue,t,i===gn),e[r]=t}const lc="__ngSimpleChanges__";function cc(e){return e[lc]||null}function se(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return se(t[e.index])}function gi(e,t){return e.data[t]}function ke(e,t){const n=t[e];return Ae(n)?n:n[0]}function Do(e){return 64==(64&e[2])}function Vt(e,t){return null==t?null:e[t]}function fc(e){e[18]=0}function mi(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const A={lFrame:Cc(null),bindingsEnabled:!0};function pc(){return A.bindingsEnabled}function y(){return A.lFrame.lView}function B(){return A.lFrame.tView}function ce(){let e=yc();for(;null!==e&&64===e.type;)e=e.parent;return e}function yc(){return A.lFrame.currentTNode}function ut(e,t){const n=A.lFrame;n.currentTNode=e,n.isParent=t}function yi(){return A.lFrame.isParent}function Ce(){const e=A.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wn(){return A.lFrame.bindingIndex++}function vD(e,t){const n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,vi(t)}function vi(e){A.lFrame.currentDirectiveIndex=e}function wi(e){A.lFrame.currentQueryIndex=e}function wD(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wc(e,t,n){if(n&T.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=wD(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const r=A.lFrame=Ec();return r.currentTNode=t,r.lView=e,!0}function Ei(e){const t=Ec(),n=e[1];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ec(){const e=A.lFrame,t=null===e?null:e.child;return null===t?Cc(e):t}function Cc(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bc(){const e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ic=bc;function Ci(){const e=bc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function be(){return A.lFrame.selectedIndex}function Bt(e){A.lFrame.selectedIndex=e}function ne(){const e=A.lFrame;return gi(e.tView,e.selectedIndex)}function _o(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class hr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Co(e,t,n){let r=0;for(;rt){i=s-1;break}}}for(;s>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Mi=!0;function Io(e){const t=Mi;return Mi=e,t}let kD=0;const lt={};function gr(e,t){const n=Ti(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Si(r.data,e),Si(t,null),Si(r.blueprint,null));const o=Mo(e,t),s=e.injectorIndex;if(xc(o)){const i=En(o),a=Cn(o,t),u=a[1].data;for(let l=0;l<8;l++)t[s+l]=a[i+l]|u[i+l]}return t[s+8]=o,s}function Si(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ti(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Vc(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function So(e,t,n){!function LD(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ur)&&(r=n[ur]),null==r&&(r=n[ur]=kD++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:HD:t}(n);if("function"==typeof s){if(!wc(t,e,r))return r&T.Host?Pc(o,0,r):Rc(t,n,r,o);try{const i=s(r);if(null!=i||r&T.Optional)return i;ao()}finally{Ic()}}else if("number"==typeof s){let i=null,a=Ti(e,t),u=-1,l=r&T.Host?t[16][6]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?Mo(e,t):t[a+8],-1!==u&&jc(r,!1)?(i=t[1],a=En(u),t=Cn(u,t)):a=-1);-1!==a;){const c=t[1];if(Lc(s,a,c.data)){const d=VD(a,t,n,i,r,l);if(d!==lt)return d}u=t[a+8],-1!==u&&jc(r,t[1].data[a+8]===l)&&Lc(s,a,t)?(i=c,a=En(u),t=Cn(u,t)):a=-1}}return o}function VD(e,t,n,r,o,s){const i=t[1],a=i.data[e+8],c=function To(e,t,n,r,o){const s=e.providerIndexes,i=t.data,a=1048575&s,u=e.directiveStart,c=s>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=i[u];if(h&&Ye(h)&&h.type===n)return u}return null}(a,i,n,null==r?po(a)&&Mi:r!=i&&0!=(3&a.type),o&T.Host&&s===a);return null!==c?mr(t,i,c,a):lt}function mr(e,t,n,r){let o=e[n];const s=t.data;if(function ND(e){return e instanceof hr}(o)){const i=o;i.resolving&&function Vy(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,`Circular dependency in DI detected for ${e}${n}`)}(function H(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():x(e)}(s[n]));const a=Io(i.canSeeViewProviders);i.resolving=!0;const u=i.injectImpl?Be(i.injectImpl):null;wc(e,r,T.Default);try{o=e[n]=i.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AD(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(r){const i=uc(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==u&&Be(u),Io(a),i.resolving=!1,Ic()}}return o}function Lc(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function Ni(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...s){if(this instanceof o)return r.apply(this,s),this;const i=new o(...s);return a.annotation=i,a;function a(u,l,c){const d=u.hasOwnProperty(Mn)?u[Mn]:Object.defineProperty(u,Mn,{value:[]})[Mn];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(i),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class j{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mt(e,t){e.forEach(n=>Array.isArray(n)?Mt(n,t):t(n))}function Hc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ao(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const _r={},Oi="__NG_DI_FLAG__",No="ngTempTokenPath",tv=/\n/gm,zc="__source";let wr;function xn(e){const t=wr;return wr=e,t}function rv(e,t=T.Default){if(void 0===wr)throw new S(-203,!1);return null===wr?ec(e,void 0,t):wr.get(e,t&T.Optional?null:void 0,t)}function P(e,t=T.Default){return(function Wy(){return oi}()||rv)(M(e),t)}function ki(e){const t=[];for(let n=0;n{const i=s;zi(i,n,[],r)&&(o||(o=[]),o.push(i))}),void 0!==o&&vd(o,n),n}function vd(e,t){for(let n=0;n{t.push(s)})}}function zi(e,t,n,r){if(!(e=M(e)))return!1;let o=null,s=Yl(e);const i=!s&&z(e);if(s||i){if(i&&!i.standalone)return!1;o=e}else{const u=e.ngModule;if(s=Yl(u),!s)return!1;o=u}const a=r.has(o);if(i){if(a)return!1;if(r.add(o),i.dependencies){const u="function"==typeof i.dependencies?i.dependencies():i.dependencies;for(const l of u)zi(l,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let l;r.add(o);try{Mt(s.imports,c=>{zi(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&vd(l,t)}if(!a){const l=rn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:U},{provide:md,useValue:o,multi:!0},{provide:pd,useValue:()=>P(o),multi:!0})}const u=s.providers;null==u||a||Mt(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const zv=W({provide:String,useValue:W});function qi(e){return null!==e&&"object"==typeof e&&zv in e}function on(e){return"function"==typeof e}const Wi=new j("Set Injector scope."),Bo={},Wv={};let Zi;function Ho(){return void 0===Zi&&(Zi=new yd),Zi}class Pn{}class Ed extends Pn{constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ki(t,i=>this.processProvider(i)),this.records.set(gd,Rn(void 0,this)),o.has("environment")&&this.records.set(Pn,Rn(void 0,this));const s=this.records.get(Wi);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(md.multi,U,T.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=xn(this),r=Be(void 0);try{return t()}finally{xn(n),Be(r)}}get(t,n=_r,r=T.Default){this.assertNotDestroyed();const o=xn(this),s=Be(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Yv(e){return"function"==typeof e||"object"==typeof e&&e instanceof j}(t)&&ni(t);a=u&&this.injectableDefInScope(u)?Rn(Qi(t),Bo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?Ho():this.parent).get(t,n=r&T.Optional&&n===_r?null:n)}catch(i){if("NullInjectorError"===i.name){if((i[No]=i[No]||[]).unshift(Z(t)),o)throw i;return function iv(e,t,n,r){const o=e[No];throw t[zc]&&o.unshift(t[zc]),e.message=function av(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Z(t);if(Array.isArray(t))o=t.map(Z).join(" -> ");else if("object"==typeof t){let s=[];for(let i in t)if(t.hasOwnProperty(i)){let a=t[i];s.push(i+":"+("string"==typeof a?JSON.stringify(a):Z(a)))}o=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(tv,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[No]=null,e}(i,t,"R3InjectorError",this.source)}throw i}finally{Be(s),xn(o)}}resolveInjectorInitializers(){const t=xn(this),n=Be(void 0);try{const r=this.get(pd.multi,U,T.Self);for(const o of r)o()}finally{xn(t),Be(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(t){let n=on(t=M(t))?t:M(t&&t.provide);const r=function Qv(e){return qi(e)?Rn(void 0,e.useValue):Rn(Cd(e),Bo)}(t);if(on(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Rn(void 0,Bo,!0),o.factory=()=>ki(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Bo&&(n.value=Wv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Jv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=M(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Qi(e){const t=ni(e),n=null!==t?t.factory:rn(e);if(null!==n)return n;if(e instanceof j)throw new S(204,!1);if(e instanceof Function)return function Zv(e){const t=e.length;if(t>0)throw function vr(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new S(204,!1)}function Cd(e,t,n){let r;if(on(e)){const o=M(e);return rn(o)||Qi(o)}if(qi(e))r=()=>M(e.useValue);else if(function wd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ki(e.deps||[]));else if(function _d(e){return!(!e||!e.useExisting)}(e))r=()=>P(M(e.useExisting));else{const o=M(e&&(e.useClass||e.provide));if(!function Kv(e){return!!e.deps}(e))return rn(o)||Qi(o);r=()=>new o(...ki(e.deps))}return r}function Rn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Xv(e){return!!e.\u0275providers}function Ki(e,t){for(const n of e)Array.isArray(n)?Ki(n,t):Xv(n)?Ki(n.\u0275providers,t):t(n)}class bd{}class n_{resolveComponentFactory(t){throw function t_(e){const t=Error(`No component factory found for ${Z(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let On=(()=>{class e{}return e.NULL=new n_,e})();function r_(){return kn(ce(),y())}function kn(e,t){return new Ln(Ge(e,t))}let Ln=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=r_,e})();class Md{}let Sd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function s_(){const e=y(),n=ke(ce().index,e);return(Ae(n)?n:e)[O]}(),e})(),i_=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class $o{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const a_=new $o("14.1.3"),Ji={};function na(e){return e.ngOriginalError}class jn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&na(t);for(;n&&na(n);)n=na(n);return n||null}}const ra=new Map;let v_=0;const sa="__ngContext__";function De(e,t){Ae(t)?(e[sa]=t[20],function w_(e){ra.set(e[20],e)}(t)):e[sa]=t}function Tr(e){const t=e[sa];return"number"==typeof t?function Pd(e){return ra.get(e)||null}(t):t||null}function ia(e){const t=Tr(e);return t?Ae(t)?t:t.lView:null}const x_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(q))();var xe=(()=>((xe=xe||{})[xe.Important=1]="Important",xe[xe.DashCase=2]="DashCase",xe))();function ua(e,t){return undefined(e,t)}function Ar(e){const t=e[3];return Je(t)?t[3]:t}function la(e){return Hd(e[13])}function ca(e){return Hd(e[4])}function Hd(e){for(;null!==e&&!Je(e);)e=e[4];return e}function Bn(e,t,n,r,o){if(null!=r){let s,i=!1;Je(r)?s=r:Ae(r)&&(i=!0,r=r[0]);const a=se(r);0===e&&null!==n?null==o?Wd(t,n,a):sn(t,n,a,o||null,!0):1===e&&null!==n?sn(t,n,a,o||null,!0):2===e?function ef(e,t,n){const r=Uo(e,t);r&&function Z_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,i):3===e&&t.destroyNode(a),null!=s&&function J_(e,t,n,r,o){const s=n[7];s!==se(n)&&Bn(t,e,r,s,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const s=Ao(e,10+t);!function B_(e,t){xr(e,t,t[O],2,null,null),t[0]=null,t[6]=null}(r[1],r);const i=s[19];null!==i&&i.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Gd(e,t){if(!(128&t[2])){const n=t[O];n.destroyNode&&xr(e,t,n,3,null,null),function U_(e){let t=e[13];if(!t)return pa(e[1],e);for(;t;){let n=null;if(Ae(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ae(t)&&pa(t[1],t),t=t[3];null===t&&(t=e),Ae(t)&&pa(t[1],t),n=t&&t[4]}t=n}}(t)}}function pa(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function W_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),s+=2}else{const i=r[o=n[s+1]];n[s].call(i)}if(null!==r){for(let s=o+1;ss?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==rf(h,l,0)||2&r&&l!==f){if(Xe(r))return!1;i=!0}}}}else{if(!i&&!Xe(r)&&!Xe(u))return!1;if(i&&Xe(u))continue;i=!1,r=u|1&r}}return Xe(r)||i}function Xe(e){return 0==(1&e)}function nw(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let s=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""!==o&&!Xe(i)&&(t+=uf(s,o),o=""),r=i,s=s||!Xe(r);n++}return""!==o&&(t+=uf(s,o)),t}const N={};function Hn(e){lf(B(),y(),be()+e,!1)}function lf(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&wo(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Eo(t,s,0,n)}Bt(n)}function hf(e,t=null,n=null,r){const o=pf(e,t,n,r);return o.resolveInjectorInitializers(),o}function pf(e,t=null,n=null,r,o=new Set){const s=[n||U,Gv(e)];return r=r||("object"==typeof e?void 0:Z(e)),new Ed(s,t||Ho(),r||null,o)}let et=(()=>{class e{static create(n,r){if(Array.isArray(n))return hf({name:""},r,n,"");{const o=n.name??"";return hf({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=_r,e.NULL=new yd,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>P(gd)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=T.Default){const n=y();return null===n?P(e,t):Oc(ce(),n,M(e),t)}function Nf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rQ&&lf(e,t,Q,!1),n(r,o)}finally{Bt(s)}}function Oa(e,t,n){!pc()||(function Kw(e,t,n,r){const o=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||gr(n,t),De(r,t);const i=n.initialInputs;for(let a=o;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,i)}}function Bf(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Hf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function eE(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Ba(n)}}function Ba(e){for(let r=la(e);null!==r;r=ca(r))for(let o=10;o0&&Ba(s)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Ba(o)}}function aE(e,t){const n=ke(t,e),r=n[1];(function uE(e,t){for(let n=t.length;nPromise.resolve(null))();function Wf(e){return e[7]||(e[7]=[])}function Zf(e){return e.cleanup||(e.cleanup=[])}function Kf(e,t){const n=e[9],r=n?n.get(jn,null):null;r&&r.handleError(t)}function Ga(e,t,n,r,o){for(let s=0;s-1&&(ha(t,r),Ao(n,r))}this._attachedToViewContainer=!1}Gd(this._lView[1],this._lView)}onDestroy(t){!function Of(e,t,n,r){const o=Wf(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Zf(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Ha(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function $a(e,t,n){const r=t[10];r.begin&&r.begin();try{Nr(e,t,e.template,n)}catch(o){throw Kf(t,o),o}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $_(e,t){xr(e,t,t[O],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t}}class dE extends Fr{constructor(t){super(t),this._view=t}detectChanges(){qf(this._view)}checkNoChanges(){}get context(){return null}}class za extends On{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=z(t);return new Pr(n,this.ngModule)}}function Jf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class hE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,Ji,r);return o!==Ji||n===Ji?o:this.parentInjector.get(t,n,r)}}class Pr extends bd{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function uw(e){return e.map(aw).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Jf(this.componentDef.inputs)}get outputs(){return Jf(this.componentDef.outputs)}create(t,n,r,o){let s=(o=o||this.ngModule)instanceof Pn?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const i=s?new hE(t,s):t,a=i.get(Md,null);if(null===a)throw new S(407,!1);const u=i.get(i_,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function Gw(e,t,n){return e.selectRootElement(t,n===at.ShadowDom)}(l,r,this.componentDef.encapsulation):fa(a.createRenderer(null,this.componentDef),c,function fE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=function DE(e,t){return{components:[],scheduler:e||x_,clean:cE,playerHandler:t||null,flags:0}}(),p=La(0,null,null,1,0,null,null,null,null,null),g=Ko(null,p,h,f,null,null,a,l,u,i,null);let v,D;Ei(g);try{const E=function mE(e,t,n,r,o,s){const i=n[1];n[22]=e;const u=Un(i,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(Xo(u,l,!0),null!==e&&(Co(o,e,l),null!==u.classes&&Da(o,e,u.classes),null!==u.styles&&nf(o,e,u.styles)));const c=r.createRenderer(e,t),d=Ko(n,Rf(t),null,t.onPush?32:16,n[22],u,r,c,s||null,null,null);return i.firstCreatePass&&(So(gr(u,n),i,t.type),Hf(i,u),$f(u,n.length,1)),Yo(n,d),n[22]=d}(d,this.componentDef,g,a,l);if(d)if(r)Co(l,d,["ng-version",a_.full]);else{const{attrs:m,classes:C}=function lw(e){const t=[],n=[];let r=1,o=2;for(;r0&&Da(l,d,C.join(" "))}if(D=gi(p,Q),void 0!==n){const m=D.projection=[];for(let C=0;Ca(se(L[r.index])):r.index;let C=null;if(!a&&u&&(C=function jE(e,t,n,r){const o=e.cleanup;if(null!=o)for(let s=0;su?a[u]:null}"string"==typeof i&&(s+=2)}return null}(e,t,o,r.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=s,C.__ngLastListenerFn__=s,h=!1;else{s=yh(r,t,d,s,!1);const L=n.listen(D,o,s);f.push(s,L),c&&c.push(o,m,E,E+1)}}else s=yh(r,t,d,s,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const v=g.length;if(v)for(let D=0;D0;)t=t[15],e--;return t}(e,A.lFrame.contextLView))[8]}(e)}function os(e,t,n){return eu(e,"",t,"",n),os}function eu(e,t,n,r,o){const s=y(),i=qn(s,t,n,r);return i!==N&&Ve(B(),ne(),s,e,i,s[O],o,!1),eu}function nu(e,t=""){const n=y(),r=B(),o=e+Q,s=r.firstCreatePass?Un(r,o,1,t,null):r.data[o],i=n[o]=function da(e,t){return e.createText(t)}(n[O],t);Go(r,n,i,s),ut(s,!1)}function is(e){return ru("",e,""),is}function ru(e,t,n){const r=y(),o=qn(r,e,t,n);return o!==N&&At(r,be(),o),ru}const nr="en-US";let up=nr;function iu(e,t,n,r,o){if(e=M(e),Array.isArray(e))for(let s=0;s>20;if(on(e)||!e.multi){const h=new hr(u,o,k),p=uu(a,t,o?c:c+f,d);-1===p?(So(gr(l,i),s,a),au(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),i.push(h)):(n[p]=h,i[p]=h)}else{const h=uu(a,t,c+f,d),p=uu(a,t,c,c+f),g=h>=0&&n[h],v=p>=0&&n[p];if(o&&!v||!o&&!g){So(gr(l,i),s,a);const D=function Cb(e,t,n,r,o){const s=new hr(e,n,k);return s.multi=[],s.index=t,s.componentProviders=0,Pp(s,o,r&&!n),s}(o?Eb:wb,n.length,o,r,u);!o&&v&&(n[p].providerFactory=D),au(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),i.push(D)}else au(s,e,h>-1?h:p,Pp(n[o?p:h],u,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function au(e,t,n,r){const o=on(t),s=function qv(e){return!!e.useClass}(t);if(o||s){const u=(s?M(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Pp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function _b(e,t,n){const r=B();if(r.firstCreatePass){const o=Ye(e);iu(n,r.data,r.blueprint,o,!0),iu(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class or{}class Op extends or{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new za(this);const r=function Re(e,t){const n=e[tc]||null;if(!n&&!0===t)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function St(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=pf(t,n,[{provide:or,useValue:this},{provide:On,useValue:this.componentFactoryResolver}],Z(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cu extends class bb{}{constructor(t){super(),this.moduleType=t}create(t){return new Op(this.moduleType,t)}}function fu(e,t,n,r){return Gp(y(),Ce(),e,t,n,r)}function Up(e,t,n,r,o){return function zp(e,t,n,r,o,s,i){const a=t+n;return function un(e,t,n,r){const o=ve(e,t,n);return ve(e,t+1,r)||o}(e,a,o,s)?ft(e,a+2,i?r.call(i,o,s):r(o,s)):Hr(e,a+2)}(y(),Ce(),e,t,n,r,o)}function Hr(e,t){const n=e[t];return n===N?void 0:n}function Gp(e,t,n,r,o,s){const i=t+n;return ve(e,i,o)?ft(e,i+1,s?r.call(s,o):r(o)):Hr(e,i+1)}function ds(e,t){const n=B();let r;const o=e+Q;n.firstCreatePass?(r=function zb(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const s=r.factory||(r.factory=rn(r.type)),i=Be(k);try{const a=Io(!1),u=s();return Io(a),function PE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,y(),o,u),u}finally{Be(i)}}function fs(e,t,n){const r=e+Q,o=y(),s=function _n(e,t){return e[t]}(o,r);return function $r(e,t){return e[1].data[t].pure}(o,r)?Gp(o,Ce(),t,s.transform,n,s):s.transform(n)}function hu(e){return t=>{setTimeout(e,void 0,t)}}const xt=class Kb extends Kt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,s=n||(()=>null),i=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),s=u.error?.bind(u),i=u.complete?.bind(u)}this.__isAsync&&(s=hu(s),o&&(o=hu(o)),i&&(i=hu(i)));const a=super.subscribe({next:o,error:s,complete:i});return t instanceof Ze&&t.add(a),a}};let Nt=(()=>{class e{}return e.__NG_ELEMENT_ID__=eI,e})();const Yb=Nt,Xb=class extends Yb{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=Ko(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(o[19]=i.createEmbeddedView(r)),Jo(r,o,t),new Fr(o)}};function eI(){return function hs(e,t){return 4&e.type?new Xb(t,e,kn(e,t)):null}(ce(),y())}let gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=tI,e})();function tI(){return function Jp(e,t){let n;const r=t[e.index];if(Je(r))n=r;else{let o;if(8&e.type)o=se(r);else{const s=t[O];o=s.createComment("");const i=Ge(e,t);sn(s,Uo(s,i),o,function Q_(e,t){return e.nextSibling(t)}(s,i),!1)}t[e.index]=n=Gf(r,t,o,e),Yo(t,n)}return new Qp(n,e,t)}(ce(),y())}const nI=gt,Qp=class extends nI{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return kn(this._hostTNode,this._hostLView)}get injector(){return new bn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mo(this._hostTNode,this._hostLView);if(xc(t)){const n=Cn(t,this._hostLView),r=En(t);return new bn(n[1].data[r+8],n)}return new bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Kp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,s;"number"==typeof r?o=r:null!=r&&(o=r.index,s=r.injector);const i=t.createEmbeddedView(n||{},s);return this.insert(i,o),i}createComponent(t,n,r,o,s){const i=t&&!function Dr(e){return"function"==typeof e}(t);let a;if(i)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const u=i?t:new Pr(z(t)),l=r||this.parentInjector;if(!s&&null==u.ngModule){const f=(i?l:this.parentInjector).get(Pn,null);f&&(s=f)}const c=u.create(l,o,void 0,s);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function dD(e){return Je(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Qp(d,d[6],d[3]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(n),i=this._lContainer;!function G_(e,t,n,r){const o=10+r,s=n.length;r>0&&(n[o-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=gs,this.reject=gs,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{s.subscribe({complete:a,error:u})});n.push(i)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(P(wg,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zr=new j("AppId",{providedIn:"root",factory:function Eg(){return`${Iu()}${Iu()}${Iu()}`}});function Iu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cg=new j("Platform Initializer"),Mu=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),OI=new j("appBootstrapListener"),Ft=new j("LocaleId",{providedIn:"root",factory:()=>function ov(e,t=T.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),P(e,t)}(Ft,T.Optional|T.SkipSelf)||function kI(){return typeof $localize<"u"&&$localize.locale||nr}()}),HI=(()=>Promise.resolve(0))();function Su(e){typeof Zone>"u"?HI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ge{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xt(!1),this.onMicrotaskEmpty=new xt(!1),this.onStable=new xt(!1),this.onError=new xt(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function $I(){let e=q.requestAnimationFrame,t=q.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function zI(e){const t=()=>{!function GI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(q,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Au(e),e.isCheckStableRunning=!0,Tu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Au(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,s,i,a)=>{try{return Mg(e),n.invokeTask(o,s,i,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Sg(e)}},onInvoke:(n,r,o,s,i,a,u)=>{try{return Mg(e),n.invoke(o,s,i,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Sg(e)}},onHasTask:(n,r,o,s)=>{n.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Au(e),Tu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ge.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+o,t,UI,gs,gs);try{return s.runTask(i,n,r)}finally{s.cancelTask(i)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const UI={};function Tu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Au(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sg(e){e._nesting--,Tu(e)}class qI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xt,this.onMicrotaskEmpty=new xt,this.onStable=new xt,this.onError=new xt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Tg=new j(""),ys=new j("");let Fu,xu=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Fu||(function WI(e){Fu=e}(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:()=>{ge.assertNotInAngularZone(),Su(()=>{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())Su(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(i=>i.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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 e.\u0275fac=function(n){return new(n||e)(P(ge),P(Nu),P(ys))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Nu=(()=>{class e{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 Fu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),qt=null;const Ag=new j("AllowMultipleToken"),Pu=new j("PlatformDestroyListeners");function Ng(e,t,n=[]){const r=`Platform: ${t}`,o=new j(r);return(s=[])=>{let i=Ru();if(!i||i.injector.get(Ag,!1)){const a=[...n,...s,{provide:o,useValue:!0}];e?e(a):function KI(e){if(qt&&!qt.get(Ag,!1))throw new S(400,!1);qt=e;const t=e.get(Pg);(function xg(e){const t=e.get(Cg,null);t&&t.forEach(n=>n())})(e)}(function Fg(e=[],t){return et.create({name:t,providers:[{provide:Wi,useValue:"platform"},{provide:Pu,useValue:new Set([()=>qt=null])},...e]})}(a,r))}return function YI(e){const t=Ru();if(!t)throw new S(401,!1);return t}()}}function Ru(){return qt?.get(Pg)??null}let Pg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function XI(e,t){let n;return n="noop"===e?new qI:("zone.js"===e?void 0:e)||new ge(t),n}(r?.ngZone,function Rg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),s=[{provide:ge,useValue:o}];return o.run(()=>{const i=et.create({providers:s,parent:this.injector,name:n.moduleType.name}),a=n.create(i),u=a.injector.get(jn,null);if(!u)throw new S(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{vs(this._modules,a),l.unsubscribe()})}),function Og(e,t,n){try{const r=n();return Ya(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ms);return l.runInitializers(),l.donePromise.then(()=>(function lp(e){Pe(e,"Expected localeId to be defined"),"string"==typeof e&&(up=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Ft,nr)||nr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=kg({},r);return function ZI(e,t,n){const r=new cu(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(Ds);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new S(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 S(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Pu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function kg(e,t){return Array.isArray(t)?t.reduce(kg,e):{...e,...t}}let Ds=(()=>{class e{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 s=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),i=new _e(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{ge.assertNotInAngularZone(),Su(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=Ql(s,i.pipe(Kl()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof bd;if(!this._injector.get(ms).done)throw!o&&function Gr(e){const t=z(e)||we(e)||Ee(e);return null!==t&&t.standalone}(n),new S(405,false);let i;i=o?n:this._injector.get(On).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const a=function QI(e){return e.isBoundToModule}(i)?void 0:this._injector.get(or),l=i.create(et.NULL,[],r||i.selector,a),c=l.location.nativeElement,d=l.injector.get(Tg,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),vs(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new S(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;vs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(OI,[]).concat(this._bootstrapListeners).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),()=>vs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(P(ge),P(Pn),P(jn))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let jg=!0,Hg=(()=>{class e{}return e.__NG_ELEMENT_ID__=n0,e})();function n0(e){return function r0(e,t,n){if(po(e)&&!n){const r=ke(e.index,t);return new Fr(r,r)}return 47&e.type?new Fr(t[16],t):null}(ce(),y(),16==(16&e))}class Gg{constructor(){}supports(t){return Rr(t)}create(t){return new c0(t)}}const l0=(e,t)=>t;class c0{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||l0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,s=null;for(;n||r;){const i=!r||n&&n.currentIndex{i=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,i)?(r&&(n=this._verifyReinsertion(n,a,i,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,i,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new d0(n,r),s,o),t}_verifyReinsertion(t,n,r,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new zg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new zg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class d0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class f0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class zg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new f0,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,i=o._next;return s&&(s._next=i),i&&(i._prev=s),o._next=null,o._prev=null,o}const r=new p0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class p0{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zg(){return new Es([new Gg])}let Es=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Zg()),deps:[[e,new Po,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new S(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Zg}),e})();function Qg(){return new qr([new Wg])}let qr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Qg()),deps:[[e,new Po,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Qg}),e})();const y0=Ng(null,"core",[]);let D0=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(P(Ds))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({}),e})(),Cs=null;function Wr(){return Cs}const mt=new j("DocumentToken");function sm(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,s]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(s)}return null}class uM{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let um=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,s,i)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new uM(o.item,this._ngForOf,-1,-1),null===i?void 0:i);else if(null==i)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,i),lm(a,o)}});for(let o=0,s=r.length;o{lm(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(Nt),k(Es))},e.\u0275dir=He({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function lm(e,t){e.context.$implicit=t.item}let cm=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new cM,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){dm("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){dm("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(Nt))},e.\u0275dir=He({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class cM{constructor(){this.$implicit=null,this.ngIf=null}}function dm(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}let hm=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){const n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){const[o,s]=n.split("."),i=-1===o.indexOf("-")?void 0:xe.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,i):this._renderer.removeStyle(this._ngEl.nativeElement,o,i)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return e.\u0275fac=function(n){return new(n||e)(k(Ln),k(qr),k(Sd))},e.\u0275dir=He({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),e})();class gM{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}}class mM{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}}const yM=new mM,DM=new gM;let pm=(()=>{class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ya(n))return yM;if(hh(n))return DM;throw function it(e,t){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(k(Hg,16))},e.\u0275pipe=Te({name:"async",type:e,pure:!1,standalone:!0}),e})(),mm=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({}),e})();class vm{}class Yu extends class VM extends class w0{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function _0(e){Cs||(Cs=e)}(new Yu)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function BM(){return Kr=Kr||document.querySelector("base"),Kr?Kr.getAttribute("href"):null}();return null==n?null:function HM(e){Ps=Ps||document.createElement("a"),Ps.setAttribute("href",e);const t=Ps.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return sm(document.cookie,t)}}let Ps,Kr=null;const _m=new j("TRANSITION_ID"),UM=[{provide:wg,useFactory:function $M(e,t,n){return()=>{n.get(ms).donePromise.then(()=>{const r=Wr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let s=0;s{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const Rs=new j("EventManagerPlugins");let Os=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let s=0;s{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Jr=(()=>{class e extends Em{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(s=>{const i=this._doc.createElement("style");i.textContent=s,o.push(r.appendChild(i))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Cm),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Cm))}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Cm(e){Wr().remove(e)}const Xu={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/"},el=/%COMP%/g;function ks(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let tl=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new nl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case at.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new JM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case at.ShadowDom:return new YM(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=ks(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(P(Os),P(Jr),P(zr))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class nl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Xu[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Tm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Tm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const s=Xu[o];s?t.setAttributeNS(s,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Xu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xe.DashCase|xe.Important)?t.style.setProperty(n,r,o&xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Mm(r)):this.eventManager.addEventListener(t,n,Mm(r))}}function Tm(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class JM extends nl{constructor(t,n,r,o){super(t),this.component=r;const s=ks(o+"-"+r.id,r.styles,[]);n.addStyles(s),this.contentAttr=function ZM(e){return"_ngcontent-%COMP%".replace(el,e)}(o+"-"+r.id),this.hostAttr=function QM(e){return"_nghost-%COMP%".replace(el,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class YM extends nl{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ks(o.id,o.styles,[]);for(let i=0;i{class e extends wm{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const Am=["alt","control","meta","shift"],tS={"\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"},xm={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let rS=(()=>{class e extends wm{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const s=e.parseEventName(r),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(n,s.domEventName,i))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let i="";if(Am.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),i+=u+".")}),i+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=o,a.fullKey=i,a}static getEventFullKey(n){let r="",o=function oS(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&xm.hasOwnProperty(t)&&(t=xm[t]))}return tS[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Am.forEach(s=>{s!=o&&(0,nS[s])(n)&&(r+=s+".")}),r+=o,r}static eventCallback(n,r,o){return s=>{e.getEventFullKey(s)===n&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const uS=Ng(y0,"browser",[{provide:Mu,useValue:"browser"},{provide:Cg,useValue:function sS(){Yu.makeCurrent()},multi:!0},{provide:mt,useFactory:function aS(){return function yv(e){ji=e}(document),document},deps:[]}]),Fm=new j(""),Pm=[{provide:ys,useClass:class GM{addToWindow(t){q.getAngularTestability=(r,o=!0)=>{const s=t.findTestabilityInTree(r,o);if(null==s)throw new Error("Could not find testability for element.");return s},q.getAllAngularTestabilities=()=>t.getAllTestabilities(),q.getAllAngularRootElements=()=>t.getAllRootElements(),q.frameworkStabilizers||(q.frameworkStabilizers=[]),q.frameworkStabilizers.push(r=>{const o=q.getAllAngularTestabilities();let s=o.length,i=!1;const a=function(u){i=i||u,s--,0==s&&r(i)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Wr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Tg,useClass:xu,deps:[ge,Nu,ys]},{provide:xu,useClass:xu,deps:[ge,Nu,ys]}],Rm=[{provide:Wi,useValue:"root"},{provide:jn,useFactory:function iS(){return new jn},deps:[]},{provide:Rs,useClass:XM,multi:!0,deps:[mt,ge,Mu]},{provide:Rs,useClass:rS,multi:!0,deps:[mt]},{provide:tl,useClass:tl,deps:[Os,Jr,zr]},{provide:Md,useExisting:tl},{provide:Em,useExisting:Jr},{provide:Jr,useClass:Jr,deps:[mt]},{provide:Os,useClass:Os,deps:[Rs,ge]},{provide:vm,useClass:zM,deps:[]},[]];let Om=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:zr,useValue:n.appId},{provide:_m,useExisting:zr},UM]}}}return e.\u0275fac=function(n){return new(n||e)(P(Fm,12))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[...Rm,...Pm],imports:[mm,D0]}),e})();typeof window<"u"&&window;class jm extends Kt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Ls(e,t){return Dt((n,r)=>{let o=0;n.subscribe(vt(r,s=>e.call(t,s,o++)&&r.next(s)))})}const sl={now:()=>(sl.delegate||Date).now(),delegate:void 0};class il extends Kt{constructor(t=1/0,n=1/0,r=sl){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:i}=this;n||(r.push(t),!o&&r.push(s.now()+i)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,s=o.slice();for(let i=0;i{_t(e).subscribe(vt(n,()=>n.complete(),$s)),!n.closed&&t.subscribe(n)})}class DS extends Ze{constructor(t,n){super()}schedule(t,n=0){return this}}const js={setInterval(e,t,...n){const{delegate:r}=js;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=js;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class Yr{constructor(t,n=Yr.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Yr.now=sl.now;const wS=new class _S extends Yr{constructor(t,n=Yr.now){super(t,n),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}(class vS extends DS{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return js.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;js.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;try{this.work(t)}catch(s){r=!0,o=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,pn(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}});function Bm(e,t){return Dt((n,r)=>{let o=null,s=0,i=!1;const a=()=>i&&!o&&r.complete();n.subscribe(vt(r,u=>{o?.unsubscribe();let l=0;const c=s++;_t(e(u,c)).subscribe(o=vt(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{i=!0,a()}))})}class Hm{}class $m{}class yt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),s=o.toLowerCase(),i=n.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof yt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new yt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof yt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const s=t.value;if(s){let i=this.headers.get(n);if(!i)return;i=i.filter(a=>-1===s.indexOf(a)),0===i.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,i)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class IS{encodeKey(t){return Um(t)}encodeValue(t){return Um(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const SS=/%(\d[a-f0-9])/gi,TS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Um(e){return encodeURIComponent(e).replace(SS,(t,n)=>TS[n]??t)}function Vs(e){return`${e}`}class Ot{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new IS,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function MS(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[i,a]=-1==s?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],u=n.get(i)||[];u.push(a),n.set(i,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Vs):[Vs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Ot({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Vs(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Vs(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class AS{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Gm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function zm(e){return typeof Blob<"u"&&e instanceof Blob}function qm(e){return typeof FormData<"u"&&e instanceof FormData}class Xr{constructor(t,n,r,o){let s;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function xS(e){switch(e){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,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new yt),this.context||(this.context=new AS),this.params){const i=this.params.toString();if(0===i.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Xr(n,r,s,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:i})}}var le=(()=>((le=le||{})[le.Sent=0]="Sent",le[le.UploadProgress=1]="UploadProgress",le[le.ResponseHeader=2]="ResponseHeader",le[le.DownloadProgress=3]="DownloadProgress",le[le.Response=4]="Response",le[le.User=5]="User",le))();class al{constructor(t,n=200,r="OK"){this.headers=t.headers||new yt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ul extends al{constructor(t={}){super(t),this.type=le.ResponseHeader}clone(t={}){return new ul({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Bs extends al{constructor(t={}){super(t),this.type=le.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bs({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wm extends al{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function ll(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Zm=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Xr)s=n;else{let u,l;u=o.headers instanceof yt?o.headers:new yt(o.headers),o.params&&(l=o.params instanceof Ot?o.params:new Ot({fromObject:o.params})),s=new Xr(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const i=function CS(...e){return Zl(e,Gl(e))}(s).pipe(function bS(e,t){return X(t)?so(e,t,1):so(e,1)}(u=>this.handler.handle(u)));if(n instanceof Xr||"events"===o.observe)return i;const a=i.pipe(Ls(u=>u instanceof Bs));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Jt(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Jt(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Jt(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Jt(u=>u.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 Ot).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,ll(o,r))}post(n,r,o={}){return this.request("POST",n,ll(o,r))}put(n,r,o={}){return this.request("PUT",n,ll(o,r))}}return e.\u0275fac=function(n){return new(n||e)(P(Hm))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class Qm{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const Km=new j("HTTP_INTERCEPTORS");let FS=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const PS=/^\)\]\}',?\n/;let Jm=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e(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 s=n.serializeBody();let i=null;const a=()=>{if(null!==i)return i;const h=o.statusText||"OK",p=new yt(o.getAllResponseHeaders()),g=function RS(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return i=new ul({headers:p,status:o.status,statusText:h,url:g}),i},u=()=>{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 E=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const m=D;D=D.replace(PS,"");try{D=""!==D?JSON.parse(D):null}catch(C){D=m,E&&(E=!1,D={error:C,text:D})}}E?(r.next(new Bs({body:D,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new Wm({error:D,headers:h,status:p,statusText:g,url:v||void 0}))},l=h=>{const{url:p}=a(),g=new Wm({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:le.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:le.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==s&&o.upload&&o.upload.addEventListener("progress",f)),o.send(s),r.next({type:le.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==s&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(P(vm))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const cl=new j("XSRF_COOKIE_NAME"),dl=new j("XSRF_HEADER_NAME");class Ym{}let OS=(()=>{class e{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=sm(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(P(mt),P(Mu),P(cl))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),fl=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const s=this.tokenService.getToken();return null!==s&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,s)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(P(Ym),P(dl))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),kS=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(Km,[]);this.chain=r.reduceRight((o,s)=>new Qm(o,s),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(P($m),P(et))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),LS=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:fl,useClass:FS}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:cl,useValue:n.cookieName}:[],n.headerName?{provide:dl,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[fl,{provide:Km,useExisting:fl,multi:!0},{provide:Ym,useClass:OS},{provide:cl,useValue:"XSRF-TOKEN"},{provide:dl,useValue:"X-XSRF-TOKEN"}]}),e})(),jS=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[Zm,{provide:Hm,useClass:kS},Jm,{provide:$m,useExisting:Jm}],imports:[LS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),Xm=(()=>{class e{constructor(n){this.api=n,this._uri="https://api-adresse.data.gouv.fr"}set uri(n){this._uri=n}get urlSearch(){return`${this._uri}/search/`}get(n){const r={params:(new Ot).set("autocomplete","0").set("limit","5"),headers:(new yt).set("Accept","application/json")};return n.autocomplete&&(r.params=r.params.set("autocomplete",n.autocomplete.toString())),n.limit&&(r.params=r.params.set("limit",n.limit.toString())),n.q?(r.params=r.params.set("q",n.q),this.api.request("GET",this.urlSearch,r).pipe(Jt(o=>o.features),function VS(e,t,n){let r,o=!1;return e&&"object"==typeof e?({bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e):r=e??1/0,Kl({connector:()=>new il(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1))):Qs}search(n,r=5,o="housenumber",s=0){return this.get({q:n,limit:r,type:o,autocomplete:s})}}return e.\u0275fac=function(n){return new(n||e)(P(Zm))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function BS(e,t){if(1&e&&(zt(0,"label",4),nu(1),cn()),2&e){const n=Xa();os("for",n.id),Hn(1),is(n.label)}}const HS=function(e){return{"background-color":e}};function $S(e,t){if(1&e){const n=function fh(){return y()}();zt(0,"li",5),rs("click",function(){const s=function gc(e){return A.lFrame.contextLView=e,e[8]}(n).$implicit;return function mc(e){return A.lFrame.contextLView=null,e}(Xa().selectAddress(s))}),zt(1,"span"),nu(2),cn()()}if(2&e){const n=t.$implicit;ln("ngStyle",fu(2,HS,t.odd?"#fafafa":"#f0f0f0")),Hn(2),is(n.properties.label)}}const US=function(e){return{width:e}},GS=function(e,t){return{width:e,border:t}};let ey=(()=>{class e{constructor(n){this.service=n,this.selectedAddress$=new jm({}),this.listAddresses$=new Kt,this.listAddresses=this.listAddresses$.asObservable(),this.listAddressesForStylish=this.listAddresses.pipe(Ls(r=>r.length>0)),this.inputValue=new jm(""),this.loaderSize=15,this.width=250,this.placeholder="",this.label="",this.id="ri-address-search-component-"+(new Date).getTime(),this.uri="",this.isLoading=new il(1),this.addressFound=this.selectedAddress$.asObservable(),this.ngUnsubscribe=new Kt}ngOnInit(){this.uri&&(this.service.uri=this.uri),this.isLoading.next(!1),this.inputValue.asObservable().pipe(Vm(this.ngUnsubscribe)).subscribe(()=>this.isLoading.next(!0)),this.inputValue.asObservable().pipe(Vm(this.ngUnsubscribe),function ES(e,t=wS){return Dt((n,r)=>{let o=null,s=null,i=null;const a=()=>{if(o){o.unsubscribe(),o=null;const l=s;s=null,r.next(l)}};function u(){const l=i+e,c=t.now();if(c{s=l,i=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{s=o=null}))})}(1e3),Ls(n=>n.trim().length>3),Ls(n=>!this.selectedAddress$.getValue().properties||n!==this.selectedAddress$.getValue().properties.label),Bm(n=>this.service.search(n))).subscribe(n=>{this.listAddresses$.next(n),this.isLoading.next(!1)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}onKeyUp(n){const r=n.currentTarget.value;r!==this.inputValue.getValue()&&this.inputValue.next(r)}selectAddress(n){this.selectedAddress$.next(n),this.listAddresses$.next([]),this.inputValue.next(n.properties.label)}}return e.\u0275fac=function(n){return new(n||e)(k(Xm))},e.\u0275cmp=ai({type:e,selectors:[["ng-address-data-gouv-search"]],inputs:{loaderSize:"loaderSize",width:"width",placeholder:"placeholder",label:"label",id:"id",uri:"uri"},outputs:{isLoading:"isLoading",addressFound:"addressFound"},features:[Rp([Xm])],decls:7,vars:18,consts:[[3,"for",4,"ngIf"],[3,"id","placeholder","ngStyle","value","keyup"],[3,"ngStyle"],[3,"ngStyle","click",4,"ngFor","ngForOf"],[3,"for"],[3,"ngStyle","click"]],template:function(n,r){1&n&&(Za(0,BS,2,2,"label",0),zt(1,"input",1),rs("keyup",function(s){return r.onKeyUp(s)}),ds(2,"async"),cn(),zt(3,"ul",2),ds(4,"async"),Za(5,$S,3,4,"li",3),ds(6,"async"),cn()),2&n&&(ln("ngIf",r.label),Hn(1),os("id",r.id),ln("placeholder",r.placeholder)("ngStyle",fu(13,US,r.width+"px"))("value",fs(2,7,r.inputValue)),Hn(2),ln("ngStyle",Up(15,GS,r.width+"px",fs(4,9,r.listAddressesForStylish)?"0.2px solid #ccc":"0px")),Hn(2),ln("ngForOf",fs(6,11,r.listAddresses)))},dependencies:[um,cm,hm,pm],styles:["input[_ngcontent-%COMP%]{border:.2px solid #ccc}ul[_ngcontent-%COMP%]{padding-inline-start:0px;margin-block-start:0em}li[_ngcontent-%COMP%]{list-style-type:none;cursor:pointer}li[_ngcontent-%COMP%]:hover{padding-left:5px}"]}),e})();const Hs={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if(typeof window>"u")return Hs.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Hs.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};let hl;function XS(e,t,n){let r=n;return function qS(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,s)=>!("*"===o||!function ZS(e,t){if(!hl){const n=Element.prototype;hl=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&hl.call(e,t)}(e,o)||(r=s,0))),r}class tT{constructor(t,n){this.componentFactory=n.get(On).resolveComponentFactory(t)}create(t){return new nT(this.componentFactory,t)}}class nT{constructor(t,n){this.componentFactory=t,this.injector=n,this.eventEmitters=new il(1),this.events=this.eventEmitters.pipe(Bm(r=>Ql(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Hs.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){this.runInZone(()=>{null!==this.componentRef?function QS(e,t){return e===t||e!=e&&t!=t}(n,this.getInputValue(t))&&(void 0!==n||!this.unchangedInputs.has(t))||(this.recordInputChange(t,n),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=n,this.scheduleDetectChanges()):this.initialInputValues.set(t,n)})}initializeComponent(t){const n=et.create({providers:[],parent:this.injector}),r=function YS(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((s,i)=>"*"===s&&(o=i,!0));for(let s=0,i=n.length;s{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>t.instance[r].pipe(Jt(i=>({name:o,value:i}))));this.eventEmitters.next(n)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(n)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Hs.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=n);const o=this.unchangedInputs.has(t),s=o?void 0:this.getInputValue(t);this.inputChanges[t]=new ac(s,n,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class rT extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function ty(e,t){const n=function JS(e,t){return t.get(On).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new tT(e,t.injector),o=function KS(e){const t={};return e.forEach(({propName:n,templateName:r})=>{t[function zS(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=n}),t}(n);class s extends rT{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:u})=>{if(!this.hasOwnProperty(u))return;const l=this[u];delete this[u],a.setInputValue(u,l)})}return this._ngElementStrategy}attributeChangedCallback(a,u,l,c){this.ngElementStrategy.setInputValue(o[a],l)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return s.observedAttributes=Object.keys(o),n.forEach(({propName:i})=>{Object.defineProperty(s.prototype,i,{get(){return this.ngElementStrategy.getInputValue(i)},set(a){this.ngElementStrategy.setInputValue(i,a)},configurable:!0,enumerable:!0})}),s}let oT=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=ty(ey,{injector:this.injector});customElements.define("ng-address-data-gouv-search",n)}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({imports:[Om,mm,jS]}),e})(),sT=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=ty(ey,{injector:this.injector});customElements.define("ng-address-data-gouv-search",n)}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({imports:[Om,oT]}),e})();(function t0(){jg=!1})(),uS().bootstrapModule(sT).catch(e=>console.error(e))}},X=>{X(X.s=930)}]); \ No newline at end of file diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..e3a32b6 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + +
+
+

ng-address-data-gouv

+

Web Component with an input field with autocompletion that allows user to search real french addresses using official web service : https://geo.api.gouv.fr

+ +
+ View on + GitHub +
+
+
+ +
+
+

NgAddressDataGouv

+ +

The aim of this project is to provide a web custom elements with an autocomplete input that consume the API of + https://geo.api.gouv.fr
+ With this component you can fill an french address that will be validated against official geo.api.gouv.fr.

+ +

You may also import the StandaloneModule to use the component inside your angular project.

+ +

Demo

+ + +

+
+    

Usage

+ +

You only need to require the javascript files in your html template like this:

+ +
+
+
+          
+            <script src="node_modules/ng-address-data-gouv/dist/app/output.js" type="module"></script>
+          
+        
+
+
+ +

And then you can use the custom elements everywhere like this:

+ +
+
+
+          
+            <ng-address-data-gouv-search></ng-address-data-gouv-search>
+          
+        
+
+
+ +

Parameters

+ +
    +
  • loaderSize: in px, default is 15
  • +
  • width: of the input field, in px, default is 250
  • +
  • placeholder: of the input, default is empty
  • +
  • label: of the input, default is empty
  • +
  • id: of the input if you need one, default is like this ‘ri-address-search-component-‘ + (new + Date()).getTime(); +
  • +
  • uri: of the API in case you host your own server (cloned from https://github.com/etalab), default is the + official uri https://api-adresse.data.gouv.fr +
  • +
+ +

Output

+ +
    +
  • addressFound: the full address retrieved from API with coordinates
  • +
+ +

Sample

+ +
+
+
+          
+            <ng-address-data-gouv-search (addressFound)="console.log($event)" label="Just fill the input with a french postal address: " width="500"></ng-address-data-gouv-search>
+          
+        
+
+
+ +

Extra infos

+ +

In fact you should never keep node_modules in production, but you should move dist files in your app using + Webpack, or your Continous Integration with your pipelines.

+ +

This project was generated with Angular CLI version 8.0.6. +

+ +

Development server

+ +

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of + the source files.

+ +

This is the debug mode, a bit like a StoryBook project where the component AddressSearchComponent is built like a + full angular component

+ +

Build

+ +

Run npm run build to build the project as a custom element.

+ +

Running unit tests

+ +

Run ng test to execute the unit tests via Karma.

+ +

Running end-to-end tests

+ +

Run ng e2e to execute the end-to-end tests via Protractor.

+ +

Further help

+ +

You can add issues or do some PR to improve this package !

+ +
+
+ + + + + + + diff --git a/docs/main.js b/docs/main.js new file mode 100644 index 0000000..1158d5e --- /dev/null +++ b/docs/main.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{930:()=>{function X(e){return"function"==typeof e}function eo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const to=eo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function pn(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Ze{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(X(r))try{r()}catch(s){t=s instanceof to?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{Il(s)}catch(i){t=t??[],i instanceof to?t=[...t,...i.errors]:t.push(i)}}if(t)throw new to(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Il(t);else{if(t instanceof Ze){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&pn(n,t)}remove(t){const{_finalizers:n}=this;n&&pn(n,t),t instanceof Ze&&t._removeParent(this)}}Ze.EMPTY=(()=>{const e=new Ze;return e.closed=!0,e})();const Cl=Ze.EMPTY;function bl(e){return e instanceof Ze||e&&"closed"in e&&X(e.remove)&&X(e.add)&&X(e.unsubscribe)}function Il(e){X(e)?e():e.unsubscribe()}const Zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},no={setTimeout(e,t,...n){const{delegate:r}=no;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=no;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ml(e){no.setTimeout(()=>{const{onUnhandledError:t}=Zt;if(!t)throw e;t(e)})}function $s(){}const ny=Us("C",void 0,void 0);function Us(e,t,n){return{kind:e,value:t,error:n}}let Qt=null;function ro(e){if(Zt.useDeprecatedSynchronousErrorHandling){const t=!Qt;if(t&&(Qt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Qt;if(Qt=null,n)throw r}}else e()}class Gs extends Ze{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,bl(t)&&t.add(this)):this.destination=ly}static create(t,n,r){return new ar(t,n,r)}next(t){this.isStopped?qs(function oy(e){return Us("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?qs(function ry(e){return Us("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?qs(ny,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const iy=Function.prototype.bind;function zs(e,t){return iy.call(e,t)}class ay{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){oo(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){oo(r)}else oo(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){oo(n)}}}class ar extends Gs{constructor(t,n,r){let o;if(super(),X(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let s;this&&Zt.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&zs(t.next,s),error:t.error&&zs(t.error,s),complete:t.complete&&zs(t.complete,s)}):o=t}this.destination=new ay(o)}}function oo(e){Zt.useDeprecatedSynchronousErrorHandling?function sy(e){Zt.useDeprecatedSynchronousErrorHandling&&Qt&&(Qt.errorThrown=!0,Qt.error=e)}(e):Ml(e)}function qs(e,t){const{onStoppedNotification:n}=Zt;n&&no.setTimeout(()=>n(e,t))}const ly={closed:!0,next:$s,error:function uy(e){throw e},complete:$s},Ws="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sl(e){return e}let _e=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const s=function dy(e){return e&&e instanceof Gs||function cy(e){return e&&X(e.next)&&X(e.error)&&X(e.complete)}(e)&&bl(e)}(n)?n:new ar(n,r,o);return ro(()=>{const{operator:i,source:a}=this;s.add(i?i.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Al(r))((o,s)=>{const i=new ar({next:a=>{try{n(a)}catch(u){s(u),i.unsubscribe()}},error:s,complete:o});this.subscribe(i)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ws](){return this}pipe(...n){return function Tl(e){return 0===e.length?Sl:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Al(n))((r,o)=>{let s;this.subscribe(i=>s=i,i=>o(i),()=>r(s))})}}return e.create=t=>new e(t),e})();function Al(e){var t;return null!==(t=e??Zt.Promise)&&void 0!==t?t:Promise}const fy=eo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Kt=(()=>{class e extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new xl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fy}next(n){ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ro(()=>{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(){ro(()=>{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:s}=this;return r||o?Cl:(this.currentObservers=null,s.push(n),new Ze(()=>{this.currentObservers=null,pn(s,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:s}=this;r?n.error(o):s&&n.complete()}asObservable(){const n=new _e;return n.source=this,n}}return e.create=(t,n)=>new xl(t,n),e})();class xl extends Kt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Cl}}function Dt(e){return t=>{if(function hy(e){return X(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(e,t,n,r,o){return new py(e,t,n,r,o)}class py extends Gs{constructor(t,n,r,o,s,i){super(t),this.onFinalize=s,this.shouldUnsubscribe=i,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Jt(e,t){return Dt((n,r)=>{let o=0;n.subscribe(vt(r,s=>{r.next(e.call(t,s,o++))}))})}function Yt(e){return this instanceof Yt?(this.v=e,this):new Yt(e)}function yy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),s=[];return o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o;function i(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){s.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Yt?Promise.resolve(f.value.v).then(l,c):d(s[0][2],f)}(r[f](h))}catch(p){d(s[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Dy(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Pl(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,u){!function o(s,i,a,u){Promise.resolve(u).then(function(l){s({value:l,done:a})},i)}(a,u,(i=e[s](i)).done,i.value)})}}}const Rl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ol(e){return X(e?.then)}function kl(e){return X(e[Ws])}function Ll(e){return Symbol.asyncIterator&&X(e?.[Symbol.asyncIterator])}function jl(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Vl=function _y(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Bl(e){return X(e?.[Vl])}function Hl(e){return yy(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Yt(n.read());if(o)return yield Yt(void 0);yield yield Yt(r)}}finally{n.releaseLock()}})}function $l(e){return X(e?.getReader)}function _t(e){if(e instanceof _e)return e;if(null!=e){if(kl(e))return function wy(e){return new _e(t=>{const n=e[Ws]();if(X(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rl(e))return function Ey(e){return new _e(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ml)})}(e);if(Ll(e))return Ul(e);if(Bl(e))return function by(e){return new _e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($l(e))return function Iy(e){return Ul(Hl(e))}(e)}throw jl(e)}function Ul(e){return new _e(t=>{(function My(e,t){var n,r,o,s;return function gy(e,t,n,r){return new(n||(n=Promise))(function(s,i){function a(c){try{l(r.next(c))}catch(d){i(d)}}function u(c){try{l(r.throw(c))}catch(d){i(d)}}function l(c){c.done?s(c.value):function o(s){return s instanceof n?s:new n(function(i){i(s)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=Dy(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(i){o={error:i}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function kt(e,t,n,r=0,o=!1){const s=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!o)return s}function so(e,t,n=1/0){return X(t)?so((r,o)=>Jt((s,i)=>t(r,s,o,i))(_t(e(r,o))),n):("number"==typeof t&&(n=t),Dt((r,o)=>function Sy(e,t,n,r,o,s,i,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l{s&&t.next(g),l++;let v=!1;_t(n(g,c++)).subscribe(vt(t,D=>{o?.(D),s?h(D):t.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;u.length&&lp(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(vt(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const Qs=new _e(e=>e.complete());function Ks(e){return e[e.length-1]}function Gl(e){return function xy(e){return e&&X(e.schedule)}(Ks(e))?e.pop():void 0}function zl(e,t=0){return Dt((n,r)=>{n.subscribe(vt(r,o=>kt(r,e,()=>r.next(o),t),()=>kt(r,e,()=>r.complete(),t),o=>kt(r,e,()=>r.error(o),t)))})}function ql(e,t=0){return Dt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wl(e,t){if(!e)throw new Error("Iterable cannot be null");return new _e(n=>{kt(n,t,()=>{const r=e[Symbol.asyncIterator]();kt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Zl(e,t){return t?function Ly(e,t){if(null!=e){if(kl(e))return function Fy(e,t){return _t(e).pipe(ql(t),zl(t))}(e,t);if(Rl(e))return function Ry(e,t){return new _e(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ol(e))return function Py(e,t){return _t(e).pipe(ql(t),zl(t))}(e,t);if(Ll(e))return Wl(e,t);if(Bl(e))return function Oy(e,t){return new _e(n=>{let r;return kt(n,t,()=>{r=e[Vl](),kt(n,t,()=>{let o,s;try{({value:o,done:s}=r.next())}catch(i){return void n.error(i)}s?n.complete():n.next(o)},0,!0)}),()=>X(r?.return)&&r.return()})}(e,t);if($l(e))return function ky(e,t){return Wl(Hl(e),t)}(e,t)}throw jl(e)}(e,t):_t(e)}function Ql(...e){const t=Gl(e),n=function Ny(e,t){return"number"==typeof Ks(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?_t(r[0]):function Ty(e=1/0){return so(Sl,e)}(n)(Zl(r,t)):Qs}function Kl(e={}){const{connector:t=(()=>new Kt),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return s=>{let i,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),i=u=void 0,c=d=!1},p=()=>{const g=i;h(),g?.unsubscribe()};return Dt((g,v)=>{l++,!d&&!c&&f();const D=u=u??t();v.add(()=>{l--,0===l&&!d&&!c&&(a=Js(p,o))}),D.subscribe(v),!i&&l>0&&(i=new ar({next:E=>D.next(E),error:E=>{d=!0,f(),a=Js(h,n,E),D.error(E)},complete:()=>{c=!0,f(),a=Js(h,r),D.complete()}}),_t(g).subscribe(i))})(s)}}function Js(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new ar({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function W(e){for(let t in e)if(e[t]===W)return t;throw Error("Could not find renamed property on target object.")}function Z(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Xs(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const jy=W({__forward_ref__:W});function ei(e){return e.__forward_ref__=ei,e.toString=function(){return Z(this())},e}function M(e){return function ti(e){return"function"==typeof e&&e.hasOwnProperty(jy)&&e.__forward_ref__===ei}(e)?e():e}class S extends Error{constructor(t,n){super(function io(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function x(e){return"string"==typeof e?e:null==e?"":String(e)}function ao(e,t){throw new S(-201,!1)}function Pe(e,t){null==e&&function G(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{providers:e.providers||[],imports:e.imports||[]}}function ni(e){return Jl(e,uo)||Jl(e,Xl)}function Jl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yl(e){return e&&(e.hasOwnProperty(ri)||e.hasOwnProperty(qy))?e[ri]:null}const uo=W({\u0275prov:W}),ri=W({\u0275inj:W}),Xl=W({ngInjectableDef:W}),qy=W({ngInjectorDef:W});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let oi;function Be(e){const t=oi;return oi=e,t}function ec(e,t,n){const r=ni(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void ao(Z(e))}function Lt(e){return{toString:e}.toString()}var Qe=(()=>((Qe=Qe||{})[Qe.OnPush=0]="OnPush",Qe[Qe.Default=1]="Default",Qe))(),at=(()=>{return(e=at||(at={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",at;var e})();const q=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gn={},U=[],lo=W({\u0275cmp:W}),si=W({\u0275dir:W}),ii=W({\u0275pipe:W}),tc=W({\u0275mod:W}),Ct=W({\u0275fac:W}),ur=W({__NG_ELEMENT_ID__:W});let Zy=0;function ai(e){return Lt(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Qe.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||U,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c"+Zy++,styles:e.styles||U,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,i=e.features;return o.inputs=oc(e.inputs,r),o.outputs=oc(e.outputs),i&&i.forEach(a=>a(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(nc).filter(rc):null,o.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ee).filter(rc):null,o})}function nc(e){return z(e)||we(e)}function rc(e){return null!==e}function jt(e){return Lt(()=>({type:e.type,bootstrap:e.bootstrap||U,declarations:e.declarations||U,imports:e.imports||U,exports:e.exports||U,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function oc(e,t){if(null==e)return gn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=r,t&&(t[o]=s)}return n}const He=ai;function Te(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function z(e){return e[lo]||null}function we(e){return e[si]||null}function Ee(e){return e[ii]||null}const O=11,Q=22;function Ae(e){return Array.isArray(e)&&"object"==typeof e[1]}function Je(e){return Array.isArray(e)&&!0===e[1]}function ci(e){return 0!=(8&e.flags)}function po(e){return 2==(2&e.flags)}function go(e){return 1==(1&e.flags)}function Ye(e){return null!==e.template}function eD(e){return 0!=(256&e[2])}function rn(e,t){return e.hasOwnProperty(Ct)?e[Ct]:null}class ac{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function uc(e){return e.type.prototype.ngOnChanges&&(e.setInput=oD),rD}function rD(){const e=cc(this),t=e?.current;if(t){const n=e.previous;if(n===gn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function oD(e,t,n,r){const o=cc(e)||function sD(e,t){return e[lc]=t}(e,{previous:gn,current:null}),s=o.current||(o.current={}),i=o.previous,a=this.declaredInputs[n],u=i[a];s[a]=new ac(u&&u.currentValue,t,i===gn),e[r]=t}const lc="__ngSimpleChanges__";function cc(e){return e[lc]||null}function se(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return se(t[e.index])}function gi(e,t){return e.data[t]}function ke(e,t){const n=t[e];return Ae(n)?n:n[0]}function Do(e){return 64==(64&e[2])}function Vt(e,t){return null==t?null:e[t]}function fc(e){e[18]=0}function mi(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const A={lFrame:Cc(null),bindingsEnabled:!0};function pc(){return A.bindingsEnabled}function y(){return A.lFrame.lView}function B(){return A.lFrame.tView}function ce(){let e=yc();for(;null!==e&&64===e.type;)e=e.parent;return e}function yc(){return A.lFrame.currentTNode}function ut(e,t){const n=A.lFrame;n.currentTNode=e,n.isParent=t}function yi(){return A.lFrame.isParent}function Ce(){const e=A.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wn(){return A.lFrame.bindingIndex++}function vD(e,t){const n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,vi(t)}function vi(e){A.lFrame.currentDirectiveIndex=e}function wi(e){A.lFrame.currentQueryIndex=e}function wD(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wc(e,t,n){if(n&T.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=wD(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const r=A.lFrame=Ec();return r.currentTNode=t,r.lView=e,!0}function Ei(e){const t=Ec(),n=e[1];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ec(){const e=A.lFrame,t=null===e?null:e.child;return null===t?Cc(e):t}function Cc(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bc(){const e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ic=bc;function Ci(){const e=bc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function be(){return A.lFrame.selectedIndex}function Bt(e){A.lFrame.selectedIndex=e}function ne(){const e=A.lFrame;return gi(e.tView,e.selectedIndex)}function _o(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class hr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Co(e,t,n){let r=0;for(;rt){i=s-1;break}}}for(;s>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Mi=!0;function Io(e){const t=Mi;return Mi=e,t}let kD=0;const lt={};function gr(e,t){const n=Ti(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Si(r.data,e),Si(t,null),Si(r.blueprint,null));const o=Mo(e,t),s=e.injectorIndex;if(xc(o)){const i=En(o),a=Cn(o,t),u=a[1].data;for(let l=0;l<8;l++)t[s+l]=a[i+l]|u[i+l]}return t[s+8]=o,s}function Si(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ti(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Vc(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function So(e,t,n){!function LD(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ur)&&(r=n[ur]),null==r&&(r=n[ur]=kD++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:HD:t}(n);if("function"==typeof s){if(!wc(t,e,r))return r&T.Host?Pc(o,0,r):Rc(t,n,r,o);try{const i=s(r);if(null!=i||r&T.Optional)return i;ao()}finally{Ic()}}else if("number"==typeof s){let i=null,a=Ti(e,t),u=-1,l=r&T.Host?t[16][6]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?Mo(e,t):t[a+8],-1!==u&&jc(r,!1)?(i=t[1],a=En(u),t=Cn(u,t)):a=-1);-1!==a;){const c=t[1];if(Lc(s,a,c.data)){const d=VD(a,t,n,i,r,l);if(d!==lt)return d}u=t[a+8],-1!==u&&jc(r,t[1].data[a+8]===l)&&Lc(s,a,t)?(i=c,a=En(u),t=Cn(u,t)):a=-1}}return o}function VD(e,t,n,r,o,s){const i=t[1],a=i.data[e+8],c=function To(e,t,n,r,o){const s=e.providerIndexes,i=t.data,a=1048575&s,u=e.directiveStart,c=s>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=i[u];if(h&&Ye(h)&&h.type===n)return u}return null}(a,i,n,null==r?po(a)&&Mi:r!=i&&0!=(3&a.type),o&T.Host&&s===a);return null!==c?mr(t,i,c,a):lt}function mr(e,t,n,r){let o=e[n];const s=t.data;if(function ND(e){return e instanceof hr}(o)){const i=o;i.resolving&&function Vy(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,`Circular dependency in DI detected for ${e}${n}`)}(function H(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():x(e)}(s[n]));const a=Io(i.canSeeViewProviders);i.resolving=!0;const u=i.injectImpl?Be(i.injectImpl):null;wc(e,r,T.Default);try{o=e[n]=i.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AD(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(r){const i=uc(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==u&&Be(u),Io(a),i.resolving=!1,Ic()}}return o}function Lc(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function Ni(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...s){if(this instanceof o)return r.apply(this,s),this;const i=new o(...s);return a.annotation=i,a;function a(u,l,c){const d=u.hasOwnProperty(Mn)?u[Mn]:Object.defineProperty(u,Mn,{value:[]})[Mn];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(i),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class j{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mt(e,t){e.forEach(n=>Array.isArray(n)?Mt(n,t):t(n))}function Hc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ao(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const _r={},Oi="__NG_DI_FLAG__",No="ngTempTokenPath",tv=/\n/gm,zc="__source";let wr;function xn(e){const t=wr;return wr=e,t}function rv(e,t=T.Default){if(void 0===wr)throw new S(-203,!1);return null===wr?ec(e,void 0,t):wr.get(e,t&T.Optional?null:void 0,t)}function P(e,t=T.Default){return(function Wy(){return oi}()||rv)(M(e),t)}function ki(e){const t=[];for(let n=0;n{const i=s;zi(i,n,[],r)&&(o||(o=[]),o.push(i))}),void 0!==o&&vd(o,n),n}function vd(e,t){for(let n=0;n{t.push(s)})}}function zi(e,t,n,r){if(!(e=M(e)))return!1;let o=null,s=Yl(e);const i=!s&&z(e);if(s||i){if(i&&!i.standalone)return!1;o=e}else{const u=e.ngModule;if(s=Yl(u),!s)return!1;o=u}const a=r.has(o);if(i){if(a)return!1;if(r.add(o),i.dependencies){const u="function"==typeof i.dependencies?i.dependencies():i.dependencies;for(const l of u)zi(l,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let l;r.add(o);try{Mt(s.imports,c=>{zi(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&vd(l,t)}if(!a){const l=rn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:U},{provide:md,useValue:o,multi:!0},{provide:pd,useValue:()=>P(o),multi:!0})}const u=s.providers;null==u||a||Mt(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const zv=W({provide:String,useValue:W});function qi(e){return null!==e&&"object"==typeof e&&zv in e}function on(e){return"function"==typeof e}const Wi=new j("Set Injector scope."),Bo={},Wv={};let Zi;function Ho(){return void 0===Zi&&(Zi=new yd),Zi}class Pn{}class Ed extends Pn{constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ki(t,i=>this.processProvider(i)),this.records.set(gd,Rn(void 0,this)),o.has("environment")&&this.records.set(Pn,Rn(void 0,this));const s=this.records.get(Wi);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(md.multi,U,T.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=xn(this),r=Be(void 0);try{return t()}finally{xn(n),Be(r)}}get(t,n=_r,r=T.Default){this.assertNotDestroyed();const o=xn(this),s=Be(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Yv(e){return"function"==typeof e||"object"==typeof e&&e instanceof j}(t)&&ni(t);a=u&&this.injectableDefInScope(u)?Rn(Qi(t),Bo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?Ho():this.parent).get(t,n=r&T.Optional&&n===_r?null:n)}catch(i){if("NullInjectorError"===i.name){if((i[No]=i[No]||[]).unshift(Z(t)),o)throw i;return function iv(e,t,n,r){const o=e[No];throw t[zc]&&o.unshift(t[zc]),e.message=function av(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Z(t);if(Array.isArray(t))o=t.map(Z).join(" -> ");else if("object"==typeof t){let s=[];for(let i in t)if(t.hasOwnProperty(i)){let a=t[i];s.push(i+":"+("string"==typeof a?JSON.stringify(a):Z(a)))}o=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(tv,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[No]=null,e}(i,t,"R3InjectorError",this.source)}throw i}finally{Be(s),xn(o)}}resolveInjectorInitializers(){const t=xn(this),n=Be(void 0);try{const r=this.get(pd.multi,U,T.Self);for(const o of r)o()}finally{xn(t),Be(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(t){let n=on(t=M(t))?t:M(t&&t.provide);const r=function Qv(e){return qi(e)?Rn(void 0,e.useValue):Rn(Cd(e),Bo)}(t);if(on(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Rn(void 0,Bo,!0),o.factory=()=>ki(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Bo&&(n.value=Wv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Jv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=M(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Qi(e){const t=ni(e),n=null!==t?t.factory:rn(e);if(null!==n)return n;if(e instanceof j)throw new S(204,!1);if(e instanceof Function)return function Zv(e){const t=e.length;if(t>0)throw function vr(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new S(204,!1)}function Cd(e,t,n){let r;if(on(e)){const o=M(e);return rn(o)||Qi(o)}if(qi(e))r=()=>M(e.useValue);else if(function wd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ki(e.deps||[]));else if(function _d(e){return!(!e||!e.useExisting)}(e))r=()=>P(M(e.useExisting));else{const o=M(e&&(e.useClass||e.provide));if(!function Kv(e){return!!e.deps}(e))return rn(o)||Qi(o);r=()=>new o(...ki(e.deps))}return r}function Rn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Xv(e){return!!e.\u0275providers}function Ki(e,t){for(const n of e)Array.isArray(n)?Ki(n,t):Xv(n)?Ki(n.\u0275providers,t):t(n)}class bd{}class n_{resolveComponentFactory(t){throw function t_(e){const t=Error(`No component factory found for ${Z(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let On=(()=>{class e{}return e.NULL=new n_,e})();function r_(){return kn(ce(),y())}function kn(e,t){return new Ln(Ge(e,t))}let Ln=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=r_,e})();class Md{}let Sd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function s_(){const e=y(),n=ke(ce().index,e);return(Ae(n)?n:e)[O]}(),e})(),i_=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class $o{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const a_=new $o("14.1.3"),Ji={};function na(e){return e.ngOriginalError}class jn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&na(t);for(;n&&na(n);)n=na(n);return n||null}}const ra=new Map;let v_=0;const sa="__ngContext__";function De(e,t){Ae(t)?(e[sa]=t[20],function w_(e){ra.set(e[20],e)}(t)):e[sa]=t}function Tr(e){const t=e[sa];return"number"==typeof t?function Pd(e){return ra.get(e)||null}(t):t||null}function ia(e){const t=Tr(e);return t?Ae(t)?t:t.lView:null}const x_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(q))();var xe=(()=>((xe=xe||{})[xe.Important=1]="Important",xe[xe.DashCase=2]="DashCase",xe))();function ua(e,t){return undefined(e,t)}function Ar(e){const t=e[3];return Je(t)?t[3]:t}function la(e){return Hd(e[13])}function ca(e){return Hd(e[4])}function Hd(e){for(;null!==e&&!Je(e);)e=e[4];return e}function Bn(e,t,n,r,o){if(null!=r){let s,i=!1;Je(r)?s=r:Ae(r)&&(i=!0,r=r[0]);const a=se(r);0===e&&null!==n?null==o?Wd(t,n,a):sn(t,n,a,o||null,!0):1===e&&null!==n?sn(t,n,a,o||null,!0):2===e?function ef(e,t,n){const r=Uo(e,t);r&&function Z_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,i):3===e&&t.destroyNode(a),null!=s&&function J_(e,t,n,r,o){const s=n[7];s!==se(n)&&Bn(t,e,r,s,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const s=Ao(e,10+t);!function B_(e,t){xr(e,t,t[O],2,null,null),t[0]=null,t[6]=null}(r[1],r);const i=s[19];null!==i&&i.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Gd(e,t){if(!(128&t[2])){const n=t[O];n.destroyNode&&xr(e,t,n,3,null,null),function U_(e){let t=e[13];if(!t)return pa(e[1],e);for(;t;){let n=null;if(Ae(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ae(t)&&pa(t[1],t),t=t[3];null===t&&(t=e),Ae(t)&&pa(t[1],t),n=t&&t[4]}t=n}}(t)}}function pa(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function W_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),s+=2}else{const i=r[o=n[s+1]];n[s].call(i)}if(null!==r){for(let s=o+1;ss?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==rf(h,l,0)||2&r&&l!==f){if(Xe(r))return!1;i=!0}}}}else{if(!i&&!Xe(r)&&!Xe(u))return!1;if(i&&Xe(u))continue;i=!1,r=u|1&r}}return Xe(r)||i}function Xe(e){return 0==(1&e)}function nw(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let s=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""!==o&&!Xe(i)&&(t+=uf(s,o),o=""),r=i,s=s||!Xe(r);n++}return""!==o&&(t+=uf(s,o)),t}const N={};function Hn(e){lf(B(),y(),be()+e,!1)}function lf(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&wo(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Eo(t,s,0,n)}Bt(n)}function hf(e,t=null,n=null,r){const o=pf(e,t,n,r);return o.resolveInjectorInitializers(),o}function pf(e,t=null,n=null,r,o=new Set){const s=[n||U,Gv(e)];return r=r||("object"==typeof e?void 0:Z(e)),new Ed(s,t||Ho(),r||null,o)}let et=(()=>{class e{static create(n,r){if(Array.isArray(n))return hf({name:""},r,n,"");{const o=n.name??"";return hf({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=_r,e.NULL=new yd,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>P(gd)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=T.Default){const n=y();return null===n?P(e,t):Oc(ce(),n,M(e),t)}function Nf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rQ&&lf(e,t,Q,!1),n(r,o)}finally{Bt(s)}}function Oa(e,t,n){!pc()||(function Kw(e,t,n,r){const o=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||gr(n,t),De(r,t);const i=n.initialInputs;for(let a=o;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,i)}}function Bf(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Hf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function eE(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Ba(n)}}function Ba(e){for(let r=la(e);null!==r;r=ca(r))for(let o=10;o0&&Ba(s)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Ba(o)}}function aE(e,t){const n=ke(t,e),r=n[1];(function uE(e,t){for(let n=t.length;nPromise.resolve(null))();function Wf(e){return e[7]||(e[7]=[])}function Zf(e){return e.cleanup||(e.cleanup=[])}function Kf(e,t){const n=e[9],r=n?n.get(jn,null):null;r&&r.handleError(t)}function Ga(e,t,n,r,o){for(let s=0;s-1&&(ha(t,r),Ao(n,r))}this._attachedToViewContainer=!1}Gd(this._lView[1],this._lView)}onDestroy(t){!function Of(e,t,n,r){const o=Wf(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Zf(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Ha(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function $a(e,t,n){const r=t[10];r.begin&&r.begin();try{Nr(e,t,e.template,n)}catch(o){throw Kf(t,o),o}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $_(e,t){xr(e,t,t[O],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t}}class dE extends Fr{constructor(t){super(t),this._view=t}detectChanges(){qf(this._view)}checkNoChanges(){}get context(){return null}}class za extends On{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=z(t);return new Pr(n,this.ngModule)}}function Jf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class hE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,Ji,r);return o!==Ji||n===Ji?o:this.parentInjector.get(t,n,r)}}class Pr extends bd{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function uw(e){return e.map(aw).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Jf(this.componentDef.inputs)}get outputs(){return Jf(this.componentDef.outputs)}create(t,n,r,o){let s=(o=o||this.ngModule)instanceof Pn?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const i=s?new hE(t,s):t,a=i.get(Md,null);if(null===a)throw new S(407,!1);const u=i.get(i_,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function Gw(e,t,n){return e.selectRootElement(t,n===at.ShadowDom)}(l,r,this.componentDef.encapsulation):fa(a.createRenderer(null,this.componentDef),c,function fE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=function DE(e,t){return{components:[],scheduler:e||x_,clean:cE,playerHandler:t||null,flags:0}}(),p=La(0,null,null,1,0,null,null,null,null,null),g=Ko(null,p,h,f,null,null,a,l,u,i,null);let v,D;Ei(g);try{const E=function mE(e,t,n,r,o,s){const i=n[1];n[22]=e;const u=Un(i,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(Xo(u,l,!0),null!==e&&(Co(o,e,l),null!==u.classes&&Da(o,e,u.classes),null!==u.styles&&nf(o,e,u.styles)));const c=r.createRenderer(e,t),d=Ko(n,Rf(t),null,t.onPush?32:16,n[22],u,r,c,s||null,null,null);return i.firstCreatePass&&(So(gr(u,n),i,t.type),Hf(i,u),$f(u,n.length,1)),Yo(n,d),n[22]=d}(d,this.componentDef,g,a,l);if(d)if(r)Co(l,d,["ng-version",a_.full]);else{const{attrs:m,classes:C}=function lw(e){const t=[],n=[];let r=1,o=2;for(;r0&&Da(l,d,C.join(" "))}if(D=gi(p,Q),void 0!==n){const m=D.projection=[];for(let C=0;Ca(se(L[r.index])):r.index;let C=null;if(!a&&u&&(C=function jE(e,t,n,r){const o=e.cleanup;if(null!=o)for(let s=0;su?a[u]:null}"string"==typeof i&&(s+=2)}return null}(e,t,o,r.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=s,C.__ngLastListenerFn__=s,h=!1;else{s=yh(r,t,d,s,!1);const L=n.listen(D,o,s);f.push(s,L),c&&c.push(o,m,E,E+1)}}else s=yh(r,t,d,s,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const v=g.length;if(v)for(let D=0;D0;)t=t[15],e--;return t}(e,A.lFrame.contextLView))[8]}(e)}function os(e,t,n){return eu(e,"",t,"",n),os}function eu(e,t,n,r,o){const s=y(),i=qn(s,t,n,r);return i!==N&&Ve(B(),ne(),s,e,i,s[O],o,!1),eu}function nu(e,t=""){const n=y(),r=B(),o=e+Q,s=r.firstCreatePass?Un(r,o,1,t,null):r.data[o],i=n[o]=function da(e,t){return e.createText(t)}(n[O],t);Go(r,n,i,s),ut(s,!1)}function is(e){return ru("",e,""),is}function ru(e,t,n){const r=y(),o=qn(r,e,t,n);return o!==N&&At(r,be(),o),ru}const nr="en-US";let up=nr;function iu(e,t,n,r,o){if(e=M(e),Array.isArray(e))for(let s=0;s>20;if(on(e)||!e.multi){const h=new hr(u,o,k),p=uu(a,t,o?c:c+f,d);-1===p?(So(gr(l,i),s,a),au(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),i.push(h)):(n[p]=h,i[p]=h)}else{const h=uu(a,t,c+f,d),p=uu(a,t,c,c+f),g=h>=0&&n[h],v=p>=0&&n[p];if(o&&!v||!o&&!g){So(gr(l,i),s,a);const D=function Cb(e,t,n,r,o){const s=new hr(e,n,k);return s.multi=[],s.index=t,s.componentProviders=0,Pp(s,o,r&&!n),s}(o?Eb:wb,n.length,o,r,u);!o&&v&&(n[p].providerFactory=D),au(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),i.push(D)}else au(s,e,h>-1?h:p,Pp(n[o?p:h],u,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function au(e,t,n,r){const o=on(t),s=function qv(e){return!!e.useClass}(t);if(o||s){const u=(s?M(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Pp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function _b(e,t,n){const r=B();if(r.firstCreatePass){const o=Ye(e);iu(n,r.data,r.blueprint,o,!0),iu(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class or{}class Op extends or{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new za(this);const r=function Re(e,t){const n=e[tc]||null;if(!n&&!0===t)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function St(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=pf(t,n,[{provide:or,useValue:this},{provide:On,useValue:this.componentFactoryResolver}],Z(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cu extends class bb{}{constructor(t){super(),this.moduleType=t}create(t){return new Op(this.moduleType,t)}}function fu(e,t,n,r){return Gp(y(),Ce(),e,t,n,r)}function Up(e,t,n,r,o){return function zp(e,t,n,r,o,s,i){const a=t+n;return function un(e,t,n,r){const o=ve(e,t,n);return ve(e,t+1,r)||o}(e,a,o,s)?ft(e,a+2,i?r.call(i,o,s):r(o,s)):Hr(e,a+2)}(y(),Ce(),e,t,n,r,o)}function Hr(e,t){const n=e[t];return n===N?void 0:n}function Gp(e,t,n,r,o,s){const i=t+n;return ve(e,i,o)?ft(e,i+1,s?r.call(s,o):r(o)):Hr(e,i+1)}function ds(e,t){const n=B();let r;const o=e+Q;n.firstCreatePass?(r=function zb(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const s=r.factory||(r.factory=rn(r.type)),i=Be(k);try{const a=Io(!1),u=s();return Io(a),function PE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,y(),o,u),u}finally{Be(i)}}function fs(e,t,n){const r=e+Q,o=y(),s=function _n(e,t){return e[t]}(o,r);return function $r(e,t){return e[1].data[t].pure}(o,r)?Gp(o,Ce(),t,s.transform,n,s):s.transform(n)}function hu(e){return t=>{setTimeout(e,void 0,t)}}const xt=class Kb extends Kt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,s=n||(()=>null),i=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),s=u.error?.bind(u),i=u.complete?.bind(u)}this.__isAsync&&(s=hu(s),o&&(o=hu(o)),i&&(i=hu(i)));const a=super.subscribe({next:o,error:s,complete:i});return t instanceof Ze&&t.add(a),a}};let Nt=(()=>{class e{}return e.__NG_ELEMENT_ID__=eI,e})();const Yb=Nt,Xb=class extends Yb{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=Ko(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(o[19]=i.createEmbeddedView(r)),Jo(r,o,t),new Fr(o)}};function eI(){return function hs(e,t){return 4&e.type?new Xb(t,e,kn(e,t)):null}(ce(),y())}let gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=tI,e})();function tI(){return function Jp(e,t){let n;const r=t[e.index];if(Je(r))n=r;else{let o;if(8&e.type)o=se(r);else{const s=t[O];o=s.createComment("");const i=Ge(e,t);sn(s,Uo(s,i),o,function Q_(e,t){return e.nextSibling(t)}(s,i),!1)}t[e.index]=n=Gf(r,t,o,e),Yo(t,n)}return new Qp(n,e,t)}(ce(),y())}const nI=gt,Qp=class extends nI{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return kn(this._hostTNode,this._hostLView)}get injector(){return new bn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Mo(this._hostTNode,this._hostLView);if(xc(t)){const n=Cn(t,this._hostLView),r=En(t);return new bn(n[1].data[r+8],n)}return new bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Kp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,s;"number"==typeof r?o=r:null!=r&&(o=r.index,s=r.injector);const i=t.createEmbeddedView(n||{},s);return this.insert(i,o),i}createComponent(t,n,r,o,s){const i=t&&!function Dr(e){return"function"==typeof e}(t);let a;if(i)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const u=i?t:new Pr(z(t)),l=r||this.parentInjector;if(!s&&null==u.ngModule){const f=(i?l:this.parentInjector).get(Pn,null);f&&(s=f)}const c=u.create(l,o,void 0,s);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function dD(e){return Je(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Qp(d,d[6],d[3]);f.detach(f.indexOf(t))}}const s=this._adjustIndex(n),i=this._lContainer;!function G_(e,t,n,r){const o=10+r,s=n.length;r>0&&(n[o-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=gs,this.reject=gs,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{s.subscribe({complete:a,error:u})});n.push(i)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(P(wg,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zr=new j("AppId",{providedIn:"root",factory:function Eg(){return`${Iu()}${Iu()}${Iu()}`}});function Iu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cg=new j("Platform Initializer"),Mu=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),OI=new j("appBootstrapListener"),Ft=new j("LocaleId",{providedIn:"root",factory:()=>function ov(e,t=T.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),P(e,t)}(Ft,T.Optional|T.SkipSelf)||function kI(){return typeof $localize<"u"&&$localize.locale||nr}()}),HI=(()=>Promise.resolve(0))();function Su(e){typeof Zone>"u"?HI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ge{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xt(!1),this.onMicrotaskEmpty=new xt(!1),this.onStable=new xt(!1),this.onError=new xt(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const s=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new s("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function $I(){let e=q.requestAnimationFrame,t=q.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function zI(e){const t=()=>{!function GI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(q,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Au(e),e.isCheckStableRunning=!0,Tu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Au(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,s,i,a)=>{try{return Mg(e),n.invokeTask(o,s,i,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Sg(e)}},onInvoke:(n,r,o,s,i,a,u)=>{try{return Mg(e),n.invoke(o,s,i,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Sg(e)}},onHasTask:(n,r,o,s)=>{n.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Au(e),Tu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ge.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+o,t,UI,gs,gs);try{return s.runTask(i,n,r)}finally{s.cancelTask(i)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const UI={};function Tu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Au(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sg(e){e._nesting--,Tu(e)}class qI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xt,this.onMicrotaskEmpty=new xt,this.onStable=new xt,this.onError=new xt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Tg=new j(""),ys=new j("");let Fu,xu=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Fu||(function WI(e){Fu=e}(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:()=>{ge.assertNotInAngularZone(),Su(()=>{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())Su(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(i=>i.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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 e.\u0275fac=function(n){return new(n||e)(P(ge),P(Nu),P(ys))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Nu=(()=>{class e{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 Fu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),qt=null;const Ag=new j("AllowMultipleToken"),Pu=new j("PlatformDestroyListeners");function Ng(e,t,n=[]){const r=`Platform: ${t}`,o=new j(r);return(s=[])=>{let i=Ru();if(!i||i.injector.get(Ag,!1)){const a=[...n,...s,{provide:o,useValue:!0}];e?e(a):function KI(e){if(qt&&!qt.get(Ag,!1))throw new S(400,!1);qt=e;const t=e.get(Pg);(function xg(e){const t=e.get(Cg,null);t&&t.forEach(n=>n())})(e)}(function Fg(e=[],t){return et.create({name:t,providers:[{provide:Wi,useValue:"platform"},{provide:Pu,useValue:new Set([()=>qt=null])},...e]})}(a,r))}return function YI(e){const t=Ru();if(!t)throw new S(401,!1);return t}()}}function Ru(){return qt?.get(Pg)??null}let Pg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function XI(e,t){let n;return n="noop"===e?new qI:("zone.js"===e?void 0:e)||new ge(t),n}(r?.ngZone,function Rg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),s=[{provide:ge,useValue:o}];return o.run(()=>{const i=et.create({providers:s,parent:this.injector,name:n.moduleType.name}),a=n.create(i),u=a.injector.get(jn,null);if(!u)throw new S(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{vs(this._modules,a),l.unsubscribe()})}),function Og(e,t,n){try{const r=n();return Ya(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ms);return l.runInitializers(),l.donePromise.then(()=>(function lp(e){Pe(e,"Expected localeId to be defined"),"string"==typeof e&&(up=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Ft,nr)||nr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=kg({},r);return function ZI(e,t,n){const r=new cu(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const r=n.injector.get(Ds);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new S(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 S(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Pu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function kg(e,t){return Array.isArray(t)?t.reduce(kg,e):{...e,...t}}let Ds=(()=>{class e{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 s=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),i=new _e(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{ge.assertNotInAngularZone(),Su(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=Ql(s,i.pipe(Kl()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof bd;if(!this._injector.get(ms).done)throw!o&&function Gr(e){const t=z(e)||we(e)||Ee(e);return null!==t&&t.standalone}(n),new S(405,false);let i;i=o?n:this._injector.get(On).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const a=function QI(e){return e.isBoundToModule}(i)?void 0:this._injector.get(or),l=i.create(et.NULL,[],r||i.selector,a),c=l.location.nativeElement,d=l.injector.get(Tg,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),vs(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new S(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;vs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(OI,[]).concat(this._bootstrapListeners).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),()=>vs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(P(ge),P(Pn),P(jn))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let jg=!0,Hg=(()=>{class e{}return e.__NG_ELEMENT_ID__=n0,e})();function n0(e){return function r0(e,t,n){if(po(e)&&!n){const r=ke(e.index,t);return new Fr(r,r)}return 47&e.type?new Fr(t[16],t):null}(ce(),y(),16==(16&e))}class Gg{constructor(){}supports(t){return Rr(t)}create(t){return new c0(t)}}const l0=(e,t)=>t;class c0{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||l0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,s=null;for(;n||r;){const i=!r||n&&n.currentIndex{i=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,i)?(r&&(n=this._verifyReinsertion(n,a,i,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,i,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new d0(n,r),s,o),t}_verifyReinsertion(t,n,r,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new zg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new zg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class d0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class f0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class zg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new f0,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,i=o._next;return s&&(s._next=i),i&&(i._prev=s),o._next=null,o._prev=null,o}const r=new p0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class p0{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zg(){return new Es([new Gg])}let Es=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Zg()),deps:[[e,new Po,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new S(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Zg}),e})();function Qg(){return new qr([new Wg])}let qr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Qg()),deps:[[e,new Po,new Fo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Qg}),e})();const y0=Ng(null,"core",[]);let D0=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(P(Ds))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({}),e})(),Cs=null;function Wr(){return Cs}const mt=new j("DocumentToken");function sm(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,s]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(s)}return null}class uM{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let um=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,s,i)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new uM(o.item,this._ngForOf,-1,-1),null===i?void 0:i);else if(null==i)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,i),lm(a,o)}});for(let o=0,s=r.length;o{lm(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(Nt),k(Es))},e.\u0275dir=He({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function lm(e,t){e.context.$implicit=t.item}let cm=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new cM,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){dm("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){dm("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(Nt))},e.\u0275dir=He({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class cM{constructor(){this.$implicit=null,this.ngIf=null}}function dm(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}let hm=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){const n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){const[o,s]=n.split("."),i=-1===o.indexOf("-")?void 0:xe.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,i):this._renderer.removeStyle(this._ngEl.nativeElement,o,i)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return e.\u0275fac=function(n){return new(n||e)(k(Ln),k(qr),k(Sd))},e.\u0275dir=He({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),e})();class gM{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}}class mM{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}}const yM=new mM,DM=new gM;let pm=(()=>{class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ya(n))return yM;if(hh(n))return DM;throw function it(e,t){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(k(Hg,16))},e.\u0275pipe=Te({name:"async",type:e,pure:!1,standalone:!0}),e})(),mm=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({}),e})();class vm{}class Yu extends class VM extends class w0{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function _0(e){Cs||(Cs=e)}(new Yu)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function BM(){return Kr=Kr||document.querySelector("base"),Kr?Kr.getAttribute("href"):null}();return null==n?null:function HM(e){Ps=Ps||document.createElement("a"),Ps.setAttribute("href",e);const t=Ps.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return sm(document.cookie,t)}}let Ps,Kr=null;const _m=new j("TRANSITION_ID"),UM=[{provide:wg,useFactory:function $M(e,t,n){return()=>{n.get(ms).donePromise.then(()=>{const r=Wr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let s=0;s{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const Rs=new j("EventManagerPlugins");let Os=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let s=0;s{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Jr=(()=>{class e extends Em{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(s=>{const i=this._doc.createElement("style");i.textContent=s,o.push(r.appendChild(i))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Cm),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Cm))}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Cm(e){Wr().remove(e)}const Xu={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/"},el=/%COMP%/g;function ks(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let tl=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new nl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case at.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new JM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case at.ShadowDom:return new YM(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=ks(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(P(Os),P(Jr),P(zr))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class nl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Xu[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Tm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Tm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const s=Xu[o];s?t.setAttributeNS(s,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Xu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xe.DashCase|xe.Important)?t.style.setProperty(n,r,o&xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Mm(r)):this.eventManager.addEventListener(t,n,Mm(r))}}function Tm(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class JM extends nl{constructor(t,n,r,o){super(t),this.component=r;const s=ks(o+"-"+r.id,r.styles,[]);n.addStyles(s),this.contentAttr=function ZM(e){return"_ngcontent-%COMP%".replace(el,e)}(o+"-"+r.id),this.hostAttr=function QM(e){return"_nghost-%COMP%".replace(el,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class YM extends nl{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=ks(o.id,o.styles,[]);for(let i=0;i{class e extends wm{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const Am=["alt","control","meta","shift"],tS={"\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"},xm={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let rS=(()=>{class e extends wm{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const s=e.parseEventName(r),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(n,s.domEventName,i))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const s=e._normalizeKey(r.pop());let i="";if(Am.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),i+=u+".")}),i+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=o,a.fullKey=i,a}static getEventFullKey(n){let r="",o=function oS(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&xm.hasOwnProperty(t)&&(t=xm[t]))}return tS[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Am.forEach(s=>{s!=o&&(0,nS[s])(n)&&(r+=s+".")}),r+=o,r}static eventCallback(n,r,o){return s=>{e.getEventFullKey(s)===n&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(P(mt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const uS=Ng(y0,"browser",[{provide:Mu,useValue:"browser"},{provide:Cg,useValue:function sS(){Yu.makeCurrent()},multi:!0},{provide:mt,useFactory:function aS(){return function yv(e){ji=e}(document),document},deps:[]}]),Fm=new j(""),Pm=[{provide:ys,useClass:class GM{addToWindow(t){q.getAngularTestability=(r,o=!0)=>{const s=t.findTestabilityInTree(r,o);if(null==s)throw new Error("Could not find testability for element.");return s},q.getAllAngularTestabilities=()=>t.getAllTestabilities(),q.getAllAngularRootElements=()=>t.getAllRootElements(),q.frameworkStabilizers||(q.frameworkStabilizers=[]),q.frameworkStabilizers.push(r=>{const o=q.getAllAngularTestabilities();let s=o.length,i=!1;const a=function(u){i=i||u,s--,0==s&&r(i)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Wr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Tg,useClass:xu,deps:[ge,Nu,ys]},{provide:xu,useClass:xu,deps:[ge,Nu,ys]}],Rm=[{provide:Wi,useValue:"root"},{provide:jn,useFactory:function iS(){return new jn},deps:[]},{provide:Rs,useClass:XM,multi:!0,deps:[mt,ge,Mu]},{provide:Rs,useClass:rS,multi:!0,deps:[mt]},{provide:tl,useClass:tl,deps:[Os,Jr,zr]},{provide:Md,useExisting:tl},{provide:Em,useExisting:Jr},{provide:Jr,useClass:Jr,deps:[mt]},{provide:Os,useClass:Os,deps:[Rs,ge]},{provide:vm,useClass:zM,deps:[]},[]];let Om=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:zr,useValue:n.appId},{provide:_m,useExisting:zr},UM]}}}return e.\u0275fac=function(n){return new(n||e)(P(Fm,12))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[...Rm,...Pm],imports:[mm,D0]}),e})();typeof window<"u"&&window;class jm extends Kt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Ls(e,t){return Dt((n,r)=>{let o=0;n.subscribe(vt(r,s=>e.call(t,s,o++)&&r.next(s)))})}const sl={now:()=>(sl.delegate||Date).now(),delegate:void 0};class il extends Kt{constructor(t=1/0,n=1/0,r=sl){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:i}=this;n||(r.push(t),!o&&r.push(s.now()+i)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,s=o.slice();for(let i=0;i{_t(e).subscribe(vt(n,()=>n.complete(),$s)),!n.closed&&t.subscribe(n)})}class DS extends Ze{constructor(t,n){super()}schedule(t,n=0){return this}}const js={setInterval(e,t,...n){const{delegate:r}=js;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=js;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class Yr{constructor(t,n=Yr.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Yr.now=sl.now;const wS=new class _S extends Yr{constructor(t,n=Yr.now){super(t,n),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}(class vS extends DS{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return js.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;js.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;try{this.work(t)}catch(s){r=!0,o=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,pn(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}});function Bm(e,t){return Dt((n,r)=>{let o=null,s=0,i=!1;const a=()=>i&&!o&&r.complete();n.subscribe(vt(r,u=>{o?.unsubscribe();let l=0;const c=s++;_t(e(u,c)).subscribe(o=vt(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{i=!0,a()}))})}class Hm{}class $m{}class yt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),s=o.toLowerCase(),i=n.slice(r+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof yt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new yt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof yt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const s=t.value;if(s){let i=this.headers.get(n);if(!i)return;i=i.filter(a=>-1===s.indexOf(a)),0===i.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,i)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class IS{encodeKey(t){return Um(t)}encodeValue(t){return Um(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const SS=/%(\d[a-f0-9])/gi,TS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Um(e){return encodeURIComponent(e).replace(SS,(t,n)=>TS[n]??t)}function Vs(e){return`${e}`}class Ot{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new IS,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function MS(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[i,a]=-1==s?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],u=n.get(i)||[];u.push(a),n.set(i,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Vs):[Vs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Ot({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Vs(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Vs(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class AS{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Gm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function zm(e){return typeof Blob<"u"&&e instanceof Blob}function qm(e){return typeof FormData<"u"&&e instanceof FormData}class Xr{constructor(t,n,r,o){let s;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function xS(e){switch(e){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,s=o):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new yt),this.context||(this.context=new AS),this.params){const i=this.params.toString();if(0===i.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Xr(n,r,s,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:i})}}var le=(()=>((le=le||{})[le.Sent=0]="Sent",le[le.UploadProgress=1]="UploadProgress",le[le.ResponseHeader=2]="ResponseHeader",le[le.DownloadProgress=3]="DownloadProgress",le[le.Response=4]="Response",le[le.User=5]="User",le))();class al{constructor(t,n=200,r="OK"){this.headers=t.headers||new yt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ul extends al{constructor(t={}){super(t),this.type=le.ResponseHeader}clone(t={}){return new ul({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Bs extends al{constructor(t={}){super(t),this.type=le.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Bs({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Wm extends al{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function ll(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Zm=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Xr)s=n;else{let u,l;u=o.headers instanceof yt?o.headers:new yt(o.headers),o.params&&(l=o.params instanceof Ot?o.params:new Ot({fromObject:o.params})),s=new Xr(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const i=function CS(...e){return Zl(e,Gl(e))}(s).pipe(function bS(e,t){return X(t)?so(e,t,1):so(e,1)}(u=>this.handler.handle(u)));if(n instanceof Xr||"events"===o.observe)return i;const a=i.pipe(Ls(u=>u instanceof Bs));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Jt(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Jt(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Jt(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Jt(u=>u.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 Ot).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,ll(o,r))}post(n,r,o={}){return this.request("POST",n,ll(o,r))}put(n,r,o={}){return this.request("PUT",n,ll(o,r))}}return e.\u0275fac=function(n){return new(n||e)(P(Hm))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class Qm{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const Km=new j("HTTP_INTERCEPTORS");let FS=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const PS=/^\)\]\}',?\n/;let Jm=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e(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 s=n.serializeBody();let i=null;const a=()=>{if(null!==i)return i;const h=o.statusText||"OK",p=new yt(o.getAllResponseHeaders()),g=function RS(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return i=new ul({headers:p,status:o.status,statusText:h,url:g}),i},u=()=>{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 E=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const m=D;D=D.replace(PS,"");try{D=""!==D?JSON.parse(D):null}catch(C){D=m,E&&(E=!1,D={error:C,text:D})}}E?(r.next(new Bs({body:D,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new Wm({error:D,headers:h,status:p,statusText:g,url:v||void 0}))},l=h=>{const{url:p}=a(),g=new Wm({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:le.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:le.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==s&&o.upload&&o.upload.addEventListener("progress",f)),o.send(s),r.next({type:le.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==s&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(P(vm))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const cl=new j("XSRF_COOKIE_NAME"),dl=new j("XSRF_HEADER_NAME");class Ym{}let OS=(()=>{class e{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=sm(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(P(mt),P(Mu),P(cl))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),fl=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const s=this.tokenService.getToken();return null!==s&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,s)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(P(Ym),P(dl))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),kS=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(Km,[]);this.chain=r.reduceRight((o,s)=>new Qm(o,s),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(P($m),P(et))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),LS=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:fl,useClass:FS}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:cl,useValue:n.cookieName}:[],n.headerName?{provide:dl,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[fl,{provide:Km,useExisting:fl,multi:!0},{provide:Ym,useClass:OS},{provide:cl,useValue:"XSRF-TOKEN"},{provide:dl,useValue:"X-XSRF-TOKEN"}]}),e})(),jS=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({providers:[Zm,{provide:Hm,useClass:kS},Jm,{provide:$m,useExisting:Jm}],imports:[LS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),Xm=(()=>{class e{constructor(n){this.api=n,this._uri="https://api-adresse.data.gouv.fr"}set uri(n){this._uri=n}get urlSearch(){return`${this._uri}/search/`}get(n){const r={params:(new Ot).set("autocomplete","0").set("limit","5"),headers:(new yt).set("Accept","application/json")};return n.autocomplete&&(r.params=r.params.set("autocomplete",n.autocomplete.toString())),n.limit&&(r.params=r.params.set("limit",n.limit.toString())),n.q?(r.params=r.params.set("q",n.q),this.api.request("GET",this.urlSearch,r).pipe(Jt(o=>o.features),function VS(e,t,n){let r,o=!1;return e&&"object"==typeof e?({bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e):r=e??1/0,Kl({connector:()=>new il(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1))):Qs}search(n,r=5,o="housenumber",s=0){return this.get({q:n,limit:r,type:o,autocomplete:s})}}return e.\u0275fac=function(n){return new(n||e)(P(Zm))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function BS(e,t){if(1&e&&(zt(0,"label",4),nu(1),cn()),2&e){const n=Xa();os("for",n.id),Hn(1),is(n.label)}}const HS=function(e){return{"background-color":e}};function $S(e,t){if(1&e){const n=function fh(){return y()}();zt(0,"li",5),rs("click",function(){const s=function gc(e){return A.lFrame.contextLView=e,e[8]}(n).$implicit;return function mc(e){return A.lFrame.contextLView=null,e}(Xa().selectAddress(s))}),zt(1,"span"),nu(2),cn()()}if(2&e){const n=t.$implicit;ln("ngStyle",fu(2,HS,t.odd?"#fafafa":"#f0f0f0")),Hn(2),is(n.properties.label)}}const US=function(e){return{width:e}},GS=function(e,t){return{width:e,border:t}};let ey=(()=>{class e{constructor(n){this.service=n,this.selectedAddress$=new jm({}),this.listAddresses$=new Kt,this.listAddresses=this.listAddresses$.asObservable(),this.listAddressesForStylish=this.listAddresses.pipe(Ls(r=>r.length>0)),this.inputValue=new jm(""),this.loaderSize=15,this.width=250,this.placeholder="",this.label="",this.id="ri-address-search-component-"+(new Date).getTime(),this.uri="",this.isLoading=new il(1),this.addressFound=this.selectedAddress$.asObservable(),this.ngUnsubscribe=new Kt}ngOnInit(){this.uri&&(this.service.uri=this.uri),this.isLoading.next(!1),this.inputValue.asObservable().pipe(Vm(this.ngUnsubscribe)).subscribe(()=>this.isLoading.next(!0)),this.inputValue.asObservable().pipe(Vm(this.ngUnsubscribe),function ES(e,t=wS){return Dt((n,r)=>{let o=null,s=null,i=null;const a=()=>{if(o){o.unsubscribe(),o=null;const l=s;s=null,r.next(l)}};function u(){const l=i+e,c=t.now();if(c{s=l,i=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{s=o=null}))})}(1e3),Ls(n=>n.trim().length>3),Ls(n=>!this.selectedAddress$.getValue().properties||n!==this.selectedAddress$.getValue().properties.label),Bm(n=>this.service.search(n))).subscribe(n=>{this.listAddresses$.next(n),this.isLoading.next(!1)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}onKeyUp(n){const r=n.currentTarget.value;r!==this.inputValue.getValue()&&this.inputValue.next(r)}selectAddress(n){this.selectedAddress$.next(n),this.listAddresses$.next([]),this.inputValue.next(n.properties.label)}}return e.\u0275fac=function(n){return new(n||e)(k(Xm))},e.\u0275cmp=ai({type:e,selectors:[["ng-address-data-gouv-search"]],inputs:{loaderSize:"loaderSize",width:"width",placeholder:"placeholder",label:"label",id:"id",uri:"uri"},outputs:{isLoading:"isLoading",addressFound:"addressFound"},features:[Rp([Xm])],decls:7,vars:18,consts:[[3,"for",4,"ngIf"],[3,"id","placeholder","ngStyle","value","keyup"],[3,"ngStyle"],[3,"ngStyle","click",4,"ngFor","ngForOf"],[3,"for"],[3,"ngStyle","click"]],template:function(n,r){1&n&&(Za(0,BS,2,2,"label",0),zt(1,"input",1),rs("keyup",function(s){return r.onKeyUp(s)}),ds(2,"async"),cn(),zt(3,"ul",2),ds(4,"async"),Za(5,$S,3,4,"li",3),ds(6,"async"),cn()),2&n&&(ln("ngIf",r.label),Hn(1),os("id",r.id),ln("placeholder",r.placeholder)("ngStyle",fu(13,US,r.width+"px"))("value",fs(2,7,r.inputValue)),Hn(2),ln("ngStyle",Up(15,GS,r.width+"px",fs(4,9,r.listAddressesForStylish)?"0.2px solid #ccc":"0px")),Hn(2),ln("ngForOf",fs(6,11,r.listAddresses)))},dependencies:[um,cm,hm,pm],styles:["input[_ngcontent-%COMP%]{border:.2px solid #ccc}ul[_ngcontent-%COMP%]{padding-inline-start:0px;margin-block-start:0em}li[_ngcontent-%COMP%]{list-style-type:none;cursor:pointer}li[_ngcontent-%COMP%]:hover{padding-left:5px}"]}),e})();const Hs={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if(typeof window>"u")return Hs.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Hs.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};let hl;function XS(e,t,n){let r=n;return function qS(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,s)=>!("*"===o||!function ZS(e,t){if(!hl){const n=Element.prototype;hl=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&hl.call(e,t)}(e,o)||(r=s,0))),r}class tT{constructor(t,n){this.componentFactory=n.get(On).resolveComponentFactory(t)}create(t){return new nT(this.componentFactory,t)}}class nT{constructor(t,n){this.componentFactory=t,this.injector=n,this.eventEmitters=new il(1),this.events=this.eventEmitters.pipe(Bm(r=>Ql(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Hs.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){this.runInZone(()=>{null!==this.componentRef?function QS(e,t){return e===t||e!=e&&t!=t}(n,this.getInputValue(t))&&(void 0!==n||!this.unchangedInputs.has(t))||(this.recordInputChange(t,n),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=n,this.scheduleDetectChanges()):this.initialInputValues.set(t,n)})}initializeComponent(t){const n=et.create({providers:[],parent:this.injector}),r=function YS(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((s,i)=>"*"===s&&(o=i,!0));for(let s=0,i=n.length;s{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>t.instance[r].pipe(Jt(i=>({name:o,value:i}))));this.eventEmitters.next(n)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(n)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Hs.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[t];if(r)return void(r.currentValue=n);const o=this.unchangedInputs.has(t),s=o?void 0:this.getInputValue(t);this.inputChanges[t]=new ac(s,n,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class rT extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function ty(e,t){const n=function JS(e,t){return t.get(On).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new tT(e,t.injector),o=function KS(e){const t={};return e.forEach(({propName:n,templateName:r})=>{t[function zS(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=n}),t}(n);class s extends rT{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:u})=>{if(!this.hasOwnProperty(u))return;const l=this[u];delete this[u],a.setInputValue(u,l)})}return this._ngElementStrategy}attributeChangedCallback(a,u,l,c){this.ngElementStrategy.setInputValue(o[a],l)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const u=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(u)})}}return s.observedAttributes=Object.keys(o),n.forEach(({propName:i})=>{Object.defineProperty(s.prototype,i,{get(){return this.ngElementStrategy.getInputValue(i)},set(a){this.ngElementStrategy.setInputValue(i,a)},configurable:!0,enumerable:!0})}),s}let oT=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=ty(ey,{injector:this.injector});customElements.define("ng-address-data-gouv-search",n)}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({imports:[Om,mm,jS]}),e})(),sT=(()=>{class e{constructor(n){this.injector=n}ngDoBootstrap(){const n=ty(ey,{injector:this.injector});customElements.define("ng-address-data-gouv-search",n)}}return e.\u0275fac=function(n){return new(n||e)(P(et))},e.\u0275mod=jt({type:e}),e.\u0275inj=Et({imports:[Om,oT]}),e})();(function t0(){jg=!1})(),uS().bootstrapModule(sT).catch(e=>console.error(e))}},X=>{X(X.s=930)}]); \ No newline at end of file diff --git a/docs/polyfills.js b/docs/polyfills.js new file mode 100644 index 0000000..2d1f165 --- /dev/null +++ b/docs/polyfills.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[429],{300:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=300)}]); \ No newline at end of file diff --git a/docs/runtime.js b/docs/runtime.js new file mode 100644 index 0000000..059e9ad --- /dev/null +++ b/docs/runtime.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,p={},_={};function n(e){var a=_[e];if(void 0!==a)return a.exports;var r=_[e]={exports:{}};return p[e](r,r.exports,n),r.exports}n.m=p,e=[],n.O=(a,r,u,l)=>{if(!r){var o=1/0;for(f=0;f=l)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(s=!1,l0&&e[f-1][2]>l;f--)e[f]=e[f-1];e[f]=[r,u,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=u=>0===e[u];var a=(u,l)=>{var t,c,[f,o,s]=l,v=0;if(f.some(d=>0!==e[d])){for(t in o)n.o(o,t)&&(n.m[t]=o[t]);if(s)var b=s(n)}for(u&&u(l);v