From dc6d346c4a9dd95140b9118a79fd470e03ec2981 Mon Sep 17 00:00:00 2001 From: Parikshit Singh Date: Sat, 4 Feb 2023 02:24:01 +0530 Subject: [PATCH] opensource dist --- .gitignore | 1 - .../custom-angular-pipes/3rdpartylicenses.txt | 243 ++++++++++++++++++ dist/custom-angular-pipes/favicon.ico | Bin 0 -> 948 bytes dist/custom-angular-pipes/index.html | 12 + .../main.ec894221fdc3aa07cecf.js | 1 + .../polyfills.c0bba733dbe3fdc07036.js | 1 + .../runtime.afc25b4a4249d278ecdf.js | 1 + .../styles.243ba60e00c83a9e80e3.css | 1 + dist/ninjas-transforms/README.md | 24 ++ .../bundles/ninjas-transforms.umd.js | 153 +++++++++++ .../bundles/ninjas-transforms.umd.js.map | 1 + .../esm2015/lib/duration.pipe.js | 86 +++++++ dist/ninjas-transforms/esm2015/lib/index.js | 3 + .../esm2015/lib/ninjas-transforms.module.js | 21 ++ .../esm2015/ninjas-transforms.js | 5 + dist/ninjas-transforms/esm2015/public-api.js | 5 + .../fesm2015/ninjas-transforms.js | 115 +++++++++ .../fesm2015/ninjas-transforms.js.map | 1 + dist/ninjas-transforms/lib/duration.pipe.d.ts | 11 + dist/ninjas-transforms/lib/index.d.ts | 2 + .../lib/ninjas-transforms.module.d.ts | 7 + dist/ninjas-transforms/ninjas-transforms.d.ts | 5 + dist/ninjas-transforms/package.json | 18 ++ dist/ninjas-transforms/public-api.d.ts | 1 + projects/ninjas-transforms/package.json | 2 +- 25 files changed, 718 insertions(+), 2 deletions(-) create mode 100644 dist/custom-angular-pipes/3rdpartylicenses.txt create mode 100644 dist/custom-angular-pipes/favicon.ico create mode 100644 dist/custom-angular-pipes/index.html create mode 100644 dist/custom-angular-pipes/main.ec894221fdc3aa07cecf.js create mode 100644 dist/custom-angular-pipes/polyfills.c0bba733dbe3fdc07036.js create mode 100644 dist/custom-angular-pipes/runtime.afc25b4a4249d278ecdf.js create mode 100644 dist/custom-angular-pipes/styles.243ba60e00c83a9e80e3.css create mode 100644 dist/ninjas-transforms/README.md create mode 100644 dist/ninjas-transforms/bundles/ninjas-transforms.umd.js create mode 100644 dist/ninjas-transforms/bundles/ninjas-transforms.umd.js.map create mode 100644 dist/ninjas-transforms/esm2015/lib/duration.pipe.js create mode 100644 dist/ninjas-transforms/esm2015/lib/index.js create mode 100644 dist/ninjas-transforms/esm2015/lib/ninjas-transforms.module.js create mode 100644 dist/ninjas-transforms/esm2015/ninjas-transforms.js create mode 100644 dist/ninjas-transforms/esm2015/public-api.js create mode 100644 dist/ninjas-transforms/fesm2015/ninjas-transforms.js create mode 100644 dist/ninjas-transforms/fesm2015/ninjas-transforms.js.map create mode 100644 dist/ninjas-transforms/lib/duration.pipe.d.ts create mode 100644 dist/ninjas-transforms/lib/index.d.ts create mode 100644 dist/ninjas-transforms/lib/ninjas-transforms.module.d.ts create mode 100644 dist/ninjas-transforms/ninjas-transforms.d.ts create mode 100644 dist/ninjas-transforms/package.json create mode 100644 dist/ninjas-transforms/public-api.d.ts diff --git a/.gitignore b/.gitignore index de51f68..c931f4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output -/dist /tmp /out-tsc # Only exists if Bazel was run diff --git a/dist/custom-angular-pipes/3rdpartylicenses.txt b/dist/custom-angular-pipes/3rdpartylicenses.txt new file mode 100644 index 0000000..c61a05e --- /dev/null +++ b/dist/custom-angular-pipes/3rdpartylicenses.txt @@ -0,0 +1,243 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +ninjas-transforms + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2022 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/dist/custom-angular-pipes/favicon.ico b/dist/custom-angular-pipes/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 + + CustomAngularPipes + + + + + + + + + \ No newline at end of file diff --git a/dist/custom-angular-pipes/main.ec894221fdc3aa07cecf.js b/dist/custom-angular-pipes/main.ec894221fdc3aa07cecf.js new file mode 100644 index 0000000..ae17064 --- /dev/null +++ b/dist/custom-angular-pipes/main.ec894221fdc3aa07cecf.js @@ -0,0 +1 @@ +(self.webpackChunkcustom_angular_pipes=self.webpackChunkcustom_angular_pipes||[]).push([[179],{255:ao=>{function mn(uo){return Promise.resolve().then(()=>{var yn=new Error("Cannot find module '"+uo+"'");throw yn.code="MODULE_NOT_FOUND",yn})}mn.keys=()=>[],mn.resolve=mn,mn.id=255,ao.exports=mn},798:(ao,mn,uo)=>{"use strict";function yn(e){return"function"==typeof e}let wa=!1;const Et={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else wa&&console.log("RxJS: Back to a better error behavior. Thank you. <3");wa=e},get useDeprecatedSynchronousErrorHandling(){return wa}};function ir(e){setTimeout(()=>{throw e},0)}const vi={closed:!0,next(e){},error(e){if(Et.useDeprecatedSynchronousErrorHandling)throw e;ir(e)},complete(){}},Ma=Array.isArray||(e=>e&&"number"==typeof e.length);function Ia(e){return null!==e&&"object"==typeof e}const bi=(()=>{function e(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e})();class fe{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:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof fe)n.remove(this);else if(null!==n)for(let s=0;st.concat(n instanceof bi?n.errors:n),[])}fe.EMPTY=((e=new fe).closed=!0,e);const wi="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ye extends fe{constructor(t,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=vi;break;case 1:if(!t){this.destination=vi;break}if("object"==typeof t){t instanceof Ye?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Cd(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Cd(this,t,n,r)}}[wi](){return this}static create(t,n,r){const o=new Ye(t,n,r);return o.syncErrorThrowable=!1,o}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 Cd extends Ye{constructor(t,n,r,o){super(),this._parentSubscriber=t;let i,s=this;yn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==vi&&(s=Object.create(n),yn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Et.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Et;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):ir(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;ir(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const n=()=>this._complete.call(this._context);Et.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,n){try{t.call(this._context,n)}catch(r){if(this.unsubscribe(),Et.useDeprecatedSynchronousErrorHandling)throw r;ir(r)}}__tryOrSetError(t,n,r){if(!Et.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Et.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(ir(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const lo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ed(e){return e}let ke=(()=>{class e{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof Ye)return e;if(e[wi])return e[wi]()}return e||t||n?new Ye(e,t,n):new Ye(vi)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Et.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Et.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Et.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof Ye?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=bd(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[lo](){return this}pipe(...n){return 0===n.length?this:function(e){return 0===e.length?Ed:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=bd(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bd(e){if(e||(e=Et.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const co=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class QD extends fe{constructor(t,n){super(),this.subject=t,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,n=t.observers;if(this.subject=null,!n||0===n.length||t.isStopped||t.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class wd extends Ye{constructor(t){super(t),this.destination=t}}let Aa=(()=>{class e extends ke{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[wi](){return new wd(this)}lift(n){const r=new Md(this,this);return r.operator=n,r}next(n){if(this.closed)throw new co;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew Md(t,n),e})();class Md extends Aa{constructor(t,n){super(),this.destination=t,this.source=n}next(t){const{destination:n}=this;n&&n.next&&n.next(t)}error(t){const{destination:n}=this;n&&n.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:n}=this;return n?this.source.subscribe(t):fe.EMPTY}}function Ta(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new YD(e,t))}}class YD{constructor(t,n){this.project=t,this.thisArg=n}call(t,n){return n.subscribe(new ZD(t,this.project,this.thisArg))}}class ZD extends Ye{constructor(t,n,r){super(t),this.project=n,this.count=0,this.thisArg=r||this}_next(t){let n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const Id=e=>t=>{for(let n=0,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function Td(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const Sd=e=>{if(e&&"function"==typeof e[lo])return(e=>t=>{const n=e[lo]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(Ad(e))return Id(e);if(Td(e))return(e=>t=>(e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ir),t))(e);if(e&&"function"==typeof e[Mi])return(e=>t=>{const n=e[Mi]();for(;;){let r;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const n=`You provided ${Ia(e)?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Nd(e,t){return new ke(n=>{const r=new fe;let o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Sa(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[lo]}(e))return function(e,t){return new ke(n=>{const r=new fe;return r.add(t.schedule(()=>{const o=e[lo]();r.add(o.subscribe({next(i){r.add(t.schedule(()=>n.next(i)))},error(i){r.add(t.schedule(()=>n.error(i)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Td(e))return function(e,t){return new ke(n=>{const r=new fe;return r.add(t.schedule(()=>e.then(o=>{r.add(t.schedule(()=>{n.next(o),r.add(t.schedule(()=>n.complete()))}))},o=>{r.add(t.schedule(()=>n.error(o)))}))),r})}(e,t);if(Ad(e))return Nd(e,t);if(function(e){return e&&"function"==typeof e[Mi]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new ke(n=>{const r=new fe;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[Mi](),r.add(t.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof ke?e:new ke(Sd(e))}class uC extends Ye{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 lC extends Ye{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function xd(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(xd((o,i)=>Sa(e(o,i)).pipe(Ta((s,a)=>t(o,s,i,a))),n)):("number"==typeof t&&(n=t),r=>r.lift(new dC(e,n)))}class dC{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new fC(t,this.project,this.concurrent))}}class fC extends lC{constructor(t,n,r=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=r,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 hC(e=Number.POSITIVE_INFINITY){return xd(Ed,e)}function Fd(){return function(t){return t.lift(new mC(t))}}class mC{constructor(t){this.connectable=t}call(t,n){const{connectable:r}=this;r._refCount++;const o=new yC(t,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class yC extends Ye{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=t._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class _C extends ke{constructor(t,n){super(),this.source=t,this.subjectFactory=n,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 fe,t.add(this.source.subscribe(new CC(this.getSubject(),this))),t.closed&&(this._connection=null,t=fe.EMPTY)),t}refCount(){return Fd()(this)}}const DC=(()=>{const e=_C.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class CC extends wd{constructor(t,n){super(t),this.connectable=n}_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 n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}function wC(){return new Aa}function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function Na(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function k(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xa(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const IC=q({__forward_ref__:q});function X(e){return e.__forward_ref__=X,e.toString=function(){return k(this())},e}function w(e){return Rd(e)?e():e}function Rd(e){return"function"==typeof e&&e.hasOwnProperty(IC)&&e.__forward_ref__===X}class _n extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function Le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}function Ii(e,t){const n=t?` in ${t}`:"";throw new _n("201",`No provider for ${Le(e)} found${n}`)}function Je(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function K(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function tn(e){return Pd(e,Ai)||Pd(e,Od)}function Pd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Vd(e){return e&&(e.hasOwnProperty(Ra)||e.hasOwnProperty(RC))?e[Ra]:null}const Ai=q({\u0275prov:q}),Ra=q({\u0275inj:q}),Od=q({ngInjectableDef:q}),RC=q({ngInjectorDef:q});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let Pa;function Dn(e){const t=Pa;return Pa=e,t}function kd(e,t,n){const r=tn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==t?t:void Ii(k(e),"Injector")}function Cn(e){return{toString:e}.toString()}var ut=(()=>((ut=ut||{})[ut.OnPush=0]="OnPush",ut[ut.Default=1]="Default",ut))(),_e=(()=>((_e=_e||{})[_e.Emulated=0]="Emulated",_e[_e.None=2]="None",_e[_e.ShadowDom=3]="ShadowDom",_e))();const VC="undefined"!=typeof globalThis&&globalThis,OC="undefined"!=typeof window&&window,kC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z=VC||"undefined"!=typeof global&&global||OC||kC,sr={},Y=[],Ti=q({\u0275cmp:q}),Va=q({\u0275dir:q}),Oa=q({\u0275pipe:q}),Ld=q({\u0275mod:q}),LC=q({\u0275loc:q}),nn=q({\u0275fac:q}),fo=q({__NG_ELEMENT_ID__:q});let BC=0;function ka(e){return Cn(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ut.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,s=e.pipes;return r.id+=BC++,r.inputs=$d(e.inputs,n),r.outputs=$d(e.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Bd):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(jd):null,r})}function Bd(e){return Te(e)||function(e){return e[Va]||null}(e)}function jd(e){return function(e){return e[Oa]||null}(e)}const Hd={};function Bt(e){return Cn(()=>{const t={type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Hd[e.id]=e.type),t})}function $d(e,t){if(null==e)return sr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const S=ka;function Be(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Te(e){return e[Ti]||null}function lt(e,t){const n=e[Ld]||null;if(!n&&!0===t)throw new Error(`Type ${k(e)} does not have '\u0275mod' property.`);return n}const V=11;function jt(e){return Array.isArray(e)&&"object"==typeof e[1]}function bt(e){return Array.isArray(e)&&!0===e[1]}function ja(e){return 0!=(8&e.flags)}function Fi(e){return 2==(2&e.flags)}function Ri(e){return 1==(1&e.flags)}function wt(e){return null!==e.template}function qC(e){return 0!=(512&e[2])}function jn(e,t){return e.hasOwnProperty(nn)?e[nn]:null}class Gd{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function et(){return Wd}function Wd(e){return e.type.prototype.ngOnChanges&&(e.setInput=YC),KC}function KC(){const e=zd(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===sr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function YC(e,t,n,r){const o=zd(e)||function(e,t){return e[qd]=t}(e,{previous:sr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new Gd(u&&u.currentValue,t,s===sr),e[r]=t}et.ngInherit=!0;const qd="__ngSimpleChanges__";function zd(e){return e[qd]||null}let Ua;function ce(e){return!!e.listen}const Yd={createRenderer:(e,t)=>void 0!==Ua?Ua:"undefined"!=typeof document?document:void 0};function pe(e){for(;Array.isArray(e);)e=e[0];return e}function Pi(e,t){return pe(t[e])}function tt(e,t){return pe(t[e.index])}function Wa(e,t){return e.data[t]}function nt(e,t){const n=t[e];return jt(n)?n:n[0]}function qa(e){return 128==(128&e[2])}function vn(e,t){return null==t?null:e[t]}function Jd(e){e[18]=0}function za(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const N={lFrame:af(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Xd(){return N.bindingsEnabled}function D(){return N.lFrame.lView}function $(){return N.lFrame.tView}function De(){let e=ef();for(;null!==e&&64===e.type;)e=e.parent;return e}function ef(){return N.lFrame.currentTNode}function Ht(e,t){const n=N.lFrame;n.currentTNode=e,n.isParent=t}function Qa(){return N.lFrame.isParent}function Vi(){return N.isInCheckNoChangesMode}function Oi(e){N.isInCheckNoChangesMode=e}function He(){const e=N.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fr(){return N.lFrame.bindingIndex++}function fE(e,t){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ya(t)}function Ya(e){N.lFrame.currentDirectiveIndex=e}function Ja(e){N.lFrame.currentQueryIndex=e}function pE(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function of(e,t,n){if(n&A.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&A.Host||(o=pE(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=N.lFrame=sf();return r.currentTNode=t,r.lView=e,!0}function ki(e){const t=sf(),n=e[1];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sf(){const e=N.lFrame,t=null===e?null:e.child;return null===t?af(e):t}function af(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function uf(){const e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const lf=uf;function Li(){const e=uf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function $e(){return N.lFrame.selectedIndex}function bn(e){N.lFrame.selectedIndex=e}function Bi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class yo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function $i(e,t,n){const r=ce(e);let o=0;for(;ot){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let nu=!0;function Gi(e){const t=nu;return nu=e,t}let SE=0;function Do(e,t){const n=ou(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ru(r.data,e),ru(t,null),ru(r.blueprint,null));const o=Wi(e,t),i=e.injectorIndex;if(function(e){return-1!==e}(o)){const s=hr(o),a=pr(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ru(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ou(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Wi(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function qi(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(fo)&&(r=n[fo]),null==r&&(r=n[fo]=SE++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:FE:t}(n);if("function"==typeof i){if(!of(t,e,r))return r&A.Host?mf(o,n,r):yf(t,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;Ii(n)}finally{lf()}}else if("number"==typeof i){let s=null,a=ou(e,t),u=-1,l=r&A.Host?t[16][6]:null;for((-1===a||r&A.SkipSelf)&&(u=-1===a?Wi(e,t):t[a+8],-1!==u&&Ef(r,!1)?(s=t[1],a=hr(u),t=pr(u,t)):a=-1);-1!==a;){const c=t[1];if(Cf(i,a,c.data)){const d=RE(a,t,n,s,r,l);if(d!==Df)return d}u=t[a+8],-1!==u&&Ef(r,t[1].data[a+8]===l)&&Cf(i,a,t)?(s=c,a=hr(u),t=pr(u,t)):a=-1}}}return yf(t,n,r,o)}const Df={};function FE(){return new gr(De(),D())}function RE(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&wt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Fi(a)&&nu:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==c?Co(t,s,c,a):Df}function Co(e,t,n,r){let o=e[n];const i=t.data;if(function(e){return e instanceof yo}(o)){const s=o;s.resolving&&function(e,t){throw new _n("200",`Circular dependency in DI detected for ${e}`)}(Le(i[n]));const a=Gi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Dn(s.injectImpl):null;of(e,r,A.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Wd(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&Dn(u),Gi(a),s.resolving=!1,lf()}}return o}function Cf(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[nn]||iu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[nn]||iu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function iu(e){return Rd(e)?()=>{const t=iu(w(e));return t&&t()}:jn(e)}const yr="__parameters__";function Hn(e,t,n){return Cn(()=>{const r=function(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(yr)?u[yr]:Object.defineProperty(u,yr,{value:[]})[yr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class U{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=K({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ut(e,t){e.forEach(n=>Array.isArray(n)?Ut(n,t):t(n))}function $n(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function rt(e,t,n){let r=Dr(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function lu(e,t){const n=Dr(e,t);if(n>=0)return e[1|n]}function Dr(e,t){return function(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o< ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):k(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(qE,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Cr]=null,e}const Ao=Io(Hn("Inject",e=>({token:e})),-1),Gt=Io(Hn("Optional"),8),Gn=Io(Hn("SkipSelf"),4);var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();const Rf="__ngContext__";function Ne(e,t){e[Rf]=t}function mu(e){const t=function(e){return e[Rf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function _u(e,t){return undefined(e,t)}function No(e){const t=e[3];return bt(t)?t[3]:t}function Du(e){return jf(e[13])}function Cu(e){return jf(e[4])}function jf(e){for(;null!==e&&!bt(e);)e=e[4];return e}function br(e,t,n,r,o){if(null!=r){let i,s=!1;bt(r)?i=r:jt(r)&&(s=!0,r=r[0]);const a=pe(r);0===e&&null!==n?null==o?qf(t,n,a):Wn(t,n,a,o||null,!0):1===e&&null!==n?Wn(t,n,a,o||null,!0):2===e?function(e,t,n){const r=function(e,t){return ce(e)?e.parentNode(t):t.parentNode}(e,t);r&&function(e,t,n,r){ce(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,o){const i=n[7];i!==pe(n)&&br(t,e,r,i,o);for(let a=10;a=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(z))();function zt(e){return e instanceof Function?e():e}function vh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const bh="ng-template";function mb(e,t,n){let r=0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==vh(h,l,0)||2&r&&l!==f){if(Mt(r))return!1;s=!0}}}}else{if(!s&&!Mt(r)&&!Mt(u))return!1;if(s&&Mt(u))continue;s=!1,r=u|1&r}}return Mt(r)||s}function Mt(e){return 0==(1&e)}function Db(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Mt(s)&&(t+=Ih(i,o),o=""),r=s,i=i||!Mt(r);n++}return""!==o&&(t+=Ih(i,o)),t}const F={};function on(e){Ah($(),D(),$e()+e,Vi())}function Ah(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&ji(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Hi(t,i,0,n)}bn(n)}function as(e,t){return e<<17|t<<2}function It(e){return e>>17&32767}function ku(e){return 2|e}function sn(e){return(131068&e)>>2}function Lu(e,t){return-131069&e|t<<2}function Bu(e){return 1|e}function kh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&Ah(e,t,20,Vi()),n(r,o)}finally{bn(i)}}function jh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=cs(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function cs(e,t,n,r,o,i,s,a,u,l){const c=20+r,d=c+o,f=function(e,t){const n=[];for(let r=0;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function zh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Qh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Yb(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Zu(n)}}function Zu(e){for(let r=Du(e);null!==r;r=Cu(r))for(let o=10;o0&&Zu(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Zu(o)}}function rw(e,t){const n=nt(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Xh(e){return e[7]||(e[7]=[])}function ep(e){return e.cleanup||(e.cleanup=[])}function np(e,t){const n=e[9],r=n?n.get(Qn,null):null;r&&r.handleError(t)}function rp(e,t,n,r,o){for(let i=0;ithis.processProvider(a,t,n)),Ut([t],a=>this.processInjectorType(a,[],i)),this.records.set(Tr,Sr(void 0,this));const s=this.records.get(ko);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:k(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=wo,r=A.Default){this.assertNotDestroyed();const o=Er(this),i=Dn(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof U}(t)&&tn(t);a=u&&this.injectableDefInScope(u)?Sr(rl(t),Lo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&A.Self?ip():this.parent).get(t,n=r&A.Optional&&n===wo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Cr]=s[Cr]||[]).unshift(k(t)),o)throw s;return Af(s,t,"R3InjectorError",this.source)}throw s}finally{Dn(i),Er(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(k(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=w(t)))return!1;let o=Vd(t);const i=null==o&&t.ngModule||void 0,s=void 0===i?t:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=Vd(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{Ut(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||Y))}}this.injectorDefTypes.add(s);const u=jn(s)||(()=>new s);this.records.set(s,Sr(u,Lo));const l=o.providers;if(null!=l&&!a){const c=t;Ut(l,d=>this.processProvider(d,c,l))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let o=Nr(t=w(t))?t:w(t&&t.provide);const i=function(e,t,n){return up(e)?Sr(void 0,e.useValue):Sr(ap(e),Lo)}(t);if(Nr(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Sr(void 0,Lo,!0),s.factory=()=>Un(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,i)}hydrate(t,n){return n.value===Lo&&(n.value=dw,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=w(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function rl(e){const t=tn(e),n=null!==t?t.factory:jn(e);if(null!==n)return n;if(e instanceof U)throw new Error(`Token ${k(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function ap(e,t,n){let r;if(Nr(e)){const o=w(e);return jn(o)||rl(o)}if(up(e))r=()=>w(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Un(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>H(w(e.useExisting));else{const o=w(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return jn(o)||rl(o);r=()=>new o(...Un(e.deps))}return r}function Sr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function up(e){return null!==e&&"object"==typeof e&&hu in e}function Nr(e){return"function"==typeof e}const lp=function(e,t,n){return function(e,t=null,n=null,r){const o=sp(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let ne=(()=>{class e{static create(n,r){return Array.isArray(n)?lp(n,r,""):lp(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=wo,e.NULL=new op,e.\u0275prov=K({token:e,providedIn:"any",factory:()=>H(Tr)}),e.__NG_ELEMENT_ID__=-1,e})();function Pw(e,t){Bi(mu(e)[1],De())}function re(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(wt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=ll(e.inputs),s.declaredInputs=ll(e.declaredInputs),s.outputs=ll(e.outputs);const a=o.hostBindings;a&&Lw(e,a);const u=o.viewQuery,l=o.contentQueries;if(u&&Ow(e,u),l&&kw(e,l),Na(e.inputs,o.inputs),Na(e.declaredInputs,o.declaredInputs),Na(e.outputs,o.outputs),wt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ui(o.hostAttrs,n=Ui(n,o.hostAttrs))}}(r)}function ll(e){return e===sr?{}:e===Y?[]:e}function Ow(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function kw(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function Lw(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}let hs=null;function xr(){if(!hs){const e=z.Symbol;if(e&&e.iterator)hs=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(pe(M[r.index])):r.index;if(ce(n)){let M=null;if(!a&&u&&(M=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=i,M.__ngLastListenerFn__=i,h=!1;else{i=yl(r,t,d,i,!1);const L=n.listen(_,o,i);f.push(i,L),c&&c.push(o,b,y,y+1)}}else i=yl(r,t,d,i,!0),_.addEventListener(o,i,s),f.push(i),c&&c.push(o,b,y,s)}else i=yl(r,t,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let _=0;_=0}function ys(e,t){return function(e,t,n,r){const o=D(),i=$(),s=function(e){const t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[$e()],s=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=N.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=$o(n=Dl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Dl(o,e,t,n,r),null===i){let u=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==sn(r))return e[It(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Dl(null,e,t,u[1],r),u=$o(u,t.attrs,r),function(e,t,n,r){e[It(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=It(e[a+1]);e[r+1]=as(f,a),0!==f&&(e[f+1]=Lu(e[f+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=as(a,0),0!==a&&(e[a+1]=Lu(e[a+1],r)),a=r;else e[r+1]=as(u,0),0===a?a=r:e[u+1]=Lu(e[u+1],r),u=r;l&&(e[r+1]=ku(e[r+1])),lg(e,c,r,!0),lg(e,c,r,!1),function(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Dr(i,t)>=0&&(n[r+1]=Bu(n[r+1]))}(t,c,e,r,i),s=as(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==F&&xe(o,s,t)&&function(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];_s(function(e){return 1==(1&e)}(l)?Eg(u,t,n,o,sn(l),s):void 0)||(_s(i)||function(e){return 2==(2&e)}(l)&&(i=Eg(u,null,n,o,a,s)),function(e,t,n,r,o){const i=ce(e);if(t)o?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:ot.DashCase;if(null==o)i?e.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=ot.Important),i?e.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Pi($e(),n),o,i))}(i,i.data[$e()],o,o[V],e,o[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=k(function(e){return e instanceof class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),ys}function Dl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===F&&(f=d?Y:void 0);let h=d?lu(f,r):c===r?f:void 0;if(l&&!_s(h)&&(h=lu(u,r)),_s(h)&&(a=h,s))return a;const p=e[o+1];o=s?It(p):sn(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=lu(u,r))}return a}function _s(e){return void 0!==e}function ge(e,t=""){const n=D(),r=$(),o=e+20,i=r.firstCreatePass?Mr(r,o,1,t,null):r.data[o],s=n[o]=function(e,t){return ce(e)?e.createText(t):e.createTextNode(t)}(n[V],t);ts(r,n,s,i),Ht(i,!1)}function Ds(e,t,n){const r=D(),o=function(e,t,n,r){return xe(e,fr(),n)?t+P(n)+r:F}(r,e,t,n);return o!==F&&un(r,$e(),o),Ds}const Yn=void 0;var lM=["en",[["a","p"],["AM","PM"],Yn],[["AM","PM"],Yn,Yn],[["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"]],Yn,[["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"]],Yn,[["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}",Yn,"{1} 'at' {0}",Yn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Ur={};function Gg(e){return e in Ur||(Ur[e]=z.ng&&z.ng.common&&z.ng.common.locales&&z.ng.common.locales[e]),Ur[e]}var v=(()=>((v=v||{})[v.LocaleId=0]="LocaleId",v[v.DayPeriodsFormat=1]="DayPeriodsFormat",v[v.DayPeriodsStandalone=2]="DayPeriodsStandalone",v[v.DaysFormat=3]="DaysFormat",v[v.DaysStandalone=4]="DaysStandalone",v[v.MonthsFormat=5]="MonthsFormat",v[v.MonthsStandalone=6]="MonthsStandalone",v[v.Eras=7]="Eras",v[v.FirstDayOfWeek=8]="FirstDayOfWeek",v[v.WeekendRange=9]="WeekendRange",v[v.DateFormat=10]="DateFormat",v[v.TimeFormat=11]="TimeFormat",v[v.DateTimeFormat=12]="DateTimeFormat",v[v.NumberSymbols=13]="NumberSymbols",v[v.NumberFormats=14]="NumberFormats",v[v.CurrencyCode=15]="CurrencyCode",v[v.CurrencySymbol=16]="CurrencySymbol",v[v.CurrencyName=17]="CurrencyName",v[v.Currencies=18]="Currencies",v[v.Directionality=19]="Directionality",v[v.PluralCase=20]="PluralCase",v[v.ExtraData=21]="ExtraData",v))();const Cs="en-US";let Wg=Cs;function Cl(e){Je(e,"Expected localeId to be defined"),"string"==typeof e&&(Wg=e.toLowerCase().replace(/_/g,"-"))}function bl(e,t,n,r,o){if(e=w(e),Array.isArray(e))for(let i=0;i>20;if(Nr(e)||!e.multi){const h=new yo(u,o,C),p=Ml(a,t,o?c:c+f,d);-1===p?(qi(Do(l,s),i,a),wl(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Ml(a,t,c+f,d),p=Ml(a,t,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){qi(Do(l,s),i,a);const _=function(e,t,n,r,o){const i=new yo(e,n,C);return i.multi=[],i.index=t,i.componentProviders=0,gm(i,o,r&&!n),i}(o?sI:iI,n.length,o,r,u);!o&&g&&(n[p].providerFactory=_),wl(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else wl(i,e,h>-1?h:p,gm(n[o?p:h],u,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function wl(e,t,n,r){const o=Nr(t);if(o||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=a.indexOf(n);-1===u?a.push(n,[r,s]):a[u+1].push(r,s)}else a.push(n,s)}}}function gm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ml(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function(e,t,n){const r=$();if(r.firstCreatePass){const o=wt(e);bl(n,r.data,r.blueprint,o,!0),bl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class mm{}const _m="ngComponent";class lI{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${k(e)}. Did you add it to @NgModule.entryComponents?`);return t[_m]=e,t}(t)}}let Wr=(()=>{class e{}return e.NULL=new lI,e})();function Ms(...e){}function qr(e,t){return new Fe(tt(e,t))}const fI=function(){return qr(De(),D())};let Fe=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=fI,e})();class Is{}let Zn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>pI(),e})();const pI=function(){const e=D(),n=nt(De().index,e);return function(e){return e[V]}(jt(n)?n:e)};let Tl=(()=>{class e{}return e.\u0275prov=K({token:e,providedIn:"root",factory:()=>null}),e})();class As{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Cm=new As("12.2.17");class Em{constructor(){}supports(t){return jo(t)}create(t){return new _I(t)}}const yI=(e,t)=>t;class _I{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||yI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new DI(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new vm),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class DI{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class CI{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class vm{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new CI,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bm(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new vI(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class vI{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 Mm(){return new zo([new Em])}let zo=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Mm()),deps:[[e,new Gn,new Gt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=K({token:e,providedIn:"root",factory:Mm}),e})();function Im(){return new zr([new wm])}let zr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Im()),deps:[[e,new Gn,new Gt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=K({token:e,providedIn:"root",factory:Im}),e})();function Ts(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(pe(i)),bt(i))for(let a=10;a-1&&(function(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&$f(o,r),t>0&&(e[n-1][4]=r[4]);const i=$n(e,10+t);!function(e,t){xo(e,t,t[V],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}}(t,r),$n(n,r))}this._attachedToViewContainer=!1}!function(e,t){if(!(256&t[2])){const n=t[V];ce(n)&&n.destroyNode&&xo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return wu(e[1],e);for(;t;){let n=null;if(jt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&wu(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&wu(t[1],t),n=t&&t[4]}t=n}}(t)}}(this._lView[1],this._lView)}onDestroy(t){!function(e,t,n,r){const o=Xh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&ep(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Ju(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){el(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Oi(!0);try{el(e,t,n)}finally{Oi(!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(){this._appRef=null,function(e,t){xo(e,t,t[V],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}{constructor(t){super(t),this._view=t}detectChanges(){Jh(this._view)}checkNoChanges(){!function(e){Oi(!0);try{Jh(e)}finally{Oi(!1)}}(this._view)}get context(){return null}}const NI=[new wm],FI=new zo([new Em]),RI=new zr(NI);class Jn{}const Zr={};class Km extends Wr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Te(t);return new Zm(n,this.ngModule)}}function Ym(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const BA=new U("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ch});class Zm extends mm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function(e){return e.map(wb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Ym(this.componentDef.inputs)}get outputs(){return Ym(this.componentDef.outputs)}create(t,n,r,o){const i=(o=o||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const i=e.get(n,Zr,o);return i!==Zr||r===Zr?i:t.get(n,r,o)}}}(t,o.injector):t,s=i.get(Is,Yd),a=i.get(Tl,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function(e,t,n){if(ce(e))return e.selectRootElement(t,n===_e.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,r,this.componentDef.encapsulation):vu(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f=function(e,t){return{components:[],scheduler:e||Ch,clean:uw,playerHandler:t||null,flags:0}}(),h=cs(0,null,null,1,0,null,null,null,null,null),p=Vo(null,h,f,d,null,null,s,u,a,i);let m,g;ki(p);try{const _=function(e,t,n,r,o,i){const s=n[1];n[20]=e;const u=Mr(s,20,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(fs(u,l,!0),null!==e&&($i(o,e,l),null!==u.classes&&Su(o,e,u.classes),null!==u.styles&&eh(o,e,u.styles)));const c=r.createRenderer(e,t),d=Vo(n,jh(t),null,t.onPush?64:16,n[20],u,r,c,i||null,null);return s.firstCreatePass&&(qi(Do(u,n),s,t.type),Qh(s,u),Kh(u,n.length,1)),ds(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)$i(u,c,["ng-version",Cm.full]);else{const{attrs:y,classes:b}=function(e){const t=[],n=[];let r=1,o=2;for(;r0&&Su(u,c,b.join(" "))}if(g=Wa(h,20),void 0!==n){const y=g.projection=[];for(let b=0;bu(s,t)),t.contentQueries){const u=De();t.contentQueries(1,s,u.directiveStart)}const a=De();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(bn(a.index),qh(n[1],a,0,a.directiveStart,a.directiveEnd,t),zh(t,s)),s}(_,this.componentDef,p,f,[Pw]),Oo(h,p,null)}finally{Li()}return new $A(this.componentType,m,qr(g,p),p,g)}}class $A extends class{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new wI(o),this.componentType=t}get injector(){return new gr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Jr=new Map;class WA extends Jn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Km(this);const r=lt(t),o=function(e){return e[LC]||null}(t);o&&Cl(o),this._bootstrapComponents=zt(r.bootstrap),this._r3Injector=sp(t,n,[{provide:Jn,useValue:this},{provide:Wr,useValue:this.componentFactoryResolver}],k(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=ne.THROW_IF_NOT_FOUND,r=A.Default){return t===ne||t===Jn||t===Tr?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $l extends class{}{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(e){const t=new Set;!function n(r){const o=lt(r,!0),i=o.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${k(t)} vs ${k(t.name)}`)}(i,Jr.get(i),r),Jr.set(i,r));const s=zt(o.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new WA(this.moduleType,t)}}function Ps(e,t,n){const r=He()+e,o=D();return o[r]===F?Kt(o,r,n?t.call(n):t()):Ho(o,r)}function ey(e,t,n,r,o,i,s,a){const u=He()+e,l=D(),c=function(e,t,n,r,o,i){const s=Kn(e,t,n,r);return Kn(e,t+2,o,i)||s}(l,u,n,r,o,i);return xe(l,u+4,s)||c?Kt(l,u+5,a?t.call(a,n,r,o,i,s):t(n,r,o,i,s)):Ho(l,u+5)}function iy(e,t,n,r,o,i){let s=t+n,a=!1;for(let u=0;u{setTimeout(e,void 0,t)}}const Ve=class extends Aa{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,i,s;let a=t,u=n||(()=>null),l=r;if(t&&"object"==typeof t){const d=t;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),u=null===(i=d.error)||void 0===i?void 0:i.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=Ul(u),a&&(a=Ul(a)),l&&(l=Ul(l)));const c=super.subscribe({next:a,error:u,complete:l});return t instanceof fe&&t.add(c),c}};Symbol;const Ls=new U("Application Initializer");let eo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ms,this.reject=Ms,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(H(Ls,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const si=new U("AppId"),qT={provide:si,useFactory:function(){return`${ec()}${ec()}${ec()}`},deps:[]};function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ny=new U("Platform Initializer"),tc=new U("Platform ID"),zT=new U("appBootstrapListener");let nc=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const Sn=new U("LocaleId"),xy=new U("DefaultCurrencyCode");class KT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const rc=function(e){return new $l(e)},YT=rc,ZT=function(e){return Promise.resolve(rc(e))},Fy=function(e){const t=rc(e),r=zt(lt(e).declarations).reduce((o,i)=>{const s=Te(i);return s&&o.push(new Zm(s)),o},[]);return new KT(t,r)},JT=Fy,XT=function(e){return Promise.resolve(Fy(e))};let js=(()=>{class e{constructor(){this.compileModuleSync=YT,this.compileModuleAsync=ZT,this.compileModuleAndAllComponentsSync=JT,this.compileModuleAndAllComponentsAsync=XT}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const nS=(()=>Promise.resolve(0))();function oc(e){"undefined"==typeof Zone?nS.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ae{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ve(!1),this.onMicrotaskEmpty=new Ve(!1),this.onStable=new Ve(!1),this.onError=new Ve(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let e=z.requestAnimationFrame,t=z.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(z,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,sc(e),e.isCheckStableRunning=!0,ic(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),sc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Ry(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Py(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Ry(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Py(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,sc(e),ic(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,oS,Ms,Ms);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const oS={};function ic(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function sc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ry(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Py(e){e._nesting--,ic(e)}class aS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ve,this.onMicrotaskEmpty=new Ve,this.onStable=new Ve,this.onError=new Ve}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let ac=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ae.assertNotInAngularZone(),oc(()=>{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())oc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(H(Ae))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})(),Vy=(()=>{class e{constructor(){this._applications=new Map,uc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return uc.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();class uS{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let uc=new uS,Oy=!0,ky=!1;let Pt;const By=new U("AllowMultipleToken");function jy(e,t,n=[]){const r=`Platform: ${t}`,o=new U(r);return(i=[])=>{let s=Hy();if(!s||s.injector.get(By,!1))if(e)e(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:ko,useValue:"platform"});!function(e){if(Pt&&!Pt.destroyed&&!Pt.injector.get(By,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pt=e.get($y);const t=e.get(Ny,null);t&&t.forEach(n=>n())}(ne.create({providers:a,name:r}))}return function(e){const t=Hy();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Hy(){return Pt&&!Pt.destroyed?Pt:null}let $y=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new aS:("zone.js"===e?void 0:e)||new Ae({enableLongStackTrace:(ky=!0,Oy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:Ae,useValue:a}];return a.run(()=>{const l=ne.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(Qn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{lc(this._modules,c),f.unsubscribe()})}),function(e,t,n){try{const r=n();return ms(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(eo);return f.runInitializers(),f.donePromise.then(()=>(Cl(c.injector.get(Sn,Cs)||Cs),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=Uy({},r);return function(e,t,n){const r=new $l(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(ai);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${k(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(H(ne))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();function Uy(e,t){return Array.isArray(t)?t.reduce(Uy,e):Object.assign(Object.assign({},e),t)}let ai=(()=>{class e{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ke(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new ke(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),oc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return function(e){return e&&"function"==typeof e.schedule}(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof ke?e[0]:hC(t)(function(e,t){return t?Nd(e,t):new ke(Id(e))}(e,n))}(a,u.pipe(e=>Fd()(function(e,t){return function(r){let o;o="function"==typeof e?e:function(){return e};const i=Object.create(r,DC);return i.source=r,i.subjectFactory=o,i}}(wC)(e))))}bootstrap(n,r){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 o;o=n instanceof mm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Jn),a=o.create(ne.NULL,[],r||o.selector,i),u=a.location.nativeElement,l=a.injector.get(ac,null),c=l&&a.injector.get(Vy);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),lc(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;lc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(zT,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(H(Ae),H(ne),H(Qn),H(Wr),H(eo))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();function lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const VS=jy(null,"core",[{provide:tc,useValue:"unknown"},{provide:$y,deps:[ne]},{provide:Vy,deps:[]},{provide:nc,deps:[]}]),jS=[{provide:ai,useClass:ai,deps:[Ae,ne,Qn,Wr,eo]},{provide:BA,deps:[Ae],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:eo,useClass:eo,deps:[[new Gt,Ls]]},{provide:js,useClass:js,deps:[]},qT,{provide:zo,useFactory:function(){return FI},deps:[]},{provide:zr,useFactory:function(){return RI},deps:[]},{provide:Sn,useFactory:function(e){return Cl(e=e||"undefined"!=typeof $localize&&$localize.locale||Cs),e},deps:[[new Ao(Sn),new Gt,new Gn]]},{provide:xy,useValue:"USD"}];let $S=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(H(ai))},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({providers:jS}),e})(),Ys=null;function rr(){return Ys}const ze=new U("DocumentToken");var me=(()=>((me=me||{})[me.Zero=0]="Zero",me[me.One=1]="One",me[me.Two=2]="Two",me[me.Few=3]="Few",me[me.Many=4]="Many",me[me.Other=5]="Other",me))();const YN=function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Gg(t);if(n)return n;const r=t.split("-")[0];if(n=Gg(r),n)return n;if("en"===r)return lM;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[v.PluralCase]};class sa{}let Mx=(()=>{class e extends sa{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(YN(r||this.locale)(n)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}}return e.\u0275fac=function(n){return new(n||e)(H(Sn))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})(),iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({providers:[{provide:sa,useClass:Mx}]}),e})();class Oc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(e){Ys||(Ys=e)}(new Oc)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=(pi=pi||document.querySelector("base"),pi?pi.getAttribute("href"):null);return null==n?null:function(e){aa=aa||document.createElement("a"),aa.setAttribute("href",e);const t=aa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){pi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let aa,pi=null;const R_=new U("TRANSITION_ID"),gF=[{provide:Ls,useFactory:function(e,t,n){return()=>{n.get(eo).donePromise.then(()=>{const r=rr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},z.getAllAngularTestabilities=()=>t.getAllTestabilities(),z.getAllAngularRootElements=()=>t.getAllRootElements(),z.frameworkStabilizers||(z.frameworkStabilizers=[]),z.frameworkStabilizers.push(r=>{const o=z.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const o=t.getTestability(n);return null!=o?o:r?rr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let mF=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const gi=new U("EventManagerPlugins");let la=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})(),mi=(()=>{class e extends V_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(O_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(O_))}}return e.\u0275fac=function(n){return new(n||e)(H(ze))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();function O_(e){rr().remove(e)}const Bc={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/"},jc=/%COMP%/g;function ca(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Hc=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new $c(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case _e.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new xF(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case _e.ShadowDom:return new FF(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=ca(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(H(la),H(mi),H(si))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();class $c{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,n){return n?document.createElementNS(Bc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Bc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Bc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ot.DashCase|ot.Important)?t.style.setProperty(n,r,o&ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ot.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,B_(r)):this.eventManager.addEventListener(t,n,B_(r))}}class xF extends $c{constructor(t,n,r,o){super(t),this.component=r;const i=ca(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(e){return"_ngcontent-%COMP%".replace(jc,e)}(o+"-"+r.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(jc,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class FF extends $c{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=ca(o.id,o.styles,[]);for(let s=0;s{class e extends Lc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(H(ze))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const $_=["alt","control","meta","shift"],jF={"\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"},U_={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"},HF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $F=(()=>{class e extends Lc{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>rr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="";if($_.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&U_.hasOwnProperty(t)&&(t=U_[t]))}return jF[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),$_.forEach(i=>{i!=o&&HF[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{e.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(H(ze))},e.\u0275prov=K({token:e,factory:e.\u0275fac}),e})();const QF=[{provide:tc,useValue:"browser"},{provide:Ny,useValue:function(){Oc.makeCurrent(),kc.init()},multi:!0},{provide:ze,useFactory:function(){return function(e){Ua=e}(document),document},deps:[]}],YF=jy(VS,"browser",QF),ZF=[[],{provide:ko,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:gi,useClass:RF,multi:!0,deps:[ze,Ae,tc]},{provide:gi,useClass:$F,multi:!0,deps:[ze]},[],{provide:Hc,useClass:Hc,deps:[la,mi,si]},{provide:Is,useExisting:Hc},{provide:V_,useExisting:mi},{provide:mi,useClass:mi,deps:[ze]},{provide:ac,useClass:ac,deps:[Ae]},{provide:la,useClass:la,deps:[gi,Ae]},{provide:class{},useClass:mF,deps:[]},[]];let JF=(()=>{class e{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:e,providers:[{provide:si,useValue:n.appId},{provide:R_,useExisting:si},gF]}}}return e.\u0275fac=function(n){return new(n||e)(H(e,12))},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({providers:ZF,imports:[iF,$S]}),e})();function da(e,t){return new ke(n=>{const r=e.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(t?t.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let W_=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(C(Zn),C(Fe))},e.\u0275dir=S({type:e}),e})(),or=(()=>{class e extends W_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,features:[re]}),e})();const Xt=new U("NgValueAccessor"),u1={provide:Xt,useExisting:X(()=>fa),multi:!0},c1=new U("CompositionEventMode");let fa=(()=>{class e extends W_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=rr()?rr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(C(Zn),C(Fe),C(c1,8))},e.\u0275dir=S({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&St("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ie([u1]),re]}),e})();const Oe=new U("NgValidators"),Rn=new U("NgAsyncValidators");function nD(e){return null!=e}function rD(e){const t=ms(e)?Sa(e):e;return ml(t),t}function oD(e){let t={};return e.forEach(n=>{t=null!=n?Object.assign(Object.assign({},t),n):t}),0===Object.keys(t).length?null:t}function iD(e,t){return t.map(n=>n(e))}function sD(e){return e.map(t=>function(e){return!e.validate}(t)?t:n=>t.validate(n))}function zc(e){return null!=e?function(e){if(!e)return null;const t=e.filter(nD);return 0==t.length?null:function(n){return oD(iD(n,t))}}(sD(e)):null}function Qc(e){return null!=e?function(e){if(!e)return null;const t=e.filter(nD);return 0==t.length?null:function(n){return function(...e){if(1===e.length){const t=e[0];if(Ma(t))return da(t,null);if(Ia(t)&&Object.getPrototypeOf(t)===Object.prototype){const n=Object.keys(t);return da(n.map(r=>t[r]),n)}}if("function"==typeof e[e.length-1]){const t=e.pop();return da(e=1===e.length&&Ma(e[0])?e[0]:e,null).pipe(Ta(n=>t(...n)))}return da(e,null)}(iD(n,t).map(rD)).pipe(Ta(oD))}}(sD(e)):null}function lD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function cD(e){return e._rawValidators}function dD(e){return e._rawAsyncValidators}function Kc(e){return e?Array.isArray(e)?e:[e]:[]}function ha(e,t){return Array.isArray(e)?e.includes(t):e===t}function fD(e,t){const n=Kc(t);return Kc(e).forEach(o=>{ha(n,o)||n.push(o)}),n}function hD(e,t){return Kc(t).filter(n=>!ha(e,n))}let pD=(()=>{class e{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(n){this._rawValidators=n||[],this._composedValidatorFn=zc(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Qc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=S({type:e}),e})(),Qe=(()=>{class e extends pD{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,features:[re]}),e})();class Vn extends pD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class gD{constructor(t){this._cd=t}is(t){var n,r,o;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[t])}}let mD=(()=>{class e extends gD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(C(Vn,2))},e.\u0275dir=S({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ys("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[re]}),e})(),yD=(()=>{class e extends gD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(C(Qe,10))},e.\u0275dir=S({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ys("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[re]}),e})();function yi(e,t){Jc(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_D(e,t)})}(e,t),function(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_D(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function ma(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),_a(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ya(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Jc(e,t){const n=cD(e);null!==t.validator?e.setValidators(lD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=dD(e);null!==t.asyncValidator?e.setAsyncValidators(lD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ya(t._rawValidators,o),ya(t._rawAsyncValidators,o)}function _a(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=cD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=dD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return ya(t._rawValidators,r),ya(t._rawAsyncValidators,r),n}function _D(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Da(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _i="VALID",Ca="INVALID",ro="PENDING",Di="DISABLED";function td(e){return(rd(e)?e.validators:e)||null}function ED(e){return Array.isArray(e)?zc(e):e||null}function nd(e,t){return(rd(t)?t.asyncValidators:e)||null}function vD(e){return Array.isArray(e)?Qc(e):e||null}function rd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class od{constructor(t,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ED(this._rawValidators),this._composedAsyncValidatorFn=vD(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===_i}get invalid(){return this.status===Ca}get pending(){return this.status==ro}get disabled(){return this.status===Di}get enabled(){return this.status!==Di}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=ED(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vD(t)}addValidators(t){this.setValidators(fD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(fD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(hD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(hD(t,this._rawAsyncValidators))}hasValidator(t){return ha(this._rawValidators,t)}hasAsyncValidator(t){return ha(this._rawAsyncValidators,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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ro,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Di,this.errors=null,this._forEachChild(r=>{r.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:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=_i,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!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===_i||this.status===ro)&&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(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Di:_i}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ro,this._hasOwnPendingAsyncValidator=!0;const n=rD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let r=e;return t.forEach(o=>{r=r instanceof Ea?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof w1&&r.at(o)||null}),r}(this,t)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?Di:this.errors?Ca:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ro)?ro:this._anyControlsHaveStatus(Ca)?Ca:_i}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){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){rd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gn extends od{constructor(t=null,n,r){super(td(n),nd(r,n)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=null,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Da(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Da(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 Ea extends od{constructor(t,n,r){super(td(n),nd(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n instanceof gn?n.value:n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);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(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_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((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class w1 extends od{constructor(t,n,r){super(td(n),nd(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){this._checkAllValuesPresent(t),t.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t instanceof gn?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!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((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_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 S1={provide:Xt,useExisting:X(()=>sd),multi:!0};let sd=(()=>{class e extends or{writeValue(n){this.setProperty("value",null==n?"":n)}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&St("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[ie([S1]),re]}),e})(),AD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({}),e})();const ad=new U("NgModelWithFormControlWarning"),P1={provide:Qe,useExisting:X(()=>va)};let va=(()=>{class e extends Qe{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ve,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_a(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return yi(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){ma(n.control||null,n,!1),Da(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(ma(r||null,n),o instanceof gn&&(yi(o,n),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function(e,t){Jc(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function(e,t){return _a(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Jc(this.form,this),this._oldForm&&_a(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(n){return new(n||e)(C(Oe,10),C(Rn,10))},e.\u0275dir=S({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&St("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ie([P1]),re,et]}),e})();const k1={provide:Vn,useExisting:X(()=>cd)};let cd=(()=>{class e extends Vn{constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Ve,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===fa?n=i:function(e){return Object.getPrototypeOf(e.constructor)===or}(i)?r=i:o=i}),o||r||n||null}(0,i)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function(e,t){return[...t.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(n){return new(n||e)(C(Qe,13),C(Oe,10),C(Rn,10),C(Xt,10),C(ad,8))},e.\u0275dir=S({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ie([k1]),re,et]}),e._ngModelWarningSentOnce=!1,e})();const L1={provide:Xt,useExisting:X(()=>ba),multi:!0};function FD(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let ba=(()=>{class e extends or{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const r=this._getOptionId(n);null==r&&this.setProperty("selectedIndex",-1);const o=FD(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&St("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ie([L1]),re]}),e})(),RD=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(FD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(C(Fe),C(Zn),C(ba,9))},e.\u0275dir=S({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const j1={provide:Xt,useExisting:X(()=>dd),multi:!0};function PD(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let dd=(()=>{class e extends or{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[];if(void 0!==r.selectedOptions){const i=r.selectedOptions;for(let s=0;s{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(PD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(PD(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(n){return new(n||e)(C(Fe),C(Zn),C(dd,9))},e.\u0275dir=S({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),WD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({imports:[[AD]]}),e})(),Y1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ad,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({imports:[WD]}),e})(),Z1=(()=>{class e{getAbbreviation(n){return n[0]}capitalize(n){return n.charAt(0).toUpperCase()+n.slice(1)}pluralize(n){return n+"s"}transform(n,r="seconds",o=!1,i=!1,s=!1){let f="",h=!1;const p=[Math.floor(n/60/60/24/365),Math.floor(n/60/60/24%365),Math.floor(n/60/60%24),Math.floor(n/60%60),Math.floor(n%60)],m=["year","day","hour","minute","second"];for(let g=0;g{class e{constructor(){this.fg=new Ea({epochInSeconds:new gn(null),limitTo:new gn("seconds"),shortHand:new gn(!1),appendZero:new gn(!1),showZero:new gn(!1)})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=ka({type:e,selectors:[["app-root"]],decls:52,vars:23,consts:[[1,"p-40"],[3,"formGroup"],["for","epochInSeconds"],["id","epochInSeconds","type","number","formControlName","epochInSeconds"],["for","limitTo"],["id","limitTo","formControlName","limitTo"],["value","seconds"],["value","minutes"],["value","hours"],["value","years"],["value","days"],["for","shortHand"],["id","shortHand","formControlName","shortHand"],[3,"value"],["for","appendZero"],["id","appendZero","formControlName","appendZero"],["for","showZero"],["id","showZero","formControlName","showZero"]],template:function(n,r){1&n&&(G(0,"div",0),G(1,"div",1),G(2,"h1"),ge(3,"Duration pipe"),W(),G(4,"div"),G(5,"div"),G(6,"label",2),ge(7,"epochInSeconds: "),W(),function(e,t,n,r){G(e,t,n,r),W()}(8,"input",3),W(),G(9,"div"),G(10,"label",4),ge(11,"limitTo: "),W(),G(12,"select",5),G(13,"option",6),ge(14,"seconds"),W(),G(15,"option",7),ge(16,"minutes"),W(),G(17,"option",8),ge(18,"hours"),W(),G(19,"option",9),ge(20,"years"),W(),G(21,"option",10),ge(22,"days"),W(),W(),W(),G(23,"div"),G(24,"label",11),ge(25,"shortHand: "),W(),G(26,"select",12),G(27,"option",13),ge(28,"true"),W(),G(29,"option",13),ge(30,"false"),W(),W(),W(),G(31,"div"),G(32,"label",14),ge(33,"appendZero: "),W(),G(34,"select",15),G(35,"option",13),ge(36,"true"),W(),G(37,"option",13),ge(38,"false"),W(),W(),W(),G(39,"div"),G(40,"label",16),ge(41,"showZero: "),W(),G(42,"select",17),G(43,"option",13),ge(44,"true"),W(),G(45,"option",13),ge(46,"false"),W(),W(),W(),W(),G(47,"div"),ge(48," Result: "),G(49,"b"),ge(50),function(e,t){const n=$();let r;const o=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new _n("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=jn(r.type)),s=Dn(C);try{const a=Gi(!1),u=i();Gi(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,u)}finally{Dn(s)}}(51,"duration"),W(),W(),W(),W()),2&n&&(on(1),dn("formGroup",r.fg),on(26),dn("value",!0),on(2),dn("value",!1),on(6),dn("value",!0),on(2),dn("value",!1),on(6),dn("value",!0),on(2),dn("value",!1),on(5),Ds(" ",ay(51,8,ey(17,J1,r.fg.controls.epochInSeconds.value,r.fg.controls.limitTo.value,Ps(14,hd).includes(r.fg.controls.shortHand.value),Ps(15,hd).includes(r.fg.controls.appendZero.value),Ps(16,hd).includes(r.fg.controls.showZero.value)))," "))},directives:[yD,va,sd,fa,mD,cd,ba,RD,VD],pipes:[Z1],styles:[""],changeDetection:0}),e})(),eR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e}),e.\u0275inj=at({imports:[[]]}),e})(),tR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Bt({type:e,bootstrap:[X1]}),e.\u0275inj=at({providers:[],imports:[[JF,Y1,eR]]}),e})();(function(){if(ky)throw new Error("Cannot enable prod mode after platform setup.");Oy=!1})(),YF().bootstrapModule(tR).catch(e=>console.error(e))}},ao=>{ao(ao.s=798)}]); \ No newline at end of file diff --git a/dist/custom-angular-pipes/polyfills.c0bba733dbe3fdc07036.js b/dist/custom-angular-pipes/polyfills.c0bba733dbe3fdc07036.js new file mode 100644 index 0000000..f38fe8b --- /dev/null +++ b/dist/custom-angular-pipes/polyfills.c0bba733dbe3fdc07036.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcustom_angular_pipes=self.webpackChunkcustom_angular_pipes||[]).push([[429],{277:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&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 L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe="undefined"!=typeof window,Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=void 0!==Y.process&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function(e,n){n.patchEventPrototype(e,n)})(e,i),function(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})},435:(ie,Ee,de)=>{de(277)}},ie=>{ie(ie.s=435)}]); \ No newline at end of file diff --git a/dist/custom-angular-pipes/runtime.afc25b4a4249d278ecdf.js b/dist/custom-angular-pipes/runtime.afc25b4a4249d278ecdf.js new file mode 100644 index 0000000..56eecba --- /dev/null +++ b/dist/custom-angular-pipes/runtime.afc25b4a4249d278ecdf.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={exports:{}};return v[e](r,r.exports,n),r.exports}n.m=v,e=[],n.O=(a,r,f,l)=>{if(!r){var s=1/0;for(u=0;u=l)&&Object.keys(n.O).every(b=>n.O[b](r[t]))?r.splice(t--,1):(o=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[r,f,l]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=f=>0===e[f];var a=(f,l)=>{var t,c,[u,s,o]=l,_=0;for(t in s)n.o(s,t)&&(n.m[t]=s[t]);if(o)var i=o(n);for(f&&f(l);_ Note: Don't forget to add `--project ninjas-transforms` or else it will be added to the default project in your `angular.json` file. + +## Build + +Run `ng build ninjas-transforms` to build the project. The build artifacts will be stored in the `dist/` directory. + +## Publishing + +After building your library with `ng build ninjas-transforms`, go to the dist folder `cd dist/ninjas-transforms` and run `npm publish`. + +## Running unit tests + +Run `ng test ninjas-transforms` to execute the unit tests via [Karma](https://karma-runner.github.io). + +## Further help + +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. diff --git a/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js b/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js new file mode 100644 index 0000000..42d7d53 --- /dev/null +++ b/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js @@ -0,0 +1,153 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) : + typeof define === 'function' && define.amd ? define('ninjas-transforms', ['exports', '@angular/core'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ninjas-transforms"] = {}, global.ng.core)); +})(this, (function (exports, i0) { 'use strict'; + + function _interopNamespace(e) { + if (e && e.__esModule) return e; + var n = Object.create(null); + if (e) { + Object.keys(e).forEach(function (k) { + if (k !== 'default') { + var d = Object.getOwnPropertyDescriptor(e, k); + Object.defineProperty(n, k, d.get ? d : { + enumerable: true, + get: function () { return e[k]; } + }); + } + }); + } + n["default"] = e; + return Object.freeze(n); + } + + var i0__namespace = /*#__PURE__*/_interopNamespace(i0); + + var DurationPipe = /** @class */ (function () { + function DurationPipe() { + } + DurationPipe.prototype.getAbbreviation = function (s) { + return s[0]; + }; + DurationPipe.prototype.capitalize = function (s) { + return s.charAt(0).toUpperCase() + s.slice(1); + }; + DurationPipe.prototype.pluralize = function (s) { + return s + 's'; + }; + DurationPipe.prototype.transform = function (epochs_in_seconds, limit_to, short_hand, append_zero, show_zero) { + if (limit_to === void 0) { limit_to = 'seconds'; } + if (short_hand === void 0) { short_hand = false; } + if (append_zero === void 0) { append_zero = false; } + if (show_zero === void 0) { show_zero = false; } + var years = Math.floor(epochs_in_seconds / 60 / 60 / 24 / 365); + var days = Math.floor((epochs_in_seconds / 60 / 60 / 24) % 365); + var hours = Math.floor((epochs_in_seconds / 60 / 60) % 24); + var minutes = Math.floor((epochs_in_seconds / 60) % 60); + var seconds = Math.floor(epochs_in_seconds % 60); + var durationString = ''; + var isHighestDenominationPresent = false; + var entities = [years, days, hours, minutes, seconds]; + var duration_names = ['year', 'day', 'hour', 'minute', 'second']; + for (var i = 0; i < entities.length; i++) { + var entityString = entities[i].toString(); + if (entities[i] !== 0) { + if (!isHighestDenominationPresent) { + isHighestDenominationPresent = true; + } + if (entities[i] < 10 && append_zero) { + entityString = '0' + entityString; + } + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (!short_hand) { + durationString += + entityString === '01' || entityString === '1' ? '' : 's'; + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + else if (entities[i] === 0 && + limit_to === this.pluralize(duration_names[i]) && + !durationString) { + return (short_hand + ? 0 + this.getAbbreviation(duration_names[i]) + : '0 ' + this.capitalize(this.pluralize(duration_names[i]))).trim(); + } + else if (entities[i] === 0 && + isHighestDenominationPresent && + show_zero) { + entityString += '0'; + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + } + return durationString.trim(); + }; + return DurationPipe; + }()); + DurationPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DurationPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe }); + DurationPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DurationPipe, name: "duration" }); + i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DurationPipe, decorators: [{ + type: i0.Pipe, + args: [{ + name: 'duration', + }] + }] }); + + var NinjasTransformsModule = /** @class */ (function () { + function NinjasTransformsModule() { + } + return NinjasTransformsModule; + }()); + NinjasTransformsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NinjasTransformsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); + NinjasTransformsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NinjasTransformsModule, declarations: [DurationPipe], exports: [DurationPipe] }); + NinjasTransformsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NinjasTransformsModule, imports: [[]] }); + i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NinjasTransformsModule, decorators: [{ + type: i0.NgModule, + args: [{ + declarations: [ + DurationPipe + ], + imports: [], + exports: [ + DurationPipe + ] + }] + }] }); + + /* + * Public API Surface of ninjas-transforms + */ + + /** + * Generated bundle index. Do not edit. + */ + + exports.DurationPipe = DurationPipe; + exports.NinjasTransformsModule = NinjasTransformsModule; + + Object.defineProperty(exports, '__esModule', { value: true }); + +})); +//# sourceMappingURL=ninjas-transforms.umd.js.map diff --git a/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js.map b/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js.map new file mode 100644 index 0000000..02fbc42 --- /dev/null +++ b/dist/ninjas-transforms/bundles/ninjas-transforms.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ninjas-transforms.umd.js","sources":["../../../projects/ninjas-transforms/src/lib/duration.pipe.ts","../../../projects/ninjas-transforms/src/lib/ninjas-transforms.module.ts","../../../projects/ninjas-transforms/src/public-api.ts","../../../projects/ninjas-transforms/src/ninjas-transforms.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'duration',\n})\nexport class DurationPipe implements PipeTransform {\n getAbbreviation(s: string) {\n return s[0];\n }\n\n capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n }\n\n pluralize(s: string) {\n return s + 's';\n }\n\n public transform(\n epochs_in_seconds: number,\n limit_to: DurationLimit = 'seconds',\n short_hand = false,\n append_zero = false,\n show_zero = false\n ): string {\n const years = Math.floor(epochs_in_seconds / 60 / 60 / 24 / 365);\n const days = Math.floor((epochs_in_seconds / 60 / 60 / 24) % 365);\n const hours = Math.floor((epochs_in_seconds / 60 / 60) % 24);\n const minutes = Math.floor((epochs_in_seconds / 60) % 60);\n const seconds = Math.floor(epochs_in_seconds % 60);\n\n let durationString = '';\n\n let isHighestDenominationPresent = false;\n\n const entities = [years, days, hours, minutes, seconds];\n const duration_names = ['year', 'day', 'hour', 'minute', 'second'];\n\n for (let i = 0; i < entities.length; i++) {\n let entityString = entities[i].toString();\n if (entities[i] !== 0) {\n if (!isHighestDenominationPresent) {\n isHighestDenominationPresent = true;\n }\n if (entities[i] < 10 && append_zero) {\n entityString = '0' + entityString;\n }\n durationString +=\n entityString +\n (short_hand\n ? this.getAbbreviation(duration_names[i])\n : ' ' + this.capitalize(duration_names[i]));\n\n if (!short_hand) {\n durationString +=\n entityString === '01' || entityString === '1' ? '' : 's';\n }\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n } else {\n durationString += ' ';\n }\n } else if (\n entities[i] === 0 &&\n limit_to === this.pluralize(duration_names[i]) &&\n !durationString\n ) {\n return (\n short_hand\n ? 0 + this.getAbbreviation(duration_names[i])\n : '0 ' + this.capitalize(this.pluralize(duration_names[i]))\n ).trim();\n } else if (\n entities[i] === 0 &&\n isHighestDenominationPresent &&\n show_zero\n ) {\n entityString += '0';\n durationString +=\n entityString +\n (short_hand\n ? this.getAbbreviation(duration_names[i])\n : ' ' + this.capitalize(duration_names[i]));\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n } else {\n durationString += ' ';\n }\n }\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n }\n }\n\n return durationString.trim();\n }\n}\n\nexport type DurationLimit = 'years' | 'days' | 'hours' | 'minutes' | 'seconds';\n","import {NgModule} from '@angular/core';\nimport {DurationPipe} from './duration.pipe';\n\n\n@NgModule({\n declarations: [\n DurationPipe\n ],\n imports: [],\n exports: [\n DurationPipe\n ]\n})\nexport class NinjasTransformsModule {\n}\n","/*\n * Public API Surface of ninjas-transforms\n */\n\nexport {DurationPipe, NinjasTransformsModule, DurationLimit} from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0","Pipe","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,QAAA,YAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,YAAA,GAAA;;QACE,YAAe,CAAA,SAAA,CAAA,eAAA,GAAf,UAAgB,CAAS,EAAA;IACvB,QAAA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;SACb,CAAA;QAED,YAAU,CAAA,SAAA,CAAA,UAAA,GAAV,UAAW,CAAS,EAAA;IAClB,QAAA,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC/C,CAAA;QAED,YAAS,CAAA,SAAA,CAAA,SAAA,GAAT,UAAU,CAAS,EAAA;YACjB,OAAO,CAAC,GAAG,GAAG,CAAC;SAChB,CAAA;QAEM,YAAS,CAAA,SAAA,CAAA,SAAA,GAAT,UACL,iBAAyB,EACzB,QAAmC,EACnC,UAAkB,EAClB,WAAmB,EACnB,SAAiB,EAAA;IAHjB,QAAA,IAAA,QAAA,KAAA,KAAA,CAAA,EAAA,EAAA,QAAmC,GAAA,SAAA,CAAA,EAAA;IACnC,QAAA,IAAA,UAAA,KAAA,KAAA,CAAA,EAAA,EAAA,UAAkB,GAAA,KAAA,CAAA,EAAA;IAClB,QAAA,IAAA,WAAA,KAAA,KAAA,CAAA,EAAA,EAAA,WAAmB,GAAA,KAAA,CAAA,EAAA;IACnB,QAAA,IAAA,SAAA,KAAA,KAAA,CAAA,EAAA,EAAA,SAAiB,GAAA,KAAA,CAAA,EAAA;IAEjB,QAAA,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC;IACjE,QAAA,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC;IAClE,QAAA,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,iBAAiB,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,QAAA,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,iBAAiB,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1D,IAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;YAEnD,IAAI,cAAc,GAAG,EAAE,CAAC;YAExB,IAAI,4BAA4B,GAAG,KAAK,CAAC;IAEzC,QAAA,IAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,QAAA,IAAM,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEnE,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACxC,IAAI,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1C,YAAA,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;oBACrB,IAAI,CAAC,4BAA4B,EAAE;wBACjC,4BAA4B,GAAG,IAAI,CAAC;IACrC,iBAAA;oBACD,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,WAAW,EAAE;IACnC,oBAAA,YAAY,GAAG,GAAG,GAAG,YAAY,CAAC;IACnC,iBAAA;oBACD,cAAc;wBACZ,YAAY;IACZ,yBAAC,UAAU;kCACP,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IACzC,8BAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBAEhD,IAAI,CAAC,UAAU,EAAE;wBACf,cAAc;IACZ,wBAAA,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,GAAG,GAAG,EAAE,GAAG,GAAG,CAAC;IAC5D,iBAAA;oBAED,IAAI,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE;IAClD,oBAAA,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;IAC9B,iBAAA;IAAM,qBAAA;wBACL,cAAc,IAAI,GAAG,CAAC;IACvB,iBAAA;IACF,aAAA;IAAM,iBAAA,IACL,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;oBACjB,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9C,gBAAA,CAAC,cAAc,EACf;IACA,gBAAA,OAAO,CACL,UAAU;0BACN,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;0BAC3C,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,EAC7D,IAAI,EAAE,CAAC;IACV,aAAA;IAAM,iBAAA,IACL,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;oBACjB,4BAA4B;IAC5B,gBAAA,SAAS,EACT;oBACA,YAAY,IAAI,GAAG,CAAC;oBACpB,cAAc;wBACZ,YAAY;IACZ,yBAAC,UAAU;kCACP,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IACzC,8BAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBAEhD,IAAI,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE;IAClD,oBAAA,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;IAC9B,iBAAA;IAAM,qBAAA;wBACL,cAAc,IAAI,GAAG,CAAC;IACvB,iBAAA;IACF,aAAA;gBAED,IAAI,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE;IAClD,gBAAA,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;IAC9B,aAAA;IACF,SAAA;IAED,QAAA,OAAO,cAAc,CAAC,IAAI,EAAE,CAAC;SAC9B,CAAA;;;oIA7FU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAA,aAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;kIAAZ,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;sHAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;sBAHxBC,OAAI;IAAC,YAAA,IAAA,EAAA,CAAA;IACJ,oBAAA,IAAI,EAAE,UAAU;qBACjB,CAAA;;;ACSD,QAAA,sBAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,sBAAA,GAAA;;;;8IAAa,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAD,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+IAAtB,sBAAsB,EAAA,YAAA,EAAA,CAP/B,YAAY,CAAA,EAAA,OAAA,EAAA,CAIZ,YAAY,CAAA,EAAA,CAAA,CAAA;IAGH,sBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,sBAAsB,YALxB,EAAE,CAAA,EAAA,CAAA,CAAA;sHAKA,sBAAsB,EAAA,UAAA,EAAA,CAAA;sBATlCE,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,YAAY,EAAE;4BACZ,YAAY;IACb,qBAAA;IACD,oBAAA,OAAO,EAAE,EAAE;IACX,oBAAA,OAAO,EAAE;4BACP,YAAY;IACb,qBAAA;qBACF,CAAA;;;ICZD;;IAEG;;ICFH;;IAEG;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/ninjas-transforms/esm2015/lib/duration.pipe.js b/dist/ninjas-transforms/esm2015/lib/duration.pipe.js new file mode 100644 index 0000000..14697bb --- /dev/null +++ b/dist/ninjas-transforms/esm2015/lib/duration.pipe.js @@ -0,0 +1,86 @@ +import { Pipe } from '@angular/core'; +import * as i0 from "@angular/core"; +export class DurationPipe { + getAbbreviation(s) { + return s[0]; + } + capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1); + } + pluralize(s) { + return s + 's'; + } + transform(epochs_in_seconds, limit_to = 'seconds', short_hand = false, append_zero = false, show_zero = false) { + const years = Math.floor(epochs_in_seconds / 60 / 60 / 24 / 365); + const days = Math.floor((epochs_in_seconds / 60 / 60 / 24) % 365); + const hours = Math.floor((epochs_in_seconds / 60 / 60) % 24); + const minutes = Math.floor((epochs_in_seconds / 60) % 60); + const seconds = Math.floor(epochs_in_seconds % 60); + let durationString = ''; + let isHighestDenominationPresent = false; + const entities = [years, days, hours, minutes, seconds]; + const duration_names = ['year', 'day', 'hour', 'minute', 'second']; + for (let i = 0; i < entities.length; i++) { + let entityString = entities[i].toString(); + if (entities[i] !== 0) { + if (!isHighestDenominationPresent) { + isHighestDenominationPresent = true; + } + if (entities[i] < 10 && append_zero) { + entityString = '0' + entityString; + } + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (!short_hand) { + durationString += + entityString === '01' || entityString === '1' ? '' : 's'; + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + else if (entities[i] === 0 && + limit_to === this.pluralize(duration_names[i]) && + !durationString) { + return (short_hand + ? 0 + this.getAbbreviation(duration_names[i]) + : '0 ' + this.capitalize(this.pluralize(duration_names[i]))).trim(); + } + else if (entities[i] === 0 && + isHighestDenominationPresent && + show_zero) { + entityString += '0'; + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + } + return durationString.trim(); + } +} +DurationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); +DurationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, name: "duration" }); +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, decorators: [{ + type: Pipe, + args: [{ + name: 'duration', + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHVyYXRpb24ucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25pbmphcy10cmFuc2Zvcm1zL3NyYy9saWIvZHVyYXRpb24ucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFLcEQsTUFBTSxPQUFPLFlBQVk7SUFDdkIsZUFBZSxDQUFDLENBQVM7UUFDdkIsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDZCxDQUFDO0lBRUQsVUFBVSxDQUFDLENBQVM7UUFDbEIsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLFdBQVcsRUFBRSxHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDaEQsQ0FBQztJQUVELFNBQVMsQ0FBQyxDQUFTO1FBQ2pCLE9BQU8sQ0FBQyxHQUFHLEdBQUcsQ0FBQztJQUNqQixDQUFDO0lBRU0sU0FBUyxDQUNkLGlCQUF5QixFQUN6QixXQUEwQixTQUFTLEVBQ25DLFVBQVUsR0FBRyxLQUFLLEVBQ2xCLFdBQVcsR0FBRyxLQUFLLEVBQ25CLFNBQVMsR0FBRyxLQUFLO1FBRWpCLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsaUJBQWlCLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsR0FBRyxDQUFDLENBQUM7UUFDakUsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGlCQUFpQixHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUM7UUFDbEUsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGlCQUFpQixHQUFHLEVBQUUsR0FBRyxFQUFFLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQztRQUM3RCxNQUFNLE9BQU8sR0FB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QyxDQUFDLENBQUM7Z0JBRWhELElBQUksUUFBUSxLQUFLLElBQUksQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUU7b0JBQ2xELE9BQU8sY0FBYyxDQUFDLElBQUksRUFBRSxDQUFDO2lCQUM5QjtxQkFBTTtvQkFDTCxjQUFjLElBQUksR0FBRyxDQUFDO2lCQUN2QjthQUNGO1lBRUQsSUFBSSxRQUFRLEtBQUssSUFBSSxDQUFDLFNBQVMsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRTtnQkFDbEQsT0FBTyxjQUFjLENBQUMsSUFBSSxFQUFFLENBQUM7YUFDOUI7U0FDRjtRQUVELE9BQU8sY0FBYyxDQUFDLElBQUksRUFBRSxDQUFDO0lBQy9CLENBQUM7OzBHQTdGVSxZQUFZO3dHQUFaLFlBQVk7NEZBQVosWUFBWTtrQkFIeEIsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsVUFBVTtpQkFDakIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBQaXBlKHtcbiAgbmFtZTogJ2R1cmF0aW9uJyxcbn0pXG5leHBvcnQgY2xhc3MgRHVyYXRpb25QaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIGdldEFiYnJldmlhdGlvbihzOiBzdHJpbmcpIHtcbiAgICByZXR1cm4gc1swXTtcbiAgfVxuXG4gIGNhcGl0YWxpemUoczogc3RyaW5nKSB7XG4gICAgcmV0dXJuIHMuY2hhckF0KDApLnRvVXBwZXJDYXNlKCkgKyBzLnNsaWNlKDEpO1xuICB9XG5cbiAgcGx1cmFsaXplKHM6IHN0cmluZykge1xuICAgIHJldHVybiBzICsgJ3MnO1xuICB9XG5cbiAgcHVibGljIHRyYW5zZm9ybShcbiAgICBlcG9jaHNfaW5fc2Vjb25kczogbnVtYmVyLFxuICAgIGxpbWl0X3RvOiBEdXJhdGlvbkxpbWl0ID0gJ3NlY29uZHMnLFxuICAgIHNob3J0X2hhbmQgPSBmYWxzZSxcbiAgICBhcHBlbmRfemVybyA9IGZhbHNlLFxuICAgIHNob3dfemVybyA9IGZhbHNlXG4gICk6IHN0cmluZyB7XG4gICAgY29uc3QgeWVhcnMgPSBNYXRoLmZsb29yKGVwb2Noc19pbl9zZWNvbmRzIC8gNjAgLyA2MCAvIDI0IC8gMzY1KTtcbiAgICBjb25zdCBkYXlzID0gTWF0aC5mbG9vcigoZXBvY2hzX2luX3NlY29uZHMgLyA2MCAvIDYwIC8gMjQpICUgMzY1KTtcbiAgICBjb25zdCBob3VycyA9IE1hdGguZmxvb3IoKGVwb2Noc19pbl9zZWNvbmRzIC8gNjAgLyA2MCkgJSAyNCk7XG4gICAgY29uc3QgbWludXRlcyA9IE1hdGguZmxvb3IoKGVwb2Noc19pbl9zZWNvbmRzIC8gNjApICUgNjApO1xuICAgIGNvbnN0IHNlY29uZHMgPSBNYXRoLmZsb29yKGVwb2Noc19pbl9zZWNvbmRzICUgNjApO1xuXG4gICAgbGV0IGR1cmF0aW9uU3RyaW5nID0gJyc7XG5cbiAgICBsZXQgaXNIaWdoZXN0RGVub21pbmF0aW9uUHJlc2VudCA9IGZhbHNlO1xuXG4gICAgY29uc3QgZW50aXRpZXMgPSBbeWVhcnMsIGRheXMsIGhvdXJzLCBtaW51dGVzLCBzZWNvbmRzXTtcbiAgICBjb25zdCBkdXJhdGlvbl9uYW1lcyA9IFsneWVhcicsICdkYXknLCAnaG91cicsICdtaW51dGUnLCAnc2Vjb25kJ107XG5cbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGVudGl0aWVzLmxlbmd0aDsgaSsrKSB7XG4gICAgICBsZXQgZW50aXR5U3RyaW5nID0gZW50aXRpZXNbaV0udG9TdHJpbmcoKTtcbiAgICAgIGlmIChlbnRpdGllc1tpXSAhPT0gMCkge1xuICAgICAgICBpZiAoIWlzSGlnaGVzdERlbm9taW5hdGlvblByZXNlbnQpIHtcbiAgICAgICAgICBpc0hpZ2hlc3REZW5vbWluYXRpb25QcmVzZW50ID0gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoZW50aXRpZXNbaV0gPCAxMCAmJiBhcHBlbmRfemVybykge1xuICAgICAgICAgIGVudGl0eVN0cmluZyA9ICcwJyArIGVudGl0eVN0cmluZztcbiAgICAgICAgfVxuICAgICAgICBkdXJhdGlvblN0cmluZyArPVxuICAgICAgICAgIGVudGl0eVN0cmluZyArXG4gICAgICAgICAgKHNob3J0X2hhbmRcbiAgICAgICAgICAgID8gdGhpcy5nZXRBYmJyZXZpYXRpb24oZHVyYXRpb25fbmFtZXNbaV0pXG4gICAgICAgICAgICA6ICcgJyArIHRoaXMuY2FwaXRhbGl6ZShkdXJhdGlvbl9uYW1lc1tpXSkpO1xuXG4gICAgICAgIGlmICghc2hvcnRfaGFuZCkge1xuICAgICAgICAgIGR1cmF0aW9uU3RyaW5nICs9XG4gICAgICAgICAgICBlbnRpdHlTdHJpbmcgPT09ICcwMScgfHwgZW50aXR5U3RyaW5nID09PSAnMScgPyAnJyA6ICdzJztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChsaW1pdF90byA9PT0gdGhpcy5wbHVyYWxpemUoZHVyYXRpb25fbmFtZXNbaV0pKSB7XG4gICAgICAgICAgcmV0dXJuIGR1cmF0aW9uU3RyaW5nLnRyaW0oKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBkdXJhdGlvblN0cmluZyArPSAnICc7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSBpZiAoXG4gICAgICAgIGVudGl0aWVzW2ldID09PSAwICYmXG4gICAgICAgIGxpbWl0X3RvID09PSB0aGlzLnBsdXJhbGl6ZShkdXJhdGlvbl9uYW1lc1tpXSkgJiZcbiAgICAgICAgIWR1cmF0aW9uU3RyaW5nXG4gICAgICApIHtcbiAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICBzaG9ydF9oYW5kXG4gICAgICAgICAgICA/IDAgKyB0aGlzLmdldEFiYnJldmlhdGlvbihkdXJhdGlvbl9uYW1lc1tpXSlcbiAgICAgICAgICAgIDogJzAgJyArIHRoaXMuY2FwaXRhbGl6ZSh0aGlzLnBsdXJhbGl6ZShkdXJhdGlvbl9uYW1lc1tpXSkpXG4gICAgICAgICkudHJpbSgpO1xuICAgICAgfSBlbHNlIGlmIChcbiAgICAgICAgZW50aXRpZXNbaV0gPT09IDAgJiZcbiAgICAgICAgaXNIaWdoZXN0RGVub21pbmF0aW9uUHJlc2VudCAmJlxuICAgICAgICBzaG93X3plcm9cbiAgICAgICkge1xuICAgICAgICBlbnRpdHlTdHJpbmcgKz0gJzAnO1xuICAgICAgICBkdXJhdGlvblN0cmluZyArPVxuICAgICAgICAgIGVudGl0eVN0cmluZyArXG4gICAgICAgICAgKHNob3J0X2hhbmRcbiAgICAgICAgICAgID8gdGhpcy5nZXRBYmJyZXZpYXRpb24oZHVyYXRpb25fbmFtZXNbaV0pXG4gICAgICAgICAgICA6ICcgJyArIHRoaXMuY2FwaXRhbGl6ZShkdXJhdGlvbl9uYW1lc1tpXSkpO1xuXG4gICAgICAgIGlmIChsaW1pdF90byA9PT0gdGhpcy5wbHVyYWxpemUoZHVyYXRpb25fbmFtZXNbaV0pKSB7XG4gICAgICAgICAgcmV0dXJuIGR1cmF0aW9uU3RyaW5nLnRyaW0oKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBkdXJhdGlvblN0cmluZyArPSAnICc7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKGxpbWl0X3RvID09PSB0aGlzLnBsdXJhbGl6ZShkdXJhdGlvbl9uYW1lc1tpXSkpIHtcbiAgICAgICAgcmV0dXJuIGR1cmF0aW9uU3RyaW5nLnRyaW0oKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gZHVyYXRpb25TdHJpbmcudHJpbSgpO1xuICB9XG59XG5cbmV4cG9ydCB0eXBlIER1cmF0aW9uTGltaXQgPSAneWVhcnMnIHwgJ2RheXMnIHwgJ2hvdXJzJyB8ICdtaW51dGVzJyB8ICdzZWNvbmRzJztcbiJdfQ== \ No newline at end of file diff --git a/dist/ninjas-transforms/esm2015/lib/index.js b/dist/ninjas-transforms/esm2015/lib/index.js new file mode 100644 index 0000000..421208f --- /dev/null +++ b/dist/ninjas-transforms/esm2015/lib/index.js @@ -0,0 +1,3 @@ +export * from './duration.pipe'; +export * from './ninjas-transforms.module'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uaW5qYXMtdHJhbnNmb3Jtcy9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyw0QkFBNEIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZHVyYXRpb24ucGlwZSc7XG5leHBvcnQgKiBmcm9tICcuL25pbmphcy10cmFuc2Zvcm1zLm1vZHVsZSdcbiJdfQ== \ No newline at end of file diff --git a/dist/ninjas-transforms/esm2015/lib/ninjas-transforms.module.js b/dist/ninjas-transforms/esm2015/lib/ninjas-transforms.module.js new file mode 100644 index 0000000..3a50165 --- /dev/null +++ b/dist/ninjas-transforms/esm2015/lib/ninjas-transforms.module.js @@ -0,0 +1,21 @@ +import { NgModule } from '@angular/core'; +import { DurationPipe } from './duration.pipe'; +import * as i0 from "@angular/core"; +export class NinjasTransformsModule { +} +NinjasTransformsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); +NinjasTransformsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, declarations: [DurationPipe], exports: [DurationPipe] }); +NinjasTransformsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, imports: [[]] }); +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + DurationPipe + ], + imports: [], + exports: [ + DurationPipe + ] + }] + }] }); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmluamFzLXRyYW5zZm9ybXMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmluamFzLXRyYW5zZm9ybXMvc3JjL2xpYi9uaW5qYXMtdHJhbnNmb3Jtcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7O0FBWTdDLE1BQU0sT0FBTyxzQkFBc0I7O29IQUF0QixzQkFBc0I7cUhBQXRCLHNCQUFzQixpQkFQL0IsWUFBWSxhQUlaLFlBQVk7cUhBR0gsc0JBQXNCLFlBTHhCLEVBQUU7NEZBS0Esc0JBQXNCO2tCQVRsQyxRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRTt3QkFDWixZQUFZO3FCQUNiO29CQUNELE9BQU8sRUFBRSxFQUFFO29CQUNYLE9BQU8sRUFBRTt3QkFDUCxZQUFZO3FCQUNiO2lCQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge0R1cmF0aW9uUGlwZX0gZnJvbSAnLi9kdXJhdGlvbi5waXBlJztcblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBEdXJhdGlvblBpcGVcbiAgXSxcbiAgaW1wb3J0czogW10sXG4gIGV4cG9ydHM6IFtcbiAgICBEdXJhdGlvblBpcGVcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOaW5qYXNUcmFuc2Zvcm1zTW9kdWxlIHtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/ninjas-transforms/esm2015/ninjas-transforms.js b/dist/ninjas-transforms/esm2015/ninjas-transforms.js new file mode 100644 index 0000000..8ff2b6b --- /dev/null +++ b/dist/ninjas-transforms/esm2015/ninjas-transforms.js @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +export * from './public-api'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmluamFzLXRyYW5zZm9ybXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uaW5qYXMtdHJhbnNmb3Jtcy9zcmMvbmluamFzLXRyYW5zZm9ybXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== \ No newline at end of file diff --git a/dist/ninjas-transforms/esm2015/public-api.js b/dist/ninjas-transforms/esm2015/public-api.js new file mode 100644 index 0000000..93dd509 --- /dev/null +++ b/dist/ninjas-transforms/esm2015/public-api.js @@ -0,0 +1,5 @@ +/* + * Public API Surface of ninjas-transforms + */ +export { DurationPipe, NinjasTransformsModule } from './lib'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25pbmphcy10cmFuc2Zvcm1zL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFDLFlBQVksRUFBRSxzQkFBc0IsRUFBZ0IsTUFBTSxPQUFPLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5pbmphcy10cmFuc2Zvcm1zXG4gKi9cblxuZXhwb3J0IHtEdXJhdGlvblBpcGUsIE5pbmphc1RyYW5zZm9ybXNNb2R1bGUsIER1cmF0aW9uTGltaXR9IGZyb20gJy4vbGliJztcbiJdfQ== \ No newline at end of file diff --git a/dist/ninjas-transforms/fesm2015/ninjas-transforms.js b/dist/ninjas-transforms/fesm2015/ninjas-transforms.js new file mode 100644 index 0000000..42b5280 --- /dev/null +++ b/dist/ninjas-transforms/fesm2015/ninjas-transforms.js @@ -0,0 +1,115 @@ +import * as i0 from '@angular/core'; +import { Pipe, NgModule } from '@angular/core'; + +class DurationPipe { + getAbbreviation(s) { + return s[0]; + } + capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1); + } + pluralize(s) { + return s + 's'; + } + transform(epochs_in_seconds, limit_to = 'seconds', short_hand = false, append_zero = false, show_zero = false) { + const years = Math.floor(epochs_in_seconds / 60 / 60 / 24 / 365); + const days = Math.floor((epochs_in_seconds / 60 / 60 / 24) % 365); + const hours = Math.floor((epochs_in_seconds / 60 / 60) % 24); + const minutes = Math.floor((epochs_in_seconds / 60) % 60); + const seconds = Math.floor(epochs_in_seconds % 60); + let durationString = ''; + let isHighestDenominationPresent = false; + const entities = [years, days, hours, minutes, seconds]; + const duration_names = ['year', 'day', 'hour', 'minute', 'second']; + for (let i = 0; i < entities.length; i++) { + let entityString = entities[i].toString(); + if (entities[i] !== 0) { + if (!isHighestDenominationPresent) { + isHighestDenominationPresent = true; + } + if (entities[i] < 10 && append_zero) { + entityString = '0' + entityString; + } + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (!short_hand) { + durationString += + entityString === '01' || entityString === '1' ? '' : 's'; + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + else if (entities[i] === 0 && + limit_to === this.pluralize(duration_names[i]) && + !durationString) { + return (short_hand + ? 0 + this.getAbbreviation(duration_names[i]) + : '0 ' + this.capitalize(this.pluralize(duration_names[i]))).trim(); + } + else if (entities[i] === 0 && + isHighestDenominationPresent && + show_zero) { + entityString += '0'; + durationString += + entityString + + (short_hand + ? this.getAbbreviation(duration_names[i]) + : ' ' + this.capitalize(duration_names[i])); + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + else { + durationString += ' '; + } + } + if (limit_to === this.pluralize(duration_names[i])) { + return durationString.trim(); + } + } + return durationString.trim(); + } +} +DurationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); +DurationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, name: "duration" }); +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DurationPipe, decorators: [{ + type: Pipe, + args: [{ + name: 'duration', + }] + }] }); + +class NinjasTransformsModule { +} +NinjasTransformsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); +NinjasTransformsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, declarations: [DurationPipe], exports: [DurationPipe] }); +NinjasTransformsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, imports: [[]] }); +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NinjasTransformsModule, decorators: [{ + type: NgModule, + args: [{ + declarations: [ + DurationPipe + ], + imports: [], + exports: [ + DurationPipe + ] + }] + }] }); + +/* + * Public API Surface of ninjas-transforms + */ + +/** + * Generated bundle index. Do not edit. + */ + +export { DurationPipe, NinjasTransformsModule }; +//# sourceMappingURL=ninjas-transforms.js.map diff --git a/dist/ninjas-transforms/fesm2015/ninjas-transforms.js.map b/dist/ninjas-transforms/fesm2015/ninjas-transforms.js.map new file mode 100644 index 0000000..68f2bf7 --- /dev/null +++ b/dist/ninjas-transforms/fesm2015/ninjas-transforms.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ninjas-transforms.js","sources":["../../../projects/ninjas-transforms/src/lib/duration.pipe.ts","../../../projects/ninjas-transforms/src/lib/ninjas-transforms.module.ts","../../../projects/ninjas-transforms/src/public-api.ts","../../../projects/ninjas-transforms/src/ninjas-transforms.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'duration',\n})\nexport class DurationPipe implements PipeTransform {\n getAbbreviation(s: string) {\n return s[0];\n }\n\n capitalize(s: string) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n }\n\n pluralize(s: string) {\n return s + 's';\n }\n\n public transform(\n epochs_in_seconds: number,\n limit_to: DurationLimit = 'seconds',\n short_hand = false,\n append_zero = false,\n show_zero = false\n ): string {\n const years = Math.floor(epochs_in_seconds / 60 / 60 / 24 / 365);\n const days = Math.floor((epochs_in_seconds / 60 / 60 / 24) % 365);\n const hours = Math.floor((epochs_in_seconds / 60 / 60) % 24);\n const minutes = Math.floor((epochs_in_seconds / 60) % 60);\n const seconds = Math.floor(epochs_in_seconds % 60);\n\n let durationString = '';\n\n let isHighestDenominationPresent = false;\n\n const entities = [years, days, hours, minutes, seconds];\n const duration_names = ['year', 'day', 'hour', 'minute', 'second'];\n\n for (let i = 0; i < entities.length; i++) {\n let entityString = entities[i].toString();\n if (entities[i] !== 0) {\n if (!isHighestDenominationPresent) {\n isHighestDenominationPresent = true;\n }\n if (entities[i] < 10 && append_zero) {\n entityString = '0' + entityString;\n }\n durationString +=\n entityString +\n (short_hand\n ? this.getAbbreviation(duration_names[i])\n : ' ' + this.capitalize(duration_names[i]));\n\n if (!short_hand) {\n durationString +=\n entityString === '01' || entityString === '1' ? '' : 's';\n }\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n } else {\n durationString += ' ';\n }\n } else if (\n entities[i] === 0 &&\n limit_to === this.pluralize(duration_names[i]) &&\n !durationString\n ) {\n return (\n short_hand\n ? 0 + this.getAbbreviation(duration_names[i])\n : '0 ' + this.capitalize(this.pluralize(duration_names[i]))\n ).trim();\n } else if (\n entities[i] === 0 &&\n isHighestDenominationPresent &&\n show_zero\n ) {\n entityString += '0';\n durationString +=\n entityString +\n (short_hand\n ? this.getAbbreviation(duration_names[i])\n : ' ' + this.capitalize(duration_names[i]));\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n } else {\n durationString += ' ';\n }\n }\n\n if (limit_to === this.pluralize(duration_names[i])) {\n return durationString.trim();\n }\n }\n\n return durationString.trim();\n }\n}\n\nexport type DurationLimit = 'years' | 'days' | 'hours' | 'minutes' | 'seconds';\n","import {NgModule} from '@angular/core';\nimport {DurationPipe} from './duration.pipe';\n\n\n@NgModule({\n declarations: [\n DurationPipe\n ],\n imports: [],\n exports: [\n DurationPipe\n ]\n})\nexport class NinjasTransformsModule {\n}\n","/*\n * Public API Surface of ninjas-transforms\n */\n\nexport {DurationPipe, NinjasTransformsModule, DurationLimit} from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/dist/ninjas-transforms/lib/duration.pipe.d.ts b/dist/ninjas-transforms/lib/duration.pipe.d.ts new file mode 100644 index 0000000..e6528c1 --- /dev/null +++ b/dist/ninjas-transforms/lib/duration.pipe.d.ts @@ -0,0 +1,11 @@ +import { PipeTransform } from '@angular/core'; +import * as i0 from "@angular/core"; +export declare class DurationPipe implements PipeTransform { + getAbbreviation(s: string): string; + capitalize(s: string): string; + pluralize(s: string): string; + transform(epochs_in_seconds: number, limit_to?: DurationLimit, short_hand?: boolean, append_zero?: boolean, show_zero?: boolean): string; + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵpipe: i0.ɵɵPipeDeclaration; +} +export declare type DurationLimit = 'years' | 'days' | 'hours' | 'minutes' | 'seconds'; diff --git a/dist/ninjas-transforms/lib/index.d.ts b/dist/ninjas-transforms/lib/index.d.ts new file mode 100644 index 0000000..1ec9de7 --- /dev/null +++ b/dist/ninjas-transforms/lib/index.d.ts @@ -0,0 +1,2 @@ +export * from './duration.pipe'; +export * from './ninjas-transforms.module'; diff --git a/dist/ninjas-transforms/lib/ninjas-transforms.module.d.ts b/dist/ninjas-transforms/lib/ninjas-transforms.module.d.ts new file mode 100644 index 0000000..c8f8c70 --- /dev/null +++ b/dist/ninjas-transforms/lib/ninjas-transforms.module.d.ts @@ -0,0 +1,7 @@ +import * as i0 from "@angular/core"; +import * as i1 from "./duration.pipe"; +export declare class NinjasTransformsModule { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵmod: i0.ɵɵNgModuleDeclaration; + static ɵinj: i0.ɵɵInjectorDeclaration; +} diff --git a/dist/ninjas-transforms/ninjas-transforms.d.ts b/dist/ninjas-transforms/ninjas-transforms.d.ts new file mode 100644 index 0000000..15ca3f6 --- /dev/null +++ b/dist/ninjas-transforms/ninjas-transforms.d.ts @@ -0,0 +1,5 @@ +/** + * Generated bundle index. Do not edit. + */ +/// +export * from './public-api'; diff --git a/dist/ninjas-transforms/package.json b/dist/ninjas-transforms/package.json new file mode 100644 index 0000000..72ca307 --- /dev/null +++ b/dist/ninjas-transforms/package.json @@ -0,0 +1,18 @@ +{ + "name": "ninjas-transforms", + "version": "0.1.1", + "peerDependencies": { + "@angular/common": "^12.2.0", + "@angular/core": "^12.2.0" + }, + "dependencies": { + "tslib": "^2.3.0" + }, + "main": "bundles/ninjas-transforms.umd.js", + "module": "fesm2015/ninjas-transforms.js", + "es2015": "fesm2015/ninjas-transforms.js", + "esm2015": "esm2015/ninjas-transforms.js", + "fesm2015": "fesm2015/ninjas-transforms.js", + "typings": "ninjas-transforms.d.ts", + "sideEffects": false +} \ No newline at end of file diff --git a/dist/ninjas-transforms/public-api.d.ts b/dist/ninjas-transforms/public-api.d.ts new file mode 100644 index 0000000..c7b6606 --- /dev/null +++ b/dist/ninjas-transforms/public-api.d.ts @@ -0,0 +1 @@ +export { DurationPipe, NinjasTransformsModule, DurationLimit } from './lib'; diff --git a/projects/ninjas-transforms/package.json b/projects/ninjas-transforms/package.json index c728680..3bc33b5 100644 --- a/projects/ninjas-transforms/package.json +++ b/projects/ninjas-transforms/package.json @@ -1,6 +1,6 @@ { "name": "ninjas-transforms", - "version": "0.1.0", + "version": "0.1.1", "peerDependencies": { "@angular/common": "^12.2.0", "@angular/core": "^12.2.0"