From 606746b6d0b3d4fb73304bc9cb828beb959bf028 Mon Sep 17 00:00:00 2001 From: prhodesy Date: Wed, 8 Sep 2021 21:30:19 +0700 Subject: [PATCH 1/2] Auto-generated commit [ci skip] --- 3rdpartylicenses.txt | 458 ++++++++++++++++++++++++++++++ 404.html | 12 + favicon.ico | Bin 0 -> 948 bytes index.html | 12 + main.61e6774abb782e4d7f29.js | 1 + polyfills.012c69bdbe285f7c0e3e.js | 1 + runtime.9768ceb0747e0a776825.js | 1 + styles.372ca685682539e9517d.css | 7 + 8 files changed, 492 insertions(+) create mode 100644 3rdpartylicenses.txt create mode 100644 404.html create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 main.61e6774abb782e4d7f29.js create mode 100644 polyfills.012c69bdbe285f7c0e3e.js create mode 100644 runtime.9768ceb0747e0a776825.js create mode 100644 styles.372ca685682539e9517d.css diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt new file mode 100644 index 0000000..2abadb8 --- /dev/null +++ b/3rdpartylicenses.txt @@ -0,0 +1,458 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/localize +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +@fortawesome/angular-fontawesome +MIT +MIT License + +Copyright (c) 2018 Fonticons, Inc. and contributors + +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. + + +@fortawesome/fontawesome-svg-core +MIT +Font Awesome Free License +------------------------- + +Font Awesome Free is free, open source, and GPL friendly. You can use it for +commercial projects, open source projects, or really almost whatever you want. +Full Font Awesome Free license: https://fontawesome.com/license/free. + +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) +In the Font Awesome Free download, the CC BY 4.0 license applies to all icons +packaged as SVG and JS file types. + +# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) +In the Font Awesome Free download, the SIL OFL license applies to all icons +packaged as web and desktop font files. + +# Code: MIT License (https://opensource.org/licenses/MIT) +In the Font Awesome Free download, the MIT license applies to all non-font and +non-icon files. + +# Attribution +Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font +Awesome Free files already contain embedded comments with sufficient +attribution, so you shouldn't need to do anything additional when using these +files normally. + +We've kept attribution comments terse, so we ask that you do not actively work +to remove them from files, especially code. They're a great way for folks to +learn about Font Awesome. + +# Brand Icons +All brand icons are trademarks of their respective owners. The use of these +trademarks does not indicate endorsement of the trademark holder by Font +Awesome, nor vice versa. **Please do not use brand logos for any purpose except +to represent the company, product, or service to which they refer.** + + +@fortawesome/free-brands-svg-icons +(CC-BY-4.0 AND MIT) +Font Awesome Free License +------------------------- + +Font Awesome Free is free, open source, and GPL friendly. You can use it for +commercial projects, open source projects, or really almost whatever you want. +Full Font Awesome Free license: https://fontawesome.com/license/free. + +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) +In the Font Awesome Free download, the CC BY 4.0 license applies to all icons +packaged as SVG and JS file types. + +# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) +In the Font Awesome Free download, the SIL OFL license applies to all icons +packaged as web and desktop font files. + +# Code: MIT License (https://opensource.org/licenses/MIT) +In the Font Awesome Free download, the MIT license applies to all non-font and +non-icon files. + +# Attribution +Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font +Awesome Free files already contain embedded comments with sufficient +attribution, so you shouldn't need to do anything additional when using these +files normally. + +We've kept attribution comments terse, so we ask that you do not actively work +to remove them from files, especially code. They're a great way for folks to +learn about Font Awesome. + +# Brand Icons +All brand icons are trademarks of their respective owners. The use of these +trademarks does not indicate endorsement of the trademark holder by Font +Awesome, nor vice versa. **Please do not use brand logos for any purpose except +to represent the company, product, or service to which they refer.** + + +@ng-bootstrap/ng-bootstrap +MIT +The MIT License (MIT) + +Copyright (c) 2015-2018 Angular ng-bootstrap team + +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. + + +class-transformer +MIT +The MIT License + +Copyright (c) 2015-2020 TypeStack + +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. + +core-js +MIT +Copyright (c) 2014-2021 Denis Pushkarev + +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. + + +http-status-codes +MIT +The MIT License (MIT) + +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. + + +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-2020 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/404.html b/404.html new file mode 100644 index 0000000..1dec846 --- /dev/null +++ b/404.html @@ -0,0 +1,12 @@ + + + Generic API Service + + + + + + + + + \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..997406ad22c29aae95893fb3d666c30258a09537 GIT binary patch literal 948 zcmV;l155mgP)CBYU7IjCFmI-B}4sMJt3^s9NVg!P0 z6hDQy(L`XWMkB@zOLgN$4KYz;j0zZxq9KKdpZE#5@k0crP^5f9KO};h)ZDQ%ybhht z%t9#h|nu0K(bJ ztIkhEr!*UyrZWQ1k2+YkGqDi8Z<|mIN&$kzpKl{cNP=OQzXHz>vn+c)F)zO|Bou>E z2|-d_=qY#Y+yOu1a}XI?cU}%04)zz%anD(XZC{#~WreV!a$7k2Ug`?&CUEc0EtrkZ zL49MB)h!_K{H(*l_93D5tO0;BUnvYlo+;yss%n^&qjt6fZOa+}+FDO(~2>G z2dx@=JZ?DHP^;b7*Y1as5^uphBsh*s*z&MBd?e@I>-9kU>63PjP&^#5YTOb&x^6Cf z?674rmSHB5Fk!{Gv7rv!?qX#ei_L(XtwVqLX3L}$MI|kJ*w(rhx~tc&L&xP#?cQow zX_|gx$wMr3pRZIIr_;;O|8fAjd;1`nOeu5K(pCu7>^3E&D2OBBq?sYa(%S?GwG&_0-s%_v$L@R!5H_fc)lOb9ZoOO#p`Nn`KU z3LTTBtjwo`7(HA6 z7gmO$yTR!5L>Bsg!X8616{JUngg_@&85%>W=mChTR;x4`P=?PJ~oPuy5 zU-L`C@_!34D21{fD~Y8NVnR3t;aqZI3fIhmgmx}$oc-dKDC6Ap$Gy>a!`A*x2L1v0 WcZ@i?LyX}70000 + + Generic API Service + + + + + + + + + \ No newline at end of file diff --git a/main.61e6774abb782e4d7f29.js b/main.61e6774abb782e4d7f29.js new file mode 100644 index 0000000..7421c78 --- /dev/null +++ b/main.61e6774abb782e4d7f29.js @@ -0,0 +1 @@ +(self.webpackChunkangular_starter=self.webpackChunkangular_starter||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},4798:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class h{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof h)e.remove(this);else if(null!==e)for(let r=0;rt.concat(e instanceof u?e.errors:e),[])}h.EMPTY=function(t){return t.closed=!0,t}(new h);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=_(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}function x(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new O(t,e))}}class O{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const I=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return I(t);if(P(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[k])return e=t,t=>{const n=e[k]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n};function D(t,e){return new v(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function L(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(P(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(R(t))return D(t,e);if(function(t){return t&&"function"==typeof t[k]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[k](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(N(t))}class M extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class U extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function j(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let n;try{n=N(t)(e)}catch(r){e.error(r)}return n}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(V((n,r)=>L(t(n,r)).pipe(x((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new F(t,n)))}class F{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends U{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return V(y,t)}function $(t,e){return e?D(t,e):new v(I(t))}function B(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return T(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof v?t[0]:z(e)($(t,n))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new G(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class G extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Q extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new K(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const Z=(()=>{const t=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class K extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Y(){return new E}function J(){return t=>{return q()((e=Y,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Z);return r.source=t,r.subjectFactory=n,r})(t));var e}}function X(t){for(let e in t)if(t[e]===X)return e;throw Error("Could not find renamed property on target object.")}function tt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function et(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(et).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function nt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const rt=X({__forward_ref__:X});function st(t){return t.__forward_ref__=st,t.toString=function(){return et(this())},t}function it(t){return ot(t)?t():t}function ot(t){return"function"==typeof t&&t.hasOwnProperty(rt)&&t.__forward_ref__===st}class at extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function lt(t){return"string"==typeof t?t:null==t?"":String(t)}function ct(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():lt(t)}function ut(t,e){const n=e?` in ${e}`:"";throw new at("201",`No provider for ${ct(t)} found${n}`)}function ht(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ft(t){return gt(t,yt)||gt(t,_t)}function gt(t,e){return t.hasOwnProperty(e)?t[e]:null}function mt(t){return t&&(t.hasOwnProperty(vt)||t.hasOwnProperty(bt))?t[vt]:null}const yt=X({"\u0275prov":X}),vt=X({"\u0275inj":X}),_t=X({ngInjectableDef:X}),bt=X({ngInjectorDef:X});var wt=(()=>((wt=wt||{})[wt.Default=0]="Default",wt[wt.Host=1]="Host",wt[wt.Self=2]="Self",wt[wt.SkipSelf=4]="SkipSelf",wt[wt.Optional=8]="Optional",wt))();let Ct;function Et(t){const e=Ct;return Ct=t,e}function St(t,e,n){const r=ft(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&wt.Optional?null:void 0!==e?e:void ut(et(t),"Injector")}function Tt(t){return{toString:t}.toString()}var xt=(()=>((xt=xt||{})[xt.OnPush=0]="OnPush",xt[xt.Default=1]="Default",xt))(),Ot=(()=>((Ot=Ot||{})[Ot.Emulated=0]="Emulated",Ot[Ot.None=2]="None",Ot[Ot.ShadowDom=3]="ShadowDom",Ot))();const At="undefined"!=typeof globalThis&&globalThis,It="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global,Pt=At||Rt||It||kt,Nt={},Dt=[],Lt=X({"\u0275cmp":X}),Mt=X({"\u0275dir":X}),Ut=X({"\u0275pipe":X}),jt=X({"\u0275mod":X}),Vt=X({"\u0275loc":X}),Ft=X({"\u0275fac":X}),Ht=X({__NG_ELEMENT_ID__:X});let zt=0;function $t(t){return Tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Dt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ot.Emulated,id:"c",styles:t.styles||Dt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=zt++,n.inputs=Qt(t.inputs,e),n.outputs=Qt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Bt):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(qt):null,n})}function Bt(t){return Yt(t)||function(t){return t[Mt]||null}(t)}function qt(t){return function(t){return t[Ut]||null}(t)}const Wt={};function Gt(t){return Tt(()=>{const e={type:t.type,bootstrap:t.bootstrap||Dt,declarations:t.declarations||Dt,imports:t.imports||Dt,exports:t.exports||Dt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Wt[t.id]=t.type),e})}function Qt(t,e){if(null==t)return Nt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Zt=$t;function Kt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Yt(t){return t[Lt]||null}function Jt(t,e){const n=t[jt]||null;if(!n&&!0===e)throw new Error(`Type ${et(t)} does not have '\u0275mod' property.`);return n}const Xt=20,te=10;function ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function ne(t){return Array.isArray(t)&&!0===t[1]}function re(t){return 0!=(8&t.flags)}function se(t){return 2==(2&t.flags)}function ie(t){return 1==(1&t.flags)}function oe(t){return null!==t.template}function ae(t,e){return t.hasOwnProperty(Ft)?t[Ft]:null}class le{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ce(){return ue}function ue(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),he}function he(){const t=pe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Nt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,n,r){const s=pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Nt,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new le(l&&l.currentValue,e,o===Nt),t[r]=e}function pe(t){return t.__ngSimpleChanges__||null}let fe;function ge(){return void 0!==fe?fe:"undefined"!=typeof document?document:void 0}function me(t){return!!t.listen}ce.ngInherit=!0;const ye={createRenderer:(t,e)=>ge()};function ve(t){for(;Array.isArray(t);)t=t[0];return t}function _e(t,e){return ve(e[t])}function be(t,e){return ve(e[t.index])}function we(t,e){return t.data[e]}function Ce(t,e){return t[e]}function Ee(t,e){const n=e[t];return ee(n)?n:n[0]}function Se(t){return 4==(4&t[2])}function Te(t){return 128==(128&t[2])}function xe(t,e){return null==e?null:t[e]}function Oe(t){t[18]=0}function Ae(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ie={lFrame:en(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ke(){return Ie.bindingsEnabled}function Re(){return Ie.lFrame.lView}function Pe(){return Ie.lFrame.tView}function Ne(t){return Ie.lFrame.contextLView=t,t[8]}function De(){let t=Le();for(;null!==t&&64===t.type;)t=t.parent;return t}function Le(){return Ie.lFrame.currentTNode}function Me(){const t=Ie.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ue(t,e){const n=Ie.lFrame;n.currentTNode=t,n.isParent=e}function je(){return Ie.lFrame.isParent}function Ve(){Ie.lFrame.isParent=!1}function Fe(){return Ie.isInCheckNoChangesMode}function He(t){Ie.isInCheckNoChangesMode=t}function ze(){const t=Ie.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function $e(){return Ie.lFrame.bindingIndex}function Be(){return Ie.lFrame.bindingIndex++}function qe(t){const e=Ie.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function We(t){Ie.lFrame.inI18n=t}function Ge(t,e){const n=Ie.lFrame;n.bindingIndex=n.bindingRootIndex=t,Qe(e)}function Qe(t){Ie.lFrame.currentDirectiveIndex=t}function Ze(){return Ie.lFrame.currentQueryIndex}function Ke(t){Ie.lFrame.currentQueryIndex=t}function Ye(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Je(t,e,n){if(n&wt.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&wt.Host||(r=Ye(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=Ie.lFrame=tn();return r.currentTNode=e,r.lView=t,!0}function Xe(t){const e=tn(),n=t[1];Ie.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function tn(){const t=Ie.lFrame,e=null===t?null:t.child;return null===e?en(t):e}function en(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function nn(){const t=Ie.lFrame;return Ie.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const rn=nn;function sn(){const t=nn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function on(){return Ie.lFrame.selectedIndex}function an(t){Ie.lFrame.selectedIndex=t}function ln(){const t=Ie.lFrame;return we(t.tView,t.selectedIndex)}function cn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}const gn=-1;class mn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function yn(t,e,n){const r=me(t);let s=0;for(;se){o=i-1;break}}}for(;i>16,r=e;for(;n>0;)r=r[15],n--;return r}let Tn=!0;function xn(t){const e=Tn;return Tn=t,e}let On=0;function An(t,e){const n=kn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,In(r.data,t),In(e,null),In(r.blueprint,null));const s=Rn(t,e),i=t.injectorIndex;if(Cn(s)){const t=En(s),n=Sn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function In(t,e){t.push(0,0,0,0,0,0,0,0,e)}function kn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Rn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return gn;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return gn}function Pn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ht)&&(r=n[Ht]),null==r&&(r=n[Ht]=On++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:Un:e}(n);if("function"==typeof i){if(!Je(e,t,r))return r&wt.Host?Nn(s,n,r):Dn(e,n,r,s);try{const t=i(r);if(null!=t||r&wt.Optional)return t;ut(n)}finally{rn()}}else if("number"==typeof i){let s=null,o=kn(t,e),a=gn,l=r&wt.Host?e[16][6]:null;for((-1===o||r&wt.SkipSelf)&&(a=-1===o?Rn(t,e):e[o+8],a!==gn&&zn(r,!1)?(s=e[1],o=En(a),e=Sn(a,e)):o=-1);-1!==o;){const t=e[1];if(Hn(i,o,t.data)){const t=jn(o,e,n,s,r,l);if(t!==Mn)return t}a=e[o+8],a!==gn&&zn(r,e[1].data[o+8]===l)&&Hn(i,o,e)?(s=t,o=En(a),e=Sn(a,e)):o=-1}}}return Dn(e,n,r,s)}const Mn={};function Un(){return new $n(De(),Re())}function jn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=Vn(a,o,n,null==r?se(a)&&Tn:r!=o&&0!=(3&a.type),s&wt.Host&&i===a);return null!==l?Fn(e,o,l,a):Mn}function Vn(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&oe(t)&&t.type===n)return l}return null}function Fn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof mn){const o=s;o.resolving&&function(t,e){throw new at("200",`Circular dependency in DI detected for ${t}`)}(ct(i[n]));const a=xn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Et(o.injectImpl):null;Je(t,r,wt.Default);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const r=ue(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&Et(l),xn(a),o.resolving=!1,rn()}}return s}function Hn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Ft]||qn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Ft]||qn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function qn(t){return ot(t)?()=>{const e=qn(it(t));return e&&e()}:ae(t)}function Wn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(Gn)?t[Gn]:Object.defineProperty(t,Gn,{value:[]})[Gn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Zn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Kn=new Zn("AnalyzeForEntryComponents"),Yn=Function;function Jn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Xn(t,e):e(t))}function tr(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function er(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function nr(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function sr(t,e){const n=ir(t,e);if(n>=0)return t[1|n]}function ir(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const or={},ar=/\n/gm,lr="__source",cr=X({provide:String,useValue:X});let ur;function hr(t){const e=ur;return ur=t,e}function dr(t,e=wt.Default){if(void 0===ur)throw new Error("inject() must be called from an injection context");return null===ur?St(t,void 0,e):ur.get(t,e&wt.Optional?null:void 0,e)}function pr(t,e=wt.Default){return(Ct||dr)(it(t),e)}function fr(t){const e=[];for(let n=0;n({token:t})),-1),yr=gr(Qn("Optional"),8),vr=gr(Qn("SkipSelf"),4);let _r,br;function wr(t){var e;return(null===(e=function(){if(void 0===_r&&(_r=null,Pt.trustedTypes))try{_r=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return _r}())||void 0===e?void 0:e.createHTML(t))||t}function Cr(t){var e;return(null===(e=function(){if(void 0===br&&(br=null,Pt.trustedTypes))try{br=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return br}())||void 0===e?void 0:e.createHTML(t))||t}class Er{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Sr extends Er{getTypeName(){return"HTML"}}class Tr extends Er{getTypeName(){return"Style"}}class xr extends Er{getTypeName(){return"Script"}}class Or extends Er{getTypeName(){return"URL"}}class Ar extends Er{getTypeName(){return"ResourceURL"}}function Ir(t){return t instanceof Er?t.changingThisBreaksApplicationSecurity:t}function kr(t,e){const n=Rr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Rr(t){return t instanceof Er&&t.getTypeName()||null}function Pr(t){const e=new Dr(t);return function(){try{return!!(new window.DOMParser).parseFromString(wr(""),"text/html")}catch(t){return!1}}()?new Nr(e):e}class Nr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(wr(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Dr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=wr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=wr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Ur(t.trim())).join(", ")}function Vr(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Fr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Hr=Vr("area,br,col,hr,img,wbr"),zr=Vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$r=Vr("rp,rt"),Br=Fr($r,zr),qr=Fr(Hr,Fr(zr,Vr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fr($r,Vr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Br),Wr=Vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gr=Vr("srcset"),Qr=Fr(Wr,Gr,Vr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zr=Vr("script,style,template");class Kr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!qr.hasOwnProperty(e))return this.sanitizedSomething=!0,!Zr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();qr.hasOwnProperty(e)&&!Hr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jr=/([^\#-~ |!])/g;function Xr(t){return t.replace(/&/g,"&").replace(Yr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Jr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ts;function es(t,e){let n=null;try{ts=ts||Pr(t);let r=e?String(e):"";n=ts.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=ts.getInertBodyElement(r)}while(r!==i);return wr((new Kr).sanitizeChildren(ns(n)||n))}finally{if(n){const t=ns(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ns(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var rs=(()=>((rs=rs||{})[rs.NONE=0]="NONE",rs[rs.HTML=1]="HTML",rs[rs.STYLE=2]="STYLE",rs[rs.SCRIPT=3]="SCRIPT",rs[rs.URL=4]="URL",rs[rs.RESOURCE_URL=5]="RESOURCE_URL",rs))();function ss(t){const e=os();return e?Cr(e.sanitize(rs.HTML,t)||""):kr(t,"HTML")?Cr(Ir(t)):es(ge(),lt(t))}function is(t){const e=os();return e?e.sanitize(rs.URL,t)||"":kr(t,"URL")?Ir(t):Ur(lt(t))}function os(){const t=Re();return t&&t[12]}function as(t,e){t.__ngContext__=e}function ls(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function cs(t){return t.ngOriginalError}function us(t,...e){t.error(...e)}class hs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t&&t.ngErrorLogger||us}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(cs(t)):null}_findOriginalError(t){let e=t&&cs(t);for(;e&&cs(e);)e=cs(e);return e||null}}const ds=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function ps(t){return t instanceof Function?t():t}var fs=(()=>((fs=fs||{})[fs.Important=1]="Important",fs[fs.DashCase=2]="DashCase",fs))();let gs;function ms(t,e){return gs(t,e)}function ys(t){const e=t[3];return ne(e)?e[3]:e}function vs(t){return bs(t[13])}function _s(t){return bs(t[4])}function bs(t){for(;null!==t&&!ne(t);)t=t[4];return t}function ws(t,e,n,r,s){if(null!=r){let i,o=!1;ne(r)?i=r:ee(r)&&(o=!0,r=r[0]);const a=ve(r);0===t&&null!==n?null==s?Rs(e,n,a):ks(e,n,a,s||null,!0):1===t&&null!==n?ks(e,n,a,s||null,!0):2===t?function(t,e,n){const r=Ns(t,e);r&&function(t,e,n,r){me(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==ve(n)&&ws(e,t,r,i,s);for(let o=te;o0&&(t[n-1][4]=r[4]);const o=er(t,te+e);Bs(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function xs(t,e){if(!(256&e[2])){const n=e[11];me(n)&&n.destroyNode&&Bs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Os(t[1],t);for(;e;){let n=null;if(ee(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ee(e)&&Os(e[1],e),e=e[3];null===e&&(e=t),ee(e)&&Os(e[1],e),n=e&&e[4]}e=n}}(e)}}function Os(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const t=r[s=n[i+1]];n[i].call(t)}if(null!==r){for(let t=s+1;ti?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Qs(e,c,0)||2&r&&c!==t){if(ti(r))return!1;o=!0}}}}else{if(!o&&!ti(r)&&!ti(l))return!1;if(o&&ti(l))continue;o=!1,r=l|1&r}}return ti(r)||o}function ti(t){return 0==(1&t)}function ei(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||ti(o)||(e+=si(i,s),s=""),r=o,i=i||!ti(r);n++}return""!==s&&(e+=si(i,s)),e}const oi={};function ai(t){li(Pe(),Re(),on()+t,Fe())}function li(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&un(e,r,n)}else{const r=t.preOrderHooks;null!==r&&hn(e,r,0,n)}an(n)}function ci(t,e){return t<<17|e<<2}function ui(t){return t>>17&32767}function hi(t){return 2|t}function di(t){return(131068&t)>>2}function pi(t,e){return-131069&t|e<<2}function fi(t){return 1|t}function gi(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rXt&&li(t,e,Xt,Fe()),n(r,s)}finally{an(i)}}function Si(t,e,n){if(re(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function Di(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Li(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Mi(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Bi(n)}}function Bi(t){for(let n=vs(t);null!==n;n=_s(n))for(let t=te;t0&&Bi(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Bi(r)}}function qi(t,e){const n=Ee(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Ji(t){return t[7]||(t[7]=[])}function Xi(t){return t.cleanup||(t.cleanup=[])}function to(t,e){const n=t[9],r=n?n.get(hs,null):null;r&&r.handleError(e)}function eo(t,e,n,r,s){for(let i=0;ithis.processProvider(n,t,e)),Xn([t],t=>this.processInjectorType(t,[],s)),this.records.set(so,mo(void 0,this));const i=this.records.get(oo);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:et(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=or,n=wt.Default){this.assertNotDestroyed();const r=hr(this),s=Et(void 0);try{if(!(n&wt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Zn)&&ft(t);e=n&&this.injectableDefInScope(n)?mo(fo(t),ao):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&wt.Self?uo():this.parent).get(t,e=n&wt.Optional&&e===or?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(et(t)),r)throw o;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[lr]&&s.unshift(e[lr]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=et(e);if(Array.isArray(e))s=e.map(et).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):et(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(ar,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{Et(s),hr(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(et(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=it(t)))return!1;let r=mt(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=mt(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{Xn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Dt))}}this.injectorDefTypes.add(i);const a=ae(i)||(()=>new i);this.records.set(i,mo(a,ao));const l=r.providers;if(null!=l&&!o){const e=t;Xn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=vo(t=it(t))?t:it(t&&t.provide);const s=function(t,e,n){return yo(t)?mo(void 0,t.useValue):mo(go(t),ao)}(t);if(vo(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=mo(void 0,ao,!0),e.factory=()=>fr(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===ao&&(e.value=lo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=it(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function fo(t){const e=ft(t),n=null!==e?e.factory:ae(t);if(null!==n)return n;if(t instanceof Zn)throw new Error(`Token ${et(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=nr(e,"?");throw new Error(`Can't resolve all parameters for ${et(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[yt]||t[_t]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function go(t,e,n){let r;if(vo(t)){const e=it(t);return ae(e)||fo(e)}if(yo(t))r=()=>it(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...fr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>pr(it(t.useExisting));else{const e=it(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ae(e)||fo(e);r=()=>new e(...fr(t.deps))}var s;return r}function mo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function yo(t){return null!==t&&"object"==typeof t&&cr in t}function vo(t){return"function"==typeof t}const _o=function(t,e,n){return function(t,e=null,n=null,r){const s=ho(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class bo{static create(t,e){return Array.isArray(t)?_o(t,e,""):_o(t.providers,t.parent,t.name||"")}}function wo(t,e){cn(ls(t)[1],De())}function Co(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(oe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Eo(t.inputs),e.declaredInputs=Eo(t.declaredInputs),e.outputs=Eo(t.outputs);const n=s.hostBindings;n&&xo(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&So(t,i),o&&To(t,o),tt(t.inputs,s.inputs),tt(t.declaredInputs,s.declaredInputs),tt(t.outputs,s.outputs),oe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=bn(s.hostAttrs,n=bn(n,s.hostAttrs))}}(r)}function Eo(t){return t===Nt?{}:t===Dt?[]:t}function So(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function To(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function xo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}bo.THROW_IF_NOT_FOUND=or,bo.NULL=new io,bo.\u0275prov=dt({token:bo,providedIn:"any",factory:()=>pr(so)}),bo.__NG_ELEMENT_ID__=-1;let Oo=null;function Ao(){if(!Oo){const t=Pt.Symbol;if(t&&t.iterator)Oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ve(t[r.index])):r.index;if(me(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Yo(r,e,0,i,!1);const t=n.listen(p,s,i);u.push(i,t),c&&c.push(s,g,f,f+1)}}else i=Yo(r,e,0,i,!0),p.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,f,o)}else i=Yo(r,e,0,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ie.lFrame.contextLView))[8]}(t)}function Xo(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ia(t){return t.substring(sa.key,sa.keyEnd)}function oa(t,e){const n=sa.textEnd;return n===e?-1:(e=sa.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,sa.key=e,n),aa(t,e,n))}function aa(t,e,n){for(;e=0;n=oa(e,n))rr(t,ia(e),!0)}function ha(t,e){return e>=t.expandoStartIndex}function da(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[on()],o=ha(t,n);va(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=Ie.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=fa(n=pa(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=pa(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==di(r))return t[ui(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=pa(null,t,e,n[1],r),n=fa(n,e.attrs,r),function(t,e,n,r){t[ui(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ui(t[a+1]);t[r+1]=ci(e,a),0!==e&&(t[e+1]=pi(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=ci(a,0),0!==a&&(t[a+1]=pi(t[a+1],r)),a=r;else t[r+1]=ci(l,0),0===a?a=r:t[l+1]=pi(t[l+1],r),l=r;u&&(t[r+1]=hi(t[r+1])),na(t,c,r,!0),na(t,c,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&ir(i,e)>=0&&(n[r+1]=fi(n[r+1]))}(e,c,t,r,i),o=ci(a,l),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function pa(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===oi&&(u=c?Dt:void 0);let h=c?sr(u,r):l===r?u:void 0;if(i&&!ya(h)&&(h=sr(e,r)),ya(h)&&(a=h,o))return a;const d=t[s+1];s=o?ui(d):di(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=sr(t,r))}return a}function ya(t){return void 0!==t}function va(t,e){return 0!=(t.flags&(e?16:32))}function _a(t,e=""){const n=Re(),r=Pe(),s=t+Xt,i=r.firstCreatePass?yi(r,s,1,e,null):r.data[s],o=n[s]=Cs(n[11],e);Vs(r,n,o,i),Ue(i,!1)}function ba(t){return wa("",t,""),ba}function wa(t,e,n){const r=Re(),s=function(t,e,n,r){return No(t,Be(),n)?e+lt(n)+r:oi}(r,t,e,n);return s!==oi&&no(r,on(),s),wa}function Ca(t,e,n,r,s){const i=Re(),o=function(t,e,n,r,s,i){const o=Do(t,$e(),n,s);return qe(2),o?e+lt(n)+r+lt(s)+i:oi}(i,t,e,n,r,s);return o!==oi&&no(i,on(),o),Ca}function Ea(t,e,n){const r=Re();return No(r,Be(),e)&&Ri(Pe(),ln(),r,t,e,r[11],n,!0),Ea}const Sa=void 0;var Ta=["en",[["a","p"],["AM","PM"],Sa],[["AM","PM"],Sa,Sa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Sa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Sa,"{1} 'at' {0}",Sa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let xa={};function Oa(t){return t in xa||(xa[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),xa[t]}var Aa=(()=>((Aa=Aa||{})[Aa.LocaleId=0]="LocaleId",Aa[Aa.DayPeriodsFormat=1]="DayPeriodsFormat",Aa[Aa.DayPeriodsStandalone=2]="DayPeriodsStandalone",Aa[Aa.DaysFormat=3]="DaysFormat",Aa[Aa.DaysStandalone=4]="DaysStandalone",Aa[Aa.MonthsFormat=5]="MonthsFormat",Aa[Aa.MonthsStandalone=6]="MonthsStandalone",Aa[Aa.Eras=7]="Eras",Aa[Aa.FirstDayOfWeek=8]="FirstDayOfWeek",Aa[Aa.WeekendRange=9]="WeekendRange",Aa[Aa.DateFormat=10]="DateFormat",Aa[Aa.TimeFormat=11]="TimeFormat",Aa[Aa.DateTimeFormat=12]="DateTimeFormat",Aa[Aa.NumberSymbols=13]="NumberSymbols",Aa[Aa.NumberFormats=14]="NumberFormats",Aa[Aa.CurrencyCode=15]="CurrencyCode",Aa[Aa.CurrencySymbol=16]="CurrencySymbol",Aa[Aa.CurrencyName=17]="CurrencyName",Aa[Aa.Currencies=18]="Currencies",Aa[Aa.Directionality=19]="Directionality",Aa[Aa.PluralCase=20]="PluralCase",Aa[Aa.ExtraData=21]="ExtraData",Aa))();const Ia="en-US",ka={marker:"element"},Ra={marker:"ICU"};var Pa=(()=>((Pa=Pa||{})[Pa.SHIFT=2]="SHIFT",Pa[Pa.APPEND_EAGERLY=1]="APPEND_EAGERLY",Pa[Pa.COMMENT=2]="COMMENT",Pa))();let Na=Ia;function Da(t){var e;null==(e=t)&&ht("Expected localeId to be defined",e,null,"!="),"string"==typeof t&&(Na=t.toLowerCase().replace(/_/g,"-"))}function La(t,e,n){const r=e.insertBeforeIndex,s=Array.isArray(r)?r[0]:r;return null===s?Ls(t,0,n):ve(n[s])}function Ma(t,e,n,r,s){const i=e.insertBeforeIndex;if(Array.isArray(i)){let o=r,a=null;if(3&e.type||(a=o,o=s),null!==o&&0==(2&e.flags))for(let e=1;e1)for(let n=t.length-2;n>=0;n--){const r=t[n];ja(r)||Va(r,e)&&null===Fa(r)&&Ha(r,e.index)}}function ja(t){return!(64&t.type)}function Va(t,e){return ja(e)||t.index>e.index}function Fa(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function Ha(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(js(La,Ma),t.insertBeforeIndex=e)}function za(t,e,n){const r=vi(t,n,64,null,null);return Ua(e,r),r}const $a=/\ufffd(\d+):?\d*\ufffd/gi,Ba=/\ufffd(\d+)\ufffd/,qa=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Wa=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Ga=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Qa=/\uE500/g;function Za(t,e,n,r,s,i,o){const a=_i(t,r,1,null);let l=a<0?e[o]:(t.push(r,n),s(e[1].data[~o],e),i())}return 0===t.length?null:(n=t.pop(),r=t.pop(),i())}return function(n,r){for(e=r;t.length;)t.pop();return s(n.value,r),i}}())),s.push(l,null===i?"":i);const u=vi(t,a,o?32:1,null===i?"":i,null);Ua(n,u);const h=u.index;return Ue(u,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;var r;null===n?(js(La,Ma),n=t.insertBeforeIndex=[null,e]):("Expecting array here",(r=Array.isArray(n))!=!0&&ht("Expecting array here",r,true,"=="),n.push(e))}(c,h),u}function Ka(t,e,n,r,s,i,o){const a=o.match($a),l=Za(t,e,n,i,r,a?null:o,!1);a&&Ya(s,o,l.index,null,0,null)}function Ya(t,e,n,r,s,i){const o=t.length,a=o+1;t.push(null,null);const l=o+2,c=e.split($a);let u=0;for(let h=0;hn.length&&n.push(s)}return{type:r,mainBinding:s,cases:e,values:n}}function nl(t){if(!t)return[];let e=0;const n=[],r=[],s=/[{}]/g;let i;for(s.lastIndex=0;i=s.exec(t);){const s=i.index;if("}"==i[0]){if(n.pop(),0==n.length){const n=t.substring(e,s);qa.test(n)?r.push(el(n)):r.push(n),e=s+1}}else{if(0==n.length){const n=t.substring(e,s);r.push(n),e=s+1}n.push("{")}}const o=t.substring(e);return r.push(o),r}function rl(t,e,n,r,s,i,o,a){const l=[],c=[],u=[];e.cases.push(i),e.create.push(l),e.remove.push(c),e.update.push(u);const h=Pr(ge()).getInertBodyElement(o),d=ns(h)||h;return d?sl(t,e,n,r,l,c,u,d,s,a,0):0}function sl(t,e,n,r,s,i,o,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=_i(t,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(qr.hasOwnProperty(f)){al(s,ka,f,l,a),t.data[a]=f;const g=p.attributes;for(let t=0;t>>Pa.SHIFT;let h=t[u];null===h&&(h=t[u]=l?s.createComment(a):Cs(s,a)),c&&null!==n&&ks(s,n,h,r,!1)}}(s,l.create,c,a&&8&a.type?s[a.index]:null),We(!0)})(t,e,n),We(!1)}function ul(t,e,n,r,s){if(t=it(t),Array.isArray(t))for(let i=0;i>20;if(vo(t)||!t.multi){const r=new mn(l,s,jo),p=pl(a,e,s?u:u+d,h);-1===p?(Pn(An(c,o),i,a),hl(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=pl(a,e,u+d,h),f=pl(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){Pn(An(c,o),i,a);const u=function(t,e,n,r,s){const i=new mn(t,n,jo);return i.multi=[],i.index=e,i.componentProviders=0,dl(i,s,r&&!n),i}(s?gl:fl,n.length,s,r,l);!s&&m&&(n[f].providerFactory=u),hl(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else hl(i,t,p>-1?p:f,dl(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function hl(t,e,n,r){const s=vo(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function dl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function pl(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Pe();if(r.firstCreatePass){const s=oe(t);ul(n,r.data,r.blueprint,s,!0),ul(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class vl{}class _l{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${et(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class bl{}function wl(...t){}function Cl(t,e){return new Sl(be(t,e))}bl.NULL=new _l;const El=function(){return Cl(De(),Re())};let Sl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=El,t})();function Tl(t){return t instanceof Sl?t.nativeElement:t}class xl{}let Ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Al(),t})();const Al=function(){const t=Re(),e=Ee(De().index,t);return function(t){return t[11]}(ee(e)?e:t)};let Il=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class kl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Rl=new kl("12.1.4");class Pl{constructor(){}supports(t){return ko(t)}create(t){return new Dl(t)}}const Nl=(t,e)=>e;class Dl{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||Nl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),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,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Ll(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ul),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ul),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ll{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ml{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,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ul{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ml,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jl(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Hl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Hl{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 zl(){return new $l([new Pl])}let $l=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||zl()),deps:[[t,new vr,new yr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:zl}),t})();function Bl(){return new ql([new Vl])}let ql=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Bl()),deps:[[t,new vr,new yr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:Bl}),t})();function Wl(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(ve(i)),ne(i))for(let t=te;t-1&&(Ts(t,n),er(e,n))}this._attachedToViewContainer=!1}xs(this._lView[1],this._lView)}onDestroy(t){Ii(this._lView[1],this._lView,null,t)}markForCheck(){Gi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){He(!0);try{Qi(t,e,n)}finally{He(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Bs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ql extends Gl{constructor(t){super(t),this._view=t}detectChanges(){Zi(this._view)}checkNoChanges(){!function(t){He(!0);try{Zi(t)}finally{He(!1)}}(this._view)}get context(){return null}}const Zl=function(t){return function(t,e,n){if(se(t)&&!n){const n=Ee(t.index,e);return new Gl(n,n)}return 47&t.type?new Gl(e[16],e):null}(De(),Re(),16==(16&t))};let Kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Zl,t})();const Yl=[new Vl],Jl=new $l([new Pl]),Xl=new ql(Yl),tc=function(){return sc(De(),Re())};let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=tc,t})();const nc=ec,rc=class extends nc{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=mi(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),bi(e,n,t),new Gl(n)}};function sc(t,e){return 4&t.type?new rc(e,t,Cl(t,e)):null}class ic{}class oc{}const ac=function(){return pc(De(),Re())};let lc=(()=>{class t{}return t.__NG_ELEMENT_ID__=ac,t})();const cc=lc,uc=class extends cc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Cl(this._hostTNode,this._hostLView)}get injector(){return new $n(this._hostTNode,this._hostLView)}get parentInjector(){const t=Rn(this._hostTNode,this._hostLView);if(Cn(t)){const e=Sn(t,this._hostLView),n=En(t);return new $n(e[1].data[n+8],e)}return new $n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-te}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(ic,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(ne(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new uc(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,r){const s=te+r,i=n.length;r>0&&(n[s-1][4]=e),rds});class vc extends vl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ii).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return mc(this.componentDef.inputs)}get outputs(){return mc(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,fc,s);return i!==fc||r===fc?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(xl,ye),o=s.get(Il,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(me(t))return t.selectRootElement(e,n===Ot.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Es(i.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:ds,clean:Yi,playerHandler:null,flags:0},d=Ai(0,null,null,1,0,null,null,null,null,null),p=mi(null,d,h,u,null,null,i,a,o,s);let f,g;Xe(p);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=yi(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ro(a,l,!0),null!==t&&(yn(s,t,l),null!==a.classes&&Gs(s,t,a.classes),null!==a.styles&&Ws(s,t,a.styles)));const c=r.createRenderer(t,e),u=mi(n,Oi(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(Pn(An(a,n),o,e.type),Li(o,a),Ui(a,n.length,1)),Wi(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)yn(a,c,["ng-version",Rl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&Gs(a,c,e.join(" "))}if(g=we(d,Xt),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=De();e.contentQueries(1,o,t.directiveStart)}const a=De();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(an(a.index),Ni(n[1],a,0,a.directiveStart,a.directiveEnd,e),Di(e,o)),o}(t,this.componentDef,p,h,[wo]),bi(d,p,null)}finally{sn()}return new _c(this.componentType,f,Cl(g,p),p,g)}}class _c extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ql(r),this.componentType=t}get injector(){return new $n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const bc=new Map;class wc extends ic{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gc(this);const n=Jt(t),r=t[Vt]||null;r&&Da(r),this._bootstrapComponents=ps(n.bootstrap),this._r3Injector=ho(t,e,[{provide:ic,useValue:this},{provide:bl,useValue:this.componentFactoryResolver}],et(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=bo.THROW_IF_NOT_FOUND,n=wt.Default){return t===bo||t===ic||t===so?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cc extends oc{constructor(t){super(),this.moduleType=t,null!==Jt(t)&&function(t){const e=new Set;!function t(n){const r=Jt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${et(e)} vs ${et(e.name)}`)}(s,bc.get(s),n),bc.set(s,n));const i=ps(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wc(this.moduleType,t)}}function Ec(t,e,n){const r=ze()+t,s=Re();return s[r]===oi?Po(s,r,n?e.call(n):e()):function(t,e){return t[e]}(s,r)}function Sc(t,e,n,r){return Ac(Re(),ze(),t,e,n,r)}function Tc(t,e,n,r,s){return function(t,e,n,r,s,i,o){const a=e+n;return Do(t,a,s,i)?Po(t,a+2,o?r.call(o,s,i):r(s,i)):Oc(t,a+2)}(Re(),ze(),t,e,n,r,s)}function xc(t,e,n,r,s,i){return function(t,e,n,r,s,i,o,a){const l=e+n;return function(t,e,n,r,s){const i=Do(t,e,n,r);return No(t,e+2,s)||i}(t,l,s,i,o)?Po(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):Oc(t,l+3)}(Re(),ze(),t,e,n,r,s,i)}function Oc(t,e){const n=t[e];return n===oi?void 0:n}function Ac(t,e,n,r,s,i){const o=e+n;return No(t,o,s)?Po(t,o+1,i?r.call(i,s):r(s)):Oc(t,o+1)}function Ic(t){return e=>{setTimeout(t,void 0,e)}}const kc=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,i;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}this.__isAsync&&(a=Ic(a),o&&(o=Ic(o)),l&&(l=Ic(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof h&&t.add(c),c}};function Rc(){return this._results[Ao()]()}class Pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ao(),n=Pc.prototype;n[e]||(n[e]=Rc)}get changes(){return this._changes||(this._changes=new kc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const r=Jn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r0)r.push(o[t/2]);else{const s=i[t+1],o=e[-n];for(let t=te;t{class t{constructor(t){this.appInits=t,this.resolve=wl,this.reject=wl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(pr(Kc,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Jc=new Zn("AppId"),Xc={provide:Jc,useFactory:function(){return`${tu()}${tu()}${tu()}`},deps:[]};function tu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const eu=new Zn("Platform Initializer"),nu=new Zn("Platform ID"),ru=new Zn("appBootstrapListener");let su=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const iu=new Zn("LocaleId"),ou=new Zn("DefaultCurrencyCode");class au{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lu=function(t){return new Cc(t)},cu=lu,uu=function(t){return Promise.resolve(lu(t))},hu=function(t){const e=lu(t),n=ps(Jt(t).declarations).reduce((t,e)=>{const n=Yt(e);return n&&t.push(new vc(n)),t},[]);return new au(e,n)},du=hu,pu=function(t){return Promise.resolve(hu(t))};let fu=(()=>{class t{constructor(){this.compileModuleSync=cu,this.compileModuleAsync=uu,this.compileModuleAndAllComponentsSync=du,this.compileModuleAndAllComponentsAsync=pu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const gu=(()=>Promise.resolve(0))();function mu(t){"undefined"==typeof Zone?gu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class yu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kc(!1),this.onMicrotaskEmpty=new kc(!1),this.onStable=new kc(!1),this.onError=new kc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,bu(t),t.isCheckStableRunning=!0,_u(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),bu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return wu(t),n.invokeTask(s,i,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),Cu(t)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return wu(t),n.invoke(s,i,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Cu(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,bu(t),_u(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(yu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,vu,wl,wl);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const vu={};function _u(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function bu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Cu(t){t._nesting--,_u(t)}class Eu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kc,this.onMicrotaskEmpty=new kc,this.onStable=new kc,this.onError=new kc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Su=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yu.assertNotInAngularZone(),mu(()=>{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())mu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(pr(yu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Tu=(()=>{class t{constructor(){this._applications=new Map,Au.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Au.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class xu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Ou,Au=new xu,Iu=!0,ku=!1;const Ru=new Zn("AllowMultipleToken");class Pu{constructor(t,e){this.name=t,this.token=e}}function Nu(t,e,n=[]){const r=`Platform: ${e}`,s=new Zn(r);return(e=[])=>{let i=Du();if(!i||i.injector.get(Ru,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:oo,useValue:"platform"});!function(t){if(Ou&&!Ou.destroyed&&!Ou.injector.get(Ru,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ou=t.get(Lu);const e=t.get(eu,null);e&&e.forEach(t=>t())}(bo.create({providers:t,name:r}))}return function(t){const e=Du();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Du(){return Ou&&!Ou.destroyed?Ou:null}let Lu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Eu:("zone.js"===t?void 0:t)||new yu({enableLongStackTrace:(ku=!0,Iu),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:yu,useValue:n}];return n.run(()=>{const e=bo.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(hs,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{i.handleError(t)}});s.onDestroy(()=>{ju(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return Go(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Yc);return t.runInitializers(),t.donePromise.then(()=>(Da(s.injector.get(iu,Ia)||Ia),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Mu({},e);return function(t,e,n){const r=new Cc(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Uu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${et(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(pr(bo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Mu(t,e){return Array.isArray(e)?e.reduce(Mu,t):Object.assign(Object.assign({},t),e)}let Uu=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{yu.assertNotInAngularZone(),mu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{yu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=B(i,o.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof vl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ic),s=n.create(bo.NULL,[],e||n.selector,r),i=s.location.nativeElement,o=s.injector.get(Su,null),a=o&&s.injector.get(Tu);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),ju(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;ju(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ru,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(pr(yu),pr(bo),pr(hs),pr(bl),pr(Yc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function ju(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Vu{}class Fu{}const Hu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let zu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Hu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(8255)(e).then(t=>t[r]).then(t=>$u(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>$u(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(pr(fu),pr(Fu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function $u(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Bu=Nu(null,"core",[{provide:nu,useValue:"unknown"},{provide:Lu,deps:[bo]},{provide:Tu,deps:[]},{provide:su,deps:[]}]),qu=[{provide:Uu,useClass:Uu,deps:[yu,bo,hs,bl,Yc]},{provide:yc,deps:[yu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Yc,useClass:Yc,deps:[[new yr,Kc]]},{provide:fu,useClass:fu,deps:[]},Xc,{provide:$l,useFactory:function(){return Jl},deps:[]},{provide:ql,useFactory:function(){return Xl},deps:[]},{provide:iu,useFactory:function(t){return Da(t=t||"undefined"!=typeof $localize&&$localize.locale||Ia),t},deps:[[new mr(iu),new yr,new vr]]},{provide:ou,useValue:"USD"}];let Wu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(pr(Uu))},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:qu}),t})(),Gu=null;function Qu(){return Gu}const Zu=new Zn("DocumentToken");let Ku=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Yu,token:t,providedIn:"platform"}),t})();function Yu(){return pr(Xu)}const Ju=new Zn("Location Initialized");let Xu=(()=>{class t extends Ku{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qu().getBaseHref(this._doc)}onPopState(t){const e=Qu().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=Qu().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){th()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){th()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({factory:eh,token:t,providedIn:"platform"}),t})();function th(){return!!window.history.pushState}function eh(){return new Xu(pr(Zu))}function nh(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function rh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function sh(t){return t&&"?"!==t[0]?"?"+t:t}let ih=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:oh,token:t,providedIn:"root"}),t})();function oh(t){const e=pr(Zu).location;return new lh(pr(Ku),e&&e.origin||"")}const ah=new Zn("appBaseHref");let lh=(()=>{class t extends ih{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return nh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+sh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+sh(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+sh(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(pr(Ku),pr(ah,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t extends ih{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=nh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+sh(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+sh(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(pr(Ku),pr(ah,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t{constructor(t,e){this._subject=new kc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=rh(dh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+sh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,dh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+sh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+sh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(pr(ih),pr(Ku))},t.normalizeQueryParams=sh,t.joinWithSlash=nh,t.stripTrailingSlash=rh,t.\u0275prov=dt({factory:hh,token:t,providedIn:"root"}),t})();function hh(){return new uh(pr(ih),pr(Ku))}function dh(t){return t.replace(/\/index.html$/,"")}var ph=(()=>((ph=ph||{})[ph.Zero=0]="Zero",ph[ph.One=1]="One",ph[ph.Two=2]="Two",ph[ph.Few=3]="Few",ph[ph.Many=4]="Many",ph[ph.Other=5]="Other",ph))();class fh{}let gh=(()=>{class t extends fh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Oa(e);if(n)return n;const r=e.split("-")[0];if(n=Oa(r),n)return n;if("en"===r)return Ta;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Aa.PluralCase]}(e||this.locale)(t)){case ph.Zero:return"zero";case ph.One:return"one";case ph.Two:return"two";case ph.Few:return"few";case ph.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(pr(iu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function mh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class yh{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let vh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new yh(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new _h(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new _h(t,s);e.push(i)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(jo(lc),jo(ec),jo($l))},t.\u0275dir=Zt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class _h{constructor(t,e){this.record=t,this.view=e}}let bh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new wh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ch("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ch("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(jo(lc),jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class wh{constructor(){this.$implicit=null,this.ngIf=null}}function Ch(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${et(e)}'.`)}let Eh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(jo(lc))},t.\u0275dir=Zt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ce]}),t})(),Sh=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Kt({name:"json",type:t,pure:!1}),t})(),Th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:[{provide:fh,useClass:gh}]}),t})(),xh=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new Oh(pr(Zu),window)}),t})();class Oh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Ah(this.window.history)||Ah(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Ah(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ih{}class kh extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new kh,Gu||(Gu=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||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,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(Ph=Ph||document.querySelector("base"),Ph?Ph.getAttribute("href"):null);return null==e?null:function(t){Rh=Rh||document.createElement("a"),Rh.setAttribute("href",t);const e=Rh.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Ph=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return mh(document.cookie,t)}}let Rh,Ph=null;const Nh=new Zn("TRANSITION_ID"),Dh=[{provide:Kc,useFactory:function(t,e,n){return()=>{n.get(Yc).donePromise.then(()=>{const n=Qu();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Nh,Zu,bo],multi:!0}];class Lh{static init(){var t;t=new Lh,Au=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Qu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let Mh=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Uh=new Zn("EventManagerPlugins");let jh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Hh=(()=>{class t extends Fh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(zh),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(zh))}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function zh(t){Qu().remove(t)}const $h={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/"},Bh=/%COMP%/g;function qh(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Gh=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Qh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ot.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Zh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Ot.ShadowDom:return new Kh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=qh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(pr(jh),pr(Hh),pr(Jc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Qh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS($h[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=$h[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=$h[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(fs.DashCase|fs.Important)?t.style.setProperty(e,n,r&fs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&fs.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Wh(n)):this.eventManager.addEventListener(t,e,Wh(n))}}class Zh extends Qh{constructor(t,e,n,r){super(t),this.component=n;const s=qh(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Bh,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Bh,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Kh extends Qh{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qh(r.id,r.styles,[]);for(let i=0;i{class t extends Vh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Jh=["alt","control","meta","shift"],Xh={"\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"},td={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"},ed={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let nd=(()=>{class t extends Vh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qu().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(Jh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&td.hasOwnProperty(e)&&(e=td[e]))}return Xh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Jh.forEach(r=>{r!=n&&(0,ed[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),rd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return pr(id)},token:t,providedIn:"root"}),t})();function sd(t){return new id(t.get(Zu))}let id=(()=>{class t extends rd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case rs.NONE:return e;case rs.HTML:return kr(e,"HTML")?Ir(e):es(this._doc,String(e)).toString();case rs.STYLE:return kr(e,"Style")?Ir(e):e;case rs.SCRIPT:if(kr(e,"Script"))return Ir(e);throw new Error("unsafe value used in a script context");case rs.URL:return Rr(e),kr(e,"URL")?Ir(e):Ur(String(e));case rs.RESOURCE_URL:if(kr(e,"ResourceURL"))return Ir(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Sr(t)}bypassSecurityTrustStyle(t){return new Tr(t)}bypassSecurityTrustScript(t){return new xr(t)}bypassSecurityTrustUrl(t){return new Or(t)}bypassSecurityTrustResourceUrl(t){return new Ar(t)}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({factory:function(){return sd(pr(so))},token:t,providedIn:"root"}),t})();const od=Nu(Bu,"browser",[{provide:nu,useValue:"browser"},{provide:eu,useValue:function(){kh.makeCurrent(),Lh.init()},multi:!0},{provide:Zu,useFactory:function(){return function(t){fe=t}(document),document},deps:[]}]),ad=[[],{provide:oo,useValue:"root"},{provide:hs,useFactory:function(){return new hs},deps:[]},{provide:Uh,useClass:Yh,multi:!0,deps:[Zu,yu,nu]},{provide:Uh,useClass:nd,multi:!0,deps:[Zu]},[],{provide:Gh,useClass:Gh,deps:[jh,Hh,Jc]},{provide:xl,useExisting:Gh},{provide:Fh,useExisting:Hh},{provide:Hh,useClass:Hh,deps:[Zu]},{provide:Su,useClass:Su,deps:[yu]},{provide:jh,useClass:jh,deps:[Uh,yu]},{provide:Ih,useClass:Mh,deps:[]},[]];let ld=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Jc,useValue:e.appId},{provide:Nh,useExisting:Jc},Dh]}}}return t.\u0275fac=function(e){return new(e||t)(pr(t,12))},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:ad,imports:[Th,Wu]}),t})();function cd(...t){let e=t[t.length-1];return T(e)?(t.pop(),D(t,e)):$(t)}function ud(t,e){return V(t,e,1)}function hd(t,e){return function(n){return n.lift(new dd(t,e))}}"undefined"!=typeof window&&window;class dd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new pd(t,this.predicate,this.thisArg))}}class pd extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class fd{}class gd{}class md{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof md?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(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new md;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof md?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class yd{encodeKey(t){return vd(t)}encodeValue(t){return vd(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function vd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _d(t){return`${t}`}class bd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new yd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new bd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}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 e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_d(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_d(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class wd{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),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}keys(){return this.map.keys()}}function Cd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Ed(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Sd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Td{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,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 md),this.context||(this.context=new wd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new Td(n,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var xd=(()=>((xd=xd||{})[xd.Sent=0]="Sent",xd[xd.UploadProgress=1]="UploadProgress",xd[xd.ResponseHeader=2]="ResponseHeader",xd[xd.DownloadProgress=3]="DownloadProgress",xd[xd.Response=4]="Response",xd[xd.User=5]="User",xd))();class Od{constructor(t,e=200,n="OK"){this.headers=t.headers||new md,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ad extends Od{constructor(t={}){super(t),this.type=xd.ResponseHeader}clone(t={}){return new Ad({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 Id extends Od{constructor(t={}){super(t),this.type=xd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Id({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 kd extends Od{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 Rd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pd=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Td)r=t;else{let s,i;s=n.headers instanceof md?n.headers:new md(n.headers),n.params&&(i=n.params instanceof bd?n.params:new bd({fromObject:n.params})),r=new Td(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=cd(r).pipe(ud(t=>this.handler.handle(t)));if(t instanceof Td||"events"===n.observe)return s;const i=s.pipe(hd(t=>t instanceof Id));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(x(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(x(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(x(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(x(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new bd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Rd(n,e))}post(t,e,n={}){return this.request("POST",t,Rd(n,e))}put(t,e,n={}){return this.request("PUT",t,Rd(n,e))}}return t.\u0275fac=function(e){return new(e||t)(pr(fd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Nd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Dd=new Zn("HTTP_INTERCEPTORS");let Ld=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Md=/^\)\]\}',?\n/;let Ud=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new md(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Ad({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Md,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Id({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new kd({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new kd({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:xd.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:xd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:xd.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(pr(Ih))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const jd=new Zn("XSRF_COOKIE_NAME"),Vd=new Zn("XSRF_HEADER_NAME");class Fd{}let Hd=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=mh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu),pr(nu),pr(jd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),zd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(pr(Fd),pr(Vd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),$d=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Dd,[]);this.chain=t.reduceRight((t,e)=>new Nd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(pr(gd),pr(bo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Bd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:zd,useClass:Ld}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:jd,useValue:e.cookieName}:[],e.headerName?{provide:Vd,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:[zd,{provide:Dd,useExisting:zd,multi:!0},{provide:Fd,useClass:Hd},{provide:jd,useValue:"XSRF-TOKEN"},{provide:Vd,useValue:"X-XSRF-TOKEN"}]}),t})(),qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:[Pd,{provide:fd,useClass:$d},Ud,{provide:gd,useExisting:Ud}],imports:[[Bd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function Wd(t,e){return new v(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let Gd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(jo(Ol),jo(Sl))},t.\u0275dir=Zt({type:t}),t})(),Qd=(()=>{class t extends Gd{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275dir=Zt({type:t,features:[Co]}),t})();const Zd=new Zn("NgValueAccessor"),Kd={provide:Zd,useExisting:st(()=>Yd),multi:!0};let Yd=(()=>{class t extends Qd{writeValue(t){this.setProperty("checked",t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Zo("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[yl([Kd]),Co]}),t})();const Jd={provide:Zd,useExisting:st(()=>tp),multi:!0},Xd=new Zn("CompositionEventMode");let tp=(()=>{class t extends Gd{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Qu()?Qu().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(jo(Ol),jo(Sl),jo(Xd,8))},t.\u0275dir=Zt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Zo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[yl([Jd]),Co]}),t})();const ep=new Zn("NgValidators"),np=new Zn("NgAsyncValidators");function rp(t){return null!=t}function sp(t){const e=Go(t)?L(t):t;return Qo(e),e}function ip(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function op(t,e){return e.map(e=>e(t))}function ap(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function lp(t){return null!=t?function(t){if(!t)return null;const e=t.filter(rp);return 0==e.length?null:function(t){return ip(op(t,e))}}(ap(t)):null}function cp(t){return null!=t?function(t){if(!t)return null;const e=t.filter(rp);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Wd(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Wd(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Wd(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(x(t=>e(...t)))}return Wd(t,null)}(op(t,e).map(sp)).pipe(x(ip))}}(ap(t)):null}function up(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let hp=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=lp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t}),t})(),dp=(()=>{class t extends hp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275dir=Zt({type:t,features:[Co]}),t})();class pp extends hp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let fp=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(jo(pp,2))},t.\u0275dir=Zt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&la("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Co]}),t})();function gp(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function mp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const vp="VALID",_p="INVALID",bp="PENDING",wp="DISABLED";function Cp(t){return(xp(t)?t.validators:t)||null}function Ep(t){return Array.isArray(t)?lp(t):t||null}function Sp(t,e){return(xp(e)?e.asyncValidators:t)||null}function Tp(t){return Array.isArray(t)?cp(t):t||null}function xp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Op{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Ep(this._rawValidators),this._composedAsyncValidatorFn=Tp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===vp}get invalid(){return this.status===_p}get pending(){return this.status==bp}get disabled(){return this.status===wp}get enabled(){return this.status!==wp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Ep(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Tp(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=bp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=wp,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=vp,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==vp&&this.status!==bp||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wp:vp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=bp,this._hasOwnPendingAsyncValidator=!0;const e=sp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Ip?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof kp&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new kc,this.statusChanges=new kc}_calculateStatus(){return this._allControlsDisabled()?wp:this.errors?_p:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bp)?bp:this._anyControlsHaveStatus(_p)?_p:vp}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){xp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ap extends Op{constructor(t=null,e,n){super(Cp(e),Sp(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){yp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){yp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ip extends Op{constructor(t,e,n){super(Cp(e),Sp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Ap?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class kp extends Op{constructor(t,e,n){super(Cp(e),Sp(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ap?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Rp={provide:pp,useExisting:st(()=>Np)},Pp=(()=>Promise.resolve(null))();let Np=(()=>{class t extends pp{constructor(t,e,n,r){super(),this.control=new Ap,this._registered=!1,this.update=new kc,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{t.constructor===tp?n=t:Object.getPrototypeOf(t.constructor)===Qd?r=t:s=t}),s||r||n||null}(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){var t,e;(function(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(up(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(up(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const s=()=>t.updateValueAndValidity();gp(e._rawValidators,s),gp(e._rawAsyncValidators,s)})(t=this.control,e=this),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&mp(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&mp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Pp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Pp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(jo(dp,9),jo(ep,10),jo(np,10),jo(Zd,10))},t.\u0275dir=Zt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yl([Rp]),Co,ce]}),t})();const Dp={provide:Zd,useExisting:st(()=>Lp),multi:!0};let Lp=(()=>{class t extends Qd{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Zo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[yl([Dp]),Co]}),t})(),Mp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})();const Up={provide:ep,useExisting:st(()=>Vp),multi:!0},jp={provide:ep,useExisting:st(()=>Fp),multi:!0};let Vp=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return null==(e=t.value)||0===e.length?{required:!0}:null;var e}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Lo("required",e.required?"":null)},inputs:{required:"required"},features:[yl([Up])]}),t})(),Fp=(()=>{class t extends Vp{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275dir=Zt({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Lo("required",e.required?"":null)},features:[yl([jp]),Co]}),t})(),Hp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Mp]]}),t})(),zp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[Hp]}),t})();class $p extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}class Bp extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class qp extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Wp(t,e,n,r,s=new qp(t,n,r)){if(!s.closed)return e instanceof v?e.subscribe(s):N(e)(s)}const Gp={};class Qp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Zp(t,this.resultSelector))}}class Zp extends Bp{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Gp),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Yp(...t){return z(1)(cd(...t))}const Jp=new v(t=>t.complete());function Xp(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Jp}function tf(t){return new v(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?L(n):Xp()).subscribe(e)})}function ef(t,e){return"function"==typeof e?n=>n.pipe(ef((n,r)=>L(t(n,r)).pipe(x((t,s)=>e(n,t,r,s))))):e=>e.lift(new nf(t))}class nf{constructor(t){this.project=t}call(t,e){return e.subscribe(new rf(t,this.project))}}class rf extends U{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new M(this),r=this.destination;r.add(n),this.innerSubscription=j(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const sf=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function of(t){return e=>0===t?Xp():e.lift(new af(t))}class af{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new lf(t,this.total))}}class lf extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function cf(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>Yp(t,n,e)):e=>Yp(t,e)}function uf(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new hf(t,e,n))}}class hf{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new df(t,this.accumulator,this.seed,this.hasSeed))}}class df extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function pf(t){return function(e){const n=new ff(t),r=e.lift(n);return n.caught=r}}class ff{constructor(t){this.selector=t}call(t,e){return e.subscribe(new gf(t,this.selector,this.caught))}}class gf extends U{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new M(this);this.add(r);const s=j(n,r);s!==r&&this.add(s)}}}function mf(t){return function(e){return 0===t?Xp():e.lift(new yf(t))}}class yf{constructor(t){if(this.total=t,this.total<0)throw new sf}call(t,e){return e.subscribe(new vf(t,this.total))}}class vf extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new bf(t))}class bf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new wf(t,this.errorFactory))}}class wf extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Cf(){return new Kp}function Ef(t=null){return e=>e.lift(new Sf(t))}class Sf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Tf(t,this.defaultValue))}}class Tf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function xf(t,e){const n=arguments.length>=2;return r=>r.pipe(t?hd((e,n)=>t(e,n,r)):y,of(1),n?Ef(e):_f(()=>new Kp))}function Of(){}function Af(t,e,n){return function(r){return r.lift(new If(t,e,n))}}class If{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new kf(t,this.nextOrObserver,this.error,this.complete))}}class kf extends f{constructor(t,e,n,s){super(t),this._tapNext=Of,this._tapError=Of,this._tapComplete=Of,this._tapError=n||Of,this._tapComplete=s||Of,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Of,this._tapError=e.error||Of,this._tapComplete=e.complete||Of)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Rf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Pf(t,this.callback))}}class Pf extends f{constructor(t,e){super(t),this.add(new h(e))}}class Nf{constructor(t,e){this.id=t,this.url=e}}class Df extends Nf{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lf extends Nf{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Mf extends Nf{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Uf extends Nf{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class jf extends Nf{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vf extends Nf{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ff extends Nf{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Hf extends Nf{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zf extends Nf{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $f{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class qf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zf{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Kf="primary";class Yf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Jf(t){return new Yf(t)}function Xf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function tg(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function rg(t){return Array.prototype.concat.apply([],t)}function sg(t){return t.length>0?t[t.length-1]:null}function ig(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function og(t){return Qo(t)?t:Go(t)?L(Promise.resolve(t)):cd(t)}const ag={exact:function t(e,n,r){if(!mg(e.segments,n.segments))return!1;if(!dg(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],r))return!1}return!0},subset:ug},lg={exact:function(t,e){return eg(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ng(t[n],e[n]))},ignored:()=>!0};function cg(t,e,n){return ag[n.paths](t.root,e.root,n.matrixParams)&&lg[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function ug(t,e,n){return hg(t,e,e.segments,n)}function hg(t,e,n,r){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!mg(s,n)&&!e.hasChildren()&&!!dg(s,n,r)}if(t.segments.length===n.length){if(!mg(t.segments,n))return!1;if(!dg(t.segments,n,r))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ug(t.children[n],e.children[n],r))return!1}return!0}{const s=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!mg(t.segments,s)&&!!dg(t.segments,s,r)&&!!t.children.primary&&hg(t.children.primary,e,i,r)}}function dg(t,e,n){return e.every((e,r)=>lg[n](t[r].parameters,e.parameters))}class pg{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return _g.serialize(this)}}class fg{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ig(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bg(this)}}class gg{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Jf(this.parameters)),this._parameterMap}toString(){return Og(this)}}function mg(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class yg{}class vg{parse(t){const e=new Pg(t);return new pg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${wg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Eg(e)}=${Eg(t)}`).join("&"):`${Eg(e)}=${Eg(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const _g=new vg;function bg(t){return t.segments.map(t=>Og(t)).join("/")}function wg(t,e){if(!t.hasChildren())return bg(t);if(e){const e=t.children.primary?wg(t.children.primary,!1):"",n=[];return ig(t.children,(t,e)=>{e!==Kf&&n.push(`${e}:${wg(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ig(t.children,(t,r)=>{r===Kf&&(n=n.concat(e(t,r)))}),ig(t.children,(t,r)=>{r!==Kf&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===Kf?[wg(t.children.primary,!1)]:[`${n}:${wg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${bg(t)}/${e[0]}`:`${bg(t)}/(${e.join("//")})`}}function Cg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eg(t){return Cg(t).replace(/%3B/gi,";")}function Sg(t){return Cg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tg(t){return decodeURIComponent(t)}function xg(t){return Tg(t.replace(/\+/g,"%20"))}function Og(t){return`${Sg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Sg(t)}=${Sg(e[t])}`).join("")}`;var e}const Ag=/^[^\/()?;=#]+/;function Ig(t){const e=t.match(Ag);return e?e[0]:""}const kg=/^[^=?&#]+/,Rg=/^[^?&#]+/;class Pg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fg([],{}):new fg([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new fg(t,e)),n}parseSegment(){const t=Ig(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new gg(Tg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ig(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ig(this.remaining);t&&(n=t,this.capture(n))}t[Tg(e)]=Tg(n)}parseQueryParam(t){const e=function(t){const e=t.match(kg);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Rg);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=xg(e),s=xg(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ig(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Kf);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new fg([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ng{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Dg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Dg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Lg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Lg(t,this._root).map(t=>t.value)}}function Dg(t,e){if(t===e.value)return e;for(const n of e.children){const e=Dg(t,n);if(e)return e}return null}function Lg(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Lg(t,n);if(r.length)return r.unshift(e),r}return[]}class Mg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ug(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class jg extends Ng{constructor(t,e){super(t),this.snapshot=e,Bg(this,t)}toString(){return this.snapshot.toString()}}function Vg(t,e){const n=function(t,e){const n=new zg([],{},{},"",{},Kf,e,null,t.root,-1,{});return new $g("",new Mg(n,[]))}(t,e),r=new $p([new gg("",{})]),s=new $p({}),i=new $p({}),o=new $p({}),a=new $p(""),l=new Fg(r,s,o,a,i,Kf,e,n.root);return l.snapshot=n.root,new jg(new Mg(l,[]),n)}class Fg{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(x(t=>Jf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(x(t=>Jf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hg(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class zg{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Jf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $g extends Ng{constructor(t,e){super(e),this.url=t,Bg(this,e)}toString(){return qg(this._root)}}function Bg(t,e){e.value._routerState=t,e.children.forEach(e=>Bg(t,e))}function qg(t){const e=t.children.length>0?` { ${t.children.map(qg).join(", ")} } `:"";return`${t.value}${e}`}function Wg(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,eg(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),eg(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;neg(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Gg(t.parent,e.parent))}function Qg(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return Qg(t,e,r);return Qg(t,e)})}(t,e,n);return new Mg(r,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Zg(e,t),t}}const n=new Fg(new $p((r=e.value).url),new $p(r.params),new $p(r.queryParams),new $p(r.fragment),new $p(r.data),r.outlet,r.component,r),s=e.children.map(e=>Qg(t,e));return new Mg(n,s)}var r}function Zg(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new pg(n.root===t?e:Xg(n.root,t,e),i,s)}function Xg(t,e,n){const r={};return ig(t.children,(t,s)=>{r[s]=t===e?n:Xg(t,e,n)}),new fg(t.segments,r)}class tm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Kg(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(Yg);if(r&&r!==sg(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class em{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function nm(t,e,n){if(t||(t=new fg([],{})),0===t.segments.length&&t.hasChildren())return rm(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=n[r];if(Yg(o))break;const a=`${o}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!am(a,l,e))return i;r+=2}else{if(!am(a,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=nm(t.children[r],e,n))}),ig(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new fg(t.segments,s)}}function sm(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=sm(new fg([],{}),0,t))}),e}function om(t){const e={};return ig(t,(t,n)=>e[n]=`${t}`),e}function am(t,e,n){return t==n.path&&eg(e,n.parameters)}class lm{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Wg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Ug(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),ig(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=Ug(t);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=Ug(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Qf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Wf(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Wg(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),cm(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function cm(t){Wg(t.value),t.children.forEach(cm)}class um{constructor(t,e){this.routes=t,this.module=e}}function hm(t){return"function"==typeof t}function dm(t){return t instanceof pg}const pm=Symbol("INITIAL_VALUE");function fm(){return ef(t=>function(...t){let e,n;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,n).lift(new Qp(e))}(t.map(t=>t.pipe(of(1),cf(pm)))).pipe(uf((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==pm)return t;if(r===pm&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||dm(r))return r}return t},t)},pm),hd(t=>t!==pm),x(t=>dm(t)?t:!0===t),of(1)))}let gm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&$o(0,"router-outlet")},directives:function(){return[hy]},encapsulation:2}),t})();function mm(t,e=""){for(let n=0;nbm(t)===e);return n.push(...t.filter(t=>bm(t)!==e)),n}const Cm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Em(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Cm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||tg)(n,t,e);if(!s)return Object.assign({},Cm);const i={};ig(s.posParams,(t,e)=>{i[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Sm(t,e,n,r,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Tm(t,e,n)&&bm(n)!==Kf)}(t,n,r)){const s=new fg(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&bm(i)!==Kf){const n=new fg([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[bm(i)]=n}return s}(t,e,r,new fg(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Tm(t,e,n))}(t,n,r)){const i=new fg(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Tm(t,n,a)&&!s[bm(a)]){const n=new fg([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[bm(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new fg(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Tm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function xm(t,e,n,r){return!!(bm(t)===r||r!==Kf&&Tm(e,n,t))&&("**"===t.path||Em(e,t,n).matched)}function Om(t,e,n){return 0===e.length&&!t.children[n]}class Am{constructor(t){this.segmentGroup=t||null}}class Im{constructor(t){this.urlTree=t}}function km(t){return new v(e=>e.error(new Am(t)))}function Rm(t){return new v(e=>e.error(new Im(t)))}function Pm(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Nm{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ic)}apply(){const t=Sm(this.urlTree.root,[],[],this.config).segmentGroup,e=new fg(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Kf).pipe(x(t=>this.createUrlTree(Dm(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(pf(t=>{if(t instanceof Im)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Am)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Kf).pipe(x(e=>this.createUrlTree(Dm(e),t.queryParams,t.fragment))).pipe(pf(t=>{if(t instanceof Am)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new fg([],{[Kf]:t}):t;return new pg(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(x(t=>new fg([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return L(r).pipe(ud(r=>{const s=n.children[r],i=wm(e,r);return this.expandSegmentGroup(t,i,s,r).pipe(x(t=>({segment:t,outlet:r})))}),uf((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?hd((e,n)=>t(e,n,r)):y,mf(1),n?Ef(e):_f(()=>new Kp))}())}expandSegment(t,e,n,r,s,i){return L(n).pipe(ud(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(pf(t=>{if(t instanceof Am)return cd(null);throw t}))),xf(t=>!!t),pf((t,n)=>{if(t instanceof Kp||"EmptyError"===t.name){if(Om(e,r,s))return cd(new fg([],{}));throw new Am(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return xm(r,e,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):km(e):km(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Rm(s):this.lineralizeSegments(n,s).pipe(V(n=>{const s=new fg(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Em(e,r,s);if(!o)return km(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Rm(u):this.lineralizeSegments(r,u).pipe(V(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?cd(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(x(t=>(n._loadedConfig=t,new fg(r,{})))):cd(new fg(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=Em(e,n,r);if(!i)return km(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(V(t=>{const r=t.module,i=t.routes,{segmentGroup:a,slicedSegments:c}=Sm(e,o,l,i),u=new fg(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,i,u).pipe(x(t=>new fg(o,t)));if(0===i.length&&0===c.length)return cd(new fg(o,{}));const h=bm(n)===s;return this.expandSegment(r,u,i,c,h?Kf:s,!0).pipe(x(t=>new fg(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?cd(new um(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?cd(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(V(n=>n?this.configLoader.load(t.injector,e).pipe(x(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Xf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):cd(new um([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?cd(r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&hm(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!hm(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return og(i)})).pipe(fm(),Af(t=>{if(!dm(t))return;const e=Xf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),x(t=>!0===t)):cd(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return cd(n);if(r.numberOfChildren>1||!r.children.primary)return Pm(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new pg(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ig(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return ig(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new fg(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Dm(t){const e={};for(const n of Object.keys(t.children)){const r=Dm(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new fg(t.segments.concat(e.segments),e.children)}return t}(new fg(t.segments,e))}class Lm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Mm{constructor(t,e){this.component=t,this.route=e}}function Um(t,e,n){const r=t._root;return Vm(r,e?e._root:null,n,[r.value])}function jm(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Vm(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ug(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!mg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mg(t.url,e.url)||!eg(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gg(t,e)||!eg(t.queryParams,e.queryParams);case"paramsChange":default:return!Gg(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Lm(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Vm(t,e,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Mm(a.outlet.component,o))}else o&&Fm(e,a,s),s.canActivateChecks.push(new Lm(r)),Vm(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),ig(i,(t,e)=>Fm(t,n.getContext(e),s)),s}function Fm(t,e,n){const r=Ug(t),s=t.value;ig(r,(t,r)=>{Fm(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Mm(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Hm{}function zm(t){return new v(e=>e.error(t))}class $m{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const t=Sm(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Kf);if(null===e)return null;const n=new zg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Kf,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Mg(n,e),s=new $g(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Hg(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const r=e.children[s],i=wm(t,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=qm(n);return r.sort((t,e)=>t.value.outlet===Kf?-1:e.value.outlet===Kf?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,r);if(null!==t)return t}return Om(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!xm(t,e,n,r))return null;let s,i=[],o=[];if("**"===t.path){const r=n.length>0?sg(n).parameters:{};s=new zg(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qm(t),bm(t),t.component,t,Wm(e),Gm(e)+n.length,Zm(t))}else{const r=Em(e,t,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new zg(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qm(t),bm(t),t.component,t,Wm(e),Gm(e)+i.length,Zm(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Sm(e,i,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Mg(s,t)]}if(0===a.length&&0===c.length)return[new Mg(s,[])];const u=bm(t)===r,h=this.processSegment(a,l,c,u?Kf:r);return null===h?null:[new Mg(s,h)]}}function Bm(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function qm(t){const e=[],n=new Set;for(const r of t){if(!Bm(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=qm(r.children);e.push(new Mg(r.value,t))}return e.filter(t=>!n.has(t))}function Wm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Gm(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Qm(t){return t.data||{}}function Zm(t){return t.resolve||{}}function Km(t){return ef(e=>{const n=t(e);return n?L(n).pipe(x(()=>e)):cd(e)})}class Ym extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Jm=new Zn("ROUTES");class Xm{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(x(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new um(rg(r.injector.get(Jm,void 0,wt.Self|wt.Optional)).map(_m),r)}),pf(t=>{throw e._loader$=void 0,t}));return e._loader$=new Q(n,()=>new E).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?L(this.loader.load(t)):og(t()).pipe(V(t=>t instanceof oc?cd(t):L(this.compiler.compileModuleAsync(t))))}}class ty{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ey,this.attachRef=null}}class ey{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ty,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ny{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function ry(t){throw t}function sy(t,e,n){return e.parse("/")}function iy(t,e){return cd(null)}const oy={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ay={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ly=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=ry,this.malformedUriErrorHandler=sy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:iy,afterPreactivation:iy},this.urlHandlingStrategy=new ny,this.routeReuseStrategy=new Ym,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ic),this.console=s.get(su);const l=s.get(yu);this.isNgZoneEnabled=l instanceof yu&&yu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new pg(new fg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Xm(i,o,t=>this.triggerEvent(new $f(t)),t=>this.triggerEvent(new Bf(t))),this.routerState=Vg(this.currentUrlTree,this.rootComponentType),this.transitions=new $p({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(hd(t=>0!==t.id),x(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),ef(t=>{let n=!1,r=!1;return cd(t).pipe(Af(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ef(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return cd(t).pipe(ef(t=>{const n=this.transitions.getValue();return e.next(new Df(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Jp:Promise.resolve(t)}),function(t,e,n,r){return ef(s=>function(t,e,n,r,s){return new Nm(t,e,n,r,s).apply()}(t,e,n,s.extractedUrl,r).pipe(x(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Af(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return V(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){try{const o=new $m(t,e,n,r,s,i).recognize();return null===o?zm(new Hm):cd(o)}catch(o){return zm(o)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(x(t=>Object.assign(Object.assign({},i),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Af(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new jf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new Df(n,this.serializeUrl(r),s,i);e.next(a);const l=Vg(r,this.rootComponentType).snapshot;return cd(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Jp}),Km(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Af(t=>{const e=new Vf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),x(t=>Object.assign(Object.assign({},t),{guards:Um(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return V(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?cd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return L(t).pipe(V(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?cd(i.map(i=>{const o=jm(i,e,s);let a;if(function(t){return t&&hm(t.canDeactivate)}(o))a=og(o.canDeactivate(t,e,n,r));else{if(!hm(o))throw new Error("Invalid CanDeactivate guard");a=og(o(t,e,n,r))}return a.pipe(xf())})).pipe(fm()):cd(!0)}(t.component,t.route,n,e,r)),xf(t=>!0!==t,!0))}(o,r,s,t).pipe(V(n=>n&&"boolean"==typeof n?function(t,e,n,r){return L(e).pipe(ud(e=>Yp(function(t,e){return null!==t&&e&&e(new qf(t)),cd(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Gf(t)),cd(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>tf(()=>cd(e.guards.map(s=>{const i=jm(s,e.node,n);let o;if(function(t){return t&&hm(t.canActivateChild)}(i))o=og(i.canActivateChild(r,t));else{if(!hm(i))throw new Error("Invalid CanActivateChild guard");o=og(i(r,t))}return o.pipe(xf())})).pipe(fm())));return cd(s).pipe(fm())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?cd(r.map(r=>tf(()=>{const s=jm(r,e,n);let i;if(function(t){return t&&hm(t.canActivate)}(s))i=og(s.canActivate(e,t));else{if(!hm(s))throw new Error("Invalid CanActivate guard");i=og(s(e,t))}return i.pipe(xf())}))).pipe(fm()):cd(!0)}(t,e.route,n))),xf(t=>!0!==t,!0))}(r,i,t,e):cd(n)),x(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Af(t=>{if(dm(t.guardsResult)){const e=Xf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Ff(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),hd(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),Km(t=>{if(t.guards.canActivateChecks.length)return cd(t).pipe(Af(t=>{const e=new Hf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),ef(t=>{let e=!1;return cd(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,V(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return cd(t);let i=0;return L(s).pipe(ud(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return cd({});const i={};return L(s).pipe(V(s=>function(t,e,n,r){const s=jm(t,e,r);return og(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Af(t=>{i[s]=t}))),mf(1),V(()=>Object.keys(i).length===s.length?cd(i):Jp))}(t._resolve,t,e,r).pipe(x(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Hg(t,n).resolve),null)))}(t.route,e,n,r)),Af(()=>i++),mf(1),V(e=>i===s.length?cd(t):Jp))})),Af({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,r}),Af(t=>{const e=new zf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Km(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),x(t=>{const e=function(t,e,n){const r=Qg(t,e._root,n?n._root:void 0);return new jg(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Af(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),x(t=>(new lm(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),Af({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null},t=>t.lift(new Rf(s))),pf(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=dm(n.url);r||(this.navigated=!0,this.restoreHistory(t,!0));const s=new Mf(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const r=new Uf(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return Jp}));var s,i,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){mm(t),this.config=t.map(_m),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,s){if(0===n.length)return Jg(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new tm(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return ig(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new tm(n,e,r)}(n);if(i.toRoot())return Jg(e.root,new fg([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new em(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new em(t,t===e.root,0)}const r=Kg(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new em(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?rm(o.segmentGroup,o.index,i.commands):nm(o.segmentGroup,o.index,i.commands);return Jg(o.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=dm(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Lf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){var i,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}restoreHistory(t,e=!1){var n,r;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new Mf(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(pr(Yn),pr(yg),pr(ey),pr(uh),pr(bo),pr(Vu),pr(fu),pr(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),cy=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new E,this.subscription=t.events.subscribe(t=>{t instanceof Lf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,s){if(0!==t||e||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:uy(this.skipLocationChange),replaceUrl:uy(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:uy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(jo(ly),jo(Fg),jo(ih))},t.\u0275dir=Zt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Zo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ea("href",e.href,is),Lo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ce]}),t})();function uy(t){return""===t||!!t}let hy=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new kc,this.deactivateEvents=new kc,this.name=r||Kf,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new dy(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(jo(ey),jo(lc),jo(bl),Wn("name"),jo(Kl))},t.\u0275dir=Zt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class dy{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Fg?this.route:t===ey?this.childContexts:this.parent.get(t,e)}}class py{}class fy{preload(t,e){return cd(null)}}let gy=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Xm(e,n,e=>t.triggerEvent(new $f(e)),e=>t.triggerEvent(new Bf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(hd(t=>t instanceof Lf),ud(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ic);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return L(n).pipe(z(),x(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?cd(e._loadedConfig):this.loader.load(t.injector,e)).pipe(V(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(pr(ly),pr(Vu),pr(fu),pr(bo),pr(py))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),my=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Df?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Lf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Zf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Zf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(pr(ly),pr(xh),pr(void 0))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const yy=new Zn("ROUTER_CONFIGURATION"),vy=new Zn("ROUTER_FORROOT_GUARD"),_y=[uh,{provide:yg,useClass:vg},{provide:ly,useFactory:function(t,e,n,r,s,i,o,a={},l,c){const u=new ly(null,t,e,n,r,s,i,rg(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[yg,ey,uh,bo,Vu,fu,Jm,yy,[class{},new yr],[class{},new yr]]},ey,{provide:Fg,useFactory:function(t){return t.routerState.root},deps:[ly]},{provide:Vu,useClass:zu},gy,fy,class{preload(t,e){return e().pipe(pf(()=>cd(null)))}},{provide:yy,useValue:{enableTracing:!1}}];function by(){return new Pu("Router",ly)}let wy=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[_y,Ty(e),{provide:vy,useFactory:Sy,deps:[[ly,new yr,new vr]]},{provide:yy,useValue:n||{}},{provide:ih,useFactory:Ey,deps:[Ku,[new mr(ah),new yr],yy]},{provide:my,useFactory:Cy,deps:[ly,xh,yy]},{provide:py,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:fy},{provide:Pu,multi:!0,useFactory:by},[xy,{provide:Kc,multi:!0,useFactory:Oy,deps:[xy]},{provide:Iy,useFactory:Ay,deps:[xy]},{provide:ru,multi:!0,useExisting:Iy}]]}}static forChild(e){return{ngModule:t,providers:[Ty(e)]}}}return t.\u0275fac=function(e){return new(e||t)(pr(vy,8),pr(ly,8))},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})();function Cy(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new my(t,e,n)}function Ey(t,e,n={}){return n.useHash?new ch(t,e):new lh(t,e)}function Sy(t){return"guarded"}function Ty(t){return[{provide:Kn,multi:!0,useValue:t},{provide:Jm,multi:!0,useValue:t}]}let xy=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(Ju,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(ly),r=this.injector.get(yy);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?cd(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(yy),n=this.injector.get(gy),r=this.injector.get(my),s=this.injector.get(ly),i=this.injector.get(Uu);t===i.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(pr(bo))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Oy(t){return t.appInitializer.bind(t)}function Ay(t){return t.bootstrapListener.bind(t)}const Iy=new Zn("Router Initializer");let ky=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-home"]],decls:31,vars:0,consts:[["href","https://jsonplaceholder.typicode.com/"],["href","https://httpstat.us/"],["routerLink","/todos"],["href","https://github.com/peterrhodesdev/angular-generic-api-service/blob/main/src/app/services/base-api-endpoint.service.ts"],["routerLink","/users"],["href","https://www.npmjs.com/package/class-transformer"],["routerLink","/http-status-codes"]],template:function(t,e){1&t&&(Ho(0,"h1"),_a(1,"Angular generic API service"),zo(),Ho(2,"p"),_a(3,"Angular demo project for a generic API service using the following services: "),Ho(4,"a",0),_a(5,"JSON Placeholder"),zo(),_a(6," and "),Ho(7,"a",1),_a(8,"httpstat.us"),zo(),_a(9,"."),zo(),Ho(10,"h2"),Ho(11,"a",2),_a(12,"Todos"),zo(),zo(),Ho(13,"p"),_a(14,"Examples of how to perform various HTTP request methods (DELETE, GET, PATCH, POST, PUT) for a specific endpoint by extending "),Ho(15,"a",3),_a(16,"BaseApiEndpointService"),zo(),_a(17,"."),zo(),Ho(18,"h2"),Ho(19,"a",4),_a(20,"Users"),zo(),zo(),Ho(21,"p"),_a(22,"Demonstrates "),Ho(23,"a",5),_a(24,"class-transformer"),zo(),_a(25," mapping of plain javascript objects returned from an API call to an instance of a class."),zo(),Ho(26,"h2"),Ho(27,"a",6),_a(28,"HTTP status codes"),zo(),zo(),Ho(29,"p"),_a(30,"Exercise custom logic based on the HTTP response status code."),zo())},directives:[cy],styles:["h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit}"]}),t})();var Ry=(()=>(function(t){t[t.ACCEPTED=202]="ACCEPTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.CONFLICT=409]="CONFLICT",t[t.CONTINUE=100]="CONTINUE",t[t.CREATED=201]="CREATED",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.GONE=410]="GONE",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.IM_A_TEAPOT=418]="IM_A_TEAPOT",t[t.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.LOCKED=423]="LOCKED",t[t.METHOD_FAILURE=420]="METHOD_FAILURE",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",t[t.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.OK=200]="OK",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.PROCESSING=102]="PROCESSING",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",t[t.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.USE_PROXY=305]="USE_PROXY"}(Ry||(Ry={})),Ry))(),Py={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy"};const Ny=Object.assign(Object.assign({},{API_BASE_URL_JSON_PLACEHOLDER:"https://jsonplaceholder.typicode.com/",API_ENDPOINT_JSON_PLACEHOLDER_TODOS:"todos/",API_ENDPOINT_JSON_PLACEHOLDER_USERS:"users/",HTTP_ERROR_RETRY_ATTEMPTS:3,HTTP_ERROR_RETRY_STATUS_CODES:[408,502,503,504],HTTP_ERROR_RETRY_INITIAL_INTERVAL_MILLISECONDS:1e3,HTTP_ERROR_RETRY_EXPONENTIAL_DELAY_BASE:1.5}),{production:!0});class Dy{static isNull(t){return null===t}static isUndefined(t){return void 0===t}static isNullOrUndefined(t){return Dy.isNull(t)||Dy.isUndefined(t)}static isEmpty(t){return""===t}static hasNonEmptyValue(t){return!Dy.isNullOrUndefined(t)&&!Dy.isEmpty(t)}static isArrayEmpty(t){return 0===t.length}static hasElements(t){return!Dy.isNullOrUndefined(t)&&!Dy.isArrayEmpty(t)}static isString(t){return"string"==typeof t||t instanceof String}}let Ly=(()=>{class t{constructor(t){this.httpClient=t,this.httpOptions={headers:new md({"Content-Type":"application/json"})}}delete(t){let e=this.httpClient.delete(t,this.httpOptions);return this.applyPipeOperations(e)}getMany(t){let e=this.httpClient.get(t,this.httpOptions);return this.applyPipeOperations(e)}getOne(t){let e=this.httpClient.get(t,this.httpOptions);return this.applyPipeOperations(e)}patch(t,e){let n=this.convertObjToJsonString(e),r=this.httpClient.patch(t,n,this.httpOptions);return this.applyPipeOperations(r)}post(t,e){let n=this.convertObjToJsonString(e),r=this.httpClient.post(t,n,this.httpOptions);return this.applyPipeOperations(r)}put(t,e){let n=this.convertObjToJsonString(e),r=this.httpClient.put(t,n,this.httpOptions);return this.applyPipeOperations(r)}applyPipeOperations(t){return Ny.production||(t=t.pipe(Af(t=>console.log("HTTP response:",t)))),t}convertObjToJsonString(t){if(Dy.isNullOrUndefined(t))throw Error("Illegal Argument Error: can't convert null or undefined objects to JSON string");return JSON.stringify(t)}}return t.\u0275fac=function(e){return new(e||t)(pr(Pd))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function My(t,e,n,s){return r(n)&&(s=n,n=void 0),s?My(t,e,n).pipe(x(t=>l(t)?s(...t):s(t))):new v(r=>{Uy(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function Uy(t,e,n,r,s){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,s),i=()=>r.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),i=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),i=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;i{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Fy extends Vy{constructor(t,e=Vy.now){super(t,()=>Fy.delegate&&Fy.delegate!==this?Fy.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Fy.delegate&&Fy.delegate!==this?Fy.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Hy=new Fy(class extends jy{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,r=!1;try{this.work(t)}catch(s){r=!0,n=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}});function zy(t){return!l(t)&&t-parseFloat(t)+1>=0}function $y(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function By(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return $(t,void 0).lift(new qy)}class qy{call(t,e){return e.subscribe(new Wy(t))}}class Wy extends Bp{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class Jy extends U{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[k](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return j(this.observable,new M(this))}}function Xy(t){return e=>e.lift(new tv(t))}class tv{constructor(t){this.notifier=t}call(t,e){const n=new ev(t),r=j(this.notifier,new M(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class ev extends U{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}class nv{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new rv(t,this.compare,this.keySelector))}}class rv extends f{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function sv(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new iv(t,n))}}class iv{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new ov(t,this.observables,this.project))}}class ov extends Bp{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let s=0;s0){const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function av(t,e){return new v(e?n=>e.schedule(lv,0,{error:t,subscriber:n}):e=>e.error(t))}function lv({error:t,subscriber:e}){e.error(t)}class cv{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return cd(this.value);case"E":return av(this.error);case"C":return Xp()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new cv("N",t):cv.undefinedValueNotification}static createError(t){return new cv("E",void 0,t)}static createComplete(){return cv.completeNotification}}function uv(t,e=Hy){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new hv(r,e))}cv.completeNotification=new cv("C"),cv.undefinedValueNotification=new cv("N",void 0);class hv{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new dv(t,this.delay,this.scheduler))}}class dv extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(dv.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new pv(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(cv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(cv.createComplete()),this.unsubscribe()}}class pv{constructor(t,e){this.time=t,this.notification=e}}class fv{constructor(t){this.total=t}call(t,e){return e.subscribe(new gv(t,this.total))}}class gv extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const mv=["*"],yv=["dialog"],vv=["ngbNavOutlet",""];function _v(t,e){}const bv=function(t){return{$implicit:t}};function wv(t,e){if(1&t&&(Ho(0,"div",2),Mo(1,_v,0,0,"ng-template",3),zo()),2&t){const t=Jo().$implicit,e=Jo();Vo("item",t)("nav",e.nav)("role",e.paneRole),ai(1),Vo("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",Sc(5,bv,t.active||e.isPanelTransitioning(t)))}}function Cv(t,e){if(1&t&&Mo(0,wv,2,7,"div",1),2&t){const t=e.$implicit,n=Jo();Vo("ngIf",t.isPanelInDom()||n.isPanelTransitioning(t))}}function Ev(t,e){1&t&&(Ho(0,"span",9),cl(1,10),zo())}function Sv(t,e){1&t&&(Ho(0,"span",9),cl(1,11),zo())}function Tv(t,e){1&t&&(Ho(0,"span",9),cl(1,12),zo())}function xv(t,e){1&t&&(Ho(0,"span",9),cl(1,13),zo())}function Ov(t,e){1&t&&_a(0,"...")}function Av(t,e){1&t&&(Ho(0,"span",15),_a(1,"(current)"),zo())}function Iv(t,e){if(1&t&&(_a(0),Mo(1,Av,2,0,"span",14)),2&t){const t=e.$implicit,n=e.currentPage;wa(" ",t," "),ai(1),Vo("ngIf",t===n)}}function kv(t,e){}const Rv=function(t){return{disabled:!0,currentPage:t}};function Pv(t,e){if(1&t&&(Ho(0,"a",20),Mo(1,kv,0,0,"ng-template",8),zo()),2&t){const t=Jo(2).$implicit,e=Jo(),n=Uo(9);ai(1),Vo("ngTemplateOutlet",(null==e.tplEllipsis?null:e.tplEllipsis.templateRef)||n)("ngTemplateOutletContext",Sc(2,Rv,t))}}function Nv(t,e){}const Dv=function(t,e,n){return{disabled:t,$implicit:e,currentPage:n}};function Lv(t,e){if(1&t){const t=Wo();Ho(0,"a",21),Zo("click",function(e){Ne(t);const n=Jo().$implicit;return Jo(2).selectPage(n),e.preventDefault()}),Mo(1,Nv,0,0,"ng-template",8),zo()}if(2&t){const t=Jo().$implicit,e=Jo(),n=e.disabled,r=e.$implicit,s=Jo(),i=Uo(11);Lo("tabindex",n?"-1":null)("aria-disabled",n?"true":null),ai(1),Vo("ngTemplateOutlet",(null==s.tplNumber?null:s.tplNumber.templateRef)||i)("ngTemplateOutletContext",xc(4,Dv,n,t,r))}}function Mv(t,e){if(1&t&&(Ho(0,"li",17),Mo(1,Pv,2,4,"a",18),Mo(2,Lv,2,8,"a",19),zo()),2&t){const t=e.$implicit,n=Jo(),r=n.$implicit,s=n.disabled,i=Jo();la("active",t===r)("disabled",i.isEllipsis(t)||s),Lo("aria-current",t===r?"page":null),ai(1),Vo("ngIf",i.isEllipsis(t)),ai(1),Vo("ngIf",!i.isEllipsis(t))}}function Uv(t,e){1&t&&Mo(0,Mv,3,7,"li",16),2&t&&Vo("ngForOf",e.pages)}function jv(t,e){}const Vv=function(t,e){return{disabled:t,currentPage:e}};function Fv(t,e){if(1&t){const t=Wo();Ho(0,"li",17),Ho(1,"a",22),Zo("click",function(e){return Ne(t),Jo().selectPage(1),e.preventDefault()}),Mo(2,jv,0,0,"ng-template",8),zo(),zo()}if(2&t){const t=Jo(),e=Uo(1);la("disabled",t.previousDisabled()),ai(1),Lo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),ai(1),Vo("ngTemplateOutlet",(null==t.tplFirst?null:t.tplFirst.templateRef)||e)("ngTemplateOutletContext",Tc(6,Vv,t.previousDisabled(),t.page))}}function Hv(t,e){}const zv=function(t){return{disabled:t}};function $v(t,e){if(1&t){const t=Wo();Ho(0,"li",17),Ho(1,"a",23),Zo("click",function(e){Ne(t);const n=Jo();return n.selectPage(n.page-1),e.preventDefault()}),Mo(2,Hv,0,0,"ng-template",8),zo(),zo()}if(2&t){const t=Jo(),e=Uo(3);la("disabled",t.previousDisabled()),ai(1),Lo("tabindex",t.previousDisabled()?"-1":null)("aria-disabled",t.previousDisabled()?"true":null),ai(1),Vo("ngTemplateOutlet",(null==t.tplPrevious?null:t.tplPrevious.templateRef)||e)("ngTemplateOutletContext",Sc(6,zv,t.previousDisabled()))}}function Bv(t,e){}function qv(t,e){}function Wv(t,e){if(1&t){const t=Wo();Ho(0,"li",17),Ho(1,"a",24),Zo("click",function(e){Ne(t);const n=Jo();return n.selectPage(n.page+1),e.preventDefault()}),Mo(2,qv,0,0,"ng-template",8),zo(),zo()}if(2&t){const t=Jo(),e=Uo(5);la("disabled",t.nextDisabled()),ai(1),Lo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),ai(1),Vo("ngTemplateOutlet",(null==t.tplNext?null:t.tplNext.templateRef)||e)("ngTemplateOutletContext",Tc(6,Vv,t.nextDisabled(),t.page))}}function Gv(t,e){}function Qv(t,e){if(1&t){const t=Wo();Ho(0,"li",17),Ho(1,"a",25),Zo("click",function(e){Ne(t);const n=Jo();return n.selectPage(n.pageCount),e.preventDefault()}),Mo(2,Gv,0,0,"ng-template",8),zo(),zo()}if(2&t){const t=Jo(),e=Uo(7);la("disabled",t.nextDisabled()),ai(1),Lo("tabindex",t.nextDisabled()?"-1":null)("aria-disabled",t.nextDisabled()?"true":null),ai(1),Vo("ngTemplateOutlet",(null==t.tplLast?null:t.tplLast.templateRef)||e)("ngTemplateOutletContext",Tc(6,Vv,t.nextDisabled(),t.page))}}const Zv=function(t,e,n){return{$implicit:t,pages:e,disabled:n}};function Kv(t){return!isNaN(function(t){return parseInt(`${t}`,10)}(t))}function Yv(t){return null!=t}function Jv(t){return(t||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const Xv={animation:!0,transitionTimerDelayMs:5};let t_=(()=>{class t{constructor(){this.animation=Xv.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const e_=()=>{},{transitionTimerDelayMs:n_}=Xv,r_=new Map,s_=(t,e,n,r)=>{let s=r.context||{};const i=r_.get(e);if(i)switch(r.runningTransition){case"continue":return Jp;case"stop":t.run(()=>i.transition$.complete()),s=Object.assign(i.context,s),r_.delete(e)}const o=n(e,r.animation,s)||e_;if(!r.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>o()),cd(void 0).pipe(function(t){return e=>new v(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new E,l=new E,c=a.pipe(function(...t){return e=>Yp(e,cd(...t))}(!0));r_.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:s});const u=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=My(e,"transitionend").pipe(Xy(c),hd(({target:t})=>t===e));By(function(t=0,e,n){let r=-1;return zy(e)?r=Number(e)<1?1:Number(e):T(e)&&(n=e),T(n)||(n=Hy),new v(e=>{const s=zy(t)?t:+t-n.now();return n.schedule($y,s,{index:0,period:r,subscriber:e})})}(u+n_).pipe(Xy(c)),n,l).pipe(Xy(c)).subscribe(()=>{r_.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()},i_=(t,e,n)=>{let{direction:r,maxHeight:s}=n;const{classList:i}=t;function o(){i.add("collapse"),"show"===r?i.add("show"):i.remove("show")}if(e)return s||(s=function(t){if("undefined"==typeof navigator)return"0px";const{classList:e}=t,n=e.contains("show");n||e.add("show"),t.style.height="";const r=t.getBoundingClientRect().height+"px";return n||e.remove("show"),r}(t),n.maxHeight=s,t.style.height="show"!==r?s:"0px",i.remove("collapse"),i.remove("collapsing"),i.remove("show"),Jv(t),i.add("collapsing")),t.style.height="show"===r?s:"0px",()=>{o(),i.remove("collapsing"),t.style.height=""};o()};let o_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),a_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),l_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})(),c_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),u_=(()=>{class t{constructor(t){this._ngbConfig=t}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(pr(t_))},t.\u0275prov=dt({factory:function(){return new t(pr(t_))},token:t,providedIn:"root"}),t})(),h_=(()=>{class t{constructor(t,e,n){this._element=t,this._zone=n,this.collapsed=!1,this.ngbCollapseChange=new kc,this.shown=new kc,this.hidden=new kc,this.animation=e.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:t}){t.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(t=this.collapsed){this.collapsed=!t,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(t,e){return s_(this._zone,this._element.nativeElement,i_,{animation:e,runningTransition:"stop",context:{direction:t?"hide":"show"}})}_runTransitionWithEvents(t,e){this._runTransition(t,e).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}}return t.\u0275fac=function(e){return new(e||t)(jo(Sl),jo(u_),jo(yu))},t.\u0275dir=Zt({type:t,selectors:[["","ngbCollapse",""]],inputs:{collapsed:["ngbCollapse","collapsed"],animation:"animation"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[ce]}),t})(),d_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})();var p_=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(p_||(p_={})),p_))();const f_=(t,e)=>!!e&&e.some(e=>e.contains(t)),g_=(t,e)=>!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e),m_="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function y_(t,e,n,r,s,i,o,a){var l;n&&t.runOutsideAngular((l=()=>{const l=My(e,"keydown").pipe(Xy(s),hd(t=>t.which===p_.Escape),Af(t=>t.preventDefault())),c=My(e,"mousedown").pipe(x(t=>{const e=t.target;return 2!==t.button&&!f_(e,o)&&("inside"===n?f_(e,i)&&g_(e,a):"outside"===n?!f_(e,i):g_(e,a)||!f_(e,i))}),Xy(s)),u=My(e,"mouseup").pipe(sv(c),hd(([t,e])=>e),uv(0),Xy(s));By([l.pipe(x(t=>0)),u.pipe(x(t=>1))]).subscribe(e=>t.run(()=>r(e)))},m_?()=>setTimeout(()=>l(),100):l))}const v_=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function __(t){const e=Array.from(t.querySelectorAll(v_)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const b_=/\s+/,w_=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(r=this.offset(e,!1)),r.top+=e.clientTop,r.left+=e.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft;let i={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+s,right:n.right+s};return e&&(i.height=Math.round(i.height),i.width=Math.round(i.width),i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}positionElements(t,e,n,r){const[s="top",i="center"]=n.split("-"),o=r?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(s){case"top":d=o.top-(e.offsetHeight+l+c);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+u+h);break;case"right":p=o.left+o.width}switch(i){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?p=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=e.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=y&&f.bottom<=m}};function C_(t,e,n,r,s){let i=Array.isArray(n)?n:n.split(b_);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,l=t=>{const[e,n]=t.split("-"),r=[];return s&&(r.push(`${s}-${e}`),n&&r.push(`${s}-${e}-${n}`),r.forEach(t=>{a.add(t)})),r};s&&o.forEach(t=>{a.remove(`${s}-${t}`)});let c=i.findIndex(t=>"auto"===t);c>=0&&o.forEach(function(t){null==i.find(e=>-1!==e.search("^"+t))&&i.splice(c++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of i){let n=l(h);if(w_.positionElements(t,e,h,r)){d=!0;break}s&&n.forEach(t=>{a.remove(t)})}return d||(h=i[0],l(h),w_.positionElements(t,e,h,r)),h}new Date(1882,10,12),new Date(2174,10,25);let E_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th,zp]]}),t})(),S_=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),T_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["",8,"navbar"]]}),t})(),x_=(()=>{class t{constructor(t){this.elementRef=t,this._disabled=!1}set disabled(t){this._disabled=""===t||!0===t}get disabled(){return this._disabled}}return t.\u0275fac=function(e){return new(e||t)(jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(t,e){2&t&&la("disabled",e.disabled)},inputs:{disabled:"disabled"}}),t})(),O_=(()=>{class t{constructor(t,e){this.dropdown=t,this.placement="bottom",this.isOpen=!1,this.nativeElement=e.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(jo(st(()=>k_)),jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(t,e,n){if(1&t&&Bc(n,x_,4),2&t){let t;zc(t=qc())&&(e.menuItems=t)}},hostVars:5,hostBindings:function(t,e){1&t&&Zo("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)})("keydown.Enter",function(t){return e.dropdown.onKeyDown(t)})("keydown.Space",function(t){return e.dropdown.onKeyDown(t)})("keydown.Tab",function(t){return e.dropdown.onKeyDown(t)})("keydown.Shift.Tab",function(t){return e.dropdown.onKeyDown(t)}),2&t&&(Lo("x-placement",e.placement),la("dropdown-menu",!0)("show",e.dropdown.isOpen()))}}),t})(),A_=(()=>{class t{constructor(t,e){this.dropdown=t,this.nativeElement=e.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(jo(st(()=>k_)),jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){2&t&&Lo("aria-expanded",e.dropdown.isOpen())}}),t})(),I_=(()=>{class t extends A_{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(jo(st(()=>k_)),jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){1&t&&Zo("click",function(){return e.dropdown.toggle()})("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)})("keydown.Tab",function(t){return e.dropdown.onKeyDown(t)})("keydown.Shift.Tab",function(t){return e.dropdown.onKeyDown(t)}),2&t&&Lo("aria-expanded",e.dropdown.isOpen())},features:[yl([{provide:A_,useExisting:st(()=>t)}]),Co]}),t})(),k_=(()=>{class t{constructor(t,e,n,r,s,i,o){this._changeDetector=t,this._document=n,this._ngZone=r,this._elementRef=s,this._renderer=i,this._closed$=new E,this._bodyContainer=null,this._open=!1,this.openChange=new kc,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this.display=o?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(of(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(t){if(t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses(),t.dropdownClass){const{currentValue:e,previousValue:n}=t.dropdownClass;this._applyCustomDropdownClass(e,n)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){y_(this._ngZone,this._document,this.autoClose,t=>{this.close(),0===t&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(t){const e=t.which,n=this._getMenuElements();let r=-1,s=null;const i=this._isEventFromToggle(t);if(!i&&n.length&&n.forEach((e,n)=>{e.contains(t.target)&&(s=e),e===this._document.activeElement&&(r=n)}),e!==p_.Space&&e!==p_.Enter){if(e!==p_.Tab){if(i||s){if(this.open(),n.length){switch(e){case p_.ArrowDown:r=Math.min(r+1,n.length-1);break;case p_.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case p_.Home:r=0;break;case p_.End:r=n.length-1}n[r].focus()}t.preventDefault()}}else if(t.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===t.target)return void("body"!==this.container||t.shiftKey?t.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const e=this._menu.nativeElement.querySelectorAll(v_);t.shiftKey&&t.target===e[0]?(this._anchor.nativeElement.focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(this._anchor.nativeElement.focus(),this.close())}else My(t.target,"focusout").pipe(of(1)).subscribe(({relatedTarget:t})=>{this._elementRef.nativeElement.contains(t)||this.close()})}}else!s||!0!==this.autoClose&&"inside"!==this.autoClose||My(s,"click").pipe(of(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.nativeElement.contains(t.target)}_getMenuElements(){const t=this._menu;return null==t?[]:t.menuItems.filter(t=>!t.disabled).map(t=>t.elementRef.nativeElement)}_positionMenu(){const t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?C_(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){const t=this._renderer;if(this._menu){const e=this._menu.nativeElement;t.appendChild(this._elementRef.nativeElement,e),t.removeStyle(e,"position"),t.removeStyle(e,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),"body"===t){const t=this._renderer,e=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(e,"position","static"),t.setStyle(n,"z-index","1050"),t.appendChild(n,e),t.appendChild(this._document.body,n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(t,e){const n="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;n&&(e&&this._renderer.removeClass(n,e),t&&this._renderer.addClass(n,t))}_applyPlacementClasses(t){const e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),e.placement="static"===this.display?null:t;const s=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(r,s);const i=this._bodyContainer;i&&(n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),n.addClass(i,s))}}}return t.\u0275fac=function(e){return new(e||t)(jo(Kl),jo(S_),jo(Zu),jo(yu),jo(Sl),jo(Ol),jo(T_,8))},t.\u0275dir=Zt({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(t,e,n){if(1&t&&(Bc(n,O_,5),Bc(n,A_,5)),2&t){let t;zc(t=qc())&&(e._menu=t.first),zc(t=qc())&&(e._anchor=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&la("show",e.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display",dropdownClass:"dropdownClass"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ce]}),t})(),R_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})(),P_=(()=>{class t{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(pr(t_))},t.\u0275prov=dt({factory:function(){return new t(pr(t_))},token:t,providedIn:"root"}),t})();class N_{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class D_{constructor(t,e,n,r,s,i,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._ngZone=s,this._componentFactoryResolver=i,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(t,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.pipe(of(1),V(()=>s_(this._ngZone,r,({classList:t})=>t.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(t=!1){return this._windowRef?s_(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:t,runningTransition:"stop"}).pipe(Af(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):cd(void 0)}_getContentRef(t,e){if(t){if(t instanceof ec){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new N_([n.rootNodes],n)}return new N_([[this._renderer.createText(`${t}`)]])}return new N_([])}}const L_=()=>{};let M_=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):L_}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${r+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(pr(Zu))},t.\u0275prov=dt({factory:function(){return new t(pr(Zu))},token:t,providedIn:"root"}),t})(),U_=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(of(1)).subscribe(()=>{s_(this._zone,this._el.nativeElement,(t,e)=>{e&&Jv(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return s_(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(jo(Sl),jo(yu))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(ca("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),la("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class j_{close(t){}dismiss(t){}}class V_{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new E,this._dismissed=new E,this._hidden=new E,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Xy(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Xy(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():cd(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Gy(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var F_=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(F_||(F_={})),F_))();let H_=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new kc,this.shown=new E,this.hidden=new E}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(of(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=Gy(s_(this._zone,t,()=>t.classList.remove("show"),e),s_(this._zone,this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const t={animation:this.animation,runningTransition:"continue"};Gy(s_(this._zone,this._elRef.nativeElement,(t,e)=>{e&&Jv(t),t.classList.add("show")},t),s_(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{My(t,"keydown").pipe(Xy(this._closed$),hd(t=>t.which===p_.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(F_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;My(this._dialogEl.nativeElement,"mousedown").pipe(Xy(this._closed$),Af(()=>e=!1),ef(()=>My(t,"mouseup").pipe(Xy(this._closed$),of(1))),hd(({target:e})=>t===e)).subscribe(()=>{e=!0}),My(t,"click").pipe(Xy(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(F_.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=__(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&s_(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(jo(Zu),jo(Sl),jo(yu))},t.\u0275cmp=$t({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&$c(yv,7),2&t){let t;zc(t=qc())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(Lo("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),ca("modal d-block"+(e.windowClass?" "+e.windowClass:"")),la("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:mv,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(ta(),Ho(0,"div",0,1),Ho(2,"div",2),ea(3),zo(),zo()),2&t&&ca("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")+(e.modalDialogClass?" "+e.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),z_=(()=>{class t{constructor(t,e,n,r,s,i){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=i,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new kc,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=My(e,"focusin").pipe(Xy(n),x(t=>t.target));My(e,"keydown").pipe(Xy(n),hd(t=>t.which===p_.Tab),sv(t)).subscribe(([t,n])=>{const[r,s]=__(e);n!==r&&n!==e||!t.shiftKey||(s.focus(),t.preventDefault()),n!==s||t.shiftKey||(r.focus(),t.preventDefault())}),r&&My(e,"click").pipe(Xy(n),sv(t),x(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const s=r.container instanceof HTMLElement?r.container:Yv(r.container)?this._document.querySelector(r.container):this._document.body,i=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(i.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new j_,c=this._getContentRef(t,r.injector||e,n,l,r);let u=!1!==r.backdrop?this._attachBackdrop(t,s):void 0,h=this._attachWindowComponent(t,s,c),d=new V_(h,c,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&i.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,r),u.changeDetectorRef.detectChanges()),h.changeDetectorRef.detectChanges(),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(U_).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory(H_).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{Yv(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{Yv(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,r,s){return n?n instanceof ec?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,r,s):new N_([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new N_([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new N_([[e]])}_createFromComponent(t,e,n,r,s){const i=t.resolveComponentFactory(n),o=bo.create({providers:[{provide:j_,useValue:r}],parent:e}),a=i.create(o),l=a.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new N_([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(pr(Uu),pr(bo),pr(Zu),pr(M_),pr(xl),pr(yu))},t.\u0275prov=dt({factory:function(){return new t(pr(Uu),pr(so),pr(Zu),pr(M_),pr(xl),pr(yu))},token:t,providedIn:"root"}),t})(),$_=(()=>{class t{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(pr(bl),pr(bo),pr(z_),pr(P_))},t.\u0275prov=dt({factory:function(){return new t(pr(bl),pr(so),pr(z_),pr(P_))},token:t,providedIn:"root"}),t})(),B_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({providers:[$_]}),t})(),q_=(()=>{class t{constructor(t){this._ngbConfig=t,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(pr(t_))},t.\u0275prov=dt({factory:function(){return new t(pr(t_))},token:t,providedIn:"root"}),t})();const W_=t=>Yv(t)&&""!==t;let G_=0,Q_=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),Z_=(()=>{class t{constructor(t,e){this.elementRef=e,this.disabled=!1,this.shown=new kc,this.hidden=new kc,this._nav=t}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Yv(this.domId)||(this.domId="ngb-nav-"+G_++)}get active(){return this._nav.activeId===this.id}get id(){return W_(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Yv(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(jo(st(()=>K_)),jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(t,e,n){if(1&t&&Bc(n,Q_,4),2&t){let t;zc(t=qc())&&(e.contentTpls=t)}},hostVars:2,hostBindings:function(t,e){2&t&&la("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),K_=(()=>{class t{constructor(t,e,n,r){this.role=t,this._cd=n,this._document=r,this.activeIdChange=new kc,this.shown=new kc,this.hidden=new kc,this.destroy$=new E,this.navItemChange$=new E,this.navChange=new kc,this.animation=e.animation,this.destroyOnHide=e.destroyOnHide,this.orientation=e.orientation,this.roles=e.roles,this.keyboard=e.keyboard}click(t){t.disabled||this._updateActiveId(t.id)}onKeyDown(t){if("tablist"!==this.roles||!this.keyboard)return;const e=t.which,n=this.links.filter(t=>!t.navItem.disabled),{length:r}=n;let s=-1;if(n.forEach((t,e)=>{t.elRef.nativeElement===this._document.activeElement&&(s=e)}),r){switch(e){case p_.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+r)%r;break;case p_.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%r;break;case p_.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%r;break;case p_.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+r)%r;break;case p_.Home:s=0;break;case p_.End:s=r-1}"changeWithArrows"===this.keyboard&&this.select(n[s].navItem.id),n[s].elRef.nativeElement.focus(),t.preventDefault()}}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!Yv(this.activeId)){const t=this.items.first?this.items.first.id:null;W_(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}this.items.changes.pipe(Xy(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:t}){t&&!t.firstChange&&this._notifyItemChanged(t.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(t,e=!0){if(this.activeId!==t){let n=!1;e&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t),this._notifyItemChanged(t))}}_notifyItemChanged(t){this.navItemChange$.next(this._getItemById(t))}_getItemById(t){return this.items&&this.items.find(e=>e.id===t)||null}}return t.\u0275fac=function(e){return new(e||t)(Wn("role"),jo(q_),jo(Kl),jo(Zu))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNav",""]],contentQueries:function(t,e,n){if(1&t&&(Bc(n,Z_,4),Bc(n,Y_,5)),2&t){let t;zc(t=qc())&&(e.items=t),zc(t=qc())&&(e.links=t)}},hostVars:6,hostBindings:function(t,e){1&t&&Zo("keydown.arrowLeft",function(t){return e.onKeyDown(t)})("keydown.arrowRight",function(t){return e.onKeyDown(t)})("keydown.arrowDown",function(t){return e.onKeyDown(t)})("keydown.arrowUp",function(t){return e.onKeyDown(t)})("keydown.Home",function(t){return e.onKeyDown(t)})("keydown.End",function(t){return e.onKeyDown(t)}),2&t&&(Lo("aria-orientation","vertical"===e.orientation&&"tablist"===e.roles?"vertical":void 0)("role",e.role?e.role:e.roles?"tablist":void 0),la("nav",!0)("flex-column","vertical"===e.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[ce]}),t})(),Y_=(()=>{class t{constructor(t,e,n,r){this.role=t,this.navItem=e,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Wn("role"),jo(Z_),jo(K_),jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(t,e){1&t&&Zo("click",function(t){return e.nav.click(e.navItem),t.preventDefault()}),2&t&&(Ea("id",e.navItem.domId),Lo("role",e.role?e.role:e.nav.roles?"tab":void 0)("tabindex",e.navItem.disabled?-1:void 0)("aria-controls",e.navItem.isPanelInDom()?e.navItem.panelDomId:null)("aria-selected",e.navItem.active)("aria-disabled",e.navItem.disabled),la("nav-link",!0)("nav-item",e.hasNavItemClass())("active",e.navItem.active)("disabled",e.navItem.disabled))}}),t})();const J_=({classList:t})=>(t.remove("show"),()=>t.remove("active")),X_=(t,e)=>{e&&Jv(t),t.classList.add("show")};let tb=(()=>{class t{constructor(t){this.elRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(Sl))},t.\u0275dir=Zt({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(t,e){2&t&&(Ea("id",e.item.panelDomId),Lo("role",e.role?e.role:e.nav.roles?"tabpanel":void 0)("aria-labelledby",e.item.domId),la("fade",e.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),eb=(()=>{class t{constructor(t,e){this._cd=t,this._ngZone=e,this._activePane=null}isPanelTransitioning(t){var e;return(null===(e=this._activePane)||void 0===e?void 0:e.item)===t}ngAfterViewInit(){var t;this._updateActivePane(),this.nav.navItemChange$.pipe(Xy(this.nav.destroy$),cf((null===(t=this._activePane)||void 0===t?void 0:t.item)||null),t=>t.lift(new nv(void 0,void 0)),t=>t.lift(new fv(1))).subscribe(t=>{const e={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?s_(this._ngZone,this._activePane.elRef.nativeElement,J_,e).subscribe(()=>{var n;const r=null===(n=this._activePane)||void 0===n?void 0:n.item;this._activePane=this._getPaneForItem(t),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),s_(this._ngZone,this._activePane.elRef.nativeElement,X_,e).subscribe(()=>{t&&(t.shown.emit(),this.nav.shown.emit(t.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){var t,e;this._activePane=this._getActivePane(),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("show"),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("active")}_getPaneForItem(t){return this._panes&&this._panes.find(e=>e.item===t)||null}_getActivePane(){return this._panes&&this._panes.find(t=>t.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(jo(Kl),jo(yu))},t.\u0275cmp=$t({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(t,e){if(1&t&&$c(tb,5),2&t){let t;zc(t=qc())&&(e._panes=t)}},hostVars:2,hostBindings:function(t,e){2&t&&la("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:vv,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&Mo(0,Cv,1,1,"ng-template",0),2&t&&Vo("ngForOf",e.nav.items)},directives:[vh,bh,tb,Eh],encapsulation:2,changeDetection:0}),t})(),nb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),rb=(()=>{class t{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),sb=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),t})(),ib=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationFirst",""]]}),t})(),ob=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationLast",""]]}),t})(),ab=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationNext",""]]}),t})(),lb=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationNumber",""]]}),t})(),cb=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationPrevious",""]]}),t})(),ub=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(jo(ec))},t.\u0275dir=Zt({type:t,selectors:[["ng-template","ngbPaginationPages",""]]}),t})(),hb=(()=>{class t{constructor(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new kc(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(t>2?this.pages.unshift(-1):2===t&&this.pages.unshift(2),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){let t=0,e=this.pageCount;[t,e]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(t,e),this._applyEllipses(t,e)}}}return t.\u0275fac=function(e){return new(e||t)(jo(rb))},t.\u0275cmp=$t({type:t,selectors:[["ngb-pagination"]],contentQueries:function(t,e,n){if(1&t&&(Bc(n,sb,5),Bc(n,ib,5),Bc(n,ob,5),Bc(n,ab,5),Bc(n,lb,5),Bc(n,cb,5),Bc(n,ub,5)),2&t){let t;zc(t=qc())&&(e.tplEllipsis=t.first),zc(t=qc())&&(e.tplFirst=t.first),zc(t=qc())&&(e.tplLast=t.first),zc(t=qc())&&(e.tplNext=t.first),zc(t=qc())&&(e.tplNumber=t.first),zc(t=qc())&&(e.tplPrevious=t.first),zc(t=qc())&&(e.tplPages=t.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[ce],decls:20,vars:12,consts:function(){let t,e,n,r,s,i,o,a;return t=$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,e=$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,n=$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,r=$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,s=$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,i=$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,o=$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,a=$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],t,e,n,r,["class","sr-only",4,"ngIf"],[1,"sr-only"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",s,"href","",1,"page-link",3,"click"],["aria-label",i,"href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(t,e){if(1&t&&(Mo(0,Ev,2,0,"ng-template",null,0,Zc),Mo(2,Sv,2,0,"ng-template",null,1,Zc),Mo(4,Tv,2,0,"ng-template",null,2,Zc),Mo(6,xv,2,0,"ng-template",null,3,Zc),Mo(8,Ov,1,0,"ng-template",null,4,Zc),Mo(10,Iv,2,2,"ng-template",null,5,Zc),Mo(12,Uv,1,1,"ng-template",null,6,Zc),Ho(14,"ul"),Mo(15,Fv,3,9,"li",7),Mo(16,$v,3,8,"li",7),Mo(17,Bv,0,0,"ng-template",8),Mo(18,Wv,3,9,"li",7),Mo(19,Qv,3,9,"li",7),zo()),2&t){const t=Uo(13);ai(14),ca("pagination"+(e.size?" pagination-"+e.size:"")),ai(1),Vo("ngIf",e.boundaryLinks),ai(1),Vo("ngIf",e.directionLinks),ai(1),Vo("ngTemplateOutlet",(null==e.tplPages?null:e.tplPages.templateRef)||t)("ngTemplateOutletContext",xc(8,Zv,e.page,e.pages,e.disabled)),ai(1),Vo("ngIf",e.directionLinks),ai(1),Vo("ngIf",e.boundaryLinks)}},directives:[bh,Eh,vh],encapsulation:2,changeDetection:0}),t})(),db=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})();class pb{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const fb={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},gb=t=>t>0?uv(t):t=>t;let mb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),yb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),vb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),_b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),bb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})(),wb=(()=>{class t{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(pr(t_))},t.\u0275prov=dt({factory:function(){return new t(pr(t_))},token:t,providedIn:"root"}),t})(),Cb=0,Eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,e){2&t&&(Ea("id",e.id),ca("tooltip"+(e.tooltipClass?" "+e.tooltipClass:"")),la("fade",e.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:mv,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(t,e){1&t&&(ta(),$o(0,"div",0),Ho(1,"div",1),ea(2),zo())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],encapsulation:2,changeDetection:0}),t})(),Sb=(()=>{class t{constructor(t,e,n,r,s,i,o,a,l,c){this._elementRef=t,this._renderer=e,this._ngZone=o,this._document=a,this._changeDetector=l,this.shown=new kc,this.hidden=new kc,this._ngbTooltipWindowId="ngb-tooltip-"+Cb++,this._windowRef=null,this.animation=i.animation,this.autoClose=i.autoClose,this.placement=i.placement,this.triggers=i.triggers,this.container=i.container,this.disableTooltip=i.disableTooltip,this.tooltipClass=i.tooltipClass,this.openDelay=i.openDelay,this.closeDelay=i.closeDelay,this._popupService=new D_(Eb,n,s,e,this._ngZone,r,c),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&C_(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:e,transition$:n}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=e,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),y_(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,r,s,i,o=0,a=0){const l=function(t,e=fb){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new pb(n[0],n[1])}),s=r.filter(t=>t.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,e,n,r){return new v(s=>{const i=[],o=()=>s.next(!0),a=()=>s.next(!1),l=()=>s.next(!r());return n.forEach(n=>{n.open===n.close?i.push(t.listen(e,n.open,l)):i.push(t.listen(e,n.open,o),t.listen(e,n.close,a))}),()=>{i.forEach(t=>t())}})}(t,e,l,r).pipe(function(t,e,n){return r=>{let s=null;const i=r.pipe(x(t=>({open:t})),hd(t=>{const e=n();return e===t.open||s&&s.open!==e?(s&&s.open!==t.open&&(s=null),!1):(s=t,!0)}),J());return B(i.pipe(hd(t=>t.open),gb(t)),i.pipe(hd(t=>!t.open),gb(e))).pipe(hd(t=>t===s&&(s=null,t.open!==n())),x(t=>t.open))}}(o,a,r)).subscribe(t=>t?s():i());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(jo(Sl),jo(Ol),jo(bo),jo(bl),jo(lc),jo(wb),jo(yu),jo(Zu),jo(Kl),jo(Uu))},t.\u0275dir=Zt({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[ce]}),t})(),Tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})();new Zn("live announcer delay",{providedIn:"root",factory:function(){return 100}});let xb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[Th]]}),t})();const Ob=[o_,a_,l_,c_,d_,E_,R_,B_,nb,db,mb,yb,vb,_b,bb,Tb,xb];let Ab=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[Ob,o_,a_,l_,c_,d_,E_,R_,B_,nb,db,mb,yb,vb,_b,bb,Tb,xb]}),t})(),Ib=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-loading-spinner"]],decls:4,vars:0,consts:[[1,"d-flex","justify-content-center"],["role","status",1,"spinner-border"],[1,"sr-only"]],template:function(t,e){1&t&&(Ho(0,"div",0),Ho(1,"div",1),Ho(2,"span",2),_a(3,"Loading..."),zo(),zo(),zo())},styles:[""]}),t})();function kb(t,e){1&t&&(Bo(0),_a(1,", "),qo())}function Rb(t,e){if(1&t){const t=Wo();Bo(0),Ho(1,"span",3),Zo("click",function(){const e=Ne(t).$implicit;return Jo().changeSelectedHttpStatusCode(e)}),_a(2),zo(),Mo(3,kb,2,0,"ng-container",16),qo()}if(2&t){const t=e.$implicit,n=e.index;ai(2),ba(t),ai(1),Vo("ngIf",n<1)}}function Pb(t,e){1&t&&(Bo(0),_a(1,", "),qo())}function Nb(t,e){if(1&t){const t=Wo();Bo(0),Ho(1,"span",3),Zo("click",function(){const e=Ne(t).$implicit;return Jo().changeSelectedHttpStatusCode(e)}),_a(2),zo(),Mo(3,Pb,2,0,"ng-container",16),qo()}if(2&t){const t=e.$implicit,n=e.index;ai(2),ba(t),ai(1),Vo("ngIf",n<1)}}function Db(t,e){if(1&t){const t=Wo();Ho(0,"button",17),Zo("click",function(){const e=Ne(t).$implicit;return Jo().changeSelectedHttpStatusCode(e)}),_a(1),zo()}if(2&t){const t=e.$implicit,n=Jo();ai(1),ba(n.getStatusCodeDescription(t))}}function Lb(t,e){1&t&&(Ho(0,"p"),_a(1,"Perform a request to see the log"),zo())}function Mb(t,e){if(1&t&&(Ho(0,"p"),_a(1),zo()),2&t){const t=e.$implicit;ai(1),ba(t)}}function Ub(t,e){if(1&t&&(Ho(0,"ul"),Ho(1,"li"),Mo(2,Mb,2,1,"p",2),zo(),zo()),2&t){const t=e.$implicit;ai(2),Vo("ngForOf",t)}}function jb(t,e){1&t&&Mo(0,Ub,3,1,"ul",2),2&t&&Vo("ngForOf",Jo().requestLog)}function Vb(t,e){1&t&&(Ho(0,"div"),$o(1,"app-loading-spinner"),zo())}const Fb=function(){return[401,403]},Hb=function(){return[408,503]};let zb=(()=>{class t{constructor(t){this.apiService=t,this.httpStatusCodes=Object.values(Ry).filter(t=>"number"==typeof t).map(t=>t).sort((t,e)=>t-e),this.selectedHttpStatusCode=this.httpStatusCodes[0],this.requestLog=[],this.delayMilliseconds=500,this.isPerformingRequest=!1}performRequest(t){this.requestLog=[],this.isPerformingRequest=!0;let e=this.getUrl(t);this.addRequestLog(["Performing request.",e]),this.apiService.getOne(e).subscribe(t=>{this.addRequestLog(["Received data."])},t=>{this.addRequestLog(["An error was thrown.",t])}).add(()=>{this.addRequestLog(["Request finished."]),this.isPerformingRequest=!1})}getStatusCodeDescription(t){return t+": "+function(t){var e=Py[t.toString()];if(!e)throw new Error("Status code does not exist: "+t);return e}(t)}changeSelectedHttpStatusCode(t){this.selectedHttpStatusCode=t}getUrl(t){let e=`https://httpstat.us/${t}/cors`;return this.delayMilliseconds&&(e+=`?sleep=${this.delayMilliseconds}`),e}addRequestLog(t){this.requestLog.push([this.getCurrentDateTime(),...t])}getCurrentDateTime(){return(new Date).toLocaleString()}}return t.\u0275fac=function(e){return new(e||t)(jo(Ly))},t.\u0275cmp=$t({type:t,selectors:[["app-http-status-codes"]],decls:41,vars:10,consts:[["href","https://httpstat.us/"],["href","https://github.com/peterrhodesdev/angular-generic-api-service/blob/main/src/app/interceptors/http-error.interceptor.ts"],[4,"ngFor","ngForOf"],[3,"click"],[1,"container"],[1,"row"],[1,"col-4"],["ngbDropdown","",1,"d-inline-block"],["id","selectStatus","ngbDropdownToggle","",1,"btn","btn-outline-primary"],["ngbDropdownMenu","","aria-labelledby","selectStatus",2,"max-height","50vh","overflow-y","auto"],["ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],[1,"btn","btn-primary",3,"disabled","click"],[1,"row","mt-3"],[1,"col"],[4,"ngIf","ngIfElse"],["showrequestlog",""],[4,"ngIf"],["ngbDropdownItem","",3,"click"]],template:function(t,e){if(1&t&&(Ho(0,"h1"),_a(1,"HTTP status codes"),zo(),Ho(2,"p"),_a(3,"Select a HTTP status code from the dropdown below. Then click the 'Request' button to perform a request and receive a response from "),Ho(4,"a",0),_a(5,"httpstat.us"),zo(),_a(6," with the selected code. Custom logic based on the response code is performed by "),Ho(7,"a",1),_a(8,"HttpErrorInterceptor"),zo(),_a(9,", e.g."),zo(),Ho(10,"ul"),Ho(11,"li"),Mo(12,Rb,4,2,"ng-container",2),_a(13,": redirect to login page "),zo(),Ho(14,"li"),Ho(15,"span",3),Zo("click",function(){return e.changeSelectedHttpStatusCode(404)}),_a(16,"404"),zo(),_a(17,": custom error message"),zo(),Ho(18,"li"),Mo(19,Nb,4,2,"ng-container",2),_a(20,": retry request (see the failed requests in the console: CTRL + SHIFT + J) "),zo(),zo(),Ho(21,"div",4),Ho(22,"div",5),Ho(23,"div",6),Ho(24,"div",7),Ho(25,"button",8),_a(26),zo(),Ho(27,"div",9),Mo(28,Db,2,1,"button",10),zo(),zo(),zo(),Ho(29,"div",6),Ho(30,"button",11),Zo("click",function(){return e.performRequest(e.selectedHttpStatusCode)}),_a(31,"Request"),zo(),zo(),zo(),Ho(32,"div",12),Ho(33,"div",13),Ho(34,"p"),Ho(35,"b"),_a(36,"Request log"),zo(),zo(),Mo(37,Lb,2,0,"p",14),Mo(38,jb,1,1,"ng-template",null,15,Zc),Mo(40,Vb,2,0,"div",16),zo(),zo(),zo()),2&t){const t=Uo(39);ai(12),Vo("ngForOf",Ec(8,Fb)),ai(7),Vo("ngForOf",Ec(9,Hb)),ai(7),wa(" ",e.getStatusCodeDescription(e.selectedHttpStatusCode),""),ai(2),Vo("ngForOf",e.httpStatusCodes),ai(2),Vo("disabled",e.isPerformingRequest),ai(7),Vo("ngIf",0===e.requestLog.length)("ngIfElse",t),ai(3),Vo("ngIf",e.isPerformingRequest)}},directives:[vh,k_,I_,O_,bh,x_,Ib],styles:["span[_ngcontent-%COMP%]{cursor:pointer;color:blue;text-decoration:underline}"]}),t})(),$b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-login"]],decls:4,vars:0,template:function(t,e){1&t&&(Ho(0,"h1"),_a(1,"Login"),zo(),Ho(2,"p"),_a(3,"Dummy login page."),zo())},encapsulation:2}),t})(),Bb=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-not-found"]],decls:2,vars:0,template:function(t,e){1&t&&(Ho(0,"h2"),_a(1,"Not found"),zo())},styles:[""]}),t})();function qb(t,e){if(1&t&&(Ho(0,"div",7),Ho(1,"p"),_a(2),zo(),zo()),2&t){const t=e.$implicit;ai(2),ba(t)}}let Wb=(()=>{class t{constructor(t){this.activeModal=t,this.title="",this.bodyLines=[]}static open(e,n,r){const s=e.open(t);s.componentInstance.title=n,s.componentInstance.bodyLines=r}}return t.\u0275fac=function(e){return new(e||t)(jo(j_))},t.\u0275cmp=$t({type:t,selectors:[["app-modal"]],inputs:{title:"title",bodyLines:"bodyLines"},decls:10,vars:2,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["class","modal-body",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],[1,"modal-body"]],template:function(t,e){1&t&&(Ho(0,"div",0),Ho(1,"h4",1),_a(2),zo(),Ho(3,"button",2),Zo("click",function(){return e.activeModal.dismiss("Cross click")}),Ho(4,"span",3),_a(5,"\xd7"),zo(),zo(),zo(),Mo(6,qb,3,1,"div",4),Ho(7,"div",5),Ho(8,"button",6),Zo("click",function(){return e.activeModal.close("Close click")}),_a(9,"Close"),zo(),zo()),2&t&&(ai(2),ba(e.title),ai(4),Vo("ngForOf",e.bodyLines))},directives:[vh],styles:[""]}),t})();var Gb=(()=>(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"}(Gb||(Gb={})),Gb))();const Qb=new class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,e,n){return this.findMetadatas(this._transformMetadatas,t,e).filter(t=>!t.options||!0===t.options.toClassOnly&&!0===t.options.toPlainOnly||(!0===t.options.toClassOnly?n===Gb.CLASS_TO_CLASS||n===Gb.PLAIN_TO_CLASS:!0!==t.options.toPlainOnly||n===Gb.CLASS_TO_PLAIN))}findExcludeMetadata(t,e){return this.findMetadata(this._excludeMetadatas,t,e)}findExposeMetadata(t,e){return this.findMetadata(this._exposeMetadatas,t,e)}findExposeMetadataByCustomName(t,e){return this.getExposedMetadatas(t).find(t=>t.options&&t.options.name===e)}findTypeMetadata(t,e){return this.findMetadata(this._typeMetadatas,t,e)}getStrategy(t){const e=this._excludeMetadatas.get(t),n=e&&e.get(void 0),r=this._exposeMetadatas.get(t),s=r&&r.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,e){return this.getExposedMetadatas(t).filter(t=>!t.options||!0===t.options.toClassOnly&&!0===t.options.toPlainOnly||(!0===t.options.toClassOnly?e===Gb.CLASS_TO_CLASS||e===Gb.PLAIN_TO_CLASS:!0!==t.options.toPlainOnly||e===Gb.CLASS_TO_PLAIN)).map(t=>t.propertyName)}getExcludedProperties(t,e){return this.getExcludedMetadatas(t).filter(t=>!t.options||!0===t.options.toClassOnly&&!0===t.options.toPlainOnly||(!0===t.options.toClassOnly?e===Gb.CLASS_TO_CLASS||e===Gb.PLAIN_TO_CLASS:!0!==t.options.toPlainOnly||e===Gb.CLASS_TO_PLAIN)).map(t=>t.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,e){const n=t.get(e);let r;n&&(r=Array.from(n.values()).filter(t=>void 0!==t.propertyName));const s=[];for(const i of this.getAncestors(e)){const e=t.get(i);if(e){const t=Array.from(e.values()).filter(t=>void 0!==t.propertyName);s.push(...t)}}return s.concat(r||[])}findMetadata(t,e,n){const r=t.get(e);if(r){const t=r.get(n);if(t)return t}for(const s of this.getAncestors(e)){const e=t.get(s);if(e){const t=e.get(n);if(t)return t}}}findMetadatas(t,e,n){const r=t.get(e);let s;r&&(s=r.get(n));const i=[];for(const o of this.getAncestors(e)){const e=t.get(o);e&&e.has(n)&&i.push(...e.get(n))}return i.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){const e=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);void 0!==n.prototype;n=Object.getPrototypeOf(n.prototype.constructor))e.push(n);this._ancestorsMap.set(t,e)}return this._ancestorsMap.get(t)}};class Zb{constructor(t,e){this.transformationType=t,this.options=e,this.recursionStack=new Set}transform(t,e,n,r,s,i=0){if(Array.isArray(e)||e instanceof Set){const s=r&&this.transformationType===Gb.PLAIN_TO_CLASS?function(t){const e=new t;return e instanceof Set||"push"in e?e:[]}(r):[];return e.forEach((e,r)=>{const o=t?t[r]:void 0;if(this.options.enableCircularCheck&&this.isCircular(e))this.transformationType===Gb.CLASS_TO_CLASS&&(s instanceof Set?s.add(e):s.push(e));else{let t;if("function"!=typeof n&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===Gb.PLAIN_TO_CLASS){t=n.options.discriminator.subTypes.find(t=>t.name===e[n.options.discriminator.property]);const r=n.typeFunction({newObject:s,object:e,property:void 0});t=void 0===t?r:t.value,n.options.keepDiscriminatorProperty||delete e[n.options.discriminator.property]}this.transformationType===Gb.CLASS_TO_CLASS&&(t=e.constructor),this.transformationType===Gb.CLASS_TO_PLAIN&&(e[n.options.discriminator.property]=n.options.discriminator.subTypes.find(t=>t.value===e.constructor).name)}else t=n;const r=this.transform(o,e,t,void 0,e instanceof Map,i+1);s instanceof Set?s.add(r):s.push(r)}}),s}if(n!==String||s){if(n!==Number||s){if(n!==Boolean||s){if((n===Date||e instanceof Date)&&!s)return e instanceof Date?new Date(e.valueOf()):null==e?e:new Date(e);if(("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0).Buffer&&(n===Buffer||e instanceof Buffer)&&!s)return null==e?e:Buffer.from(e);if(null!==(o=e)&&"object"==typeof o&&"function"==typeof o.then&&!s)return new Promise((t,r)=>{e.then(e=>t(this.transform(void 0,e,n,void 0,void 0,i+1)),r)});if(s||null===e||"object"!=typeof e||"function"!=typeof e.then){if("object"==typeof e&&null!==e){n||e.constructor===Object||(n=e.constructor),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(e);const r=this.getKeys(n,e,s);let o=t||{};t||this.transformationType!==Gb.PLAIN_TO_CLASS&&this.transformationType!==Gb.CLASS_TO_CLASS||(o=s?new Map:n?new n:{});for(const a of r){if("__proto__"===a||"constructor"===a)continue;const r=a;let l,c=a,u=a;if(!this.options.ignoreDecorators&&n)if(this.transformationType===Gb.PLAIN_TO_CLASS){const t=Qb.findExposeMetadataByCustomName(n,a);t&&(u=t.propertyName,c=t.propertyName)}else if(this.transformationType===Gb.CLASS_TO_PLAIN||this.transformationType===Gb.CLASS_TO_CLASS){const t=Qb.findExposeMetadata(n,a);t&&t.options&&t.options.name&&(c=t.options.name)}l=e instanceof Map?e.get(r):e[r]instanceof Function?e[r]():e[r];let h,d=l instanceof Map;if(n&&s)h=n;else if(n){const t=Qb.findTypeMetadata(n,u);if(t){const n={newObject:o,object:e,property:u},s=t.typeFunction?t.typeFunction(n):t.reflectedType;t.options&&t.options.discriminator&&t.options.discriminator.property&&t.options.discriminator.subTypes?e[r]instanceof Array?h=t:(this.transformationType===Gb.PLAIN_TO_CLASS&&(h=t.options.discriminator.subTypes.find(e=>{if(l&&l instanceof Object&&t.options.discriminator.property in l)return e.name===l[t.options.discriminator.property]}),h=void 0===h?s:h.value,t.options.keepDiscriminatorProperty||l&&l instanceof Object&&t.options.discriminator.property in l&&delete l[t.options.discriminator.property]),this.transformationType===Gb.CLASS_TO_CLASS&&(h=l.constructor),this.transformationType===Gb.CLASS_TO_PLAIN&&(l[t.options.discriminator.property]=t.options.discriminator.subTypes.find(t=>t.value===l.constructor).name)):h=s,d=d||t.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(t=>t.target===n&&!!t.properties[u]).forEach(t=>h=t.properties[u]);else if(this.options.enableImplicitConversion&&this.transformationType===Gb.PLAIN_TO_CLASS){const t=Reflect.getMetadata("design:type",n.prototype,u);t&&(h=t)}}const p=Array.isArray(e[r])?this.getReflectedType(n,u):void 0,f=t?t[r]:void 0;if(o.constructor.prototype){const t=Object.getOwnPropertyDescriptor(o.constructor.prototype,c);if((this.transformationType===Gb.PLAIN_TO_CLASS||this.transformationType===Gb.CLASS_TO_CLASS)&&(t&&!t.set||o[c]instanceof Function))continue}if(this.options.enableCircularCheck&&this.isCircular(l)){if(this.transformationType===Gb.CLASS_TO_CLASS){let t=l;t=this.applyCustomTransformations(t,n,a,e,this.transformationType),(void 0!==t||this.options.exposeUnsetFields)&&(o instanceof Map?o.set(c,t):o[c]=t)}}else{const t=this.transformationType===Gb.PLAIN_TO_CLASS?c:a;let r;this.transformationType===Gb.CLASS_TO_PLAIN?(r=e[t],r=this.applyCustomTransformations(r,n,t,e,this.transformationType),r=e[t]===r?l:r,r=this.transform(f,r,h,p,d,i+1)):void 0===l&&this.options.exposeDefaultValues?r=o[c]:(r=this.transform(f,l,h,p,d,i+1),r=this.applyCustomTransformations(r,n,t,e,this.transformationType)),(void 0!==r||this.options.exposeUnsetFields)&&(o instanceof Map?o.set(c,r):o[c]=r)}}return this.options.enableCircularCheck&&this.recursionStack.delete(e),o}return e}return e}return null==e?e:Boolean(e)}return null==e?e:Number(e)}var o;return null==e?e:String(e)}applyCustomTransformations(t,e,n,r,s){let i=Qb.findTransformMetadatas(e,n,this.transformationType);return void 0!==this.options.version&&(i=i.filter(t=>!t.options||this.checkVersion(t.options.since,t.options.until))),i=i.filter(this.options.groups&&this.options.groups.length?t=>!t.options||this.checkGroups(t.options.groups):t=>!t.options||!t.options.groups||!t.options.groups.length),i.forEach(e=>{t=e.transformFn({value:t,key:n,obj:r,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,e){if(!t)return;const n=Qb.findTypeMetadata(t,e);return n?n.reflectedType:void 0}getKeys(t,e,n){let r=Qb.getStrategy(t);"none"===r&&(r=this.options.strategy||"exposeAll");let s=[];if(("exposeAll"===r||n)&&(s=e instanceof Map?Array.from(e.keys()):Object.keys(e)),n)return s;if(!this.options.ignoreDecorators&&t){let e=Qb.getExposedProperties(t,this.transformationType);this.transformationType===Gb.PLAIN_TO_CLASS&&(e=e.map(e=>{const n=Qb.findExposeMetadata(t,e);return n&&n.options&&n.options.name?n.options.name:e})),s=this.options.excludeExtraneousValues?e:s.concat(e);const n=Qb.getExcludedProperties(t,this.transformationType);n.length>0&&(s=s.filter(t=>!n.includes(t))),void 0!==this.options.version&&(s=s.filter(e=>{const n=Qb.findExposeMetadata(t,e);return!n||!n.options||this.checkVersion(n.options.since,n.options.until)})),s=s.filter(this.options.groups&&this.options.groups.length?e=>{const n=Qb.findExposeMetadata(t,e);return!n||!n.options||this.checkGroups(n.options.groups)}:e=>{const n=Qb.findExposeMetadata(t,e);return!(n&&n.options&&n.options.groups&&n.options.groups.length)})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(t=>this.options.excludePrefixes.every(e=>t.substr(0,e.length)!==e))),s=s.filter((t,e,n)=>n.indexOf(t)===e),s}checkVersion(t,e){let n=!0;return n&&t&&(n=this.options.version>=t),n&&e&&(n=this.options.versiont.includes(e))}}const Kb={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0},Yb=new class{classToPlain(t,e){return new Zb(Gb.CLASS_TO_PLAIN,{...Kb,...e}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,e,n){return new Zb(Gb.CLASS_TO_PLAIN,{...Kb,...n}).transform(e,t,void 0,void 0,void 0,void 0)}plainToClass(t,e,n){return new Zb(Gb.PLAIN_TO_CLASS,{...Kb,...n}).transform(void 0,e,t,void 0,void 0,void 0)}plainToClassFromExist(t,e,n){return new Zb(Gb.PLAIN_TO_CLASS,{...Kb,...n}).transform(t,e,void 0,void 0,void 0,void 0)}classToClass(t,e){return new Zb(Gb.CLASS_TO_CLASS,{...Kb,...e}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,e,n){return new Zb(Gb.CLASS_TO_CLASS,{...Kb,...n}).transform(e,t,void 0,void 0,void 0,void 0)}serialize(t,e){return JSON.stringify(this.classToPlain(t,e))}deserialize(t,e,n){const r=JSON.parse(e);return this.plainToClass(t,r,n)}deserializeArray(t,e,n){const r=JSON.parse(e);return this.plainToClass(t,r,n)}};function Jb(t,e,n){return Yb.plainToClassFromExist(t,e,n)}class Xb{static isQueryStringValid(t){let e="([\\w-]|%[0-9A-Fa-f]{2})";return new RegExp(`^\\?(${e}+(=${e}*)?(&${e}+(=${e}*)?)*)?$`).test(t)}static getValidQueryString(t){let e=t.filter(t=>!Dy.isEmpty(t.name));if(!Dy.hasElements(e))return"";let n=[];for(let s of e){let t=encodeURIComponent(s.name);Dy.hasNonEmptyValue(s.value)&&(t+="="+encodeURIComponent(s.value)),n.push(t)}let r="?"+n.join("&");return Xb.isQueryStringValid(r)?r:""}}let tw=(()=>{class t{constructor(t){this.apiService=t,this.mapResponseToT=x(t=>Jb(this.getInstance(),t))}create(t){return this.apiService.post(this.endpointUrl(),t).pipe(this.mapResponseToT)}delete(t){return this.apiService.delete(this.endpointUrlWithId(t))}getMany(t=[]){let e=Xb.getValidQueryString(t),n=this.endpointUrl()+e;return this.apiService.getMany(n).pipe(x(t=>t.map(t=>Jb(this.getInstance(),t))))}getOne(t){return this.apiService.getOne(this.endpointUrlWithId(t)).pipe(this.mapResponseToT)}updateFull(t){let e=this.getModelId(t);return this.apiService.put(this.endpointUrlWithId(e),t).pipe(this.mapResponseToT)}updatePartial(t){let e=this.getModelId(t);return this.apiService.patch(this.endpointUrlWithId(e),t).pipe(this.mapResponseToT)}endpointUrl(){return`${this.getBaseUrl()}${this.getEndpoint()}`}endpointUrlWithId(t){return`${this.endpointUrl()}${t}`}getModelId(t){if(Dy.isNullOrUndefined(t.id))throw Error("Illegal Argument Error: model id must be defined");return t.id}}return t.\u0275fac=function(e){return new(e||t)(pr(Ly))},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class ew{}class nw extends ew{constructor(){super(...arguments),this.userId=0,this.title="",this.completed=!1}}class rw{constructor(t,e){this.name=t,this.value=e}}let sw=(()=>{class t extends tw{getBaseUrl(){return Ny.API_BASE_URL_JSON_PLACEHOLDER}getEndpoint(){return Ny.API_ENDPOINT_JSON_PLACEHOLDER_TODOS}getInstance(){return new nw}getManyFilterByUserId(t){let e=new rw("userId",t.toString());return this.getMany([e])}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iw(t,e){1&t&&(Ho(0,"tr"),Ho(1,"td",13),$o(2,"app-loading-spinner"),zo(),zo())}function ow(t,e){if(1&t){const t=Wo();Ho(0,"tr"),Ho(1,"th",15),_a(2),zo(),Ho(3,"td"),_a(4),zo(),Ho(5,"td"),_a(6),zo(),Ho(7,"td"),_a(8),zo(),Ho(9,"td"),Ho(10,"button",16),Zo("click",function(){const e=Ne(t).$implicit;return Jo(2).onDeleteTodoClick(e.id)}),_a(11,"Delete"),zo(),zo(),Ho(12,"td"),Ho(13,"button",17),Zo("click",function(){const e=Ne(t).$implicit;return Jo(2).onUpdateTodoClick(e.id)}),_a(14,"Update"),zo(),zo(),Ho(15,"td"),Ho(16,"button",18),Zo("click",function(){const e=Ne(t).$implicit;return Jo(2).onViewTodoClick(e.id)}),_a(17,"View"),zo(),zo(),zo()}if(2&t){const t=e.$implicit;ai(2),ba(t.id),ai(2),ba(t.userId),ai(2),ba(t.title),ai(2),ba(t.completed)}}function aw(t,e){1&t&&Mo(0,ow,18,4,"tr",14),2&t&&Vo("ngForOf",Jo().todosPage)}let lw=(()=>{class t{constructor(){this._todos=[],this.deletedTodoWithId=new kc,this.updateSelectedTodoWithId=new kc,this.getAll=new kc,this.getFilteredWithUserId=new kc,this.viewSelectedTodoWithId=new kc,this.isLoading=!1,this.userIdFilter=1,this.paginationPage=1,this.paginationPageSize=10,this.todosPage=[]}get todos(){return this._todos}set todos(t){this._todos=t,this.paginationPage=1,this.onPageChange()}onDeleteTodoClick(t){this.deletedTodoWithId.emit(t)}onUpdateTodoClick(t){this.updateSelectedTodoWithId.emit(t)}onGetAllClick(){this.getAll.emit()}onGetFilteredClick(){this.getFilteredWithUserId.emit(this.userIdFilter)}onViewTodoClick(t){this.viewSelectedTodoWithId.emit(t)}onPageChange(){let t=(this.paginationPage-1)*this.paginationPageSize;this.todosPage=this.todos.slice(t,t+this.paginationPageSize)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-list-todos"]],inputs:{isLoading:"isLoading",todos:"todos"},outputs:{deletedTodoWithId:"deletedTodoWithId",updateSelectedTodoWithId:"updateSelectedTodoWithId",getAll:"getAll",getFilteredWithUserId:"getFilteredWithUserId",viewSelectedTodoWithId:"viewSelectedTodoWithId"},decls:30,vars:10,consts:[[1,"container"],[1,"row","align-items-end"],[1,"col-4"],["id","getAllButton",1,"btn","btn-primary",3,"click"],["for","userid"],["type","number","id","userid",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-secondary",3,"click"],[3,"page","pageSize","maxSize","collectionSize","rotate","ellipses","boundaryLinks","pageChange"],[1,"table","table-hover"],["scope","col"],["scope","col","colspan","3"],[4,"ngIf","ngIfElse"],["showtodos",""],["colspan","7"],[4,"ngFor","ngForOf"],["scope","row"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-warning",3,"click"],[1,"btn","btn-info",3,"click"]],template:function(t,e){if(1&t&&(Ho(0,"div",0),Ho(1,"div",1),Ho(2,"div",2),Ho(3,"button",3),Zo("click",function(){return e.onGetAllClick()}),_a(4,"Get all"),zo(),zo(),Ho(5,"div",2),Ho(6,"label",4),_a(7,"Get todos filtered by user ID:"),zo(),Ho(8,"input",5),Zo("ngModelChange",function(t){return e.userIdFilter=t}),zo(),Ho(9,"button",6),Zo("click",function(){return e.onGetFilteredClick()}),_a(10,"Get filtered"),zo(),zo(),zo(),zo(),$o(11,"hr"),Ho(12,"ngb-pagination",7),Zo("pageChange",function(t){return e.paginationPage=t})("pageChange",function(){return e.onPageChange()}),zo(),Ho(13,"table",8),Ho(14,"thead"),Ho(15,"tr"),Ho(16,"th",9),_a(17,"ID"),zo(),Ho(18,"th",9),_a(19,"User ID"),zo(),Ho(20,"th",9),_a(21,"Title"),zo(),Ho(22,"th",9),_a(23,"Completed"),zo(),Ho(24,"th",10),_a(25,"Actions"),zo(),zo(),zo(),Ho(26,"tbody"),Mo(27,iw,3,0,"tr",11),Mo(28,aw,1,1,"ng-template",null,12,Zc),zo(),zo()),2&t){const t=Uo(29);ai(8),Vo("ngModel",e.userIdFilter),ai(4),Vo("page",e.paginationPage)("pageSize",e.paginationPageSize)("maxSize",5)("collectionSize",e.todos.length)("rotate",!0)("ellipses",!1)("boundaryLinks",!0),ai(15),Vo("ngIf",e.isLoading)("ngIfElse",t)}},directives:[Lp,tp,fp,Np,hb,bh,Ib,vh],styles:[""]}),t})();function cw(t,e){1&t&&$o(0,"app-loading-spinner")}function uw(t,e){1&t&&(Ho(0,"div"),_a(1,"Request a todo to view its contents"),zo())}function hw(t,e){if(1&t&&(Ho(0,"h2"),_a(1,"Todo"),zo(),Ho(2,"p"),Ho(3,"b"),_a(4,"id: "),zo(),_a(5),zo(),Ho(6,"p"),Ho(7,"b"),_a(8,"userId: "),zo(),_a(9),zo(),Ho(10,"p"),Ho(11,"b"),_a(12,"title: "),zo(),_a(13),zo(),Ho(14,"p"),Ho(15,"b"),_a(16,"completed: "),zo(),_a(17),zo()),2&t){const t=Jo(2);ai(5),ba(t.todo.id),ai(4),ba(t.todo.userId),ai(4),ba(t.todo.title),ai(4),ba(t.todo.completed)}}function dw(t,e){if(1&t&&(Mo(0,uw,2,0,"div",6),Mo(1,hw,18,4,"ng-template",null,8,Zc)),2&t){const t=Uo(2);Vo("ngIf",!Jo().canViewTodo())("ngIfElse",t)}}let pw=(()=>{class t{constructor(){this.viewTodoWithId=new kc,this.todo=void 0,this.isLoading=!1,this.viewTodoId=1}canViewTodo(){return!Dy.isNullOrUndefined(this.todo)}onViewTodoClick(){this.viewTodoWithId.emit(this.viewTodoId)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-view-todo"]],inputs:{todo:"todo",isLoading:"isLoading"},outputs:{viewTodoWithId:"viewTodoWithId"},decls:13,vars:3,consts:[[1,"container"],[1,"row","align-items-end"],[1,"col-4"],["for","todoid"],["type","number","id","todoid",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-primary",3,"click"],[4,"ngIf","ngIfElse"],["showview",""],["displaytodo",""]],template:function(t,e){if(1&t&&(Ho(0,"div",0),Ho(1,"div",1),Ho(2,"div",2),Ho(3,"label",3),_a(4,"View todo with ID:"),zo(),Ho(5,"input",4),Zo("ngModelChange",function(t){return e.viewTodoId=t}),zo(),$o(6,"br"),Ho(7,"button",5),Zo("click",function(){return e.onViewTodoClick()}),_a(8,"Get"),zo(),zo(),zo(),zo(),$o(9,"hr"),Mo(10,cw,1,0,"app-loading-spinner",6),Mo(11,dw,3,2,"ng-template",null,7,Zc)),2&t){const t=Uo(12);ai(5),Vo("ngModel",e.viewTodoId),ai(5),Vo("ngIf",e.isLoading)("ngIfElse",t)}},directives:[Lp,tp,fp,Np,bh,Ib],styles:[""]}),t})();function fw(t,e){if(1&t){const t=Wo();Ho(0,"div",2),Ho(1,"div",3),Ho(2,"label",13),_a(3,"ID"),zo(),Ho(4,"input",14),Zo("ngModelChange",function(e){return Ne(t),Jo().todo.id=e}),zo(),zo(),zo()}if(2&t){const t=Jo();ai(4),Vo("ngModel",t.todo.id),Lo("disabled",!!t.isLoading||null)}}function gw(t,e){1&t&&$o(0,"app-loading-spinner")}let mw=(()=>{class t{constructor(){this.submitTodoEmitter=new kc,this.todo=new nw,this.isLoading=!1,this.allowIdInput=!1,this.submitButtonText="Submit"}onSubmitTodoClick(){this.submitTodoEmitter.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-todo-form"]],inputs:{todo:"todo",isLoading:"isLoading",allowIdInput:"allowIdInput",submitButtonText:"submitButtonText"},outputs:{submitTodoEmitter:"submitTodoEmitter"},decls:20,vars:9,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"col-sm-4","p-0"],["for","userid"],["type","number","id","userid","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","title"],["type","text","id","title","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-2","p-0"],["for","completed"],["type","checkbox","id","completed","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-success",3,"click"],[4,"ngIf"],["for","id"],["type","number","id","id","required","",1,"form-control",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(Ho(0,"div",0),Mo(1,fw,5,2,"div",1),Ho(2,"div",2),Ho(3,"div",3),Ho(4,"label",4),_a(5,"User ID"),zo(),Ho(6,"input",5),Zo("ngModelChange",function(t){return e.todo.userId=t}),zo(),zo(),zo(),Ho(7,"div",2),Ho(8,"label",6),_a(9,"Title"),zo(),Ho(10,"input",7),Zo("ngModelChange",function(t){return e.todo.title=t}),zo(),zo(),Ho(11,"div",2),Ho(12,"div",8),Ho(13,"label",9),_a(14,"Completed"),zo(),Ho(15,"input",10),Zo("ngModelChange",function(t){return e.todo.completed=t}),zo(),zo(),zo(),$o(16,"br"),Ho(17,"button",11),Zo("click",function(){return e.onSubmitTodoClick()}),_a(18),zo(),zo(),Mo(19,gw,1,0,"app-loading-spinner",12)),2&t&&(ai(1),Vo("ngIf",e.allowIdInput),ai(5),Vo("ngModel",e.todo.userId),Lo("disabled",!!e.isLoading||null),ai(4),Vo("ngModel",e.todo.title),Lo("disabled",!!e.isLoading||null),ai(5),Vo("ngModel",e.todo.completed),Lo("disabled",!!e.isLoading||null),ai(3),ba(e.submitButtonText),ai(1),Vo("ngIf",e.isLoading))},directives:[bh,Lp,tp,Vp,fp,Np,Fp,Yd,Ib],styles:[""]}),t})(),yw=(()=>{class t{constructor(){this.createTodoEmitter=new kc,this.todo=new nw,this.isLoading=!1}ngOnInit(){this.createTodoSuccessEvent&&(this.createTodoSuccessSubscription=this.createTodoSuccessEvent.subscribe(()=>this.onCreateTodoSuccessEvent()))}ngOnDestroy(){this.createTodoSuccessSubscription&&this.createTodoSuccessSubscription.unsubscribe()}onCreateTodoSuccessEvent(){this.todo=new nw}onSubmitTodoEvent(){this.createTodoEmitter.emit(this.todo)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-create-todo"]],inputs:{createTodoSuccessEvent:"createTodoSuccessEvent",isLoading:"isLoading"},outputs:{createTodoEmitter:"createTodoEmitter"},decls:1,vars:4,consts:[[3,"todo","allowIdInput","isLoading","submitButtonText","submitTodoEmitter"]],template:function(t,e){1&t&&(Ho(0,"app-todo-form",0),Zo("submitTodoEmitter",function(){return e.onSubmitTodoEvent()}),zo()),2&t&&Vo("todo",e.todo)("allowIdInput",!1)("isLoading",e.isLoading)("submitButtonText","Create")},directives:[mw],styles:[""]}),t})(),vw=(()=>{class t{constructor(){this.updateFullTodoEmitter=new kc,this.updatePartialTodoEmitter=new kc,this.todo=new nw,this.isLoading=!1}onSubmitTodoEvent(){this.updateFullTodoEmitter.emit(this.todo)}onUpdatePartialTodoClick(){this.updatePartialTodoEmitter.emit({id:this.todo.id,title:this.todo.title})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-update-todo"]],inputs:{todo:"todo",isLoading:"isLoading"},outputs:{updateFullTodoEmitter:"updateFullTodoEmitter",updatePartialTodoEmitter:"updatePartialTodoEmitter"},decls:19,vars:7,consts:[[3,"todo","allowIdInput","isLoading","submitButtonText","submitTodoEmitter"],[1,"container"],[1,"row"],["for","partialtitle"],["type","text","id","partialtitle","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-success",3,"click"]],template:function(t,e){1&t&&(Ho(0,"h2"),_a(1),zo(),Ho(2,"p"),Ho(3,"b"),_a(4,"Update full"),zo(),zo(),Ho(5,"app-todo-form",0),Zo("submitTodoEmitter",function(){return e.onSubmitTodoEvent()}),zo(),$o(6,"hr"),Ho(7,"p"),Ho(8,"b"),_a(9,"Update partial (only update 'title' field)"),zo(),zo(),Ho(10,"div",1),Ho(11,"div",2),Ho(12,"label",3),_a(13,"Title"),zo(),Ho(14,"input",4),Zo("ngModelChange",function(t){return e.todo.title=t}),zo(),zo(),$o(15,"br"),Ho(16,"button",5),Zo("click",function(){return e.onUpdatePartialTodoClick()}),_a(17,"Update partial"),zo(),zo(),$o(18,"br")),2&t&&(ai(1),wa("Update todo ",e.todo.id,""),ai(4),Vo("todo",e.todo)("allowIdInput",!1)("isLoading",e.isLoading)("submitButtonText","Update full"),ai(9),Vo("ngModel",e.todo.title),Lo("disabled",!!e.isLoading||null))},directives:[mw,tp,Vp,fp,Np],styles:[""]}),t})();function _w(t,e){if(1&t){const t=Wo();Ho(0,"app-list-todos",9),Zo("deletedTodoWithId",function(e){return Ne(t),Jo().onDeleteTodoEvent(e)})("updateSelectedTodoWithId",function(e){return Ne(t),Jo().onUpdateSelectedTodoEvent(e)})("getAll",function(){return Ne(t),Jo().onGetAllEvent()})("getFilteredWithUserId",function(e){return Ne(t),Jo().onGetFilteredEvent(e)})("viewSelectedTodoWithId",function(e){return Ne(t),Jo().onViewSelectedTodoEvent(e)}),zo()}if(2&t){const t=Jo();Vo("todos",t.todos)("isLoading",t.isPerformingRequest)}}function bw(t,e){if(1&t){const t=Wo();Ho(0,"app-view-todo",10),Zo("viewTodoWithId",function(e){return Ne(t),Jo().onViewTodoEvent(e)}),zo()}if(2&t){const t=Jo();Vo("todo",t.selectedTodo)("isLoading",t.isPerformingRequest)}}function ww(t,e){if(1&t){const t=Wo();Ho(0,"app-create-todo",11),Zo("createTodoEmitter",function(e){return Ne(t),Jo().onCreateTodoEvent(e)}),zo()}if(2&t){const t=Jo();Vo("isLoading",t.isPerformingRequest)("createTodoSuccessEvent",t.createTodoSuccessSubject.asObservable())}}function Cw(t,e){if(1&t){const t=Wo();Ho(0,"app-update-todo",12),Zo("updateFullTodoEmitter",function(e){return Ne(t),Jo().onUpdateFullTodoEvent(e)})("updatePartialTodoEmitter",function(e){return Ne(t),Jo().onUpdatePartialTodoEvent(e)}),zo()}if(2&t){const t=Jo();Vo("todo",t.selectedTodo)("isLoading",t.isPerformingRequest)}}let Ew=(()=>{class t{constructor(t,e){this.todosApiEndpointService=t,this.modal=e,this.listTodosNavItemId=1,this.viewTodoNavItemId=2,this.createNavItemId=3,this.updateNavItemId=4,this.todos=[],this.isPerformingRequest=!1,this.activeNavItem=this.listTodosNavItemId,this.selectedTodo=void 0,this.createTodoSuccessSubject=new E}onCreateTodoEvent(t){this.isPerformingRequest=!0;let e="Create todo";try{this.todosApiEndpointService.create(t).subscribe(t=>{this.todos.push(t),this.createTodoSuccessSubject.next(),this.openModal(e,[`Successfully created todo with id = ${t.id}`])},t=>{this.openModal(e,["Error creating todo.",t])}).add(()=>{this.isPerformingRequest=!1})}catch(n){this.openModal(e,["Error trying to create todo.",n])}}onDeleteTodoEvent(t){this.isPerformingRequest=!0;let e="Delete todo";this.todosApiEndpointService.delete(t).subscribe(n=>{this.todos=this.todos.filter(e=>e.id!==t),this.openModal(e,[`Successfully deleted todo with id = ${t}`])},n=>{this.openModal(e,[`Error deleting todo with id = ${t}.`,n])}).add(()=>{this.isPerformingRequest=!1})}onGetAllEvent(){this.isPerformingRequest=!0,this.todos=[],this.todosApiEndpointService.getMany().subscribe(t=>{this.todos=[...t]},t=>{this.openModal("Get all todos",["Error getting todos.",t])}).add(()=>{this.isPerformingRequest=!1})}onGetFilteredEvent(t){this.isPerformingRequest=!0,this.todos=[],this.todosApiEndpointService.getManyFilterByUserId(t).subscribe(t=>{this.todos=[...t]},e=>{this.openModal("Get filtered todos",[`Error getting todos for user ${t}.`,e])}).add(()=>{this.isPerformingRequest=!1})}onUpdateSelectedTodoEvent(t){this.selectedTodo=this.todos.find(e=>e.id===t),this.activeNavItem=this.updateNavItemId}onUpdateFullTodoEvent(t){this.isPerformingRequest=!0;let e="Update full todo";try{this.todosApiEndpointService.updateFull(t).subscribe(t=>{this.todos.forEach(e=>{e.id===t.id&&(e=t)}),this.openModal(e,[`Successfully updated todo with id = ${t.id}`])},t=>{this.openModal(e,["Error updating todo.",t])}).add(()=>{this.isPerformingRequest=!1})}catch(n){this.openModal(e,["Error trying to update todo.",n])}}onUpdatePartialTodoEvent(t){this.isPerformingRequest=!0;let e="Update partial todo";try{this.todosApiEndpointService.updatePartial(t).subscribe(t=>{this.todos.forEach(e=>{e.id===t.id&&(e=t)}),this.openModal(e,[`Successfully updated todo with id = ${t.id}`])},t=>{this.openModal(e,["Error updating todo.",t])}).add(()=>{this.isPerformingRequest=!1})}catch(n){this.openModal(e,["Error trying to update todo.",n])}}onViewSelectedTodoEvent(t){this.selectedTodo=this.todos.find(e=>e.id===t),this.activeNavItem=this.viewTodoNavItemId}onViewTodoEvent(t){this.isPerformingRequest=!0,this.selectedTodo=void 0,this.todosApiEndpointService.getOne(t).subscribe(t=>{this.selectedTodo=t},e=>{this.openModal("View todo",[`Error getting todo with id ${t}.`,e])}).add(()=>{this.isPerformingRequest=!1})}openModal(t,e){Wb.open(this.modal,t,e)}}return t.\u0275fac=function(e){return new(e||t)(jo(sw),jo($_))},t.\u0275cmp=$t({type:t,selectors:[["app-todos"]],decls:32,vars:7,consts:[["href","https://github.com/peterrhodesdev/angular-generic-api-service/blob/main/src/app/services/todo.service.ts"],["href","https://jsonplaceholder.typicode.com/todos"],["ngbNav","",1,"nav-tabs",3,"activeId","activeIdChange"],["nav","ngbNav"],[3,"ngbNavItem"],["ngbNavLink",""],["ngbNavContent",""],["ngbTooltip","Get the list of todos then click the update button",3,"ngbNavItem","disabled"],[1,"mt-2",3,"ngbNavOutlet"],[3,"todos","isLoading","deletedTodoWithId","updateSelectedTodoWithId","getAll","getFilteredWithUserId","viewSelectedTodoWithId"],[3,"todo","isLoading","viewTodoWithId"],[3,"isLoading","createTodoSuccessEvent","createTodoEmitter"],[3,"todo","isLoading","updateFullTodoEmitter","updatePartialTodoEmitter"]],template:function(t,e){if(1&t&&(Ho(0,"h1"),_a(1,"Todos"),zo(),Ho(2,"p"),_a(3,"Using the "),Ho(4,"a",0),_a(5,"TodoService"),zo(),_a(6," to create, delete, get, and update resources at the JSON Placeholder "),Ho(7,"a",1),_a(8,"todos endpoint"),zo(),_a(9,"."),zo(),Ho(10,"p"),Ho(11,"i"),_a(12,"Note, because this is only a mock server the resources won't actually be modified, just faked as if they were. Any changes made will be reset when the data is refreshed. Also, creating a new todo will always return an object with id = 201."),zo(),zo(),Ho(13,"ul",2,3),Zo("activeIdChange",function(t){return e.activeNavItem=t}),Ho(15,"li",4),Ho(16,"a",5),_a(17,"List todos"),zo(),Mo(18,_w,1,2,"ng-template",6),zo(),Ho(19,"li",4),Ho(20,"a",5),_a(21,"View todo"),zo(),Mo(22,bw,1,2,"ng-template",6),zo(),Ho(23,"li",4),Ho(24,"a",5),_a(25,"Create new"),zo(),Mo(26,ww,1,2,"ng-template",6),zo(),Ho(27,"li",7),Ho(28,"a",5),_a(29,"Update existing"),zo(),Mo(30,Cw,1,2,"ng-template",6),zo(),zo(),$o(31,"div",8)),2&t){const t=Uo(14);ai(13),Vo("activeId",e.activeNavItem),ai(2),Vo("ngbNavItem",e.listTodosNavItemId),ai(4),Vo("ngbNavItem",e.viewTodoNavItemId),ai(4),Vo("ngbNavItem",e.createNavItemId),ai(4),Vo("ngbNavItem",e.updateNavItemId)("disabled",e.activeNavItem!==e.updateNavItemId),ai(4),Vo("ngbNavOutlet",t)}},directives:[K_,Z_,Y_,Q_,Sb,eb,lw,pw,yw,vw],styles:[""]}),t})();function Sw(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function Tw(t,e={}){return function(n,r){const s=Reflect.getMetadata("design:type",n,r);Qb.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:s,typeFunction:t,options:e})}}class xw extends ew{constructor(){super(...arguments),this.name="",this.username="",this.email="",this.phone="",this.website="",this.address=new Ow,this.company=new Iw}getFirstName(){return this.name.split(" ")[0]}getLastName(){let t=this.name.split(" ");return t[t.length-1]}}Sw([Tw(()=>Ow)],xw.prototype,"address",void 0),Sw([Tw(()=>Iw)],xw.prototype,"company",void 0);class Ow{constructor(){this.street="",this.suite="",this.city="",this.zipcode="",this.geo=new Aw}}class Aw{constructor(){this.lat="",this.lng=""}toDegreesMinutesSeconds(){let t=parseFloat(this.lat),e=parseFloat(this.lng),[n,r,s]=this.convertDecimalToDegreesMinutesSeconds(t),[i,o,a]=this.convertDecimalToDegreesMinutesSeconds(e),l=t>=0?"N":"S";var c=e>=0?"E":"W";return this.degreesMinutesSecondsToString(n,r,s)+` ${l}, `+this.degreesMinutesSecondsToString(i,o,a)+` ${c}`}degreesMinutesSecondsToString(t,e,n){return`${t}\xb0 ${e}' ${n}"`}convertDecimalToDegreesMinutesSeconds(t){let e=Math.abs(t),n=Math.floor(e),r=60*(e-n),s=Math.floor(r);return[n,s,Math.floor(60*(r-s))]}}class Iw{constructor(){this.name="",this.catchPhrase="",this.bs=""}}let kw=(()=>{class t extends tw{getBaseUrl(){return Ny.API_BASE_URL_JSON_PLACEHOLDER}getEndpoint(){return Ny.API_ENDPOINT_JSON_PLACEHOLDER_USERS}getInstance(){return new xw}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Bn(t)))(n||t)}}(),t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rw(t,e){1&t&&(Ho(0,"tr"),Ho(1,"td",10),$o(2,"app-loading-spinner"),zo(),zo())}function Pw(t,e){if(1&t){const t=Wo();Ho(0,"tr"),Ho(1,"th",12),_a(2),zo(),Ho(3,"td"),_a(4),zo(),Ho(5,"td"),Ho(6,"button",13),Zo("click",function(){const e=Ne(t).$implicit;return Jo(2).onViewUserClick(e.id)}),_a(7,"View"),zo(),zo(),zo()}if(2&t){const t=e.$implicit;ai(2),ba(t.id),ai(2),ba(t.email)}}function Nw(t,e){1&t&&Mo(0,Pw,8,2,"tr",11),2&t&&Vo("ngForOf",Jo().users)}function Dw(t,e){if(1&t&&(Ho(0,"div"),Ho(1,"p"),Ho(2,"b"),_a(3,"Confirm can call class method"),zo(),zo(),Ho(4,"p"),_a(5,"UserModel.getFirstName() and UserModel.getLastName():"),zo(),Ho(6,"p"),_a(7),zo(),Ho(8,"p"),Ho(9,"b"),_a(10,"Confirm can call nested class method"),zo(),zo(),Ho(11,"p"),_a(12,"UserModel.address.geo.toDegreesMinutesSeconds() (lat/lng decimal as degrees, minutes, and seconds):"),zo(),Ho(13,"p"),_a(14),zo(),Ho(15,"p"),Ho(16,"b"),_a(17,"Confirm that nested objects have been populated"),zo(),zo(),Ho(18,"pre"),Ho(19,"code"),_a(20),function(t,e){const n=Pe();let r;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new at("302","The pipe 'json' could not be found!")}("json",n.pipeRegistry),n.data[41]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(41,r.onDestroy)):r=n.data[41];const s=r.factory||(r.factory=ae(r.type)),i=Et(jo);try{const t=xn(!1),e=s();xn(t),function(t,e,n,r){41>=t.data.length&&(t.data[41]=null,t.blueprint[41]=null),e[41]=r}(n,Re(),0,e)}finally{Et(i)}}(),zo(),zo(),zo()),2&t){const t=Jo();ai(7),Ca("First name = ",t.selectedUser.getFirstName(),", last name = ",t.selectedUser.getLastName(),""),ai(7),ba(t.selectedUser.address.geo.toDegreesMinutesSeconds()),ai(6),ba(function(t,e,n){const r=t+Xt,s=Re(),i=Ce(s,r);return function(t,e){return Io.isWrapped(e)&&(e=Io.unwrap(e),t[$e()]=oi),e}(s,function(t,e){return t[1].data[e].pure}(s,r)?Ac(s,ze(),e,i.transform,n,i):i.transform(n))}(21,4,t.selectedUser))}}const Lw=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:ky},{path:"http-status-codes",component:zb},{path:"login",component:$b},{path:"todos",component:Ew},{path:"users",component:(()=>{class t{constructor(t,e){this.usersApiEndpointService=t,this.modal=e,this.users=[],this.isPerformingRequest=!1,this.selectedUser=void 0}ngOnInit(){this.getAllUsers()}getAllUsers(){this.isPerformingRequest=!0,this.usersApiEndpointService.getMany().subscribe(t=>{this.users=[...t],this.selectedUser=this.users[0]},t=>{Wb.open(this.modal,"Get all users",["Error getting users.",t])}).add(()=>{this.isPerformingRequest=!1})}onViewUserClick(t){this.selectedUser=this.users.find(e=>e.id===t)}}return t.\u0275fac=function(e){return new(e||t)(jo(kw),jo($_))},t.\u0275cmp=$t({type:t,selectors:[["app-users"]],decls:34,vars:4,consts:[[1,"container"],[1,"row"],[1,"col"],["href","https://jsonplaceholder.typicode.com/users"],[1,"table","table-hover"],["scope","col"],[4,"ngIf","ngIfElse"],["showusers",""],["href","https://github.com/peterrhodesdev/angular-generic-api-service/blob/main/src/app/models/user.model.ts"],[4,"ngIf"],["colspan","3"],[4,"ngFor","ngForOf"],["scope","row"],[1,"btn","btn-info",3,"click"]],template:function(t,e){if(1&t&&(Ho(0,"h1"),_a(1,"Users"),zo(),Ho(2,"div",0),Ho(3,"div",1),Ho(4,"div",2),Ho(5,"h2"),_a(6,"Users list"),zo(),Ho(7,"p"),_a(8,"All users from the JSON Placeholder "),Ho(9,"a",3),_a(10,"users endpoint"),zo(),_a(11,"."),zo(),Ho(12,"table",4),Ho(13,"thead"),Ho(14,"tr"),Ho(15,"th",5),_a(16,"ID"),zo(),Ho(17,"th",5),_a(18,"Email"),zo(),Ho(19,"th",5),_a(20,"View user details"),zo(),zo(),zo(),Ho(21,"tbody"),Mo(22,Rw,3,0,"tr",6),Mo(23,Nw,1,1,"ng-template",null,7,Zc),zo(),zo(),zo(),Ho(25,"div",2),Ho(26,"h2"),_a(27),zo(),Ho(28,"p"),_a(29,"The response is transformed into an instance of the "),Ho(30,"a",8),_a(31,"UserModel"),zo(),_a(32," class."),zo(),Mo(33,Dw,22,6,"div",9),zo(),zo(),zo()),2&t){const t=Uo(24);ai(22),Vo("ngIf",e.isPerformingRequest)("ngIfElse",t),ai(5),wa("User ",e.selectedUser?e.selectedUser.id:""," details"),ai(6),Vo("ngIf",e.selectedUser)}},directives:[bh,Ib,vh],pipes:[Sh],styles:[""]}),t})()},{path:"**",component:Bb}];let Mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({imports:[[wy.forRoot(Lw)],wy]}),t})();var Uw={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};let jw=(()=>{class t{constructor(){this.isCollapsed=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-navigation-bar"]],decls:19,vars:1,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark"],["href","https://peterrhodes.dev/",1,"navbar-brand"],["type","button",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse",3,"ngbCollapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","home",1,"nav-link",3,"click"],["routerLink","todos",1,"nav-link",3,"click"],["routerLink","users",1,"nav-link",3,"click"],["routerLink","http-status-codes",1,"nav-link",3,"click"]],template:function(t,e){1&t&&(Ho(0,"nav",0),Ho(1,"a",1),_a(2,"Peter Rhodes dev"),zo(),Ho(3,"button",2),Zo("click",function(){return e.isCollapsed=!e.isCollapsed}),$o(4,"span",3),zo(),Ho(5,"div",4),Ho(6,"ul",5),Ho(7,"li",6),Ho(8,"a",7),Zo("click",function(){return e.isCollapsed=!0}),_a(9,"Home"),zo(),zo(),Ho(10,"li",6),Ho(11,"a",8),Zo("click",function(){return e.isCollapsed=!0}),_a(12,"Todos"),zo(),zo(),Ho(13,"li",6),Ho(14,"a",9),Zo("click",function(){return e.isCollapsed=!0}),_a(15,"Users"),zo(),zo(),Ho(16,"li",6),Ho(17,"a",10),Zo("click",function(){return e.isCollapsed=!0}),_a(18,"HTTP status codes"),zo(),zo(),zo(),zo(),zo()),2&t&&(ai(5),Vo("ngbCollapse",e.isCollapsed))},directives:[T_,h_,cy],styles:[""]}),t})();function Vw(t){return(Vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hw(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function IC(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function kC(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function RC(t){return t.size!==OC.size||t.x!==OC.x||t.y!==OC.y||t.rotate!==OC.rotate||t.flipX||t.flipY}function PC(t){var e=t.transform,n=t.iconWidth,r={transform:"translate(".concat(t.containerWidth/2," 256)")},s="translate(".concat(32*e.x,", ").concat(32*e.y,") "),i="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(s," ").concat(i," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var NC={x:0,y:0,width:"100%",height:"100%"};function DC(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function LC(t){var e=t.icons,n=e.main,r=e.mask,s=t.prefix,i=t.iconName,o=t.transform,a=t.symbol,l=t.title,c=t.maskId,u=t.titleId,h=t.extra,d=t.watchable,p=void 0!==d&&d,f=r.found?r:n,g=f.width,m=f.height,y="fak"===s,v=y?"":"fa-w-".concat(Math.ceil(g/m*16)),_=[nC.replacementClass,i?"".concat(nC.familyPrefix,"-").concat(i):"",v].filter(function(t){return-1===h.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(h.classes).join(" "),b={children:[],attributes:Hw({},h.attributes,{"data-prefix":s,"data-icon":i,class:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},w=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};p&&(b.attributes["data-fa-i2svg"]=""),l&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(u||AC())},children:[l]});var C=Hw({},b,{prefix:s,iconName:i,main:n,mask:r,maskId:c,transform:o,symbol:a,styles:Hw({},w,h.styles)}),E=r.found&&n.found?function(t){var e,n=t.children,r=t.attributes,s=t.main,i=t.mask,o=t.maskId,a=s.icon,l=i.icon,c=PC({transform:t.transform,containerWidth:i.width,iconWidth:s.width}),u={tag:"rect",attributes:Hw({},NC,{fill:"white"})},h=a.children?{children:a.children.map(DC)}:{},d={tag:"g",attributes:Hw({},c.inner),children:[DC(Hw({tag:a.tag,attributes:Hw({},a.attributes,c.path)},h))]},p={tag:"g",attributes:Hw({},c.outer),children:[d]},f="mask-".concat(o||AC()),g="clip-".concat(o||AC()),m={tag:"mask",attributes:Hw({},NC,{id:f,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,p]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=l,"g"===e.tag?e.children:[e])},m]};return n.push(y,{tag:"rect",attributes:Hw({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(f,")")},NC)}),{children:n,attributes:r}}(C):function(t){var e=t.children,n=t.attributes,r=t.main,s=t.transform,i=kC(t.styles);if(i.length>0&&(n.style=i),RC(s)){var o=PC({transform:s,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:Hw({},o.outer),children:[{tag:"g",attributes:Hw({},o.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Hw({},r.icon.attributes,o.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(C),S=E.attributes;return C.children=E.children,C.attributes=S,a?function(t){var e=t.iconName,n=t.children,r=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Hw({},t.attributes,{id:!0===r?"".concat(t.prefix,"-").concat(nC.familyPrefix,"-").concat(e):r}),children:n}]}]}(C):function(t){var e=t.children,n=t.main,r=t.mask,s=t.attributes,i=t.styles,o=t.transform;if(RC(o)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};s.style=kC(Hw({},i,{"transform-origin":"".concat(a.x+o.x/16,"em ").concat(a.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:e}]}(C)}var MC=function(t,e,n,r){var s,i,o,a=Object.keys(t),l=a.length,c=void 0!==r?function(t,e){return function(n,r,s,i){return t.call(e,n,r,s,i)}}(e,r):e;for(void 0===n?(s=1,o=t[a[0]]):(s=0,o=n);s2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,s=void 0!==r&&r,i=Object.keys(e).reduce(function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{});"function"!=typeof sC.hooks.addPack||s?sC.styles[t]=Hw({},sC.styles[t]||{},i):sC.hooks.addPack(t,i),"fas"===t&&UC("fa",e)}var jC=sC.styles,VC=sC.shims,FC=function(){var t=function(t){return MC(jC,function(e,n,r){return e[r]=MC(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var r=e[2];return t[n]=n,r.forEach(function(e){t[e]=n}),t});var e="far"in jC;MC(VC,function(t,n){var r=n[1];return"far"!==r||e||(r="fas"),t[n[0]]={prefix:r,iconName:n[2]},t},{})};function HC(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function zC(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,s=t.children,i=void 0===s?[]:s;return"string"==typeof t?IC(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(IC(t[n]),'" ')},"").trim()}(r),">").concat(i.map(zC).join(""),"")}function $C(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}FC(),($C.prototype=Object.create(Error.prototype)).constructor=$C;var BC={fill:"currentColor"},qC={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},WC=(Hw({},BC,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),Hw({},qC,{attributeName:"opacity"}));function GC(t){var e=t[0],n=t[1],r=zw(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(nC.familyPrefix,"-").concat(Xw.GROUP)},children:[{tag:"path",attributes:{class:"".concat(nC.familyPrefix,"-").concat(Xw.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(nC.familyPrefix,"-").concat(Xw.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}function QC(){nC.autoAddCss&&!XC&&(function(t){if(t&&Zw){var e=Qw.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=Qw.head.childNodes,r=null,s=n.length-1;s>-1;s--){var i=n[s],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}Qw.head.insertBefore(e,r)}}(function(){var t="fa",e=Kw,n=nC.familyPrefix,r=nC.replacementClass,s='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==t||r!==e){var i=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");s=s.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(r))}return s}()),XC=!0)}function ZC(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return zC(t)})}}),Object.defineProperty(t,"node",{get:function(){if(Zw){var e=Qw.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function KC(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return HC(JC.definitions,n,r)||HC(sC.styles,n,r)}Hw({},BC,{cx:"256",cy:"364",r:"28"}),Hw({},qC,{attributeName:"r",values:"28;14;28;28;14;28;"}),Hw({},WC,{values:"1;0;1;1;0;1;"}),Hw({},BC,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Hw({},WC,{values:"1;0;0;0;0;1;"}),Hw({},BC,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Hw({},WC,{values:"0;0;1;1;0;0;"});var YC,JC=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?OC:n,s=e.symbol,i=void 0!==s&&s,o=e.mask,a=void 0===o?null:o,l=e.maskId,c=void 0===l?null:l,u=e.title,h=void 0===u?null:u,d=e.titleId,p=void 0===d?null:d,f=e.classes,g=void 0===f?[]:f,m=e.attributes,y=void 0===m?{}:m,v=e.styles,_=void 0===v?{}:v;if(t){var b=t.prefix,w=t.iconName,C=t.icon;return ZC(Hw({type:"icon"},t),function(){return QC(),nC.autoA11y&&(h?y["aria-labelledby"]="".concat(nC.replacementClass,"-title-").concat(p||AC()):(y["aria-hidden"]="true",y.focusable="false")),LC({icons:{main:GC(C),mask:a?GC(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:Hw({},OC,r),symbol:i,title:h,maskId:c,titleId:p,extra:{attributes:y,styles:_,classes:g}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:KC(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:KC(r||{})),YC(n,Hw({},e,{mask:r}))});const eE=["*"];let nE=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),rE=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sE=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let iE=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Zt({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[ce]}),t})(),oE=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(jo(Ol),jo(Sl))},t.\u0275cmp=$t({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[ce],ngContentSelectors:eE,decls:1,vars:0,template:function(t,e){1&t&&(ta(),ea(0))},encapsulation:2}),t})(),aE=(()=>{class t{constructor(t,e,n,r,s){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=r,this.classes=[],null!=s&&null==r&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const r=KC(e);if(null!=r){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return r}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),r=n[0],s=n.slice(1).join("-");if(r&&"h"===s)return t.flipX=!0,t;if(r&&"v"===s)return t.flipY=!0,t;if(s=parseFloat(s),isNaN(s))return t;switch(r){case"grow":t.size=t.size+s;break;case"shrink":t.size=t.size-s;break;case"left":t.x=t.x-s;break;case"right":t.x=t.x+s;break;case"up":t.y=t.y-s;break;case"down":t.y=t.y+s;break;case"rotate":t.rotate=t.rotate+s}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...sE(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=tE(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(jo(rd),jo(nE),jo(rE),jo(iE,8),jo(oE,8))},t.\u0275cmp=$t({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(Ea("innerHTML",e.renderedIconHTML,ss),Lo("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[ce],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),lE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t}),t.\u0275inj=pt({}),t})(),cE=(()=>{class t{constructor(){this.title="angular-starter",this.faGithub=Uw}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=$t({type:t,selectors:[["app-root"]],decls:27,vars:1,consts:[["id","#top"],[1,"container","mt-3"],[1,"mt-auto"],[1,"container-fluid","border-top"],[1,"row","bg-dark"],[1,"col","d-flex","justify-content-center"],["routerLink","home",1,"text-light"],["routerLink","todos",1,"text-light"],["routerLink","users",1,"text-light"],["routerLink","http-status-codes",1,"text-light"],[1,"col"],["href","https://peterrhodes.dev","target","_blank",1,"text-light"],[1,"col-auto"],["href","https://github.com/peterrhodesdev/angular-generic-api-service","target","_blank",1,"text-light","d-flex","align-items-end"],[3,"icon"]],template:function(t,e){1&t&&(Ho(0,"header",0),$o(1,"app-navigation-bar"),zo(),Ho(2,"div",1),$o(3,"router-outlet"),zo(),Ho(4,"footer",2),Ho(5,"div",3),Ho(6,"div",4),Ho(7,"div",5),Ho(8,"a",6),_a(9,"Home"),zo(),zo(),Ho(10,"div",5),Ho(11,"a",7),_a(12,"Todos"),zo(),zo(),Ho(13,"div",5),Ho(14,"a",8),_a(15,"Users"),zo(),zo(),Ho(16,"div",5),Ho(17,"a",9),_a(18,"Http status codes"),zo(),zo(),zo(),Ho(19,"div",4),Ho(20,"div",10),Ho(21,"a",11),_a(22,"Peter Rhodes Dev"),zo(),zo(),Ho(23,"div",12),Ho(24,"a",13),$o(25,"fa-icon",14),_a(26,"\xa0Check out the GitHub repo"),zo(),zo(),zo(),zo(),zo()),2&t&&(ai(25),Vo("icon",e.faGithub))},directives:[jw,hy,cy,aE],styles:[""]}),t})();class uE{constructor(t,e){this.notifier=t,this.source=e}call(t,e){return e.subscribe(new hE(t,this.notifier,this.source))}}class hE extends U{constructor(t,e,n){super(t),this.notifier=e,this.source=n}error(t){if(!this.isStopped){let e=this.errors,n=this.retries,r=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{e=new E;try{const{notifier:t}=this;n=t(e)}catch(fE){return super.error(fE)}r=j(n,new M(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=n,this.retriesSubscription=r,e.next(t)}}_unsubscribe(){const{errors:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:t}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)}}let dE=(()=>{class t{constructor(t){this.router=t,this.retryAttempts=Ny.HTTP_ERROR_RETRY_ATTEMPTS,this.retryStatusCodes=Ny.HTTP_ERROR_RETRY_STATUS_CODES,this.retryInitialIntervalMs=Ny.HTTP_ERROR_RETRY_INITIAL_INTERVAL_MILLISECONDS,this.retryExpDelayBase=Ny.HTTP_ERROR_RETRY_EXPONENTIAL_DELAY_BASE}intercept(t,e){return e.handle(t).pipe((n=t=>this.handleRetries(t),t=>t.lift(new uE(n,t))),pf(t=>this.handleError(t)));var n}handleRetries(t){return t.pipe(ud((t,e)=>{if(e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Gt({type:t,bootstrap:[cE]}),t.\u0275inj=pt({providers:[{provide:Dd,useClass:dE,multi:!0}],imports:[[ld,Mw,lE,Ab,qd,zp]]}),t})();Ny.production&&function(){if(ku)throw new Error("Cannot enable prod mode after platform setup.");Iu=!1}(),od().bootstrapModule(pE).catch(t=>console.error(t))}},t=>{"use strict";t(t.s=4798)}]); \ No newline at end of file diff --git a/polyfills.012c69bdbe285f7c0e3e.js b/polyfills.012c69bdbe285f7c0e3e.js new file mode 100644 index 0000000..22fa1d5 --- /dev/null +++ b/polyfills.012c69bdbe285f7c0e3e.js @@ -0,0 +1 @@ +(self.webpackChunkangular_starter=self.webpackChunkangular_starter||[]).push([[429],{7277:()=>{"use strict";!function(t){const e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");const o=t.__Zone_symbol_prefix||"__zone_symbol__";function i(t){return o+t}const a=!0===t[i("forceDuplicateZoneCheck")];if(t.Zone){if(a||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let s=(()=>{class e{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==P.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=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return z.zone}static get currentTask(){return D}static __load_patch(o,i,s=!1){if(P.hasOwnProperty(o)){if(!s&&a)throw Error("Already loaded patch: "+o)}else if(!t["__Zone_disable_"+o]){const a="Zone:"+o;n(a),P[o]=i(t,e,Z),r(a,a)}}get parent(){return this._parent}get name(){return this._name}get(t){const e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}run(t,e,n,r){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{z=z.parent}}runGuarded(t,e=null,n,r){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{z=z.parent}}runTask(t,e,n){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===_&&(t.type===j||t.type===x))return;const r=t.state!=T;r&&t._transitionTo(T,w),t.runCount++;const o=D;D=t,z={parent:z,zone:this};try{t.type==x&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==_&&t.state!==S&&(t.type==j||t.data&&t.data.isPeriodic?r&&t._transitionTo(w,T):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(_,T,_))),z=z.parent,D=o}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(b,_);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(n){throw t._transitionTo(S,b,_),this._zoneDelegate.handleError(this,n),n}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==b&&t._transitionTo(w,b),t}scheduleMicroTask(t,e,n,r){return this.scheduleTask(new l(O,t,e,n,r,void 0))}scheduleMacroTask(t,e,n,r,o){return this.scheduleTask(new l(x,t,e,n,r,o))}scheduleEventTask(t,e,n,r,o){return this.scheduleTask(new l(j,t,e,n,r,o))}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(E,w,T);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,E),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(_,E),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let r=0;rt.hasTask(n,r),onScheduleTask:(t,e,n,r)=>t.scheduleTask(n,r),onInvokeTask:(t,e,n,r,o,i)=>t.invokeTask(n,r,o,i),onCancelTask:(t,e,n,r)=>t.cancelTask(n,r)};class u{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask;(r||e&&e._hasTaskZS)&&(this._hasTaskZS=r?n:c,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=O)throw new Error("Task is missing scheduleFn.");y(e)}return n}invokeTask(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}_updateTaskCount(t,e){const n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}class l{constructor(e,n,r,o,i,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;this.invoke=e===j&&o&&o.useG?l.invokeTask:function(){return l.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),C++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==C&&m(),C--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(_,b)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==_&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?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 f=i("setTimeout"),p=i("Promise"),h=i("then");let d,v=[],g=!1;function y(e){if(0===C&&0===v.length)if(d||t[p]&&(d=t[p].resolve(0)),d){let t=d[h];t||(t=d.then),t.call(d,m)}else t[f](m,0);e&&v.push(e)}function m(){if(!g){for(g=!0;v.length;){const e=v;v=[];for(let n=0;nz,onUnhandledError:I,microtaskDrainDone:I,scheduleMicroTask:y,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:I,patchMethod:()=>I,bindArguments:()=>[],patchThen:()=>I,patchMacroTask:()=>I,patchEventPrototype:()=>I,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>I,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>I,wrapWithCurrentZone:()=>I,filterProperties:()=>[],attachOriginToPatched:()=>I,_redefineProperty:()=>I,patchCallbacks:()=>I};let z={parent:null,zone:new s(null,null)},D=null,C=0;function I(){}r("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const t=Object.getOwnPropertyDescriptor,e=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",s=Zone.__symbol__(i),c=Zone.__symbol__(a),u="true",l="false",f=Zone.__symbol__("");function p(t,e){return Zone.current.wrap(t,e)}function h(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}const d=Zone.__symbol__,v="undefined"!=typeof window,g=v?window:void 0,y=v&&g||"object"==typeof self&&self||global,m=[null];function k(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=p(t[n],e+"_"+n));return t}function _(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),T=!w&&!b&&!(!v||!g.HTMLElement),E=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!b&&!(!v||!g.HTMLElement),S={},O=function(t){if(!(t=t||y.event))return;let e=S[t.type];e||(e=S[t.type]=d("ON_PROPERTY"+t.type));const n=this||t.target||y,r=n[e];let o;if(T&&n===g&&"error"===t.type){const e=t;o=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===o&&t.preventDefault()}else o=r&&r.apply(this,arguments),null==o||o||t.preventDefault();return o};function x(n,r,o){let i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const a=d("on"+r+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete i.writable,delete i.value;const s=i.get,c=i.set,u=r.substr(2);let l=S[u];l||(l=S[u]=d("ON_PROPERTY"+u)),i.set=function(t){let e=this;e||n!==y||(e=y),e&&(e[l]&&e.removeEventListener(u,O),c&&c.apply(e,m),"function"==typeof t?(e[l]=t,e.addEventListener(u,O,!1)):e[l]=null)},i.get=function(){let t=this;if(t||n!==y||(t=y),!t)return null;const e=t[l];if(e)return e;if(s){let e=s&&s.call(this);if(e)return i.set.call(this,e),"function"==typeof t.removeAttribute&&t.removeAttribute(r),e}return null},e(n,r,i),n[a]=!0}function j(t,e,n){if(e)for(let r=0;rfunction(e,r){const i=n(e,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?h(i.name,r[i.cbIdx],i,o):t.apply(e,r)})}function C(t,e){t[d("OriginalDelegate")]=e}let I=!1,R=!1;function M(){try{const t=g.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}function A(){if(I)return R;I=!0;try{const t=g.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(R=!0)}catch(t){}return R}Zone.__load_patch("ZoneAwarePromise",(t,e,n)=>{const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],s=!0===t[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=i("Promise"),u=i("then");n.onUnhandledError=t=>{if(n.showUncaughtError()){const e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},n.microtaskDrainDone=()=>{for(;a.length;){const e=a.shift();try{e.zone.runGuarded(()=>{if(e.throwOriginal)throw e.rejection;throw e})}catch(t){f(t)}}};const l=i("unhandledPromiseRejectionHandler");function f(t){n.onUnhandledError(t);try{const n=e[l];"function"==typeof n&&n.call(this,t)}catch(r){}}function p(t){return t&&t.then}function h(t){return t}function d(t){return Z.reject(t)}const v=i("state"),g=i("value"),y=i("finally"),m=i("parentPromiseValue"),k=i("parentPromiseState"),_=null,b=!0,w=!1;function T(t,e){return n=>{try{S(t,e,n)}catch(r){S(t,!1,r)}}}const E=i("currentTaskTrace");function S(t,r,i){const c=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}}();if(t===i)throw new TypeError("Promise resolved with itself");if(t[v]===_){let f=null;try{"object"!=typeof i&&"function"!=typeof i||(f=i&&i.then)}catch(l){return c(()=>{S(t,!1,l)})(),t}if(r!==w&&i instanceof Z&&i.hasOwnProperty(v)&&i.hasOwnProperty(g)&&i[v]!==_)x(i),S(t,i[v],i[g]);else if(r!==w&&"function"==typeof f)try{f.call(i,c(T(t,r)),c(T(t,!1)))}catch(l){c(()=>{S(t,!1,l)})()}else{t[v]=r;const c=t[g];if(t[g]=i,t[y]===y&&r===b&&(t[v]=t[k],t[g]=t[m]),r===w&&i instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&o(i,E,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e{try{const r=t[g],o=!!n&&y===n[y];o&&(n[m]=r,n[k]=i);const s=e.run(a,void 0,o&&a!==d&&a!==h?[]:[r]);S(n,!0,s)}catch(r){S(n,!1,r)}},n)}const P=function(){};class Z{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return S(new this(null),b,t)}static reject(t){return S(new this(null),w,t)}static race(t){let e,n,r=new this((t,r)=>{e=t,n=r});function o(t){e(t)}function i(t){n(t)}for(let a of t)p(a)||(a=this.resolve(a)),a.then(o,i);return r}static all(t){return Z.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,r,o=new this((t,e)=>{n=t,r=e}),i=2,a=0;const s=[];for(let u of t){p(u)||(u=this.resolve(u));const t=a;try{u.then(r=>{s[t]=e?e.thenCallback(r):r,i--,0===i&&n(s)},o=>{e?(s[t]=e.errorCallback(o),i--,0===i&&n(s)):r(o)})}catch(c){r(c)}i++,a++}return i-=2,0===i&&n(s),o}constructor(t){const e=this;if(!(e instanceof Z))throw new Error("Must be an instanceof Promise.");e[v]=_,e[g]=[];try{t&&t(T(e,b),T(e,w))}catch(n){S(e,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(t,n){let r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=this.constructor||Z);const o=new r(P),i=e.current;return this[v]==_?this[g].push(i,o,t,n):j(this,i,o,t,n),o}catch(t){return this.then(null,t)}finally(t){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=Z);const r=new n(P);r[y]=y;const o=e.current;return this[v]==_?this[g].push(o,r,t,t):j(this,o,r,t,t),r}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;const D=t[c]=t.Promise;t.Promise=Z;const C=i("thenPatched");function I(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const o=e.then;e[u]=o,t.prototype.then=function(t,e){return new Z((t,e)=>{o.call(this,t,e)}).then(t,e)},t[C]=!0}return n.patchThen=I,D&&(I(D),z(t,"fetch",t=>{return e=t,function(t,n){let r=e.apply(t,n);if(r instanceof Z)return r;let o=r.constructor;return o[C]||I(o),r};var e})),Promise[e.__symbol__("uncaughtPromiseErrors")]=a,Z}),Zone.__load_patch("toString",t=>{const e=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=t[r];if(n)return e.call(n)}if(this===Error){const n=t[o];if(n)return e.call(n)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});let N=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){N=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(ft){N=!1}const F={useG:!0},L={},H={},W=new RegExp("^"+f+"(\\w+)(true|false)$"),G=d("propagationStopped");function q(t,e){const n=(e?e(t):t)+l,r=(e?e(t):t)+u,o=f+n,i=f+r;L[t]={},L[t].false=o,L[t].true=i}function U(t,e,r){const o=r&&r.add||i,s=r&&r.rm||a,c=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=d(o),v="."+o+":",g=function(t,e,n){if(t.isRemoved)return;const r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=t=>r.handleEvent(t),t.originalDelegate=r),t.invoke(t,e,[n]);const o=t.options;o&&"object"==typeof o&&o.once&&e[s].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)},y=function(e){if(!(e=e||t.event))return;const n=this||e.target||t,r=n[L[e.type].false];if(r)if(1===r.length)g(r[0],n,e);else{const t=r.slice();for(let r=0;rfunction(e,n){e[G]=!0,t&&t.apply(e,n)})}function $(t,e,n,r,o){const i=Zone.__symbol__(r);if(e[i])return;const a=e[i]=e[r];e[r]=function(i,s,c){return s&&s.prototype&&o.forEach(function(e){const o=`${n}.${r}::`+e,i=s.prototype;if(i.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(i,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,o),t._redefineProperty(s.prototype,e,n)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}),a.call(e,i,s,c)},t.attachOriginToPatched(e[r],a)}const V=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],X=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],Y=["load"],J=["blur","error","focus","load","resize","scroll","messageerror"],Q=["bounce","finish","start"],tt=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],et=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],nt=["close","error","open","message"],rt=["error","message"],ot=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],V,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function it(t,e,n){if(!n||0===n.length)return e;const r=n.filter(e=>e.target===t);if(!r||0===r.length)return e;const o=r[0].ignoreProperties;return e.filter(t=>-1===o.indexOf(t))}function at(t,e,n,r){t&&j(t,it(t,e,n),r)}function st(t,e){if(w&&!E)return;if(Zone[t.symbol("patchEvents")])return;const r="undefined"!=typeof WebSocket,o=e.__Zone_ignore_on_properties;if(T){const t=window,e=M()?[{target:t,ignoreProperties:["error"]}]:[];at(t,ot.concat(["messageerror"]),o?o.concat(e):o,n(t)),at(Document.prototype,ot,o),void 0!==t.SVGElement&&at(t.SVGElement.prototype,ot,o),at(Element.prototype,ot,o),at(HTMLElement.prototype,ot,o),at(HTMLMediaElement.prototype,X,o),at(HTMLFrameSetElement.prototype,V.concat(J),o),at(HTMLBodyElement.prototype,V.concat(J),o),at(HTMLFrameElement.prototype,Y,o),at(HTMLIFrameElement.prototype,Y,o);const r=t.HTMLMarqueeElement;r&&at(r.prototype,Q,o);const i=t.Worker;i&&at(i.prototype,rt,o)}const i=e.XMLHttpRequest;i&&at(i.prototype,tt,o);const a=e.XMLHttpRequestEventTarget;a&&at(a&&a.prototype,tt,o),"undefined"!=typeof IDBIndex&&(at(IDBIndex.prototype,et,o),at(IDBRequest.prototype,et,o),at(IDBOpenDBRequest.prototype,et,o),at(IDBDatabase.prototype,et,o),at(IDBTransaction.prototype,et,o),at(IDBCursor.prototype,et,o)),r&&at(WebSocket.prototype,nt,o)}Zone.__load_patch("util",(n,s,c)=>{c.patchOnProperties=j,c.patchMethod=z,c.bindArguments=k,c.patchMacroTask=D;const h=s.__symbol__("BLACK_LISTED_EVENTS"),d=s.__symbol__("UNPATCHED_EVENTS");n[d]&&(n[h]=n[d]),n[h]&&(s[h]=s[d]=n[h]),c.patchEventPrototype=K,c.patchEventTarget=U,c.isIEOrEdge=A,c.ObjectDefineProperty=e,c.ObjectGetOwnPropertyDescriptor=t,c.ObjectCreate=r,c.ArraySlice=o,c.patchClass=Z,c.wrapWithCurrentZone=p,c.filterProperties=it,c.attachOriginToPatched=C,c._redefineProperty=Object.defineProperty,c.patchCallbacks=$,c.getGlobalObjects=()=>({globalSources:H,zoneSymbolEventNames:L,eventNames:ot,isBrowser:T,isMix:E,isNode:w,TRUE_STR:u,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f,ADD_EVENT_LISTENER_STR:i,REMOVE_EVENT_LISTENER_STR:a})});const ct=d("zoneTask");function ut(t,e,n,r){let o=null,i=null;n+=r;const a={};function s(e){const n=e.data;return n.args[0]=function(){return e.invoke.apply(this,arguments)},n.handleId=o.apply(t,n.args),e}function c(e){return i.call(t,e.data.handleId)}o=z(t,e+=r,n=>function(o,i){if("function"==typeof i[0]){const t={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},n=i[0];i[0]=function(){try{return n.apply(this,arguments)}finally{t.isPeriodic||("number"==typeof t.handleId?delete a[t.handleId]:t.handleId&&(t.handleId[ct]=null))}};const o=h(e,i[0],t,s,c);if(!o)return o;const u=o.data.handleId;return"number"==typeof u?a[u]=o:u&&(u[ct]=o),u&&u.ref&&u.unref&&"function"==typeof u.ref&&"function"==typeof u.unref&&(o.ref=u.ref.bind(u),o.unref=u.unref.bind(u)),"number"==typeof u||u?u:o}return n.apply(t,i)}),i=z(t,n,e=>function(n,r){const o=r[0];let i;"number"==typeof o?i=a[o]:(i=o&&o[ct],i||(i=o)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[ct]=null),i.zone.cancelTask(i)):e.apply(t,r)})}function lt(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let c=0;c{const e=t[Zone.__symbol__("legacyPatch")];e&&e()}),Zone.__load_patch("queueMicrotask",(t,e,n)=>{n.patchMethod(t,"queueMicrotask",t=>function(t,n){e.current.scheduleMicroTask("queueMicrotask",n[0])})}),Zone.__load_patch("timers",t=>{const e="set",n="clear";ut(t,e,n,"Timeout"),ut(t,e,n,"Interval"),ut(t,e,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{ut(t,"request","cancel","AnimationFrame"),ut(t,"mozRequest","mozCancel","AnimationFrame"),ut(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(r,i){return e.current.run(n,t,i,o)})}),Zone.__load_patch("EventTarget",(t,e,n)=>{!function(t,e){e.patchEventPrototype(t,e)}(t,n),lt(t,n);const r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,[r.prototype])}),Zone.__load_patch("MutationObserver",(t,e,n)=>{Z("MutationObserver"),Z("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,e,n)=>{Z("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,e,n)=>{Z("FileReader")}),Zone.__load_patch("on_property",(t,e,n)=>{st(n,t)}),Zone.__load_patch("customElements",(t,e,n)=>{!function(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();(n||r)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)}),Zone.__load_patch("XHR",(t,e)=>{!function(t){const l=t.XMLHttpRequest;if(!l)return;const f=l.prototype;let p=f[s],v=f[c];if(!p){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;p=t[s],v=t[c]}}const g="readystatechange",y="scheduled";function m(t){const r=t.data,a=r.target;a[i]=!1,a[u]=!1;const l=a[o];p||(p=a[s],v=a[c]),l&&v.call(a,g,l);const f=a[o]=()=>{if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&t.state===y){const n=a[e.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const o=t.invoke;t.invoke=function(){const n=a[e.__symbol__("loadfalse")];for(let e=0;efunction(t,e){return t[r]=0==e[2],t[a]=e[1],b.apply(t,e)}),w=d("fetchTaskAborting"),T=d("fetchTaskScheduling"),E=z(f,"send",()=>function(t,n){if(!0===e.current[T])return E.apply(t,n);if(t[r])return E.apply(t,n);{const e={target:t,url:t[a],isPeriodic:!1,args:n,aborted:!1},r=h("XMLHttpRequest.send",k,e,m,_);t&&!0===t[u]&&!e.aborted&&r.state===y&&r.invoke()}}),S=z(f,"abort",()=>function(t,r){const o=t[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===e.current[w])return S.apply(t,r)})}(t);const n=d("xhrTask"),r=d("xhrSync"),o=d("xhrListener"),i=d("xhrScheduled"),a=d("xhrURL"),u=d("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const r=e.constructor.name;for(let o=0;o{const e=function(){return t.apply(this,k(arguments,r+"."+i))};return C(e,t),e})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(e){return function(n){B(t,e).forEach(r=>{const o=t.PromiseRejectionEvent;if(o){const t=new o(e,{promise:n.promise,reason:n.rejection});r.invoke(t)}})}}t.PromiseRejectionEvent&&(e[d("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[d("rejectionHandledHandler")]=n("rejectionhandled"))})},7834:(t,e,n)=>{"use strict";const r="undefined"!=typeof globalThis&&globalThis,o="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,a="undefined"!=typeof global&&global,s=function(t,...e){if(s.translate){const n=s.translate(t,e);t=n[0],e=n[1]}let n=c(t[0],t.raw[0]);for(let r=1;r{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},5143:(t,e,n)=>{var r=n(726);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},6063:t=>{t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},1099:(t,e,n)=>{var r=n(726);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},452:(t,e,n)=>{var r=n(8643),o=n(5902),i=n(222),a=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4115:(t,e,n)=>{var r=n(9727),o=n(6169),i=n(6174),a=n(5902),s=n(2889),c=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,l=4==t,f=6==t,p=7==t,h=5==t||f;return function(d,v,g,y){for(var m,k,_=i(d),b=o(_),w=r(v,g,3),T=a(b.length),E=0,S=y||s,O=e?S(d,T):n||p?S(d,0):void 0;T>E;E++)if((h||E in b)&&(k=w(m=b[E],E,_),t))if(e)O[E]=k;else if(k)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:c.call(O,m)}else switch(t){case 4:return!1;case 7:c.call(O,m)}return f?-1:u||l?l:O}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1497:(t,e,n)=>{var r=n(726),o=n(9448),i=n(4563)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},2889:(t,e,n)=>{var r=n(1497);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6297:(t,e,n)=>{var r=n(4563)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(s){}return n}},6644:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9420:(t,e,n)=>{var r=n(2900),o=n(6644),i=n(4563)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},5692:(t,e,n)=>{"use strict";var r=n(2975).f,o=n(8724),i=n(8715),a=n(9727),s=n(6063),c=n(3284),u=n(6038),l=n(7374),f=n(7012),p=n(4238).fastKey,h=n(2493),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,u){var l=t(function(t,r){s(t,l,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&c(r,t[u],{that:t,AS_ENTRIES:n})}),h=v(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,n=h(e),r=y(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(l.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);u(t,e,function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(e)}}},6491:(t,e,n)=>{"use strict";var r=n(8715),o=n(4238).getWeakData,i=n(1099),a=n(726),s=n(6063),c=n(3284),u=n(4115),l=n(7791),f=n(2493),p=f.set,h=f.getterFor,d=u.find,v=u.findIndex,g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},k=function(t,e){return d(t.entries,function(t){return t[0]===e})};m.prototype={get:function(t){var e=k(this,t);if(e)return e[1]},has:function(t){return!!k(this,t)},set:function(t,e){var n=k(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,function(e){return e[0]===t});return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,u){var f=t(function(t,r){s(t,f,e),p(t,{type:e,id:g++,frozen:void 0}),null!=r&&c(r,t[u],{that:t,AS_ENTRIES:n})}),d=h(e),v=function(t,e,n){var r=d(t),a=o(i(e),!0);return!0===a?y(r).set(e,n):a[r.id]=n,t};return r(f.prototype,{delete:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&l(n,e.id)}}),r(f.prototype,n?{get:function(t){var e=d(this);if(a(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),f}}},1603:(t,e,n)=>{"use strict";var r=n(1163),o=n(1864),i=n(7215),a=n(7763),s=n(4238),c=n(3284),u=n(6063),l=n(726),f=n(8597),p=n(6297),h=n(8242),d=n(8267);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=v?"set":"add",m=o[t],k=m&&m.prototype,_=m,b={},w=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(g||k.forEach&&!f(function(){(new m).entries().next()}))))_=n.getConstructor(e,t,v,y),s.enable();else if(i(t,!0)){var T=new _,E=T[y](g?{}:-0,1)!=T,S=f(function(){T.has(1)}),O=p(function(t){new m(t)}),x=!g&&f(function(){for(var t=new m,e=5;e--;)t[y](e,e);return!t.has(-0)});O||((_=e(function(e,n){u(e,_,t);var r=d(new m,e,_);return null!=n&&c(n,r[y],{that:r,AS_ENTRIES:v}),r})).prototype=k,k.constructor=_),(S||x)&&(w("delete"),w("has"),v&&w("get")),(x||E)&&w(y),g&&k.clear&&delete k.clear}return b[t]=_,r({global:!0,forced:_!=m},b),h(_,t),g||n.setStrong(_,t,v),_}},9:(t,e,n)=>{var r=n(7791),o=n(9376),i=n(3099),a=n(2975);t.exports=function(t,e){for(var n=o(e),s=a.f,c=i.f,u=0;u{var r=n(8597);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},7453:(t,e,n)=>{"use strict";var r=n(2053).IteratorPrototype,o=n(8724),i=n(3203),a=n(8242),s=n(2339),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,u,!1,!0),s[u]=c,t}},815:(t,e,n)=>{var r=n(7012),o=n(2975),i=n(3203);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},3203:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6038:(t,e,n)=>{"use strict";var r=n(1163),o=n(7453),i=n(3963),a=n(1464),s=n(8242),c=n(815),u=n(7763),l=n(4563),f=n(7515),p=n(2339),h=n(2053),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",m="values",k="entries",_=function(){return this};t.exports=function(t,e,n,l,h,b,w){o(n,e,l);var T,E,S,O=function(t){if(t===h&&z)return z;if(!v&&t in P)return P[t];switch(t){case y:case m:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",j=!1,P=t.prototype,Z=P[g]||P["@@iterator"]||h&&P[h],z=!v&&Z||O(h),D="Array"==e&&P.entries||Z;if(D&&(T=i(D.call(new t)),d!==Object.prototype&&T.next&&(f||i(T)===d||(a?a(T,d):"function"!=typeof T[g]&&c(T,g,_)),s(T,x,!0,!0),f&&(p[x]=_))),h==m&&Z&&Z.name!==m&&(j=!0,z=function(){return Z.call(this)}),f&&!w||P[g]===z||c(P,g,z),p[e]=z,h)if(E={values:O(m),keys:b?z:O(y),entries:O(k)},w)for(S in E)(v||j||!(S in P))&&u(P,S,E[S]);else r({target:e,proto:!0,forced:v||j},E);return E}},7012:(t,e,n)=>{var r=n(8597);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5815:(t,e,n)=>{var r=n(1864),o=n(726),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},3792:(t,e,n)=>{var r=n(3626);t.exports=r("navigator","userAgent")||""},7189:(t,e,n)=>{var r,o,i=n(1864),a=n(3792),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l?o=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},1001:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1163:(t,e,n)=>{var r=n(1864),o=n(3099).f,i=n(815),a=n(7763),s=n(2341),c=n(9),u=n(7215);t.exports=function(t,e){var n,l,f,p,h,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(p=e[l],f=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(v?l:d+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},8597:t=>{t.exports=function(t){try{return!!t()}catch(e){return!0}}},9352:(t,e,n)=>{var r=n(8597);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},9727:(t,e,n)=>{var r=n(7625);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},3626:(t,e,n)=>{var r=n(1864),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},3076:(t,e,n)=>{var r=n(9420),o=n(2339),i=n(4563)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},6414:(t,e,n)=>{var r=n(1099),o=n(3076);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},1864:t=>{var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},7791:(t,e,n)=>{var r=n(6174),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},3536:t=>{t.exports={}},7538:(t,e,n)=>{var r=n(3626);t.exports=r("document","documentElement")},7091:(t,e,n)=>{var r=n(7012),o=n(8597),i=n(5815);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},6169:(t,e,n)=>{var r=n(8597),o=n(6644),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},8267:(t,e,n)=>{var r=n(726),o=n(1464);t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},7720:(t,e,n)=>{var r=n(9941),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},4238:(t,e,n)=>{var r=n(1163),o=n(3536),i=n(726),a=n(7791),s=n(2975).f,c=n(4564),u=n(7388),l=n(4295),f=n(9352),p=!1,h=l("meta"),d=0,v=Object.isExtensible||function(){return!0},g=function(t){s(t,h,{value:{objectID:"O"+d++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=c.f,e=[].splice,n={};n[h]=1,t(n).length&&(c.f=function(n){for(var r=t(n),o=0,i=r.length;o{var r,o,i,a=n(1635),s=n(1864),c=n(726),u=n(815),l=n(7791),f=n(9941),p=n(2650),h=n(3536),d="Object already initialized";if(a||f.state){var v=f.state||(f.state=new(0,s.WeakMap)),g=v.get,y=v.has,m=v.set;r=function(t,e){if(y.call(v,t))throw new TypeError(d);return e.facade=t,m.call(v,t,e),e},o=function(t){return g.call(v,t)||{}},i=function(t){return y.call(v,t)}}else{var k=p("state");h[k]=!0,r=function(t,e){if(l(t,k))throw new TypeError(d);return e.facade=t,u(t,k,e),e},o=function(t){return l(t,k)?t[k]:{}},i=function(t){return l(t,k)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},1643:(t,e,n)=>{var r=n(4563),o=n(2339),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},9448:(t,e,n)=>{var r=n(6644);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7215:(t,e,n)=>{var r=n(8597),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},726:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},7515:t=>{t.exports=!1},6186:(t,e,n)=>{var r=n(3626),o=n(4431);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},3284:(t,e,n)=>{var r=n(1099),o=n(1643),i=n(5902),a=n(9727),s=n(6414),c=n(3076),u=n(7883),l=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var f,p,h,d,v,g,y,m=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),b=a(e,n&&n.that,1+m+_),w=function(t){return f&&u(f,"return",t),new l(!0,t)},T=function(t){return m?(r(t),_?b(t[0],t[1],w):b(t[0],t[1])):_?b(t,w):b(t)};if(k)f=t;else{if("function"!=typeof(p=c(t)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,d=i(t.length);d>h;h++)if((v=T(t[h]))&&v instanceof l)return v;return new l(!1)}f=s(t,p)}for(g=f.next;!(y=g.call(f)).done;){try{v=T(y.value)}catch(E){u(f,"throw",E)}if("object"==typeof v&&v&&v instanceof l)return v}return new l(!1)}},7883:(t,e,n)=>{var r=n(1099);t.exports=function(t,e,n){var o,i;r(t);try{if(void 0===(o=t.return)){if("throw"===e)throw n;return n}o=o.call(t)}catch(a){i=!0,o=a}if("throw"===e)throw n;if(i)throw o;return r(o),n}},2053:(t,e,n)=>{"use strict";var r,o,i,a=n(8597),s=n(3963),c=n(815),u=n(7791),l=n(4563),f=n(7515),p=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):h=!0);var d=null==r||a(function(){var t={};return r[p].call(t)!==t});d&&(r={}),f&&!d||u(r,p)||c(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2339:t=>{t.exports={}},7040:(t,e,n)=>{var r=n(7189),o=n(8597);t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},1635:(t,e,n)=>{var r=n(1864),o=n(7720),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},8724:(t,e,n)=>{var r,o=n(1099),i=n(988),a=n(1001),s=n(3536),c=n(7538),u=n(5815),l=n(2650)("IE_PROTO"),f=function(){},p=function(t){return"