From 5e355c6536d54052e7669fdf7c65a19612c81cdc Mon Sep 17 00:00:00 2001 From: Bjorn Borud Date: Tue, 4 Apr 2023 13:46:01 +0200 Subject: [PATCH] some adjustments to the charting --- Makefile | 5 +- frontend/dist/frontend/3rdpartylicenses.txt | 323 ++++++++++++++++++ frontend/dist/frontend/favicon.ico | Bin 0 -> 948 bytes frontend/dist/frontend/index.html | 13 + .../dist/frontend/main.a7a0dba0f880d2dd.js | 1 + .../frontend/polyfills.1a4a779d95e3f377.js | 1 + .../dist/frontend/runtime.aaedba49815d2ab0.js | 1 + .../dist/frontend/styles.c29530ee4fe8253e.css | 1 + frontend/frontend.go | 8 + .../app/main-chart/main-chart.component.html | 5 +- .../app/main-chart/main-chart.component.ts | 2 +- go.mod | 2 + go.sum | 4 + pkg/server/http.go | 32 +- pkg/service/s_data.go | 20 +- pkg/store/sqlitestore/t_sample.go | 4 +- proto/pax/v1/data.proto | 5 +- 17 files changed, 396 insertions(+), 31 deletions(-) create mode 100644 frontend/dist/frontend/3rdpartylicenses.txt create mode 100644 frontend/dist/frontend/favicon.ico create mode 100644 frontend/dist/frontend/index.html create mode 100644 frontend/dist/frontend/main.a7a0dba0f880d2dd.js create mode 100644 frontend/dist/frontend/polyfills.1a4a779d95e3f377.js create mode 100644 frontend/dist/frontend/runtime.aaedba49815d2ab0.js create mode 100644 frontend/dist/frontend/styles.c29530ee4fe8253e.css create mode 100644 frontend/frontend.go diff --git a/Makefile b/Makefile index af825d1..07a9837 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1.4 +VERSION=0.1.6 all: gen test lint vet build build: pax @@ -6,6 +6,9 @@ build: pax pax: @cd cmd/$@ && go build -o ../../bin/$@ +ang: + @cd cmd/$@ && go build -o ../../bin/$@ + lint: @revive ./... diff --git a/frontend/dist/frontend/3rdpartylicenses.txt b/frontend/dist/frontend/3rdpartylicenses.txt new file mode 100644 index 0000000..59e3770 --- /dev/null +++ b/frontend/dist/frontend/3rdpartylicenses.txt @@ -0,0 +1,323 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +@kurkle/color +MIT +The MIT License (MIT) + +Copyright (c) 2018-2021 Jukka Kurkela + +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. + + +chart.js +MIT +The MIT License (MIT) + +Copyright (c) 2014-2022 Chart.js Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +chartjs-adapter-date-fns +MIT +The MIT License (MIT) + +Copyright (c) 2019 Chart.js Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +date-fns +MIT +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +zone.js +MIT +The MIT License + +Copyright (c) 2010-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/frontend/dist/frontend/favicon.ico b/frontend/dist/frontend/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 + + PAX + + + + + + + + + + \ No newline at end of file diff --git a/frontend/dist/frontend/main.a7a0dba0f880d2dd.js b/frontend/dist/frontend/main.a7a0dba0f880d2dd.js new file mode 100644 index 0000000..46b563f --- /dev/null +++ b/frontend/dist/frontend/main.a7a0dba0f880d2dd.js @@ -0,0 +1 @@ +"use strict";var CK=Object.defineProperty,SK=(le,zt,Bn)=>zt in le?CK(le,zt,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):le[zt]=Bn,I=(le,zt,Bn)=>(SK(le,"symbol"!=typeof zt?zt+"":zt,Bn),Bn);(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{575:()=>{function le(t){return"function"==typeof t}function zt(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Bn=zt(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ss(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class an{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(o){e=o instanceof Bn?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{s_(o)}catch(s){e=e??[],s instanceof Bn?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Bn(e)}}add(e){var n;if(e&&e!==this)if(this.closed)s_(e);else{if(e instanceof an){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ss(n,e)}remove(e){const{_finalizers:n}=this;n&&ss(n,e),e instanceof an&&e._removeParent(this)}}an.EMPTY=(()=>{const t=new an;return t.closed=!0,t})();const i_=an.EMPTY;function o_(t){return t instanceof an||t&&"closed"in t&&le(t.remove)&&le(t.add)&&le(t.unsubscribe)}function s_(t){le(t)?t():t.unsubscribe()}const gi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ol={setTimeout(t,e,...n){const{delegate:r}=ol;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=ol;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function a_(t){ol.setTimeout(()=>{const{onUnhandledError:e}=gi;if(!e)throw t;e(t)})}function l_(){}const aA=Ed("C",void 0,void 0);function Ed(t,e,n){return{kind:t,value:e,error:n}}let mi=null;function sl(t){if(gi.useDeprecatedSynchronousErrorHandling){const e=!mi;if(e&&(mi={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=mi;if(mi=null,n)throw r}}else t()}class Pd extends an{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,o_(e)&&e.add(this)):this.destination=pA}static create(e,n,r){return new as(e,n,r)}next(e){this.isStopped?Od(function uA(t){return Ed("N",t,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Od(function lA(t){return Ed("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Od(aA,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const fA=Function.prototype.bind;function Td(t,e){return fA.call(t,e)}class dA{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){al(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){al(r)}else al(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){al(n)}}}class as extends Pd{constructor(e,n,r){let i;if(super(),le(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&gi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Td(e.next,o),error:e.error&&Td(e.error,o),complete:e.complete&&Td(e.complete,o)}):i=e}this.destination=new dA(i)}}function al(t){gi.useDeprecatedSynchronousErrorHandling?function cA(t){gi.useDeprecatedSynchronousErrorHandling&&mi&&(mi.errorThrown=!0,mi.error=t)}(t):a_(t)}function Od(t,e){const{onStoppedNotification:n}=gi;n&&ol.setTimeout(()=>n(t,e))}const pA={closed:!0,next:l_,error:function hA(t){throw t},complete:l_},Id="function"==typeof Symbol&&Symbol.observable||"@@observable";function yi(t){return t}function u_(t){return 0===t.length?yi:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}let Ue=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function yA(t){return t&&t instanceof Pd||function mA(t){return t&&le(t.next)&&le(t.error)&&le(t.complete)}(t)&&o_(t)}(n)?n:new as(n,r,i);return sl(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=c_(r))((i,o)=>{const s=new as({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Id](){return this}pipe(...n){return u_(n)(this)}toPromise(n){return new(n=c_(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function c_(t){var e;return null!==(e=t??gi.Promise)&&void 0!==e?e:Promise}const vA=zt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Hn=(()=>{class t extends Ue{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new f_(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new vA}next(n){sl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){sl(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){sl(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?i_:(this.currentObservers=null,o.push(n),new an(()=>{this.currentObservers=null,ss(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Ue;return n.source=this,n}}return t.create=(e,n)=>new f_(e,n),t})();class f_ extends Hn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:i_}}function d_(t){return le(t?.lift)}function ct(t){return e=>{if(d_(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(t,e,n,r,i){return new _A(t,e,n,r,i)}class _A extends Pd{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function ne(t,e){return ct((n,r)=>{let i=0;n.subscribe(nt(r,o=>{r.next(t.call(e,o,i++))}))})}function vi(t){return this instanceof vi?(this.v=t,this):new vi(t)}function DA(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(p,g){o.push([d,h,p,g])>1||a(d,h)})})}function a(d,h){try{!function l(d){d.value instanceof vi?Promise.resolve(d.value.v).then(u,c):f(o[0][2],d)}(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){a("next",d)}function c(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function CA(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function g_(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=t[o](s)).done,s.value)})}}}const m_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function y_(t){return le(t?.then)}function v_(t){return le(t[Id])}function __(t){return Symbol.asyncIterator&&le(t?.[Symbol.asyncIterator])}function b_(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const w_=function MA(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function D_(t){return le(t?.[w_])}function C_(t){return DA(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:i}=yield vi(n.read());if(i)return yield vi(void 0);yield yield vi(r)}}finally{n.releaseLock()}})}function S_(t){return le(t?.getReader)}function bn(t){if(t instanceof Ue)return t;if(null!=t){if(v_(t))return function xA(t){return new Ue(e=>{const n=t[Id]();if(le(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(m_(t))return function EA(t){return new Ue(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,a_)})}(t);if(__(t))return M_(t);if(D_(t))return function TA(t){return new Ue(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(S_(t))return function OA(t){return M_(C_(t))}(t)}throw b_(t)}function M_(t){return new Ue(e=>{(function IA(t,e){var n,r,i,o;return function bA(t,e,n,r){return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=CA(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function sr(t,e,n,r=0,i=!1){const o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function pt(t,e,n=1/0){return le(e)?pt((r,i)=>ne((o,s)=>e(r,o,i,s))(bn(t(r,i))),n):("number"==typeof e&&(n=e),ct((r,i)=>function AA(t,e,n,r,i,o,s,a){const l=[];let u=0,c=0,f=!1;const d=()=>{f&&!l.length&&!u&&e.complete()},h=g=>u{o&&e.next(g),u++;let m=!1;bn(n(g,c++)).subscribe(nt(e,y=>{i?.(y),o?h(y):e.next(y)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;l.length&&up(y)):p(y)}d()}catch(y){e.error(y)}}))};return t.subscribe(nt(e,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,t,n)))}function to(t=1/0){return pt(yi,t)}const ar=new Ue(t=>t.complete());function Rd(t){return t[t.length-1]}function ls(t){return function kA(t){return t&&le(t.schedule)}(Rd(t))?t.pop():void 0}function E_(t,e=0){return ct((n,r)=>{n.subscribe(nt(r,i=>sr(r,t,()=>r.next(i),e),()=>sr(r,t,()=>r.complete(),e),i=>sr(r,t,()=>r.error(i),e)))})}function P_(t,e=0){return ct((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function T_(t,e){if(!t)throw new Error("Iterable cannot be null");return new Ue(n=>{sr(n,e,()=>{const r=t[Symbol.asyncIterator]();sr(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ke(t,e){return e?function jA(t,e){if(null!=t){if(v_(t))return function FA(t,e){return bn(t).pipe(P_(e),E_(e))}(t,e);if(m_(t))return function VA(t,e){return new Ue(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(y_(t))return function LA(t,e){return bn(t).pipe(P_(e),E_(e))}(t,e);if(__(t))return T_(t,e);if(D_(t))return function BA(t,e){return new Ue(n=>{let r;return sr(n,e,()=>{r=t[w_](),sr(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>le(r?.return)&&r.return()})}(t,e);if(S_(t))return function HA(t,e){return T_(C_(t),e)}(t,e)}throw b_(t)}(t,e):bn(t)}function kd(t,e,...n){if(!0===e)return void t();if(!1===e)return;const r=new as({next:()=>{r.unsubscribe(),t()}});return e(...n).subscribe(r)}function ve(t){for(let e in t)if(t[e]===ve)return e;throw Error("Could not find renamed property on target object.")}function _e(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(_e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Fd(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const zA=ve({__forward_ref__:ve});function we(t){return t.__forward_ref__=we,t.toString=function(){return _e(this())},t}function $(t){return function Ld(t){return"function"==typeof t&&t.hasOwnProperty(zA)&&t.__forward_ref__===we}(t)?t():t}class E extends Error{constructor(e,n){super(function ll(t,e){return`NG0${Math.abs(t)}${e?": "+e.trim():""}`}(e,n)),this.code=e}}function Y(t){return"string"==typeof t?t:null==t?"":String(t)}function ul(t,e){throw new E(-201,!1)}function Gt(t,e){null==t&&function de(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Lt(t){return{providers:t.providers||[],imports:t.imports||[]}}function cl(t){return O_(t,fl)||O_(t,A_)}function O_(t,e){return t.hasOwnProperty(e)?t[e]:null}function I_(t){return t&&(t.hasOwnProperty(Vd)||t.hasOwnProperty(JA))?t[Vd]:null}const fl=ve({\u0275prov:ve}),Vd=ve({\u0275inj:ve}),A_=ve({ngInjectableDef:ve}),JA=ve({ngInjectorDef:ve});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Bd;function ln(t){const e=Bd;return Bd=t,e}function R_(t,e,n){const r=cl(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&B.Optional?null:void 0!==e?e:void ul(_e(t))}function Fr(t){return{toString:t}.toString()}var wn=(()=>((wn=wn||{})[wn.OnPush=0]="OnPush",wn[wn.Default=1]="Default",wn))(),jn=(()=>{return(t=jn||(jn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",jn;var t})();const De=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),no={},ce=[],dl=ve({\u0275cmp:ve}),Hd=ve({\u0275dir:ve}),jd=ve({\u0275pipe:ve}),k_=ve({\u0275mod:ve}),ur=ve({\u0275fac:ve}),us=ve({__NG_ELEMENT_ID__:ve});let tR=0;function cs(t){return Fr(()=>{const n=!0===t.standalone,r={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===wn.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||jn.Emulated,id:"c"+tR++,styles:t.styles||ce,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return i.inputs=L_(t.inputs,r),i.outputs=L_(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(N_).filter(F_):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Tt).filter(F_):null,i})}function N_(t){return he(t)||Pt(t)}function F_(t){return null!==t}function Yt(t){return Fr(()=>({type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function L_(t,e){if(null==t)return no;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const W=cs;function Vt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function he(t){return t[dl]||null}function Pt(t){return t[Hd]||null}function Tt(t){return t[jd]||null}function qt(t,e){const n=t[k_]||null;if(!n&&!0===e)throw new Error(`Type ${_e(t)} does not have '\u0275mod' property.`);return n}const Z=11;function Bt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Cn(t){return Array.isArray(t)&&!0===t[1]}function zd(t){return 0!=(8&t.flags)}function ml(t){return 2==(2&t.flags)}function yl(t){return 1==(1&t.flags)}function Sn(t){return null!==t.template}function aR(t){return 0!=(256&t[2])}function Ci(t,e){return t.hasOwnProperty(ur)?t[ur]:null}class cR{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function H_(t){return t.type.prototype.ngOnChanges&&(t.setInput=dR),fR}function fR(){const t=U_(this),e=t?.current;if(e){const n=t.previous;if(n===no)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function dR(t,e,n,r){const i=U_(t)||function hR(t,e){return t[j_]=e}(t,{previous:no,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new cR(l&&l.currentValue,e,s===no),t[r]=e}const j_="__ngSimpleChanges__";function U_(t){return t[j_]||null}function Xe(t){for(;Array.isArray(t);)t=t[0];return t}function Kt(t,e){return Xe(e[t.index])}function Qd(t,e){return t.data[e]}function Xt(t,e){const n=e[t];return Bt(n)?n:n[0]}function _l(t){return 64==(64&t[2])}function Lr(t,e){return null==e?null:t[e]}function $_(t){t[18]=0}function Kd(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const G={lFrame:J_(null),bindingsEnabled:!0};function W_(){return G.bindingsEnabled}function C(){return G.lFrame.lView}function se(){return G.lFrame.tView}function rt(){let t=G_();for(;null!==t&&64===t.type;)t=t.parent;return t}function G_(){return G.lFrame.currentTNode}function Un(t,e){const n=G.lFrame;n.currentTNode=t,n.isParent=e}function Xd(){return G.lFrame.isParent}function Ot(){const t=G.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function lo(){return G.lFrame.bindingIndex++}function OR(t,e){const n=G.lFrame;n.bindingIndex=n.bindingRootIndex=t,Jd(e)}function Jd(t){G.lFrame.currentDirectiveIndex=t}function K_(){return G.lFrame.currentQueryIndex}function th(t){G.lFrame.currentQueryIndex=t}function AR(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function X_(t,e,n){if(n&B.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&B.Host||(i=AR(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}const r=G.lFrame=Z_();return r.currentTNode=e,r.lView=t,!0}function nh(t){const e=Z_(),n=t[1];G.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Z_(){const t=G.lFrame,e=null===t?null:t.child;return null===e?J_(t):e}function J_(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function eb(){const t=G.lFrame;return G.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const tb=eb;function rh(){const t=eb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function It(){return G.lFrame.selectedIndex}function Vr(t){G.lFrame.selectedIndex=t}function bl(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class ms{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Cl(t,e,n){let r=0;for(;re){s=o-1;break}}}for(;o>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let sh=!0;function Ml(t){const e=sh;return sh=t,e}let YR=0;const $n={};function vs(t,e){const n=lh(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,ah(r.data,t),ah(e,null),ah(r.blueprint,null));const i=xl(t,e),o=t.injectorIndex;if(sb(i)){const s=uo(i),a=co(i,e),l=a[1].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|l[s+u]}return e[o+8]=i,o}function ah(t,e){t.push(0,0,0,0,0,0,0,0,e)}function lh(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function xl(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){if(r=gb(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function El(t,e,n){!function qR(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(us)&&(r=n[us]),null==r&&(r=n[us]=YR++);const i=255&r;e.data[t+(i>>5)]|=1<=0?255&e:ZR:e}(n);if("function"==typeof o){if(!X_(e,t,r))return r&B.Host?ub(i,0,r):cb(e,n,r,i);try{const s=o(r);if(null!=s||r&B.Optional)return s;ul()}finally{tb()}}else if("number"==typeof o){let s=null,a=lh(t,e),l=-1,u=r&B.Host?e[16][6]:null;for((-1===a||r&B.SkipSelf)&&(l=-1===a?xl(t,e):e[a+8],-1!==l&&pb(r,!1)?(s=e[1],a=uo(l),e=co(l,e)):a=-1);-1!==a;){const c=e[1];if(hb(o,a,c.data)){const f=KR(a,e,n,s,r,u);if(f!==$n)return f}l=e[a+8],-1!==l&&pb(r,e[1].data[a+8]===u)&&hb(o,a,e)?(s=c,a=uo(l),e=co(l,e)):a=-1}}return i}function KR(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],c=Pl(a,s,n,null==r?ml(a)&&sh:r!=s&&0!=(3&a.type),i&B.Host&&o===a);return null!==c?_s(e,s,c,a):$n}function Pl(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,d=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(i){const h=s[l];if(h&&Sn(h)&&h.type===n)return l}return null}function _s(t,e,n,r){let i=t[n];const o=e.data;if(function UR(t){return t instanceof ms}(i)){const s=i;s.resolving&&function WA(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new E(-200,`Circular dependency in DI detected for ${t}${n}`)}(function ue(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Y(t)}(o[n]));const a=Ml(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ln(s.injectImpl):null;X_(t,r,B.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function HR(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const s=H_(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&ln(l),Ml(a),s.resolving=!1,tb()}}return i}function hb(t,e,n){return!!(n[e+(t>>5)]&1<{const r=function ch(t){return function(...n){if(t){const r=t(...n);for(const i in r)this[i]=r[i]}}}(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,u,c){const f=l.hasOwnProperty(po)?l[po]:Object.defineProperty(l,po,{value:[]})[po];for(;f.length<=c;)f.push(null);return(f[c]=f[c]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}class k{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=z({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zt(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(n)?dr(n,e):e(n))}function yb(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Tl(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const Ss={},ph="__NG_DI_FLAG__",Il="ngTempTokenPath",f1=/\n/gm,wb="__source";let Ms;function vo(t){const e=Ms;return Ms=t,e}function h1(t,e=B.Default){if(void 0===Ms)throw new E(-203,!1);return null===Ms?R_(t,void 0,e):Ms.get(t,e&B.Optional?null:void 0,e)}function A(t,e=B.Default){return(function eR(){return Bd}()||h1)($(t),e)}function $e(t,e=B.Default){return"number"!=typeof e&&(e=0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)),A(t,e)}function gh(t){const e=[];for(let n=0;n((Ht=Ht||{})[Ht.Important=1]="Important",Ht[Ht.DashCase=2]="DashCase",Ht))();const bh=new Map;let A1=0;const Dh="__ngContext__";function wt(t,e){Bt(e)?(t[Dh]=e[20],function k1(t){bh.set(t[20],t)}(e)):t[Dh]=e}function Sh(t,e){return undefined(t,e)}function As(t){const e=t[3];return Cn(e)?e[3]:e}function Mh(t){return Ub(t[13])}function xh(t){return Ub(t[4])}function Ub(t){for(;null!==t&&!Cn(t);)t=t[4];return t}function bo(t,e,n,r,i){if(null!=r){let o,s=!1;Cn(r)?o=r:Bt(r)&&(s=!0,r=r[0]);const a=Xe(r);0===t&&null!==n?null==i?qb(e,n,a):Si(e,n,a,i||null,!0):1===t&&null!==n?Si(e,n,a,i||null,!0):2===t?function Rh(t,e,n){const r=kl(t,e);r&&function nk(t,e,n,r){t.removeChild(e,n,r)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function ok(t,e,n,r,i){const o=n[7];o!==Xe(n)&&bo(e,t,r,o,i);for(let a=10;a0&&(t[n-1][4]=r[4]);const o=Tl(t,10+e);!function q1(t,e){Rs(t,e,e[Z],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Wb(t,e){if(!(128&e[2])){const n=e[Z];n.destroyNode&&Rs(t,e,n,3,null,null),function X1(t){let e=t[13];if(!e)return Oh(t[1],t);for(;e;){let n=null;if(Bt(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Bt(e)&&Oh(e[1],e),e=e[3];null===e&&(e=t),Bt(e)&&Oh(e[1],e),n=e&&e[4]}e=n}}(e)}}function Oh(t,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function tk(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[i=u]():r[i=-u].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o{const s=o;Wh(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&_w(i,n),n}function _w(t,e){for(let n=0;n{e.push(o)})}}function Wh(t,e,n,r){if(!(t=$(t)))return!1;let i=null,o=I_(t);const s=!o&&he(t);if(o||s){if(s&&!s.standalone)return!1;i=t}else{const l=t.ngModule;if(o=I_(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Wh(u,e,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{dr(o.imports,c=>{Wh(c,e,n,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&_w(u,e)}if(!a){const u=Ci(i)||(()=>new i);e.push({provide:i,useFactory:u,deps:ce},{provide:mw,useValue:i,multi:!0},{provide:zh,useValue:()=>A(i),multi:!0})}const l=o.providers;null==l||a||dr(l,c=>{e.push(c)})}}return i!==t&&void 0!==t.providers}const Nk=ve({provide:String,useValue:ve});function Gh(t){return null!==t&&"object"==typeof t&&Nk in t}function xi(t){return"function"==typeof t}const Yh=new k("Set Injector scope."),Hl={},Lk={};let qh;function jl(){return void 0===qh&&(qh=new yw),qh}class jr{}class Dw extends jr{constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kh(e,s=>this.processProvider(s)),this.records.set(gw,wo(void 0,this)),i.has("environment")&&this.records.set(jr,wo(void 0,this));const o=this.records.get(Yh);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mw.multi,ce,B.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const n=vo(this),r=ln(void 0);try{return e()}finally{vo(n),ln(r)}}get(e,n=Ss,r=B.Default){this.assertNotDestroyed();const i=vo(this),o=ln(void 0);try{if(!(r&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function Uk(t){return"function"==typeof t||"object"==typeof t&&t instanceof k}(e)&&cl(e);a=l&&this.injectableDefInScope(l)?wo(Qh(e),Hl):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&B.Self?jl():this.parent).get(e,n=r&B.Optional&&n===Ss?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Il]=s[Il]||[]).unshift(_e(e)),i)throw s;return function g1(t,e,n,r){const i=t[Il];throw e[wb]&&i.unshift(e[wb]),t.message=function m1(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let i=_e(e);if(Array.isArray(e))i=e.map(_e).join(" -> ");else if("object"==typeof e){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):_e(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(f1,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[Il]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{ln(o),vo(i)}}resolveInjectorInitializers(){const e=vo(this),n=ln(void 0);try{const r=this.get(zh.multi,ce,B.Self);for(const i of r)i()}finally{vo(e),ln(n)}}toString(){const e=[],n=this.records;for(const r of n.keys())e.push(_e(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(e){let n=xi(e=$(e))?e:$(e&&e.provide);const r=function Bk(t){return Gh(t)?wo(void 0,t.useValue):wo(function Cw(t,e,n){let r;if(xi(t)){const i=$(t);return Ci(i)||Qh(i)}if(Gh(t))r=()=>$(t.useValue);else if(function ww(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...gh(t.deps||[]));else if(function bw(t){return!(!t||!t.useExisting)}(t))r=()=>A($(t.useExisting));else{const i=$(t&&(t.useClass||t.provide));if(!function Hk(t){return!!t.deps}(t))return Ci(i)||Qh(i);r=()=>new i(...gh(t.deps))}return r}(t),Hl)}(e);if(xi(e)||!0!==e.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=wo(void 0,Hl,!0),i.factory=()=>gh(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===Hl&&(n.value=Lk,n.value=n.factory()),"object"==typeof n.value&&n.value&&function jk(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=$(e.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Qh(t){const e=cl(t),n=null!==e?e.factory:Ci(t);if(null!==n)return n;if(t instanceof k)throw new E(204,!1);if(t instanceof Function)return function Vk(t){const e=t.length;if(e>0)throw function Cs(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new E(204,!1)}function wo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function $k(t){return!!t.\u0275providers}function Kh(t,e){for(const n of t)Array.isArray(n)?Kh(n,e):$k(n)?Kh(n.\u0275providers,e):e(n)}class Sw{}class Gk{resolveComponentFactory(e){throw function Wk(t){const e=Error(`No component factory found for ${_e(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Ls=(()=>{class t{}return t.NULL=new Gk,t})();function Yk(){return Do(rt(),C())}function Do(t,e){return new en(Kt(t,e))}let en=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=Yk,t})();function qk(t){return t instanceof en?t.nativeElement:t}class xw{}let pr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Qk(){const t=C(),n=Xt(rt().index,t);return(Bt(n)?n:t)[Z]}(),t})(),Kk=(()=>{class t{}return t.\u0275prov=z({token:t,providedIn:"root",factory:()=>null}),t})();class Vs{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Xk=new Vs("14.3.0"),Xh={};function Jh(t){return t.ngOriginalError}class Co{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Jh(e);for(;n&&Jh(n);)n=Jh(n);return n||null}}function gr(t){return t instanceof Function?t():t}function Pw(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}const Tw="ng-template";function lN(t,e,n){let r=0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==Pw(h,u,0)||2&r&&u!==d){if(Mn(r))return!1;s=!0}}}}else{if(!s&&!Mn(r)&&!Mn(l))return!1;if(s&&Mn(l))continue;s=!1,r=l|1&r}}return Mn(r)||s}function Mn(t){return 0==(1&t)}function fN(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Mn(s)&&(e+=Aw(o,i),i=""),r=s,o=o||!Mn(r);n++}return""!==i&&(e+=Aw(o,i)),e}const q={};function Ur(t){Rw(se(),C(),It()+t,!1)}function Rw(t,e,n,r){if(!r)if(3==(3&e[2])){const o=t.preOrderCheckHooks;null!==o&&wl(e,o,n)}else{const o=t.preOrderHooks;null!==o&&Dl(e,o,0,n)}Vr(n)}function Lw(t,e=null,n=null,r){const i=Vw(t,e,n,r);return i.resolveInjectorInitializers(),i}function Vw(t,e=null,n=null,r,i=new Set){const o=[n||ce,kk(t)];return r=r||("object"==typeof t?void 0:_e(t)),new Dw(o,e||jl(),r||null,i)}let tn=(()=>{class t{static create(n,r){if(Array.isArray(n))return Lw({name:""},r,n,"");{const i=n.name??"";return Lw({name:i},n.parent,n.providers,i)}}}return t.THROW_IF_NOT_FOUND=Ss,t.NULL=new yw,t.\u0275prov=z({token:t,providedIn:"any",factory:()=>A(gw)}),t.__NG_ELEMENT_ID__=-1,t})();function S(t,e=B.Default){const n=C();return null===n?A(t,e):fb(rt(),n,$(t),e)}function ip(){throw new Error("invalid")}function t0(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r22&&Rw(t,e,22,!1),n(r,i)}finally{Vr(o)}}function yp(t,e,n){!W_()||(function rF(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||vs(n,e),wt(r,e);const s=n.initialInputs;for(let a=i;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function f0(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function d0(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function aF(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Dp(n)}}function Dp(t){for(let r=Mh(t);null!==r;r=xh(r))for(let i=10;i0&&Dp(o)}const n=t[1].components;if(null!==n)for(let r=0;r0&&Dp(i)}}function pF(t,e){const n=Xt(e,t),r=n[1];(function gF(t,e){for(let n=e.length;n-1&&(Th(e,r),Tl(n,r))}this._attachedToViewContainer=!1}Wb(this._lView[1],this._lView)}onDestroy(e){s0(this._lView[1],this._lView,null,e)}markForCheck(){Cp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Ql(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function K1(t,e){Rs(t,e,e[Z],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=e}}class mF extends Bs{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Ql(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class xp extends Ls{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=he(e);return new Hs(n,this.ngModule)}}function b0(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class vF{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){const i=this.injector.get(e,Xh,r);return i!==Xh||n===Xh?i:this.parentInjector.get(e,n,r)}}class Hs extends Sw{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function yN(t){return t.map(mN).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return b0(this.componentDef.inputs)}get outputs(){return b0(this.componentDef.outputs)}create(e,n,r,i){let o=(i=i||this.ngModule)instanceof jr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new vF(e,o):e,a=s.get(xw,null);if(null===a)throw new E(407,!1);const l=s.get(Kk,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",f=r?function XN(t,e,n){return t.selectRootElement(e,n===jn.ShadowDom)}(u,r,this.componentDef.encapsulation):Ph(u,c,function yF(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?288:272,h=_p(0,null,null,1,0,null,null,null,null,null),p=Gl(null,h,null,d,null,null,a,u,l,s,null);let g,m;nh(p);try{const y=function wF(t,e,n,r,i,o){const s=n[1];n[22]=t;const l=xo(s,22,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Kl(l,u,!0),null!==t&&(Cl(i,t,u),null!==l.classes&&Nh(i,t,l.classes),null!==l.styles&&nw(i,t,l.styles)));const c=r.createRenderer(t,e),f=Gl(n,o0(e),null,e.onPush?32:16,n[22],l,r,c,o||null,null,null);return s.firstCreatePass&&(El(vs(l,n),s,e.type),d0(s,l),h0(l,n.length,1)),ql(n,f),n[22]=f}(f,this.componentDef,p,a,u);if(f)if(r)Cl(u,f,["ng-version",Xk.full]);else{const{attrs:_,classes:v}=function vN(t){const e=[],n=[];let r=1,i=2;for(;r0&&Nh(u,f,v.join(" "))}if(m=Qd(h,22),void 0!==n){const _=m.projection=[];for(let v=0;va(Xe(w[r.index])):r.index;let b=null;if(!a&&l&&(b=function jF(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,e,i,r.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,h=!1;else{o=L0(r,e,f,o,!1);const w=n.listen(y,i,o);d.push(o,w),c&&c.push(i,v,_,_+1)}}else o=L0(r,e,f,o,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[i])){const m=g.length;if(m)for(let y=0;y0;)e=e[15],t--;return e}(t,G.lFrame.contextLView))[8]}(t)}function Wr(t,e=""){const n=C(),r=se(),i=t+22,o=r.firstCreatePass?xo(r,i,1,e,null):r.data[i],s=n[i]=function Eh(t,e){return t.createText(e)}(n[Z],e);Nl(r,n,s,o),Un(o,!1)}function Gs(t,e,n){const r=C(),i=function To(t,e,n,r){return Dt(t,lo(),n)?e+Y(n)+r:q}(r,t,e,n);return i!==q&&yr(r,It(),i),Gs}const Oi=void 0;var PL=["en",[["a","p"],["AM","PM"],Oi],[["AM","PM"],Oi,Oi],[["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"]],Oi,[["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"]],Oi,[["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}",Oi,"{1} 'at' {0}",Oi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function EL(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Vo={};function Rt(t){const e=function TL(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=TD(e);if(n)return n;const r=e.split("-")[0];if(n=TD(r),n)return n;if("en"===r)return PL;throw new E(701,!1)}function TD(t){return t in Vo||(Vo[t]=De.ng&&De.ng.common&&De.ng.common.locales&&De.ng.common.locales[t]),Vo[t]}var T=(()=>((T=T||{})[T.LocaleId=0]="LocaleId",T[T.DayPeriodsFormat=1]="DayPeriodsFormat",T[T.DayPeriodsStandalone=2]="DayPeriodsStandalone",T[T.DaysFormat=3]="DaysFormat",T[T.DaysStandalone=4]="DaysStandalone",T[T.MonthsFormat=5]="MonthsFormat",T[T.MonthsStandalone=6]="MonthsStandalone",T[T.Eras=7]="Eras",T[T.FirstDayOfWeek=8]="FirstDayOfWeek",T[T.WeekendRange=9]="WeekendRange",T[T.DateFormat=10]="DateFormat",T[T.TimeFormat=11]="TimeFormat",T[T.DateTimeFormat=12]="DateTimeFormat",T[T.NumberSymbols=13]="NumberSymbols",T[T.NumberFormats=14]="NumberFormats",T[T.CurrencyCode=15]="CurrencyCode",T[T.CurrencySymbol=16]="CurrencySymbol",T[T.CurrencyName=17]="CurrencyName",T[T.Currencies=18]="Currencies",T[T.Directionality=19]="Directionality",T[T.PluralCase=20]="PluralCase",T[T.ExtraData=21]="ExtraData",T))();const Bo="en-US";let OD=Bo;class Ii{}class nC{}class rC extends Ii{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new xp(this);const r=qt(e);this._bootstrapComponents=gr(r.bootstrap),this._r3Injector=Vw(e,n,[{provide:Ii,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],_e(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jp extends nC{constructor(e){super(),this.moduleType=e}create(e){return new rC(this.moduleType,e)}}class PV extends Ii{constructor(e,n,r){super(),this.componentFactoryResolver=new xp(this),this.instance=null;const i=new Dw([...e,{provide:Ii,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],n||jl(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function su(t,e,n=null){return new PV(t,e,n).injector}let TV=(()=>{class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=vw(0,n.type),i=r.length>0?su([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,i)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=z({token:t,providedIn:"environment",factory:()=>new t(A(jr))}),t})();function iC(t){t.getStandaloneInjector=e=>e.get(TV).getOrCreateStandaloneInjector(t)}function Zs(t,e,n,r){return function fC(t,e,n,r,i,o){const s=e+n;return Dt(t,s,i)?Wn(t,s+1,o?r.call(o,i):r(i)):Js(t,s+1)}(C(),Ot(),t,e,n,r)}function Js(t,e){const n=t[e];return n===q?void 0:n}function dC(t,e,n,r,i,o,s){const a=e+n;return function Pi(t,e,n,r){const i=Dt(t,e,n);return Dt(t,e+1,r)||i}(t,a,i,o)?Wn(t,a+2,s?r.call(s,i,o):r(i,o)):Js(t,a+2)}function $p(t){return e=>{setTimeout(t,void 0,e)}}const Ve=class ZV extends Hn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=$p(o),i&&(i=$p(i)),s&&(s=$p(s)));const a=super.subscribe({next:i,error:o,complete:s});return e instanceof an&&e.add(a),a}};function JV(){return this._results[Ei()]()}class zp{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ei(),r=zp.prototype;r[n]||(r[n]=JV)}get changes(){return this._changes||(this._changes=new Ve)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const i=Zt(e);(this._changesDetected=!function t1(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=n2,t})();const e2=vr,t2=class extends e2{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e,n){const r=this._declarationTContainer.tViews,i=Gl(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,n||null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(r)),mp(r,i,e),new Bs(i)}};function n2(){return au(rt(),C())}function au(t,e){return 4&t.type?new t2(e,t,Do(t,e)):null}let In=(()=>{class t{}return t.__NG_ELEMENT_ID__=r2,t})();function r2(){return bC(rt(),C())}const i2=In,vC=class extends i2{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Do(this._hostTNode,this._hostLView)}get injector(){return new fo(this._hostTNode,this._hostLView)}get parentInjector(){const e=xl(this._hostTNode,this._hostLView);if(sb(e)){const n=co(e,this._hostLView),r=uo(e);return new fo(n[1].data[r+8],n)}return new fo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=_C(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=e.createEmbeddedView(n||{},o);return this.insert(s,i),s}createComponent(e,n,r,i,o){const s=e&&!function Ds(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const f=n||{};a=f.index,r=f.injector,i=f.projectableNodes,o=f.environmentInjector||f.ngModuleRef}const l=s?e:new Hs(he(e)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const d=(s?u:this.parentInjector).get(jr,null);d&&(o=d)}const c=l.create(u,i,void 0,o);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,i=r[1];if(function bR(t){return Cn(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const f=r[3],d=new vC(f,f[6],f[3]);d.detach(d.indexOf(e))}}const o=this._adjustIndex(n),s=this._lContainer;!function Z1(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r0)r.push(s[a/2]);else{const u=o[a+1],c=e[-l];for(let f=10;f{class t{constructor(n){this.appInits=n,this.resolve=fu,this.reject=fu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(A(du,8))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const na=new k("AppId",{providedIn:"root",factory:function WC(){return`${ng()}${ng()}${ng()}`}});function ng(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const GC=new k("Platform Initializer"),rg=new k("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),YC=new k("appBootstrapListener");let R2=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const _r=new k("LocaleId",{providedIn:"root",factory:()=>$e(_r,B.Optional|B.SkipSelf)||function k2(){return typeof $localize<"u"&&$localize.locale||Bo}()});class F2{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}let ig=(()=>{class t{compileModuleSync(n){return new jp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=gr(qt(n).declarations).reduce((s,a)=>{const l=he(a);return l&&s.push(new Hs(l)),s},[]);return new F2(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const B2=(()=>Promise.resolve(0))();function og(t){typeof Zone>"u"?B2.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class st{constructor({enableLongStackTrace:e=!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),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const i=this;if(i._nesting=0,i._outer=i._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;i._inner=i._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function H2(){let t=De.requestAnimationFrame,e=De.cancelAnimationFrame;if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function $2(t){const e=()=>{!function U2(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(De,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ag(t),t.isCheckStableRunning=!0,sg(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ag(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return KC(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),XC(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return KC(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),XC(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,ag(t),sg(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!st.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(st.isInAngularZone())throw new E(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,j2,fu,fu);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const j2={};function sg(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ag(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function KC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function XC(t){t._nesting--,sg(t)}class z2{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(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}const ZC=new k(""),pu=new k("");let cg,lg=(()=>{class t{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,cg||(function W2(t){cg=t}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{st.assertNotInAngularZone(),og(()=>{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())og(()=>{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,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(A(st),A(ug),A(pu))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),ug=(()=>{class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return cg?.findTestabilityInTree(this,n,r)??null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Gr=null;const JC=new k("AllowMultipleToken"),fg=new k("PlatformDestroyListeners");class eS{constructor(e,n){this.name=e,this.token=n}}function nS(t,e,n=[]){const r=`Platform: ${e}`,i=new k(r);return(o=[])=>{let s=dg();if(!s||s.injector.get(JC,!1)){const a=[...n,...o,{provide:i,useValue:!0}];t?t(a):function q2(t){if(Gr&&!Gr.get(JC,!1))throw new E(400,!1);Gr=t;const e=t.get(iS);(function tS(t){const e=t.get(GC,null);e&&e.forEach(n=>n())})(t)}(function rS(t=[],e){return tn.create({name:e,providers:[{provide:Yh,useValue:"platform"},{provide:fg,useValue:new Set([()=>Gr=null])},...t]})}(a,r))}return function K2(t){const e=dg();if(!e)throw new E(401,!1);return e}()}}function dg(){return Gr?.get(iS)??null}let iS=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function sS(t,e){let n;return n="noop"===t?new z2:("zone.js"===t?void 0:t)||new st(e),n}(r?.ngZone,function oS(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:st,useValue:i}];return i.run(()=>{const s=tn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),l=a.injector.get(Co,null);if(!l)throw new E(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{mu(this._modules,a),u.unsubscribe()})}),function aS(t,e,n){try{const r=n();return zs(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(l,i,()=>{const u=a.injector.get(hu);return u.runInitializers(),u.donePromise.then(()=>(function ID(t){Gt(t,"Expected localeId to be defined"),"string"==typeof t&&(OD=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(_r,Bo)||Bo),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=lS({},r);return function G2(t,e,n){const r=new jp(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(gu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new E(403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(fg,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(A(tn))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function lS(t,e){return Array.isArray(e)?e.reduce(lS,t):{...t,...e}}let gu=(()=>{class t{constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Ue(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Ue(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{st.assertNotInAngularZone(),og(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{st.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function UA(...t){const e=ls(t),n=function NA(t,e){return"number"==typeof Rd(t)?t.pop():e}(t,1/0),r=t;return r.length?1===r.length?bn(r[0]):to(n)(Ke(r,e)):ar}(o,s.pipe(function $A(t={}){const{connector:e=(()=>new Hn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,l,u=0,c=!1,f=!1;const d=()=>{a?.unsubscribe(),a=void 0},h=()=>{d(),s=l=void 0,c=f=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return ct((g,m)=>{u++,!f&&!c&&d();const y=l=l??e();m.add(()=>{u--,0===u&&!f&&!c&&(a=kd(p,i))}),y.subscribe(m),!s&&u>0&&(s=new as({next:_=>y.next(_),error:_=>{f=!0,d(),a=kd(h,n,_),y.error(_)},complete:()=>{c=!0,d(),a=kd(h,r),y.complete()}}),bn(g).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Sw;if(!this._injector.get(hu).done)throw!i&&function ro(t){const e=he(t)||Pt(t)||Tt(t);return null!==e&&e.standalone}(n),new E(405,false);let s;s=i?n:this._injector.get(Ls).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function Y2(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Ii),u=s.create(tn.NULL,[],r||s.selector,a),c=u.location.nativeElement,f=u.injector.get(ZC,null);return f?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),mu(this.components,u),f?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;mu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(YC,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>mu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(n){return new(n||t)(A(st),A(jr),A(Co))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let cS=!0,yu=(()=>{class t{}return t.__NG_ELEMENT_ID__=J2,t})();function J2(t){return function eB(t,e,n){if(ml(t)&&!n){const r=Xt(t.index,e);return new Bs(r,r)}return 47&t.type?new Bs(e[16],e):null}(rt(),C(),16==(16&t))}class gS{constructor(){}supports(e){return js(e)}create(e){return new sB(e)}}const oB=(t,e)=>e;class sB{constructor(e){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=e||oB}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new aB(n,r),o,i),e}_verifyReinsertion(e,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const i=null===n?this._itHead:n._next;return e._next=i,e._prev=n,null===i?this._itTail=e:i._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new mS),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mS),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class aB{constructor(e,n){this.item=e,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 lB{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class mS{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new lB,this.map.set(n,r)),r.add(e)}get(e,n){const i=this.map.get(e);return i?i.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yS(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),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(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,n);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new cB(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class cB{constructor(e){this.key=e,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 _S(){return new bu([new gS])}let bu=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||_S()),deps:[[t,new Ps,new Es]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new E(901,!1)}}return t.\u0275prov=z({token:t,providedIn:"root",factory:_S}),t})();function bS(){return new ra([new vS])}let ra=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||bS()),deps:[[t,new Ps,new Es]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new E(901,!1)}}return t.\u0275prov=z({token:t,providedIn:"root",factory:bS}),t})();const hB=nS(null,"core",[]);let pB=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(A(gu))},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({}),t})(),wu=null;function Qn(){return wu}const Nt=new k("DocumentToken");let yg=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:function(){return function vB(){return A(wS)}()},providedIn:"platform"}),t})();const _B=new k("Location Initialized");let wS=(()=>{class t extends yg{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qn().getBaseHref(this._doc)}onPopState(n){const r=Qn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Qn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,i){DS()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){DS()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(A(Nt))},t.\u0275prov=z({token:t,factory:function(){return function bB(){return new wS(A(Nt))}()},providedIn:"platform"}),t})();function DS(){return!!window.history.pushState}function vg(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function CS(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Dr(t){return t&&"?"!==t[0]?"?"+t:t}let Ri=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:function(){return $e(MS)},providedIn:"root"}),t})();const SS=new k("appBaseHref");let MS=(()=>{class t extends Ri{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??$e(Nt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vg(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Dr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+Dr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+Dr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return t.\u0275fac=function(n){return new(n||t)(A(yg),A(SS,8))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wB=(()=>{class t extends Ri{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=vg(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Dr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Dr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return t.\u0275fac=function(n){return new(n||t)(A(yg),A(SS,8))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),_g=(()=>{class t{constructor(n){this._subject=new Ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=CS(xS(r)),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Dr(r))}normalize(n){return t.stripTrailingSlash(function CB(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,xS(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Dr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Dr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return t.normalizeQueryParams=Dr,t.joinWithSlash=vg,t.stripTrailingSlash=CS,t.\u0275fac=function(n){return new(n||t)(A(Ri))},t.\u0275prov=z({token:t,factory:function(){return function DB(){return new _g(A(Ri))}()},providedIn:"root"}),t})();function xS(t){return t.replace(/\/index.html$/,"")}var ze=(()=>((ze=ze||{})[ze.Format=0]="Format",ze[ze.Standalone=1]="Standalone",ze))(),ie=(()=>((ie=ie||{})[ie.Narrow=0]="Narrow",ie[ie.Abbreviated=1]="Abbreviated",ie[ie.Wide=2]="Wide",ie[ie.Short=3]="Short",ie))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),L=(()=>((L=L||{})[L.Decimal=0]="Decimal",L[L.Group=1]="Group",L[L.List=2]="List",L[L.PercentSign=3]="PercentSign",L[L.PlusSign=4]="PlusSign",L[L.MinusSign=5]="MinusSign",L[L.Exponential=6]="Exponential",L[L.SuperscriptingExponent=7]="SuperscriptingExponent",L[L.PerMille=8]="PerMille",L[L.Infinity=9]="Infinity",L[L.NaN=10]="NaN",L[L.TimeSeparator=11]="TimeSeparator",L[L.CurrencyDecimal=12]="CurrencyDecimal",L[L.CurrencyGroup=13]="CurrencyGroup",L))();function Du(t,e){return pn(Rt(t)[T.DateFormat],e)}function Cu(t,e){return pn(Rt(t)[T.TimeFormat],e)}function Su(t,e){return pn(Rt(t)[T.DateTimeFormat],e)}function hn(t,e){const n=Rt(t),r=n[T.NumberSymbols][e];if(typeof r>"u"){if(e===L.CurrencyDecimal)return n[T.NumberSymbols][L.Decimal];if(e===L.CurrencyGroup)return n[T.NumberSymbols][L.Group]}return r}function PS(t){if(!t[T.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[T.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function pn(t,e){for(let n=e;n>-1;n--)if(typeof t[n]<"u")return t[n];throw new Error("Locale data API: locale data undefined")}function wg(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const FB=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ia={},LB=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var at=(()=>((at=at||{})[at.Short=0]="Short",at[at.ShortGMT=1]="ShortGMT",at[at.Long=2]="Long",at[at.Extended=3]="Extended",at))(),j=(()=>((j=j||{})[j.FullYear=0]="FullYear",j[j.Month=1]="Month",j[j.Date=2]="Date",j[j.Hours=3]="Hours",j[j.Minutes=4]="Minutes",j[j.Seconds=5]="Seconds",j[j.FractionalSeconds=6]="FractionalSeconds",j[j.Day=7]="Day",j))(),J=(()=>((J=J||{})[J.DayPeriods=0]="DayPeriods",J[J.Days=1]="Days",J[J.Months=2]="Months",J[J.Eras=3]="Eras",J))();function VB(t,e,n,r){let i=function YB(t){if(IS(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[i,o=1,s=1]=t.split("-").map(a=>+a);return Mu(i,o-1,s)}const n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(FB))return function qB(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,l,u),e}(r)}const e=new Date(t);if(!IS(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Cr(n,e)||e;let a,s=[];for(;e;){if(a=LB.exec(e),!a){s.push(e);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;e=c}}let l=i.getTimezoneOffset();r&&(l=OS(r,l),i=function GB(t,e,n){const r=n?-1:1,i=t.getTimezoneOffset();return function WB(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,r*(OS(e,i)-i))}(i,r,!0));let u="";return s.forEach(c=>{const f=function zB(t){if(Cg[t])return Cg[t];let e;switch(t){case"G":case"GG":case"GGG":e=Se(J.Eras,ie.Abbreviated);break;case"GGGG":e=Se(J.Eras,ie.Wide);break;case"GGGGG":e=Se(J.Eras,ie.Narrow);break;case"y":e=et(j.FullYear,1,0,!1,!0);break;case"yy":e=et(j.FullYear,2,0,!0,!0);break;case"yyy":e=et(j.FullYear,3,0,!1,!0);break;case"yyyy":e=et(j.FullYear,4,0,!1,!0);break;case"Y":e=Tu(1);break;case"YY":e=Tu(2,!0);break;case"YYY":e=Tu(3);break;case"YYYY":e=Tu(4);break;case"M":case"L":e=et(j.Month,1,1);break;case"MM":case"LL":e=et(j.Month,2,1);break;case"MMM":e=Se(J.Months,ie.Abbreviated);break;case"MMMM":e=Se(J.Months,ie.Wide);break;case"MMMMM":e=Se(J.Months,ie.Narrow);break;case"LLL":e=Se(J.Months,ie.Abbreviated,ze.Standalone);break;case"LLLL":e=Se(J.Months,ie.Wide,ze.Standalone);break;case"LLLLL":e=Se(J.Months,ie.Narrow,ze.Standalone);break;case"w":e=Dg(1);break;case"ww":e=Dg(2);break;case"W":e=Dg(1,!0);break;case"d":e=et(j.Date,1);break;case"dd":e=et(j.Date,2);break;case"c":case"cc":e=et(j.Day,1);break;case"ccc":e=Se(J.Days,ie.Abbreviated,ze.Standalone);break;case"cccc":e=Se(J.Days,ie.Wide,ze.Standalone);break;case"ccccc":e=Se(J.Days,ie.Narrow,ze.Standalone);break;case"cccccc":e=Se(J.Days,ie.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=Se(J.Days,ie.Abbreviated);break;case"EEEE":e=Se(J.Days,ie.Wide);break;case"EEEEE":e=Se(J.Days,ie.Narrow);break;case"EEEEEE":e=Se(J.Days,ie.Short);break;case"a":case"aa":case"aaa":e=Se(J.DayPeriods,ie.Abbreviated);break;case"aaaa":e=Se(J.DayPeriods,ie.Wide);break;case"aaaaa":e=Se(J.DayPeriods,ie.Narrow);break;case"b":case"bb":case"bbb":e=Se(J.DayPeriods,ie.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=Se(J.DayPeriods,ie.Wide,ze.Standalone,!0);break;case"bbbbb":e=Se(J.DayPeriods,ie.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=Se(J.DayPeriods,ie.Abbreviated,ze.Format,!0);break;case"BBBB":e=Se(J.DayPeriods,ie.Wide,ze.Format,!0);break;case"BBBBB":e=Se(J.DayPeriods,ie.Narrow,ze.Format,!0);break;case"h":e=et(j.Hours,1,-12);break;case"hh":e=et(j.Hours,2,-12);break;case"H":e=et(j.Hours,1);break;case"HH":e=et(j.Hours,2);break;case"m":e=et(j.Minutes,1);break;case"mm":e=et(j.Minutes,2);break;case"s":e=et(j.Seconds,1);break;case"ss":e=et(j.Seconds,2);break;case"S":e=et(j.FractionalSeconds,1);break;case"SS":e=et(j.FractionalSeconds,2);break;case"SSS":e=et(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Eu(at.Short);break;case"ZZZZZ":e=Eu(at.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Eu(at.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Eu(at.Long);break;default:return null}return Cg[t]=e,e}(c);u+=f?f(i,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Mu(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Cr(t,e){const n=function SB(t){return Rt(t)[T.LocaleId]}(t);if(ia[n]=ia[n]||{},ia[n][e])return ia[n][e];let r="";switch(e){case"shortDate":r=Du(t,ke.Short);break;case"mediumDate":r=Du(t,ke.Medium);break;case"longDate":r=Du(t,ke.Long);break;case"fullDate":r=Du(t,ke.Full);break;case"shortTime":r=Cu(t,ke.Short);break;case"mediumTime":r=Cu(t,ke.Medium);break;case"longTime":r=Cu(t,ke.Long);break;case"fullTime":r=Cu(t,ke.Full);break;case"short":const i=Cr(t,"shortTime"),o=Cr(t,"shortDate");r=xu(Su(t,ke.Short),[i,o]);break;case"medium":const s=Cr(t,"mediumTime"),a=Cr(t,"mediumDate");r=xu(Su(t,ke.Medium),[s,a]);break;case"long":const l=Cr(t,"longTime"),u=Cr(t,"longDate");r=xu(Su(t,ke.Long),[l,u]);break;case"full":const c=Cr(t,"fullTime"),f=Cr(t,"fullDate");r=xu(Su(t,ke.Full),[c,f])}return r&&(ia[n][e]=r),r}function xu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return null!=e&&r in e?e[r]:n})),t}function Rn(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===j.Hours)0===a&&-12===n&&(a=12);else if(t===j.FractionalSeconds)return function BB(t,e){return Rn(t,3).substring(0,e)}(a,e);const l=hn(s,L.MinusSign);return Rn(a,e,l,r,i)}}function Se(t,e,n=ze.Format,r=!1){return function(i,o){return function jB(t,e,n,r,i,o){switch(n){case J.Months:return function EB(t,e,n){const r=Rt(t),o=pn([r[T.MonthsFormat],r[T.MonthsStandalone]],e);return pn(o,n)}(e,i,r)[t.getMonth()];case J.Days:return function xB(t,e,n){const r=Rt(t),o=pn([r[T.DaysFormat],r[T.DaysStandalone]],e);return pn(o,n)}(e,i,r)[t.getDay()];case J.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const u=function IB(t){const e=Rt(t);return PS(e),(e[T.ExtraData][2]||[]).map(r=>"string"==typeof r?wg(r):[wg(r[0]),wg(r[1])])}(e),c=function AB(t,e,n){const r=Rt(t);PS(r);const o=pn([r[T.ExtraData][0],r[T.ExtraData][1]],e)||[];return pn(o,n)||[]}(e,i,r),f=u.findIndex(d=>{if(Array.isArray(d)){const[h,p]=d,g=s>=h.hours&&a>=h.minutes,m=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case at.Short:return(i>=0?"+":"")+Rn(s,2,o)+Rn(Math.abs(i%60),2,o);case at.ShortGMT:return"GMT"+(i>=0?"+":"")+Rn(s,1,o);case at.Long:return"GMT"+(i>=0?"+":"")+Rn(s,2,o)+":"+Rn(Math.abs(i%60),2,o);case at.Extended:return 0===r?"Z":(i>=0?"+":"")+Rn(s,2,o)+":"+Rn(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function TS(t){return Mu(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Dg(t,e=!1){return function(n,r){let i;if(e){const o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{const o=TS(n),s=function $B(t){const e=Mu(t,0,1).getDay();return Mu(t,0,1+(e<=4?4:11)-e)}(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Rn(i,t,hn(r,L.MinusSign))}}function Tu(t,e=!1){return function(n,r){return Rn(TS(n).getFullYear(),t,hn(r,L.MinusSign),e)}}const Cg={};function OS(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function IS(t){return t instanceof Date&&!isNaN(t.valueOf())}function NS(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}let FS=(()=>{class t{constructor(n,r,i,o){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(js(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){const n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}_applyKeyValueChanges(n){n.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(n){n.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_e(r.item)}`);this._toggleClass(r.item,!0)}),n.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!0)):Object.keys(n).forEach(r=>this._toggleClass(r,!!n[r])))}_removeClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!1)):Object.keys(n).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(n,r){(n=n.trim())&&n.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return t.\u0275fac=function(n){return new(n||t)(S(bu),S(ra),S(en),S(pr))},t.\u0275dir=W({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})(),HS=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new cH,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jS("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jS("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(S(In),S(vr))},t.\u0275dir=W({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class cH{constructor(){this.$implicit=null,this.ngIf=null}}function jS(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_e(e)}'.`)}const MH=new k("DATE_PIPE_DEFAULT_TIMEZONE");let $S=(()=>{class t{constructor(n,r){this.locale=n,this.defaultTimezone=r}transform(n,r="mediumDate",i,o){if(null==n||""===n||n!=n)return null;try{return VB(n,r,o||this.locale,i??this.defaultTimezone??void 0)}catch(s){throw function kn(t,e){return new E(2100,!1)}()}}}return t.\u0275fac=function(n){return new(n||t)(S(_r,16),S(MH,24))},t.\u0275pipe=Vt({name:"date",type:t,pure:!0,standalone:!0}),t})(),FH=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({}),t})();let HH=(()=>{class t{}return t.\u0275prov=z({token:t,providedIn:"root",factory:()=>new jH(A(Nt),window)}),t})();class jH{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function UH(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=GS(this.window.history)||GS(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function GS(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class YS{}class Ng extends class gj extends class yB{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function mB(t){wu||(wu=t)}(new Ng)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function mj(){return aa=aa||document.querySelector("base"),aa?aa.getAttribute("href"):null}();return null==n?null:function yj(t){Ru=Ru||document.createElement("a"),Ru.setAttribute("href",t);const e=Ru.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return NS(document.cookie,e)}}let Ru,aa=null;const ZS=new k("TRANSITION_ID"),_j=[{provide:du,useFactory:function vj(t,e,n){return()=>{n.get(hu).donePromise.then(()=>{const r=Qn(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();const ku=new k("EventManagerPlugins");let Nu=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),la=(()=>{class t extends eM{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.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(tM),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(tM))}}return t.\u0275fac=function(n){return new(n||t)(A(Nt))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();function tM(t){Qn().remove(t)}const Fg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Lg=/%COMP%/g;function Fu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Vg=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Bg(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case jn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new Ej(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case jn.ShadowDom:return new Pj(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Fu(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(A(Nu),A(la),A(na))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();class Bg{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Fg[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){(sM(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(sM(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=Fg[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Fg[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(Ht.DashCase|Ht.Important)?e.style.setProperty(n,r,i&Ht.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Ht.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,iM(r)):this.eventManager.addEventListener(e,n,iM(r))}}function sM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Ej extends Bg{constructor(e,n,r,i){super(e),this.component=r;const o=Fu(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function Sj(t){return"_ngcontent-%COMP%".replace(Lg,t)}(i+"-"+r.id),this.hostAttr=function Mj(t){return"_nghost-%COMP%".replace(Lg,t)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class Pj extends Bg{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Fu(i.id,i.styles,[]);for(let s=0;s{class t extends JS{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(A(Nt))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();const aM=["alt","control","meta","shift"],Oj={"\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"},Ij={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Aj=(()=>{class t extends JS{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),aM.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=Oj[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),aM.forEach(s=>{s!==i&&(0,Ij[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(A(Nt))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();const Fj=nS(hB,"browser",[{provide:rg,useValue:"browser"},{provide:GC,useValue:function Rj(){Ng.makeCurrent()},multi:!0},{provide:Nt,useFactory:function Nj(){return function ck(t){Lh=t}(document),document},deps:[]}]),cM=new k(""),fM=[{provide:pu,useClass:class bj{addToWindow(e){De.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(r=>{const i=De.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){return null==n?null:e.getTestability(n)??(r?Qn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},deps:[]},{provide:ZC,useClass:lg,deps:[st,ug,pu]},{provide:lg,useClass:lg,deps:[st,ug,pu]}],dM=[{provide:Yh,useValue:"root"},{provide:Co,useFactory:function kj(){return new Co},deps:[]},{provide:ku,useClass:Tj,multi:!0,deps:[Nt,st,rg]},{provide:ku,useClass:Aj,multi:!0,deps:[Nt]},{provide:Vg,useClass:Vg,deps:[Nu,la,na]},{provide:xw,useExisting:Vg},{provide:eM,useExisting:la},{provide:la,useClass:la,deps:[Nt]},{provide:Nu,useClass:Nu,deps:[ku,st]},{provide:YS,useClass:wj,deps:[]},[]];let Lj=(()=>{class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:na,useValue:n.appId},{provide:ZS,useExisting:na},_j]}}}return t.\u0275fac=function(n){return new(n||t)(A(cM,12))},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({providers:[...dM,...fM],imports:[FH,pB]}),t})(),hM=(()=>{class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return t.\u0275fac=function(n){return new(n||t)(A(Nt))},t.\u0275prov=z({token:t,factory:function(n){let r=null;return r=n?new n:function Bj(){return new hM(A(Nt))}(),r},providedIn:"root"}),t})();function N(...t){return Ke(t,ls(t))}typeof window<"u"&&window;class Nn extends Hn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){const{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const Lu=zt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:Yj}=Array,{getPrototypeOf:qj,prototype:Qj,keys:Kj}=Object;const{isArray:Zj}=Array;function _M(...t){const e=ls(t),n=function x_(t){return le(Rd(t))?t.pop():void 0}(t),{args:r,keys:i}=function mM(t){if(1===t.length){const e=t[0];if(Yj(e))return{args:e,keys:null};if(function Xj(t){return t&&"object"==typeof t&&qj(t)===Qj}(e)){const n=Kj(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}(t);if(0===r.length)return Ke([],e);const o=new Ue(function eU(t,e,n=yi){return r=>{bM(e,()=>{const{length:i}=t,o=new Array(i);let s=i,a=i;for(let l=0;l{const u=Ke(t[l],e);let c=!1;u.subscribe(nt(r,f=>{o[l]=f,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,e,i?s=>function vM(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}(i,s):yi));return n?o.pipe(function yM(t){return ne(e=>function Jj(t,e){return Zj(e)?t(...e):t(e)}(t,e))}(n)):o}function bM(t,e,n){t?sr(n,t,e):e()}function Ug(...t){return function tU(){return to(1)}()(Ke(t,ls(t)))}function wM(t){return new Ue(e=>{bn(t()).subscribe(e)})}function ua(t,e){const n=le(t)?t:()=>t,r=i=>i.error(n());return new Ue(e?i=>e.schedule(r,0,i):r)}function $g(){return ct((t,e)=>{let n=null;t._refCount++;const r=nt(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(n=null);const i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}class DM extends Ue{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,d_(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new an;const n=this.getSubject();e.add(this.source.subscribe(nt(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=an.EMPTY)}return e}refCount(){return $g()(this)}}function Kn(t,e){return ct((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(nt(r,l=>{i?.unsubscribe();let u=0;const c=o++;bn(t(l,c)).subscribe(i=nt(r,f=>r.next(e?e(l,f,c,u++):f),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ca(t){return t<=0?()=>ar:ct((e,n)=>{let r=0;e.subscribe(nt(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Sr(t,e){return ct((n,r)=>{let i=0;n.subscribe(nt(r,o=>t.call(e,o,i++)&&r.next(o)))})}function Vu(t){return ct((e,n)=>{let r=!1;e.subscribe(nt(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function CM(t=rU){return ct((e,n)=>{let r=!1;e.subscribe(nt(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function rU(){return new Lu}function qr(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Sr((i,o)=>t(i,o,r)):yi,ca(1),n?Vu(e):CM(()=>new Lu))}function Qr(t,e){return le(e)?pt(t,e,1):pt(t,1)}function Ct(t,e,n){const r=le(t)||e||n?{next:t,error:e,complete:n}:t;return r?ct((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(nt(o,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),o.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):yi}function Kr(t){return ct((e,n)=>{let o,r=null,i=!1;r=e.subscribe(nt(n,void 0,void 0,s=>{o=bn(t(s,Kr(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function iU(t,e,n,r,i){return(o,s)=>{let a=n,l=e,u=0;o.subscribe(nt(s,c=>{const f=u++;l=a?t(l,c,f):(a=!0,c),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function SM(t,e){return ct(iU(t,e,arguments.length>=2,!0))}function zg(t){return t<=0?()=>ar:ct((e,n)=>{let r=[];e.subscribe(nt(n,i=>{r.push(i),t{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function MM(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Sr((i,o)=>t(i,o,r)):yi,zg(1),n?Vu(e):CM(()=>new Lu))}function Wg(t){return ct((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}const te="primary",fa=Symbol("RouteTitle");class aU{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Uo(t){return new aU(t)}function lU(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[o]===i)}return t===e}function EM(t){return Array.prototype.concat.apply([],t)}function PM(t){return t.length>0?t[t.length-1]:null}function mt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Xr(t){return Ap(t)?t:zs(t)?Ke(Promise.resolve(t)):N(t)}const fU={exact:function IM(t,e,n){if(!Ni(t.segments,e.segments)||!Bu(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!IM(t.children[r],e.children[r],n))return!1;return!0},subset:AM},TM={exact:function dU(t,e){return Xn(t,e)},subset:function hU(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>xM(t[n],e[n]))},ignored:()=>!0};function OM(t,e,n){return fU[n.paths](t.root,e.root,n.matrixParams)&&TM[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function AM(t,e,n){return RM(t,e,e.segments,n)}function RM(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!(!Ni(i,n)||e.hasChildren()||!Bu(i,n,r))}if(t.segments.length===n.length){if(!Ni(t.segments,n)||!Bu(t.segments,n,r))return!1;for(const i in e.children)if(!t.children[i]||!AM(t.children[i],e.children[i],r))return!1;return!0}{const i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!(Ni(t.segments,i)&&Bu(t.segments,i,r)&&t.children[te])&&RM(t.children[te],e,o,r)}}function Bu(t,e,n){return e.every((r,i)=>TM[n](t[i].parameters,r.parameters))}class ki{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uo(this.queryParams)),this._queryParamMap}toString(){return mU.serialize(this)}}class re{constructor(e,n){this.segments=e,this.children=n,this.parent=null,mt(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hu(this)}}class da{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Uo(this.parameters)),this._parameterMap}toString(){return LM(this)}}function Ni(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}let kM=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:function(){return new Yg},providedIn:"root"}),t})();class Yg{parse(e){const n=new MU(e);return new ki(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${ha(e.root,!0)}`,r=function _U(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(i=>`${ju(n)}=${ju(i)}`).join("&"):`${ju(n)}=${ju(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${n}${r}${"string"==typeof e.fragment?`#${function yU(t){return encodeURI(t)}(e.fragment)}`:""}`}}const mU=new Yg;function Hu(t){return t.segments.map(e=>LM(e)).join("/")}function ha(t,e){if(!t.hasChildren())return Hu(t);if(e){const n=t.children[te]?ha(t.children[te],!1):"",r=[];return mt(t.children,(i,o)=>{o!==te&&r.push(`${o}:${ha(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function gU(t,e){let n=[];return mt(t.children,(r,i)=>{i===te&&(n=n.concat(e(r,i)))}),mt(t.children,(r,i)=>{i!==te&&(n=n.concat(e(r,i)))}),n}(t,(r,i)=>i===te?[ha(t.children[te],!1)]:[`${i}:${ha(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[te]?`${Hu(t)}/${n[0]}`:`${Hu(t)}/(${n.join("//")})`}}function NM(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ju(t){return NM(t).replace(/%3B/gi,";")}function qg(t){return NM(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uu(t){return decodeURIComponent(t)}function FM(t){return Uu(t.replace(/\+/g,"%20"))}function LM(t){return`${qg(t.path)}${function vU(t){return Object.keys(t).map(e=>`;${qg(e)}=${qg(t[e])}`).join("")}(t.parameters)}`}const bU=/^[^\/()?;=#]+/;function $u(t){const e=t.match(bU);return e?e[0]:""}const wU=/^[^=?&#]+/,CU=/^[^&#]+/;class MU{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new re([],{}):new re([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[te]=new re(e,n)),r}parseSegment(){const e=$u(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(e),new da(Uu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=$u(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=$u(this.remaining);i&&(r=i,this.capture(r))}e[Uu(n)]=Uu(r)}parseQueryParam(e){const n=function DU(t){const e=t.match(wU);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function SU(t){const e=t.match(CU);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=FM(n),o=FM(r);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=$u(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new E(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=te);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[te]:new re([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new E(4011,!1)}}function Qg(t){return t.segments.length>0?new re([],{[te]:t}):t}function zu(t){const e={};for(const r of Object.keys(t.children)){const o=zu(t.children[r]);(o.segments.length>0||o.hasChildren())&&(e[r]=o)}return function xU(t){if(1===t.numberOfChildren&&t.children[te]){const e=t.children[te];return new re(t.segments.concat(e.segments),e.children)}return t}(new re(t.segments,e))}function Fi(t){return t instanceof ki}function TU(t,e,n,r,i){if(0===n.length)return $o(e.root,e.root,e.root,r,i);const o=function HM(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new BM(!0,0,t);let e=0,n=!1;const r=t.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return mt(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new BM(n,e,r)}(n);return o.toRoot()?$o(e.root,e.root,new re([],{}),r,i):function s(l){const u=function IU(t,e,n,r){if(t.isAbsolute)return new zo(e.root,!0,0);if(-1===r)return new zo(n,n===e.root,0);return function jM(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new E(4005,!1);i=r.segments.length}return new zo(r,!1,i-o)}(n,r+(pa(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,e,t.snapshot?._urlSegment,l),c=u.processChildren?ma(u.segmentGroup,u.index,o.commands):Xg(u.segmentGroup,u.index,o.commands);return $o(e.root,u.segmentGroup,c,r,i)}(t.snapshot?._lastPathIndex)}function pa(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ga(t){return"object"==typeof t&&null!=t&&t.outlets}function $o(t,e,n,r,i){let s,o={};r&&mt(r,(l,u)=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=t===e?n:VM(t,e,n);const a=Qg(zu(s));return new ki(a,o,i)}function VM(t,e,n){const r={};return mt(t.children,(i,o)=>{r[o]=i===e?n:VM(i,e,n)}),new re(t.segments,r)}class BM{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&pa(r[0]))throw new E(4003,!1);const i=r.find(ga);if(i&&i!==PM(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zo{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function Xg(t,e,n){if(t||(t=new re([],{})),0===t.segments.length&&t.hasChildren())return ma(t,e,n);const r=function RU(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const s=t.segments[i],a=n[r];if(ga(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!$M(l,u,s))return o;r+=2}else{if(!$M(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=Xg(t.children[s],e,o))}),mt(t.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new re(t.segments,i)}}function Zg(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Zg(new re([],{}),0,n))}),e}function UM(t){const e={};return mt(t,(n,r)=>e[r]=`${n}`),e}function $M(t,e,n){return t==n.path&&Xn(e,n.parameters)}class Mr{constructor(e,n){this.id=e,this.url=n}}class Jg extends Mr{constructor(e,n,r="imperative",i=null){super(e,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Li extends Mr{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Wu extends Mr{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class zM extends Mr{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class NU extends Mr{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FU extends Mr{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LU extends Mr{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class VU extends Mr{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class BU extends Mr{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HU{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jU{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class UU{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $U{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zU{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WU{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WM{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class GM{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=em(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=em(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=tm(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return tm(e,this._root).map(n=>n.value)}}function em(t,e){if(t===e.value)return e;for(const n of e.children){const r=em(t,n);if(r)return r}return null}function tm(t,e){if(t===e.value)return[e];for(const n of e.children){const r=tm(t,n);if(r.length)return r.unshift(e),r}return[]}class xr{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Wo(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class YM extends GM{constructor(e,n){super(e),this.snapshot=n,nm(this,e)}toString(){return this.snapshot.toString()}}function qM(t,e){const n=function YU(t,e){const s=new Gu([],{},{},"",{},te,e,null,t.root,-1,{});return new KM("",new xr(s,[]))}(t,e),r=new Nn([new da("",{})]),i=new Nn({}),o=new Nn({}),s=new Nn({}),a=new Nn(""),l=new Vi(r,i,s,a,o,te,e,n.root);return l.snapshot=n.root,new YM(new xr(l,[]),n)}class Vi{constructor(e,n,r,i,o,s,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(ne(u=>u[fa]))??N(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ne(e=>Uo(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(e=>Uo(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function QM(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function qU(t){return t.reduce((e,n)=>({params:{...e.params,...n.params},data:{...e.data,...n.data},resolve:{...n.data,...e.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Gu{constructor(e,n,r,i,o,s,a,l,u,c,f,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[fa],this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._correctedLastPathIndex=d??c,this._resolve=f}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Uo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class KM extends GM{constructor(e,n){super(n),this.url=e,nm(this,n)}toString(){return XM(this._root)}}function nm(t,e){e.value._routerState=t,e.children.forEach(n=>nm(t,n))}function XM(t){const e=t.children.length>0?` { ${t.children.map(XM).join(", ")} } `:"";return`${t.value}${e}`}function rm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Xn(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Xn(e.params,n.params)||t.params.next(n.params),function uU(t,e){if(t.length!==e.length)return!1;for(let n=0;nXn(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||im(t.parent,e.parent))}function ya(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function KU(t,e,n){return e.children.map(r=>{for(const i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return ya(t,r,i);return ya(t,r)})}(t,e,n);return new xr(r,i)}{if(t.shouldAttach(e.value)){const o=t.retrieve(e.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ya(t,a)),s}}const r=function XU(t){return new Vi(new Nn(t.url),new Nn(t.params),new Nn(t.queryParams),new Nn(t.fragment),new Nn(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(o=>ya(t,o));return new xr(r,i)}}const om="ngNavigationCancelingError";function ZM(t,e){const{redirectTo:n,navigationBehaviorOptions:r}=Fi(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=JM(!1,0,e);return i.url=n,i.navigationBehaviorOptions=r,i}function JM(t,e,n){const r=new Error("NavigationCancelingError: "+(t||""));return r[om]=!0,r.cancellationCode=e,n&&(r.url=n),r}function ex(t){return tx(t)&&Fi(t.url)}function tx(t){return t&&t[om]}class ZU{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new va,this.attachRef=null}}let va=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new ZU,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yu=!1;let nx=(()=>{class t{constructor(n,r,i,o,s){this.parentContexts=n,this.location=r,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ve,this.deactivateEvents=new Ve,this.attachEvents=new Ve,this.detachEvents=new Ve,this.name=i||te,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,Yu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,Yu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,Yu);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,Yu);this._activatedRoute=n;const i=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new JU(n,a,i.injector);if(r&&function e$(t){return!!t.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=i.createComponent(u,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(S(va),S(In),function bs(t){return function QR(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let i=0;for(;i{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=cs({type:t,selectors:[["ng-component"]],standalone:!0,features:[iC],decls:1,vars:0,template:function(n,r){1&n&&$s(0,"router-outlet")},dependencies:[nx],encapsulation:2}),t})();function rx(t,e){return t.providers&&!t._injector&&(t._injector=su(t.providers,e,`Route: ${t.path}`)),t._injector??e}function lm(t){const e=t.children&&t.children.map(lm),n=e?{...t,children:e}:{...t};return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==te&&(n.component=sm),n}function gn(t){return t.outlet||te}function ix(t,e){const n=t.filter(r=>gn(r)===e);return n.push(...t.filter(r=>gn(r)!==e)),n}function _a(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class o${constructor(e,n,r,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),rm(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const i=Wo(n);e.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),mt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,n,r){const i=e.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=Wo(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=Wo(e);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const i=Wo(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new WU(o.value.snapshot))}),e.children.length&&this.forwardEvent(new $U(e.value.snapshot))}activateRoutes(e,n,r){const i=e.value,o=n?n.value:null;if(rm(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),rm(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=_a(i.snapshot),l=a?.get(Ls)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class ox{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class qu{constructor(e,n){this.component=e,this.route=n}}function s$(t,e,n){const r=t._root;return ba(r,e?e._root:null,n,[r.value])}function Go(t,e){const n=Symbol(),r=e.get(t,n);return r===n?"function"!=typeof t||function KA(t){return null!==cl(t)}(t)?e.get(t):t:r}function ba(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Wo(e);return t.children.forEach(s=>{(function l$(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function u$(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ni(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ni(t.url,e.url)||!Xn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!im(t,e)||!Xn(t.queryParams,e.queryParams);default:return!im(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new ox(r)):(o.data=s.data,o._resolvedData=s._resolvedData),ba(t,e,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new qu(a.outlet.component,s))}else s&&wa(e,a,i),i.canActivateChecks.push(new ox(r)),ba(t,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),mt(o,(s,a)=>wa(s,n.getContext(a),i)),i}function wa(t,e,n){const r=Wo(t),i=t.value;mt(r,(o,s)=>{wa(o,i.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new qu(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function Da(t){return"function"==typeof t}function um(t){return t instanceof Lu||"EmptyError"===t?.name}const Qu=Symbol("INITIAL_VALUE");function Yo(){return Kn(t=>_M(t.map(e=>e.pipe(ca(1),function nU(...t){const e=ls(t);return ct((n,r)=>{(e?Ug(t,n,e):Ug(t,n)).subscribe(r)})}(Qu)))).pipe(ne(e=>{for(const n of e)if(!0!==n){if(n===Qu)return Qu;if(!1===n||n instanceof ki)return n}return!0}),Sr(e=>e!==Qu),ca(1)))}function sx(t){return function gA(...t){return u_(t)}(Ct(e=>{if(Fi(e))throw ZM(0,e)}),ne(e=>!0===e))}const cm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ax(t,e,n,r,i){const o=fm(t,e,n);return o.matched?function x$(t,e,n,r){const i=e.canMatch;return i&&0!==i.length?N(i.map(s=>{const a=Go(s,t);return Xr(function g$(t){return t&&Da(t.canMatch)}(a)?a.canMatch(e,n):t.runInContext(()=>a(e,n)))})).pipe(Yo(),sx()):N(!0)}(r=rx(e,r),e,n).pipe(ne(s=>!0===s?o:{...cm})):N(o)}function fm(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{...cm}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(e.matcher||lU)(n,t,e);if(!i)return{...cm};const o={};mt(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ku(t,e,n,r,i="corrected"){if(n.length>0&&function T$(t,e,n){return n.some(r=>Xu(t,e,r)&&gn(r)!==te)}(t,n,r)){const s=new re(e,function P$(t,e,n,r){const i={};i[te]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&gn(o)!==te){const s=new re([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,i[gn(o)]=s}return i}(t,e,r,new re(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function O$(t,e,n){return n.some(r=>Xu(t,e,r))}(t,n,r)){const s=new re(t.segments,function E$(t,e,n,r,i,o){const s={};for(const a of r)if(Xu(t,n,a)&&!i[gn(a)]){const l=new re([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[gn(a)]=l}return{...i,...s}}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const o=new re(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Xu(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function lx(t,e,n,r){return!!(gn(t)===r||r!==te&&Xu(e,n,t))&&("**"===t.path||fm(e,t,n).matched)}function ux(t,e,n){return 0===e.length&&!t.children[n]}const Zu=!1;class Ju{constructor(e){this.segmentGroup=e||null}}class cx{constructor(e){this.urlTree=e}}function Ca(t){return ua(new Ju(t))}function fx(t){return ua(new cx(t))}class k${constructor(e,n,r,i,o){this.injector=e,this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const e=Ku(this.urlTree.root,[],[],this.config).segmentGroup,n=new re(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,n,te).pipe(ne(o=>this.createUrlTree(zu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Kr(o=>{if(o instanceof cx)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Ju?this.noMatchError(o):o}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,te).pipe(ne(i=>this.createUrlTree(zu(i),e.queryParams,e.fragment))).pipe(Kr(i=>{throw i instanceof Ju?this.noMatchError(i):i}))}noMatchError(e){return new E(4002,Zu)}createUrlTree(e,n,r){const i=Qg(e);return new ki(i,n,r)}expandSegmentGroup(e,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(ne(o=>new re([],o))):this.expandSegment(e,r,n,r.segments,i,!0)}expandChildren(e,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Ke(i).pipe(Qr(o=>{const s=r.children[o],a=ix(n,o);return this.expandSegmentGroup(e,a,s,o).pipe(ne(l=>({segment:l,outlet:o})))}),SM((o,s)=>(o[s.outlet]=s.segment,o),{}),MM())}expandSegment(e,n,r,i,o,s){return Ke(r).pipe(Qr(a=>this.expandSegmentAgainstRoute(e,n,r,a,i,o,s).pipe(Kr(u=>{if(u instanceof Ju)return N(null);throw u}))),qr(a=>!!a),Kr((a,l)=>{if(um(a))return ux(n,i,o)?N(new re([],{})):Ca(n);throw a}))}expandSegmentAgainstRoute(e,n,r,i,o,s,a){return lx(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,n,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s):Ca(n):Ca(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?fx(o):this.lineralizeSegments(r,o).pipe(pt(s=>{const a=new re(s,{});return this.expandSegment(e,a,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=fm(n,i,o);if(!a)return Ca(n);const f=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?fx(f):this.lineralizeSegments(i,f).pipe(pt(d=>this.expandSegment(e,n,r,d.concat(u),s,!1)))}matchSegmentAgainstRoute(e,n,r,i,o){return"**"===r.path?(e=rx(r,e),r.loadChildren?(r._loadedRoutes?N({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(e,r)).pipe(ne(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new re(i,{})))):N(new re(i,{}))):ax(n,r,i,e).pipe(Kn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=r._injector??e,r,i).pipe(pt(c=>{const f=c.injector??e,d=c.routes,{segmentGroup:h,slicedSegments:p}=Ku(n,a,l,d),g=new re(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(f,d,g).pipe(ne(v=>new re(a,v)));if(0===d.length&&0===p.length)return N(new re(a,{}));const m=gn(r)===o;return this.expandSegment(f,g,d,p,m?te:o,!0).pipe(ne(_=>new re(a.concat(_.segments),_.children)))})):Ca(n)))}getChildConfig(e,n,r){return n.children?N({routes:n.children,injector:e}):n.loadChildren?void 0!==n._loadedRoutes?N({routes:n._loadedRoutes,injector:n._loadedInjector}):function M$(t,e,n,r){const i=e.canLoad;return void 0===i||0===i.length?N(!0):N(i.map(s=>{const a=Go(s,t);return Xr(function f$(t){return t&&Da(t.canLoad)}(a)?a.canLoad(e,n):t.runInContext(()=>a(e,n)))})).pipe(Yo(),sx())}(e,n,r).pipe(pt(i=>i?this.configLoader.loadChildren(e,n).pipe(Ct(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function A$(t){return ua(JM(Zu,3))}())):N({routes:[],injector:e})}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return N(r);if(i.numberOfChildren>1||!i.children[te])return ua(new E(4e3,Zu));i=i.children[te]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreateUrlTree(e,n,r,i){const o=this.createSegmentGroup(e,n.root,r,i);return new ki(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return mt(e,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(e,n,r,i){const o=this.createSegments(e,n.segments,r,i);let s={};return mt(n.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,r,i)}),new re(o,s)}createSegments(e,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,n,r){const i=r[n.path.substring(1)];if(!i)throw new E(4001,Zu);return i}findOrReturn(e,n){let r=0;for(const i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}}class F${}class B${constructor(e,n,r,i,o,s,a,l){this.injector=e,this.rootComponentType=n,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const e=Ku(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,te).pipe(ne(n=>{if(null===n)return null;const r=new Gu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},te,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new xr(r,n),o=new KM(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(e){const n=e.value,r=QM(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(e,n,r):this.processSegment(e,n,r,r.segments,i)}processChildren(e,n,r){return Ke(Object.keys(r.children)).pipe(Qr(i=>{const o=r.children[i],s=ix(n,i);return this.processSegmentGroup(e,s,o,i)}),SM((i,o)=>i&&o?(i.push(...o),i):null),function oU(t,e=!1){return ct((n,r)=>{let i=0;n.subscribe(nt(r,o=>{const s=t(o,i++);(s||e)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),Vu(null),MM(),ne(i=>{if(null===i)return null;const o=dx(i);return function H$(t){t.sort((e,n)=>e.value.outlet===te?-1:n.value.outlet===te?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}))}processSegment(e,n,r,i,o){return Ke(n).pipe(Qr(s=>this.processSegmentAgainstRoute(s._injector??e,s,r,i,o)),qr(s=>!!s),Kr(s=>{if(um(s))return ux(r,i,o)?N([]):N(null);throw s}))}processSegmentAgainstRoute(e,n,r,i,o){if(n.redirectTo||!lx(n,r,i,o))return N(null);let s;if("**"===n.path){const a=i.length>0?PM(i).parameters:{},l=px(r)+i.length;s=N({snapshot:new Gu(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,mx(n),gn(n),n.component??n._loadedComponent??null,n,hx(r),l,yx(n),l),consumedSegments:[],remainingSegments:[]})}else s=ax(r,n,i,e).pipe(ne(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const f=px(r)+l.length;return{snapshot:new Gu(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,mx(n),gn(n),n.component??n._loadedComponent??null,n,hx(r),f,yx(n),f),consumedSegments:l,remainingSegments:u}}));return s.pipe(Kn(a=>{if(null===a)return N(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;e=n._injector??e;const f=n._loadedInjector??e,d=function j$(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Ku(r,u,c,d.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(f,d,h).pipe(ne(m=>null===m?null:[new xr(l,m)]));if(0===d.length&&0===p.length)return N([new xr(l,[])]);const g=gn(n)===o;return this.processSegment(f,d,h,p,g?te:o).pipe(ne(m=>null===m?null:[new xr(l,m)]))}))}}function U$(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function dx(t){const e=[],n=new Set;for(const r of t){if(!U$(r)){e.push(r);continue}const i=e.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):e.push(r)}for(const r of n){const i=dx(r.children);e.push(new xr(r.value,i))}return e.filter(r=>!n.has(r))}function hx(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function px(t){let e=t,n=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift??0;return n-1}function mx(t){return t.data||{}}function yx(t){return t.resolve||{}}function vx(t){return"string"==typeof t.title||null===t.title}function dm(t){return Kn(e=>{const n=t(e);return n?Ke(n).pipe(ne(()=>e)):N(e)})}let _x=(()=>{class t{buildTitle(n){let r,i=n.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===te);return r}getResolvedTitleForRoute(n){return n.data[fa]}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:function(){return $e(bx)},providedIn:"root"}),t})(),bx=(()=>{class t extends _x{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(n){return new(n||t)(A(hM))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class K${}class Z$ extends class X${shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const tc=new k("",{providedIn:"root",factory:()=>({})}),hm=new k("ROUTES");let pm=(()=>{class t{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return N(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Xr(n.loadComponent()).pipe(Ct(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Wg(()=>{this.componentLoaders.delete(n)})),i=new DM(r,()=>new Hn).pipe($g());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return N({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(n).injector,u=EM(l.get(hm,[],B.Self|B.Optional)));return{routes:u.map(lm),injector:l}}),Wg(()=>{this.childrenLoaders.delete(r)})),s=new DM(o,()=>new Hn).pipe($g());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Xr(n()).pipe(pt(r=>r instanceof nC||Array.isArray(r)?N(r):Ke(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(n){return new(n||t)(A(tn),A(ig))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class ez{}class tz{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function nz(t){throw t}function rz(t,e,n){return e.parse("/")}const iz={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oz={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Dx(){const t=$e(kM),e=$e(va),n=$e(_g),r=$e(tn),i=$e(ig),o=$e(hm,{optional:!0})??[],s=$e(tc,{optional:!0})??{},a=$e(bx),l=$e(_x,{optional:!0}),u=$e(ez,{optional:!0}),c=$e(K$,{optional:!0}),f=new yt(null,t,e,n,r,i,EM(o));return u&&(f.urlHandlingStrategy=u),c&&(f.routeReuseStrategy=c),f.titleStrategy=l??a,function sz(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(s,f),f}let yt=(()=>{class t{constructor(n,r,i,o,s,a,l){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Hn,this.errorHandler=nz,this.malformedUriErrorHandler=rz,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>N(void 0),this.urlHandlingStrategy=new tz,this.routeReuseStrategy=new Z$,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(pm),this.configLoader.onLoadEndListener=d=>this.triggerEvent(new jU(d)),this.configLoader.onLoadStartListener=d=>this.triggerEvent(new HU(d)),this.ngModule=s.get(Ii),this.console=s.get(R2);const f=s.get(st);this.isNgZoneEnabled=f instanceof st&&st.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function cU(){return new ki(new re([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=qM(this.currentUrlTree,this.rootComponentType),this.transitions=new Nn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Sr(i=>0!==i.id),ne(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Kn(i=>{let o=!1,s=!1;return N(i).pipe(Ct(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Kn(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Cx(a.source)&&(this.browserUrlTree=a.extractedUrl),N(a).pipe(Kn(f=>{const d=this.transitions.getValue();return r.next(new Jg(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),d!==this.transitions.getValue()?ar:Promise.resolve(f)}),function N$(t,e,n,r){return Kn(i=>function R$(t,e,n,r,i){return new k$(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(ne(o=>({...i,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ct(f=>{this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects},i.urlAfterRedirects=f.urlAfterRedirects}),function z$(t,e,n,r,i,o){return pt(s=>function V$(t,e,n,r,i,o,s="emptyOnly",a="legacy"){return new B$(t,e,n,r,i,s,a,o).recognize().pipe(Kn(l=>null===l?function L$(t){return new Ue(e=>e.error(t))}(new F$):N(l)))}(t,e,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,i,o).pipe(ne(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Ct(f=>{if(i.targetSnapshot=f.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(h,f)}this.browserUrlTree=f.urlAfterRedirects}const d=new NU(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);r.next(d)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:m}=a,y=new Jg(d,this.serializeUrl(h),p,g);r.next(y);const _=qM(h,this.rootComponentType).snapshot;return N(i={...a,targetSnapshot:_,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),ar}),Ct(a=>{const l=new FU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ne(a=>i={...a,guards:s$(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function y$(t,e){return pt(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?N({...n,guardsResult:!0}):function v$(t,e,n,r){return Ke(t).pipe(pt(i=>function S$(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const l=_a(e)??i,u=Go(a,l);return Xr(function p$(t){return t&&Da(t.canDeactivate)}(u)?u.canDeactivate(t,e,n,r):l.runInContext(()=>u(t,e,n,r))).pipe(qr())})).pipe(Yo()):N(!0)}(i.component,i.route,n,e,r)),qr(i=>!0!==i,!0))}(s,r,i,t).pipe(pt(a=>a&&function c$(t){return"boolean"==typeof t}(a)?function _$(t,e,n,r){return Ke(e).pipe(Qr(i=>Ug(function w$(t,e){return null!==t&&e&&e(new UU(t)),N(!0)}(i.route.parent,r),function b$(t,e){return null!==t&&e&&e(new zU(t)),N(!0)}(i.route,r),function C$(t,e,n){const r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>function a$(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>wM(()=>N(s.guards.map(l=>{const u=_a(s.node)??n,c=Go(l,u);return Xr(function h$(t){return t&&Da(t.canActivateChild)}(c)?c.canActivateChild(r,t):u.runInContext(()=>c(r,t))).pipe(qr())})).pipe(Yo())));return N(o).pipe(Yo())}(t,i.path,n),function D$(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return N(!0);const i=r.map(o=>wM(()=>{const s=_a(e)??n,a=Go(o,s);return Xr(function d$(t){return t&&Da(t.canActivate)}(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t))).pipe(qr())}));return N(i).pipe(Yo())}(t,i.route,n))),qr(i=>!0!==i,!0))}(r,o,t,e):N(a)),ne(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Ct(a=>{if(i.guardsResult=a.guardsResult,Fi(a.guardsResult))throw ZM(0,a.guardsResult);const l=new LU(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Sr(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),dm(a=>{if(a.guards.canActivateChecks.length)return N(a).pipe(Ct(l=>{const u=new VU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),Kn(l=>{let u=!1;return N(l).pipe(function W$(t,e){return pt(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return N(n);let o=0;return Ke(i).pipe(Qr(s=>function G$(t,e,n,r){const i=t.routeConfig,o=t._resolve;return void 0!==i?.title&&!vx(i)&&(o[fa]=i.title),function Y$(t,e,n,r){const i=function q$(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===i.length)return N({});const o={};return Ke(i).pipe(pt(s=>function Q$(t,e,n,r){const i=_a(e)??r,o=Go(t,i);return Xr(o.resolve?o.resolve(e,n):i.runInContext(()=>o(e,n)))}(t[s],e,n,r).pipe(qr(),Ct(a=>{o[s]=a}))),zg(1),function sU(t){return ne(()=>t)}(o),Kr(s=>um(s)?ar:ua(s)))}(o,t,e,r).pipe(ne(s=>(t._resolvedData=s,t.data=QM(t,n).resolve,i&&vx(i)&&(t.data[fa]=i.title),null)))}(s.route,r,t,e)),Ct(()=>o++),zg(1),pt(s=>o===i.length?N(n):ar))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ct({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Ct(l=>{const u=new BU(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),dm(a=>{const l=u=>{const c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ct(f=>{u.component=f}),ne(()=>{})));for(const f of u.children)c.push(...l(f));return c};return _M(l(a.targetSnapshot.root)).pipe(Vu(),ca(1))}),dm(()=>this.afterPreactivation()),ne(a=>{const l=function QU(t,e,n){const r=ya(t,e._root,n?n._root:void 0);return new YM(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:l}}),Ct(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>ne(r=>(new o$(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Ct({next(){o=!0},complete(){o=!0}}),Wg(()=>{o||s||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Kr(a=>{if(s=!0,tx(a)){ex(a)||(this.navigated=!0,this.restoreHistory(i,!0));const l=new Wu(i.id,this.serializeUrl(i.extractedUrl),a.message,a.cancellationCode);if(r.next(l),ex(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Cx(i.source)};this.scheduleNavigation(u,"imperative",null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new zM(i.id,this.serializeUrl(i.extractedUrl),a,i.targetSnapshot??void 0);r.next(l);try{i.resolve(this.errorHandler(a))}catch(u){i.reject(u)}}return ar}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const i={replaceUrl:!0},o=n.state?.navigationId?n.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(i.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,o,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(lm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=i||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let f=null;switch(a){case"merge":f={...this.currentUrlTree.queryParams,...o};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}return null!==f&&(f=this.removeEmptyProps(f)),TU(u,this.currentUrlTree,n,f,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Fi(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function az(t){for(let e=0;e{const o=n[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Li(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,l=h});const c=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),f=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):f=0,this.setTransition({id:c,targetPageId:f,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===i?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r,i){const o=new Wu(n.id,this.serializeUrl(n.extractedUrl),r,i);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){ip()},t.\u0275prov=z({token:t,factory:function(){return Dx()},providedIn:"root"}),t})();function Cx(t){return"imperative"!==t}class Sx{}let cz=(()=>{class t{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Sr(n=>n instanceof Li),Qr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=su(o.providers,n,`Route: ${o.path}`));const s=o._injector??n,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?i.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Ke(i).pipe(to())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):N(null);const o=i.pipe(pt(s=>null===s?N(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ke([o,this.loader.loadComponent(r)]).pipe(to()):o})}}return t.\u0275fac=function(n){return new(n||t)(A(yt),A(ig),A(jr),A(Sx),A(pm))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ym=new k("");let Mx=(()=>{class t{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Jg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Li&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof WM&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new WM(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){ip()},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();function qo(t,e){return{\u0275kind:t,\u0275providers:e}}function vm(t){return[{provide:hm,multi:!0,useValue:t}]}function Ex(){const t=$e(tn);return e=>{const n=t.get(gu);if(e!==n.components[0])return;const r=t.get(yt),i=t.get(Px);1===t.get(_m)&&r.initialNavigation(),t.get(Tx,null,B.Optional)?.setUpPreloading(),t.get(ym,null,B.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const Px=new k("",{factory:()=>new Hn}),_m=new k("",{providedIn:"root",factory:()=>1});const Tx=new k("");function pz(t){return qo(0,[{provide:Tx,useExisting:cz},{provide:Sx,useExisting:t}])}const Ox=new k("ROUTER_FORROOT_GUARD"),gz=[_g,{provide:kM,useClass:Yg},{provide:yt,useFactory:Dx},va,{provide:Vi,useFactory:function xx(t){return t.routerState.root},deps:[yt]},pm];function mz(){return new eS("Router",yt)}let Ix=(()=>{class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[gz,[],vm(n),{provide:Ox,useFactory:bz,deps:[[yt,new Es,new Ps]]},{provide:tc,useValue:r||{}},r?.useHash?{provide:Ri,useClass:wB}:{provide:Ri,useClass:MS},{provide:ym,useFactory:()=>{const t=$e(yt),e=$e(HH),n=$e(tc);return n.scrollOffset&&e.setOffset(n.scrollOffset),new Mx(t,e,n)}},r?.preloadingStrategy?pz(r.preloadingStrategy).\u0275providers:[],{provide:eS,multi:!0,useFactory:mz},r?.initialNavigation?wz(r):[],[{provide:Ax,useFactory:Ex},{provide:YC,multi:!0,useExisting:Ax}]]}}static forChild(n){return{ngModule:t,providers:[vm(n)]}}}return t.\u0275fac=function(n){return new(n||t)(A(Ox,8))},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({imports:[sm]}),t})();function bz(t){return"guarded"}function wz(t){return["disabled"===t.initialNavigation?qo(3,[{provide:du,multi:!0,useFactory:()=>{const e=$e(yt);return()=>{e.setUpLocationChangeListener()}}},{provide:_m,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?qo(2,[{provide:_m,useValue:0},{provide:du,multi:!0,deps:[tn],useFactory:e=>{const n=e.get(_B,Promise.resolve());let r=!1;return()=>n.then(()=>new Promise(o=>{const s=e.get(yt),a=e.get(Px);(function i(o){e.get(yt).events.pipe(Sr(a=>a instanceof Li||a instanceof Wu||a instanceof zM),ne(a=>a instanceof Li||a instanceof Wu&&(0===a.code||1===a.code)&&null),Sr(a=>null!==a),ca(1)).subscribe(()=>{o()})})(()=>{o(!0),r=!0}),s.afterPreactivation=()=>(o(!0),r||a.closed?N(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const Ax=new k(""),Cz=[];let Sz=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({imports:[Ix.forRoot(Cz),Ix]}),t})();class kx{}class Nx{}class Zn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(n,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof Zn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new Zn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Zn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const i=("a"===e.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=e.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class Mz{encodeKey(e){return Fx(e)}encodeValue(e){return Fx(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const Ez=/%(\d[a-f0-9])/gi,Pz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Fx(t){return encodeURIComponent(t).replace(Ez,(e,n)=>Pz[n]??e)}function oc(t){return`${t}`}class Er{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Mz,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xz(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n],i=Array.isArray(r)?r.map(oc):[oc(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Er({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(oc(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(oc(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class sc{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Lx(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Vx(t){return typeof Blob<"u"&&t instanceof Blob}function Bx(t){return typeof FormData<"u"&&t instanceof FormData}class Sa{constructor(e,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function Tz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Zn),this.context||(this.context=new sc),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(d,e.setHeaders[d]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,d)=>f.set(d,e.setParams[d]),u)),new Sa(n,r,o,{params:u,headers:l,context:c,reportProgress:a,responseType:i,withCredentials:s})}}var tt=(()=>((tt=tt||{})[tt.Sent=0]="Sent",tt[tt.UploadProgress=1]="UploadProgress",tt[tt.ResponseHeader=2]="ResponseHeader",tt[tt.DownloadProgress=3]="DownloadProgress",tt[tt.Response=4]="Response",tt[tt.User=5]="User",tt))();class bm{constructor(e,n=200,r="OK"){this.headers=e.headers||new Zn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class wm extends bm{constructor(e={}){super(e),this.type=tt.ResponseHeader}clone(e={}){return new wm({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ac extends bm{constructor(e={}){super(e),this.type=tt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ac({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Hx extends bm{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Dm(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let jx=(()=>{class t{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Sa)o=n;else{let l,u;l=i.headers instanceof Zn?i.headers:new Zn(i.headers),i.params&&(u=i.params instanceof Er?i.params:new Er({fromObject:i.params})),o=new Sa(n,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=N(o).pipe(Qr(l=>this.handler.handle(l)));if(n instanceof Sa||"events"===i.observe)return s;const a=s.pipe(Sr(l=>l instanceof ac));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Er).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Dm(i,r))}post(n,r,i={}){return this.request("POST",n,Dm(i,r))}put(n,r,i={}){return this.request("PUT",n,Dm(i,r))}}return t.\u0275fac=function(n){return new(n||t)(A(kx))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();class Ux{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const $x=new k("HTTP_INTERCEPTORS");let Iz=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();const Az=/^\)\]\}',?\n/;let zx=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ue(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Zn(i.getAllResponseHeaders()),g=function Rz(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new wm({headers:p,status:i.status,statusText:h,url:g}),s},l=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),y=null;204!==p&&(y=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=y?200:0);let _=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof y){const v=y;y=y.replace(Az,"");try{y=""!==y?JSON.parse(y):null}catch(b){y=v,_&&(_=!1,y={error:b,text:y})}}_?(r.next(new ac({body:y,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new Hx({error:y,headers:h,status:p,statusText:g,url:m||void 0}))},u=h=>{const{url:p}=a(),g=new Hx({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const f=h=>{c||(r.next(a()),c=!0);let p={type:tt.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!i.responseText&&(p.partialText=i.responseText),r.next(p)},d=h=>{let p={type:tt.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",l),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),n.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),r.next({type:tt.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",l),i.removeEventListener("timeout",u),n.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(A(YS))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})();const Cm=new k("XSRF_COOKIE_NAME"),Sm=new k("XSRF_HEADER_NAME");class Wx{}let kz=(()=>{class t{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=NS(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(A(Nt),A(rg),A(Cm))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),Mm=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const i=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(n);const o=this.tokenService.getToken();return null!==o&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,o)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(A(Wx),A(Sm))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),Nz=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get($x,[]);this.chain=r.reduceRight((i,o)=>new Ux(i,o),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(A(Nx),A(tn))},t.\u0275prov=z({token:t,factory:t.\u0275fac}),t})(),Fz=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Mm,useClass:Iz}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:Cm,useValue:n.cookieName}:[],n.headerName?{provide:Sm,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({providers:[Mm,{provide:$x,useExisting:Mm,multi:!0},{provide:Wx,useClass:kz},{provide:Cm,useValue:"XSRF-TOKEN"},{provide:Sm,useValue:"X-XSRF-TOKEN"}]}),t})(),Lz=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({providers:[jx,{provide:kx,useClass:Nz},zx,{provide:Nx,useExisting:zx}],imports:[Fz.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();class Vz{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const Bz=new k("basePath");class Gx{constructor(e={}){this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder,this.encodeParam=e.encodeParam?e.encodeParam:n=>this.defaultEncodeParam(n),this.credentials=e.credentials?e.credentials:{}}selectHeaderContentType(e){if(0===e.length)return;const n=e.find(r=>this.isJsonMime(r));return void 0===n?e[0]:n}selectHeaderAccept(e){if(0===e.length)return;const n=e.find(r=>this.isJsonMime(r));return void 0===n?e[0]:n}isJsonMime(e){const n=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(n.test(e)||"application/json-patch+json"===e.toLowerCase())}lookupCredential(e){const n=this.credentials[e];return"function"==typeof n?n():n}defaultEncodeParam(e){const n="date-time"===e.dataFormat?e.value.toISOString():e.value;return encodeURIComponent(String(n))}}let xm=(()=>{class t{constructor(n,r,i){this.httpClient=n,this.basePath="http://localhost",this.defaultHeaders=new Zn,this.configuration=new Gx,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&(Array.isArray(r)&&r.length>0&&(r=r[0]),"string"!=typeof r&&(r=this.basePath),this.configuration.basePath=r),this.encoder=this.configuration.encoder||new Vz}addToHttpParams(n,r,i){return"object"!=typeof r||r instanceof Date?this.addToHttpParamsRecursive(n,r,i):this.addToHttpParamsRecursive(n,r)}addToHttpParamsRecursive(n,r,i){if(null==r)return n;if("object"==typeof r)if(Array.isArray(r))r.forEach(o=>n=this.addToHttpParamsRecursive(n,o,i));else if(r instanceof Date){if(null==i)throw Error("key may not be null if value is Date");n=n.append(i,r.toISOString().substr(0,10))}else Object.keys(r).forEach(o=>n=this.addToHttpParamsRecursive(n,r[o],null!=i?`${i}.${o}`:o));else{if(null==i)throw Error("key may not be null if value is not object or array");n=n.append(i,r)}return n}paxServiceGetDevice(n,r="body",i=!1,o){if(null==n)throw new Error("Required parameter id was null or undefined when calling paxServiceGetDevice.");let s=this.defaultHeaders,a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(s=s.set("Accept",a));let l=o&&o.context;void 0===l&&(l=new sc);let u="json";a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let c=`/api/v1/devices/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`;return this.httpClient.request("get",`${this.configuration.basePath}${c}`,{context:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:i})}paxServiceListData(n,r,i,o="body",s=!1,a){let l=new Er({encoder:this.encoder});null!=n&&(l=this.addToHttpParams(l,n,"since")),null!=r&&(l=this.addToHttpParams(l,r,"until")),null!=i&&(l=this.addToHttpParams(l,i,"limit"));let u=this.defaultHeaders,c=a&&a.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(u=u.set("Accept",c));let f=a&&a.context;void 0===f&&(f=new sc);let d="json";return c&&(d=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.request("get",`${this.configuration.basePath}/api/v1/data`,{context:f,params:l,responseType:d,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}paxServiceListDevices(n="body",r=!1,i){let o=this.defaultHeaders,s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(o=o.set("Accept",s));let a=i&&i.context;void 0===a&&(a=new sc);let l="json";return s&&(l=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.request("get",`${this.configuration.basePath}/api/v1/devices`,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}}return t.\u0275fac=function(n){return new(n||t)(A(jx),A(Bz,8),A(Gx,8))},t.\u0275prov=z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qo(t){return t+.5|0}const Pr=(t,e,n)=>Math.max(Math.min(t,n),e);function Ma(t){return Pr(Qo(2.55*t),0,255)}function Zr(t){return Pr(Qo(255*t),0,255)}function Tr(t){return Pr(Qo(t/2.55)/100,0,1)}function Yx(t){return Pr(Qo(100*t),0,100)}const mn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Em=[..."0123456789ABCDEF"],Hz=t=>Em[15&t],jz=t=>Em[(240&t)>>4]+Em[15&t],lc=t=>(240&t)>>4==(15&t);const Gz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function qx(t,e,n){const r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Yz(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function qz(t,e,n){const r=qx(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function Pm(t){const n=t.r/255,r=t.g/255,i=t.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;let l,u,c;return o!==s&&(c=o-s,u=a>.5?c/(2-o-s):c/(o+s),l=function Qz(t,e,n,r,i){return t===i?(e-n)/r+(et<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ko=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function cc(t,e,n){if(t){let r=Pm(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Om(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Zx(t,e){return t&&Object.assign(e||{},t)}function Jx(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Zr(t[3]))):(e=Zx(t,{r:0,g:0,b:0,a:1})).a=Zr(e.a),e}function aW(t){return"r"===t.charAt(0)?function iW(t){const e=rW.exec(t);let r,i,o,n=255;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?Ma(s):Pr(255*s,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?Ma(r):Pr(r,0,255)),i=255&(e[4]?Ma(i):Pr(i,0,255)),o=255&(e[6]?Ma(o):Pr(o,0,255)),{r,g:i,b:o,a:n}}}(t):function Zz(t){const e=Gz.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?Ma(+e[5]):Zr(+e[5]));const i=Qx(+e[2]),o=+e[3]/100,s=+e[4]/100;return r="hwb"===e[1]?function Kz(t,e,n){return Tm(qz,t,e,n)}(i,o,s):"hsv"===e[1]?function Xz(t,e,n){return Tm(Yz,t,e,n)}(i,o,s):Om(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}(t)}class Xo{constructor(e){if(e instanceof Xo)return e;const n=typeof e;let r;"object"===n?r=Jx(e):"string"===n&&(r=function $z(t){var n,e=t.length;return"#"===t[0]&&(4===e||5===e?n={r:255&17*mn[t[1]],g:255&17*mn[t[2]],b:255&17*mn[t[3]],a:5===e?17*mn[t[4]]:255}:(7===e||9===e)&&(n={r:mn[t[1]]<<4|mn[t[2]],g:mn[t[3]]<<4|mn[t[4]],b:mn[t[5]]<<4|mn[t[6]],a:9===e?mn[t[7]]<<4|mn[t[8]]:255})),n}(e)||function nW(t){uc||(uc=function tW(){const t={},e=Object.keys(Xx),n=Object.keys(Kx);let r,i,o,s,a;for(r=0;r>16&255,o>>8&255,255&o]}return t}(),uc.transparent=[0,0,0,0]);const e=uc[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(e)||aW(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Zx(this._rgb);return e&&(e.a=Tr(e.a)),e}set rgb(e){this._rgb=Jx(e)}rgbString(){return this._valid?function oW(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Tr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Wz(t){var e=(t=>lc(t.r)&&lc(t.g)&&lc(t.b)&&lc(t.a))(t)?Hz:jz;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function eW(t){if(!t)return;const e=Pm(t),n=e[0],r=Yx(e[1]),i=Yx(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Tr(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,u=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=function sW(t,e,n){const r=Ko(Tr(t.r)),i=Ko(Tr(t.g)),o=Ko(Tr(t.b));return{r:Zr(Im(r+n*(Ko(Tr(e.r))-r))),g:Zr(Im(i+n*(Ko(Tr(e.g))-i))),b:Zr(Im(o+n*(Ko(Tr(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,e._rgb,n)),this}clone(){return new Xo(this.rgb)}alpha(e){return this._rgb.a=Zr(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,n=Qo(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=n,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return cc(this._rgb,2,e),this}darken(e){return cc(this._rgb,2,-e),this}saturate(e){return cc(this._rgb,1,e),this}desaturate(e){return cc(this._rgb,1,-e),this}rotate(e){return function Jz(t,e){var n=Pm(t);n[0]=Qx(n[0]+e),n=Om(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,e),this}}function Or(){}const lW=(()=>{let t=0;return()=>t++})();function ae(t){return null===t||typeof t>"u"}function Ee(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function oe(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Be(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function rn(t,e){return Be(t)?t:e}function K(t,e){return typeof t>"u"?e:t}const eE=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Me(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function ge(t,e,n,r){let i,o,s;if(Ee(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function Jr(t,e){return(nE[e]||(nE[e]=function hW(t){const e=function dW(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return n=>{for(const r of e){if(""===r)break;n=n&&n[r]}return n}}(e)))(t)}function Am(t){return t.charAt(0).toUpperCase()+t.slice(1)}const yn=t=>typeof t<"u",ei=t=>"function"==typeof t,rE=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},Ae=Math.PI,Pe=2*Ae,gW=Pe+Ae,hc=Number.POSITIVE_INFINITY,mW=Ae/180,He=Ae/2,Bi=Ae/4,iE=2*Ae/3,ti=Math.log10,Jn=Math.sign;function Pa(t,e,n){return Math.abs(t-e)l&&u=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Nm(t,e,n){n=n||(s=>t[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Ar=(t,e,n,r)=>Nm(t,n,r?i=>{const o=t[i][e];return ot[i][e]Nm(t,n,r=>t[r][e]>=n),uE=["push","pop","shift","splice","unshift"];function cE(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),!(r.length>0)&&(uE.forEach(o=>{delete t[o]}),delete t._chartjs)}function fE(t){const e=new Set;let n,r;for(n=0,r=t.length;n"u"?function(t){return t()}:window.requestAnimationFrame;function hE(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,dE.call(window,()=>{r=!1,t.apply(e,n)}))}}const Fm=t=>"start"===t?"left":"end"===t?"right":"center",St=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function pE(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:s,_parsed:a}=t,l=s.axis,{min:u,max:c,minDefined:f,maxDefined:d}=s.getUserBounds();f&&(i=dt(Math.min(Ar(a,s.axis,u).lo,n?r:Ar(e,l,s.getPixelForValue(u)).lo),0,r-1)),o=d?dt(Math.max(Ar(a,s.axis,c,!0).hi+1,n?0:Ar(e,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function gE(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const pc=t=>0===t||1===t,mE=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Pe/n),yE=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Pe/n)+1,Oa={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*He),easeOutSine:t=>Math.sin(t*He),easeInOutSine:t=>-.5*(Math.cos(Ae*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>pc(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>pc(t)?t:mE(t,.075,.3),easeOutElastic:t=>pc(t)?t:yE(t,.075,.3),easeInOutElastic:t=>pc(t)?t:t<.5?.5*mE(2*t,.1125,.45):.5+.5*yE(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Oa.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Oa.easeInBounce(2*t):.5*Oa.easeOutBounce(2*t-1)+.5};function vE(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function _E(t){return vE(t)?t:new Xo(t)}function Lm(t){return vE(t)?t:new Xo(t).saturate(.5).darken(.1).hexString()}const xW=["x","y","borderWidth","radius","tension"],EW=["color","borderColor","backgroundColor"],bE=new Map;function Ia(t,e,n){return function OW(t,e){e=e||{};const n=t+JSON.stringify(e);let r=bE.get(n);return r||(r=new Intl.NumberFormat(t,e),bE.set(n,r)),r}(e,n).format(t)}const wE={values:t=>Ee(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=function IW(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=ti(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ia(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(ti(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?wE.numeric.call(this,t,e,n):""}};var gc={formatters:wE};const Hi=Object.create(null),Vm=Object.create(null);function Aa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Lm(i.backgroundColor),this.hoverBorderColor=(r,i)=>Lm(i.borderColor),this.hoverColor=(r,i)=>Lm(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Bm(this,e,n)}get(e){return Aa(this,e)}describe(e,n){return Bm(Vm,e,n)}override(e,n){return Bm(Hi,e,n)}route(e,n,r,i){const o=Aa(this,e),s=Aa(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=s[i];return oe(l)?Object.assign({},u,l):K(l,u)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ge=new RW({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function PW(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),t.set("animations",{colors:{type:"color",properties:EW},numbers:{type:"number",properties:xW}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function TW(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function AW(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:gc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function mc(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function NW(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,u,c,f,d;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function Ra(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==o.strokeColor;let l,u;for(t.save(),t.font=i.string,function VW(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),ae(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l+t||0;function jm(t,e){const n={},r=oe(e),i=r?Object.keys(e):e,o=oe(t)?r?s=>K(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=zW(o(s));return n}function SE(t){return jm(t,{top:"y",right:"x",bottom:"y",left:"x"})}function $i(t){return jm(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Mt(t){const e=SE(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function lt(t,e){let n=K((t=t||{}).size,(e=e||Ge.font).size);"string"==typeof n&&(n=parseInt(n,10));let r=K(t.style,e.style);r&&!(""+r).match(UW)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:K(t.family,e.family),lineHeight:$W(K(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:K(t.weight,e.weight),string:""};return i.string=function kW(t){return!t||ae(t.size)||ae(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function Na(t,e,n,r){let o,s,a,i=!0;for(o=0,s=t.length;ot[0])){yn(r)||(r=TE("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>Um([s,...t],e,n,r)};return new Proxy(o,{deleteProperty:(s,a)=>(delete s[a],delete s._keys,delete t[0][a],!0),get:(s,a)=>xE(s,a,()=>function JW(t,e,n,r){let i;for(const o of e)if(i=TE(GW(o,t),n),yn(i))return $m(t,i)?zm(n,r,t,i):i}(a,e,t,s)),getOwnPropertyDescriptor:(s,a)=>Reflect.getOwnPropertyDescriptor(s._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(s,a)=>OE(s).includes(a),ownKeys:s=>OE(s),set(s,a,l){const u=s._storage||(s._storage=i());return s[a]=u[a]=l,delete s._keys,!0}})}function Jo(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ME(t,r),setContext:o=>Jo(t,o,n,r),override:o=>Jo(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty:(o,s)=>(delete o[s],delete t[s],!0),get:(o,s,a)=>xE(o,s,()=>function YW(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let a=r[e];return ei(a)&&s.isScriptable(e)&&(a=function qW(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(o,s||r),a.delete(t),$m(t,e)&&(e=zm(i._scopes,i,t,e)),e}(e,a,t,n)),Ee(a)&&a.length&&(a=function QW(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(yn(o.index)&&r(t))e=e[o.index%e.length];else if(oe(e[0])){const l=e,u=i._scopes.filter(c=>c!==l);e=[];for(const c of l){const f=zm(u,i,t,c);e.push(Jo(f,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable)),$m(e,a)&&(a=Jo(a,i,o&&o[e],s)),a}(o,s,a)),getOwnPropertyDescriptor:(o,s)=>o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(o,s)=>Reflect.has(t,s),ownKeys:()=>Reflect.ownKeys(t),set:(o,s,a)=>(t[s]=a,delete o[s],!0)})}function ME(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ei(n)?n:()=>n,isIndexable:ei(r)?r:()=>r}}const GW=(t,e)=>t?t+Am(e):e,$m=(t,e)=>oe(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function xE(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function EE(t,e,n){return ei(t)?t(e,n):t}const KW=(t,e)=>!0===t?e:"string"==typeof t?Jr(e,t):void 0;function XW(t,e,n,r,i){for(const o of e){const s=KW(n,o);if(s){t.add(s);const a=EE(s._fallback,n,i);if(yn(a)&&a!==n&&a!==r)return a}else if(!1===s&&yn(r)&&n!==r)return null}return!1}function zm(t,e,n,r){const i=e._rootScopes,o=EE(e._fallback,n,r),s=[...t,...i],a=new Set;a.add(r);let l=PE(a,s,n,o||n,r);return!(null===l||yn(o)&&o!==n&&(l=PE(a,s,o,l,r),null===l))&&Um(Array.from(a),[""],i,o,()=>function ZW(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return Ee(i)&&oe(n)?n:i||{}}(e,n,r))}function PE(t,e,n,r,i){for(;n;)n=XW(t,e,n,r,i);return n}function TE(t,e){for(const n of e){if(!n)continue;const r=n[t];if(yn(r))return r}}function OE(t){let e=t._keys;return e||(e=t._keys=function e3(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}(t._scopes)),e}function IE(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,s=new Array(r);let a,l,u,c;for(a=0,l=r;ae"x"===t?"y":"x";function n3(t,e,n,r){const i=t.skip?e:t,o=e,s=n.skip?e:n,a=km(o,i),l=km(s,o);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const f=r*u,d=r*c;return{previous:{x:o.x-f*(s.x-i.x),y:o.y-f*(s.y-i.y)},next:{x:o.x+d*(s.x-i.x),y:o.y+d*(s.y-i.y)}}}function _c(t,e,n){return Math.max(Math.min(t,n),e)}function a3(t,e,n,r,i){let o,s,a,l;if(e.spanGaps&&(t=t.filter(u=>!u.skip)),"monotone"===e.cubicInterpolationMode)!function o3(t,e="x"){const n=AE(e),r=t.length,i=Array(r).fill(0),o=Array(r);let s,a,l,u=es(t,0);for(s=0;st.ownerDocument.defaultView.getComputedStyle(t,null),u3=["top","right","bottom","left"];function zi(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=u3[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function Wi(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=wc(n),o="border-box"===i.boxSizing,s=zi(i,"padding"),a=zi(i,"border","width"),{x:l,y:u,box:c}=function f3(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a,l,s=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,o,t.target))a=i,l=o;else{const u=e.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:a,y:l,box:s}}(t,n),f=s.left+(c&&a.left),d=s.top+(c&&a.top);let{width:h,height:p}=e;return o&&(h-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-f)/h*n.width/r),y:Math.round((u-d)/p*n.height/r)}}const Dc=t=>Math.round(10*t)/10;function kE(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o)&&(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const p3=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function NE(t,e){const n=function l3(t,e){return wc(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Gi(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function g3(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function m3(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=Gi(t,i,n),a=Gi(i,o,n),l=Gi(o,e,n),u=Gi(s,a,n),c=Gi(a,l,n);return Gi(u,c,n)}function ts(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(n){e=n},textAlign:n=>"center"===n?n:"right"===n?"left":"right",xPlus:(n,r)=>n-r,leftForLtr:(n,r)=>n-r}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function FE(t,e){let n,r;("ltr"===e||"rtl"===e)&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function LE(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function VE(t){return"angle"===t?{between:Ta,compare:_W,normalize:on}:{between:Ir,compare:(e,n)=>e-n,normalize:e=>e}}function BE({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:i}}function HE(t,e,n){if(!n)return[t];const{property:r,start:i,end:o}=n,s=e.length,{compare:a,between:l,normalize:u}=VE(r),{start:c,end:f,loop:d,style:h}=function _3(t,e,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=VE(r),l=e.length;let d,h,{start:u,end:c,loop:f}=t;if(f){for(u+=l,c+=l,d=0,h=l;da({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=dE.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let l,s=o.length-1,a=!1;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,0===n&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Rr=new M3;const zE="transparent",x3={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=_E(t||zE),i=r.valid&&_E(e||zE);return i&&i.valid?i.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class E3{constructor(e,n,r,i){const o=n[r];i=Na([e.to,i,o,e.from]);const s=Na([e.from,o,i]);this._active=!0,this._fn=e.fn||x3[e.type||typeof s],this._easing=Oa[e.easing]||Oa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Na([e.to,n,i,e.from]),this._from=Na([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i{const o=e[i];if(!oe(o))return;const s={};for(const a of n)s[a]=o[a];(Ee(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(e,n){const r=n.options,i=function T3(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&function P3(t,e){const n=[],r=Object.keys(e);for(let i=0;i{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if("$"===u.charAt(0))continue;if("options"===u){i.push(...this._animateOptions(e,n));continue}const c=n[u];let f=o[u];const d=r.get(u);if(f){if(d&&f.active()){f.update(d,c,a);continue}f.cancel()}d&&d.duration?(o[u]=f=new E3(d,e,u,c),i.push(f)):e[u]=c}return i}update(e,n){if(0===this._properties.size)return void Object.assign(e,n);const r=this._createAnimations(e,n);return r.length?(Rr.add(this._chart,r),!0):void 0}}function GE(t,e){const n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function YE(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i0||!n&&o<0)return i.index}return null}function XE(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,u=s.axis,c=function R3(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,r),f=e.length;let d;for(let h=0;hn[r].axis===e).shift()}function Fa(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n],void 0!==o[r]._visualValues&&void 0!==o[r]._visualValues[n]&&delete o[r]._visualValues[n]}}}const Ym=t=>"reset"===t||"none"===t,ZE=(t,e)=>e?t:Object.assign({},t);class Ln{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=QE(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Fa(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,d,h,p)=>"x"===f?d:"r"===f?p:h,o=n.xAxisID=K(r.xAxisID,Gm(e,"x")),s=n.yAxisID=K(r.yAxisID,Gm(e,"y")),a=n.rAxisID=K(r.rAxisID,Gm(e,"r")),l=n.indexAxis,u=n.iAxisID=i(l,o,s,a),c=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&cE(this._data,this),e._stacked&&Fa(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(oe(n))this._data=function A3(t){const e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r{const r="_onData"+Am(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[r]&&a[r](...o)}),s}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=QE(n.vScale,n),n.stack!==r.stack&&(i=!0,Fa(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&XE(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let c,f,d,l=0===e&&n===i.length||r._sorted,u=e>0&&r._parsed[e-1];if(!1===this._parsing)r._parsed=i,r._sorted=!0,d=i;else{d=Ee(i[e])?this.parseArrayData(r,i,e,n):oe(i[e])?this.parseObjectData(r,i,e,n):this.parsePrimitiveData(r,i,e,n);const h=()=>null===f[a]||u&&f[a]t&&!e.hidden&&e._stacked&&{keys:YE(this.chart,!0),values:null})(n,r),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:f}=function k3(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(a);let d,h;function p(){h=i[d];const g=h[a.axis];return!Be(h[e.axis])||c>g||f=0;--d)if(!p()){this.updateRangeFromParsed(u,e,h,l);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&ethis.getContext(r,i,n),f);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(ZE(g,l))),g}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(!1!==i.options.animation){const c=this.chart.config,f=c.datasetAnimationScopeKeys(this._type,n),d=c.getOptionScopes(this.getDataset(),f);l=c.createResolver(d,this.getContext(e,r,n))}const u=new WE(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Ym(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(e,n,r,i){Ym(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!Ym(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,e):o{for(u.length+=n,a=u.length-1;a>=s;a--)u[a]=u[a-n]};for(l(o),a=e;ai-o))}return t._cache.$bar}(e,t.type);let i,o,s,a,r=e._length;const l=()=>{32767===s||-32768===s||(yn(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;iMath.abs(a)&&(l=a,u=s),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:i,end:o,min:s,max:a}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function eP(t,e,n,r){const i=t.iScale,o=t.vScale,s=i.getLabels(),a=i===o,l=[];let u,c,f,d;for(u=n,c=n+r;ut.x,n="left",r="right"):(e=t.basel.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(ae(c)||isNaN(c))return!0};for(const l of i)if((void 0===n||!a(l))&&((!1===o||-1===s.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&s.push(l.stack),l.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=void 0!==n?i.indexOf(n):-1;return-1===o?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o=n?1:-1)}(g,n,a)*s,f===a&&(y-=g/2);const _=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),b=Math.min(_,v),w=Math.max(_,v);y=Math.max(Math.min(y,w),b),p=y+g,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(y))}if(y===n.getPixelForValue(a)){const _=Jn(g)*n.getLineWidthForValue(a)/2;y+=_,g-=_}return{size:g,base:y,head:p,center:p+g/2}}_calculateBarIndexPixels(e,n){const r=n.scale,i=this.options,o=i.skipNull,s=K(i.maxBarThickness,1/0);let a,l;if(n.grouped){const u=o?this._getStackCount(e):n.stackCount,c="flex"===i.barThickness?function U3(t,e,n,r){const i=e.pixels,o=i[t];let s=t>0?i[t-1]:null,a=t=0;--r)n=Math.max(n,e[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(e),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),u=s._custom;return{label:r[e]||"",value:"("+a+", "+l+(u?", "+u:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,r,i){const o="reset"===i,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,i),c=s.axis,f=a.axis;for(let d=n;d+r[l];if(oe(r[e])){const{key:l="value"}=this._parsing;o=u=>+Jr(r[u],l)}for(s=e,a=e+n;s"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e)(this.options.cutout,a),1),u=this._getRingWeight(this.index),{circumference:c,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:p,offsetY:g}=function Q3(t,e,n){let r=1,i=1,o=0,s=0;if(eTa(v,a,l,!0)?1:Math.max(b,b*n,w,w*n),p=(v,b,w)=>Ta(v,a,l,!0)?-1:Math.min(b,b*n,w,w*n),g=h(0,u,f),m=h(He,c,d),y=p(Ae,u,f),_=p(Ae+He,c,d);r=(g-y)/2,i=(m-_)/2,o=-(g+y)/2,s=-(m+_)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}(f,c,l),_=Math.max(Math.min((r.width-s)/d,(r.height-s)/h)/2,0),v=eE(this.options.radius,_),w=(v-Math.max(v*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=g*v,i.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(o,0,o.length,e)}_circumference(e,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*o/Pe)}updateElements(e,n,r,i){const o="reset"===i,s=this.chart,a=s.chartArea,c=(a.left+a.right)/2,f=(a.top+a.bottom)/2,d=o&&s.options.animation.animateScale,h=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:g,includeOptions:m}=this._getSharedOptions(n,i);let _,y=this._getRotation();for(_=0;_0&&!isNaN(e)?Pe*(Math.abs(e)/n):0}getLabelAndValue(e){const r=this.chart,i=r.data.labels||[],o=Ia(this._cachedMeta._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,s,a,l;if(!e)for(i=0,o=r.data.datasets.length;i"spacing"!==e,_indexable:e=>"spacing"!==e}),I(Yi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Mc extends Ln{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=pE(n,i,s);this._drawStart=a,this._drawCount=l,gE(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},e),this.updateElements(i,a,l,e)}updateElements(e,n,r,i){const o="reset"===i,{iScale:s,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:f}=this._getSharedOptions(n,i),d=s.axis,h=a.axis,{spanGaps:p,segment:g}=this.options,m=Zo(p)?p:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||"none"===i,_=n+r,v=e.length;let b=n>0&&this.getParsed(n-1);for(let w=0;w=_){M.skip=!0;continue}const x=this.getParsed(w),O=ae(x[h]),F=M[d]=s.getPixelForValue(x[d],w),U=M[h]=o||O?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,x,l):x[h],w);M.skip=isNaN(F)||isNaN(U)||O,M.stop=w>0&&Math.abs(x[d]-b[d])>m,g&&(M.parsed=x,M.raw=u.data[w]),f&&(M.options=c||this.resolveDataElementOptions(w,D.active?"active":i)),y||this.updateElement(D,w,M,i),b=x}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}I(Mc,"id","line"),I(Mc,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),I(Mc,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class La extends Ln{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const r=this.chart,i=r.data.labels||[],o=Ia(this._cachedMeta._parsed[e].r,r.options.locale);return{label:i[e]||"",value:o}}parseObjectData(e,n,r,i){return IE.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),a=(o-Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,r,i){const o="reset"===i,s=this.chart,l=s.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,f=u.yCenter,d=u.getIndexAngle(0)-.5*Ae;let p,h=d;const g=360/this.countVisibleElements();for(p=0;p{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Fn(this.resolveDataElementOptions(e,n).angle||r):0}}I(La,"id","polarArea"),I(La,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),I(La,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Qm extends Yi{}I(Qm,"id","pie"),I(Qm,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class xc extends Ln{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return IE.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,"resize"!==e){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0),this.updateElement(r,void 0,{_loop:!0,_fullLoop:o.length===i.length,options:s},e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const o=this._cachedMeta.rScale,s="reset"===i;for(let a=n;a0&&this.getParsed(n-1);for(let b=n;b0&&Math.abs(D[h]-v[h])>y,m&&(M.parsed=D,M.raw=u.data[b]),d&&(M.options=f||this.resolveDataElementOptions(b,w.active?"active":i)),_||this.updateElement(w,b,M,i),v=D}this.updateSharedOptions(f,i,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=e.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}I(Ec,"id","scatter"),I(Ec,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),I(Ec,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var K3=Object.freeze({__proto__:null,BarController:Cc,BubbleController:Sc,DoughnutController:Yi,LineController:Mc,PolarAreaController:La,PieController:Qm,RadarController:xc,ScatterController:Ec});function qi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Km{static override(e){Object.assign(Km.prototype,e)}constructor(e){this.options=e||{}}init(){}formats(){return qi()}parse(){return qi()}format(){return qi()}add(){return qi()}diff(){return qi()}startOf(){return qi()}endOf(){return qi()}}var rP={_date:Km};function X3(t,e,n,r){const{controller:i,data:o,_sorted:s}=t,a=i._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&s&&o.length){const l=a._reversePixels?wW:Ar;if(!r)return l(o,e,n);if(i._sharedOptions){const u=o[0],c="function"==typeof u.getRange&&u.getRange(e);if(c){const f=l(o,e,n-c),d=l(o,e,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:o.length-1}}function Va(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=o.length;a{l[s](e[n],i)&&(o.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(e.x,e.y,i))}),r&&!a?[]:o}var t5={evaluateInteractionItems:Va,modes:{index(t,e,n,r){const i=Wi(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Xm(t,i,o,r,s):Zm(t,i,o,!1,r,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,f=u.data[c];f&&!f.skip&&l.push({element:f,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,r){const i=Wi(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Xm(t,i,o,r,s):Zm(t,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,u=t.getDatasetMeta(l).data;a=[];for(let c=0;cXm(t,Wi(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest:(t,e,n,r)=>Zm(t,Wi(e,t),n.axis||"xy",n.intersect,r,n.includeInvisible||!1),x:(t,e,n,r)=>iP(t,Wi(e,t),"x",n.intersect,r),y:(t,e,n,r)=>iP(t,Wi(e,t),"y",n.intersect,r)}};const oP=["left","top","right","bottom"];function Ba(t,e){return t.filter(n=>n.pos===e)}function sP(t,e){return t.filter(n=>-1===oP.indexOf(n.pos)&&n.box.axis===e)}function Ha(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function aP(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function lP(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function s5(t,e,n,r){const{pos:i,box:o}=n,s=t.maxPadding;if(!oe(i)){n.size&&(t[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,t[i]+=n.size}o.getPadding&&lP(s,o.getPadding());const a=Math.max(0,e.outerWidth-aP(s,t,"left","right")),l=Math.max(0,e.outerHeight-aP(s,t,"top","bottom")),u=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function l5(t,e){const n=e.maxPadding;return function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(e[s],n[s])}),o}(t?["left","right"]:["top","bottom"])}function ja(t,e,n,r){const i=[];let o,s,a,l,u,c;for(o=0,s=t.length,u=0;ou.box.fullSize),!0),r=Ha(Ba(e,"left"),!0),i=Ha(Ba(e,"right")),o=Ha(Ba(e,"top"),!0),s=Ha(Ba(e,"bottom")),a=sP(e,"x"),l=sP(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:Ba(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),l=a.vertical,u=a.horizontal;ge(t.boxes,g=>{"function"==typeof g.beforeLayout&&g.beforeLayout()});const c=l.reduce((g,m)=>m.box.options&&!1===m.box.options.display?g:g+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/c,hBoxMaxHeight:s/2}),d=Object.assign({},i);lP(d,Mt(r));const h=Object.assign({maxPadding:d,w:o,h:s,x:i.left,y:i.top},i),p=function i5(t,e){const n=function r5(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!oP.includes(i))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,s,a;for(o=0,s=t.length;o{const m=g.box;Object.assign(m,t.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class cP{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class u5 extends cP{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Tc="$chartjs",c5={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fP=t=>null===t||""===t,dP=!!p3&&{passive:!0};function h5(t,e,n){t.canvas.removeEventListener(e,n,dP)}function Oc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function g5(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Oc(a.addedNodes,r),s=s&&!Oc(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function m5(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Oc(a.removedNodes,r),s=s&&!Oc(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ua=new Map;let hP=0;function pP(){const t=window.devicePixelRatio;t!==hP&&(hP=t,Ua.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function _5(t,e,n){const r=t.canvas,i=r&&Wm(r);if(!i)return;const o=hE((a,l)=>{const u=i.clientWidth;n(a,l),u{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;0===u&&0===c||o(u,c)});return s.observe(i),function y5(t,e){Ua.size||window.addEventListener("resize",pP),Ua.set(t,e)}(t,o),s}function Jm(t,e,n){n&&n.disconnect(),"resize"===e&&function v5(t){Ua.delete(t),Ua.size||window.removeEventListener("resize",pP)}(t)}function b5(t,e,n){const r=t.canvas,i=hE(o=>{null!==t.ctx&&n(function p5(t,e){const n=c5[t.type]||t.type,{x:r,y:i}=Wi(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==i?i:null}}(o,t))},t);return function d5(t,e,n){t.addEventListener(e,n,dP)}(r,e,i),i}class w5 extends cP{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(function f5(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Tc]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",fP(i)){const o=NE(t,"width");void 0!==o&&(t.width=o)}if(fP(r))if(""===t.style.height)t.height=t.width/(e||2);else{const o=NE(t,"height");void 0!==o&&(t.height=o)}}(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Tc])return!1;const r=n[Tc].initial;["height","width"].forEach(o=>{const s=r[o];ae(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Tc],!0}addEventListener(e,n,r){this.removeEventListener(e,n),(e.$proxies||(e.$proxies={}))[n]=({attach:g5,detach:m5,resize:_5}[n]||b5)(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];i&&(({attach:Jm,detach:Jm,resize:Jm}[n]||h5)(e,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return function h3(t,e,n,r){const i=wc(t),o=zi(i,"margin"),s=bc(i.maxWidth,t,"clientWidth")||hc,a=bc(i.maxHeight,t,"clientHeight")||hc,l=function d3(t,e,n){let r,i;if(void 0===e||void 0===n){const o=Wm(t);if(o){const s=o.getBoundingClientRect(),a=wc(o),l=zi(a,"border","width"),u=zi(a,"padding");e=s.width-u.width-l.width,n=s.height-u.height-l.height,r=bc(a.maxWidth,o,"clientWidth"),i=bc(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||hc,maxHeight:i||hc}}(t,e,n);let{width:u,height:c}=l;if("content-box"===i.boxSizing){const d=zi(i,"border","width"),h=zi(i,"padding");u-=h.width+d.width,c-=h.height+d.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=Dc(Math.min(u,s,l.maxWidth)),c=Dc(Math.min(c,a,l.maxHeight)),u&&!c&&(c=Dc(u/2)),(void 0!==e||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=Dc(Math.floor(c*r))),{width:u,height:c}}(e,n,r,i)}isAttached(e){const n=Wm(e);return!(!n||!n.isConnected)}}class Vn{constructor(){I(this,"active",!1)}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Zo(this.x)&&Zo(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}function Ic(t,e,n,r,i){const o=K(r,0),s=Math.min(K(i,t.length),t.length);let l,u,c,a=0;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=o;c<0;)a++,c=Math.round(o+a*n);for(u=Math.max(o,0);u"top"===e||"left"===e?t[e]+n:t[e]-n,mP=(t,e)=>Math.min(e||t,t);function yP(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;os+a)))return l}function $a(t){return t.drawTicks?t.tickLength:0}function vP(t,e){if(!t.display)return 0;const n=lt(t.font,e),r=Mt(t.padding);return(Ee(t.text)?t.text.length:1)*n.lineHeight+r.height}function k5(t,e,n){let r=Fm(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class Qi extends Vn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=rn(e,Number.POSITIVE_INFINITY),n=rn(n,Number.NEGATIVE_INFINITY),r=rn(r,Number.POSITIVE_INFINITY),i=rn(i,Number.NEGATIVE_INFINITY),{min:rn(e,r),max:rn(n,i),minDefined:Be(e),maxDefined:Be(n)}}getMinMax(e){let s,{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;lr?r:n,r=i&&n>r?n:r,{min:rn(n,rn(r,n)),max:rn(r,rn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Me(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function WW(t,e,n){const{min:r,max:i}=t,o=eE(e,(i-r)/2),s=(a,l)=>n&&0===a?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=ai)return function E5(t,e,n,r){let s,i=0,o=n[0];for(r=Math.ceil(r),s=0;si-o).pop(),e}(r);for(let s=0,a=o.length-1;si)return l}return Math.max(i,1)}(o,e,i);if(s>0){let f,d;const h=s>1?Math.round((l-a)/(s-1)):null;for(Ic(e,u,c,ae(h)?0:a-h,a),f=0,d=s-1;f=o||r<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),f=c.widest.width,d=c.highest.height,h=dt(this.chart.width-f,0,this.maxWidth);a=e.offset?this.maxWidth/r:h/(r-1),f+6>a&&(a=h/(r-(e.offset?.5:1)),l=this.maxHeight-$a(e.grid)-n.padding-vP(e.title,this.chart.options.font),u=Math.sqrt(f*f+d*d),s=Rm(Math.min(Math.asin(dt((c.highest.height+6)/a,-1,1)),Math.asin(dt(l/u,-1,1))-Math.asin(dt(d/u,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Me(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Me(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=vP(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=$a(o)+l):(e.height=this.maxHeight,e.width=$a(o)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:f,highest:d}=this._getLabelSizes(),h=2*r.padding,p=Fn(this.labelRotation),g=Math.cos(p),m=Math.sin(p);a?e.height=Math.min(this.maxHeight,e.height+(r.mirror?0:m*f.width+g*d.height)+h):e.width=Math.min(this.maxWidth,e.width+(r.mirror?0:g*f.width+m*d.height)+h),this._calculatePadding(u,c,m,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=0!==this.labelRotation,u="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;l?u?(d=i*e.width,h=r*n.height):(d=r*e.height,h=i*n.width):"start"===o?h=n.width:"end"===o?d=e.width:"inner"!==o&&(d=e.width/2,h=n.width/2),this.paddingLeft=Math.max((d-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-f+s)*this.width/(this.width-f),0)}else{let c=n.height/2,f=e.height/2;"start"===o?(c=0,f=e.height):"end"===o&&(c=n.height,f=0),this.paddingTop=c+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Me(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return"top"===n||"bottom"===n||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let n,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),n=0,r=e.length;n{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;o({width:s[O]||0,height:a[O]||0});return{first:x(0),last:x(n-1),widest:x(D),highest:x(M),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return function bW(t){return dt(t,-32768,32767)}(this._alignToPixels?ji(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*i?a/r:l/i:l*i0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,u=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=$a(o),h=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,y=function(X){return ji(r,X,g)};let _,v,b,w,D,M,x,O,F,U,ee,be;if("top"===s)_=y(this.bottom),M=this.bottom-d,O=_-m,U=y(e.top)+m,be=e.bottom;else if("bottom"===s)_=y(this.top),U=e.top,be=y(e.bottom)-m,M=_+m,O=this.top+d;else if("left"===s)_=y(this.right),D=this.right-d,x=_-m,F=y(e.left)+m,ee=e.right;else if("right"===s)_=y(this.left),F=e.left,ee=y(e.right)-m,D=_+m,x=this.left+d;else if("x"===n){if("center"===s)_=y((e.top+e.bottom)/2+.5);else if(oe(s)){const X=Object.keys(s)[0];_=y(this.chart.scales[X].getPixelForValue(s[X]))}U=e.top,be=e.bottom,M=_+m,O=M+d}else if("y"===n){if("center"===s)_=y((e.left+e.right)/2);else if(oe(s)){const X=Object.keys(s)[0];_=y(this.chart.scales[X].getPixelForValue(s[X]))}D=_-m,x=D-d,F=e.left,ee=e.right}const Qe=K(i.ticks.maxTicksLimit,f),H=Math.max(1,Math.ceil(f/Qe));for(v=0;vo.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,s;const a=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]:[{z:n,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Ge.route(o,i,l,a)})}(e,t.defaultRoutes),t.descriptors&&Ge.describe(e,t.descriptors)}(e,s,r),this.override&&Ge.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in Ge[i]&&(delete Ge[i][r],this.override&&delete Hi[r])}}class B5{constructor(){this.controllers=new Ac(Ln,"datasets",!0),this.elements=new Ac(Vn,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Qi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):ge(i,s=>{const a=r||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,r){const i=Am(e);Me(r["before"+i],[],r),n[e](r),Me(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;no.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function U5(t,e){return e||!1!==t?!0===t?{}:t:null}function z5(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(r,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ey(t,e){return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||(Ge.datasets[t]||{}).indexAxis||"x"}function Rc(t,e){if("x"===t||"y"===t||"r"===t||(t=e.axis||function Y5(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(e.position)||t.length>1&&Rc(t[0].toLowerCase(),e)))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function _P(t){const e=t.options||(t.options={});e.plugins=K(e.plugins,{}),e.scales=function q5(t,e){const n=Hi[t.type]||{scales:{}},r=e.scales||{},i=ey(t.type,e),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!oe(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Rc(s,a),u=function G5(t,e){return t===e?"_index_":"_value_"}(l,i),c=n.scales||{};o[s]=Ea(Object.create(null),[{axis:l},a,c[l],c[u]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ey(a,e),c=(Hi[a]||{}).scales||{};Object.keys(c).forEach(f=>{const d=function W5(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(f,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),Ea(o[h],[{axis:d},r[h],c[f]])})}),Object.keys(o).forEach(s=>{const a=o[s];Ea(a,[Ge.scales[a.type],Ge.scale])}),o}(t,e)}function bP(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const wP=new Map,DP=new Set;function kc(t,e){let n=wP.get(t);return n||(n=e(),wP.set(t,n),DP.add(n)),n}const za=(t,e,n)=>{const r=Jr(e,n);void 0!==r&&t.add(r)};class K5{constructor(e){this._config=function Q5(t){return(t=t||{}).data=bP(t.data),_P(t),t}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=bP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),_P(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return kc(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return kc(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return kc(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id;return kc(`${this.type}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,s=this._cachedScopes(e,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(f=>za(l,e,f))),c.forEach(f=>za(l,i,f)),c.forEach(f=>za(l,Hi[o]||{},f)),c.forEach(f=>za(l,Ge,f)),c.forEach(f=>za(l,Vm,f))});const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),DP.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,Hi[n]||{},Ge.datasets[n]||{},{type:n},Ge,Vm]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=CP(this._resolverCache,e,i);let l=s;(function Z5(t,e){const{isScriptable:n,isIndexable:r}=ME(t);for(const i of e){const o=n(i),s=r(i),a=(s||o)&&t[i];if(o&&(ei(a)||X5(a))||s&&Ee(a))return!0}return!1})(s,n)&&(o.$shared=!1,l=Jo(s,r=ei(r)?r():r,this.createResolver(e,r,a)));for(const u of n)o[u]=l[u];return o}createResolver(e,n,r=[""],i){const{resolver:o}=CP(this._resolverCache,e,r);return oe(n)?Jo(o,n,void 0,i):o}}function CP(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Um(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const X5=t=>oe(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||ei(t[n]),!1),e8=["top","bottom","left","right","chartArea"];function SP(t,e){return"top"===t||"bottom"===t||-1===e8.indexOf(t)&&"x"===e}function MP(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function xP(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Me(n&&n.onComplete,[t],e)}function t8(t){const e=t.chart,n=e.options.animation;Me(n&&n.onProgress,[t],e)}function EP(t){return RE()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Nc={},PP=t=>{const e=EP(t);return Object.values(Nc).filter(n=>n.canvas===e).pop()};function n8(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const s=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=s)}}}class kr{static register(...e){er.add(...e),TP()}static unregister(...e){er.remove(...e),TP()}constructor(e,n){const r=this.config=new K5(n),i=EP(e),o=PP(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function D5(t){return!RE()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?u5:w5}(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;this.id=lW(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new H5,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function SW(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],Nc[this.id]=this,a&&l?(Rr.listen(this,"complete",xP),Rr.listen(this,"progress",t8),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ae(e)?n&&o?o:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return er}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():kE(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return DE(this.canvas,this.ctx),this}stop(){return Rr.stop(this),this}resize(e,n){Rr.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.platform.getMaximumSize(this.canvas,e,n,r.maintainAspectRatio&&this.aspectRatio),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,kE(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Me(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){ge(this.options.scales||{},(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=Rc(s,a),u="r"===l,c="x"===l;return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),ge(o,s=>{const a=s.options,l=a.id,u=Rc(l,a),c=K(a.type,s.dtype);(void 0===a.position||SP(a.position,u)!==SP(s.dposition))&&(a.position=s.dposition),i[l]=!0;let f=null;l in r&&r[l].type===c?f=r[l]:(f=new(er.getScale(c))({id:l,type:c,ctx:this.ctx,chart:this}),r[f.id]=f),f.init(a,e)}),ge(i,(s,a)=>{s||delete r[a]}),ge(r,s=>{xt.configure(this,s,s.options),xt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,e.forEach((r,i)=>{0===n.filter(o=>o===r._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(MP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ge(this.scales,e=>{xt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!rE(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n)n8(e,i,"_removeElements"===r?-o:o)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(e.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;xt.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ge(this.boxes,i=>{r&&"chartArea"===i.position||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,o=function i8(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&yc(n,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),e.controller.draw(),i&&vc(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ra(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const o=t5.modes[n];return"function"==typeof o?o(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ni(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return"boolean"==typeof r.hidden?!r.hidden:!n.hidden}setDatasetVisibility(e,n){this.getDatasetMeta(e).hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(e),s=o.controller._resolveAnimations(void 0,i);yn(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Rr.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,o,s),e[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};ge(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},i=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){ge(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},ge(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let o,s,a,l;for("dataset"===n&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!fc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return 1===this._plugins._cache.filter(n=>n.plugin.id===e).length}_updateHoverStyles(e,n,r){const i=this.options.hover,o=(l,u)=>l.filter(c=>!u.some(f=>c.datasetIndex===f.datasetIndex&&c.index===f.index)),s=o(n,e),a=r?e:o(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",r,i))return;const o=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:o}=this,a=this._getActiveElements(e,i,r,n),l=function pW(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(e),u=function r8(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Me(o.onHover,[e,a,this],this),l&&Me(o.onClick,[e,a,this],this));const c=!fc(a,i);return(c||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=u,c}_getActiveElements(e,n,r,i){if("mouseout"===e.type)return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,i)}}function TP(){return ge(kr.instances,t=>t._plugins.invalidate())}function ns(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Fc(t,e,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=e,f=Math.max(e.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0;let h=0;const p=i-l;if(r){const ye=((c>0?c-r:0)+(f>0?f-r:0))/2;h=(p-(0!==ye?p*ye/(ye+r):p))/2}const m=(p-Math.max(.001,p*f-n/Ae)/f)/2,y=l+m+h,_=i-m-h,{outerStart:v,outerEnd:b,innerStart:w,innerEnd:D}=function a8(t,e,n,r){const i=function s8(t){return jm(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),o=(n-e)/2,s=Math.min(o,r*e/2),a=l=>{const u=(n-Math.min(o,l))*r/2;return dt(l,0,Math.min(o,u))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:dt(i.innerStart,0,s),innerEnd:dt(i.innerEnd,0,s)}}(e,d,f,_-y),M=f-v,x=f-b,O=y+v/M,F=_-b/x,U=d+w,ee=d+D,be=y+w/U,Qe=_-D/ee;if(t.beginPath(),o){const H=(O+F)/2;if(t.arc(s,a,f,O,H),t.arc(s,a,f,H,F),b>0){const ut=ns(x,F,s,a);t.arc(ut.x,ut.y,b,F,_+He)}const X=ns(ee,_,s,a);if(t.lineTo(X.x,X.y),D>0){const ut=ns(ee,Qe,s,a);t.arc(ut.x,ut.y,D,_+He,Qe+Math.PI)}const ye=(_-D/d+(y+w/d))/2;if(t.arc(s,a,d,_-D/d,ye,!0),t.arc(s,a,d,ye,y+w/d,!0),w>0){const ut=ns(U,be,s,a);t.arc(ut.x,ut.y,w,be+Math.PI,y-He)}const sn=ns(M,y,s,a);if(t.lineTo(sn.x,sn.y),v>0){const ut=ns(M,O,s,a);t.arc(ut.x,ut.y,v,y-He,O)}}else{t.moveTo(s,a);const H=Math.cos(O)*f+s,X=Math.sin(O)*f+a;t.lineTo(H,X);const ye=Math.cos(F)*f+s,sn=Math.sin(F)*f+a;t.lineTo(ye,sn)}t.closePath()}I(kr,"defaults",Ge),I(kr,"instances",Nc),I(kr,"overrides",Hi),I(kr,"registry",er),I(kr,"version","4.2.1"),I(kr,"getChart",PP);class Lc extends Vn{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=lE(i,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:u,outerRadius:c,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),d=this.options.spacing/2,p=K(f,l-a)>=Pe||Ta(o,a,l),g=Ir(s,u+d,c+d);return p&&g}getCenterPoint(e){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:u}=this.options,c=(i+o)/2,f=(s+a+u+l)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin="inner"===n.borderAlign?.33:0,this.fullCircles=r>Pe?Math.floor(r/Pe):0,0===r||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const u=i*(1-Math.sin(Math.min(Ae,r||0)));e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,function l8(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=e;let l=e.endAngle;if(o){Fc(t,e,n,r,l,i);for(let u=0;ui?(u=i/l,t.arc(o,s,l,n+u,r-u,!0)):t.arc(o,s,i,n+He,r-He),t.closePath(),t.clip()}(t,e,d),o||(Fc(t,e,n,r,d,i),t.stroke())}(e,this,u,o,s),e.restore()}}function OP(t,e,n=e){t.lineCap=K(n.borderCapStyle,e.borderCapStyle),t.setLineDash(K(n.borderDash,e.borderDash)),t.lineDashOffset=K(n.borderDashOffset,e.borderDashOffset),t.lineJoin=K(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=K(n.borderWidth,e.borderWidth),t.strokeStyle=K(n.borderColor,e.borderColor)}function c8(t,e,n){t.lineTo(n.x,n.y)}function IP(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=e,l=Math.max(i,s),u=Math.min(o,a);return{count:r,start:l,loop:e.loop,ilen:ua&&o>a)?r+u-l:u-l}}function d8(t,e,n,r){const{points:i,options:o}=e,{count:s,start:a,loop:l,ilen:u}=IP(i,n,r),c=function f8(t){return t.stepped?FW:t.tension||"monotone"===t.cubicInterpolationMode?LW:c8}(o);let h,p,g,{move:f=!0,reverse:d}=r||{};for(h=0;h<=u;++h)p=i[(a+(d?u-h:h))%s],!p.skip&&(f?(t.moveTo(p.x,p.y),f=!1):c(t,g,p,d,o.stepped),g=p);return l&&(p=i[(a+(d?u:0))%s],c(t,g,p,d,o.stepped)),!!l}function h8(t,e,n,r){const i=e.points,{count:o,start:s,ilen:a}=IP(i,n,r),{move:l=!0,reverse:u}=r||{};let d,h,p,g,m,y,c=0,f=0;const _=b=>(s+(u?a-b:b))%o,v=()=>{g!==m&&(t.lineTo(c,m),t.lineTo(c,g),t.lineTo(c,y))};for(l&&(h=i[_(0)],t.moveTo(h.x,h.y)),d=0;d<=a;++d){if(h=i[_(d)],h.skip)continue;const b=h.x,w=h.y,D=0|b;D===p?(wm&&(m=w),c=(f*c+b)/++f):(v(),t.lineTo(b,w),p=D,f=0,g=m=w),y=w}v()}function ty(t){const e=t.options;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||e.borderDash&&e.borderDash.length?d8:h8}I(Lc,"id","arc"),I(Lc,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),I(Lc,"defaultRoutes",{backgroundColor:"backgroundColor"});const y8="function"==typeof Path2D;class ri extends Vn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;!r.tension&&"monotone"!==r.cubicInterpolationMode||r.stepped||this._pointsUpdated||(a3(this._points,r,e,r.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function D3(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:s,end:a}=function b3(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;ii&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}(n,i,o,r);return function UE(t,e,n,r){return r&&r.setContext&&n?function C3(t,e,n,r){const i=t._chart.getContext(),o=$E(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=n.length,u=[];let c=o,f=e[0].start,d=f;function h(p,g,m,y){const _=a?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=_;for(;n[g%l].skip;)g+=_;p%l!=g%l&&(u.push({start:p%l,end:g%l,loop:m,style:y}),c=y,f=g%l)}}for(const p of e){f=a?f:p.start;let m,g=n[f%l];for(d=f+1;d<=p.end;d++){const y=n[d%l];m=$E(r.setContext(ni(i,{type:"segment",p0:g,p1:y,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),S3(m,c)&&h(f,d-1,p.loop,c),g=y,c=m}f"borderDash"!==e&&"fill"!==e});class Vc extends Vn{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(n-s,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function NP(t){return iy[t%iy.length]}function FP(t){return kP[t%kP.length]}function LP(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var O8={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=t.config,{elements:o}=i;if(!n.forceOverride&&(LP(r)||function T8(t){return t&&(t.borderColor||t.backgroundColor)}(i)||o&&LP(o)))return;const s=function P8(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof Yi?e=function x8(t,e){return t.backgroundColor=t.data.map(()=>NP(e++)),e}(n,e):i instanceof La?e=function E8(t,e){return t.backgroundColor=t.data.map(()=>FP(e++)),e}(n,e):i&&(e=function M8(t,e){return t.borderColor=NP(e),t.backgroundColor=FP(e),++e}(n,e))}}(t);r.forEach(s)}};function VP(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function BP(t){t.data.datasets.forEach(e=>{VP(e)})}var k8={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void BP(t);const r=t.width;t.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=t.getDatasetMeta(o),u=s||i.data;if("y"===Na([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type||t.options.parsing)return;let p,{start:f,count:d}=function R8(t,e){const n=e.length;let i,r=0;const{iScale:o}=t,{min:s,max:a,minDefined:l,maxDefined:u}=o.getUserBounds();return l&&(r=dt(Ar(e,o.axis,s).lo,0,n-1)),i=u?dt(Ar(e,o.axis,a).hi+1,r,n)-r:n-r,{start:r,count:i}}(l,u);if(d<=(n.threshold||4*r))VP(i);else{switch(ae(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}})),n.algorithm){case"lttb":p=function I8(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const s=[],a=(n-2)/(o-2);let l=0;const u=e+n-1;let f,d,h,p,g,c=e;for(s[l++]=t[c],f=0;fh&&(h=p,d=t[_],g=_);s[l++]=d,c=g}return s[l++]=t[u],s}(u,f,d,r,n);break;case"min-max":p=function A8(t,e,n,r){let s,a,l,u,c,f,d,h,p,g,i=0,o=0;const m=[],_=t[e].x,b=t[e+n-1].x-_;for(s=e;sg&&(g=u,d=s),i=(o*i+a.x)/++o;else{const D=s-1;if(!ae(f)&&!ae(d)){const M=Math.min(f,d),x=Math.max(f,d);M!==h&&M!==D&&m.push({...t[M],x:i}),x!==h&&x!==D&&m.push({...t[x],x:i})}s>0&&D!==h&&m.push(t[D]),m.push(a),c=w,o=0,p=g=u,f=d=h=s}}return m}(u,f,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p}})},destroy(t){BP(t)}};function oy(t,e,n,r){if(r)return;let i=e[t],o=n[t];return"angle"===t&&(i=on(i),o=on(o)),{property:t,start:i,end:o}}function sy(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function HP(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function jP(t,e){let n=[],r=!1;return Ee(t)?(r=!0,n=t):n=function F8(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach(({start:s,end:a})=>{a=sy(s,a,i);const l=i[s],u=i[a];null!==r?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):null!==n&&(o.push({x:n,y:l.y}),o.push({x:n,y:u.y}))}),o}(t,e),n.length?new ri({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function UP(t){return t&&!1!==t.fill}function L8(t,e,n){let i=t[e].fill;const o=[e];let s;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!Be(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function V8(t,e,n){const r=function U8(t){const e=t.options,n=e.fill;let r=K(n&&n.target,n);return void 0===r&&(r=!!e.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(t);if(oe(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return Be(i)&&Math.floor(i)===i?function B8(t,e,n,r){return("-"===t||"+"===t)&&(n=e+n),!(n===e||n<0||n>=r)&&n}(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function W8(t,e,n){const r=[];for(let i=0;i=0;--s){const a=i[s].$filler;!a||(a.line.updateControlPoints(o,a.axis),r&&a.fill&&ay(t.ctx,a,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;UP(o)&&ay(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!UP(r)||"beforeDatasetDraw"!==n.drawTime||ay(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const YP=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class qP extends Vn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Me(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display)return void(this.width=this.height=0);const r=e.labels,i=lt(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=YP(r,o);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,o,a,l)+10):(c=this.maxHeight,u=this._fitCols(s,i,a,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+a;let f=e;o.textAlign="left",o.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach((p,g)=>{const m=r+n/2+o.measureText(p.text).width;(0===g||u[u.length-1]+m+2*a>s)&&(f+=c,u[u.length-(g>0?0:1)]=0,h+=c,d++),l[g]={left:0,top:h,row:d,width:m,height:i},u[u.length-1]+=m+a}),f}_fitCols(e,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-e;let f=a,d=0,h=0,p=0,g=0;return this.legendItems.forEach((m,y)=>{const{itemWidth:_,itemHeight:v}=function n4(t,e,n,r,i){const o=function r4(t,e,n,r){let i=t.text;return i&&"string"!=typeof i&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),e+n.size/2+r.measureText(i).width}(r,t,e,n),s=function i4(t,e,n){let r=t;return"string"!=typeof e.text&&(r=QP(e,n)),r}(i,r,e.lineHeight);return{itemWidth:o,itemHeight:s}}(r,n,o,m,i);y>0&&h+v+2*a>c&&(f+=d+a,u.push({width:d,height:h}),p+=d+a,g++,d=h=0),l[y]={left:p,top:h,col:g,width:_,height:v},d=Math.max(d,_),h+=v+a}),f+=d,u.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=ts(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=St(r,this.left+i,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=St(r,this.left+i,this.right-this.lineWidths[a])),u.top+=this.top+e+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let a=0,l=St(r,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=St(r,this.top+e+i,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;yc(e,this),this._draw(),vc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=e,a=Ge.color,l=ts(e.rtl,this.left,this.width),u=lt(s.font),{padding:c}=s,f=u.size,d=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=YP(s,f),v=this.isHorizontal(),b=this._computeTitleHeight();h=v?{x:St(o,this.left+c,this.right-r[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:St(o,this.top+b+c,this.bottom-n[0].height),line:0},FE(this.ctx,e.textDirection);const w=m+c;this.legendItems.forEach((D,M)=>{i.strokeStyle=D.fontColor,i.fillStyle=D.fontColor;const x=i.measureText(D.text).width,O=l.textAlign(D.textAlign||(D.textAlign=s.textAlign)),F=p+d+x;let U=h.x,ee=h.y;l.setWidth(this.width),v?M>0&&U+F+c>this.right&&(ee=h.y+=w,h.line++,U=h.x=St(o,this.left+c,this.right-r[h.line])):M>0&&ee+w>this.bottom&&(U=h.x=U+n[h.line].width+c,h.line++,ee=h.y=St(o,this.top+b+c,this.bottom-n[h.line].height)),function(D,M,x){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const O=K(x.lineWidth,1);if(i.fillStyle=K(x.fillStyle,a),i.lineCap=K(x.lineCap,"butt"),i.lineDashOffset=K(x.lineDashOffset,0),i.lineJoin=K(x.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=K(x.strokeStyle,a),i.setLineDash(K(x.lineDash,[])),s.usePointStyle){const F={radius:g*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:O},U=l.xPlus(D,p/2);CE(i,F,U,M+d,s.pointStyleWidth&&p)}else{const F=M+Math.max((f-g)/2,0),U=l.leftForLtr(D,p),ee=$i(x.borderRadius);i.beginPath(),Object.values(ee).some(be=>0!==be)?ka(i,{x:U,y:F,w:p,h:g,radius:ee}):i.rect(U,F,p,g),i.fill(),0!==O&&i.stroke()}i.restore()}(l.x(U),ee,D),U=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(O,U+p+d,v?U+F:this.right,e.rtl),function(D,M,x){Ui(i,x.text,D,M+m/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})}(l.x(U),ee,D),v?h.x+=F+c:h.y+="string"!=typeof D.text?QP(D,u.lineHeight):w}),LE(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=lt(n.font),i=Mt(n.padding);if(!n.display)return;const o=ts(e.rtl,this.left,this.width),s=this.ctx,a=n.position,u=i.top+r.size/2;let c,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+u,f=St(e.align,f,this.right-d);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);c=u+St(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=St(a,f,f+d);s.textAlign=o.textAlign(Fm(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Ui(s,n.text,h,c,r)}_computeTitleHeight(){const e=this.options.title,n=lt(e.font),r=Mt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,o;if(Ir(e,this.left,this.right)&&Ir(n,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;rnull!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,r);i&&!o&&Me(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!o&&Me(n.onHover,[e,r,this],this)}else r&&Me(n.onClick,[e,r,this],this)}}function QP(t,e){return e*(t.text?t.text.length+.5:0)}var s4={id:"legend",_element:qP,start(t,e,n){const r=t.legend=new qP({ctx:t.ctx,options:n,chart:t});xt.configure(t,r,n),xt.addBox(t,r)},stop(t){xt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;xt.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Mt(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class ly extends Vn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=n;const i=Ee(r.text)?r.text.length:1;this._padding=Mt(r.padding);const o=i*lt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let u,c,f,l=0;return this.isHorizontal()?(c=St(a,r,o),f=n+e,u=o-r):("left"===s.position?(c=r+e,f=St(a,i,n),l=-.5*Ae):(c=o-e,f=St(a,n,i),l=.5*Ae),u=i-n),{titleX:c,titleY:f,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=lt(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(o);Ui(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Fm(n.align),textBaseline:"middle",translation:[s,a]})}}var l4={id:"title",_element:ly,start(t,e,n){!function a4(t,e){const n=new ly({ctx:t.ctx,options:e,chart:t});xt.configure(t,n,e),xt.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){xt.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;xt.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Hc=new WeakMap;var u4={id:"subtitle",start(t,e,n){const r=new ly({ctx:t.ctx,options:n,chart:t});xt.configure(t,r,n),xt.addBox(t,r),Hc.set(t,r)},stop(t){xt.removeBox(t,Hc.get(t)),Hc.delete(t)},beforeUpdate(t,e,n){const r=Hc.get(t);xt.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wa={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e-1?t.split("\n"):t}function c4(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:t,label:s,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function KP(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:s,boxHeight:a}=e,l=lt(e.bodyFont),u=lt(e.titleFont),c=lt(e.footerFont),f=o.length,d=i.length,h=r.length,p=Mt(e.padding);let g=p.height,m=0,y=r.reduce((b,w)=>b+w.before.length+w.lines.length+w.after.length,0);y+=t.beforeBody.length+t.afterBody.length,f&&(g+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y&&(g+=h*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(y-h)*l.lineHeight+(y-1)*e.bodySpacing),d&&(g+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let _=0;const v=function(b){m=Math.max(m,n.measureText(b).width+_)};return n.save(),n.font=u.string,ge(t.title,v),n.font=l.string,ge(t.beforeBody.concat(t.afterBody),v),_=e.displayColors?s+2+e.boxPadding:0,ge(r,b=>{ge(b.before,v),ge(b.lines,v),ge(b.after,v)}),_=0,n.font=c.string,ge(t.footer,v),n.restore(),m+=p.width,{width:m,height:g}}function h4(t,e,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=t;let u="center";return"center"===r?u=i<=(a+l)/2?"left":"right":i<=o/2?u="left":i>=s-o/2&&(u="right"),function d4(t,e,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if("left"===t&&i+o+s>e.width||"right"===t&&i-o-s<0)return!0}(u,t,e,n)&&(u="center"),u}function XP(t,e,n){const r=n.yAlign||e.yAlign||function f4(t,e){const{y:n,height:r}=e;return nt.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||h4(t,e,n,r),yAlign:r}}function ZP(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,u=i+o,{topLeft:c,topRight:f,bottomLeft:d,bottomRight:h}=$i(s);let p=function p4(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,a);const g=function g4(t,e,n){let{y:r,height:i}=t;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,l,u);return"center"===l?"left"===a?p+=u:"right"===a&&(p-=u):"left"===a?p-=Math.max(c,d)+i:"right"===a&&(p+=Math.max(f,h)+i),{x:dt(p,0,r.width-e.width),y:dt(g,0,r.height-e.height)}}function jc(t,e,n){const r=Mt(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function JP(t){return tr([],Nr(t))}function eT(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const tT={beforeTitle:Or,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex"u"?tT[e].call(n,r):i}class uy extends Vn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new WE(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=function m4(t,e,n){return ni(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=Ut(r,"beforeTitle",this,e),o=Ut(r,"title",this,e),s=Ut(r,"afterTitle",this,e);let a=[];return a=tr(a,Nr(i)),a=tr(a,Nr(o)),a=tr(a,Nr(s)),a}getBeforeBody(e,n){return JP(Ut(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return ge(e,o=>{const s={before:[],lines:[],after:[]},a=eT(r,o);tr(s.before,Nr(Ut(a,"beforeLabel",this,o))),tr(s.lines,Ut(a,"label",this,o)),tr(s.after,Nr(Ut(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(e,n){return JP(Ut(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=Ut(r,"beforeFooter",this,e),o=Ut(r,"footer",this,e),s=Ut(r,"afterFooter",this,e);let a=[];return a=tr(a,Nr(i)),a=tr(a,Nr(o)),a=tr(a,Nr(s)),a}_createItems(e){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let l,u,a=[];for(l=0,u=n.length;le.filter(c,f,d,r))),e.itemSort&&(a=a.sort((c,f)=>e.itemSort(c,f,r))),ge(a,c=>{const f=eT(e.callbacks,c);i.push(Ut(f,"labelColor",this,c)),o.push(Ut(f,"labelPointStyle",this,c)),s.push(Ut(f,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(i.length){const a=Wa[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=KP(this,r),u=Object.assign({},a,l),c=XP(this.chart,r,u),f=ZP(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const o=this.getCaretPosition(e,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:f}=$i(a),{x:d,y:h}=e,{width:p,height:g}=n;let m,y,_,v,b,w;return"center"===o?(b=h+g/2,"left"===i?(m=d,y=m-s,v=b+s,w=b-s):(m=d+p,y=m+s,v=b-s,w=b+s),_=m):(y="left"===i?d+Math.max(l,c)+s:"right"===i?d+p-Math.max(u,f)-s:this.caretX,"top"===o?(v=h,b=v-s,m=y-s,_=y+s):(v=h+g,b=v+s,m=y+s,_=y-s),w=v),{x1:m,x2:y,x3:_,y1:v,y2:b,y3:w}}drawTitle(e,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const u=ts(r.rtl,this.x,this.width);for(e.x=jc(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=lt(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l0!==v)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,ka(e,{x:m,y:g,w:u,h:l,radius:_}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),ka(e,{x:y,y:g+1,w:u-2,h:l-2,radius:_}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(m,g,u,l),e.strokeRect(m,g,u,l),e.fillStyle=s.backgroundColor,e.fillRect(y,g+1,u-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=r,f=lt(r.bodyFont);let d=f.lineHeight,h=0;const p=ts(r.rtl,this.x,this.width),g=function(x){n.fillText(x,p.x(e.x+h),e.y+d/2),e.y+=d+o},m=p.textAlign(s);let y,_,v,b,w,D,M;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,e.x=jc(this,m,r),n.fillStyle=r.bodyColor,ge(this.beforeBody,g),h=a&&"right"!==m?"center"===s?u/2+c:u+2+c:0,b=0,D=i.length;b0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Wa[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=KP(this,e),l=Object.assign({},s,this._size),u=XP(n,e,l),c=ZP(e,l,u,n);(i._to!==c.x||o._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Mt(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,i,n),FE(e,n.textDirection),o.y+=s.top,this.drawTitle(o,e,n),this.drawBody(o,e,n),this.drawFooter(o,e,n),LE(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),o=!fc(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(e,o,n,r),a=this._positionChanged(s,e),l=n||!fc(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const o=this.options;if("mouseout"===e.type)return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:i,options:o}=this,s=Wa[o.position].call(this,e,n);return!1!==s&&(r!==s.x||i!==s.y)}}I(uy,"positioners",Wa);var v4=Object.freeze({__proto__:null,Colors:O8,Decimation:k8,Filler:e4,Legend:s4,SubTitle:u4,Title:l4,Tooltip:{id:"tooltip",_element:uy,positioners:Wa,afterInit(t,e,n){n&&(t.tooltip=new uy({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){t.tooltip&&t.tooltip.handleEvent(e.event,e.replay,e.inChartArea)&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:tT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function nT(t){const e=this.getLabels();return t>=0&&tnull===t?null:dt(Math.round(t),0,e))(n=isFinite(n)&&r[n]===e?n:function b4(t,e,n,r){const i=t.indexOf(e);return-1===i?((t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r):i!==t.lastIndexOf(e)?n:i}(r,e,K(n,e),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=0===e&&n===o.length-1?o:o.slice(e,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=n;s++)i.push({value:s});return i}getLabelForValue(e){return nT.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function rT(t,e,{horizontal:n,minRotation:r}){const i=Fn(r),o=(n?Math.sin(i):Math.cos(i))||.001;return Math.min(e/o,.75*e*(""+t).length)}I(cy,"id","category"),I(cy,"defaults",{ticks:{callback:nT}});class Uc extends Qi{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return ae(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(e){const l=Jn(i),u=Jn(o);l<0&&u<0?a(0):l>0&&u>0&&s(0)}if(i===o){let l=0===o?1:Math.abs(.05*o);a(o+l),e||s(i-l)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let i,{maxTicksLimit:n,stepSize:r}=e;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const s=function D4(t,e){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:u,maxTicks:c,maxDigits:f,includeBounds:d}=t,h=o||1,p=c-1,{min:g,max:m}=e,y=!ae(s),_=!ae(a),v=!ae(u),b=(m-g)/(f+1);let D,M,x,O,w=oE((m-g)/p/h)*h;if(w<1e-14&&!y&&!_)return[{value:g},{value:m}];O=Math.ceil(m/w)-Math.floor(g/w),O>p&&(w=oE(O*w/p/h)*h),ae(l)||(D=Math.pow(10,l),w=Math.ceil(w*D)/D),"ticks"===i?(M=Math.floor(g/w)*w,x=Math.ceil(m/w)*w):(M=g,x=m),y&&_&&o&&function vW(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-s)/o,w/1e3)?(O=Math.round(Math.min((a-s)/w,c)),w=(a-s)/O,M=s,x=a):v?(M=y?s:M,x=_?a:x,O=u-1,w=(x-M)/O):(O=(x-M)/w,O=Pa(O,Math.round(O),w/1e3)?Math.round(O):Math.ceil(O));const F=Math.max(aE(w),aE(M));D=Math.pow(10,ae(l)?F:l),M=Math.round(M*D)/D,x=Math.round(x*D)/D;let U=0;for(y&&(d&&M!==s?(n.push({value:s}),MMath.floor(ti(t)),Ki=(t,e)=>Math.pow(10,Ga(t)+e);function iT(t){return t/Math.pow(10,Ga(t))==1}function oT(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}class dy extends Qi{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=Uc.prototype.parse.apply(this,[e,n]);if(0!==r)return Be(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Be(e)?Math.max(0,e):null,this.max=Be(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Be(this._userMin)&&(this.min=e===Ki(this.min,0)?Ki(this.min,-1):Ki(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=e?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(Ki(r,-1)),s(Ki(i,1)))),r<=0&&o(Ki(i,-1)),i<=0&&s(Ki(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,r=function S4(t,{min:e,max:n}){e=rn(t.min,e);const r=[],i=Ga(e);let o=function C4(t,e){let r=Ga(e-t);for(;oT(t,e,r)>10;)r++;for(;oT(t,e,r)<10;)r--;return Math.min(r,Ga(t))}(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,u=Math.round((e-l)*s)/s,c=Math.floor((e-l)/a/10)*a*10;let f=Math.floor((u-c)/Math.pow(10,o)),d=rn(t.min,Math.round((l+c+f*Math.pow(10,o))*s)/s);for(;d=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,s=o>=0?1:s),d=Math.round((l+c+f*Math.pow(10,o))*s)/s;const h=rn(t.max,d);return r.push({value:h,major:iT(h),significand:f}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&sE(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return void 0===e?"0":Ia(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=ti(e),this._valueRange=ti(this.max)-ti(e)}getPixelForValue(e){return(void 0===e||0===e)&&(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(ti(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}function hy(t){const e=t.ticks;if(e.display&&t.display){const n=Mt(e.backdropPadding);return K(e.font&&e.font.size,Ge.font.size)+n.height}return 0}function M4(t,e,n){return n=Ee(n)?n:[n],{w:NW(t,e.string,n),h:n.length*e.lineHeight}}function sT(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function E4(t,e,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.starte.r&&(a=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),i.starte.b&&(l=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function T4(t){return 0===t||180===t?"center":t<180?"left":"right"}function O4(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function I4(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function aT(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Pe);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let s=1;s{const i=Me(this.options.pointLabels.callback,[n,r],this);return i||0===i?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?function x4(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?Ae/o:0;for(let l=0;l=0&&e=0;i--){const o=r.setContext(t.getPointLabelContext(i)),s=lt(o.font),{x:a,y:l,textAlign:u,left:c,top:f,right:d,bottom:h}=t._pointLabelItems[i],{backdropColor:p}=o;if(!ae(p)){const g=$i(o.borderRadius),m=Mt(o.backdropPadding);n.fillStyle=p;const y=c-m.left,_=f-m.top,v=d-c+m.width,b=h-f+m.height;Object.values(g).some(w=>0!==w)?(n.beginPath(),ka(n,{x:y,y:_,w:v,h:b,radius:g}),n.fill()):n.fillRect(y,_,v,b)}Ui(n,t._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:u,textBaseline:"middle"})}}(this,s),i.display&&this.ticks.forEach((c,f)=>{if(0!==f){l=this.getDistanceFromCenterForValue(c.value);const d=this.getContext(f),h=i.setContext(d),p=o.setContext(d);!function R4(t,e,n,r,i){const o=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),aT(t,n,s,r),o.closePath(),o.stroke(),o.restore())}(this,h,l,s,p)}}),r.display){for(e.save(),a=s-1;a>=0;a--){const c=r.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:d}=c;!d||!f||(e.lineWidth=d,e.strokeStyle=f,e.setLineDash(c.borderDash),e.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=lt(u.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){e.font=c.string,s=e.measureText(a.label).width,e.fillStyle=u.backdropColor;const f=Mt(u.backdropPadding);e.fillRect(-s/2-f.left,-o-c.size/2-f.top,s+f.width,c.size+f.height)}Ui(e,a.label,0,-o,c,{color:u.color})}),e.restore()}drawTitle(){}}I(Ya,"id","radialLinear"),I(Ya,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:gc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),I(Ya,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),I(Ya,"descriptors",{angleLines:{_fallback:"grid"}});const $c={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},$t=Object.keys($c);function N4(t,e){return t-e}function lT(t,e){if(ae(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let s=e;return"function"==typeof r&&(s=r(s)),Be(s)||(s="string"==typeof r?n.parse(s,r):n.parse(s)),null===s?null:(i&&(s="week"!==i||!Zo(o)&&!0!==o?n.startOf(s,i):n.startOf(s,"isoWeek",o)),+s)}function uT(t,e,n,r){const i=$t.length;for(let o=$t.indexOf(t);o=e?n[r]:n[i]]=!0}}else t[e]=!0}function fT(t,e,n){const r=[],i={},o=e.length;let s,a;for(s=0;s=0&&(e[l].major=!0);return e}(t,r,i,n):r}class qa extends Qi{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new rP._date(e.adapters.date);i.init(n),Ea(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:lT(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!a&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!s||!a)&&(l(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&l(this.getMinMax(!1))),i=Be(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Be(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i="labels"===r.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function DW(t,e,n){let r=0,i=t.length;for(;rr&&t[i-1]>n;)i--;return r>0||i=$t.indexOf(n);o--){const s=$t[o];if($c[s].common&&t._adapter.diff(i,r,s)>=e-1)return s}return $t[n?$t.indexOf(n):0]}(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=r.major.enabled&&"year"!==this._unit?function L4(t){for(let e=$t.indexOf(t)+1,n=$t.length;e+e.value))}initOffsets(e=[]){let i,o,n=0,r=0;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),n=1===e.length?1-i:(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),r=1===e.length?o:(o-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=dt(n,0,s),r=dt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||uT(o.minUnit,n,r,this._getLabelCapacity(n)),a=K(i.ticks.stepSize,1),l="week"===s&&o.isoWeekday,u=Zo(l)||!0===l,c={};let d,h,f=n;if(u&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,u?"day":s),e.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=f,h=0;dg-m).map(g=>+g)}getLabelForValue(e){const r=this.options.time;return this._adapter.format(e,r.tooltipFormat?r.tooltipFormat:r.displayFormats.datetime)}format(e,n){return this._adapter.format(e,n||this.options.time.displayFormats[this._unit])}_tickFormatFunction(e,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Me(s,[e,n,r],this);const a=o.time.displayFormats,l=this._unit,u=this._majorUnit,f=u&&a[u],d=r[n];return this._adapter.format(e,i||(u&&f&&d&&d.major?f:l&&a[l]))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n0?a:1}getDataTimestamps(){let n,r,e=this._cache.data||[];if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Ar(t,"pos",e)),({pos:o,time:a}=t[r]),({pos:s,time:l}=t[i])):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Ar(t,"time",e)),({time:o,pos:a}=t[r]),({time:s,pos:l}=t[i]));const u=s-o;return u?a+(l-a)*(e-o)/u:a}I(qa,"id","time"),I(qa,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class py extends qa{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=zc(n,this.min),this._tableRange=zc(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let s,a,l,u,c;for(s=0,a=e.length;s=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s1?"s":"")+" required, but only "+e.length+" present")}function Wc(t){return(Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function V(t){R(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Wc(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var j4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function gy(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var Y4={date:gy({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:gy({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:gy({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Qa(t){return function(e,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=null!=n&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,l=null!=n&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[a]}return i[t.argumentCallback?t.argumentCallback(e):e]}}function Ka(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var u,s=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?lG(a,function(f){return f.test(s)}):aG(a,function(f){return f.test(s)});u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=e.slice(s.length);return{value:u,rest:c}}}function aG(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function lG(t,e){for(var n=0;n0?"in "+i:i+" ago":i},formatLong:Y4,formatRelative:function(e,n,r,i){return Q4[e]},localize:{ordinalNumber:function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Qa({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Qa({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Qa({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Qa({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Qa({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function uG(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ka({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ka({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ka({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ka({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ka({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Te(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Xa(t,e){R(2,arguments);var n=V(t).getTime(),r=Te(e);return new Date(n+r)}function hT(t,e){R(2,arguments);var n=Te(e);return Xa(t,-n)}function SG(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var pT=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},gT=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}};const my={p:gT,P:function(e,n){var s,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return pT(e,n);switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;default:s=n.dateTime({width:"full"})}return s.replace("{{date}}",pT(i,n)).replace("{{time}}",gT(o,n))}};function Gc(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var EG=["D","DD"],PG=["YY","YYYY"];function mT(t){return-1!==EG.indexOf(t)}function yT(t){return-1!==PG.indexOf(t)}function Yc(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function qc(t){return(qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function vT(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yy(t,e)}function yy(t,e){return(yy=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(t,e)}function _T(t){var e=function OG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Qc(t);if(e){var o=Qc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return TG(this,i)}}function TG(t,e){return!e||"object"!==qc(e)&&"function"!=typeof e?vy(t):e}function vy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qc(t){return(Qc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function _y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Xc(t);if(e){var o=Xc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HG(this,i)}}(n);function n(){var r;FG(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}function PT(t){return t%400==0||t%4==0&&t%100!=0}function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function QG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=nf(t);if(e){var o=nf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return JG(this,i)}}(n);function n(){var r;QG(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=ET(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(fe),IT={};function oi(){return IT}function Xi(t,e){var n,r,i,o,s,a,l,u;R(1,arguments);var c=oi(),f=Te(null!==(n=null!==(r=null!==(i=null!==(o=e?.weekStartsOn)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=V(t),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,h),p.setUTCHours(0,0,0,0);var g=Xi(p,e),m=new Date(0);m.setUTCFullYear(f,0,h),m.setUTCHours(0,0,0,0);var y=Xi(m,e);return c.getTime()>=g.getTime()?f+1:c.getTime()>=y.getTime()?f:f-1}function rf(t){return(rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function n6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=sf(t);if(e){var o=sf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return s6(this,i)}}(n);function n(){var r;n6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=Ey(i,a);if(s.isTwoDigitYear){var u=ET(s.year,l);return i.setUTCFullYear(u,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Xi(i,a)}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Xi(i,a)}}]),n}(fe);function rs(t){R(1,arguments);var e=1,n=V(t),r=n.getUTCDay(),i=(r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=lf(t);if(e){var o=lf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return h6(this,i)}}(n);function n(){var r;u6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=cf(t);if(e){var o=cf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return b6(this,i)}}(n);function n(){var r;m6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=df(t);if(e){var o=df(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return E6(this,i)}}(n);function n(){var r;C6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function hf(t){return(hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function O6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=pf(t);if(e){var o=pf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return k6(this,i)}}(n);function n(){var r;O6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function gf(t){return(gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function L6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=mf(t);if(e){var o=mf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return j6(this,i)}}(n);function n(){var r;L6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function yf(t){return(yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function z6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=vf(t);if(e){var o=vf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return q6(this,i)}}(n);function n(){var r;z6(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function X6(t,e){var n,r,i,o,s,a,l,u;R(1,arguments);var c=oi(),f=Te(null!==(n=null!==(r=null!==(i=null!==(o=e?.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),d=Ey(t,e),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var p=Xi(h,e);return p}var Z6=6048e5;function GT(t,e){R(1,arguments);var n=V(t),r=Xi(n,e).getTime()-X6(n,e).getTime();return Math.round(r/Z6)+1}function _f(t){return(_f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function eY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=bf(t);if(e){var o=bf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iY(this,i)}}(n);function n(){var r;eY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return Xi(function J6(t,e,n){R(2,arguments);var r=V(t),i=Te(e),o=GT(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(i,s,a),a)}}]),n}(fe);function QT(t){R(1,arguments);var e=V(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=rs(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=rs(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function aY(t){R(1,arguments);var e=QT(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=rs(n);return r}var lY=6048e5;function KT(t){R(1,arguments);var e=V(t),n=rs(e).getTime()-aY(e).getTime();return Math.round(n/lY)+1}function wf(t){return(wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function cY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Df(t);if(e){var o=Df(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pY(this,i)}}(n);function n(){var r;cY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return rs(function uY(t,e){R(2,arguments);var n=V(t),r=Te(e),i=KT(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(i,s))}}]),n}(fe);function Cf(t){return(Cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function yY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Mf(t);if(e){var o=Mf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wY(this,i)}}(n);function n(){var r;yY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=SY[l]:o>=1&&o<=CY[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function xf(t){return(xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function xY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Pf(t);if(e){var o=Pf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OY(this,i)}}(n);function n(){var r;xY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(fe);function Ky(t,e,n){var r,i,o,s,a,l,u,c;R(2,arguments);var f=oi(),d=Te(null!==(r=null!==(i=null!==(o=null!==(s=n?.weekStartsOn)&&void 0!==s?s:null==n||null===(a=n.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==i?i:null===(u=f.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=V(t),p=Te(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,_=(y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Of(t);if(e){var o=Of(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return LY(this,i)}}(n);function n(){var r;RY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Ky(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(fe);function If(t){return(If="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function HY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Af(t);if(e){var o=Af(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zY(this,i)}}(n);function n(){var r;HY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Ky(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(fe);function Rf(t){return(Rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function YY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=kf(t);if(e){var o=kf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return XY(this,i)}}(n);function n(){var r;YY(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Ky(i,s,a)).setUTCHours(0,0,0,0),i}}]),n}(fe);function Nf(t){return(Nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function tq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Ff(t);if(e){var o=Ff(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oq(this,i)}}(n);function n(){var r;tq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=function eq(t,e){R(2,arguments);var n=Te(e);n%7==0&&(n-=7);var r=1,i=V(t),o=i.getUTCDay(),l=((n%7+7)%7"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Vf(t);if(e){var o=Vf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return dq(this,i)}}(n);function n(){var r;lq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Hf(t);if(e){var o=Hf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _q(this,i)}}(n);function n(){var r;gq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Uf(t);if(e){var o=Uf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return xq(this,i)}}(n);function n(){var r;Dq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=zf(t);if(e){var o=zf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rq(this,i)}}(n);function n(){var r;Tq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:a||12!==s?s:0,0,0,0),i}}]),n}(fe);function Wf(t){return(Wf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Fq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Gf(t);if(e){var o=Gf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hq(this,i)}}(n);function n(){var r;Fq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(fe);function Yf(t){return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function $q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _O(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=qf(t);if(e){var o=qf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yq(this,i)}}(n);function n(){var r;$q(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:s,0,0,0),i}}]),n}(fe);function Qf(t){return(Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function Kq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Kf(t);if(e){var o=Kf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return e9(this,i)}}(n);function n(){var r;Kq(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){return i.setUTCHours(s<=24?s%24:s,0,0,0),i}}]),n}(fe);function Xf(t){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function r9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Zf(t);if(e){var o=Zf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return a9(this,i)}}(n);function n(){var r;r9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(fe);function Jf(t){return(Jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function c9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ed(t);if(e){var o=ed(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return p9(this,i)}}(n);function n(){var r;c9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(fe);function td(t){return(td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function y9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EO(t,e){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=nd(t);if(e){var o=nd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return w9(this,i)}}(n);function n(){var r;y9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=id(t);if(e){var o=id(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return P9(this,i)}}(n);function n(){var r;S9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=sd(t);if(e){var o=sd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return N9(this,i)}}(n);function n(){var r;I9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ld(t);if(e){var o=ld(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return U9(this,i)}}(n);function n(){var r;V9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=cd(t);if(e){var o=cd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Q9(this,i)}}(n);function n(){var r;W9(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function J9(t,e){if(t){if("string"==typeof t)return VO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VO(t,e)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&null!=n.return&&n.return()}finally{if(s)throw a}}}}function VO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],dd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(dd.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=dd.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function h7(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}function p7(t,e){if(null===e)return new Date(NaN);var n=t.match(u7);if(!n)return new Date(NaN);var r=!!n[4],i=Za(n[1]),o=Za(n[2])-1,s=Za(n[3]),a=Za(n[4]),l=Za(n[5])-1;if(r)return function w7(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,a,l)?function y7(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var o=7*(e-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(e,a,l):new Date(NaN);var u=new Date(0);return function _7(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(v7[e]||(BO(t)?29:28))}(e,o,s)&&function b7(t,e){return e>=1&&e<=(BO(t)?366:365)}(e,i)?(u.setUTCFullYear(e,o,Math.max(i,s)),u):new Date(NaN)}function Za(t){return t?parseInt(t):1}function g7(t){var e=t.match(c7);if(!e)return NaN;var n=Rv(e[1]),r=Rv(e[2]),i=Rv(e[3]);return function D7(t,e,n){return 24===t?0===e&&0===n:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i)?n*Jc+r*Zc+1e3*i:NaN}function Rv(t){return t&&parseFloat(t.replace(",","."))||0}function m7(t){if("Z"===t)return 0;var e=t.match(f7);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function C7(t,e){return e>=0&&e<=59}(0,i)?n*(r*Jc+i*Zc):NaN}var v7=[31,null,31,30,31,30,31,31,30,31,30,31];function BO(t){return t%400==0||t%4==0&&t%100!=0}function hd(t){return(hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function S7(t){return R(1,arguments),t instanceof Date||"object"===hd(t)&&"[object Date]"===Object.prototype.toString.call(t)}function HO(t){if(R(1,arguments),!S7(t)&&"number"!=typeof t)return!1;var e=V(t);return!isNaN(Number(e))}function me(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return me("yy"===n?i%100:i,n.length)},si_M=function(e,n){var r=e.getUTCMonth();return"M"===n?String(r+1):me(r+1,2)},si_d=function(e,n){return me(e.getUTCDate(),n.length)},si_h=function(e,n){return me(e.getUTCHours()%12||12,n.length)},si_H=function(e,n){return me(e.getUTCHours(),n.length)},si_m=function(e,n){return me(e.getUTCMinutes(),n.length)},si_s=function(e,n){return me(e.getUTCSeconds(),n.length)},si_S=function(e,n){var r=n.length,i=e.getUTCMilliseconds();return me(Math.floor(i*Math.pow(10,r-3)),n.length)};function jO(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=e||"";return n+String(i)+s+me(o,2)}function UO(t,e){return t%60==0?(t>0?"-":"+")+me(Math.abs(t)/60,2):Zi(t,e)}function Zi(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+me(Math.floor(i/60),2)+n+me(i%60,2)}const T7={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if("yo"===n){var i=e.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}return si_y(e,n)},Y:function(e,n,r,i){var o=Ey(e,i),s=o>0?o:1-o;return"YY"===n?me(s%100,2):"Yo"===n?r.ordinalNumber(s,{unit:"year"}):me(s,n.length)},R:function(e,n){return me(QT(e),n.length)},u:function(e,n){return me(e.getUTCFullYear(),n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return me(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return me(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return si_M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return me(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=GT(e,i);return"wo"===n?r.ordinalNumber(o,{unit:"week"}):me(o,n.length)},I:function(e,n,r){var i=KT(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):me(i,n.length)},d:function(e,n,r){return"do"===n?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):si_d(e,n)},D:function(e,n,r){var i=function x7(t){R(1,arguments);var e=V(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((n-r)/864e5)+1}(e);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):me(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return me(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return me(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=0===i?7:i;switch(n){case"i":return String(o);case"ii":return me(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var o,i=e.getUTCHours();switch(o=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var o,i=e.getUTCHours();switch(o=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if("ho"===n){var i=e.getUTCHours()%12;return 0===i&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return si_h(e,n)},H:function(e,n,r){return"Ho"===n?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):si_H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return"Ko"===n?r.ordinalNumber(i,{unit:"hour"}):me(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===n?r.ordinalNumber(i,{unit:"hour"}):me(i,n.length)},m:function(e,n,r){return"mo"===n?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):si_m(e,n)},s:function(e,n,r){return"so"===n?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):si_s(e,n)},S:function(e,n){return si_S(e,n)},X:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(n){case"X":return UO(s);case"XXXX":case"XX":return Zi(s);default:return Zi(s,":")}},x:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"x":return UO(s);case"xxxx":case"xx":return Zi(s);default:return Zi(s,":")}},O:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+jO(s,":");default:return"GMT"+Zi(s,":")}},z:function(e,n,r,i){var s=(i._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+jO(s,":");default:return"GMT"+Zi(s,":")}},t:function(e,n,r,i){return me(Math.floor((i._originalDate||e).getTime()/1e3),n.length)},T:function(e,n,r,i){return me((i._originalDate||e).getTime(),n.length)}};var O7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A7=/^'([^]*?)'?$/,R7=/''/g,k7=/[a-zA-Z]/;function F7(t){var e=t.match(A7);return e?e[1].replace(R7,"'"):t}function $O(t,e){R(2,arguments);var n=V(t),r=Te(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function kv(t,e){R(2,arguments);var n=V(t),r=Te(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function pd(t,e){return R(2,arguments),V(t).getTime()-V(e).getTime()}var zO={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Ja(t){return t?zO[t]:zO.trunc}function Nv(t){R(1,arguments);var e=V(t);return e.setHours(0,0,0,0),e}function K7(t,e){R(2,arguments);var n=Nv(t),r=Nv(e),i=n.getTime()-Gc(n),o=r.getTime()-Gc(r);return Math.round((i-o)/864e5)}function WO(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function GO(t,e){R(2,arguments);var n=V(t),r=V(e),i=WO(n,r),o=Math.abs(K7(n,r));n.setDate(n.getDate()-i*o);var s=Number(WO(n,r)===-i),a=i*(o-s);return 0===a?0:a}function Z7(t,e){R(2,arguments);var n=V(t),r=V(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function el(t,e){R(2,arguments);var n=V(t),r=V(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function YO(t){R(1,arguments);var e=V(t);return e.setHours(23,59,59,999),e}function qO(t){R(1,arguments);var e=V(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function J7(t){R(1,arguments);var e=V(t);return YO(e).getTime()===qO(e).getTime()}function QO(t,e){R(2,arguments);var s,n=V(t),r=V(e),i=el(n,r),o=Math.abs(Z7(n,r));if(o<1)s=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=el(n,r)===-i;J7(V(t))&&1===o&&1===el(t,r)&&(a=!1),s=i*(o-Number(a))}return 0===s?0:s}function tQ(t,e){R(2,arguments);var n=V(t),r=V(e);return n.getFullYear()-r.getFullYear()}function KO(t,e){var n,r,i,o,s,a,l,u;R(1,arguments);var c=oi(),f=Te(null!==(n=null!==(r=null!==(i=null!==(o=e?.weekStartsOn)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=V(t),h=d.getDay(),p=(h"u")return null;const n=typeof t;return"number"===n||t instanceof Date?t=V(t):"string"===n&&(t="string"==typeof e?function s7(t,e,n,r){var i,o,s,a,l,u,c,f,d,h,p,g,m,y,_,v,b,w;R(3,arguments);var D=String(t),M=String(e),x=oi(),O=null!==(i=null!==(o=r?.locale)&&void 0!==o?o:x.locale)&&void 0!==i?i:dT;if(!O.match)throw new RangeError("locale must contain match property");var F=Te(null!==(s=null!==(a=null!==(l=null!==(u=r?.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(c=r.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:x.firstWeekContainsDate)&&void 0!==a?a:null===(d=x.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=Te(null!==(p=null!==(g=null!==(m=null!==(y=r?.weekStartsOn)&&void 0!==y?y:null==r||null===(_=r.locale)||void 0===_||null===(v=_.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:x.weekStartsOn)&&void 0!==g?g:null===(b=x.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===M)return""===D?V(n):new Date(NaN);var ye,ee={firstWeekContainsDate:F,weekStartsOn:U,locale:O},be=[new RG],Qe=M.match(t7).map(function(ht){var xe=ht[0];return xe in my?(0,my[xe])(ht,O.formatLong):ht}).join("").match(e7),H=[],X=LO(Qe);try{var sn=function(){var xe=ye.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&yT(xe)&&Yc(xe,M,t),(null==r||!r.useAdditionalDayOfYearTokens)&&mT(xe)&&Yc(xe,M,t);var _n=xe[0],xd=Z9[_n];if(xd){var iA=xd.incompatibleTokens;if(Array.isArray(iA)){var oA=H.find(function(sA){return iA.includes(sA.token)||sA.token===_n});if(oA)throw new RangeError("The format string mustn't contain `".concat(oA.fullToken,"` and `").concat(xe,"` at the same time"))}else if("*"===xd.incompatibleTokens&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(xe,"` and any other token at the same time"));H.push({token:_n,fullToken:xe});var r_=xd.run(D,xe,O.match,ee);if(!r_)return{v:new Date(NaN)};be.push(r_.setter),D=r_.rest}else{if(_n.match(o7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_n+"`");if("''"===xe?xe="'":"'"===_n&&(xe=a7(xe)),0!==D.indexOf(xe))return{v:new Date(NaN)};D=D.slice(xe.length)}};for(X.s();!(ye=X.n()).done;){var ut=sn();if("object"===fd(ut))return ut.v}}catch(ht){X.e(ht)}finally{X.f()}if(D.length>0&&i7.test(D))return new Date(NaN);var ci=be.map(function(ht){return ht.priority}).sort(function(ht,xe){return xe-ht}).filter(function(ht,xe,_n){return _n.indexOf(ht)===xe}).map(function(ht){return be.filter(function(xe){return xe.priority===ht}).sort(function(xe,_n){return _n.subPriority-xe.subPriority})}).map(function(ht){return ht[0]}),fi=V(n);if(isNaN(fi.getTime()))return new Date(NaN);var hi,vn=hT(fi,Gc(fi)),di={},or=LO(ci);try{for(or.s();!(hi=or.n()).done;){var pi=hi.value;if(!pi.validate(vn,ee))return new Date(NaN);var Md=pi.set(vn,di,ee);Array.isArray(Md)?(vn=Md[0],SG(di,Md[1])):vn=Md}}catch(ht){or.e(ht)}finally{or.f()}return vn}(t,e,new Date,this.options):function l7(t,e){var n;R(1,arguments);var r=Te(null!==(n=e?.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,i=d7(t);if(i.date){var s=h7(i.date,r);o=p7(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var u,a=o.getTime(),l=0;if(i.time&&(l=g7(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var c=new Date(a+l),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return u=m7(i.timezone),isNaN(u)?new Date(NaN):new Date(a+l+u)}(t,this.options)),HO(t)?t.getTime():null},format:function(t,e){return function N7(t,e,n){var r,i,o,s,a,l,u,c,f,d,h,p,g,m,y,_,v,b;R(2,arguments);var w=String(e),D=oi(),M=null!==(r=null!==(i=n?.locale)&&void 0!==i?i:D.locale)&&void 0!==r?r:dT,x=Te(null!==(o=null!==(s=null!==(a=null!==(l=n?.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:D.firstWeekContainsDate)&&void 0!==s?s:null===(f=D.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==o?o:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=Te(null!==(h=null!==(p=null!==(g=null!==(m=n?.weekStartsOn)&&void 0!==m?m:null==n||null===(y=n.locale)||void 0===y||null===(_=y.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==g?g:D.weekStartsOn)&&void 0!==p?p:null===(v=D.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var F=V(t);if(!HO(F))throw new RangeError("Invalid time value");var U=Gc(F),ee=hT(F,U),be={firstWeekContainsDate:x,weekStartsOn:O,locale:M,_originalDate:F};return w.match(I7).map(function(H){var X=H[0];return"p"===X||"P"===X?(0,my[X])(H,M.formatLong):H}).join("").match(O7).map(function(H){if("''"===H)return"'";var X=H[0];if("'"===X)return F7(H);var ye=T7[X];if(ye)return!(null!=n&&n.useAdditionalWeekYearTokens)&&yT(H)&&Yc(H,e,String(t)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&mT(H)&&Yc(H,e,String(t)),ye(ee,H,M.localize,be);if(X.match(k7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+X+"`");return H}).join("")}(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return Xa(t,e);case"second":return function L7(t,e){R(2,arguments);var n=Te(e);return Xa(t,1e3*n)}(t,e);case"minute":return function B7(t,e){R(2,arguments);var n=Te(e);return Xa(t,6e4*n)}(t,e);case"hour":return function j7(t,e){R(2,arguments);var n=Te(e);return Xa(t,36e5*n)}(t,e);case"day":return $O(t,e);case"week":return function U7(t,e){R(2,arguments);var n=Te(e);return $O(t,7*n)}(t,e);case"month":return kv(t,e);case"quarter":return function $7(t,e){R(2,arguments);var n=Te(e);return kv(t,3*n)}(t,e);case"year":return function z7(t,e){R(2,arguments);var n=Te(e);return kv(t,12*n)}(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return pd(t,e);case"second":return function G7(t,e,n){R(2,arguments);var r=pd(t,e)/1e3;return Ja(n?.roundingMethod)(r)}(t,e);case"minute":return function Y7(t,e,n){R(2,arguments);var r=pd(t,e)/Zc;return Ja(n?.roundingMethod)(r)}(t,e);case"hour":return function q7(t,e,n){R(2,arguments);var r=pd(t,e)/Jc;return Ja(n?.roundingMethod)(r)}(t,e);case"day":return GO(t,e);case"week":return function X7(t,e,n){R(2,arguments);var r=GO(t,e)/7;return Ja(n?.roundingMethod)(r)}(t,e);case"month":return QO(t,e);case"quarter":return function eQ(t,e,n){R(2,arguments);var r=QO(t,e)/3;return Ja(n?.roundingMethod)(r)}(t,e);case"year":return function nQ(t,e){R(2,arguments);var n=V(t),r=V(e),i=el(n,r),o=Math.abs(tQ(n,r));n.setFullYear(1584),r.setFullYear(1584);var s=el(n,r)===-i,a=i*(o-Number(s));return 0===a?0:a}(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return function rQ(t){R(1,arguments);var e=V(t);return e.setMilliseconds(0),e}(t);case"minute":return function iQ(t){R(1,arguments);var e=V(t);return e.setSeconds(0,0),e}(t);case"hour":return function oQ(t){R(1,arguments);var e=V(t);return e.setMinutes(0,0,0),e}(t);case"day":return Nv(t);case"week":return KO(t);case"isoWeek":return KO(t,{weekStartsOn:+n});case"month":return function sQ(t){R(1,arguments);var e=V(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function aQ(t){R(1,arguments);var e=V(t),n=e.getMonth();return e.setMonth(n-n%3,1),e.setHours(0,0,0,0),e}(t);case"year":return function lQ(t){R(1,arguments);var e=V(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function uQ(t){R(1,arguments);var e=V(t);return e.setMilliseconds(999),e}(t);case"minute":return function cQ(t){R(1,arguments);var e=V(t);return e.setSeconds(59,999),e}(t);case"hour":return function fQ(t){R(1,arguments);var e=V(t);return e.setMinutes(59,59,999),e}(t);case"day":return YO(t);case"week":return function dQ(t,e){var n,r,i,o,s,a,l,u;R(1,arguments);var c=oi(),f=Te(null!==(n=null!==(r=null!==(i=null!==(o=e?.weekStartsOn)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=V(t),h=d.getDay(),p=6+(h{class t{constructor(n){this.paxService=n,this.dataPoints=[],this.errorMessage="",this.lastPoll=new Date,this.visibleInterval=24}hasError(){return""!=this.errorMessage}ngOnInit(){}ngAfterViewInit(){this.loadData()}showInterval(n){this.visibleInterval=n,this.loadData()}loadData(){let n=""+((new Date).getTime()-3600*this.visibleInterval*1e3),r=""+(new Date).getTime();this.paxService.paxServiceListData(n,r,19e6).subscribe({next:i=>{i.data&&(this.dataPoints=i.data)},error:i=>{this.errorMessage=i.message},complete:()=>{this.lastPoll=new Date,this.createChart()}})}createChart(){let n=this.dataPoints.map(i=>({label:(i.deviceId||"")+" (BLE)",data:i.samples?.map(o=>({x:new Date(parseInt(o.timestamp)),y:o.bluetoothCount}))})),r=this.dataPoints.map(i=>({label:(i.deviceId||"")+" (WiFi)",data:i.samples?.map(o=>({x:new Date(parseInt(o.timestamp)),y:o.wifiCount}))}));this.chart||(this.chart=new kr(this.chartRef.nativeElement,{type:"line",data:{datasets:[]},options:{scales:{x:{type:"time",time:{displayFormats:{minute:"HH:mm"},tooltipFormat:"HH:mm"}}},elements:{point:{pointStyle:!1}}}})),this.chart.config.data.datasets=n.concat(r),this.chart.update()}}return t.\u0275fac=function(n){return new(n||t)(S(xm))},t.\u0275cmp=cs({type:t,selectors:[["app-main-chart"]],viewQuery:function(n,r){if(1&n&&CC(mQ,5),2&n){let i;lu(i=function uu(){return function f2(t,e){return t[19].queries[e].queryList}(C(),K_())}())&&(r.chartRef=i.first)}},decls:18,vars:17,consts:[["class","error",4,"ngIf"],[1,"chart-container"],[1,"chart"],["chart",""],[1,"stats"],[3,"ngClass","click"],[1,"error"]],template:function(n,r){1&n&&(En(0,"h1"),Wr(1,"PAX Counters"),Pn(),function I0(t,e,n,r,i,o,s,a){const l=C(),u=se(),c=t+22,f=u.firstCreatePass?function NF(t,e,n,r,i,o,s,a,l){const u=e.consts,c=xo(e,t,4,s||null,Lr(u,a));bp(e,n,c,Lr(u,l)),bl(e,c);const f=c.tViews=_p(2,c,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),f.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,n,r,i,o,s):u.data[c];Un(f,!1);const d=l[Z].createComment("");Nl(u,l,d,f),wt(d,l),ql(l,l[c]=g0(d,l,d,f)),yl(f)&&yp(u,l,f),null!=s&&vp(l,f,a)}(2,yQ,2,1,"div",0),En(3,"div",1),$s(4,"canvas",2,3),Pn(),En(6,"div",4),Wr(7),function mC(t,e){const n=se();let r;const i=t+22;n.firstCreatePass?(r=function YV(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Ci(r.type)),s=ln(S);try{const a=Ml(!1),l=o();return Ml(a),function FF(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,C(),i,l),l}finally{ln(s)}}(8,"date"),Pn(),En(9,"div")(10,"button",5),gt("click",function(){return r.showInterval(168)}),Wr(11,"1w"),Pn(),En(12,"button",5),gt("click",function(){return r.showInterval(24)}),Wr(13,"1d"),Pn(),En(14,"button",5),gt("click",function(){return r.showInterval(12)}),Wr(15,"12h"),Pn(),En(16,"button",5),gt("click",function(){return r.showInterval(1)}),Wr(17,"Last hour"),Pn()()),2&n&&(Ur(2),Ti("ngIf",r.hasError()),Ur(5),Gs(" Last update ",function yC(t,e,n,r){const i=t+22,o=C(),s=function ao(t,e){return t[e]}(o,i);return function ea(t,e){return t[1].data[e].pure}(o,i)?dC(o,Ot(),e,s.transform,n,r,s):s.transform(n,r)}(8,6,r.lastPoll,"yyyy-MM-dd HH:mm"),"\n"),Ur(3),Ti("ngClass",Zs(9,gd,168==r.visibleInterval)),Ur(2),Ti("ngClass",Zs(11,gd,24==r.visibleInterval)),Ur(2),Ti("ngClass",Zs(13,gd,12==r.visibleInterval)),Ur(2),Ti("ngClass",Zs(15,gd,1==r.visibleInterval)))},dependencies:[FS,HS,$S],styles:["h1[_ngcontent-%COMP%]{font-size:24px;text-align:center}.error[_ngcontent-%COMP%]{border:solid 1px darkred;background:pink;color:maroon;border-radius:.5em;padding:1em;font-weight:400}.chart-container[_ngcontent-%COMP%]{padding:1em;display:grid;justify-items:center}.chart[_ngcontent-%COMP%]{margin:1em;width:100%;border-radius:.25em;border:solid 1px darkgray}.stats[_ngcontent-%COMP%]{font-size:10pt;font-weight:100;text-align:right;padding:1em}.button[_ngcontent-%COMP%]{height:2em;width:8em;margin:.25em;font-size:14pt;border:solid 1px blue;border-radius:.25em}"]}),t})(),_Q=(()=>{class t{constructor(n){this.paxService=n,this.title="PAX",this.paxService.configuration.basePath="https://pax.lab5e.com"}}return t.\u0275fac=function(n){return new(n||t)(S(xm))},t.\u0275cmp=cs({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&$s(0,"app-main-chart")},dependencies:[vQ]}),t})(),HI=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({}),t})();const Kv=new k("NgModelWithFormControlWarning");let rA=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({imports:[HI]}),t})(),_K=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({imports:[rA]}),t})(),bK=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:Kv,useValue:n.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t}),t.\u0275inj=Lt({imports:[rA]}),t})(),DK=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Yt({type:t,bootstrap:[_Q]}),t.\u0275inj=Lt({imports:[Lj,Sz,_K,bK,Lz]}),t})();(function Z2(){cS=!1})(),Fj().bootstrapModule(DK).catch(t=>console.error(t))}},le=>{le(le.s=575)}]); \ No newline at end of file diff --git a/frontend/dist/frontend/polyfills.1a4a779d95e3f377.js b/frontend/dist/frontend/polyfills.1a4a779d95e3f377.js new file mode 100644 index 0000000..bf8065e --- /dev/null +++ b/frontend/dist/frontend/polyfills.1a4a779d95e3f377.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[429],{435:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),p,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(p){X=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const p=Z(X[0],x,_);p&&j.push(p)}else{const p=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=de(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],Q=p[A(y)]=p[y],oe=p[A(d)]=p[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=p[A(_.prepend)]=p[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function pe(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";pe(e,n,i,"Timeout"),pe(e,n,i,"Interval"),pe(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function mt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=435)}]); \ No newline at end of file diff --git a/frontend/dist/frontend/runtime.aaedba49815d2ab0.js b/frontend/dist/frontend/runtime.aaedba49815d2ab0.js new file mode 100644 index 0000000..1b1ea9c --- /dev/null +++ b/frontend/dist/frontend/runtime.aaedba49815d2ab0.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,_={},d={};function n(e){var a=d[e];if(void 0!==a)return a.exports;var r=d[e]={exports:{}};return _[e](r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,u,t)=>{if(!r){var c=1/0;for(f=0;f=t)&&Object.keys(n.O).every(i=>n.O[i](r[l]))?r.splice(l--,1):(s=!1,t0&&e[f-1][2]>t;f--)e[f]=e[f-1];e[f]=[r,u,t]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=u=>0===e[u];var a=(u,t)=>{var l,o,[f,c,s]=t,v=0;if(f.some(h=>0!==e[h])){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(s)var b=s(n)}for(u&&u(t);vPAX Counters
- + + - -