diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt deleted file mode 100644 index 16dbacd..0000000 --- a/docs/3rdpartylicenses.txt +++ /dev/null @@ -1,597 +0,0 @@ - --------------------------------------------------------------------------------- -Package: @angular/animations -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/cdk -License: "MIT" - -The MIT License - -Copyright (c) 2024 Google LLC. - -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. - --------------------------------------------------------------------------------- -Package: @angular/platform-browser -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: ngx-image-cropper -License: "MIT" - -MIT License - -Copyright (c) 2019 Martijn Willekens - -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. - --------------------------------------------------------------------------------- -Package: @angular/core -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: rxjs -License: "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. - - --------------------------------------------------------------------------------- -Package: tslib -License: "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. --------------------------------------------------------------------------------- -Package: @angular/common -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/router -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/forms -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: engine.io-parser -License: "MIT" - -(The MIT License) - -Copyright (c) 2016 Guillermo Rauch (@rauchg) - -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. --------------------------------------------------------------------------------- -Package: @socket.io/component-emitter -License: "MIT" - -(The MIT License) - -Copyright (c) 2014 Component 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. - --------------------------------------------------------------------------------- -Package: engine.io-client -License: "MIT" - -(The MIT License) - -Copyright (c) 2014-2015 Automattic - -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. - --------------------------------------------------------------------------------- -Package: socket.io-client -License: "MIT" - -The MIT License (MIT) - -Copyright (c) 2014 Guillermo Rauch - - -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. --------------------------------------------------------------------------------- -Package: socket.io-parser -License: "MIT" - -(The MIT License) - -Copyright (c) 2014 Guillermo Rauch - -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. - --------------------------------------------------------------------------------- -Package: wacom -License: "MIT" - - --------------------------------------------------------------------------------- -Package: zone.js -License: "MIT" - -The MIT License - -Copyright (c) 2010-2024 Google LLC. https://angular.io/license - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - --------------------------------------------------------------------------------- diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 98e0d72..0000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -articleapp.webart.work \ No newline at end of file diff --git a/docs/assets/default.png b/docs/assets/default.png deleted file mode 100644 index f738295..0000000 Binary files a/docs/assets/default.png and /dev/null differ diff --git a/docs/assets/favicon.ico b/docs/assets/favicon.ico deleted file mode 100644 index 47bb5e2..0000000 Binary files a/docs/assets/favicon.ico and /dev/null differ diff --git a/docs/assets/logo.png b/docs/assets/logo.png deleted file mode 100644 index f738295..0000000 Binary files a/docs/assets/logo.png and /dev/null differ diff --git a/docs/chunk-3BVBZK3A.js b/docs/chunk-3BVBZK3A.js deleted file mode 100644 index 541680e..0000000 --- a/docs/chunk-3BVBZK3A.js +++ /dev/null @@ -1 +0,0 @@ -import{Aa as d,Ga as u,Ja as l,Ka as m,La as p,Oa as f,j as n,m as i,va as c}from"./chunk-4ZWMSXGZ.js";var P=(()=>{let t=class t extends l{constructor(e,s,r,a,g){super({name:"user"},e,s,r,a),this._router=g,this.roles=d.roles||["admin"],this.mode="",this.users=[],this.user=localStorage.getItem("waw_user")?JSON.parse(localStorage.getItem("waw_user")):this.new(),this._changingPassword=!1,this.store=s,this.http=e,this.alert=r,this.core=a,this.http.header("token")&&(this.fetch({},{name:"me"}).subscribe(this.setUser.bind(this)),this.load()),this.store.get("mode",h=>{h&&this.setMode(h)})}load(){this.get().subscribe(e=>this.users.push(...e))}setMode(e=""){e?(this.store.set("mode",e),document.body.parentNode.classList.add(e)):(this.store.remove("mode"),document.body.parentNode.classList.remove("dark")),this.mode=e}setUser(e){this.user=e,localStorage.setItem("waw_user",JSON.stringify(e)),this.core.complete("us.user")}role(e){return!!(this.user?.is||{})[e]}updateMe(){this.setUser(this.user),this.update(this.user)}updateMeAfterWhile(){this.setUser(this.user),this.updateAfterWhile(this.user)}changePassword(e,s){this._changingPassword||(this._changingPassword=!0,this.http.post("/api/user/changePassword",{newPass:s,oldPass:e},r=>{this._changingPassword=!1,r?this.alert.info({text:"Successfully changed password"}):this.alert.error({text:"Incorrect current password"})}))}logout(){this.user=this.new(),localStorage.removeItem("waw_user"),this._router.navigateByUrl("/sign"),this.http.remove("token"),setTimeout(()=>{location.reload()},100)}updateAdmin(e){this.update(e,{name:"admin"})}deleteAdmin(e){this.delete(e,{name:"admin"})}};t.\u0275fac=function(s){return new(s||t)(i(p),i(m),i(f),i(u),i(c))},t.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{P as a}; diff --git a/docs/chunk-4BTECIWA.js b/docs/chunk-4BTECIWA.js deleted file mode 100644 index 3c91721..0000000 --- a/docs/chunk-4BTECIWA.js +++ /dev/null @@ -1 +0,0 @@ -import{i as x}from"./chunk-4MVVYH4U.js";import{A as c,E as b,Ga as m,Ja as C,K as j,Ka as g,La as I,Oa as f,Sa as _,Za as w,ab as S,j as d,k as u,m as l,n as h,o as v,za as y}from"./chunk-4ZWMSXGZ.js";var T=(()=>{let e=class e extends C{constructor(o,t,s,a){super({name:"article"},o,t,s,a),this.articles=[],this.get().subscribe(n=>this.articles.push(...n)),a.on("article_create").subscribe(n=>{this.articles.push(n)}),a.on("article_delete").subscribe(n=>{this.articles.splice(this.articles.findIndex(r=>r._id===n._id),1)})}};e.\u0275fac=function(t){return new(t||e)(l(I),l(g),l(f),l(m))},e.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var F=(()=>{let e=class e{get rows(){return this._sa.articles}constructor(o,t,s,a,n){this._translate=o,this._alert=t,this._sa=s,this._form=a,this._core=n,this.columns=["name","description"],this.form=this._form.getForm("articles",{formId:"articles",title:"Articles",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill articles title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill articles description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,p)=>{this._sa.create(r),p()}})},update:r=>{this._form.modal(this.form,[],r).then(p=>{this._core.copy(p,r),this._sa.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this cservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("articles","url",r)}}]}}};e.\u0275fac=function(t){return new(t||e)(c(_),c(f),c(T),c(S),c(m))},e.\u0275cmp=h({type:e,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Articles",3,"columns","config","rows"]],template:function(t,s){t&1&&j(0,"wtable",0),t&2&&b("columns",s.columns)("config",s.config)("rows",s.rows)},dependencies:[w]});let i=e;return i})();var D=[{path:"",component:F}],z=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=u({imports:[y.forChild(D),x]});let i=e;return i})();export{z as ArticlesModule}; diff --git a/docs/chunk-4MVVYH4U.js b/docs/chunk-4MVVYH4U.js deleted file mode 100644 index 3e32b17..0000000 --- a/docs/chunk-4MVVYH4U.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$a as nt,A as w,C as _,D as Ae,E as p,Ea as pe,F as ae,G as ee,Ga as Je,H as Ne,I as c,J as l,K as v,L as ue,La as et,M as _e,N as x,O as h,P as g,Pa as tt,Q as Ye,Qa as it,R as we,Ra as me,S as Ie,T as O,U as b,Ua as K,V as y,Va as Z,W as $e,Wa as V,X as T,Xa as xe,Y as q,Z as se,a as U,ab as I,b as Le,ca as Xe,cb as ot,d as oe,db as rt,e as ce,f as Oe,fa as P,fb as at,g as Be,ga as qe,gb as st,h as De,ha as Ge,hb as be,j as re,ja as k,k as z,ka as G,la as N,m as fe,ma as Ce,n as C,na as F,o as E,p as He,q as m,r as d,s as je,sa as Ke,t as Y,ta as Ze,u as Ue,x as le,y as We,z as u}from"./chunk-4ZWMSXGZ.js";var Ft=["wrapper"],Qt=["sourceImage"];function Lt(r,o){if(r&1){let e=x();c(0,"img",5,1),h("load",function(){m(e);let t=g();return d(t.imageLoadedInView())})("mousedown",function(t){m(e);let n=g();return d(n.startMove(t,n.moveTypes.Drag))})("touchstart",function(t){m(e);let n=g();return d(n.startMove(t,n.moveTypes.Drag))})("error",function(t){m(e);let n=g();return d(n.loadImageError(t))}),l()}if(r&2){let e=g();ae("visibility",e.imageVisible?"visible":"hidden")("transform",e.safeTransformStyle),ee("ngx-ic-draggable",!e.disabled&&e.allowMoveImage),p("src",e.safeImgDataUrl,le),Ae("alt",e.imageAltText)}}function Bt(r,o){if(r&1){let e=x();ue(0),c(1,"span",9),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"topleft"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"topleft"))}),v(2,"span",10),l(),c(3,"span",11),v(4,"span",10),l(),c(5,"span",12),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"topright"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"topright"))}),v(6,"span",10),l(),c(7,"span",13),v(8,"span",10),l(),c(9,"span",14),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottomright"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottomright"))}),v(10,"span",10),l(),c(11,"span",15),v(12,"span",10),l(),c(13,"span",16),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottomleft"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottomleft"))}),v(14,"span",10),l(),c(15,"span",17),v(16,"span",10),l(),c(17,"span",18),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"top"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"top"))}),l(),c(18,"span",19),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"right"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"right"))}),l(),c(19,"span",20),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottom"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"bottom"))}),l(),c(20,"span",21),h("mousedown",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"left"))})("touchstart",function(t){m(e);let n=g(2);return d(n.startMove(t,n.moveTypes.Resize,"left"))}),l(),_e()}}function Dt(r,o){if(r&1){let e=x();c(0,"div",6),h("keydown",function(t){m(e);let n=g();return d(n.keyboardAccess(t))}),c(1,"div",7),h("mousedown",function(t){m(e);let n=g();return d(n.startMove(t,n.moveTypes.Move))})("touchstart",function(t){m(e);let n=g();return d(n.startMove(t,n.moveTypes.Move))}),l(),_(2,Bt,21,0,"ng-container",8),l()}if(r&2){let e=g();ae("top",e.cropper.y1,"px")("left",e.cropper.x1,"px")("width",e.cropper.x2-e.cropper.x1,"px")("height",e.cropper.y2-e.cropper.y1,"px")("margin-left",e.alignImage==="center"?e.marginLeft:null)("visibility",e.imageVisible?"visible":"hidden"),ee("ngx-ic-round",e.roundCropper),Ae("aria-label",e.cropperFrameAriaLabel),u(2),p("ngIf",!e.hideResizeSquares)}}var Se=class{constructor(){this.format="png",this.output="blob",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(o){Object.keys(o).filter(e=>e in this).forEach(e=>this[e]=o[e]),this.validateOptions()}setOptionsFromChanges(o){Object.keys(o).filter(e=>e in this).forEach(e=>this[e]=o[e].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}},L=function(r){return r.Drag="drag",r.Move="move",r.Resize="resize",r.Pinch="pinch",r}(L||{});function Ht(r){switch(r){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}function jt(r){switch(r){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}function Ut(r,o){switch(r){case"ArrowUp":return{clientX:0,clientY:o*-1};case"ArrowRight":return{clientX:o,clientY:0};case"ArrowDown":return{clientX:0,clientY:o};case"ArrowLeft":default:return{clientX:o*-1,clientY:0}}}function Wt(r,o,e){let i=r.width,t=r.height;o=Math.round(o),e=Math.round(e);let n=i/o,a=t/e,s=Math.ceil(n/2),f=Math.ceil(a/2),A=r.getContext("2d");if(A){let M=A.getImageData(0,0,i,t),R=A.createImageData(o,e),H=M.data,J=R.data;for(let $=0;$=1)continue;Q=2*ie*ie*ie-3*ie*ie+1;let ne=4*(ge+he*i);Ve+=Q*H[ne+3],ke+=Q,H[ne+3]<255&&(Q=Q*H[ne+3]/250),Te+=Q*H[ne],ze+=Q*H[ne+1],Ee+=Q*H[ne+2],de+=Q}}J[W]=Te/de,J[W+1]=ze/de,J[W+2]=Ee/de,J[W+3]=Ve/ke}r.width=o,r.height=e,A.putImageData(R,0,0)}}function ct(r,o){return r/100*o}var Nt=(()=>{class r{crop(e,i,t,n,a){let s=this.getImagePosition(e,i,t,a),f=s.x2-s.x1,A=s.y2-s.y1,M=document.createElement("canvas");M.width=f,M.height=A;let R=M.getContext("2d");if(!R)return null;t.backgroundColor!=null&&(R.fillStyle=t.backgroundColor,R.fillRect(0,0,f,A));let H=(t.transform.scale||1)*(t.transform.flipH?-1:1),J=(t.transform.scale||1)*(t.transform.flipV?-1:1),{translateH:$,translateV:X}=this.getCanvasTranslate(e,t,a),W=e.transformed;R.setTransform(H,0,0,J,W.size.width/2+$,W.size.height/2+X),R.translate(-s.x1/H,-s.y1/J),R.rotate((t.transform.rotate||0)*Math.PI/180),R.drawImage(W.image,-W.size.width/2,-W.size.height/2);let j={width:f,height:A,imagePosition:s,cropperPosition:U({},i)};t.containWithinAspectRatio&&(j.offsetImagePosition=this.getOffsetImagePosition(e,i,t,a));let Q=this.getResizeRatio(f,A,t);return Q!==1&&(j.width=Math.round(f*Q),j.height=t.maintainAspectRatio?Math.round(j.width/t.aspectRatio):Math.round(A*Q),Wt(M,j.width,j.height)),n==="blob"?this.cropToBlob(j,M,t):(j.base64=M.toDataURL("image/"+t.format,this.getQuality(t)),j)}cropToBlob(e,i,t){return oe(this,null,function*(){return e.blob=yield new Promise(n=>i.toBlob(n,"image/"+t.format,this.getQuality(t))),e.blob&&(e.objectUrl=URL.createObjectURL(e.blob)),e})}getCanvasTranslate(e,i,t){if(i.transform.translateUnit==="px"){let n=this.getRatio(e,t);return{translateH:(i.transform.translateH||0)*n,translateV:(i.transform.translateV||0)*n}}else return{translateH:i.transform.translateH?ct(i.transform.translateH,e.transformed.size.width):0,translateV:i.transform.translateV?ct(i.transform.translateV,e.transformed.size.height):0}}getRatio(e,i){return e.transformed.size.width/i.width}getImagePosition(e,i,t,n){let a=this.getRatio(e,n),s={x1:Math.round(i.x1*a),y1:Math.round(i.y1*a),x2:Math.round(i.x2*a),y2:Math.round(i.y2*a)};return t.containWithinAspectRatio||(s.x1=Math.max(s.x1,0),s.y1=Math.max(s.y1,0),s.x2=Math.min(s.x2,e.transformed.size.width),s.y2=Math.min(s.y2,e.transformed.size.height)),s}getOffsetImagePosition(e,i,t,n){let a=t.canvasRotation+e.exifTransform.rotate,s=this.getRatio(e,n),f,A;a%2?(f=(e.transformed.size.width-e.original.size.height)/2,A=(e.transformed.size.height-e.original.size.width)/2):(f=(e.transformed.size.width-e.original.size.width)/2,A=(e.transformed.size.height-e.original.size.height)/2);let M={x1:Math.round(i.x1*s)-f,y1:Math.round(i.y1*s)-A,x2:Math.round(i.x2*s)-f,y2:Math.round(i.y2*s)-A};return t.containWithinAspectRatio||(M.x1=Math.max(M.x1,0),M.y1=Math.max(M.y1,0),M.x2=Math.min(M.x2,e.transformed.size.width),M.y2=Math.min(M.y2,e.transformed.size.height)),M}getResizeRatio(e,i,t){let n=t.resizeToWidth/e,a=t.resizeToHeight/i,s=new Array;t.resizeToWidth>0&&s.push(n),t.resizeToHeight>0&&s.push(a);let f=s.length===0?1:Math.min(...s);return f>1&&!t.onlyScaleDown?f:Math.min(f,1)}getQuality(e){return Math.min(1,Math.max(0,e.imageQuality/100))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=re({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yt=(()=>{class r{resetCropperPosition(e,i,t,n){if(e?.nativeElement)if(t.cropperStaticHeight&&t.cropperStaticWidth)i.x1=0,i.x2=n.width>t.cropperStaticWidth?t.cropperStaticWidth:n.width,i.y1=0,i.y2=n.height>t.cropperStaticHeight?t.cropperStaticHeight:n.height;else{let a=Math.min(t.cropperScaledMaxWidth,n.width),s=Math.min(t.cropperScaledMaxHeight,n.height);if(!t.maintainAspectRatio)i.x1=0,i.x2=a,i.y1=0,i.y2=s;else if(n.width/t.aspectRation.width&&(t.x1-=t.x2-n.width,t.x2=n.width),t.y1<0?(t.y2-=t.y1,t.y1=0):t.y2>n.height&&(t.y1-=t.y2-n.height,t.y2=n.height);break}a.maintainAspectRatio&&this.checkAspectRatio(i.position,t,n,a)}checkAspectRatio(e,i,t,n){let a=0,s=0;switch(e){case"top":i.x2=i.x1+(i.y2-i.y1)*n.aspectRatio,a=Math.max(i.x2-t.width,0),s=Math.max(0-i.y1,0),(a>0||s>0)&&(i.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"bottom":i.x2=i.x1+(i.y2-i.y1)*n.aspectRatio,a=Math.max(i.x2-t.width,0),s=Math.max(i.y2-t.height,0),(a>0||s>0)&&(i.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"topleft":i.y1=i.y2-(i.x2-i.x1)/n.aspectRatio,a=Math.max(0-i.x1,0),s=Math.max(0-i.y1,0),(a>0||s>0)&&(i.x1+=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"topright":i.y1=i.y2-(i.x2-i.x1)/n.aspectRatio,a=Math.max(i.x2-t.width,0),s=Math.max(0-i.y1,0),(a>0||s>0)&&(i.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y1+=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"right":case"bottomright":i.y2=i.y1+(i.x2-i.x1)/n.aspectRatio,a=Math.max(i.x2-t.width,0),s=Math.max(i.y2-t.height,0),(a>0||s>0)&&(i.x2-=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"left":case"bottomleft":i.y2=i.y1+(i.x2-i.x1)/n.aspectRatio,a=Math.max(0-i.x1,0),s=Math.max(i.y2-t.height,0),(a>0||s>0)&&(i.x1+=s*n.aspectRatio>a?s*n.aspectRatio:a,i.y2-=s*n.aspectRatio>a?s:a/n.aspectRatio);break;case"center":i.x2=i.x1+(i.y2-i.y1)*n.aspectRatio,i.y2=i.y1+(i.x2-i.x1)/n.aspectRatio;let f=Math.max(0-i.x1,0),A=Math.max(i.x2-t.width,0),M=Math.max(i.y2-t.height,0),R=Math.max(0-i.y1,0);(f>0||A>0||M>0||R>0)&&(i.x1+=M*n.aspectRatio>f?M*n.aspectRatio:f,i.x2-=R*n.aspectRatio>A?R*n.aspectRatio:A,i.y1+=R*n.aspectRatio>A?R:A/n.aspectRatio,i.y2-=M*n.aspectRatio>f?M:f/n.aspectRatio);break}}getClientX(e){return e.touches?.[0].clientX||e.clientX||0}getClientY(e){return e.touches?.[0].clientY||e.clientY||0}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=re({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$t="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function Xt(){return new Promise(r=>{let o=new Image;o.onload=()=>{let e=o.width===1&&o.height===2;r(e)},o.src=$t})}function qt(r){switch(typeof r=="object"&&(r=Gt(r)),r){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}function Gt(r){let o=new DataView(r);if(o.getUint16(0,!1)!==65496)return-2;let e=o.byteLength,i=2;for(;i{class r{constructor(){this.autoRotateSupported=Xt()}loadImageFile(e,i){return e.arrayBuffer().then(t=>this.checkImageTypeAndLoadImageFromArrayBuffer(t,e.type,i))}checkImageTypeAndLoadImageFromArrayBuffer(e,i,t){return this.isValidImageType(i)?this.loadImageFromArrayBuffer(e,t):Promise.reject(new Error("Invalid image type"))}isValidImageType(e){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(e)}loadImageFromURL(e,i){return fetch(e).then(t=>t.arrayBuffer()).then(t=>this.loadImageFromArrayBuffer(t,i))}loadBase64Image(e,i){let t=this.base64ToArrayBuffer(e);return this.loadImageFromArrayBuffer(t,i)}base64ToArrayBuffer(e){e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");let i=atob(e),t=i.length,n=new Uint8Array(t);for(let a=0;a{let a=new Blob([e]),s=URL.createObjectURL(a),f=new Image;f.onload=()=>t({originalImage:f,originalObjectUrl:s,originalArrayBuffer:e}),f.onerror=n,f.src=s}).then(t=>this.transformImageFromArrayBuffer(t,i))}transformImageFromArrayBuffer(e,i){return oe(this,null,function*(){let t=yield this.autoRotateSupported,n=yield qt(t?-1:e.originalArrayBuffer);if(!e.originalImage||!e.originalImage.complete)return Promise.reject(new Error("No image loaded"));let a={original:{objectUrl:e.originalObjectUrl,image:e.originalImage,size:{width:e.originalImage.naturalWidth,height:e.originalImage.naturalHeight}},exifTransform:n};return this.transformLoadedImage(a,i)})}transformLoadedImage(e,i){return oe(this,null,function*(){let t=i.canvasRotation+e.exifTransform.rotate,n={width:e.original.image.naturalWidth,height:e.original.image.naturalHeight};if(t===0&&!e.exifTransform.flip&&!i.containWithinAspectRatio)return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:U({},n)},transformed:{objectUrl:e.original.objectUrl,image:e.original.image,size:U({},n)},exifTransform:e.exifTransform};let a=this.getTransformedSize(n,e.exifTransform,i),s=document.createElement("canvas");s.width=a.width,s.height=a.height;let f=s.getContext("2d");f?.setTransform(e.exifTransform.flip?-1:1,0,0,1,s.width/2,s.height/2),f?.rotate(Math.PI*(t/2)),f?.drawImage(e.original.image,-n.width/2,-n.height/2);let A=yield new Promise(H=>s.toBlob(H,i.format));if(!A)throw new Error("Failed to get Blob for transformed image.");let M=URL.createObjectURL(A),R=yield this.loadImageFromObjectUrl(M);return{original:{objectUrl:e.original.objectUrl,image:e.original.image,size:U({},n)},transformed:{objectUrl:M,image:R,size:{width:R.width,height:R.height}},exifTransform:e.exifTransform}})}loadImageFromObjectUrl(e){return new Promise((i,t)=>{let n=new Image;n.onload=()=>i(n),n.onerror=t,n.src=e})}getTransformedSize(e,i,t){let n=t.canvasRotation+i.rotate;if(t.containWithinAspectRatio)if(n%2){let a=e.width*t.aspectRatio,s=e.height/t.aspectRatio;return{width:Math.max(e.height,a),height:Math.max(e.width,s)}}else{let a=e.height*t.aspectRatio,s=e.width/t.aspectRatio;return{width:Math.max(e.width,a),height:Math.max(e.height,s)}}return n%2?{height:e.width,width:e.height}:{width:e.width,height:e.height}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=re({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),lt=(()=>{class r{constructor(e,i,t,n,a,s,f){this.cropService=e,this.cropperPositionService=i,this.loadImageService=t,this.sanitizer=n,this.cd=a,this.zone=s,this.hammerLoader=f,this.settings=new Se,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=L,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new Y,this.startCropImage=new Y,this.imageLoaded=new Y,this.cropperReady=new Y,this.loadImageFailed=new Y,this.transformChange=new Y,this.reset()}ngOnChanges(e){this.onChangesUpdateSettings(e),this.onChangesInputImage(e),this.loadedImage?.original.image.complete&&(e.containWithinAspectRatio||e.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i)),(e.cropper||e.maintainAspectRatio||e.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(this.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(e.maintainAspectRatio||e.aspectRatio)?this.resetCropperPosition():e.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop())),e.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),e.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(e){this.settings.setOptionsFromChanges(e),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}))}onChangesInputImage(e){(e.imageChangedEvent||e.imageURL||e.imageBase64||e.imageFile)&&this.reset(),e.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),e.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),e.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),e.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){let e=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${e}, ${this.transform.translateV||0}${e}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(e){this.loadImageService.loadImageFile(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadBase64Image(e){this.loadImageService.loadBase64Image(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}loadImageFromURL(e){this.loadImageService.loadImageFromURL(e,this.settings).then(i=>this.setLoadedImage(i)).catch(i=>this.loadImageError(i))}setLoadedImage(e){this.loadedImage=e,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(e.transformed.objectUrl),this.cd.markForCheck()}loadImageError(e){console.error(e),this.loadImageFailed.emit()}imageLoadedInView(){this.loadedImage!=null&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(U({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{let e=U({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(e),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){return oe(this,null,function*(){yield this.hammerLoader?.();let e=window?.Hammer||null;if(e){let i=new e(this.wrapper.nativeElement);i.get("pinch").set({enable:!0}),i.on("pinchmove",this.onPinch.bind(this)),i.on("pinchend",this.pinchStop.bind(this)),i.on("pinchstart",this.startPinch.bind(this))}else qe()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")})}resizeCropperPosition(e){(e.width!==this.maxSize.width||e.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/e.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/e.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/e.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/e.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(e){this.changeKeyboardStepSize(e),this.keyboardMoveCropper(e)}changeKeyboardStepSize(e){let i=+e.key;i>=1&&i<=9&&(this.settings.stepSize=i)}keyboardMoveCropper(e){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e.key))return;let t=e.shiftKey?L.Resize:L.Move,n=e.altKey?jt(e.key):Ht(e.key),a=Ut(e.key,this.settings.stepSize);e.preventDefault(),e.stopPropagation(),this.startMove({clientX:0,clientY:0},t,n),this.handleMouseMove(a),this.handleMouseUp()}startMove(e,i,t=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===L.Pinch||i===L.Drag&&!this.allowMoveImage||(e.preventDefault&&e.preventDefault(),this.moveStart=U({active:!0,type:i,position:t,transform:U({},this.transform),clientX:this.cropperPositionService.getClientX(e),clientY:this.cropperPositionService.getClientY(e)},this.cropper),this.initMouseMove())}initMouseMove(){Oe(ce(document,"mousemove"),ce(document,"touchmove")).pipe(De(Oe(ce(document,"mouseup"),ce(document,"touchend")).pipe(Be()))).subscribe({next:e=>this.zone.run(()=>{this.handleMouseMove(e),this.cd.markForCheck()}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck()})})}startPinch(e){this.safeImgDataUrl&&(e.preventDefault&&e.preventDefault(),this.moveStart=U({active:!0,type:L.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}handleMouseMove(e){if(this.moveStart.active){if(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===L.Move)this.cropperPositionService.move(e,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===L.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===L.Drag){let i=this.cropperPositionService.getClientX(e)-this.moveStart.clientX,t=this.cropperPositionService.getClientY(e)-this.moveStart.clientY;this.transform=Le(U({},this.transform),{translateH:(this.moveStart.transform?.translateH||0)+i,translateV:(this.moveStart.transform?.translateV||0)+t}),this.setCssTransform()}}}onPinch(e){this.moveStart.active&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),this.moveStart.type===L.Pinch&&(this.cropperPositionService.resize(e,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck())}setMaxSize(){if(this.sourceImage){let e=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(e.width),this.maxSize.height=parseFloat(e.height),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.maintainAspectRatio?this.settings.cropperScaledMinHeight=Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?this.settings.cropperScaledMinHeight=Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):this.settings.cropperScaledMinHeight=20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){let e=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/e:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/e:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidththis.maxSize.width&&(this.cropper.x1-=e?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=e?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===L.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(e=this.settings.output){if(this.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),e==="blob")return this.cropToBlob();if(e==="base64")return this.cropToBase64()}return null}cropToBlob(){return new Promise((e,i)=>this.zone.run(()=>oe(this,null,function*(){let t=yield this.cropService.crop(this.loadedImage,this.cropper,this.settings,"blob",this.maxSize);t?(this.imageCropped.emit(t),e(t)):i("Crop image failed")})))}cropToBase64(){let e=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return e?(this.imageCropped.emit(e),e):null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return r.\u0275fac=function(e){return new(e||r)(w(Nt),w(Yt),w(Kt),w(Ze),w(Ge),w(Ue),w(Ke,8))},r.\u0275cmp=C({type:r,selectors:[["image-cropper"]],viewQuery:function(e,i){if(e&1&&(O(Ft,7),O(Qt,5)),e&2){let t;b(t=y())&&(i.wrapper=t.first),b(t=y())&&(i.sourceImage=t.first)}},hostVars:6,hostBindings:function(e,i){e&1&&h("resize",function(){return i.onResize()},!1,We),e&2&&(ae("text-align",i.alignImage),ee("disabled",i.disabled)("ngx-ix-hidden",i.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[He],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(e,i){e&1&&(c(0,"div",null,0),_(2,Lt,2,8,"img",2),v(3,"div",3),_(4,Dt,3,16,"div",4),l()),e&2&&(ae("background",i.imageVisible&&i.backgroundColor),u(2),p("ngIf",i.safeImgDataUrl),u(),ae("width",i.maxSize.width,"px")("height",i.maxSize.height,"px")("margin-left",i.alignImage==="center"?i.marginLeft:null),u(),p("ngIf",i.imageVisible))},dependencies:[N],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),r})(),pt=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=E({type:r}),r.\u0275inj=z({imports:[[F]]}),r})();var mt=(()=>{let o=class o{imageCropped(i){this.croppedDataUrl=i.base64}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=C({type:o,selectors:[["app-file-cropper"]],decls:3,vars:5,consts:[["output","base64","format","png",3,"imageCropped","maintainAspectRatio","imageBase64","aspectRatio","cropperStaticWidth","cropperStaticHeight"],[1,"mt10",3,"click"]],template:function(t,n){t&1&&(c(0,"image-cropper",0),h("imageCropped",function(s){return n.imageCropped(s)}),l(),c(1,"wbutton",1),h("click",function(){return n.uploadImage(n.croppedDataUrl),n.close()}),T(2,"Cropper"),l()),t&2&&p("maintainAspectRatio",!0)("imageBase64",n.dataUrl)("aspectRatio",1)("cropperStaticWidth",n.width)("cropperStaticHeight",n.height)},dependencies:[lt,K]});let r=o;return r})();var dt=(()=>{let o=class o{constructor(i){this._file=i,this._file.add({id:"formPhoto",resize:1920,cb:t=>{typeof t=="string"&&typeof this.setFile=="function"&&this.setFile(t)}}),this._file.add({id:"formPhotos",multiple:!0,resize:1920,cb:t=>{typeof t=="string"&&typeof this.setFile=="function"&&this.setFile(t)}})}};o.\u0275fac=function(t){return new(t||o)(fe(tt))},o.\u0275prov=re({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();function ei(r,o){if(r&1&&(c(0,"h3"),T(1),l()),r&2){let e=g(2);u(),q(e.label)}}function ti(r,o){if(r&1){let e=x();c(0,"label",6)(1,"img",7),h("error",function(){m(e);let t=g(2);return d(t.force=t.err)}),l()()}if(r&2){let e=g(2);u(),p("src",e.force||e.value||"/assets/default.png",le)("ngStyle",e.imgStyle)}}function ii(r,o){r&1&&(c(0,"label",8),T(1,"Add"),l())}function ni(r,o){if(r&1){let e=x();c(0,"div",11),v(1,"img",12),c(2,"i",13),h("click",function(){let t=m(e).index,n=g(3);return d(n.files.splice(t,1))}),T(3,"X"),l()()}if(r&2){let e=o.$implicit;u(),p("src",e,le)}}function oi(r,o){if(r&1&&(c(0,"div",9),_(1,ni,4,1,"div",10),l()),r&2){let e=g(2);u(),p("ngForOf",e.files)}}function ri(r,o){if(r&1){let e=x();c(0,"div",1),h("click",function(){m(e);let t=g();return d(t.set())}),_(1,ei,2,1,"h3",2)(2,ti,2,2,"label",3)(3,ii,2,0,"label",4)(4,oi,2,1,"div",5),l()}if(r&2){let e=g();p("ngClass",e.class),u(),p("ngIf",e.label),u(),p("ngIf",!e.multiple),u(),p("ngIf",e.multiple),u(),p("ngIf",e.multiple)}}var ye=(()=>{let o=class o{get files(){return this.value}constructor(i,t,n){this._modal=i,this._http=t,this._fs=n,this.container="general",this.name="",this.err="",this.label="",this.class="",this.imgStyle={},this.multiple=!1,this.isPhoto=!1,this.isRound=!1,this.value=this.multiple?[]:"",this.update=new Y,this.force=""}ngOnInit(){if(!this.name&&!this.multiple&&this.value){let i=(this.value||"").split("/");this.name=i[i.length-1].split("?")[0]}}set(){this._fs.setFile=i=>{this.width&&this.height?this._modal.show({uploadImage:this.uploadImage.bind(this),component:mt,width:this.width,height:this.height,dataUrl:i}):this.uploadImage(i)}}uploadImage(i){this._http.post("/api/file/photo",{container:this.container,name:this.name,dataUrl:i},t=>{this.multiple?(this.value||(this.value=[]),this.value.push(t)):(this.name=t.split("/")[5].split("?")[0],this.value=t),this.update.emit(this.value)})}};o.\u0275fac=function(t){return new(t||o)(w(nt),w(et),w(dt))},o.\u0275cmp=C({type:o,selectors:[["ngx-file"]],inputs:{container:"container",name:"name",err:"err",label:"label",class:"class",imgStyle:"imgStyle",multiple:"multiple",isPhoto:"isPhoto",isRound:"isRound",resize:"resize",width:"width",height:"height",value:"value"},outputs:{update:"update"},decls:1,vars:1,consts:[[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[4,"ngIf"],["for","formPhoto",4,"ngIf"],["for","formPhotos","class","file__add",4,"ngIf"],["class","file__list",4,"ngIf"],["for","formPhoto"],["alt","Picture",1,"file__img",3,"error","src","ngStyle"],["for","formPhotos",1,"file__add"],[1,"file__list"],["class","file__item",4,"ngFor","ngForOf"],[1,"file__item"],["alt","Picture",1,"file__item-img",3,"src"],[1,"file__item-remove",3,"click"]],template:function(t,n){t&1&&_(0,ri,5,5,"div",0),t&2&&p("ngIf",n.isPhoto)},dependencies:[k,G,N,Ce],styles:[".file__img[_ngcontent-%COMP%]{display:block;max-width:100%;height:auto;border-radius:var(--file-img-border-radius, 8px);cursor:pointer}.file__img.round[_ngcontent-%COMP%]{border-radius:50%}.file__add[_ngcontent-%COMP%]{display:inline-block;padding:10px 20px;background-color:var(--file-add-bg, #007bff);color:#fff;border-radius:4px;cursor:pointer;text-align:center;transition:background-color .3s ease}.file__add[_ngcontent-%COMP%]:hover{background-color:var(--file-add-bg-hover, #0056b3)}.file__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.file__item[_ngcontent-%COMP%]{position:relative;display:inline-block}.file__item-img[_ngcontent-%COMP%]{display:block;width:100px;height:100px;object-fit:cover;border-radius:var(--file-item-border-radius, 4px);cursor:pointer}.file__item-remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;background-color:#f00c;color:#fff;border-radius:50%;width:20px;height:20px;text-align:center;line-height:20px;font-size:12px;cursor:pointer;transition:background-color .3s ease}.file__item-remove[_ngcontent-%COMP%]:hover{background-color:red}"]});let r=o;return r})();var gt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[pt,F,Z]});let r=o;return r})();var ai=["header"],si=["footer"],ci=[[["","header",""]],"*",[["","footer",""]]],li=["[header]","*","[footer]"];function pi(r,o){r&1&&(c(0,"div",6),we(1),l())}function mi(r,o){r&1&&we(0,1,["*ngIf","!sections"])}function di(r,o){if(r&1&&(c(0,"div",7),T(1),l()),r&2){let e=o.$implicit;u(),se(" ",e," ")}}function hi(r,o){r&1&&(c(0,"div",8),we(1,2),l())}var zn=(()=>{let o=class o{constructor(){this.cardClass="",this.sections=null,this.hasHeader=!1,this.hasFooter=!1}ngAfterContentInit(){this.hasHeader=!!this.headerContent,this.hasFooter=!!this.footerContent}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=C({type:o,selectors:[["wcard"]],contentQueries:function(t,n,a){if(t&1&&(Ie(a,ai,5),Ie(a,si,5)),t&2){let s;b(s=y())&&(n.headerContent=s.first),b(s=y())&&(n.footerContent=s.first)}},inputs:{cardClass:"cardClass",sections:"sections"},ngContentSelectors:li,decls:6,vars:5,consts:[[1,"w-card",3,"ngClass"],["class","w-card__header",4,"ngIf"],[1,"w-card__body"],[4,"ngIf"],["class","w-card__body-section",4,"ngFor","ngForOf"],["class","w-card__footer",4,"ngIf"],[1,"w-card__header"],[1,"w-card__body-section"],[1,"w-card__footer"]],template:function(t,n){t&1&&(Ye(ci),c(0,"div",0),_(1,pi,2,0,"div",1),c(2,"div",2),_(3,mi,1,0,"ng-content",3)(4,di,2,1,"div",4),l(),_(5,hi,2,0,"div",5),l()),t&2&&(p("ngClass",n.cardClass),u(),p("ngIf",n.hasHeader),u(2),p("ngIf",!n.sections),u(),p("ngForOf",n.sections),u(),p("ngIf",n.hasFooter))},dependencies:[k,G,N],styles:[".w-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px);position:relative}.w-card__header[_ngcontent-%COMP%]{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0}.w-card__body[_ngcontent-%COMP%]{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section[_ngcontent-%COMP%]{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section[_ngcontent-%COMP%]:last-child{border-bottom:none}.w-card__footer[_ngcontent-%COMP%]{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}"]});let r=o;return r})();var ft=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[pe,F,me]});let r=o;return r})();var gi=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=C({type:o,selectors:[["icon-spider"]],decls:30,vars:0,consts:[["viewBox","0 0 72 84","width","300px","height","300px","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.7441 38.2845C29.7441 38.2845 31.8474 35.0824 33.6034 33.46C35.2166 31.9737 35.9191 31.6079 36.0232 31.5575C36.1314 31.6079 36.8298 31.9737 38.443 33.46C40.1991 35.0824 42.3025 38.2845 42.3025 38.2845C42.3025 38.2845 47.196 35.9266 47.196 29.1802C47.196 22.4337 42.8736 18.9516 42.8736 18.9516C47.9679 27.7872 43.1013 33.2694 43.1013 33.2694C43.1013 33.2694 42.1364 33.1137 40.3998 31.0165C39.0996 29.5517 37.6333 28.246 36.031 27.126V27.1064V27.126C34.4245 28.2391 32.953 29.5384 31.6468 30.9971C29.9139 33.0942 28.9452 33.2498 28.9452 33.2498C28.9452 33.2498 24.0746 27.7679 29.1691 18.9321C29.1691 18.9321 24.8504 22.3948 24.8504 29.1607C24.8504 35.9266 29.7441 38.2845 29.7441 38.2845Z","fill","url(#paint0_linear_5_30)"],["d","M31.1333 41.3775C30.7938 44.101 32.322 45.2097 32.322 45.2097C32.3393 44.5685 32.4233 43.9308 32.5729 43.3072C32.7736 42.7159 33.8967 41.3618 35.0583 41.3618H36.988C38.1459 41.3618 39.2727 42.7003 39.4772 43.3072C39.6241 43.9312 39.707 44.5688 39.7242 45.2097C39.7242 45.2097 41.268 44.101 40.9167 41.3775C40.5965 38.8135 36.5132 35.3236 36.0464 34.9306V34.8917H36.0232H36V34.9306C35.533 35.3236 31.4499 38.8135 31.1333 41.3775Z","fill","url(#paint1_linear_5_30)"],["d","M43.2673 45.91C42.5186 47.5046 41.2429 48.7867 39.6587 49.5362C39.6587 49.5362 36.2085 44.7117 36.0386 44.5639V44.5406V44.5639C35.8688 44.7117 32.4224 49.5362 32.4224 49.5362C30.8254 48.7934 29.5365 47.5106 28.7792 45.91C27.6832 43.3578 28.7792 40.0742 28.7792 40.0742C27.8222 40.9534 25.823 45.91 28.0074 49.7775C28.644 50.9108 29.5247 51.8858 30.5848 52.6305C31.6448 53.3753 32.857 53.8708 34.1322 54.0805C34.1322 54.0805 33.395 52.9756 34.0125 51.1587C34.3557 50.1073 35.0716 49.2207 36.0232 48.6687C36.9748 49.2207 37.6907 50.1073 38.034 51.1587C38.6552 52.9756 37.9143 54.0805 37.9143 54.0805C39.1933 53.8718 40.4095 53.3761 41.473 52.6299C42.5364 51.8838 43.4201 50.9063 44.0583 49.7696C46.2235 45.879 44.2244 40.9456 43.2866 40.0663C43.2673 40.0742 44.3827 43.3578 43.2673 45.91Z","fill","url(#paint2_linear_5_30)"],["d","M18.7064 30.4135C19.2274 31.2189 25.8191 39.9729 25.8191 39.9729C25.8191 39.9729 27.1042 37.4868 25.9232 36.0005C24.7424 34.5144 21.5507 30.3474 20.9486 29.363C20.4509 28.4918 20.1627 27.515 20.1073 26.5111C20.034 25.6902 19.0767 14.6757 19.0767 14.6757C19.8965 11.6482 21.2001 8.77554 22.9362 6.17063C24.3439 4.00548 25.9018 1.94346 27.5982 0C27.5982 0 23.0403 3.23317 20.4314 7.2717C18.8838 9.64045 17.6645 12.2114 16.8074 14.913C16.8074 14.913 17.4134 24.6125 17.5407 26.5189C17.5809 27.8983 17.9831 29.2421 18.7064 30.4135Z","fill","url(#paint3_linear_5_30)"],["d","M19.0923 59.368C19.0923 59.368 19.0923 57.6639 20.1227 54.7848C21.1531 51.9056 24.7539 45.416 24.7539 45.416L25.0279 40.8056L24.3139 39.8095C24.3139 39.8095 19.096 37.7863 16.9811 36.6464C14.8663 35.5064 14.3105 35.1952 14.3105 35.1952C13.5116 33.6583 12.8328 32.0608 12.2805 30.4174C11.1922 27.3555 10.7599 25.9625 10.7599 25.9625C10.5214 22.9704 10.4609 19.9668 10.5785 16.9673C10.7599 11.781 11.0301 10.1158 11.0301 10.1158C11.0301 10.1158 9.72946 12.0067 9.15056 16.4031C8.57166 20.7996 8.44816 26.2622 8.44816 26.2622L11.7054 36.6152C11.7054 36.6152 14.407 38.4827 17.9074 40.4204C19.0234 41.0646 20.2047 41.5863 21.431 41.9767L12.4464 43.3735L3.91342 50.7658C2.51875 53.6073 1.48155 56.6135 0.825943 59.7142C-0.277831 64.9084 0.0540732 70.581 0.0540732 70.581C0.0540732 70.581 1.39713 64.9084 2.99104 59.8194C4.58495 54.7304 5.95501 52.3647 5.95501 52.3647L13.6737 46.3343L19.787 45.7468L15.0708 57.8078C15.0708 57.8078 15.0283 59.3641 15.7037 62.8657C16.3792 66.3673 19.266 75.67 19.266 75.67L26.6296 84L27.3397 83.8715L21.7822 74.6156L19.0923 59.368Z","fill","url(#paint4_linear_5_30)"],["d","M52.923 14.6757C52.923 14.6757 51.9659 25.6786 51.8888 26.5111C51.8333 27.515 51.5451 28.4918 51.0475 29.363C50.4492 30.3513 47.2537 34.5105 46.0728 36.0005C44.8918 37.4907 46.1769 39.9729 46.1769 39.9729C46.1769 39.9729 52.7725 31.2189 53.2936 30.4135C54.0144 29.2429 54.4139 27.9002 54.4514 26.5228C54.5826 24.6164 55.1886 14.9169 55.1886 14.9169C54.3296 12.216 53.1105 9.64533 51.5646 7.27559C48.9596 3.23317 44.4017 0 44.4017 0C46.1041 1.94244 47.6672 4.00452 49.0791 6.17063C50.8088 8.7772 52.1069 11.6496 52.923 14.6757Z","fill","url(#paint5_linear_5_30)"],["d","M71.1821 59.7027C70.5274 56.6015 69.4902 53.5952 68.0945 50.7541L59.5576 43.3617L50.5576 41.9689C51.7828 41.5784 52.9627 41.0566 54.0774 40.4126C57.5932 38.4673 60.2833 36.6075 60.2833 36.6075L63.5366 26.2544C63.5366 26.2544 63.4132 20.8074 62.8343 16.3992C62.2554 11.9911 60.9779 10.1158 60.9779 10.1158C60.9779 10.1158 61.248 11.7771 61.4295 16.9634C61.5448 19.9628 61.4841 22.9665 61.248 25.9586C61.248 25.9586 60.8081 27.3516 59.7313 30.4135C59.179 32.0569 58.5003 33.6544 57.7014 35.1913C57.7014 35.1913 57.1456 35.4986 55.0307 36.6425C52.9158 37.7863 47.6979 39.8056 47.6979 39.8056L46.9839 40.8017L47.2541 45.4121C47.2541 45.4121 50.8664 51.9017 51.8853 54.7808C52.9041 57.66 52.9158 59.3641 52.9158 59.3641L50.2142 74.6117L44.6528 83.8715L45.3629 84L52.7305 75.6778C52.7305 75.6778 55.6134 66.3868 56.2927 62.8735C56.972 59.3603 56.9256 57.8156 56.9256 57.8156L52.2094 45.7544L58.3189 46.3419L66.0375 52.3725C66.0375 52.3725 67.4115 54.738 69.0054 59.8272C70.5993 64.9162 71.9423 70.5888 71.9423 70.5888C71.9423 70.5888 72.2896 64.8967 71.1821 59.7027Z","fill","url(#paint6_linear_5_30)"],["id","paint0_linear_5_30","x1","36.0232","y1","18.9321","x2","36.0232","y2","38.2845","gradientUnits","userSpaceOnUse"],["stop-color","#F6C93C"],["offset","1","stop-color","#A79F1E"],["id","paint1_linear_5_30","x1","36.0264","y1","34.8917","x2","36.0264","y2","45.2097","gradientUnits","userSpaceOnUse"],["id","paint2_linear_5_30","x1","36.0264","y1","40.0663","x2","36.0264","y2","54.0805","gradientUnits","userSpaceOnUse"],["id","paint3_linear_5_30","x1","22.2029","y1","0","x2","22.2029","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint4_linear_5_30","x1","13.6735","y1","10.1158","x2","13.6735","y2","84","gradientUnits","userSpaceOnUse"],["id","paint5_linear_5_30","x1","49.7951","y1","0","x2","49.7951","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint6_linear_5_30","x1","58.3234","y1","10.1158","x2","58.3234","y2","84","gradientUnits","userSpaceOnUse"]],template:function(t,n){t&1&&(je(),c(0,"svg",0),v(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),c(8,"defs")(9,"linearGradient",8),v(10,"stop",9)(11,"stop",10),l(),c(12,"linearGradient",11),v(13,"stop",9)(14,"stop",10),l(),c(15,"linearGradient",12),v(16,"stop",9)(17,"stop",10),l(),c(18,"linearGradient",13),v(19,"stop",9)(20,"stop",10),l(),c(21,"linearGradient",14),v(22,"stop",9)(23,"stop",10),l(),c(24,"linearGradient",15),v(25,"stop",9)(26,"stop",10),l(),c(27,"linearGradient",16),v(28,"stop",9)(29,"stop",10),l()()())}});let r=o;return r})();var ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({});let r=o;return r})();var fi=["alert"],ui=r=>({"animation-duration":r});function _i(r,o){if(r&1&&(c(0,"div",8),v(1,"span",9),l()),r&2){let e=g();u(),p("ngStyle",Xe(1,ui,(e.timeout+350)/1e3+"s"))}}function wi(r,o){if(r&1&&v(0,"div"),r&2){let e=g(2);Ne(e.icon)}}function Ci(r,o){if(r&1&&(c(0,"div",10),_(1,wi,1,3,"div",11),c(2,"div",12),T(3),l()()),r&2){let e=g();u(),p("ngIf",e.icon),u(2),q(e.text)}}function xi(r,o){if(r&1){let e=x();c(0,"wbutton",14),h("click",function(){let t=m(e).$implicit;return g(2).remove(),d(t.callback&&t.callback())}),T(1),l()}if(r&2){let e=o.$implicit;u(),se(" ",e.text," ")}}function bi(r,o){if(r&1&&(c(0,"div"),_(1,xi,2,1,"wbutton",13),l()),r&2){let e=g();u(),p("ngForOf",e.buttons)}}function yi(r,o){if(r&1){let e=x();c(0,"div",15),h("click",function(){m(e);let t=g();return d(t.remove())}),l()}}var Nn=(()=>{let o=class o{constructor(i){this.core=i,this.text="",this.class="",this.type="info",this.progress=!0,this.position="bottomRight",this.icon="",this.timeout=5e3,this.closable=!0,this.buttons=[],this.delete_animation=!1,setTimeout(()=>{if(this.timeout){let t=JSON.parse(JSON.stringify(this.timeout)),n=setTimeout(()=>{this.remove()},t),a=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(n),t-=new Date().getTime()-a.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{a=new Date,clearTimeout(n),n=i.window.setTimeout(()=>{this.remove()},t)},!1)}})}remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}};o.\u0275fac=function(t){return new(t||o)(w(Je))},o.\u0275cmp=C({type:o,selectors:[["alert"]],viewQuery:function(t,n){if(t&1&&O(fi,5),t&2){let a;b(a=y())&&(n.alert=a.first)}},decls:8,vars:17,consts:[["alert",""],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(t,n){t&1&&(c(0,"div",1)(1,"div",2,0),_(3,_i,2,3,"div",3),c(4,"div",4),_(5,Ci,4,2,"div",5)(6,bi,2,1,"div",6)(7,yi,1,0,"div",7),l()()()),t&2&&(ee("_close",n.delete_animation),p("ngClass",n.class),u(),ee("waw-alert-color-blue",n.type==="info")("waw-alert-color-red",n.type==="error")("waw-alert-color-green",n.type==="success")("waw-alert-color-orange",n.type==="warning")("waw-alert-color-yellow",n.type==="question"),u(2),p("ngIf",n.progress),u(2),p("ngIf",!n.component),u(),p("ngIf",!n.component&&n.type==="question"),u(),p("ngIf",n.closable))},dependencies:[k,G,N,Ce,K],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']});let r=o;return r})();var $n=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=C({type:o,selectors:[["app-alert-wrapper"]],decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(t,n){t&1&&(c(0,"div"),v(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),l())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]});let r=o;return r})();var _t=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[F,Z]});let r=o;return r})();var wt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[F]});let r=o;return r})();var vi=["templateRef"];function Mi(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return n.submition[n.component.key]=t,d(n.wChange())})("wSubmit",function(){let t=m(e).$implicit;return d(t.wSubmit())}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("setFocus",e.component)("label",e.field.Label)}}var Ct=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Email",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(vi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","email",3,"wChange","wSubmit","value","placeholder","name","focused","ngClass","setFocus","label"]],template:function(t,n){t&1&&_(0,Mi,1,7,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var Oi=["templateRef"];function Ai(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return d(n.submition[n.component.key]=t)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var xt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Number",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Oi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","number",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,n){t&1&&_(0,Ai,1,6,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var Ii=["templateRef"];function Si(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return d(n.submition[n.component.key]=t)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var bt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Time",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Ii,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","time",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,n){t&1&&_(0,Si,1,6,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var Pi=["templateRef"];function Ri(r,o){if(r&1){let e=x();c(0,"ngx-file",1),h("update",function(t){let n=m(e).$implicit;return d(n.control.setValue(t))}),l()}if(r&2){let e=o.$implicit;p("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("isPhoto",!0)}}var yt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Photo",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Pi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","label","width","height","value","isPhoto"]],template:function(t,n){t&1&&_(0,Ri,1,5,"ng-template",null,0,P)},dependencies:[ye]});let r=o;return r})();var ki=["templateRef"];function Ti(r,o){if(r&1){let e=x();c(0,"ngx-file",1),h("update",function(t){let n=m(e).$implicit;return d(n.control.setValue(t))}),l()}if(r&2){let e=o.$implicit;p("container",e.config.formId)("label",e.field.Label)("width",e.field.Width)("height",e.field.Height)("value",e.value)("multiple",!0)("isPhoto",!0)}}var vt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Photos",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(ki,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"update","container","label","width","height","value","multiple","isPhoto"]],template:function(t,n){t&1&&_(0,Ti,1,7,"ng-template",null,0,P)},dependencies:[ye]});let r=o;return r})();var zi=["templateRef"];function Ei(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return d(n.submition[n.component.key]=t)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Mt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Date",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(zi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","date",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(t,n){t&1&&_(0,Ei,1,6,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var Vi=["templateRef"];function Fi(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return d(n.submition[n.component.key]=t)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("type",e.field.Textarea?"textarea":"text")("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Ot=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Text",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Vi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"wChange","value","type","placeholder","name","focused","ngClass","label"]],template:function(t,n){t&1&&_(0,Fi,1,7,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var Qi=["templateRef"];function Li(r,o){if(r&1){let e=x();c(0,"wbutton",1),h("click",function(){let t=m(e).$implicit,n=g();return d(n.click(t))}),T(1),l()}if(r&2){let e=o.$implicit;p("disableSubmit",!0),u(),q(e.field.Label)}}var At=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Button",this.templateRef)}click(i){typeof i.field.Click=="function"&&i.field.Click()}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["button-formcomponents"]],viewQuery:function(t,n){if(t&1&&O(Qi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"click","disableSubmit"]],template:function(t,n){t&1&&_(0,Li,2,2,"ng-template",null,0,P)},dependencies:[K],styles:[".w-btn[_ngcontent-%COMP%]{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary[_ngcontent-%COMP%]{background-color:var(--c-primary)}.w-btn._primary[_ngcontent-%COMP%]:hover{background-color:var(--c-primary-hover)}.w-btn._second[_ngcontent-%COMP%]{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger[_ngcontent-%COMP%]{background-color:var(--c-secondary);color:#fff}.w-btn._danger[_ngcontent-%COMP%]:hover{background:var(--c-secondary-hover)}.w-btn._link[_ngcontent-%COMP%]{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link[_ngcontent-%COMP%]:hover{color:var(--c-text-secondary)}.w-btn[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn[_ngcontent-%COMP%]:disabled:hover{background-color:var(--c-grey-dark)}"]});let r=o;return r})();var Bi=["templateRef"];function Di(r,o){r&1&&v(0,"span",10)}function Hi(r,o){r&1&&v(0,"span",11)}function ji(r,o){r&1&&v(0,"span",12)}function Ui(r,o){r&1&&v(0,"span",13)}function Wi(r,o){if(r&1){let e=x();c(0,"div",1)(1,"winput",2),h("wChange",function(t){let n=m(e).$implicit;return n.submition[n.component.key]=t,d(n.wChange())})("wSubmit",function(){let t=m(e).$implicit;return d(t.wSubmit())}),l(),c(2,"div",3),_(3,Di,1,0,"span",4)(4,Hi,1,0,"span",5)(5,ji,1,0,"span",6)(6,Ui,1,0,"span",7),l(),c(7,"div",8)(8,"span",9),h("click",function(){let t=m(e).$implicit;return d(t.field.Show=!t.field.Show)}),T(9," visibility "),l()()()}if(r&2){let e=o.$implicit,i=g();u(),p("value",e.submition[e.component.key])("type",e.field.Show?"text":"password")("placeholder",e.field.Placeholder)("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("setFocus",e.component)("label",e.field.Label),u(2),p("ngIf",i.ui.level(e.value)>1),u(),p("ngIf",i.ui.level(e.value)>2),u(),p("ngIf",i.ui.level(e.value)>3),u(),p("ngIf",i.ui.level(e.value)>4)}}var It=(()=>{let o=class o{constructor(i,t){this._form=i,this.ui=t}ngOnInit(){this._form.addTemplateComponent("Password",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I),w(it))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Bi,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[1,"pass_container"],["type","password",3,"wChange","wSubmit","value","type","placeholder","name","focused","ngClass","setFocus","label"],[1,"smart"],["class","red",4,"ngIf"],["class","orange",4,"ngIf"],["class","yellow",4,"ngIf"],["class","green",4,"ngIf"],[1,"eye"],[1,"material-icons",3,"click"],[1,"red"],[1,"orange"],[1,"yellow"],[1,"green"]],template:function(t,n){t&1&&_(0,Wi,10,12,"ng-template",null,0,P)},dependencies:[V,k,N],styles:[".pass_container[_ngcontent-%COMP%]{position:relative}.smart[_ngcontent-%COMP%]{position:absolute;right:0;top:0}.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}.eye[_ngcontent-%COMP%]{position:relative;cursor:pointer}.eye[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:-32px;right:10px;font-size:22px;color:var(--c-text-primary)}@media screen and (max-width: 768px){.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}#eye[_ngcontent-%COMP%]{position:absolute;left:165px;top:252px;font-size:22px;color:#5a5a5a}}"]});let r=o;return r})();var Ni=["templateRef"];function Yi(r,o){if(r&1){let e=x();c(0,"wselect",1),h("modelChange",function(t){let n=m(e).$implicit;return n.submition[n.component.key]=t,d(n.wChange())}),l()}if(r&2){let e=o.$implicit;p("select",e.submition[e.component.key])("multiple",e.field.Multiple||!1)("placeholder",e.field.Placeholder)("value",e.field.Value||"_id")("name",e.field.Name||"name")("ngClass",e.component.class)("items",e.field.Items)("searchable",!0)}}var St=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Select",this.templateRef)}select(i){return i.value?.name||i.value||""}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O(Ni,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],[3,"modelChange","select","multiple","placeholder","value","name","ngClass","items","searchable"]],template:function(t,n){t&1&&_(0,Yi,1,8,"ng-template",null,0,P)},dependencies:[k,st],styles:[".w-select[_ngcontent-%COMP%]{width:100%}.w-select__label[_ngcontent-%COMP%]{margin-bottom:5px}.w-select__body[_ngcontent-%COMP%]{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select__header[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;color:#666;position:relative}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.w-select__text[_ngcontent-%COMP%]{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow[_ngcontent-%COMP%]{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:12px;height:12px}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-text-primary)}.w-select__arrow._active[_ngcontent-%COMP%]{transform:rotate(180deg)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background:var(--c-shadow);border-bottom:1px solid #1ac5eb;color:#1ac5eb}.w-select__popup[_ngcontent-%COMP%]{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid #173b59;background:#f8f6f6;color:#666;padding-bottom:15px;padding-top:15px}.w-select__popup._search[_ngcontent-%COMP%]{padding-top:60px}.w-select__popup[_ngcontent-%COMP%] .popup-block[_ngcontent-%COMP%]{max-height:180px;overflow-y:auto;padding:0 15px}.w-select__popup[_ngcontent-%COMP%] .popup-block__empty-search[_ngcontent-%COMP%]{padding:15px;text-align:center;color:#717171}.w-select__search[_ngcontent-%COMP%]{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--c-border)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover{background:rgba(var(--c-sky),.09)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover .checkbox__svg[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]{display:none}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{background:var(--c-sky);border-color:var(--c-sky);animation:_ngcontent-%COMP%_wave .4s ease}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{stroke-dashoffset:0}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select[_ngcontent-%COMP%] .checkbox__text[_ngcontent-%COMP%]{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select[_ngcontent-%COMP%] .checkbox__svg-icon[_ngcontent-%COMP%]{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes _ngcontent-%COMP%_wave{50%{transform:scale(.9)}}.selected[_ngcontent-%COMP%]{font-weight:700}"]});let r=o;return r})();var $i=["templateRef"];function Xi(r,o){if(r&1){let e=x();c(0,"winput",1),h("wChange",function(t){let n=m(e).$implicit;return d(n.submition[n.component.key]=t)}),l()}if(r&2){let e=o.$implicit;p("value",e.submition[e.component.key])("name",e.field.Label||"name")("focused",e.component.focused)("ngClass",e.component.class)("label",e.field.Label)}}var Pt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Boolean",this.templateRef)}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&O($i,7),t&2){let a;b(a=y())&&(n.templateRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["type","checkbox",3,"wChange","value","name","focused","ngClass","label"]],template:function(t,n){t&1&&_(0,Xi,1,5,"ng-template",null,0,P)},dependencies:[V,k]});let r=o;return r})();var qi=["templateRef"],Gi=["inputRef"];function Ki(r,o){if(r&1){let e=x();ue(0),c(1,"span"),T(2),l(),c(3,"i",5),h("click",function(){let t=m(e).index,n=g().$implicit;return d(n.tags.splice(t,1))}),T(4,"X"),l(),_e()}if(r&2){let e=o.$implicit;u(2),q(e)}}function Zi(r,o){if(r&1){let e=x();c(0,"div")(1,"winput",2,1),h("wSubmit",function(){let t=m(e).$implicit,n=g();return d(n.addTag(t))}),l(),_(3,Ki,5,1,"ng-container",3),c(4,"wbutton",4),h("click",function(){let t=m(e).$implicit,n=g();return d(n.addTag(t))}),T(5),l()()}if(r&2){let e=o.$implicit,i=$e(2);u(),p("placeholder",e.field.Placeholder)("label",e.field.Label),u(2),p("ngForOf",e.tags),u(),p("disabled",!i.value),u(),se(" ",e.field.Button||"Add"," ")}}var Rt=(()=>{let o=class o{constructor(i){this._form=i}ngOnInit(){this._form.addTemplateComponent("Tags",this.templateRef)}addTag(i){i.tags.push(this.inputRef.formControl.value.replace(` -`,"")),this.inputRef.formControl.setValue(""),this.update(),setTimeout(()=>{this.inputRef.inputEl.nativeElement.focus()},100)}ngAfterViewInit(){}update(){}};o.\u0275fac=function(t){return new(t||o)(w(I))},o.\u0275cmp=C({type:o,selectors:[["ng-component"]],viewQuery:function(t,n){if(t&1&&(O(qi,7),O(Gi,5)),t&2){let a;b(a=y())&&(n.templateRef=a.first),b(a=y())&&(n.inputRef=a.first)}},decls:2,vars:0,consts:[["templateRef",""],["inputRef",""],[3,"wSubmit","placeholder","label"],[4,"ngFor","ngForOf"],[3,"click","disabled"],[3,"click"]],template:function(t,n){t&1&&_(0,Zi,6,5,"ng-template",null,0,P)},dependencies:[V,K,G]});let r=o;return r})();var kt=(()=>{let o=class o{constructor(i){this._form=i,this._form.injectComponent(Pt,["Label"]),this._form.injectComponent(At,["Label"]),this._form.injectComponent(Mt),this._form.injectComponent(Ct),this._form.injectComponent(xt),this._form.injectComponent(It),this._form.injectComponent(yt,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent(vt,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent(St,["Placeholder","Label","Items","Multiple"],{Items:"Tags",Multiple:"Boolean"}),this._form.injectComponent(Rt,["Button","Placeholder","Label"]),this._form.injectComponent(Ot,["Textarea","Placeholder","Label"],{Textarea:"Boolean"}),this._form.injectComponent(bt)}};o.\u0275fac=function(t){return new(t||o)(fe(I))},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[xe,Z,F,gt,be]});let r=o;return r})();var er=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=E({type:o}),o.\u0275inj=z({imports:[F,pe,me,kt,at,be,F,pe,me,Z,xe,ft,ot,_t,wt,rt,ut]});let r=o;return r})();export{zn as a,gi as b,Nn as c,$n as d,_t as e,wt as f,ye as g,gt as h,er as i}; diff --git a/docs/chunk-4ZWMSXGZ.js b/docs/chunk-4ZWMSXGZ.js deleted file mode 100644 index faa1b2e..0000000 --- a/docs/chunk-4ZWMSXGZ.js +++ /dev/null @@ -1,8 +0,0 @@ -var hh=Object.defineProperty,k0=Object.defineProperties;var F0=Object.getOwnPropertyDescriptors;var Wo=Object.getOwnPropertySymbols;var ph=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable;var fh=(t,e,n)=>e in t?hh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,D=(t,e)=>{for(var n in e||={})ph.call(e,n)&&fh(t,n,e[n]);if(Wo)for(var n of Wo(e))gh.call(e,n)&&fh(t,n,e[n]);return t},W=(t,e)=>k0(t,F0(e));var L0=(t,e)=>{var n={};for(var r in t)ph.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wo)for(var r of Wo(t))e.indexOf(r)<0&&gh.call(t,r)&&(n[r]=t[r]);return n};var V0=(t,e)=>{for(var n in e)hh(t,n,{get:e[n],enumerable:!0})};var vt=(t,e,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(t,e)).next())});function mh(t,e){return Object.is(t,e)}var De=null,Zo=!1,Yo=1,Qt=Symbol("SIGNAL");function K(t){let e=De;return De=t,e}function yh(){return De}var Ri={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qc(t){if(Zo)throw new Error("");if(De===null)return;De.consumerOnSignalRead(t);let e=De.nextProducerIndex++;if(Xo(De),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Jc(t){Xo(t);for(let e=0;e0}function Xo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function bh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Dh(t){return t.producerNode!==void 0}function Eh(t){let e=Object.create(U0);e.computation=t;let n=()=>{if(vh(e),Qc(e),e.value===Qo)throw e.error;return e.value};return n[Qt]=e,n}var Zc=Symbol("UNSET"),Yc=Symbol("COMPUTING"),Qo=Symbol("ERRORED"),U0=W(D({},Ri),{value:Zc,dirty:!0,error:null,equal:mh,producerMustRecompute(t){return t.value===Zc||t.value===Yc},producerRecomputeValue(t){if(t.value===Yc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Yc;let n=Ko(t),r;try{r=t.computation()}catch(i){r=Qo,t.error=i}finally{Kc(t,n)}if(e!==Zc&&e!==Qo&&r!==Qo&&t.equal(e,r)){t.value=e;return}t.value=r,t.version++}});function $0(){throw new Error}var Ih=$0;function xh(){Ih()}function Mh(t){Ih=t}var H0=null;function Sh(t){let e=Object.create(Oh);e.value=t;let n=()=>(Qc(e),e.value);return n[Qt]=e,n}function el(t,e){wh()||xh(),t.equal(t.value,e)||(t.value=e,z0(t))}function Th(t,e){wh()||xh(),el(t,e(t.value))}var Oh=W(D({},Ri),{equal:mh,value:void 0});function z0(t){t.version++,j0(),_h(t),H0?.()}function F(t){return typeof t=="function"}function Er(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var es=Er(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ki(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var be=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(F(r))try{r()}catch(o){e=o instanceof es?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Ah(o)}catch(s){e=e??[],s instanceof es?e=[...e,...s.errors]:e.push(s)}}if(e)throw new es(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Ah(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ki(n,e)}remove(e){let{_finalizers:n}=this;n&&ki(n,e),e instanceof t&&e._removeParent(this)}};be.EMPTY=(()=>{let t=new be;return t.closed=!0,t})();var tl=be.EMPTY;function ts(t){return t instanceof be||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function Ah(t){F(t)?t():t.unsubscribe()}var _t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ir={setTimeout(t,e,...n){let{delegate:r}=Ir;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Ir;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ns(t){Ir.setTimeout(()=>{let{onUnhandledError:e}=_t;if(e)e(t);else throw t})}function Fi(){}var Nh=nl("C",void 0,void 0);function Ph(t){return nl("E",void 0,t)}function Rh(t){return nl("N",t,void 0)}function nl(t,e,n){return{kind:t,value:e,error:n}}var $n=null;function xr(t){if(_t.useDeprecatedSynchronousErrorHandling){let e=!$n;if(e&&($n={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=$n;if($n=null,n)throw r}}else t()}function kh(t){_t.useDeprecatedSynchronousErrorHandling&&$n&&($n.errorThrown=!0,$n.error=t)}var Hn=class extends be{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ts(e)&&e.add(this)):this.destination=W0}static create(e,n,r){return new Mr(e,n,r)}next(e){this.isStopped?il(Rh(e),this):this._next(e)}error(e){this.isStopped?il(Ph(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?il(Nh,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()}}},q0=Function.prototype.bind;function rl(t,e){return q0.call(t,e)}var ol=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){rs(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){rs(r)}else rs(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){rs(n)}}},Mr=class extends Hn{constructor(e,n,r){super();let i;if(F(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&_t.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&rl(e.next,o),error:e.error&&rl(e.error,o),complete:e.complete&&rl(e.complete,o)}):i=e}this.destination=new ol(i)}};function rs(t){_t.useDeprecatedSynchronousErrorHandling?kh(t):ns(t)}function G0(t){throw t}function il(t,e){let{onStoppedNotification:n}=_t;n&&Ir.setTimeout(()=>n(t,e))}var W0={closed:!0,next:Fi,error:G0,complete:Fi};var Sr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Qe(t){return t}function sl(...t){return al(t)}function al(t){return t.length===0?Qe:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var q=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=Y0(n)?n:new Mr(n,r,i);return xr(()=>{let{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 r=Fh(r),new r((i,o)=>{let s=new Mr({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Sr](){return this}pipe(...n){return al(n)(this)}toPromise(n){return n=Fh(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function Fh(t){var e;return(e=t??_t.Promise)!==null&&e!==void 0?e:Promise}function Z0(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}function Y0(t){return t&&t instanceof Hn||Z0(t)&&ts(t)}function cl(t){return F(t?.lift)}function Q(t){return e=>{if(cl(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 Z(t,e,n,r,i){return new ll(t,e,n,r,i)}var ll=class extends Hn{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Tr(){return Q((t,e)=>{let n=null;t._refCount++;let r=Z(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Or=class extends q{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,cl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new be;let n=this.getSubject();e.add(this.source.subscribe(Z(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=be.EMPTY)}return e}refCount(){return Tr()(this)}};var Lh=Er(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new is(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Lh}next(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){xr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:i,observers:o}=this;return r||i?tl:(this.currentObservers=null,o.push(n),new be(()=>{this.currentObservers=null,ki(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new q;return n.source=this,n}}return t.create=(e,n)=>new is(e,n),t})(),is=class extends he{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:tl}};var Ae=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var ul={now(){return(ul.delegate||Date).now()},delegate:void 0};var Li=class extends he{constructor(e=1/0,n=1/0,r=ul){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(e),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function Vh(t){return t&&F(t.schedule)}function dl(t){return t[t.length-1]}function os(t){return F(dl(t))?t.pop():void 0}function Rt(t){return Vh(dl(t))?t.pop():void 0}function jh(t,e){return typeof dl(t)=="number"?t.pop():e}function Uh(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function Bh(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")}function zn(t){return this instanceof zn?(this.v=t,this):new zn(t)}function $h(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(w){return Promise.resolve(w).then(h,d)}}function a(h,w){r[h]&&(i[h]=function(R){return new Promise(function(x,M){o.push([h,R,x,M])>1||c(h,R)})},w&&(i[h]=w(i[h])))}function c(h,w){try{l(r[h](w))}catch(R){f(o[0][3],R)}}function l(h){h.value instanceof zn?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,w){h(w),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Hh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Bh=="function"?Bh(t):t[Symbol.iterator](),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,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Ar=t=>t&&typeof t.length=="number"&&typeof t!="function";function ss(t){return F(t?.then)}function as(t){return F(t[Sr])}function cs(t){return Symbol.asyncIterator&&F(t?.[Symbol.asyncIterator])}function ls(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Q0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var us=Q0();function ds(t){return F(t?.[us])}function fs(t){return $h(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield zn(n.read());if(i)return yield zn(void 0);yield yield zn(r)}}finally{n.releaseLock()}})}function hs(t){return F(t?.getReader)}function le(t){if(t instanceof q)return t;if(t!=null){if(as(t))return K0(t);if(Ar(t))return J0(t);if(ss(t))return X0(t);if(cs(t))return zh(t);if(ds(t))return ew(t);if(hs(t))return tw(t)}throw ls(t)}function K0(t){return new q(e=>{let n=t[Sr]();if(F(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function J0(t){return new q(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,ns)})}function ew(t){return new q(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function zh(t){return new q(e=>{nw(t,e).catch(n=>e.error(n))})}function tw(t){return zh(fs(t))}function nw(t,e){var n,r,i,o;return Uh(this,void 0,void 0,function*(){try{for(n=Hh(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),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()})}function He(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function ps(t,e=0){return Q((n,r)=>{n.subscribe(Z(r,i=>He(r,t,()=>r.next(i),e),()=>He(r,t,()=>r.complete(),e),i=>He(r,t,()=>r.error(i),e)))})}function gs(t,e=0){return Q((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function qh(t,e){return le(t).pipe(gs(e),ps(e))}function Gh(t,e){return le(t).pipe(gs(e),ps(e))}function Wh(t,e){return new q(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Zh(t,e){return new q(n=>{let r;return He(n,e,()=>{r=t[us](),He(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>F(r?.return)&&r.return()})}function ms(t,e){if(!t)throw new Error("Iterable cannot be null");return new q(n=>{He(n,e,()=>{let r=t[Symbol.asyncIterator]();He(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Yh(t,e){return ms(fs(t),e)}function Qh(t,e){if(t!=null){if(as(t))return qh(t,e);if(Ar(t))return Wh(t,e);if(ss(t))return Gh(t,e);if(cs(t))return ms(t,e);if(ds(t))return Zh(t,e);if(hs(t))return Yh(t,e)}throw ls(t)}function ne(t,e){return e?Qh(t,e):le(t)}function k(...t){let e=Rt(t);return ne(t,e)}function Nr(t,e){let n=F(t)?t:()=>t,r=i=>i.error(n());return new q(e?i=>e.schedule(r,0,i):r)}function fl(t){return!!t&&(t instanceof q||F(t.lift)&&F(t.subscribe))}var Kt=Er(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function j(t,e){return Q((n,r)=>{let i=0;n.subscribe(Z(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:rw}=Array;function iw(t,e){return rw(e)?t(...e):t(e)}function Pr(t){return j(e=>iw(t,e))}var{isArray:ow}=Array,{getPrototypeOf:sw,prototype:aw,keys:cw}=Object;function ys(t){if(t.length===1){let e=t[0];if(ow(e))return{args:e,keys:null};if(lw(e)){let n=cw(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function lw(t){return t&&typeof t=="object"&&sw(t)===aw}function vs(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function Vi(...t){let e=Rt(t),n=os(t),{args:r,keys:i}=ys(t);if(r.length===0)return ne([],e);let o=new q(uw(r,e,i?s=>vs(i,s):Qe));return n?o.pipe(Pr(n)):o}function uw(t,e,n=Qe){return r=>{Kh(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=ne(t[c],e),u=!1;l.subscribe(Z(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Kh(t,e,n){t?He(n,t,e):e()}function Jh(t,e,n,r,i,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&e.complete()},h=R=>l{o&&e.next(R),l++;let x=!1;le(n(R,u++)).subscribe(Z(e,M=>{i?.(M),o?h(M):e.next(M)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&lw(M)):w(M)}f()}catch(M){e.error(M)}}))};return t.subscribe(Z(e,h,()=>{d=!0,f()})),()=>{a?.()}}function ge(t,e,n=1/0){return F(e)?ge((r,i)=>j((o,s)=>e(r,o,i,s))(le(t(r,i))),n):(typeof e=="number"&&(n=e),Q((r,i)=>Jh(r,i,t,n)))}function kt(t=1/0){return ge(Qe,t)}function Xh(){return kt(1)}function Rr(...t){return Xh()(ne(t,Rt(t)))}function _s(t){return new q(e=>{le(t()).subscribe(e)})}function hl(...t){let e=os(t),{args:n,keys:r}=ys(t),i=new q(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?vs(r,a):a),o.complete())}))}});return e?i.pipe(Pr(e)):i}var dw=["addListener","removeListener"],fw=["addEventListener","removeEventListener"],hw=["on","off"];function pl(t,e,n,r){if(F(n)&&(r=n,n=void 0),r)return pl(t,e,n).pipe(Pr(r));let[i,o]=mw(t)?fw.map(s=>a=>t[s](e,a,n)):pw(t)?dw.map(ep(t,e)):gw(t)?hw.map(ep(t,e)):[];if(!i&&Ar(t))return ge(s=>pl(s,e,n))(le(t));if(!i)throw new TypeError("Invalid event target");return new q(s=>{let a=(...c)=>s.next(1o(a)})}function ep(t,e){return n=>r=>t[n](e,r)}function pw(t){return F(t.addListener)&&F(t.removeListener)}function gw(t){return F(t.on)&&F(t.off)}function mw(t){return F(t.addEventListener)&&F(t.removeEventListener)}function yw(...t){let e=Rt(t),n=jh(t,1/0),r=t;return r.length?r.length===1?le(r[0]):kt(n)(ne(r,e)):Ne}function ze(t,e){return Q((n,r)=>{let i=0;n.subscribe(Z(r,o=>t.call(e,o,i++)&&r.next(o)))})}function wt(t){return Q((e,n)=>{let r=null,i=!1,o;r=e.subscribe(Z(n,void 0,void 0,s=>{o=le(t(s,wt(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function tp(t,e,n,r,i){return(o,s)=>{let a=n,c=e,l=0;o.subscribe(Z(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Jt(t,e){return F(e)?ge(t,e,1):ge(t,1)}function _n(t){return Q((e,n)=>{let r=!1;e.subscribe(Z(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function Xt(t){return t<=0?()=>Ne:Q((e,n)=>{let r=0;e.subscribe(Z(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function gl(t){return j(()=>t)}function ws(t=vw){return Q((e,n)=>{let r=!1;e.subscribe(Z(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function vw(){return new Kt}function wn(t){return Q((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function ct(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ze((i,o)=>t(i,o,r)):Qe,Xt(1),n?_n(e):ws(()=>new Kt))}function kr(t){return t<=0?()=>Ne:Q((e,n)=>{let r=[];e.subscribe(Z(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function ml(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ze((i,o)=>t(i,o,r)):Qe,kr(1),n?_n(e):ws(()=>new Kt))}function yl(t,e){return Q(tp(t,e,arguments.length>=2,!0))}function vl(...t){let e=Rt(t);return Q((n,r)=>{(e?Rr(t,n,e):Rr(t,n)).subscribe(r)})}function qe(t,e){return Q((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(Z(r,c=>{i?.unsubscribe();let l=0,u=o++;le(t(c,u)).subscribe(i=Z(r,d=>r.next(e?e(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function _l(t){return Q((e,n)=>{le(t).subscribe(Z(n,()=>n.complete(),Fi)),!n.closed&&e.subscribe(n)})}function Me(t,e,n){let r=F(t)||e||n?{next:t,error:e,complete:n}:t;return r?Q((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Z(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Qe}var Up="https://g.co/ng/security#xss",S=class extends Error{constructor(e,n){super(aa(e,n)),this.code=e}};function aa(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Qi(t){return{toString:t}.toString()}var Cs="__parameters__";function _w(t){return function(...n){if(t){let r=t(...n);for(let i in r)this[i]=r[i]}}}function $p(t,e,n){return Qi(()=>{let r=_w(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Cs)?c[Cs]:Object.defineProperty(c,Cs,{value:[]})[Cs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Je=globalThis;function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function ww(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function je(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(je).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n===-1?e:e.substring(0,n)}function Pl(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Cw=ie({__forward_ref__:ie});function rr(t){return t.__forward_ref__=rr,t.toString=function(){return je(this())},t}function Ve(t){return Hp(t)?t():t}function Hp(t){return typeof t=="function"&&t.hasOwnProperty(Cw)&&t.__forward_ref__===rr}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function se(t){return{providers:t.providers||[],imports:t.imports||[]}}function ca(t){return np(t,qp)||np(t,Gp)}function zp(t){return ca(t)!==null}function np(t,e){return t.hasOwnProperty(e)?t[e]:null}function bw(t){let e=t&&(t[qp]||t[Gp]);return e||null}function rp(t){return t&&(t.hasOwnProperty(ip)||t.hasOwnProperty(Dw))?t[ip]:null}var qp=ie({\u0275prov:ie}),ip=ie({\u0275inj:ie}),Gp=ie({ngInjectableDef:ie}),Dw=ie({ngInjectorDef:ie}),E=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=b({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Wp(t){return t&&!!t.\u0275providers}var Ew=ie({\u0275cmp:ie}),Iw=ie({\u0275dir:ie}),xw=ie({\u0275pipe:ie}),Mw=ie({\u0275mod:ie}),Rs=ie({\u0275fac:ie}),Bi=ie({__NG_ELEMENT_ID__:ie}),op=ie({__NG_ENV_ID__:ie});function $r(t){return typeof t=="string"?t:t==null?"":String(t)}function Sw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():$r(t)}function Tw(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new S(-200,t)}function Bu(t,e){throw new S(-201,!1)}var z=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(z||{}),Rl;function Zp(){return Rl}function Ge(t){let e=Rl;return Rl=t,e}function Yp(t,e,n){let r=ca(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&z.Optional)return null;if(e!==void 0)return e;Bu(t,"Injector")}var Ow={},$i=Ow,kl="__NG_DI_FLAG__",ks="ngTempTokenPath",Aw="ngTokenPath",Nw=/\n/gm,Pw="\u0275",sp="__source",Br;function Rw(){return Br}function Cn(t){let e=Br;return Br=t,e}function kw(t,e=z.Default){if(Br===void 0)throw new S(-203,!1);return Br===null?Yp(t,void 0,e):Br.get(t,e&z.Optional?null:void 0,e)}function _(t,e=z.Default){return(Zp()||kw)(Ve(t),e)}function C(t,e=z.Default){return _(t,la(e))}function la(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Fl(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):je(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Nw,` - `)}`}var Ki=Qp($p("Optional"),8);var ua=Qp($p("SkipSelf"),4);function Zn(t,e){let n=t.hasOwnProperty(Rs);return n?t[Rs]:null}function jw(t,e,n){if(t.length!==e.length)return!1;for(let r=0;rArray.isArray(n)?Uu(n,e):e(n))}function Kp(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Fs(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Uw(t,e){let n=[];for(let r=0;re;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function da(t,e,n){let r=Ji(t,e);return r>=0?t[r|1]=n:(r=~r,$w(t,r,e,n)),r}function wl(t,e){let n=Ji(t,e);if(n>=0)return t[n|1]}function Ji(t,e){return Hw(t,e,1)}function Hw(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(Ct(r))return!1;s=!0}}}}return Ct(r)||s}function Ct(t){return(t&1)===0}function Yw(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Ct(s)&&(e+=cp(o,i),i=""),r=s,o=o||!Ct(r);n++}return i!==""&&(e+=cp(o,i)),e}function tC(t){return t.map(eC).join(",")}function nC(t){let e=[],n=[],r=1,i=2;for(;r{let e=cg(t),n=W(D({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===eg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Vt.Emulated,styles:t.styles||We,_:null,schemas:t.schemas||null,tView:null,id:""});lg(n);let r=t.dependencies;return n.directiveDefs=Vs(r,!1),n.pipeDefs=Vs(r,!0),n.id=oC(n),n})}function rC(t){return In(t)||ig(t)}function iC(t){return t!==null}function ae(t){return Qi(()=>({type:t.type,bootstrap:t.bootstrap||We,declarations:t.declarations||We,imports:t.imports||We,exports:t.exports||We,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function lp(t,e){if(t==null)return Hr;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=En.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==En.None?[r,a]:r,e[o]=s):n[o]=r}return n}function oe(t){return Qi(()=>{let e=cg(t);return lg(e),e})}function ir(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function In(t){return t[Ew]||null}function ig(t){return t[Iw]||null}function og(t){return t[xw]||null}function sg(t){let e=In(t)||ig(t)||og(t);return e!==null?e.standalone:!1}function ag(t,e){let n=t[Mw]||null;if(!n&&e===!0)throw new Error(`Type ${je(t)} does not have '\u0275mod' property.`);return n}function cg(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Hr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||We,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:lp(t.inputs,e),outputs:lp(t.outputs),debugInfo:null}}function lg(t){t.features?.forEach(e=>e(t))}function Vs(t,e){if(!t)return null;let n=e?og:rC;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(iC)}function oC(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function fa(t){return{\u0275providers:t}}function sC(...t){return{\u0275providers:ug(!0,t),\u0275fromNgModule:!0}}function ug(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Uu(e,s=>{let a=s;Vl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&dg(i,o),n}function dg(t,e){for(let n=0;n{e(o,r)})}}function Vl(t,e,n,r){if(t=Ve(t),!t)return!1;let i=null,o=rp(t),s=!o&&In(t);if(!o&&!s){let c=t.ngModule;if(o=rp(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Vl(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Uu(o.imports,u=>{Vl(u,e,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&dg(l,e)}if(!a){let l=Zn(i)||(()=>new i);e({provide:i,useFactory:l,deps:We},i),e({provide:Xp,useValue:i,multi:!0},i),e({provide:zr,useValue:()=>_(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;Hu(c,u=>{e(u,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Hu(t,e){for(let n of t)Wp(n)&&(n=n.\u0275providers),Array.isArray(n)?Hu(n,e):e(n)}var aC=ie({provide:String,useValue:ie});function fg(t){return t!==null&&typeof t=="object"&&aC in t}function cC(t){return!!(t&&t.useExisting)}function lC(t){return!!(t&&t.useFactory)}function qr(t){return typeof t=="function"}function uC(t){return!!t.useClass}var ha=new E(""),Ts={},dC={},Cl;function zu(){return Cl===void 0&&(Cl=new Ls),Cl}var Be=class{},zi=class extends Be{get destroyed(){return this._destroyed}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,Bl(e,s=>this.processProvider(s)),this.records.set(Jp,Fr(void 0,this)),i.has("environment")&&this.records.set(Be,Fr(void 0,this));let o=this.records.get(ha);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Xp,We,z.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=K(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=Cn(this),r=Ge(void 0),i;try{return e()}finally{Cn(n),Ge(r)}}get(e,n=$i,r=z.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(op))return e[op](this);r=la(r);let i,o=Cn(this),s=Ge(void 0);try{if(!(r&z.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=mC(e)&&ca(e);l&&this.injectableDefInScope(l)?c=Fr(jl(e),Ts):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=r&z.Self?zu():this.parent;return n=r&z.Optional&&n===$i?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ks]=a[ks]||[]).unshift(je(e)),o)throw a;return Lw(a,e,"R3InjectorError",this.source)}else throw a}finally{Ge(s),Cn(o)}}resolveInjectorInitializers(){let e=K(null),n=Cn(this),r=Ge(void 0),i;try{let o=this.get(zr,We,z.Self);for(let s of o)s()}finally{Cn(n),Ge(r),K(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(je(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(e){e=Ve(e);let n=qr(e)?e:Ve(e&&e.provide),r=hC(e);if(!qr(e)&&e.multi===!0){let i=this.records.get(n);i||(i=Fr(void 0,Ts,!0),i.factory=()=>Fl(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=K(null);try{return n.value===Ts&&(n.value=dC,n.value=n.factory()),typeof n.value=="object"&&n.value&&gC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{K(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Ve(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function jl(t){let e=ca(t),n=e!==null?e.factory:Zn(t);if(n!==null)return n;if(t instanceof E)throw new S(204,!1);if(t instanceof Function)return fC(t);throw new S(204,!1)}function fC(t){if(t.length>0)throw new S(204,!1);let n=bw(t);return n!==null?()=>n.factory(t):()=>new t}function hC(t){if(fg(t))return Fr(void 0,t.useValue);{let e=hg(t);return Fr(e,Ts)}}function hg(t,e,n){let r;if(qr(t)){let i=Ve(t);return Zn(i)||jl(i)}else if(fg(t))r=()=>Ve(t.useValue);else if(lC(t))r=()=>t.useFactory(...Fl(t.deps||[]));else if(cC(t))r=()=>_(Ve(t.useExisting));else{let i=Ve(t&&(t.useClass||t.provide));if(pC(t))r=()=>new i(...Fl(t.deps));else return Zn(i)||jl(i)}return r}function Fr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function pC(t){return!!t.deps}function gC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function mC(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Bl(t,e){for(let n of t)Array.isArray(n)?Bl(n,e):n&&Wp(n)?Bl(n.\u0275providers,e):e(n)}function ft(t,e){t instanceof zi&&t.assertNotDestroyed();let n,r=Cn(t),i=Ge(void 0);try{return e()}finally{Cn(r),Ge(i)}}function pg(){return Zp()!==void 0||Rw()!=null}function yC(t){if(!pg())throw new S(-203,!1)}function vC(t){let e=Je.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function _C(t){return typeof t=="function"}var rn=0,$=1,L=2,Re=3,Dt=4,Ze=5,qi=6,js=7,Et=8,Gr=9,jt=10,me=11,Gi=12,up=13,Xr=14,ut=15,Yn=16,Lr=17,en=18,pa=19,gg=20,bn=21,bl=22,lt=23,ke=25,mg=1;var Qn=7,Bs=8,Wr=9,Ke=10,Us=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Us||{});function Dn(t){return Array.isArray(t)&&typeof t[mg]=="object"}function on(t){return Array.isArray(t)&&t[mg]===!0}function qu(t){return(t.flags&4)!==0}function ga(t){return t.componentOffset>-1}function ma(t){return(t.flags&1)===1}function xn(t){return!!t.template}function Ul(t){return(t[L]&512)!==0}var $l=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function yg(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function sn(){return vg}function vg(t){return t.type.prototype.ngOnChanges&&(t.setInput=CC),wC}sn.ngInherit=!0;function wC(){let t=wg(this),e=t?.current;if(e){let n=t.previous;if(n===Hr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function CC(t,e,n,r,i){let o=this.declaredInputs[r],s=wg(t)||bC(t,{previous:Hr,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new $l(l&&l.currentValue,n,c===Hr),yg(t,e,i,n)}var _g="__ngSimpleChanges__";function wg(t){return t[_g]||null}function bC(t,e){return t[_g]=e}var dp=null;var Ft=function(t,e,n){dp?.(t,e,n)},Cg="svg",DC="math";function Bt(t){for(;Array.isArray(t);)t=t[rn];return t}function bg(t,e){return Bt(e[t])}function ht(t,e){return Bt(e[t.index])}function Dg(t,e){return t.data[e]}function ya(t,e){return t[e]}function Tn(t,e){let n=e[t];return Dn(n)?n:n[rn]}function EC(t){return(t[L]&4)===4}function Gu(t){return(t[L]&128)===128}function IC(t){return on(t[Re])}function Zr(t,e){return e==null?null:t[e]}function Eg(t){t[Lr]=0}function Ig(t){t[L]&1024||(t[L]|=1024,Gu(t)&&_a(t))}function xC(t,e){for(;t>0;)e=e[Xr],t--;return e}function va(t){return!!(t[L]&9216||t[lt]?.dirty)}function Hl(t){t[jt].changeDetectionScheduler?.notify(8),t[L]&64&&(t[L]|=1024),va(t)&&_a(t)}function _a(t){t[jt].changeDetectionScheduler?.notify(0);let e=Kn(t);for(;e!==null&&!(e[L]&8192||(e[L]|=8192,!Gu(e)));)e=Kn(e)}function xg(t,e){if((t[L]&256)===256)throw new S(911,!1);t[bn]===null&&(t[bn]=[]),t[bn].push(e)}function MC(t,e){if(t[bn]===null)return;let n=t[bn].indexOf(e);n!==-1&&t[bn].splice(n,1)}function Kn(t){let e=t[Re];return on(e)?e[Re]:e}var B={lFrame:kg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Mg=!1;function SC(){return B.lFrame.elementDepthCount}function TC(){B.lFrame.elementDepthCount++}function OC(){B.lFrame.elementDepthCount--}function Sg(){return B.bindingsEnabled}function Tg(){return B.skipHydrationRootTNode!==null}function AC(t){return B.skipHydrationRootTNode===t}function NC(){B.skipHydrationRootTNode=null}function V(){return B.lFrame.lView}function _e(){return B.lFrame.tView}function A(t){return B.lFrame.contextLView=t,t[Et]}function N(t){return B.lFrame.contextLView=null,t}function Pe(){let t=Og();for(;t!==null&&t.type===64;)t=t.parent;return t}function Og(){return B.lFrame.currentTNode}function PC(){let t=B.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function or(t,e){let n=B.lFrame;n.currentTNode=t,n.isParent=e}function Wu(){return B.lFrame.isParent}function Zu(){B.lFrame.isParent=!1}function RC(){return B.lFrame.contextLView}function Ag(){return Mg}function fp(t){Mg=t}function sr(){let t=B.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function kC(){return B.lFrame.bindingIndex}function FC(t){return B.lFrame.bindingIndex=t}function wa(){return B.lFrame.bindingIndex++}function Yu(t){let e=B.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function LC(){return B.lFrame.inI18n}function VC(t,e){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=t,zl(e)}function jC(){return B.lFrame.currentDirectiveIndex}function zl(t){B.lFrame.currentDirectiveIndex=t}function BC(t){let e=B.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ng(){return B.lFrame.currentQueryIndex}function Qu(t){B.lFrame.currentQueryIndex=t}function UC(t){let e=t[$];return e.type===2?e.declTNode:e.type===1?t[Ze]:null}function Pg(t,e,n){if(n&z.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&z.Host);)if(i=UC(o),i===null||(o=o[Xr],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=B.lFrame=Rg();return r.currentTNode=e,r.lView=t,!0}function Ku(t){let e=Rg(),n=t[$];B.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Rg(){let t=B.lFrame,e=t===null?null:t.child;return e===null?kg(t):e}function kg(t){let 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 t!==null&&(t.child=e),e}function Fg(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Lg=Fg;function Ju(){let t=Fg();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 $C(t){return(B.lFrame.contextLView=xC(t,B.lFrame.contextLView))[Et]}function On(){return B.lFrame.selectedIndex}function Jn(t){B.lFrame.selectedIndex=t}function Xu(){let t=B.lFrame;return Dg(t.tView,t.selectedIndex)}function Ca(){B.lFrame.currentNamespace=Cg}function Vg(){HC()}function HC(){B.lFrame.currentNamespace=null}function zC(){return B.lFrame.currentNamespace}var jg=!0;function ba(){return jg}function Da(t){jg=t}function qC(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=vg(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Ea(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[c]<0&&(t[Lr]+=65536),(a>14>16&&(t[L]&3)===e&&(t[L]+=16384,hp(a,o)):hp(a,o)}var Ur=-1,Xn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function WC(t){return t instanceof Xn}function ZC(t){return(t.flags&8)!==0}function YC(t){return(t.flags&16)!==0}var El={},ql=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=la(r);let i=this.injector.get(e,El,r);return i!==El||n===El?i:this.parentInjector.get(e,n,r)}};function Ug(t){return t!==Ur}function $s(t){return t&32767}function QC(t){return t>>16}function Hs(t,e){let n=QC(t),r=e;for(;n>0;)r=r[Xr],n--;return r}var Gl=!0;function zs(t){let e=Gl;return Gl=t,e}var KC=256,$g=KC-1,Hg=5,JC=0,Lt={};function XC(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Bi)&&(r=n[Bi]),r==null&&(r=n[Bi]=JC++);let i=r&$g,o=1<>Hg)]|=o}function qs(t,e){let n=zg(t,e);if(n!==-1)return n;let r=e[$];r.firstCreatePass&&(t.injectorIndex=e.length,Il(r.data,t),Il(e,null),Il(r.blueprint,null));let i=ed(t,e),o=t.injectorIndex;if(Ug(i)){let s=$s(i),a=Hs(i,e),c=a[$].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=i,o}function Il(t,e){t.push(0,0,0,0,0,0,0,0,e)}function zg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ed(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=Yg(i),r===null)return Ur;if(n++,i=i[Xr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ur}function Wl(t,e,n){XC(t,e,n)}function eb(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+u,f=i?a+u:l;for(let h=d;h=c&&w.type===n)return h}if(i){let h=s[c];if(h&&xn(h)&&h.type===n)return c}return null}function er(t,e,n,r){let i=t[n],o=e.data;if(WC(i)){let s=i;s.resolving&&Tw(Sw(o[n]));let a=zs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Ge(s.injectImpl):null,u=Pg(t,r,z.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&qC(n,o[n],e)}finally{l!==null&&Ge(l),zs(a),s.resolving=!1,Lg()}}return i}function nb(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Bi)?t[Bi]:void 0;return typeof e=="number"?e>=0?e&$g:rb:e}function pp(t,e,n){let r=1<>Hg)]&r)}function gp(t,e){return!(t&z.Self)&&!(t&z.Host&&e)}var Wn=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Wg(this._tNode,this._lView,e,la(r),n)}};function rb(){return new Wn(Pe(),V())}function ei(t){return Qi(()=>{let e=t.prototype.constructor,n=e[Rs]||Zl(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Rs]||Zl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Zl(t){return Hp(t)?()=>{let e=Zl(Ve(t));return e&&e()}:Zn(t)}function ib(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[L]&2048&&!(s[L]&512);){let a=Zg(o,s,n,r|z.Self,Lt);if(a!==Lt)return a;let c=o.parent;if(!c){let l=s[gg];if(l){let u=l.get(n,Lt,r);if(u!==Lt)return u}c=Yg(s),s=s[Xr]}o=c}return i}function Yg(t){let e=t[$],n=e.type;return n===2?e.declTNode:n===1?t[Ze]:null}function td(t){return eb(Pe(),t)}function mp(t,e=null,n=null,r){let i=Qg(t,e,n,r);return i.resolveInjectorInitializers(),i}function Qg(t,e=null,n=null,r,i=new Set){let o=[n||We,sC(t)];return r=r||(typeof t=="object"?void 0:je(t)),new zi(o,e||zu(),r||null,i)}var qn=class qn{static create(e,n){if(Array.isArray(e))return mp({name:""},n,e,"");{let r=e.name??"";return mp({name:r},e.parent,e.providers,r)}}};qn.THROW_IF_NOT_FOUND=$i,qn.NULL=new Ls,qn.\u0275prov=b({token:qn,providedIn:"any",factory:()=>_(Jp)}),qn.__NG_ELEMENT_ID__=-1;var Se=qn;var ob=new E("");ob.__NG_ELEMENT_ID__=t=>{let e=Pe();if(e===null)throw new S(204,!1);if(e.type&2)return e.value;if(t&z.Optional)return null;throw new S(204,!1)};var sb="ngOriginalError";function xl(t){return t[sb]}var Kg=!0,nd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ab,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),Yl=class extends nd{constructor(e){super(),this._lView=e}onDestroy(e){return xg(this._lView,e),()=>MC(this._lView,e)}};function ab(){return new Yl(V())}var an=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ql=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,pg()&&(this.destroyRef=C(nd,{optional:!0})??void 0,this.pendingTasks=C(an,{optional:!0})??void 0)}emit(e){let n=K(null);try{super.next(e)}finally{K(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof be&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{e(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},U=Ql;function Gs(...t){}function Jg(t){let e,n;function r(){t=Gs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function yp(t){return queueMicrotask(()=>t()),()=>{t=Gs}}var rd="isAngularZone",Ws=rd+"_ID",cb=0,re=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new U(!1),this.onMicrotaskEmpty=new U(!1),this.onStable=new U(!1),this.onError=new U(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Kg}=e;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,db(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(rd)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,lb,Gs,Gs);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)}},lb={};function id(t){if(t._nesting==0&&!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 ub(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Jg(()=>{t.callbackScheduled=!1,Kl(t),t.isCheckStableRunning=!0,id(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Kl(t)}function db(t){let e=()=>{ub(t)},n=cb++;t._inner=t._inner.fork({name:"angular",properties:{[rd]:!0,[Ws]:n,[Ws+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(fb(c))return r.invokeTask(o,s,a,c);try{return vp(t),r.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),_p(t)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return vp(t),r.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!hb(c)&&e(),_p(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Kl(t),id(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Kl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function vp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _p(t){t._nesting--,id(t)}var Zs=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new U,this.onMicrotaskEmpty=new U,this.onStable=new U,this.onError=new U}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)}};function fb(t){return Xg(t,"__ignore_ng_zone__")}function hb(t){return Xg(t,"__scheduler_tick__")}function Xg(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function pb(t="zone.js",e){return t==="noop"?new Zs:t==="zone.js"?new re(e):t}var tn=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&xl(e);for(;n&&xl(n);)n=xl(n);return n||null}},gb=new E("",{providedIn:"root",factory:()=>{let t=C(re),e=C(tn);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function mb(){return ti(Pe(),V())}function ti(t,e){return new Ee(ht(t,e))}var Ee=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=mb;let t=e;return t})();function yb(t){return t instanceof Ee?t.nativeElement:t}function vb(){return this._results[Symbol.iterator]()}var Jl=class t{get changes(){return this._changes??=new U}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=vb)}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){this.dirty=!1;let r=Bw(e);(this._changesDetected=!jw(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function em(t){return(t.flags&128)===128}var tm=new Map,_b=0;function wb(){return _b++}function Cb(t){tm.set(t[pa],t)}function Xl(t){tm.delete(t[pa])}var wp="__ngContext__";function Mn(t,e){Dn(e)?(t[wp]=e[pa],Cb(e)):t[wp]=e}function nm(t){return im(t[Gi])}function rm(t){return im(t[Dt])}function im(t){for(;t!==null&&!on(t);)t=t[Dt];return t}var eu;function om(t){eu=t}function bb(){if(eu!==void 0)return eu;if(typeof document<"u")return document;throw new S(210,!1)}var Ia=new E("",{providedIn:"root",factory:()=>Db}),Db="ng",od=new E(""),pt=new E("",{providedIn:"platform",factory:()=>"unknown"});var CL=new E(""),sd=new E("",{providedIn:"root",factory:()=>bb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Eb="h",Ib="b";var xb=()=>null;function ad(t,e,n=!1){return xb(t,e,n)}var sm=!1,Mb=new E("",{providedIn:"root",factory:()=>sm});var bs;function Sb(){if(bs===void 0&&(bs=null,Je.trustedTypes))try{bs=Je.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return bs}function xa(t){return Sb()?.createHTML(t)||t}var Ds;function Tb(){if(Ds===void 0&&(Ds=null,Je.trustedTypes))try{Ds=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ds}function Cp(t){return Tb()?.createScriptURL(t)||t}var nn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Up})`}},tu=class extends nn{getTypeName(){return"HTML"}},nu=class extends nn{getTypeName(){return"Style"}},ru=class extends nn{getTypeName(){return"Script"}},iu=class extends nn{getTypeName(){return"URL"}},ou=class extends nn{getTypeName(){return"ResourceURL"}};function xt(t){return t instanceof nn?t.changingThisBreaksApplicationSecurity:t}function An(t,e){let n=Ob(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Up})`)}return n===e}function Ob(t){return t instanceof nn&&t.getTypeName()||null}function am(t){return new tu(t)}function cm(t){return new nu(t)}function lm(t){return new ru(t)}function um(t){return new iu(t)}function dm(t){return new ou(t)}function Ab(t){let e=new au(t);return Nb()?new su(e):e}var su=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(xa(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch{return null}}},au=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=xa(e),n}};function Nb(){try{return!!new window.DOMParser().parseFromString(xa(""),"text/html")}catch{return!1}}var Pb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ma(t){return t=String(t),t.match(Pb)?t:"unsafe:"+t}function cn(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Xi(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var fm=cn("area,br,col,hr,img,wbr"),hm=cn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pm=cn("rp,rt"),Rb=Xi(pm,hm),kb=Xi(hm,cn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fb=Xi(pm,cn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),bp=Xi(fm,kb,Fb,Rb),gm=cn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Lb=cn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vb=cn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),jb=Xi(gm,Lb,Vb),Bb=cn("script,style,template"),cu=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=Hb(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=$b(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Dp(e).toLowerCase();if(!bp.hasOwnProperty(n))return this.sanitizedSomething=!0,!Bb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=Dp(e).toLowerCase();bp.hasOwnProperty(n)&&!fm.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(Ep(e))}};function Ub(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $b(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw mm(e);return e}function Hb(t){let e=t.firstChild;if(e&&Ub(t,e))throw mm(e);return e}function Dp(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function mm(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var zb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qb=/([^\#-~ |!])/g;function Ep(t){return t.replace(/&/g,"&").replace(zb,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(qb,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Es;function ym(t,e){let n=null;try{Es=Es||Ab(t);let r=e?String(e):"";n=Es.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Es.getInertBodyElement(r)}while(r!==o);let a=new cu().sanitizeChildren(Ip(n)||n);return xa(a)}finally{if(n){let r=Ip(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ip(t){return"content"in t&&Gb(t)?t.content:null}function Gb(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function Sa(t){let e=_m();return e?e.sanitize(Ht.URL,t)||"":An(t,"URL")?xt(t):Ma($r(t))}function Wb(t){let e=_m();if(e)return Cp(e.sanitize(Ht.RESOURCE_URL,t)||"");if(An(t,"ResourceURL"))return Cp(xt(t));throw new S(904,!1)}function Zb(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Wb:Sa}function vm(t,e,n){return Zb(e,n)(t)}function _m(){let t=V();return t&&t[jt].sanitizer}var Yb=/^>|^->||--!>|)/g,Kb="\u200B$1\u200B";function Jb(t){return t.replace(Yb,e=>e.replace(Qb,Kb))}function bL(t){return t.ownerDocument.defaultView}function wm(t){return t.ownerDocument}function Cm(t){return t instanceof Function?t():t}function Xb(t){return(t??C(Se)).get(pt)==="browser"}var Ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ut||{}),eD;function cd(t,e){return eD(t,e)}function Vr(t,e,n,r,i){if(r!=null){let o,s=!1;on(r)?o=r:Dn(r)&&(s=!0,r=r[rn]);let a=Bt(r);t===0&&n!==null?i==null?Mm(e,n,a):Ys(e,n,a,i||null,!0):t===1&&n!==null?Ys(e,n,a,i||null,!0):t===2?pD(e,a,s):t===3&&e.destroyNode(a),o!=null&&mD(e,t,o,n,i)}}function tD(t,e){return t.createText(e)}function nD(t,e,n){t.setValue(e,n)}function rD(t,e){return t.createComment(Jb(e))}function bm(t,e,n){return t.createElement(e,n)}function iD(t,e){Dm(t,e),e[rn]=null,e[Ze]=null}function oD(t,e,n,r,i,o){r[rn]=i,r[Ze]=e,Oa(t,r,n,1,i,o)}function Dm(t,e){e[jt].changeDetectionScheduler?.notify(9),Oa(t,e,e[me],2,null,null)}function sD(t){let e=t[Gi];if(!e)return Ml(t[$],t);for(;e;){let n=null;if(Dn(e))n=e[Gi];else{let r=e[Ke];r&&(n=r)}if(!n){for(;e&&!e[Dt]&&e!==t;)Dn(e)&&Ml(e[$],e),e=e[Re];e===null&&(e=t),Dn(e)&&Ml(e[$],e),n=e&&e[Dt]}e=n}}function aD(t,e,n,r){let i=Ke+r,o=n.length;r>0&&(n[i-1][Dt]=e),r0&&(t[n-1][Dt]=r[Dt]);let o=Fs(t,Ke+e);iD(r[$],r);let s=o[en];s!==null&&s.detachView(o[$]),r[Re]=null,r[Dt]=null,r[L]&=-129}return r}function Im(t,e){if(!(e[L]&256)){let n=e[me];n.destroyNode&&Oa(t,e,n,3,null,null),sD(e)}}function Ml(t,e){if(e[L]&256)return;let n=K(null);try{e[L]&=-129,e[L]|=256,e[lt]&&Xc(e[lt]),lD(t,e),cD(t,e),e[$].type===1&&e[me].destroy();let r=e[Yn];if(r!==null&&on(e[Re])){r!==e[Re]&&ld(r,e);let i=e[en];i!==null&&i.detachView(t)}Xl(e)}finally{K(n)}}function cD(t,e){let n=t.cleanup,r=e[js];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[js]=null);let i=e[bn];if(i!==null){e[bn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Vt.None||o===Vt.Emulated)return null}return ht(r,n)}}function Ys(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Mm(t,e,n){t.appendChild(e,n)}function xp(t,e,n,r,i){r!==null?Ys(t,e,n,r,i):Mm(t,e,n)}function Sm(t,e){return t.parentNode(e)}function dD(t,e){return t.nextSibling(e)}function Tm(t,e,n){return hD(t,e,n)}function fD(t,e,n){return t.type&40?ht(t,n):null}var hD=fD,Mp;function Ta(t,e,n,r){let i=xm(t,r,e),o=e[me],s=r.parent||e[Ze],a=Tm(s,r,e);if(i!=null)if(Array.isArray(n))for(let c=0;cke&&Rm(t,e,ke,!1),Ft(s?2:0,i),n(r,i)}finally{Jn(o),Ft(s?3:1,i)}}function dd(t,e,n){if(qu(e)){let r=K(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function ID(t,e,n,r){let i=qm(e);i.push(n),t.firstCreatePass&&Gm(t).push(r,i.length-1)}function xD(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return Tg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Sp(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??={};let a,c=En.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Tp(r,n,l,a,c):Tp(r,n,l,a)}return r}function Tp(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function MD(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function ND(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;ga(n)&&jD(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||qs(n,e),Mn(r,e);let s=n.initialInputs;for(let a=i;a{_a(t.lView)},consumerOnSignalRead(){this.lView[lt]=this}});function JD(t){let e=t[lt]??Object.create(XD);return e.lView=t,e}var XD=W(D({},Ri),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Kn(t.lView);for(;e&&!Jm(e[$]);)e=Kn(e);e&&Ig(e)},consumerOnSignalRead(){this.lView[lt]=this}});function Jm(t){return t.type!==2}var eE=100;function Xm(t,e=!0,n=0){let r=t[jt],i=r.rendererFactory,o=!1;o||i.begin?.();try{tE(t,n)}catch(s){throw e&&Wm(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function tE(t,e){let n=Ag();try{fp(!0),pu(t,e);let r=0;for(;va(t);){if(r===eE)throw new S(103,!1);r++,pu(t,1)}}finally{fp(n)}}function nE(t,e,n,r){let i=e[L];if((i&256)===256)return;let o=!1,s=!1;!o&&e[jt].inlineEffectRunner?.flush(),Ku(e);let a=!0,c=null,l=null;o||(Jm(t)?(l=ZD(e),c=Ko(l)):yh()===null?(a=!1,l=JD(e),c=Ko(l)):e[lt]&&(Xc(e[lt]),e[lt]=null));try{Eg(e),FC(t.bindingStartIndex),n!==null&&Vm(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let h=t.preOrderCheckHooks;h!==null&&Os(e,h,null)}else{let h=t.preOrderHooks;h!==null&&As(e,h,0,null),Dl(e,0)}if(s||rE(e),ey(e,0),t.contentQueries!==null&&zm(t,e),!o)if(u){let h=t.contentCheckHooks;h!==null&&Os(e,h)}else{let h=t.contentHooks;h!==null&&As(e,h,1),Dl(e,1)}_D(t,e);let d=t.components;d!==null&&ny(e,d,0);let f=t.viewQuery;if(f!==null&&fu(2,f,r),!o)if(u){let h=t.viewCheckHooks;h!==null&&Os(e,h)}else{let h=t.viewHooks;h!==null&&As(e,h,2),Dl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[bl]){for(let h of e[bl])h();e[bl]=null}o||(e[L]&=-73)}catch(u){throw o||_a(e),u}finally{l!==null&&(Kc(l,c),a&&QD(l)),Ju()}}function ey(t,e){for(let n=nm(t);n!==null;n=rm(n))for(let r=Ke;r-1&&(lu(e,r),Fs(n,r))}this._attachedToViewContainer=!1}Im(this._lView[$],this._lView)}onDestroy(e){xg(this._lView,e)}markForCheck(){vd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Hl(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,Xm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ul(this._lView),n=this._lView[Yn];n!==null&&!e&&ld(n,this._lView),Dm(this._lView[$],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=e;let n=Ul(this._lView),r=this._lView[Yn];r!==null&&!n&&Em(r,this._lView),Hl(this._lView)}},dt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aE;let t=e;return t})(),oE=dt,sE=class extends oE{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=Ym(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new tr(i)}};function aE(){return Pa(Pe(),V())}function Pa(t,e){return t.type&4?new sE(e,t,ti(t,e)):null}var EL=new RegExp(`^(\\d+)*(${Ib}|${Eb})*(.*)`);var cE=()=>null;function gu(t,e){return cE(t,e)}var Yr=class{},_d=new E("",{providedIn:"root",factory:()=>!1});var ry=new E(""),iy=new E(""),mu=class{},Ks=class{};function lE(t){let e=Error(`No component factory found for ${je(t)}.`);return e[uE]=t,e}var uE="ngComponent";var yu=class{resolveComponentFactory(e){throw lE(e)}},Rd=class Rd{};Rd.NULL=new yu;var $t=Rd,Qr=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>dE();let t=e;return t})();function dE(){let t=V(),e=Pe(),n=Tn(e.index,t);return(Dn(n)?n:t)[me]}var fE=(()=>{let e=class e{};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Js(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Nm(t,n,o.join(" "))}}function _E(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=CE;let t=e;return t})();function CE(){let t=Pe();return sy(t,V())}var bE=ln,oy=class extends bE{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return ti(this._hostTNode,this._hostLView)}get injector(){return new Wn(this._hostTNode,this._hostLView)}get parentInjector(){let e=ed(this._hostTNode,this._hostLView);if(Ug(e)){let n=Hs(e,this._hostLView),r=$s(e),i=n[$].data[r+8];return new Wn(i,n)}else return new Wn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Ap(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Ke}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=gu(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,hu(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!_C(e),a;if(s)a=n;else{let w=n||{};a=w.index,r=w.injector,i=w.projectableNodes,o=w.environmentInjector||w.ngModuleRef}let c=s?e:new Kr(In(e)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let R=(s?l:this.parentInjector).get(Be,null);R&&(o=R)}let u=In(c.componentType??{}),d=gu(this._lContainer,u?.id??null),f=d?.firstChild??null,h=c.create(l,i,f,o);return this.insertImpl(h.hostView,a,hu(this._hostTNode,d)),h}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(IC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Re],l=new oy(c,c[Ze],c[Re]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return Qm(s,i,o,r),e.attachToViewContainerRef(),Kp(Sl(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Ap(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=lu(this._lContainer,n);r&&(Fs(Sl(this._lContainer),n),Im(r[$],r))}detach(e){let n=this._adjustIndex(e,-1),r=lu(this._lContainer,n);return r&&Fs(Sl(this._lContainer),n)!=null?new tr(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Ap(t){return t[Bs]}function Sl(t){return t[Bs]||(t[Bs]=[])}function sy(t,e){let n,r=e[t.index];return on(r)?n=r:(n=Hm(r,e,null,t),e[t.index]=n,Na(e,n)),EE(n,e,t,r),new oy(n,t,e)}function DE(t,e){let n=t[me],r=n.createComment(""),i=ht(e,t),o=Sm(n,i);return Ys(n,o,r,dD(n,i),!1),r}var EE=ME,IE=()=>!1;function xE(t,e,n){return IE(t,e,n)}function ME(t,e,n,r){if(t[Qn])return;let i;n.type&8?i=Bt(r):i=DE(e,n),t[Qn]=i}var _u=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=e[-c];for(let d=Ke;de.trim())}function ly(t,e,n){t.queries===null&&(t.queries=new Cu),t.queries.track(new bu(e,n))}function FE(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function wd(t,e){return t.queries.getByIndex(e)}function LE(t,e){let n=t[$],r=wd(n,e);return r.crossesNgTemplate?Du(n,t,e,[]):ay(n,t,r,e)}var Np=new Set;function ri(t){Np.has(t)||(Np.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function VE(t){return typeof t=="function"&&t[Qt]!==void 0}function Ra(t,e){ri("NgSignals");let n=Sh(t),r=n[Qt];return e?.equal&&(r.equal=e.equal),n.set=i=>el(r,i),n.update=i=>Th(r,i),n.asReadonly=jE.bind(n),n}function jE(){let t=this[Qt];if(t.readonlyFn===void 0){let e=()=>this();e[Qt]=t,t.readonlyFn=e}return t.readonlyFn}function uy(t){return VE(t)&&typeof t.set=="function"}function BE(t){let e=[],n=new Map;function r(i){let o=n.get(i);if(!o){let s=t(i);n.set(i,o=s.then(zE))}return o}return ta.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(l=>{i.template=l}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let l=i.styles.length,u=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(h=>{a[l+f]=h,u.splice(u.indexOf(d),1),u.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(l=>{a.push(l),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>qE(o));e.push(c)}),$E(),Promise.all(e).then(()=>{})}var ta=new Map,UE=new Set;function $E(){let t=ta;return ta=new Map,t}function HE(){return ta.size===0}function zE(t){return typeof t=="string"?t:t.text()}function qE(t){UE.delete(t)}function GE(t){return Object.getPrototypeOf(t.prototype).constructor}function Nn(t){let e=GE(t.type),n=!0,r=[t];for(;e;){let i;if(xn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new S(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=Is(t.inputs),s.inputTransforms=Is(t.inputTransforms),s.declaredInputs=Is(t.declaredInputs),s.outputs=Is(t.outputs);let a=i.hostBindings;a&&KE(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&YE(t,c),l&&QE(t,l),WE(t,i),ww(t.outputs,i.outputs),xn(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Hi(i.hostAttrs,n=Hi(n,i.hostAttrs))}}function Is(t){return t===Hr?{}:t===We?[]:t}function YE(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function QE(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function KE(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function Cd(t){let e=t.inputConfig,n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}t.inputTransforms=n}var Sn=class{},Wi=class{};var na=class extends Sn{constructor(e,n,r,i=!0){super(),this.ngModuleType=e,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xs(this);let o=ag(e);this._bootstrapComponents=Cm(o.bootstrap),this._r3Injector=Qg(e,n,[{provide:Sn,useValue:this},{provide:$t,useValue:this.componentFactoryResolver},...r],je(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ra=class extends Wi{constructor(e){super(),this.moduleType=e}create(e){return new na(this.moduleType,e,[])}};function JE(t,e,n){return new na(t,e,n,!1)}var Eu=class extends Sn{constructor(e){super(),this.componentFactoryResolver=new Xs(this),this.instance=null;let n=new zi([...e.providers,{provide:Sn,useValue:this},{provide:$t,useValue:this.componentFactoryResolver}],e.parent||zu(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function ka(t,e,n=null){return new Eu({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function dy(t){return bd(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function XE(t,e){if(Array.isArray(t))for(let n=0;n{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),Gn=class Gn{constructor(){this.ngZone=C(re),this.scheduler=C(Yr),this.errorHandler=C(tn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of Gn.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[e]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[e](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&this.sequences.delete(e);for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};Gn.PHASES=[jr.EarlyRead,jr.Write,jr.MixedReadWrite,jr.Read],Gn.\u0275prov=b({token:Gn,providedIn:"root",factory:()=>new Gn});var Iu=Gn,xu=class{constructor(e,n,r,i){this.impl=e,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Dd(t,e){!e?.injector&&yC(Dd);let n=e?.injector??C(Se);return Xb(n)?(ri("NgAfterNextRender"),oI(t,n,e,!0)):sI}function iI(t,e){if(t instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[e]=t,n}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function oI(t,e,n,r){let i=e.get(my);i.impl??=e.get(Iu);let o=n?.phase??jr.MixedReadWrite,s=n?.manualCleanup!==!0?e.get(nd):null,a=new xu(i.impl,iI(t,o),r,s);return i.impl.register(a),a}var sI={destroy(){}};function cr(t,e,n,r){let i=V(),o=wa();if(It(i,o,e)){let s=_e(),a=Xu();BD(a,i,t,e,n,r)}return cr}function yy(t,e,n,r){return It(t,wa(),n)?e+$r(n)+r:gt}function aI(t,e,n,r,i,o){let s=kC(),a=Zi(t,s,n,i);return Yu(2),a?e+$r(n)+r+$r(i)+o:gt}function xs(t,e){return t<<17|e<<2}function nr(t){return t>>17&32767}function cI(t){return(t&2)==2}function lI(t,e){return t&131071|e<<17}function Mu(t){return t|2}function Jr(t){return(t&131068)>>2}function Tl(t,e){return t&-131069|e<<2}function uI(t){return(t&1)===1}function Su(t){return t|1}function dI(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=nr(s),c=Jr(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Ji(d,u)>0)&&(l=!0)}else u=n;if(i)if(c!==0){let f=nr(t[a+1]);t[r+1]=xs(f,a),f!==0&&(t[f+1]=Tl(t[f+1],r)),t[a+1]=lI(t[a+1],r)}else t[r+1]=xs(a,0),a!==0&&(t[a+1]=Tl(t[a+1],r)),a=r;else t[r+1]=xs(c,0),a===0?a=r:t[c+1]=Tl(t[c+1],r),c=r;l&&(t[r+1]=Mu(t[r+1])),Pp(t,u,r,!0),Pp(t,u,r,!1),fI(e,u,t,r,o),s=xs(a,c),o?e.classBindings=s:e.styleBindings=s}function fI(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Ji(o,e)>=0&&(n[r+1]=Su(n[r+1]))}function Pp(t,e,n,r){let i=t[n+1],o=e===null,s=r?nr(i):Jr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];hI(c,e)&&(a=!0,t[s+1]=r?Su(l):Mu(l)),s=r?nr(l):Jr(l)}a&&(t[n+1]=r?Mu(i):Su(i))}function hI(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ji(t,e)>=0:!1}var bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pI(t){return t.substring(bt.key,bt.keyEnd)}function gI(t){return mI(t),vy(t,_y(t,0,bt.textEnd))}function vy(t,e){let n=bt.textEnd;return n===e?-1:(e=bt.keyEnd=yI(t,bt.key=e,n),_y(t,e,n))}function mI(t){bt.key=0,bt.keyEnd=0,bt.value=0,bt.valueEnd=0,bt.textEnd=t.length}function _y(t,e,n){for(;e32;)e++;return e}function m(t,e,n){let r=V(),i=wa();if(It(r,i,e)){let o=_e(),s=Xu();Bm(o,s,r,t,e,r[me],n,!1)}return m}function Tu(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";md(t,n,o[s],s,r)}function wy(t,e,n){return by(t,e,n,!1),wy}function pe(t,e){return by(t,e,null,!0),pe}function lr(t){Dy(DI,Cy,t,!0)}function Cy(t,e){for(let n=gI(e);n>=0;n=vy(e,n))da(t,pI(e),!0)}function by(t,e,n,r){let i=V(),o=_e(),s=Yu(2);if(o.firstUpdatePass&&Iy(o,t,s,r),e!==gt&&It(i,s,e)){let a=o.data[On()];xy(o,a,i,i[me],t,i[s+1]=II(e,n),r,s)}}function Dy(t,e,n,r){let i=_e(),o=Yu(2);i.firstUpdatePass&&Iy(i,null,o,r);let s=V();if(n!==gt&&It(s,o,n)){let a=i.data[On()];if(My(a,r)&&!Ey(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Pl(c,n||"")),Tu(i,a,s,n,r)}else EI(i,a,s,s[me],s[o+1],s[o+1]=bI(t,e,n),r,o)}}function Ey(t,e){return e>=t.expandoStartIndex}function Iy(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[On()],s=Ey(t,n);My(o,r)&&e===null&&!s&&(e=!1),e=vI(i,o,e,r),dI(i,o,e,n,s,r)}}function vI(t,e,n,r){let i=BC(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Ol(null,t,e,n,r),n=Yi(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Ol(i,t,e,n,r),o===null){let c=_I(t,e,r);c!==void 0&&Array.isArray(c)&&(c=Ol(null,t,e,c[1],r),c=Yi(c,e.attrs,r),wI(t,e,r,c))}else o=CI(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function _I(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Jr(r)!==0)return t[nr(r)]}function wI(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[nr(i)]=r}function CI(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=n[i+1];f===gt&&(f=d?We:void 0);let h=d?wl(f,r):u===r?f:void 0;if(l&&!ia(h)&&(h=wl(c,r)),ia(h)&&(a=h,s))return a;let w=t[i+1];i=s?nr(w):Jr(w)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=wl(c,r))}return a}function ia(t){return t!==void 0}function II(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=je(xt(t)))),t}function My(t,e){return(t.flags&(e?8:16))!==0}function Sy(t,e,n){let r=V(),i=yy(r,t,e,n);Dy(da,Cy,i,!0)}function xI(t,e,n,r,i,o){let s=e.consts,a=Zr(s,i),c=ni(e,t,2,r,a);return gd(e,n,c,Zr(s,o)),c.attrs!==null&&Js(c,c.attrs,!1),c.mergedAttrs!==null&&Js(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function y(t,e,n,r){let i=V(),o=_e(),s=ke+t,a=i[me],c=o.firstCreatePass?xI(s,o,i,e,n,r):o.data[s],l=MI(o,i,c,a,e,t);i[s]=l;let u=ma(c);return or(c,!0),Pm(a,l,c),!eI(c)&&ba()&&Ta(o,i,l,c),SC()===0&&Mn(l,i),TC(),u&&(fd(o,i,c),dd(o,c,i)),r!==null&&hd(i,c),y}function v(){let t=Pe();Wu()?Zu():(t=t.parent,or(t,!1));let e=t;AC(e)&&NC(),OC();let n=_e();return n.firstCreatePass&&(Ea(n,t),qu(t)&&n.queries.elementEnd(t)),e.classesWithoutHost!=null&&ZC(e)&&Tu(n,e,V(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&YC(e)&&Tu(n,e,V(),e.stylesWithoutHost,!1),v}function de(t,e,n,r){return y(t,e,n,r),v(),de}var MI=(t,e,n,r,i,o)=>(Da(!0),bm(r,i,zC()));function SI(t,e,n,r,i){let o=e.consts,s=Zr(o,r),a=ni(e,t,8,"ng-container",s);s!==null&&Js(a,s,!0);let c=Zr(o,i);return gd(e,n,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function we(t,e,n){let r=V(),i=_e(),o=t+ke,s=i.firstCreatePass?SI(o,i,r,e,n):i.data[o];or(s,!0);let a=TI(i,r,s,t);return r[o]=a,ba()&&Ta(i,r,a,s),Mn(a,r),ma(s)&&(fd(i,r,s),dd(i,s,r)),n!=null&&hd(r,s),we}function Ce(){let t=Pe(),e=_e();return Wu()?Zu():(t=t.parent,or(t,!1)),e.firstCreatePass&&(Ea(e,t),qu(t)&&e.queries.elementEnd(t)),Ce}function mt(t,e,n){return we(t,e,n),Ce(),mt}var TI=(t,e,n,r)=>(Da(!0),rD(e[me],""));function G(){return V()}var oa="en-US";var OI=oa;function AI(t){typeof t=="string"&&(OI=t.toLowerCase().replace(/_/g,"-"))}var NI=(t,e,n)=>{};function O(t,e,n,r){let i=V(),o=_e(),s=Pe();return Ty(o,i,i[me],s,t,e,r),O}function PI(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Ty(t,e,n,r,i,o,s){let a=ma(r),l=t.firstCreatePass&&Gm(t),u=e[Et],d=qm(e),f=!0;if(r.type&3||s){let R=ht(r,e),x=s?s(R):R,M=d.length,X=s?ee=>s(Bt(ee[r.index])):r.index,ye=null;if(!s&&a&&(ye=PI(t,e,i,r.index)),ye!==null){let ee=ye.__ngLastListenerFn__||ye;ee.__ngNextListenerFn__=o,ye.__ngLastListenerFn__=o,f=!1}else{o=Fp(r,e,u,o),NI(R,i,o);let ee=n.listen(x,i,o);d.push(o,ee),l&&l.push(i,X,M,M+1)}}else o=Fp(r,e,u,o);let h=r.outputs,w;if(f&&h!==null&&(w=h[i])){let R=w.length;if(R)for(let x=0;x-1?Tn(t.index,e):e;vd(s,5);let a=kp(e,n,r,o),c=i.__ngNextListenerFn__;for(;c;)a=kp(e,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function g(t=1){return $C(t)}function RI(t,e){let n=null,r=Qw(t);for(let i=0;i=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function St(t){let e=RC();return ya(e,ke+t)}function P(t,e=""){let n=V(),r=_e(),i=t+ke,o=r.firstCreatePass?ni(r,i,1,e,null):r.data[i],s=LI(r,n,o,e,t);n[i]=s,ba()&&Ta(r,n,s,o),or(o,!1)}var LI=(t,e,n,r,i)=>(Da(!0),tD(e[me],r));function Ie(t){return fe("",t,""),Ie}function fe(t,e,n){let r=V(),i=yy(r,t,e,n);return i!==gt&&Zm(r,On(),i),fe}function Ed(t,e,n,r,i){let o=V(),s=aI(o,t,e,n,r,i);return s!==gt&&Zm(o,On(),s),Ed}function zt(t,e,n){uy(e)&&(e=e());let r=V(),i=wa();if(It(r,i,e)){let o=_e(),s=Xu();Bm(o,s,r,t,e,r[me],n,!1)}return zt}function un(t,e){let n=uy(t);return n&&t.set(e),n}function qt(t,e){let n=V(),r=_e(),i=Pe();return Ty(r,n,n[me],i,t,e),qt}function VI(t,e,n){let r=_e();if(r.firstCreatePass){let i=xn(t);Ou(n,r.data,r.blueprint,i,!0),Ou(e,r.data,r.blueprint,i,!1)}}function Ou(t,e,n,r,i){if(t=Ve(t),Array.isArray(t))for(let o=0;o>20;if(qr(t)||!t.multi){let h=new Xn(l,i,I),w=Nl(c,e,i?u:u+f,d);w===-1?(Wl(qs(a,s),o,c),Al(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[w]=h,s[w]=h)}else{let h=Nl(c,e,u+f,d),w=Nl(c,e,u,u+f),R=h>=0&&n[h],x=w>=0&&n[w];if(i&&!x||!i&&!R){Wl(qs(a,s),o,c);let M=UI(i?BI:jI,n.length,i,r,l);!i&&x&&(n[w].providerFactory=M),Al(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(M),s.push(M)}else{let M=Oy(n[i?w:h],l,!i&&r);Al(o,t,h>-1?h:w,M)}!i&&r&&x&&n[w].componentProviders++}}}function Al(t,e,n,r){let i=qr(e),o=uC(e);if(i||o){let c=(o?Ve(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Oy(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Nl(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>VI(r,i?i(t):t,e)}}var $I=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=ug(!1,r.type),o=i.length>0?ka([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=b({token:e,providedIn:"environment",factory:()=>new e(_(Be))});let t=e;return t})();function Ay(t){ri("NgStandalone"),t.getStandaloneInjector=e=>e.get($I).getOrCreateStandaloneInjector(t)}function Id(t,e,n){let r=t.\u0275cmp;r.directiveDefs=Vs(e,!1),r.pipeDefs=Vs(n,!0)}function xL(t,e,n){let r=sr()+t,i=V();return i[r]===gt?ar(i,r,n?e.call(n):e()):fy(i,r)}function Pn(t,e,n,r){return HI(V(),sr(),t,e,n,r)}function Ny(t,e,n,r,i,o,s,a,c,l){let u=sr()+t,d=V(),f=py(d,u,n,r,i,o);return hy(d,u+4,s,a,c)||f?ar(d,u+7,l?e.call(l,n,r,i,o,s,a,c):e(n,r,i,o,s,a,c)):fy(d,u+7)}function Py(t,e,n,r){return WI(V(),sr(),t,e,n,r)}function no(t,e){let n=t[e];return n===gt?void 0:n}function HI(t,e,n,r,i,o){let s=e+n;return It(t,s,i)?ar(t,s+1,o?r.call(o,i):r(i)):no(t,s+1)}function zI(t,e,n,r,i,o,s){let a=e+n;return Zi(t,a,i,o)?ar(t,a+2,s?r.call(s,i,o):r(i,o)):no(t,a+2)}function qI(t,e,n,r,i,o,s,a){let c=e+n;return hy(t,c,i,o,s)?ar(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):no(t,c+3)}function GI(t,e,n,r,i,o,s,a,c){let l=e+n;return py(t,l,i,o,s,a)?ar(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):no(t,l+4)}function WI(t,e,n,r,i,o){let s=e+n,a=!1;for(let c=0;c=0;n--){let r=e[n];if(t===r.name)return r}}function ML(t,e,n,r){let i=t+ke,o=V(),s=ya(o,i);return xd(o,i)?zI(o,sr(),e,s.transform,n,r,s):s.transform(n,r)}function oi(t,e,n,r,i){let o=t+ke,s=V(),a=ya(s,o);return xd(s,o)?qI(s,sr(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function Ry(t,e,n,r,i,o){let s=t+ke,a=V(),c=ya(a,s);return xd(a,s)?GI(a,sr(),e,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function xd(t,e){return t[$].data[e].pure}function dn(t,e){return Pa(t,e)}var Ms=null;function YI(t){Ms!==null&&(t.defaultEncapsulation!==Ms.defaultEncapsulation||t.preserveWhitespaces!==Ms.preserveWhitespaces)||(Ms=t)}var La=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Md=new E(""),ro=new E(""),Va=(()=>{let e=class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Sd||(QI(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{re.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(r)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},i)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:o})}whenStable(r,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,i,o),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(_(re),_(ja),_(ro))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),ja=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Sd?.findTestabilityInTree(this,r,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function QI(t){Sd=t}var Sd;function fr(t){return!!t&&typeof t.then=="function"}function ky(t){return!!t&&typeof t.subscribe=="function"}var Ba=new E(""),Fy=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=C(Ba,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(fr(s))r.push(s);else if(ky(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ua=new E("");function KI(){Mh(()=>{throw new S(600,!1)})}function JI(t){return t.isBoundToModule}var XI=10;function ex(t,e,n){try{let r=n();return fr(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}function Ly(t,e){return Array.isArray(e)?e.reduce(Ly,t):D(D({},t),e)}var tt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(gb),this.afterRenderManager=C(my),this.zonelessEnabled=C(_d),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=C(an).hasPendingTasks.pipe(j(r=>!r)),this._injector=C(Be)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(i=>{r=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Ks;if(!this._injector.get(Fy).done){let h=!o&&sg(r),w=!1;throw new S(405,w)}let a;o?a=r:a=this._injector.get($t).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=JI(a)?void 0:this._injector.get(Sn),l=i||a.selector,u=a.create(Se.NULL,[],l,c),d=u.location.nativeElement,f=u.injector.get(Md,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Ps(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let r=K(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,K(r),this.afterTick.next()}}synchronize(){let r=null;this._injector.destroyed||(r=this._injector.get(Qr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++va(r))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Ps(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Ua,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Ps(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new S(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ps(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function tx(t,e,n,r){if(!n&&!va(t))return;Xm(t,e,n&&!r?0:1)}var Nu=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},$a=(()=>{let e=class e{compileModuleSync(r){return new ra(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=ag(r),s=Cm(o.declarations).reduce((a,c)=>{let l=In(c);return l&&a.push(new Kr(l)),a},[]);return new Nu(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nx=new E("");function rx(t,e,n){let r=new ra(n);return Promise.resolve(r)}function Lp(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var ix=(()=>{let e=class e{constructor(){this.zone=C(re),this.changeDetectionScheduler=C(Yr),this.applicationRef=C(tt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ox({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new re(W(D({},Vy()),{scheduleInRootZone:n})),[{provide:re,useFactory:t},{provide:zr,multi:!0,useFactory:()=>{let r=C(ix,{optional:!0});return()=>r.initialize()}},{provide:zr,multi:!0,useFactory:()=>{let r=C(sx);return()=>{r.initialize()}}},e===!0?{provide:ry,useValue:!0}:[],{provide:iy,useValue:n??Kg}]}function Vy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var sx=(()=>{let e=class e{constructor(){this.subscription=new be,this.initialized=!1,this.zone=C(re),this.pendingTasks=C(an)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ax=(()=>{let e=class e{constructor(){this.appRef=C(tt),this.taskService=C(an),this.ngZone=C(re),this.zonelessEnabled=C(_d),this.disableScheduling=C(ry,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new be,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ws):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(iy,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Zs||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?yp:Jg;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ws+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(r),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,yp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cx(){return typeof $localize<"u"&&$localize.locale||oa}var Td=new E("",{providedIn:"root",factory:()=>C(Td,z.Optional|z.SkipSelf)||cx()});var Od=new E("");function Ss(t){return!!t.platformInjector}function lx(t){let e=Ss(t)?t.r3Injector:t.moduleRef.injector,n=e.get(re);return n.run(()=>{Ss(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(tn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ss(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Od);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else t.moduleRef.onDestroy(()=>{Ps(t.allPlatformModules,t.moduleRef),i.unsubscribe()});return ex(r,n,()=>{let o=e.get(Fy);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Td,oa);if(AI(s||oa),Ss(t)){let a=e.get(tt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return ux(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function ux(t,e){let n=t.injector.get(tt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new S(-403,!1);e.push(t)}var jy=(()=>{let e=class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){let o=i?.scheduleInRootZone,s=()=>pb(i?.ngZone,W(D({},Vy({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=i?.ignoreChangesOutsideZone,c=[ox({ngZoneFactory:s,ignoreChangesOutsideZone:a}),{provide:Yr,useExisting:ax}],l=JE(r.moduleType,this.injector,c);return lx({moduleRef:l,allPlatformModules:this._modules})}bootstrapModule(r,i=[]){let o=Ly({},i);return rx(this.injector,o,r).then(s=>this.bootstrapModuleFactory(s,o))}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let r=this._injector.get(Od,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(_(Se))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Ui=null,By=new E("");function dx(t){if(Ui&&!Ui.get(By,!1))throw new S(400,!1);KI(),Ui=t;let e=t.get(jy);return px(t),e}function Ad(t,e,n=[]){let r=`Platform: ${e}`,i=new E(r);return(o=[])=>{let s=Uy();if(!s||s.injector.get(By,!1)){let a=[...n,...o,{provide:i,useValue:!0}];t?t(a):dx(fx(a,r))}return hx(i)}}function fx(t=[],e){return Se.create({name:e,providers:[{provide:ha,useValue:"platform"},{provide:Od,useValue:new Set([()=>Ui=null])},...t]})}function hx(t){let e=Uy();if(!e)throw new S(401,!1);return e}function Uy(){return Ui?.get(jy)??null}function px(t){t.get(od,null)?.forEach(n=>n())}function SL(){return!1}var Rn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gx;let t=e;return t})();function gx(t){return mx(Pe(),V(),(t&16)===16)}function mx(t,e,n){if(ga(t)&&!n){let r=Tn(t.index,e);return new tr(r,r)}else if(t.type&175){let r=e[ut];return new tr(r,e)}return null}var Pu=class{constructor(){}supports(e){return dy(e)}create(e){return new Ru(e)}},yx=(t,e)=>e,Ru=class{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||yx}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;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 e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new ku(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?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=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new sa),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new sa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(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=this._identityChangesTail._nextIdentityChange=e,e}},ku=class{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}},Fu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(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;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},sa=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Fu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Vp(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;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){let 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)){let i=this._records.get(e);this._maybeAddToChanges(i,n);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new ju(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;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;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){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?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))}},ju=class{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 jp(){return new Nd([new Pu])}var Nd=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||jp()),deps:[[e,new ua,new Ki]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new S(901,!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:jp});let t=e;return t})();function Bp(){return new Pd([new Lu])}var Pd=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||Bp()),deps:[[e,new ua,new Ki]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i)return i;throw new S(901,!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:Bp});let t=e;return t})();var $y=Ad(null,"core",[]),Hy=(()=>{let e=class e{constructor(r){}};e.\u0275fac=function(i){return new(i||e)(_(tt))},e.\u0275mod=ae({type:e}),e.\u0275inj=se({});let t=e;return t})();function hr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ha(t,e){ri("NgSignals");let n=Eh(t);return e?.equal&&(n[Qt].equal=e.equal),n}function kn(t){let e=K(null);try{return t()}finally{K(e)}}function zy(t){let e=In(t);if(!e)return null;let n=new Kr(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Qy=null;function Tt(){return Qy}function Ky(t){Qy??=t}var za=class{};var Te=new E(""),Ud=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(_x),providedIn:"platform"});let t=e;return t})(),Jy=new E(""),_x=(()=>{let e=class e extends Ud{constructor(){super(),this._doc=C(Te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tt().getBaseHref(this._doc)}onPopState(r){let i=Tt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Tt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function $d(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function qy(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function fn(t){return t&&t[0]!=="?"?"?"+t:t}var hn=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(Hd),providedIn:"root"});let t=e;return t})(),Xy=new E(""),Hd=(()=>{let e=class e extends hn{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??C(Te).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return $d(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+fn(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+fn(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+fn(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(i){return new(i||e)(_(Ud),_(Xy,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ev=(()=>{let e=class e extends hn{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(r){let i=$d(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+fn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+fn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(i){return new(i||e)(_(Ud),_(Xy,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),ai=(()=>{let e=class e{constructor(r){this._subject=new U,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=bx(qy(Gy(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+fn(i))}normalize(r){return e.stripTrailingSlash(Cx(this._basePath,Gy(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+fn(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+fn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};e.normalizeQueryParams=fn,e.joinWithSlash=$d,e.stripTrailingSlash=qy,e.\u0275fac=function(i){return new(i||e)(_(hn))},e.\u0275prov=b({token:e,factory:()=>wx(),providedIn:"root"});let t=e;return t})();function wx(){return new ai(_(hn))}function Cx(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Gy(t){return t.replace(/\/index.html$/,"")}function bx(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function qa(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var kd=/\s+/,Wy=[],Gt=(()=>{let e=class e{constructor(r,i){this._ngEl=r,this._renderer=i,this.initialClasses=Wy,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(kd):Wy}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(kd):r}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let i of r)this._updateState(i,!0);else if(r!=null)for(let i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){let o=this.stateMap.get(r);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){r=r.trim(),r.length>0&&r.split(kd).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(I(Ee),I(Mt))},e.\u0275dir=oe({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Fd=class{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ue=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Fd(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Zy(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Zy(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(I(ln),I(dt),I(Nd))},e.\u0275dir=oe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Zy(t,e){t.context.$implicit=e.item}var Ye=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Ld,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Yy("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Yy("ngIfElse",r),this._elseTemplateRef=r,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(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(I(ln),I(dt))},e.\u0275dir=oe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Ld=class{constructor(){this.$implicit=null,this.ngIf=null}};function Yy(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${je(e)}'.`)}var tv=(()=>{let e=class e{constructor(r,i,o){this._ngEl=r,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create())}ngDoCheck(){if(this._differ){let r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r)}}_setStyle(r,i){let[o,s]=r.split("."),a=o.indexOf("-")===-1?void 0:Ut.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(r){r.forEachRemovedItem(i=>this._setStyle(i.key,null)),r.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),r.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(I(Ee),I(Pd),I(Mt))},e.\u0275dir=oe({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),ci=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(r,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(I(ln))},e.\u0275dir=oe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[sn]});let t=e;return t})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({});let t=e;return t})(),zd="browser",Dx="server";function Ex(t){return t===zd}function pr(t){return t===Dx}var nv=(()=>{let e=class e{};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>Ex(C(pt))?new Vd(C(Te),window):new jd});let t=e;return t})(),Vd=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=Ix(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let 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])}};function Ix(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}var jd=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},si=class{};var oo=class{},Wa=class{},$e=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let 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])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let 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 t?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){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var Gd=class{encodeKey(e){return rv(e)}encodeValue(e){return rv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function xx(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Mx=/%(\d[a-f0-9])/gi,Sx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rv(t){return encodeURIComponent(t).replace(Mx,(e,n)=>Sx[n]??e)}function Ga(t){return`${t}`}var Ln=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Gd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=xx(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let 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){let n=[];return Object.keys(e).forEach(r=>{let 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=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ga(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Ga(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Wd=class{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 Tx(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function iv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ov(t){return typeof Blob<"u"&&t instanceof Blob}function sv(t){return typeof FormData<"u"&&t instanceof FormData}function Ox(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var io=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(Tx(this.method)||i?(this.body=r!==void 0?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.transferCache=o.transferCache),this.headers??=new $e,this.context??=new Wd,!this.params)this.params=new Ln,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":af.set(h,e.setHeaders[h]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),u)),new t(n,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Vn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Vn||{}),so=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new $e,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Za=class t extends so{constructor(e={}){super(e),this.type=Vn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ao=class t extends so{constructor(e={}){super(e),this.type=Vn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Fn=class extends so{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},dv=200,Ax=204;function qd(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,transferCache:t.transferCache}}var Qd=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof io)s=r;else{let l;o.headers instanceof $e?l=o.headers:l=new $e(o.headers);let u;o.params&&(o.params instanceof Ln?u=o.params:u=new Ln({fromObject:o.params})),s=new io(r,i,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=k(s).pipe(Jt(l=>this.handler.handle(l)));if(r instanceof io||o.observe==="events")return a;let c=a.pipe(ze(l=>l instanceof ao));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(j(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(j(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(j(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new Ln().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,qd(o,i))}post(r,i,o={}){return this.request("POST",r,qd(o,i))}put(r,i,o={}){return this.request("PUT",r,qd(o,i))}};e.\u0275fac=function(i){return new(i||e)(_(oo))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Nx=/^\)\]\}',?\n/,Px="X-Request-URL";function av(t){if(t.url)return t.url;let e=Px.toLocaleLowerCase();return t.headers.get(e)}var Rx=(()=>{let e=class e{constructor(){this.fetchImpl=C(Zd,{optional:!0})?.fetch??((...r)=>globalThis.fetch(...r)),this.ngZone=C(re)}handle(r){return new q(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(Yd,s=>i.error(new Fn({error:s}))),()=>o.abort()})}doRequest(r,i,o){return vt(this,null,function*(){let s=this.createRequestInit(r),a;try{let w=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,D({signal:i},s)));kx(w),o.next({type:Vn.Sent}),a=yield w}catch(w){o.error(new Fn({error:w,status:w.status??0,statusText:w.statusText,url:r.urlWithParams,headers:w.headers}));return}let c=new $e(a.headers),l=a.statusText,u=av(a)??r.urlWithParams,d=a.status,f=null;if(r.reportProgress&&o.next(new Za({headers:c,status:d,statusText:l,url:u})),a.body){let w=a.headers.get("content-length"),R=[],x=a.body.getReader(),M=0,X,ye,ee=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>vt(this,null,function*(){for(;;){let{done:ve,value:at}=yield x.read();if(ve)break;if(R.push(at),M+=at.length,r.reportProgress){ye=r.responseType==="text"?(ye??"")+(X??=new TextDecoder).decode(at,{stream:!0}):void 0;let Dr=()=>o.next({type:Vn.DownloadProgress,total:w?+w:void 0,loaded:M,partialText:ye});ee?ee.run(Dr):Dr()}}}));let st=this.concatChunks(R,M);try{let ve=a.headers.get("Content-Type")??"";f=this.parseBody(r,st,ve)}catch(ve){o.error(new Fn({error:ve,headers:new $e(a.headers),status:a.status,statusText:a.statusText,url:av(a)??r.urlWithParams}));return}}d===0&&(d=f?dv:0),d>=200&&d<300?(o.next(new ao({body:f,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new Fn({error:f,headers:c,status:d,statusText:l,url:u}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(Nx,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Zd=class{};function Yd(){}function kx(t){t.then(Yd,Yd)}function fv(t,e){return e(t)}function Fx(t,e){return(n,r)=>e.intercept(n,{handle:i=>t(i,r)})}function Lx(t,e,n){return(r,i)=>ft(n,()=>e(r,o=>t(o,i)))}var Vx=new E(""),Kd=new E(""),jx=new E(""),hv=new E("",{providedIn:"root",factory:()=>!0});function Bx(){let t=null;return(e,n)=>{t===null&&(t=(C(Vx,{optional:!0})??[]).reduceRight(Fx,fv));let r=C(an);if(C(hv)){let o=r.add();return t(e,n).pipe(wn(()=>r.remove(o)))}else return t(e,n)}}var cv=(()=>{let e=class e extends oo{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=C(an),this.contributeToStability=C(hv)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Kd),...this.injector.get(jx,[])]));this.chain=i.reduceRight((o,s)=>Lx(o,s,this.injector),fv)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(wn(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(_(Wa),_(Be))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();var Ux=/^\)\]\}',?\n/;function $x(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var lv=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?ne(i.\u0275loadImpl()):k(null)).pipe(qe(()=>new q(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((x,M)=>a.setRequestHeader(x,M.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let x=r.detectContentTypeHeader();x!==null&&a.setRequestHeader("Content-Type",x)}if(r.responseType){let x=r.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let c=r.serializeBody(),l=null,u=()=>{if(l!==null)return l;let x=a.statusText||"OK",M=new $e(a.getAllResponseHeaders()),X=$x(a)||r.url;return l=new Za({headers:M,status:a.status,statusText:x,url:X}),l},d=()=>{let{headers:x,status:M,statusText:X,url:ye}=u(),ee=null;M!==Ax&&(ee=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=ee?dv:0);let st=M>=200&&M<300;if(r.responseType==="json"&&typeof ee=="string"){let ve=ee;ee=ee.replace(Ux,"");try{ee=ee!==""?JSON.parse(ee):null}catch(at){ee=ve,st&&(st=!1,ee={error:at,text:ee})}}st?(s.next(new ao({body:ee,headers:x,status:M,statusText:X,url:ye||void 0})),s.complete()):s.error(new Fn({error:ee,headers:x,status:M,statusText:X,url:ye||void 0}))},f=x=>{let{url:M}=u(),X=new Fn({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(X)},h=!1,w=x=>{h||(s.next(u()),h=!0);let M={type:Vn.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(M.total=x.total),r.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},R=x=>{let M={type:Vn.UploadProgress,loaded:x.loaded};x.lengthComputable&&(M.total=x.total),s.next(M)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),r.reportProgress&&(a.addEventListener("progress",w),c!==null&&a.upload&&a.upload.addEventListener("progress",R)),a.send(c),s.next({type:Vn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),r.reportProgress&&(a.removeEventListener("progress",w),c!==null&&a.upload&&a.upload.removeEventListener("progress",R)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(_(si))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),pv=new E(""),Hx="XSRF-TOKEN",zx=new E("",{providedIn:"root",factory:()=>Hx}),qx="X-XSRF-TOKEN",Gx=new E("",{providedIn:"root",factory:()=>qx}),Ya=class{},Wx=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=qa(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(_(Te),_(pt),_(zx))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function Zx(t,e){let n=t.url.toLowerCase();if(!C(pv)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=C(Ya).getToken(),i=C(Gx);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}var gv=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(gv||{});function Yx(t,e){return{\u0275kind:t,\u0275providers:e}}function mv(...t){let e=[Qd,lv,cv,{provide:oo,useExisting:cv},{provide:Wa,useFactory:()=>C(Rx,{optional:!0})??C(lv)},{provide:Kd,useValue:Zx,multi:!0},{provide:pv,useValue:!0},{provide:Ya,useClass:Wx}];for(let n of t)e.push(...n.\u0275providers);return fa(e)}var uv=new E("");function yv(){return Yx(gv.LegacyInterceptors,[{provide:uv,useFactory:Bx},{provide:Kd,useExisting:uv,multi:!0}])}var ef=class extends za{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tf=class t extends ef{static makeCurrent(){Ky(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=Kx();return n==null?null:Jx(n)}resetBaseElement(){co=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return qa(document.cookie,e)}},co=null;function Kx(){return co=co||document.querySelector("base"),co?co.getAttribute("href"):null}function Jx(t){return new URL(t,document.baseURI).pathname}var nf=class{addToWindow(e){Je.getAngularTestability=(r,i=!0)=>{let o=e.findTestabilityInTree(r,i);if(o==null)throw new S(5103,!1);return o},Je.getAllAngularTestabilities=()=>e.getAllTestabilities(),Je.getAllAngularRootElements=()=>e.getAllRootElements();let n=r=>{let i=Je.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};Je.frameworkStabilizers||(Je.frameworkStabilizers=[]),Je.frameworkStabilizers.push(n)}findTestabilityInTree(e,n,r){if(n==null)return null;let i=e.getTestability(n);return i??(r?Tt().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},Xx=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),rf=new E(""),Cv=(()=>{let e=class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(r,i),i}};e.\u0275fac=function(i){return new(i||e)(_(rf),_(re))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Qa=class{constructor(e){this._doc=e}},Jd="ng-app-id",bv=(()=>{let e=class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pr(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){let i=this.styleRef;i.get(r)?.elements?.forEach(o=>o.remove()),i.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Jd}="${this.appId}"]`);if(r?.length){let i=new Map;return r.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===r)return o.delete(i),s.removeAttribute(Jd),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Jd,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){let o=this.getStyleElement(r,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(_(Te),_(Ia),_(sd,8),_(pt))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Xd={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/Math/MathML"},sf=/%COMP%/g,Dv="%COMP%",eM=`_nghost-${Dv}`,tM=`_ngcontent-${Dv}`,nM=!0,rM=new E("",{providedIn:"root",factory:()=>nM});function iM(t){return tM.replace(sf,t)}function oM(t){return eM.replace(sf,t)}function Ev(t,e){return e.map(n=>n.replace(sf,t))}var vv=(()=>{let e=class e{constructor(r,i,o,s,a,c,l,u=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=pr(c),this.defaultRenderer=new lo(r,a,l,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Vt.ShadowDom&&(i=W(D({},i),{encapsulation:Vt.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Ka?o.applyToHost(r):o instanceof uo&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Vt.Emulated:s=new Ka(l,u,i,this.appId,d,a,c,f);break;case Vt.ShadowDom:return new of(l,u,r,i,a,c,this.nonce,f);default:s=new uo(l,u,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(_(Cv),_(bv),_(Ia),_(rM),_(Te),_(pt),_(re),_(sd))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),lo=class{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Xd[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(_v(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(_v(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new S(-5104,!1);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;let o=Xd[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=Xd[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&(Ut.DashCase|Ut.Important)?e.style.setProperty(n,r,i&Ut.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Ut.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=Tt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function _v(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var of=class extends lo{constructor(e,n,r,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Ev(i.id,i.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},uo=class extends lo{constructor(e,n,r,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?Ev(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ka=class extends uo{constructor(e,n,r,i,o,s,a,c){let l=i+"-"+r.id;super(e,n,r,o,s,a,c,l),this.contentAttr=iM(l),this.hostAttr=oM(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},sM=(()=>{let e=class e extends Qa{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(_(Te))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),wv=["alt","control","meta","shift"],aM={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},lM=(()=>{let e=class e extends Qa{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),wv.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(r,i){let o=aM[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),wv.forEach(a=>{if(a!==o){let c=cM[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(i){return new(i||e)(_(Te))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function uM(){tf.makeCurrent()}function dM(){return new tn}function fM(){return om(document),document}var hM=[{provide:pt,useValue:zd},{provide:od,useValue:uM,multi:!0},{provide:Te,useFactory:fM,deps:[]}],b2=Ad($y,"browser",hM),pM=new E(""),gM=[{provide:ro,useClass:nf,deps:[]},{provide:Md,useClass:Va,deps:[re,ja,ro]},{provide:Va,useClass:Va,deps:[re,ja,ro]}],mM=[{provide:ha,useValue:"root"},{provide:tn,useFactory:dM,deps:[]},{provide:rf,useClass:sM,multi:!0,deps:[Te,re,pt]},{provide:rf,useClass:lM,multi:!0,deps:[Te]},vv,bv,Cv,{provide:Qr,useExisting:vv},{provide:si,useClass:Xx,deps:[]},[]],D2=(()=>{let e=class e{constructor(r){}static withServerTransition(r){return{ngModule:e,providers:[{provide:Ia,useValue:r.appId}]}}};e.\u0275fac=function(i){return new(i||e)(_(pM,12))},e.\u0275mod=ae({type:e}),e.\u0275inj=se({providers:[...mM,...gM],imports:[Fe,Hy]});let t=e;return t})(),Iv=(()=>{let e=class e{constructor(r){this._doc=r,this._dom=Tt()}addTag(r,i=!1){return r?this._getOrCreateElement(r,i):null}addTags(r,i=!1){return r?r.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,i)),o),[]):[]}getTag(r){return r&&this._doc.querySelector(`meta[${r}]`)||null}getTags(r){if(!r)return[];let i=this._doc.querySelectorAll(`meta[${r}]`);return i?[].slice.call(i):[]}updateTag(r,i){if(!r)return null;i=i||this._parseSelector(r);let o=this.getTag(i);return o?this._setMetaElementAttributes(r,o):this._getOrCreateElement(r,!0)}removeTag(r){this.removeTagElement(this.getTag(r))}removeTagElement(r){r&&this._dom.remove(r)}_getOrCreateElement(r,i=!1){if(!i){let a=this._parseSelector(r),c=this.getTags(a).filter(l=>this._containsAttributes(r,l))[0];if(c!==void 0)return c}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(r,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(r,i){return Object.keys(r).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),r[o])),i}_parseSelector(r){let i=r.name?"name":"property";return`${i}="${r[i]}"`}_containsAttributes(r,i){return Object.keys(r).every(o=>i.getAttribute(this._getMetaKeyMap(o))===r[o])}_getMetaKeyMap(r){return yM[r]||r}};e.\u0275fac=function(i){return new(i||e)(_(Te))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yM={httpEquiv:"http-equiv"},Ja=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(i){return new(i||e)(_(Te))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var E2=new E("HammerLoader");var xv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=_(vM),o},providedIn:"root"});let t=e;return t})(),vM=(()=>{let e=class e extends xv{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case Ht.NONE:return i;case Ht.HTML:return An(i,"HTML")?xt(i):ym(this._doc,String(i)).toString();case Ht.STYLE:return An(i,"Style")?xt(i):i;case Ht.SCRIPT:if(An(i,"Script"))return xt(i);throw new S(5200,!1);case Ht.URL:return An(i,"URL")?xt(i):Ma(String(i));case Ht.RESOURCE_URL:if(An(i,"ResourceURL"))return xt(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(r){return am(r)}bypassSecurityTrustStyle(r){return cm(r)}bypassSecurityTrustScript(r){return lm(r)}bypassSecurityTrustUrl(r){return um(r)}bypassSecurityTrustResourceUrl(r){return dm(r)}};e.\u0275fac=function(i){return new(i||e)(_(Te))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var H="primary",Io=Symbol("RouteTitle"),df=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function pi(t){return new df(t)}function _M(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[o]===i)}else return t===e}function jv(t){return t.length>0?t[t.length-1]:null}function Bn(t){return fl(t)?t:fr(t)?ne(Promise.resolve(t)):k(t)}var CM={exact:Uv,subset:$v},Bv={exact:bM,subset:DM,ignored:()=>!0};function Sv(t,e,n){return CM[n.paths](t.root,e.root,n.matrixParams)&&Bv[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function bM(t,e){return Wt(t,e)}function Uv(t,e,n){if(!mr(t.segments,e.segments)||!tc(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!Uv(t.children[r],e.children[r],n))return!1;return!0}function DM(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Vv(t[n],e[n]))}function $v(t,e,n){return Hv(t,e,e.segments,n)}function Hv(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!mr(i,n)||e.hasChildren()||!tc(i,n,r))}else if(t.segments.length===n.length){if(!mr(t.segments,n)||!tc(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!$v(t.children[i],e.children[i],r))return!1;return!0}else{let i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!mr(t.segments,i)||!tc(t.segments,i,r)||!t.children[H]?!1:Hv(t.children[H],e,o,r)}}function tc(t,e,n){return e.every((r,i)=>Bv[n](t[i].parameters,r.parameters))}var gn=class{constructor(e=new J([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=pi(this.queryParams),this._queryParamMap}toString(){return xM.serialize(this)}},J=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nc(this)}},gr=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=pi(this.parameters),this._parameterMap}toString(){return qv(this)}};function EM(t,e){return mr(t,e)&&t.every((n,r)=>Wt(n.parameters,e[r].parameters))}function mr(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function IM(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===H&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==H&&(n=n.concat(e(i,r)))}),n}var xo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>new gi,providedIn:"root"});let t=e;return t})(),gi=class{parse(e){let n=new pf(e);return new gn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${fo(e.root,!0)}`,r=TM(e.queryParams),i=typeof e.fragment=="string"?`#${MM(e.fragment)}`:"";return`${n}${r}${i}`}},xM=new gi;function nc(t){return t.segments.map(e=>qv(e)).join("/")}function fo(t,e){if(!t.hasChildren())return nc(t);if(e){let n=t.children[H]?fo(t.children[H],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==H&&r.push(`${i}:${fo(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=IM(t,(r,i)=>i===H?[fo(t.children[H],!1)]:[`${i}:${fo(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[H]!=null?`${nc(t)}/${n[0]}`:`${nc(t)}/(${n.join("//")})`}}function zv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xa(t){return zv(t).replace(/%3B/gi,";")}function MM(t){return encodeURI(t)}function hf(t){return zv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rc(t){return decodeURIComponent(t)}function Tv(t){return rc(t.replace(/\+/g,"%20"))}function qv(t){return`${hf(t.path)}${SM(t.parameters)}`}function SM(t){return Object.entries(t).map(([e,n])=>`;${hf(e)}=${hf(n)}`).join("")}function TM(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Xa(n)}=${Xa(i)}`).join("&"):`${Xa(n)}=${Xa(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var OM=/^[^\/()?;#]+/;function af(t){let e=t.match(OM);return e?e[0]:""}var AM=/^[^\/()?;=#]+/;function NM(t){let e=t.match(AM);return e?e[0]:""}var PM=/^[^=?&#]+/;function RM(t){let e=t.match(PM);return e?e[0]:""}var kM=/^[^&#]+/;function FM(t){let e=t.match(kM);return e?e[0]:""}var pf=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){let 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("/");let 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[H]=new J(e,n)),r}parseSegment(){let e=af(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(e),new gr(rc(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=NM(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=af(this.remaining);i&&(r=i,this.capture(r))}e[rc(n)]=rc(r)}parseQueryParam(e){let n=RM(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=FM(this.remaining);s&&(r=s,this.capture(r))}let i=Tv(n),o=Tv(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){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=af(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=H);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[H]:new J([],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):!1}capture(e){if(!this.consumeOptional(e))throw new S(4011,!1)}};function Gv(t){return t.segments.length>0?new J([],{[H]:t}):t}function Wv(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=Wv(i);if(r===H&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[r]=o)}let n=new J(t.segments,e);return LM(n)}function LM(t){if(t.numberOfChildren===1&&t.children[H]){let e=t.children[H];return new J(t.segments.concat(e.segments),e.children)}return t}function yr(t){return t instanceof gn}function VM(t,e,n=null,r=null){let i=Zv(t);return Yv(i,e,n,r)}function Zv(t){let e;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new J(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=Gv(r);return e??i}function Yv(t,e,n,r){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return cf(i,i,i,n,r);let o=jM(e);if(o.toRoot())return cf(i,i,new J([],{}),n,r);let s=BM(o,i,t),a=s.processChildren?go(s.segmentGroup,s.index,o.commands):Kv(s.segmentGroup,s.index,o.commands);return cf(i,s.segmentGroup,a,n,r)}function ic(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vo(t){return typeof t=="object"&&t!=null&&t.outlets}function cf(t,e,n,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===e?s=n:s=Qv(t,e,n);let a=Gv(Wv(s));return new gn(a,o,i)}function Qv(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=Qv(o,e,n)}),new J(t.segments,r)}var oc=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&ic(r[0]))throw new S(4003,!1);let i=r.find(vo);if(i&&i!==jv(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function jM(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new oc(!0,0,t);let e=0,n=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new oc(n,e,r)}var di=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function BM(t,e,n){if(t.isAbsolute)return new di(e,!0,0);if(!n)return new di(e,!1,NaN);if(n.parent===null)return new di(n,!0,0);let r=ic(t.commands[0])?0:1,i=n.segments.length-1+r;return UM(n,i,t.numberOfDoubleDots)}function UM(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new di(r,!1,i-o)}function $M(t){return vo(t[0])?t[0].outlets:{[H]:t}}function Kv(t,e,n){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return go(t,e,n);let r=HM(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==H)&&t.children[H]&&t.numberOfChildren===1&&t.children[H].segments.length===0){let o=go(t.children[H],e,n);return new J(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Kv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function HM(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=t.segments[i],a=n[r];if(vo(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Av(c,l,s))return o;r+=2}else{if(!Av(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function gf(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=gf(new J([],{}),0,r))}),e}function Ov(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function Av(t,e,n){return t==n.path&&Wt(e,n.parameters)}var mo="imperative",Oe=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Oe||{}),yt=class{constructor(e,n){this.id=e,this.url=n}},mi=class extends yt{constructor(e,n,r="imperative",i=null){super(e,n),this.type=Oe.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Nt=class extends yt{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=Oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},rt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(rt||{}),sc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(sc||{}),pn=class extends yt{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=Oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},jn=class extends yt{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=Oe.NavigationSkipped}},_o=class extends yt{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=Oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ac=class extends yt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mf=class extends yt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yf=class extends yt{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},vf=class extends yt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_f=class extends yt{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=Oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wf=class{constructor(e){this.route=e,this.type=Oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cf=class{constructor(e){this.route=e,this.type=Oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bf=class{constructor(e){this.snapshot=e,this.type=Oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Df=class{constructor(e){this.snapshot=e,this.type=Oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ef=class{constructor(e){this.snapshot=e,this.type=Oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},If=class{constructor(e){this.snapshot=e,this.type=Oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cc=class{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r,this.type=Oe.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},wo=class{},yi=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function qM(t,e){return t.providers&&!t._injector&&(t._injector=ka(t.providers,e,`Route: ${t.path}`)),t._injector??e}function At(t){return t.outlet||H}function GM(t,e){let n=t.filter(r=>At(r)===e);return n.push(...t.filter(r=>At(r)!==e)),n}function Mo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var xf=class{get injector(){return Mo(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new So(this.rootInjector),this.attachRef=null}},So=(()=>{let e=class e{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new xf(this.rootInjector),this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(i){return new(i||e)(_(Be))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),lc=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=Mf(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=Mf(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=Sf(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Sf(e,this._root).map(n=>n.value)}};function Mf(t,e){if(t===e.value)return e;for(let n of e.children){let r=Mf(t,n);if(r)return r}return null}function Sf(t,e){if(t===e.value)return[e];for(let n of e.children){let r=Sf(t,n);if(r.length)return r.unshift(e),r}return[]}var nt=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function ui(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var uc=class extends lc{constructor(e,n){super(e),this.snapshot=n,Lf(this,e)}toString(){return this.snapshot.toString()}};function Jv(t){let e=WM(t),n=new Ae([new gr("",{})]),r=new Ae({}),i=new Ae({}),o=new Ae({}),s=new Ae(""),a=new vr(n,r,o,s,i,H,t,e.root);return a.snapshot=e.root,new uc(new nt(a,[]),e)}function WM(t){let e={},n={},r={},i="",o=new fi([],e,r,i,n,H,t,null,{});return new fc("",new nt(o,[]))}var vr=class{constructor(e,n,r,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j(l=>l[Io]))??k(void 0),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}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.params.pipe(j(e=>pi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(e=>pi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function dc(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:D(D({},e.params),t.params),data:D(D({},e.data),t.data),resolve:D(D(D(D({},t.data),e.data),i?.data),t._resolvedData)}:r={params:D({},t.params),data:D({},t.data),resolve:D(D({},t.data),t._resolvedData??{})},i&&e_(i)&&(r.resolve[Io]=i.title),r}var fi=class{get title(){return this.data?.[Io]}constructor(e,n,r,i,o,s,a,c,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=pi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},fc=class extends lc{constructor(e,n){super(n),this.url=e,Lf(this,n)}toString(){return Xv(this._root)}};function Lf(t,e){e.value._routerState=t,e.children.forEach(n=>Lf(t,n))}function Xv(t){let e=t.children.length>0?` { ${t.children.map(Xv).join(", ")} } `:"";return`${t.value}${e}`}function lf(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Wt(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),Wt(e.params,n.params)||t.paramsSubject.next(n.params),wM(e.url,n.url)||t.urlSubject.next(n.url),Wt(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Tf(t,e){let n=Wt(t.params,e.params)&&EM(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Tf(t.parent,e.parent))}function e_(t){return typeof t.title=="string"||t.title===null}var ZM=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=H,this.activateEvents=new U,this.deactivateEvents=new U,this.attachEvents=new U,this.detachEvents=new U,this.parentContexts=C(So),this.location=C(ln),this.changeDetector=C(Rn),this.inputBinder=C(vc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Of(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=oe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[sn]});let t=e;return t})(),Of=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===vr?this.route:e===So?this.childContexts:this.parent.get(e,n)}},vc=new E(""),Nv=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:i}=r,o=Vi([i.queryParams,i.params,i.data]).pipe(qe(([s,a,c],l)=>(c=D(D(D({},s),a),c),l===0?k(c):Promise.resolve(c)))).subscribe(s=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(r);return}let a=zy(i.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function YM(t,e,n){let r=Co(t,e._root,n?n._root:void 0);return new uc(r,e)}function Co(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=QM(t,e,n);return new nt(r,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Co(t,a)),s}}let r=KM(e.value),i=e.children.map(o=>Co(t,o));return new nt(r,i)}}function QM(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Co(t,r,i);return Co(t,r)})}function KM(t){return new vr(new Ae(t.url),new Ae(t.params),new Ae(t.queryParams),new Ae(t.fragment),new Ae(t.data),t.outlet,t.component,t)}var bo=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},t_="ngNavigationCancelingError";function hc(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=yr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=n_(!1,rt.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function n_(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[t_]=!0,n.cancellationCode=e,n}function JM(t){return r_(t)&&yr(t.url)}function r_(t){return!!t&&t[t_]}var XM=(t,e,n,r)=>j(i=>(new Af(e,i.targetRouterState,i.currentRouterState,n,r).activate(t),i)),Af=class{constructor(e,n,r,i,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),lf(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=ui(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(i===o)if(i.component){let 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){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=ui(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=ui(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(e,n,r){let i=ui(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new If(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Df(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(lf(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let 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),lf(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,r)}},pc=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},hi=class{constructor(e,n){this.component=e,this.route=n}};function eS(t,e,n){let r=t._root,i=e?e._root:null;return ho(r,i,n,[r.value])}function tS(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function _i(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!zp(t)?t:e.get(t):r}function ho(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ui(e);return t.children.forEach(s=>{nS(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>yo(a,n.getContext(s),i)),i}function nS(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=rS(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new pc(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ho(t,e,a?a.children:null,r,i):ho(t,e,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hi(a.outlet.component,s))}else s&&yo(e,a,i),i.canActivateChecks.push(new pc(r)),o.component?ho(t,null,a?a.children:null,r,i):ho(t,null,n,r,i);return i}function rS(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!mr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mr(t.url,e.url)||!Wt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tf(t,e)||!Wt(t.queryParams,e.queryParams);case"paramsChange":default:return!Tf(t,e)}}function yo(t,e,n){let r=ui(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?yo(s,e.children.getContext(o),n):yo(s,null,n):yo(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new hi(e.outlet.component,i)):n.canDeactivateChecks.push(new hi(null,i)):n.canDeactivateChecks.push(new hi(null,i))}function To(t){return typeof t=="function"}function iS(t){return typeof t=="boolean"}function oS(t){return t&&To(t.canLoad)}function sS(t){return t&&To(t.canActivate)}function aS(t){return t&&To(t.canActivateChild)}function cS(t){return t&&To(t.canDeactivate)}function lS(t){return t&&To(t.canMatch)}function i_(t){return t instanceof Kt||t?.name==="EmptyError"}var ec=Symbol("INITIAL_VALUE");function vi(){return qe(t=>Vi(t.map(e=>e.pipe(Xt(1),vl(ec)))).pipe(j(e=>{for(let n of e)if(n!==!0){if(n===ec)return ec;if(n===!1||uS(n))return n}return!0}),ze(e=>e!==ec),Xt(1)))}function uS(t){return yr(t)||t instanceof bo}function dS(t,e){return ge(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?k(W(D({},n),{guardsResult:!0})):fS(s,r,i,t).pipe(ge(a=>a&&iS(a)?hS(r,o,t,e):k(a)),j(a=>W(D({},n),{guardsResult:a})))})}function fS(t,e,n,r){return ne(t).pipe(ge(i=>vS(i.component,i.route,n,e,r)),ct(i=>i!==!0,!0))}function hS(t,e,n,r){return ne(e).pipe(Jt(i=>Rr(gS(i.route.parent,r),pS(i.route,r),yS(t,i.path,n),mS(t,i.route,n))),ct(i=>i!==!0,!0))}function pS(t,e){return t!==null&&e&&e(new Ef(t)),k(!0)}function gS(t,e){return t!==null&&e&&e(new bf(t)),k(!0)}function mS(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return k(!0);let i=r.map(o=>_s(()=>{let s=Mo(e)??n,a=_i(o,s),c=sS(a)?a.canActivate(e,t):ft(s,()=>a(e,t));return Bn(c).pipe(ct())}));return k(i).pipe(vi())}function yS(t,e,n){let r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>tS(s)).filter(s=>s!==null).map(s=>_s(()=>{let a=s.guards.map(c=>{let l=Mo(s.node)??n,u=_i(c,l),d=aS(u)?u.canActivateChild(r,t):ft(l,()=>u(r,t));return Bn(d).pipe(ct())});return k(a).pipe(vi())}));return k(o).pipe(vi())}function vS(t,e,n,r,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let s=o.map(a=>{let c=Mo(e)??i,l=_i(a,c),u=cS(l)?l.canDeactivate(t,e,n,r):ft(c,()=>l(t,e,n,r));return Bn(u).pipe(ct())});return k(s).pipe(vi())}function _S(t,e,n,r){let i=e.canLoad;if(i===void 0||i.length===0)return k(!0);let o=i.map(s=>{let a=_i(s,t),c=oS(a)?a.canLoad(e,n):ft(t,()=>a(e,n));return Bn(c)});return k(o).pipe(vi(),o_(r))}function o_(t){return sl(Me(e=>{if(typeof e!="boolean")throw hc(t,e)}),j(e=>e===!0))}function wS(t,e,n,r){let i=e.canMatch;if(!i||i.length===0)return k(!0);let o=i.map(s=>{let a=_i(s,t),c=lS(a)?a.canMatch(e,n):ft(t,()=>a(e,n));return Bn(c)});return k(o).pipe(vi(),o_(r))}var Do=class{constructor(e){this.segmentGroup=e||null}},Eo=class extends Error{constructor(e){super(),this.urlTree=e}};function li(t){return Nr(new Do(t))}function CS(t){return Nr(new S(4e3,!1))}function bS(t){return Nr(n_(!1,rt.GuardRejected))}var Nf=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return k(r);if(i.numberOfChildren>1||!i.children[H])return CS(`${e.redirectTo}`);i=i.children[H]}}applyRedirectCommands(e,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,params:h,data:w,title:R}=i,x=ft(o,()=>a({params:h,data:w,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,title:R}));if(x instanceof gn)throw new Eo(x);n=x}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n[0]==="/")throw new Eo(s);return s}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new gn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,i){let o=this.createSegments(e,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,r,i)}),new J(o,s)}createSegments(e,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,n,r){let i=r[n.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(e,n){let r=0;for(let i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}},Pf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DS(t,e,n,r,i){let o=s_(t,e,n);return o.matched?(r=qM(e,r),wS(r,e,n,i).pipe(j(s=>s===!0?o:D({},Pf)))):k(o)}function s_(t,e,n){if(e.path==="**")return ES(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?D({},Pf):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||_M)(n,t,e);if(!i)return D({},Pf);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?D(D({},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 ES(t){return{matched:!0,parameters:t.length>0?jv(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Pv(t,e,n,r){return n.length>0&&MS(t,n,r)?{segmentGroup:new J(e,xS(r,new J(n,t.children))),slicedSegments:[]}:n.length===0&&SS(t,n,r)?{segmentGroup:new J(t.segments,IS(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new J(t.segments,t.children),slicedSegments:n}}function IS(t,e,n,r){let i={};for(let o of n)if(_c(t,e,o)&&!r[At(o)]){let s=new J([],{});i[At(o)]=s}return D(D({},r),i)}function xS(t,e){let n={};n[H]=e;for(let r of t)if(r.path===""&&At(r)!==H){let i=new J([],{});n[At(r)]=i}return n}function MS(t,e,n){return n.some(r=>_c(t,e,r)&&At(r)!==H)}function SS(t,e,n){return n.some(r=>_c(t,e,r))}function _c(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function TS(t,e,n){return e.length===0&&!t.children[n]}var Rf=class{};function OS(t,e,n,r,i,o,s="emptyOnly"){return new kf(t,e,n,r,i,s,o).recognize()}var AS=31,kf=class{constructor(e,n,r,i,o,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Nf(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new S(4002,`'${e.segmentGroup}'`)}recognize(){let e=Pv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(j(({children:n,rootSnapshot:r})=>{let i=new nt(r,n),o=new fc("",i),s=VM(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let n=new fi([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),H,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,H,n).pipe(j(r=>({children:r,rootSnapshot:n})),wt(r=>{if(r instanceof Eo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Do?this.noMatchError(r):r}))}processSegmentGroup(e,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(e,n,r,o):this.processSegment(e,n,r,r.segments,i,!0,o).pipe(j(s=>s instanceof nt?[s]:[]))}processChildren(e,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ne(o).pipe(Jt(s=>{let a=r.children[s],c=GM(n,s);return this.processSegmentGroup(e,c,a,s,i)}),yl((s,a)=>(s.push(...a),s)),_n(null),ml(),ge(s=>{if(s===null)return li(r);let a=a_(s);return NS(a),k(a)}))}processSegment(e,n,r,i,o,s,a){return ne(n).pipe(Jt(c=>this.processSegmentAgainstRoute(c._injector??e,n,c,r,i,o,s,a).pipe(wt(l=>{if(l instanceof Do)return k(null);throw l}))),ct(c=>!!c),wt(c=>{if(i_(c))return TS(r,i,o)?k(new Rf):li(r);throw c}))}processSegmentAgainstRoute(e,n,r,i,o,s,a,c){return At(r)!==s&&(s===H||!_c(i,o,r))?li(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s,c):li(i)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=s_(n,i,o);if(!c)return li(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>AS&&(this.allowRedirects=!1));let h=new fi(o,l,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Rv(i),At(i),i.component??i._loadedComponent??null,i,kv(i)),w=dc(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data);let R=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,R).pipe(ge(x=>this.processSegment(e,r,n,x.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,n,r,i,o,s){let a=DS(n,r,i,e,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(qe(c=>c.matched?(e=r._injector??e,this.getChildConfig(e,r,i).pipe(qe(({routes:l})=>{let u=r._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,w=new fi(f,d,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Rv(r),At(r),r.component??r._loadedComponent??null,r,kv(r)),R=dc(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(R.params),w.data=Object.freeze(R.data);let{segmentGroup:x,slicedSegments:M}=Pv(n,f,h,l);if(M.length===0&&x.hasChildren())return this.processChildren(u,l,x,w).pipe(j(ye=>new nt(w,ye)));if(l.length===0&&M.length===0)return k(new nt(w,[]));let X=At(r)===o;return this.processSegment(u,l,x,M,X?H:o,!0,w).pipe(j(ye=>new nt(w,ye instanceof nt?[ye]:[])))}))):li(n)))}getChildConfig(e,n,r){return n.children?k({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?k({routes:n._loadedRoutes,injector:n._loadedInjector}):_S(e,n,r,this.urlSerializer).pipe(ge(i=>i?this.configLoader.loadChildren(e,n).pipe(Me(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):bS(n))):k({routes:[],injector:e})}};function NS(t){t.sort((e,n)=>e.value.outlet===H?-1:n.value.outlet===H?1:e.value.outlet.localeCompare(n.value.outlet))}function PS(t){let e=t.value.routeConfig;return e&&e.path===""}function a_(t){let e=[],n=new Set;for(let r of t){if(!PS(r)){e.push(r);continue}let i=e.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):e.push(r)}for(let r of n){let i=a_(r.children);e.push(new nt(r.value,i))}return e.filter(r=>!n.has(r))}function Rv(t){return t.data||{}}function kv(t){return t.resolve||{}}function RS(t,e,n,r,i,o){return ge(s=>OS(t,e,n,r,s.extractedUrl,i,o).pipe(j(({state:a,tree:c})=>W(D({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function kS(t,e){return ge(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return k(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of c_(c))s.add(l);let a=0;return ne(s).pipe(Jt(c=>o.has(c)?FS(c,r,t,e):(c.data=dc(c,c.parent,t).resolve,k(void 0))),Me(()=>a++),kr(1),ge(c=>a===s.size?k(n):Ne))})}function c_(t){let e=t.children.map(n=>c_(n)).flat();return[t,...e]}function FS(t,e,n,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!e_(i)&&(o[Io]=i.title),LS(o,t,e,r).pipe(j(s=>(t._resolvedData=s,t.data=dc(t,t.parent,n).resolve,null)))}function LS(t,e,n,r){let i=ff(t);if(i.length===0)return k({});let o={};return ne(i).pipe(ge(s=>VS(t[s],e,n,r).pipe(ct(),Me(a=>{if(a instanceof bo)throw hc(new gi,a);o[s]=a}))),kr(1),gl(o),wt(s=>i_(s)?Ne:Nr(s)))}function VS(t,e,n,r){let i=Mo(e)??r,o=_i(t,i),s=o.resolve?o.resolve(e,n):ft(i,()=>o(e,n));return Bn(s)}function uf(t){return qe(e=>{let n=t(e);return n?ne(n).pipe(j(()=>e)):k(e)})}var l_=(()=>{let e=class e{buildTitle(r){let i,o=r.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===H);return i}getResolvedTitleForRoute(r){return r.data[Io]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(jS),providedIn:"root"});let t=e;return t})(),jS=(()=>{let e=class e extends l_{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(_(Ja))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Oo=new E("",{providedIn:"root",factory:()=>({})}),BS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ue({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ay],decls:1,vars:0,template:function(i,o){i&1&&de(0,"router-outlet")},dependencies:[ZM],encapsulation:2});let t=e;return t})();function Vf(t){let e=t.children&&t.children.map(Vf),n=e?W(D({},t),{children:e}):D({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==H&&(n.component=BS),n}var gc=new E(""),jf=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=C($a)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return k(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Bn(r.loadComponent()).pipe(j(u_),Me(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),wn(()=>{this.componentLoaders.delete(r)})),o=new Or(i,()=>new he).pipe(Tr());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return k({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=US(i,this.compiler,r,this.onLoadEndListener).pipe(wn(()=>{this.childrenLoaders.delete(i)})),a=new Or(s,()=>new he).pipe(Tr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function US(t,e,n,r){return Bn(t.loadChildren()).pipe(j(u_),ge(i=>i instanceof Wi||Array.isArray(i)?k(i):ne(e.compileModuleAsync(i))),j(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vf),injector:o}}))}function $S(t){return t&&typeof t=="object"&&"default"in t}function u_(t){return $S(t)?t.default:t}var Bf=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(HS),providedIn:"root"});let t=e;return t})(),HS=(()=>{let e=class e{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),d_=new E(""),f_=new E("");function zS(t,e,n){let r=t.get(f_),i=t.get(Te);return t.get(re).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),qS(t))),{onViewTransitionCreated:c}=r;return c&&ft(t,()=>c({transition:a,from:e,to:n})),s})}function qS(t){return new Promise(e=>{Dd({read:()=>setTimeout(e)},{injector:t})})}var GS=new E(""),Uf=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=C(jf),this.environmentInjector=C(Be),this.urlSerializer=C(xo),this.rootContexts=C(So),this.location=C(ai),this.inputBindingEnabled=C(vc,{optional:!0})!==null,this.titleStrategy=C(l_),this.options=C(Oo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=C(Bf),this.createViewTransition=C(d_,{optional:!0}),this.navigationErrorHandler=C(GS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>k(void 0),this.rootComponentType=null;let r=o=>this.events.next(new wf(o)),i=o=>this.events.next(new Cf(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let i=++this.navigationId;this.transitions?.next(W(D(D({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new Ae({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:mo,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ze(s=>s.id!==0),j(s=>W(D({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qe(s=>{let a=!1,c=!1;return k(s).pipe(qe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",rt.SupersededByNewNavigation),Ne;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?W(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!u&&d!=="reload"){let f="";return this.events.next(new jn(l.id,this.urlSerializer.serialize(l.rawUrl),f,sc.IgnoredSameUrlNavigation)),l.resolve(!1),Ne}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return k(l).pipe(qe(f=>{let h=this.transitions?.getValue();return this.events.next(new mi(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ne:Promise.resolve(f)}),RS(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),Me(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=W(D({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ac(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:h,source:w,restoredState:R,extras:x}=l,M=new mi(f,this.urlSerializer.serialize(h),w,R);this.events.next(M);let X=Jv(this.rootComponentType).snapshot;return this.currentTransition=s=W(D({},l),{targetSnapshot:X,urlAfterRedirects:h,extras:W(D({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,k(s)}else{let f="";return this.events.next(new jn(l.id,this.urlSerializer.serialize(l.extractedUrl),f,sc.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Ne}}),Me(l=>{let u=new mf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),j(l=>(this.currentTransition=s=W(D({},l),{guards:eS(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),dS(this.environmentInjector,l=>this.events.next(l)),Me(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw hc(this.urlSerializer,l.guardsResult);let u=new yf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),ze(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",rt.GuardRejected),!1)),uf(l=>{if(l.guards.canActivateChecks.length)return k(l).pipe(Me(u=>{let d=new vf(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),qe(u=>{let d=!1;return k(u).pipe(kS(this.paramsInheritanceStrategy,this.environmentInjector),Me({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",rt.NoDataFromResolver)}}))}),Me(u=>{let d=new _f(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),uf(l=>{let u=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Me(h=>{d.component=h}),j(()=>{})));for(let h of d.children)f.push(...u(h));return f};return Vi(u(l.targetSnapshot.root)).pipe(_n(null),Xt(1))}),uf(()=>this.afterPreactivation()),qe(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?ne(d).pipe(j(()=>s)):k(s)}),j(l=>{let u=YM(r.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=W(D({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),Me(()=>{this.events.next(new wo)}),XM(this.rootContexts,r.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Xt(1),Me({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Nt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),_l(this.transitionAbortSubject.pipe(Me(l=>{throw l}))),wn(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",rt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),wt(l=>{if(c=!0,r_(l))this.events.next(new pn(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),JM(l)?this.events.next(new yi(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let u=new _o(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=ft(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof bo){let{message:f,cancellationCode:h}=hc(this.urlSerializer,d);this.events.next(new pn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new yi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let f=r.errorHandler(l);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ne}))}))}cancelNavigationTransition(r,i,o){let s=new pn(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function WS(t){return t!==mo}var ZS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(YS),providedIn:"root"});let t=e;return t})(),Ff=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},YS=(()=>{let e=class e extends Ff{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=ei(e)))(o||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),h_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:()=>C(QS),providedIn:"root"});let t=e;return t})(),QS=(()=>{let e=class e extends h_{constructor(){super(...arguments),this.location=C(ai),this.urlSerializer=C(xo),this.options=C(Oo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=C(Bf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new gn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Jv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof mi)this.stateMemento=this.createStateMemento();else if(r instanceof jn)this.rawUrlTree=i.initialUrl;else if(r instanceof ac){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else r instanceof wo?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):r instanceof pn&&(r.code===rt.GuardRejected||r.code===rt.NoDataFromResolver)?this.restoreHistory(i):r instanceof _o?this.restoreHistory(i,!0):r instanceof Nt&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=r instanceof gn?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=D(D({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=D(D({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=ei(e)))(o||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),po=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(po||{});function p_(t,e){t.events.pipe(ze(n=>n instanceof Nt||n instanceof pn||n instanceof _o||n instanceof jn),j(n=>n instanceof Nt||n instanceof jn?po.COMPLETE:(n instanceof pn?n.code===rt.Redirect||n.code===rt.SupersededByNewNavigation:!1)?po.REDIRECTING:po.FAILED),ze(n=>n!==po.REDIRECTING),Xt(1)).subscribe(()=>{e()})}function KS(t){throw t}var JS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},it=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=C(La),this.stateManager=C(h_),this.options=C(Oo,{optional:!0})||{},this.pendingTasks=C(an),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=C(Uf),this.urlSerializer=C(xo),this.location=C(ai),this.urlHandlingStrategy=C(Bf),this._events=new he,this.errorHandler=this.options.errorHandler||KS,this.navigated=!1,this.routeReuseStrategy=C(ZS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=C(gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!C(vc,{optional:!0}),this.eventsSubscription=new be,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof pn&&i.code!==rt.Redirect&&i.code!==rt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Nt)this.navigated=!0;else if(i instanceof yi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l=D({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||WS(o.source)},a);this.scheduleNavigation(c,mo,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}tT(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)})}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=D({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(Vf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=D(D({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Zv(h)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),f=this.currentUrlTree.root}return Yv(f,r,d,u??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=yr(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,mo,null,i)}navigate(r,i={skipLocationChange:!1}){return eT(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=D({},JS):i===!1?o=D({},XS):o=i,yr(r))return Sv(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Sv(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((f,h)=>{c=f,l=h});let d=this.pendingTasks.add();return p_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function eT(t){for(let e=0;e{let e=class e{constructor(r,i,o,s,a,c){this.router=r,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new he,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=r.events.subscribe(u=>{u instanceof Nt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(yr(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let i=this.href===null?null:vm(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(r,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,r,i):o.removeAttribute(s,r)}get urlTree(){return this.routerLinkInput===null?null:yr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(I(it),I(vr),td("tabindex"),I(Mt),I(Ee),I(hn))},e.\u0275dir=oe({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&cr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",hr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",hr],replaceUrl:[2,"replaceUrl","replaceUrl",hr],routerLink:"routerLink"},standalone:!0,features:[Cd,sn]});let t=e;return t})(),$2=(()=>{let e=class e{get isActive(){return this._isActive}constructor(r,i,o,s,a){this.router=r,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new U,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof Nt&&this.update()})}ngAfterContentInit(){k(this.links.changes,k(null)).pipe(kt()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=ne(r).pipe(kt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(r){let i=Array.isArray(r)?r:r.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(i=>{r?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let i=nT(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?r.isActive(s,i):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};e.\u0275fac=function(i){return new(i||e)(I(it),I(Ee),I(Mt),I(Rn),I(mc,8))},e.\u0275dir=oe({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&ur(s,mc,5),i&2){let a;Xe(a=et())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[sn]});let t=e;return t})();function nT(t){return!!t.paths}var yc=class{},H2=(()=>{let e=class e{preload(r,i){return i().pipe(wt(()=>k(null)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var rT=(()=>{let e=class e{constructor(r,i,o,s,a){this.router=r,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ze(r=>r instanceof Nt),Jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=ka(s.providers,r,`Route: ${s.path}`));let a=s._injector??r,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return ne(o).pipe(kt())}preloadConfig(r,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(r,i):o=k(null);let s=o.pipe(ge(a=>a===null?k(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return ne([s,a]).pipe(kt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(_(it),_($a),_(Be),_(yc),_(jf))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g_=new E(""),iT=(()=>{let e=class e{constructor(r,i,o,s,a={}){this.urlSerializer=r,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof Nt?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof jn&&r.code===sc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof cc&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new cc(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){km()},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function oT(t){return t.routerState.root}function Ao(t,e){return{\u0275kind:t,\u0275providers:e}}function sT(){let t=C(Se);return e=>{let n=t.get(tt);if(e!==n.components[0])return;let r=t.get(it),i=t.get(m_);t.get($f)===1&&r.initialNavigation(),t.get(y_,null,z.Optional)?.setUpPreloading(),t.get(g_,null,z.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var m_=new E("",{factory:()=>new he}),$f=new E("",{providedIn:"root",factory:()=>1});function aT(){return Ao(2,[{provide:$f,useValue:0},{provide:Ba,multi:!0,deps:[Se],useFactory:e=>{let n=e.get(Jy,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=e.get(it),o=e.get(m_);p_(i,()=>{r(!0)}),e.get(Uf).afterPreactivation=()=>(r(!0),o.closed?k(void 0):o),i.initialNavigation()}))}}])}function cT(){return Ao(3,[{provide:Ba,multi:!0,useFactory:()=>{let e=C(it);return()=>{e.setUpLocationChangeListener()}}},{provide:$f,useValue:2}])}var y_=new E("");function lT(t){return Ao(0,[{provide:y_,useExisting:rT},{provide:yc,useExisting:t}])}function uT(){return Ao(8,[Nv,{provide:vc,useExisting:Nv}])}function dT(t){let e=[{provide:d_,useValue:zS},{provide:f_,useValue:D({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ao(9,e)}var Fv=new E("ROUTER_FORROOT_GUARD"),fT=[ai,{provide:xo,useClass:gi},it,So,{provide:vr,useFactory:oT,deps:[it]},jf,[]],v_=(()=>{let e=class e{constructor(r){}static forRoot(r,i){return{ngModule:e,providers:[fT,[],{provide:gc,multi:!0,useValue:r},{provide:Fv,useFactory:mT,deps:[[it,new Ki,new ua]]},{provide:Oo,useValue:i||{}},i?.useHash?pT():gT(),hT(),i?.preloadingStrategy?lT(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?yT(i):[],i?.bindToComponentInputs?uT().\u0275providers:[],i?.enableViewTransitions?dT().\u0275providers:[],vT()]}}static forChild(r){return{ngModule:e,providers:[{provide:gc,multi:!0,useValue:r}]}}};e.\u0275fac=function(i){return new(i||e)(_(Fv,8))},e.\u0275mod=ae({type:e}),e.\u0275inj=se({});let t=e;return t})();function hT(){return{provide:g_,useFactory:()=>{let t=C(nv),e=C(re),n=C(Oo),r=C(Uf),i=C(xo);return n.scrollOffset&&t.setOffset(n.scrollOffset),new iT(i,r,t,e,n)}}}function pT(){return{provide:hn,useClass:ev}}function gT(){return{provide:hn,useClass:Hd}}function mT(t){return"guarded"}function yT(t){return[t.initialNavigation==="disabled"?cT().\u0275providers:[],t.initialNavigation==="enabledBlocking"?aT().\u0275providers:[]]}var Lv=new E("");function vT(){return[{provide:Lv,useFactory:sT},{provide:Ua,multi:!0,useExisting:Lv}]}var wi={production:!0,appId:"article",url:"https://webart.work"};var M_=(()=>{let e=class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};e.\u0275fac=function(i){return new(i||e)(I(Mt),I(Ee))},e.\u0275dir=oe({type:e});let t=e;return t})(),Wf=(()=>{let e=class e extends M_{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=ei(e)))(o||e)}})(),e.\u0275dir=oe({type:e,features:[Nn]});let t=e;return t})(),Ec=new E(""),_T={provide:Ec,useExisting:rr(()=>Zf),multi:!0},Zf=(()=>{let e=class e extends Wf{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=ei(e)))(o||e)}})(),e.\u0275dir=oe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&O("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[to([_T]),Nn]});let t=e;return t})(),wT={provide:Ec,useExisting:rr(()=>Un),multi:!0};function CT(){let t=Tt()?Tt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var bT=new E(""),Un=(()=>{let e=class e extends M_{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!CT())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};e.\u0275fac=function(i){return new(i||e)(I(Mt),I(Ee),I(bT,8))},e.\u0275dir=oe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&O("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[to([wT]),Nn]});let t=e;return t})();var DT=new E(""),ET=new E("");function S_(t){return t!=null}function T_(t){return fr(t)?ne(t):t}function O_(t){let e={};return t.forEach(n=>{e=n!=null?D(D({},e),n):e}),Object.keys(e).length===0?null:e}function A_(t,e){return e.map(n=>n(t))}function IT(t){return!t.validate}function N_(t){return t.map(e=>IT(e)?e:n=>e.validate(n))}function xT(t){if(!t)return null;let e=t.filter(S_);return e.length==0?null:function(n){return O_(A_(n,e))}}function P_(t){return t!=null?xT(N_(t)):null}function MT(t){if(!t)return null;let e=t.filter(S_);return e.length==0?null:function(n){let r=A_(n,e).map(T_);return hl(r).pipe(j(O_))}}function R_(t){return t!=null?MT(N_(t)):null}function w_(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ST(t){return t._rawValidators}function TT(t){return t._rawAsyncValidators}function Hf(t){return t?Array.isArray(t)?t:[t]:[]}function Cc(t,e){return Array.isArray(t)?t.includes(e):t===e}function C_(t,e){let n=Hf(e);return Hf(t).forEach(i=>{Cc(n,i)||n.push(i)}),n}function b_(t,e){return Hf(e).filter(n=>!Cc(t,n))}var bc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=P_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=R_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},zf=class extends bc{get formDirective(){return null}get path(){return null}},Di=class extends bc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},qf=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},OT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},aV=W(D({},OT),{"[class.ng-submitted]":"isSubmitted"}),Ii=(()=>{let e=class e extends qf{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(I(Di,2))},e.\u0275dir=oe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&pe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Nn]});let t=e;return t})();var No="VALID",wc="INVALID",Ci="PENDING",Po="DISABLED",Ei=class{},Dc=class extends Ei{constructor(e,n){super(),this.value=e,this.source=n}},Ro=class extends Ei{constructor(e,n){super(),this.pristine=e,this.source=n}},ko=class extends Ei{constructor(e,n){super(),this.touched=e,this.source=n}},bi=class extends Ei{constructor(e,n){super(),this.status=e,this.source=n}};function AT(t){return(Ic(t)?t.validators:t)||null}function NT(t){return Array.isArray(t)?P_(t):t||null}function PT(t,e){return(Ic(e)?e.asyncValidators:t)||null}function RT(t){return Array.isArray(t)?R_(t):t||null}function Ic(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Gf=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ha(()=>this.statusReactive()),this.statusReactive=Ra(void 0),this._pristine=Ha(()=>this.pristineReactive()),this.pristineReactive=Ra(!0),this._touched=Ha(()=>this.touchedReactive()),this.touchedReactive=Ra(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return kn(this.statusReactive)}set status(e){kn(()=>this.statusReactive.set(e))}get valid(){return this.status===No}get invalid(){return this.status===wc}get pending(){return this.status==Ci}get disabled(){return this.status===Po}get enabled(){return this.status!==Po}get pristine(){return kn(this.pristineReactive)}set pristine(e){kn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return kn(this.touchedReactive)}set touched(e){kn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(C_(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(C_(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(b_(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(b_(e,this._rawAsyncValidators))}hasValidator(e){return Cc(this._rawValidators,e)}hasAsyncValidator(e){return Cc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(W(D({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new ko(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new ko(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(W(D({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Ro(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Ro(!0,r))}markAsPending(e={}){this.status=Ci;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new bi(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(W(D({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Po,this.errors=null,this._forEachChild(i=>{i.disable(W(D({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dc(this.value,r)),this._events.next(new bi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(W(D({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=No,this._forEachChild(r=>{r.enable(W(D({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(W(D({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===No||this.status===Ci)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dc(this.value,n)),this._events.next(new bi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(W(D({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Po:No}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=Ci,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=T_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new bi(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?Po:this.errors?wc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ci)?Ci:this._anyControlsHaveStatus(wc)?wc:No}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Ro(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new ko(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ic(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=NT(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=RT(this._rawAsyncValidators)}};var xc=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Fo}),Fo="always";function kT(t,e){return[...e.path,t]}function FT(t,e,n=Fo){VT(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),jT(t,e),UT(t,e),BT(t,e),LT(t,e)}function D_(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function LT(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function VT(t,e){let n=ST(t);e.validator!==null?t.setValidators(w_(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=TT(t);e.asyncValidator!==null?t.setAsyncValidators(w_(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();D_(e._rawValidators,i),D_(e._rawAsyncValidators,i)}function jT(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&k_(t,e)})}function BT(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&k_(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function k_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function UT(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function $T(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function HT(t){return Object.getPrototypeOf(t.constructor)===Wf}function zT(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===Un?n=o:HT(o)?r=o:i=o}),i||r||n||null}function E_(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function I_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var qT=class extends Gf{constructor(e=null,n,r){super(AT(n),PT(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ic(n)&&(n.nonNullable||n.initialValueIsDefault)&&(I_(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){E_(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){E_(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){I_(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var GT={provide:Di,useExisting:rr(()=>_r)},x_=Promise.resolve(),_r=(()=>{let e=class e extends Di{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new qT,this._registered=!1,this.name="",this.update=new U,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=zT(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),$T(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){FT(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){x_.then(()=>{this.control.setValue(r,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&hr(i);x_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(r){return this._parent?kT(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(I(zf,9),I(DT,10),I(ET,10),I(Ec,10),I(Rn,8),I(xc,8))},e.\u0275dir=oe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[to([GT]),Nn,sn]});let t=e;return t})();var WT={provide:Ec,useExisting:rr(()=>Yf),multi:!0};var ZT=(()=>{let e=class e{constructor(){this._accessors=[]}add(r,i){this._accessors.push([r,i])}remove(r){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===r){this._accessors.splice(i,1);return}}select(r){this._accessors.forEach(i=>{this._isSameGroup(i,r)&&i[1]!==r&&i[1].fireUncheck(r.value)})}_isSameGroup(r,i){return r[0].control?r[0]._parent===i._control._parent&&r[1].name===i.name:!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yf=(()=>{let e=class e extends Wf{constructor(r,i,o,s){super(r,i),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=C(xc,{optional:!0})??Fo}ngOnInit(){this._control=this._injector.get(Di),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(r){this._state=r===this.value,this.setProperty("checked",this._state)}registerOnChange(r){this._fn=r,this.onChange=()=>{r(this.value),this._registry.select(this)}}setDisabledState(r){(this.setDisabledStateFired||r||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",r),this.setDisabledStateFired=!0}fireUncheck(r){this.writeValue(r)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(i){return new(i||e)(I(Mt),I(Ee),I(ZT),I(Se))},e.\u0275dir=oe({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,o){i&1&&O("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[to([WT]),Nn]});let t=e;return t})();var YT=new E("");var F_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({});let t=e;return t})();var Zt=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:xc,useValue:r.callSetDisabledState??Fo}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[F_]});let t=e;return t})(),lV=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:YT,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:xc,useValue:r.callSetDisabledState??Fo}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[F_]});let t=e;return t})();var Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";var Lo=Object.create(null);Object.keys(Pt).forEach(t=>{Lo[Pt[t]]=t});var Vo={type:"error",data:"parser error"};var j_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",B_=typeof ArrayBuffer=="function",U_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,jo=({type:t,data:e},n,r)=>j_&&e instanceof Blob?n?r(e):L_(e,r):B_&&(e instanceof ArrayBuffer||U_(e))?n?r(e):L_(new Blob([e]),r):r(Pt[t]+(e||"")),L_=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function V_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Kf;function $_(t,e){if(j_&&t.data instanceof Blob)return t.data.arrayBuffer().then(V_).then(e);if(B_&&(t.data instanceof ArrayBuffer||U_(t.data)))return e(V_(t.data));jo(t,!1,n=>{Kf||(Kf=new TextEncoder),e(Kf.encode(n))})}var H_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,i=0,o,s,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),u=new Uint8Array(l);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return l};var QT=typeof ArrayBuffer=="function",Uo=(t,e)=>{if(typeof t!="string")return{type:"message",data:q_(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:KT(t.substring(1),e)}:Lo[n]?t.length>1?{type:Lo[n],data:t.substring(1)}:{type:Lo[n]}:Vo},KT=(t,e)=>{if(QT){let n=z_(t);return q_(n,e)}else return{base64:!0,data:t}},q_=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var G_="",W_=(t,e)=>{let n=t.length,r=new Array(n),i=0;t.forEach((o,s)=>{jo(o,!1,a=>{r[s]=a,++i===n&&e(r.join(G_))})})},Z_=(t,e)=>{let n=t.split(G_),r=[];for(let i=0;i{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);let o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}var Jf;function Mc(t){return t.reduce((e,n)=>e+n.length,0)}function Sc(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(Vo);break}i=u*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Mc(n)t){a.enqueue(Vo);break}}}})}var Xf=4;function ce(t){if(t)return JT(t)}function JT(t){for(var e in ce.prototype)t[e]=ce.prototype[e];return t}ce.prototype.on=ce.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};ce.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};ce.prototype.off=ce.prototype.removeListener=ce.prototype.removeAllListeners=ce.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}var XT=Le.setTimeout,e1=Le.clearTimeout;function mn(t,e){e.useNativeTimers?(t.setTimeoutFn=XT.bind(Le),t.clearTimeoutFn=e1.bind(Le)):(t.setTimeoutFn=Le.setTimeout.bind(Le),t.clearTimeoutFn=Le.clearTimeout.bind(Le))}var t1=1.33;function K_(t){return typeof t=="string"?n1(t):Math.ceil((t.byteLength||t.size)*t1)}function n1(t){let e=0,n=0;for(let r=0,i=t.length;r=57344?n+=3:(r++,n+=4);return n}function J_(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function X_(t){let e={},n=t.split("&");for(let r=0,i=n.length;r0);return e}function Nc(){let t=n0(+new Date);return t!==t0?(e0=0,t0=t):t+"."+n0(e0++)}for(;Ac{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Z_(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,W_(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Nc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Pc(this.uri(),e)}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},Pc=(()=>{class t extends ce{constructor(n,r){super(),mn(this,r),this.opts=r,this.method=r.method||"GET",this.uri=n,this.data=r.data!==void 0?r.data:null,this.create()}create(){var n;let r=Tc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;let i=this.xhr=new th(r);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this.opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(i)),i.readyState===4&&(i.status===200||i.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof i.status=="number"?i.status:0)},0))},i.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=t.requestsCount++,t.requests[this.index]=this)}onError(n){this.emitReserved("error",n,this.xhr),this.cleanup(!0)}cleanup(n){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=i1,n)try{this.xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this.index],this.xhr=null}}onLoad(){let n=this.xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return t.requestsCount=0,t.requests={},t})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",s0);else if(typeof addEventListener=="function"){let t="onpagehide"in Le?"pagehide":"unload";addEventListener(t,s0,!1)}}function s0(){for(let t in Pc.requests)Pc.requests.hasOwnProperty(t)&&Pc.requests[t].abort()}var wr=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),$o=Le.WebSocket||Le.MozWebSocket,kc=!0,a0="arraybuffer";var c0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Fc=class extends yn{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),n=this.opts.protocols,r=c0?{}:Tc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=kc&&!c0?n?new $o(e,n):new $o(e):new $o(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n{let s={};kc||(r.options&&(s.compress=r.options.compress),this.opts.perMessageDeflate&&(typeof o=="string"?Buffer.byteLength(o):o.length){this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Nc()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!$o}};var Lc=class extends yn{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let n=Q_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=Y_();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();let o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n{i&&wr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}};var nh={websocket:Fc,webtransport:Lc,polling:Rc};var s1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xi(t){if(t.length>2e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=s1.exec(t||""),o={},s=14;for(;s--;)o[a1[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=c1(o,o.path),o.queryKey=l1(o,o.query),o}function c1(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function l1(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}var Vc=(()=>{class t extends ce{constructor(n,r={}){super(),this.binaryType=a0,this.writeBuffer=[],n&&typeof n=="object"&&(r=n,n=null),n?(n=xi(n),r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)):r.host&&(r.hostname=xi(r.host).host),mn(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=X_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(n){let r=Object.assign({},this.opts.query);r.EIO=Xf,r.transport=n,this.id&&(r.sid=this.id);let i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new nh[n](i)}open(){let n;if(this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)n="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else n=this.transports[0];this.readyState="opening";try{n=this.createTransport(n)}catch{this.transports.shift(),this.open();return}n.open(),this.setTransport(n)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(n){let r=this.createTransport(n),i=!1;t.priorWebsocketSuccess=!1;let o=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!i)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;t.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let h=new Error("probe error");h.transport=r.name,this.emitReserved("upgradeError",h)}}))};function s(){i||(i=!0,d(),r.close(),r=null)}let a=f=>{let h=new Error("probe error: "+f);h.transport=r.name,s(),this.emitReserved("upgradeError",h)};function c(){a("transport closed")}function l(){a("socket closed")}function u(f){r&&f.name!==r.name&&s()}let d=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",c),this.off("close",l),this.off("upgrading",u)};r.once("open",o),r.once("error",a),r.once("close",c),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onOpen(){if(this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let n=0,r=this.upgrades.length;for(;n{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let n=this.getWritablePackets();this.transport.send(n),this.prevBufferLen=n.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(n,r,i){return this.sendPacket("message",n,r,i),this}send(n,r,i){return this.sendPacket("message",n,r,i),this}sendPacket(n,r,i,o){if(typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let s={type:n,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let n=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}onError(n){t.priorWebsocketSuccess=!1,this.emitReserved("error",n),this.onClose("transport error",n)}onClose(n,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(n){let r=[],i=0,o=n.length;for(;ish,Encoder:()=>oh,PacketType:()=>Y,protocol:()=>p0});var u1=typeof ArrayBuffer=="function",d1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,u0=Object.prototype.toString,f1=typeof Blob=="function"||typeof Blob<"u"&&u0.call(Blob)==="[object BlobConstructor]",h1=typeof File=="function"||typeof File<"u"&&u0.call(File)==="[object FileConstructor]";function zo(t){return u1&&(t instanceof ArrayBuffer||d1(t))||f1&&t instanceof Blob||h1&&t instanceof File}function Ho(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(e,...n){let r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Y.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Y.EVENT:case Y.BINARY_EVENT:this.onevent(e);break;case Y.ACK:case Y.BINARY_ACK:this.onack(e);break;case Y.DISCONNECT:this.ondisconnect();break;case Y.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...i){r||(r=!0,n.packet({type:Y.ACK,id:e,data:i}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Cr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Cr.prototype.reset=function(){this.attempts=0};Cr.prototype.setMin=function(t){this.ms=t};Cr.prototype.setMax=function(t){this.max=t};Cr.prototype.setJitter=function(t){this.jitter=t};var Si=class extends ce{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,mn(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Cr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let i=n.parser||ch;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Vc(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=ot(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},s=ot(n,"error",o);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(ot(e,"ping",this.onping.bind(this)),ot(e,"data",this.ondata.bind(this)),ot(e,"error",this.onerror.bind(this)),ot(e,"close",this.onclose.bind(this)),ot(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){wr(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Mi(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var qo={};function jc(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=l0(t,e.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=qo[i]&&o in qo[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s,c;return a?c=new Si(r,e):(qo[i]||(qo[i]=new Si(r,e)),c=qo[i]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(jc,{Manager:Si,Socket:Mi,io:jc,connect:jc});var y1=["alert"],v1=t=>({"animation-duration":t});function _1(t,e){if(t&1&&(y(0,"div",9),de(1,"span",10),v()),t&2){let n=g(2);p(),m("ngStyle",Pn(1,v1,(n.timeout+350)/1e3+"s"))}}function w1(t,e){if(t&1&&de(0,"div"),t&2){let n=g(3);lr(n.icon)}}function C1(t,e){if(t&1&&(y(0,"div",11),T(1,w1,1,3,"div",12),y(2,"div",13),P(3),v()()),t&2){let n=g(2);p(),m("ngIf",n.icon),p(2),Ie(n.text)}}function b1(t,e){if(t&1){let n=G();y(0,"button",15),O("click",function(){let i=A(n).$implicit;return g(3).remove(),N(i.callback&&i.callback())}),P(1),v()}if(t&2){let n=e.$implicit;p(),fe(" ",n.text," ")}}function D1(t,e){if(t&1&&(y(0,"div"),T(1,b1,2,1,"button",14),v()),t&2){let n=g(2);p(),m("ngForOf",n.buttons)}}function E1(t,e){if(t&1){let n=G();y(0,"div",16),O("click",function(){A(n);let i=g(2);return N(i.remove())}),v()}}function I1(t,e){if(t&1&&(y(0,"div",2)(1,"div",3,0),T(3,_1,2,3,"div",4),y(4,"div",5),T(5,C1,4,2,"div",6)(6,D1,2,1,"div",7)(7,E1,1,0,"div",8),v()()()),t&2){let n=g();pe("_close",n.delete_animation),m("ngClass",n.class),p(),pe("waw-alert-color-blue",n.type=="info")("waw-alert-color-red",n.type=="error")("waw-alert-color-green",n.type=="success")("waw-alert-color-orange",n.type=="warning")("waw-alert-color-yellow",n.type=="question"),p(2),m("ngIf",n.progress),p(2),m("ngIf",!n.component),p(),m("ngIf",!n.component&&n.type=="question"),p(),m("ngIf",n.closable)}}function x1(t,e){if(t&1){let n=G();we(0),y(1,"input",2,0),O("change",function(i){let o=A(n).$implicit,s=St(2);return g().fs.change(i,o),N(s.value="")}),v(),Ce()}if(t&2){let n=e.$implicit;p(),m("id",n.id)("hidden",!0)("accept",n.accept||n.part&&"image/*"||"")("multiple",n.multiple&&!0||"")}}var br=new E("config"),Ti={meta:{useTitleSuffix:!1,warnMissingGuard:!0,defaults:{}},socket:!1,http:{url:"",headers:{}},store:{prefix:""}},lh={alerts:{},text:"",type:"info",class:"",progress:!0,position:"bottomRight",timeout:5e3,closable:!0,buttons:[]};String.prototype.capitalize||(String.prototype.capitalize=function(){return this.length>0?this.charAt(0).toUpperCase()+this.slice(1).toLowerCase():""});var xe=(()=>{class t{platformId;ssr=!1;localStorage;navigator;document;window;constructor(n){this.platformId=n,this.ssr=pr(this.platformId),pr(this.platformId)?(this.localStorage={getItem:()=>{},setItem:()=>{},removeItem:()=>{},clear:()=>{}},this.document={querySelectorAll:()=>{},addEventListener:()=>{},removeEventListener:()=>{},documentElement:{},body:{}},this.window={location:{host:""},addEventListener:()=>{},removeEventListener:()=>{},setTimeout:()=>{}},this.navigator={userAgent:"",platform:""}):(this.localStorage=localStorage,this.document=document,this.window=window,this.navigator=navigator),this.detectDevice()}ota(n,r=!1){if(Array.isArray(n))return n;if(typeof n!="object"||n===null)return[];let i=[];for(let o in n)n.hasOwnProperty(o)&&(n[o]||typeof n[o]=="number"||typeof n[o]=="boolean")&&(r?i.push(o):i.push(n[o]));return i}splice(n,r,i="_id"){if(!Array.isArray(n)||!Array.isArray(r))return r;let o=new Set(n.map(s=>s[i]));return r.filter(s=>!o.has(s[i]))}ids2id(...n){return n.sort((r,i)=>Number(r.toString().substring(0,8))>Number(i.toString().substring(0,8))?1:-1),n.join()}_afterWhile={};afterWhile(n,r,i=1e3){typeof n=="function"&&(r=n,n="common"),typeof r=="function"&&typeof i=="number"&&(typeof n=="string"?(clearTimeout(this._afterWhile[n]),this._afterWhile[n]=this.window.setTimeout(r,i)):typeof n=="object"?(clearTimeout(n.__afterWhile),n.__afterWhile=this.window.setTimeout(r,i)):console.warn("badly configured after while"))}copy(n,r){for(let i in n)typeof n[i]!="object"||n[i]instanceof Date||Array.isArray(n[i])||n[i]===null?r[i]=n[i]:((typeof r[i]!="object"||r[i]instanceof Date||Array.isArray(r[i])||r[i]===null)&&(r[i]={}),this.copy(n[i],r[i]))}device="";detectDevice(){let n=this.navigator.userAgent||this.navigator.vendor||this.window.opera;/windows phone/i.test(n)?this.device="Windows Phone":/android/i.test(n)?this.device="Android":/iPad|iPhone|iPod/.test(n)&&!this.window.MSStream?this.device="iOS":this.device="Web"}isMobile(){return this.device==="Windows Phone"||this.device==="Android"||this.device==="iOS"}isTablet(){return this.device==="iOS"&&/iPad/.test(navigator.userAgent)}isWeb(){return this.device==="Web"}isAndroid(){return this.device==="Android"}isIos(){return this.device==="iOS"}version="1.0.0";appVersion="";dateVersion="";setVersion(){this.version=this.appVersion||"",this.version+=this.version&&this.dateVersion?" ":"",this.version+=this.dateVersion||""}setAppVersion(n){this.appVersion=n,this.setVersion()}setDateVersion(n){this.dateVersion=n,this.setVersion()}_signals={};emit(n,r){this._signals[n]||(this._signals[n]=new he),this._signals[n].next(r)}on(n){return this._signals[n]||(this._signals[n]=new he),this._signals[n].asObservable()}off(n){this._signals[n]&&(this._signals[n].complete(),delete this._signals[n])}_completed={};_completeResolvers={};complete(n){this._completed[n]=!0,this._completeResolvers[n]&&(this._completeResolvers[n].forEach(r=>r()),this._completeResolvers[n]=[])}onComplete(n){return this._completed[n]?Promise.resolve():new Promise(r=>{this._completeResolvers[n]||(this._completeResolvers[n]=[]),this._completeResolvers[n].push(r)})}completed(n){return!!this._completed[n]}_locked={};_unlockResolvers={};lock(n){this._locked[n]=!0,this._unlockResolvers[n]||(this._unlockResolvers[n]=[])}unlock(n){this._locked[n]=!1,this._unlockResolvers[n]&&(this._unlockResolvers[n].forEach(r=>r()),this._unlockResolvers[n]=[])}onUnlock(n){return this._locked[n]?new Promise(r=>{this._unlockResolvers[n]||(this._unlockResolvers[n]=[]),this._unlockResolvers[n].push(r)}):Promise.resolve()}locked(n){return!!this._locked[n]}static \u0275fac=function(r){return new(r||t)(_(pt))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Go=t=>typeof t<"u",g0=(()=>{class t{router;meta;core;titleService;config;_meta;constructor(n,r,i,o,s){this.router=n,this.meta=r,this.core=i,this.titleService=o,this.config=s,this.config=this.config||Ti,this._meta=this.config.meta||{},this._warnMissingGuard()}setDefaults(n){this._meta.defaults=n}setTitle(n,r){let i=Go(n)?n:this._meta.defaults.title||"";return this._meta.useTitleSuffix&&(i+=Go(r)?r:this._meta.defaults.titleSuffix||""),this._updateMetaTag("title",i),this._updateMetaTag("og:title",i),this.titleService.setTitle(i),this}setLink(n){return Object.keys(n).forEach(r=>{let i=this.core.document.createElement("link");i.setAttribute("rel",r),i.setAttribute("href",n[r]),this.core.document.head.appendChild(i)}),this}setTag(n,r,i){if(n==="title"||n==="titleSuffix")throw new Error(`Attempt to set ${n} through 'setTag': 'title' and 'titleSuffix' are reserved tag names. Please use 'MetaService.setTitle' instead`);let o=Go(r)?r:this._meta.defaults[n]||"";return this._updateMetaTag(n,o,i),n==="description"&&(this._updateMetaTag("og:description",o,i),this._updateMetaTag("twitter:description",o,i)),this}_updateMetaTag(n,r,i){i=i||(n.startsWith("og:")||n.startsWith("twitter:")?"property":"name"),this.meta.updateTag({[i]:n,content:r})}removeTag(n,r){r=r||(n.startsWith("og:")||n.startsWith("twitter:")?"property":"name"),this.meta.removeTag(`${r}="${n}"`)}_warnMissingGuard(){if(Go(this._meta.warnMissingGuard)&&!this._meta.warnMissingGuard)return;let n=!!Object.keys(this._meta.defaults).length,r=o=>o&&o.IDENTIFIER==="MetaGuard",i=!1;this.router.config.forEach(o=>{let s=o.data&&o.data.meta;!Go(o.redirectTo)&&(n||s)&&!(o.canActivate||[]).some(r)&&(console.warn(`Route with path "${o.path}" has ${s?"":"default "}meta tags, but does not use MetaGuard. Please add MetaGuard to the canActivate array in your route configuration`),i=!0)}),i&&console.warn("To disable these warnings, set metaConfig.warnMissingGuard: false in your MetaConfig passed to MetaModule.forRoot()")}static \u0275fac=function(r){return new(r||t)(_(it),_(Iv),_(xe),_(Ja),_(br,8))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),M1=(()=>{class t{metaService;config;static IDENTIFIER="MetaGuard";_meta;constructor(n,r){this.metaService=n,this.config=r,this._meta=r.meta,this.config||(this.config=Ti)}canActivate(n,r){return this._processRouteMetaTags(n.data&&n.data.meta),!0}_processRouteMetaTags(n={}){n.disableUpdate||(n.title&&this.metaService.setTitle(n.title,n.titleSuffix),Array.isArray(n.links)?this.metaService.setLink(n.links):typeof n.links=="string"&&this.metaService.setLink(n.links.split(" ")),Array.isArray(this._meta.defaults?.links)?this.metaService.setLink(this._meta.defaults?.links):typeof this._meta.defaults?.links=="string"&&this.metaService.setLink(this._meta.defaults?.links.split(" ")),Object.keys(n).forEach(r=>{r==="title"||r==="titleSuffix"||r==="links"||Object.keys(n[r]).forEach(i=>{this.metaService.setTag(i,n[r][i],r)})}),Object.keys(this._meta.defaults).forEach(r=>{r in n||r==="title"||r==="titleSuffix"||r==="links"||this.metaService.setTag(r,this._meta.defaults[r])}))}static \u0275fac=function(r){return new(r||t)(_(g0),_(br,8))};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),S1=(()=>{class t{core;alert;component;text="";class="";type="info";progress=!0;position="bottomRight";icon="";timeout=5e3;close;closable=!0;buttons=[];constructor(n){this.core=n,setTimeout(()=>{if(this.timeout){let r=JSON.parse(JSON.stringify(this.timeout)),i=setTimeout(()=>{this.remove()},r),o=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(i),r-=new Date().getTime()-o.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{o=new Date,clearTimeout(i),i=n.window.setTimeout(()=>{this.remove()},r)},!1)}})}delete_animation=!1;remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}static \u0275fac=function(r){return new(r||t)(I(xe))};static \u0275cmp=ue({type:t,selectors:[["alert"]],viewQuery:function(r,i){if(r&1&&ii(y1,5),r&2){let o;Xe(o=et())&&(i.alert=o.first)}},decls:1,vars:1,consts:[["alert",""],["class","waw-alert-container height",3,"ngClass","_close",4,"ngIf"],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(r,i){r&1&&T(0,I1,8,17,"div",1),r&2&&m("ngIf",i.text)},dependencies:[Gt,Ue,Ye,tv],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']})}return t})();var Uc=(()=>{class t{elementRef;clickOutside=new U;constructor(n){this.elementRef=n}onClick(n){this.elementRef.nativeElement.contains(n.target)||this.clickOutside.emit(n)}static \u0275fac=function(r){return new(r||t)(I(Ee))};static \u0275dir=oe({type:t,selectors:[["","clickOutside",""]],hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s)},!1,wm)},outputs:{clickOutside:"clickOutside"}})}return t})();var $c=(()=>{class t{c=0;transform(n,r,i,o,s,a){if(!r)return n;if(typeof i=="number"&&(o=i,i=null),s||!r)return o&&Array.isArray(n)?n.slice(0,o):n||[];let c=[],l={};if(!Array.isArray(r)&&typeof r=="object"){let f=[];for(let h in r)r[h]&&f.push(h);r=f}typeof r=="string"&&(r=[r]),i||(i=["name"]),typeof i=="string"&&(i=i.split(" "));let u=function(f,h,w,R){if(f){if(h.indexOf(".")>-1){let x=h.split("."),M=x.shift();if(Array.isArray(f[M])){for(let X=0;X-1||r[x].toLowerCase().indexOf(f[h].toString().toLowerCase())>-1)){l[R]||c.push(w),l[R]=!0,M=!0;break}if(M)break}}},d=function(f,h){for(let w=0;w{s&&(this.docs=s)})}_id(e){return e[this._config._id||"_id"]?.toString()}setDocs(){this._store.setJson("docs_"+this._config.name,this.docs)}addDoc(e){this._config.replace&&this._config.replace(e);let n=this.docs.find(r=>this._id(r)===this._id(e));n?(this._core.copy(e,n),this._core.copy(n,e)):this.docs.push(e),this.setDocs()}new(){return{_id:Date.now().toString(),__created:!1,__modified:!1}}doc(e){return this.docs.find(n=>this._id(n)===e)||this.new()}configDocs(e,n,r){return this._names.includes(e)?this.getConfigedDocs(e):(this._names.push(e),this._docsReset[e]=r,this._docsConfiguration[e]=n,this.reconfigureDocs(e),this.getConfigedDocs(e))}getConfigedDocs(e){return this._configuredDocs[e]}reconfigureDocs(e=""){let n=e?[e]:this._names;for(let r of n){this._configuredDocs[r]=this._docsReset[r]();for(let i of this.docs)this._docsConfiguration[r](i,this._configuredDocs[r])}}setPerPage(e){this._perPage=e}get(e={},n={}){let r=`${this._url}/get${n.name||""}`,i=typeof e.page=="number"?`?skip=${this._perPage*(e.page-1)}&limit=${this._perPage}`:"",o=this._http.get(`${r}${i}`);return o.subscribe(s=>{s.forEach(a=>this.addDoc(a)),n.callback&&n.callback(s)},s=>{n.errCallback&&n.errCallback(s)}),o}create(e,n={}){if(e.__created)return;e.__created=!0;let r=this._http.post(`${this._url}/create${n.name||""}`,e);return r.subscribe(i=>{i?(this._core.copy(i,e),this.addDoc(e),this.reconfigureDocs(),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}create`,text:n.alert})):(e.__created=!1,n.errCallback&&n.errCallback(i)),this._core.emit(`${this._config.name}_create`,e)},i=>{e.__created=!1,n.errCallback&&n.errCallback(i)}),r}fetch(e={},n={}){let r=this._http.post(`${this._url}/fetch${n.name||""}`,e);return r.subscribe(i=>{i?(this.addDoc(i),this.reconfigureDocs(),n.callback&&n.callback(i),n.alert&&this._alert.show({unique:`${this._config.name}create`,text:n.alert})):n.errCallback&&n.errCallback(i)},i=>{n.errCallback&&n.errCallback(i)}),r}updateAfterWhile(e,n={}){e.__modified=!0,this._core.afterWhile(this._id(e),()=>{this.update(e,n)})}update(e,n={}){e.__modified=!0;let r=this._http.post(`${this._url}/update${n.name||""}`,e);return r.subscribe(i=>{i?(e.__modified=!1,this._core.copy(i,e),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}update`,text:n.alert})):n.errCallback&&n.errCallback(i),this._core.emit(`${this._config.name}_update`,e)},i=>{n.errCallback&&n.errCallback(i)}),r}delete(e,n={}){let r=this._http.post(`${this._url}/delete${n.name||""}`,e);return r.subscribe(i=>{i?(this.docs=this.docs.filter(o=>this._id(o)!==this._id(e)),this.setDocs(),this.reconfigureDocs(),n.callback&&n.callback(e),n.alert&&this._alert.show({unique:`${this._config.name}delete`,text:n.alert})):n.errCallback&&n.errCallback(i),this._core.emit(`${this._config.name}_delete`,e)},i=>{n.errCallback&&n.errCallback(i)}),r}},Yt=(()=>{class t{config;core;_prefix="";constructor(n,r){this.config=n,this.core=r,this.config=this.config||Ti}setPrefix(n){this._prefix=n}set(n,r,i=()=>{},o=()=>{}){if(n=this.applyPrefix(n),this.config.store?.set)this.config.store.set(n,r,i,o);else try{this.core.localStorage.setItem(n,r),i()}catch{o()}}setAsync(n,r){return vt(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.set?yield this.config.store.set(n,r):this.core.localStorage.setItem(n,r),!0}catch(i){return console.error(i),!1}})}get(n,r=()=>{},i=()=>{}){if(n=this.applyPrefix(n),this.config.store?.get)this.config.store.get(n,r,i);else{let o=this.core.localStorage.getItem(n)||"";r(o)}}getAsync(n){return vt(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.get?yield this.config.store.get(n):this.core.localStorage.getItem(n)||""}catch(r){return console.error(r),""}})}setJson(n,r,i=()=>{},o=()=>{}){this.set(n,JSON.stringify(r),i,o)}setJsonAsync(n,r){return vt(this,null,function*(){return this.setAsync(n,JSON.stringify(r))})}getJson(n,r=()=>{},i=()=>{}){this.get(n,o=>{try{let s=JSON.parse(o);r(s)}catch{r(null)}},i)}getJsonAsync(n){return vt(this,null,function*(){let r=yield this.getAsync(n);try{return JSON.parse(r)}catch(i){return console.error(i),null}})}remove(n,r,i){return vt(this,null,function*(){n=this.applyPrefix(n);try{return this.config.store?.remove?yield this.config.store.remove(n,r,i):this.core.localStorage.removeItem(n),r?.(),!0}catch(o){return console.error(o),i?.(),!1}})}clear(n,r){return vt(this,null,function*(){try{return this.config.store?.clear?yield this.config.store.clear():this.core.localStorage.clear(),n?.(),!0}catch(i){return console.error(i),r?.(),!1}})}applyPrefix(n){return this.config.store?.prefix&&(n=this.config.store.prefix+n),this._prefix&&(n=this._prefix+n),n}static \u0275fac=function(r){return new(r||t)(_(br,8),_(xe))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oi=(()=>{class t{store;http;_config;errors=[];url="";locked=!1;awaitLocked=[];_http;_headers={};_http_headers=new $e(this._headers);constructor(n,r,i){if(this.store=n,this.http=r,this._config=i,this._http=this._config.http||{},typeof this._http.headers=="object"){for(let o in this._http.headers)this._headers[o]=this._http.headers[o];this._http_headers=new $e(this._headers)}this.store.get("http_url",o=>{this.url=o||this._http.url||""}),this.store.getJson("http_headers",o=>{if(o){for(let s in o)this._headers[s]=o[s];this._http_headers=new $e(this._headers)}})}setUrl(n){this.url=n,this.store.set("http_url",n)}removeUrl(){this.url=this._http.url||"",this.store.remove("http_url")}set(n,r){this._headers[n]=r,this.store.setJson("http_headers",this._headers),this._http_headers=new $e(this._headers)}header(n){return this._headers[n]}remove(n){delete this._headers[n],this._http_headers=new $e(this._headers),this.store.setJson("http_headers",this._headers)}_httpMethod(n,r,i,o){return n==="post"?this.http.post(r,i,o):n==="put"?this.http.put(r,i,o):n==="patch"?this.http.patch(r,i,o):n==="delete"?this.http.delete(r,o):this.http.get(r,o)}_post(n,r,i=a=>{},o={},s="post"){if(typeof o=="function"&&(o={err:o}),o.err||(o.err=l=>{}),this.locked&&!o.skipLock)return new q(l=>{let u=setTimeout(()=>{this._post(n,r,i,o,s).subscribe(l)},100);this.awaitLocked.push(u)});let a=(o.url||this.url)+n;this.prepare_handle(a,r);let c=new Li(1);return this._httpMethod(s,a,r,{headers:this._http_headers}).pipe(ct(),wt(l=>(this.handleError(o.err,()=>{this._post(n,r,i,o,s).subscribe(c)})(l),c.error(l),Ne))).subscribe({next:l=>{this.response_handle(a,l,()=>i(l)),c.next(l),c.complete()},error:l=>c.error(l),complete:()=>c.complete()}),c.asObservable()}post(n,r,i=s=>{},o={}){return this._post(n,r,i,o)}put(n,r,i=s=>{},o={}){return this._post(n,r,i,o,"put")}patch(n,r,i=s=>{},o={}){return this._post(n,r,i,o,"patch")}delete(n,r=o=>{},i={}){return this._post(n,null,r,i,"delete")}get(n,r=o=>{},i={}){return this._post(n,null,r,i,"get")}clearLocked(){for(let n of this.awaitLocked)clearTimeout(n);this.awaitLocked=[]}lock(){this.locked=!0}unlock(){this.locked=!1}handleError(n,r){return i=>new Promise(o=>{this.err_handle(i,n,r),o()})}err_handle(n,r,i){typeof r=="function"&&r(n);for(let o of this.errors)typeof o=="function"&&o(n,i)}prepare_handle(n,r){}response_handle(n,r,i){typeof i=="function"&&i()}static \u0275fac=function(r){return new(r||t)(_(Yt),_(Qd),_(br,8))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m0=(()=>{class t{store;http;core;data={};socket={emit:(n,r)=>{console.log(n,r,"is not used on sockets")}};config(n,r){if(!this.data["opts"+n]){if(this.data["arr"+n]||(this.data["arr"+n]=[]),this.data["obj"+n]||(this.data["obj"+n]={}),this.data["opts"+n])for(let i in r)this.data["opts"+n][i]=r[i];else this.data["opts"+n]=r=r||{};if(typeof r.use=="string"&&(r.use=r.use.split(" ")),r.query)for(let i in r.query)typeof r.query[i]=="function"&&(r.query[i]={allow:r.query[i]}),this.data["obj"+n][i]=[];if(r.groups){if(typeof r.groups=="string"&&(r.groups=r.groups.split(" ")),Array.isArray(r.groups)){let i=r.groups;r.groups={};for(let o=0;o{s?(this.socket.emit("create",{_id:s._id,part:n}),this.push(n,s),typeof i=="function"&&i(s)):typeof i=="function"&&i(!1)},{url:o.base_url||this.http.url}))}fetch(n,r=void 0,i=void 0){if(r.query&&r.query._id&&!r.force&&this.data["obj"+n][r.query._id])return this.data["obj"+n][r.query._id];typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(n,r);let o="/api/"+n+"/fetch"+(r.name||""),s;if(r.query&&r.query._id&&this.data["obj"+n][r.query._id])s=this.data["obj"+n][r.query._id];else{s={};for(let a in this.data["opts"+n].replace)this.replace(s,a,this.data["opts"+n].replace[a])}return this.http.post(r.url||o,r.query||{},a=>{if(!a)return i&&i(!1);for(let c in a)s[c]=a[c];for(let c in s)s[c]=a[c];this.push(n,s),a&&typeof i=="function"&&i(s)},{url:r.base_url||this.http.url}),s}get(n,r=void 0,i=void 0){typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(n,r);let o="/api/"+n+"/get"+(r.name||"")+(r.param||"");return this.http.get(r.url||o,s=>{if(Array.isArray(s)){for(let a=0;a{a&&this.socket.emit("update",{_id:r._id,part:n}),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}unique(n,r,i=void 0,o=void 0){typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),r=this.prepare_update(n,r,i);let s="/api/"+n+"/unique"+(i.name||"");this.http.post(i.url||s,r,a=>{if(a){this.socket.emit("update",{_id:r._id,part:n});let c=this.data["obj"+n][r._id];for(let l in r)c[l]=r[l];this.renew(n,c)}(a||typeof a=="string")&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}delete(n,r,i=void 0,o=void 0){if(typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),i.fields){typeof i.fields=="string"&&(i.fields=i.fields.split(" "));let a={};for(let c=0;c{a&&(this.socket.emit("delete",{_id:r._id,part:n}),this.remove(n,r)),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}_id(n){typeof n=="function"&&this.http.get("/waw/newId",n)}to_id(n){if(!n)return[];if(Array.isArray(n))n=n.slice();else if(typeof n=="object"){if(n._id)return[n._id];let r=[];for(let i in n)n[i]&&r.push(n[i]._id||n[i]);n=r}for(let r=0;r-1){r=r.split(".");let o=r.shift();return typeof n[o]!="object"?void 0:this.populate(n[o],r.join("."),i)}if(Array.isArray(n[r])){for(let o=n[r].length-1;o>=0;o--)this.data["obj"+i][n[r][o]]?n[r][o]=this.data["obj"+i][n[r][o]]:n[r].splice(o,1);return}else if(typeof n[r]=="string")n[r]=this.data["obj"+i][n[r]]||null;else return}else setTimeout(()=>{this.populate(n,r,i)},100)}}on(n,r){typeof n=="string"&&(n=n.split(" "));for(var i=0;i{this.on(n,r)},100);r(this.data)}track(n,r){return r&&r._id&&r._id||n}sortAscId(){return function(n,r){return n._id>r._id?1:-1}}sortDescId(){return function(n,r){return n._idi[n.field].toLowerCase()?1:r[n.field].toLowerCase()i[n.field].toLowerCase()||!n.next?-1:n.next(r,i)}}sortAscDate(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field].getTime()>i[n.field].getTime()?1:r[n.field].getTime()i[n.field].getTime()||!n.next?-1:n.next(r,i)}}sortAscNumber(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field]>i[n.field]?1:r[n.field]i[n.field]||!n.next?-1:n.next(r,i)}}sortAscBoolean(n){return typeof n=="string"&&(n={field:n}),function(r,i){return!r[n.field]&&i[n.field]?1:r[n.field]&&!i[n.field]||!n.next?-1:n.next(r,i)}}sortDescBoolean(n){return typeof n=="string"&&(n={field:n}),function(r,i){return r[n.field]&&!i[n.field]?1:!r[n.field]&&i[n.field]||!n.next?-1:n.next(r,i)}}beArr(n,r){Array.isArray(n)?r(n):r([])}beObj(n,r){(typeof n!="object"||Array.isArray(n)||!n)&&(n={}),r(n)}beDate(n,r){r(new Date(n))}beString(n,r){typeof n!="string"&&(n=""),r(n)}beDoc=(n,r)=>{this.beObj(n,i=>{i._id?r(i):this._id(o=>{i._id=o,r(i)})})};forceArr(n,r){r([])}forceObj(n,r){r({})}forceString(n,r){r("")}forceDoc=(n,r)=>{this._id(i=>{r({_id:i})})};getCreated(n,r,i){r(new Date(parseInt(i._id.substring(0,8),16)*1e3))}replace(n,r,i){if(r.indexOf(".")>-1){r=r.split(".");let o=r.shift();return n[o]&&(typeof n[o]!="object"||Array.isArray(n[o]))?void 0:(n[o]||(n[o]={}),this.replace(n[o],r.join("."),i))}typeof i=="function"&&i(n[r],function(o){n[r]=o},n)}renew(n,r){if(!this.data["obj"+n][r._id])return this.push(n,r);if(this.data["opts"+n].replace)for(let i in this.data["opts"+n].replace)this.replace(r,i,this.data["opts"+n].replace[i]);for(let i in this.data["obj"+n][r._id])this.data["obj"+n][r._id][i]=r[i];for(let i in r)this.data["obj"+n][r._id][i]=r[i];for(let i=0;i{if(a[l]=!0,!!l){if(Array.isArray(this.data["obj"+n][i][l])||(this.data["obj"+n][i][l]=[]),o){for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)if(this.data["obj"+n][i][l][u]._id==r._id)return;this.data["obj"+n][i][l].push(r)}else for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)this.data["obj"+n][i][l][u]._id==r._id&&this.data["obj"+n][i][l].splice(u,1);typeof s.sort=="function"&&this.data["obj"+n][i][l].sort(s.sort)}};c(s.field(r,c.bind(this)));for(let l in this.data["obj"+n][i])if(!a[l])for(let u=this.data["obj"+n][i][l].length-1;u>=0;u--)this.data["obj"+n][i][l][u]._id==r._id&&this.data["obj"+n][i][l].splice(u,1)}if(this.data["opts"+n].query)for(let i in this.data["opts"+n].query){let o=!0,s=this.data["opts"+n].query[i];if(typeof s.ignore=="function"&&s.ignore(r)&&(o=!1),typeof s.allow=="function"&&!s.allow(r)&&(o=!1),this.data["obj"+n][i]||(this.data["obj"+n][i]=[]),o){for(let a=this.data["obj"+n][i].length-1;a>=0;a--)if(this.data["obj"+n][i][a]._id==r._id)return;this.data["obj"+n][i].push(r)}else for(let a=this.data["obj"+n][i].length-1;a>=0;a--)this.data["obj"+n][i][a]._id==r._id&&this.data["obj"+n][i].splice(a,1);typeof s.sort=="function"&&this.data["obj"+n][i].sort(s.sort)}}push(n,r){if(this.data["arr"+n]||(this.data["arr"+n]=[]),this.data["obj"+n]||(this.data["obj"+n]={}),this.data["opts"+n]||(this.data["opts"+n]={}),this.data["obj"+n][r._id])return this.renew(n,r);if(this.data["opts"+n].replace)for(let i in this.data["opts"+n].replace)this.replace(r,i,this.data["opts"+n].replace[i]);if(this.data["opts"+n].populate){let i=this.data["opts"+n].populate;if(Array.isArray(i))for(let o=0;o{a&&(Array.isArray(this.data["obj"+n][i][a])||(this.data["obj"+n][i][a]=[]),this.data["obj"+n][i][a].push(r),typeof o.sort=="function"&&this.data["obj"+n][i][a].sort(o.sort))};s(o.field(r,a=>{s(a)}))}if(this.data["opts"+n].query)for(let i in this.data["opts"+n].query){let o=this.data["opts"+n].query[i];typeof o.ignore=="function"&&o.ignore(r)||typeof o.allow=="function"&&!o.allow(r)||(this.data["obj"+n][i]||(this.data["obj"+n][i]=[]),this.data["obj"+n][i].push(r),typeof o.sort=="function"&&this.data["obj"+n][i].sort(o.sort))}for(let i=0;i=0;s--)this.data["obj"+n][i][o][s]._id==r._id&&this.data["obj"+n][i][o].splice(s,1);if(this.data["opts"+n].query){for(let i in this.data["opts"+n].query)for(let o=this.data["obj"+n][i].length-1;o>=0;o--)if(this.data["obj"+n][i][o]._id==r._id){this.data["obj"+n][i].splice(o,1);break}}}}constructor(n,r,i){this.store=n,this.http=r,this.core=i,console.warn("Mongo Service is deprecated"),this.core.onComplete("socket").then(o=>{this.socket=o,o.on("create",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("update",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("delete",s=>{this.remove(s.part,s)})})}static \u0275fac=function(r){return new(r||t)(_(Yt),_(Oi),_(xe))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fB=(()=>{class t{core;replacements=[{from:"%20",to:" "}];hash={};done=!1;constructor(n){this.core=n,this.initialize()}initialize(){if(!this.core.window.location.hash){this.done=!0;return}this.load(),this.done=!0}load(){this.hash={};let n=this.core.window.location.hash.replace("#!#","").replace("#","").split("&");for(let r of n){let[i,o]=r.split("=");i=this.applyReplacements(i),o=this.applyReplacements(o),this.hash[i]=o}}applyReplacements(n){if(!n)return"";for(let r of this.replacements)n=n.split(r.from).join(r.to);return n}on(n,r){if(!this.done){setTimeout(()=>this.on(n,r),100);return}r(this.hash[n])}save(){let n=Object.entries(this.hash).map(([r,i])=>`${r}=${i}`).join("&");this.core.window.location.hash=n}set(n,r){this.hash[n]=r,this.save()}get(n){return this.hash[n]}clear(n){n?delete this.hash[n]:this.hash={},this.save()}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hc=(()=>{class t{componentFactoryResolver;appRef;injector;core;providedIn={};constructor(n,r,i,o){this.componentFactoryResolver=n,this.appRef=r,this.injector=i,this.core=o}appendById(n,r={},i){let o=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0],a=this.core.document.getElementById(i);return a&&typeof a.appendChild=="function"&&a.appendChild(s),{nativeElement:s,componentRef:o}}appendComponent(n,r={},i=this.core.document.body){if(r.providedIn){if(this.providedIn[r.providedIn])return;this.providedIn[r.providedIn]=!0}let o=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];return i&&typeof i.appendChild=="function"&&i.appendChild(s),{nativeElement:s,componentRef:o}}getComponentRef(n,r={}){let i=this.componentFactoryResolver.resolveComponentFactory(n).create(this.injector);return this.projectComponentInputs(i,r),this.appRef.attachView(i.hostView),i}projectComponentInputs(n,r){if(r){let i=Object.getOwnPropertyNames(r);for(let o of i)n.instance[o]=r[o]}return n}static \u0275fac=function(r){return new(r||t)(_($t),_(tt),_(Se),_(xe))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T1=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ue({type:t,selectors:[["lib-wrapper"]],decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(r,i){r&1&&(y(0,"div"),de(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),v())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]})}return t})(),y0=(()=>{class t{dom;core;config;alert;_container;constructor(n,r,i){if(this.dom=n,this.core=r,this.config=i,this.config||(this.config=Ti),this.alert=this.config.alert,!this.alert)this.alert=lh;else for(let o in lh)this.alert[o]||(this.alert[o]=lh[o]);this._container=this.dom.appendComponent(T1)}uniques={};shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"};positionNumber={topLeft:3,topCenter:4,topRight:2,right:"",bottomRight:0,bottomCenter:5,bottomLeft:1,left:"",center:6};show(n){typeof n=="string"&&(n={text:n}),n||(n={}),n.type||(n.type="info");for(let o in this.alert)o=="class"?n[o]=n[o]+" "+this.alert[o]:typeof n[o]>"u"&&(n[o]=this.alert[o]);this.shortcuts[n.position]&&(n.position=this.shortcuts[n.position]),n.position||(n.position="bottomRight");var r;n.close=()=>{r&&r.componentRef.destroy(),n.component.nativeElement.remove(),typeof n.onClose=="function"&&n.onClose()};let i=!1;return typeof n.component=="string"&&this.alert.alerts[n.component]?(n.component=this.alert.alerts[n.component],i=!0):n.component=this.dom.appendById(S1,n,n.position),typeof n.component=="function"&&(r=this.dom.appendComponent(n.component,n,this._container.nativeElement.children[0].children[this.positionNumber[n.position]||0])),n.unique&&(this.uniques[n.unique]&&this.uniques[n.unique].remove(),this.uniques[n.unique]=n.component.nativeElement),typeof n.timeout!="number"&&(n.timeout=2e3),n.timeout&&setTimeout(()=>{n.close()},n.timeout),n.component.nativeElement}open(n){this.show(n)}info(n){n.type="info",this.show(n)}success(n){n.type="success",this.show(n)}warning(n){n.type="warning",this.show(n)}error(n){n.type="error",this.show(n)}question(n){n.type="question",this.show(n)}destroy(){this.core.document.getElementById("bottomRight").innerHTML="",this.core.document.getElementById("bottomLeft").innerHTML="",this.core.document.getElementById("bottomCenter").innerHTML="",this.core.document.getElementById("topRight").innerHTML="",this.core.document.getElementById("topLeft").innerHTML="",this.core.document.getElementById("topCenter").innerHTML="",this.core.document.getElementById("center").innerHTML=""}static \u0275fac=function(r){return new(r||t)(_(Hc),_(xe),_(br,8))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var O1=(()=>{class t{fs;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ue({type:t,selectors:[["lib-files"]],decls:1,vars:1,consts:[["input",""],[4,"ngFor","ngForOf"],["type","file","name","file",3,"change","id","hidden","accept","multiple"]],template:function(r,i){r&1&&T(0,x1,3,4,"ng-container",1),r&2&&m("ngForOf",i.fs.files)},dependencies:[Ue]})}return t})(),hB=(()=>{class t{dom;core;http;added={};files=[];constructor(n,r,i){this.dom=n,this.core=r,this.http=i,this.dom.appendComponent(O1,{fs:this})}add(n){if(typeof n=="string"&&(n={id:n}),!n.id){console.log("You have to pass ID into file object");return}if(n.type=n.type||"image",typeof n.resize=="number"&&(n.resize={width:n.resize,height:n.resize}),this.added[n.id]&&(this.files=this.files.filter(r=>r.id!==n.id)),this.files.push(n),this.added[n.id]=n,n.save)return()=>{n.complete?.()}}change(n,r){let i=n.target;i.files&&(r.type==="image"?r.multiple?(r.multiple_cb&&(r.multiple_files=[],r.multiple_counter=i.files.length),Array.from(i.files).forEach(o=>this.process(o,r))):this.process(i.files[0],r):r.type==="file"?(r.multiple&&r.multiple_cb?.(Array.from(i.files).map(o=>({dataUrl:"",file:o}))),Array.from(i.files).forEach(o=>r.cb?.("",o)),(r.part||r.url)&&this.uploadFiles(r,i.files)):console.log("Provide type `image` or `file`"))}remove(n,r,i={},o=()=>{}){if(i.url=r,i.save)return()=>{this.http.post(i.api||`/api/${n}/file/delete`,i,o)};this.http.post(i.api||`/api/${n}/file/delete`,i,o)}uploadFiles(n,r,i=()=>{}){let o=new FormData;n.append?n.append(o,r):r.forEach((a,c)=>o.append(`file[${c}]`,a));let s=typeof n.body=="function"?n.body():n.body||{};Object.entries(s).forEach(([a,c])=>o.append(a,c)),n.save?n.complete=()=>{this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,o,a=>{n.resp?.(a),i(a)})}:this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,o,a=>{n.resp?.(a),i(a)})}image(n,r=()=>{}){if(n.save)return()=>{this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,n,r)};this.http.post(n.api||`/api/${n.part}/file${n.name?`/${n.name}`:""}`,n,r)}update(n,r,i){if(r.cb?.(n,i),r.multiple_cb&&(r.multiple_files.push({dataUrl:n,file:i}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files)),!r.part)return;let o=typeof r.body=="function"?r.body():r.body||{};o.dataUrl=n,r.save?r.complete=()=>{this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}:this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}process(n,r){if(!n.type.startsWith("image/")){r.cb?.(!1,n),r.multiple_cb&&(r.multiple_files.push({dataUrl:"",file:n}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files));return}r.resize&&(r.resize.width=r.resize.width||1920,r.resize.height=r.resize.height||1080);let i=new FileReader;i.onload=o=>{if(!r.resize)return this.update(o.target?.result,r,n);let s=this.core.document.createElement("canvas"),a=this.core.document.createElement("img");a.onload=()=>{if(a.width<=r.resize.width&&a.height<=r.resize.height)return this.update(o.target?.result,r,n);let c=r.resize.width/r.resize.height,l=a.width/a.height,u,d;l>c?(u=Math.min(r.resize.width,a.width),d=u/l):(d=Math.min(r.resize.height,a.height),u=d*l),s.width=u,s.height=d,s.getContext("2d").drawImage(a,0,0,u,d);let h=s.toDataURL("image/jpeg",1);this.update(h,r,n)},a.src=o.target?.result},i.readAsDataURL(n)}static \u0275fac=function(r){return new(r||t)(_(Hc),_(xe),_(Oi))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pB=(()=>{class t{core;variables={};_forms={};var={};constructor(n){this.core=n;let r=this.core.localStorage.getItem("css_variables");this.variables=r?JSON.parse(r):{};for(let i in this.variables)this.setProperty(i,this.variables[i])}form(n){return typeof n!="string"?{}:(this._forms[n]||(this._forms[n]={}),this._forms[n])}valid(n,r="email",i=0){let o={email:s=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(s||""),text:s=>typeof s=="string",array:s=>Array.isArray(s),object:s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,number:s=>typeof s=="number",password:s=>{if(!s)return!1;switch(i){case 1:return/^((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9]))/.test(s||"");case 2:return/^(((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{8,})/.test(s||"");case 3:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]))(?=.{8,})/.test(s||"");case 4:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%&!-_]))(?=.{8,})/.test(s||"");default:return!!s}}};return o[r]?o[r](n):!1}level(n=""){if(!n)return 0;let r=0;return n.length>8&&r++,/[a-z]/.test(n)&&r++,/[A-Z]/.test(n)&&r++,/[1-9]/.test(n)&&r++,/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(n)&&r++,r}save(){this.core.localStorage.setItem("css_variables",JSON.stringify(this.variables))}setProperty(n,r){this.core.document.documentElement.style.setProperty(n,r)}set(n,r={}){if(typeof r=="string"&&(r=r==="local"?{local:!0}:{host:r}),!(r.host&&this.core.window.location.host!==r.host)){for(let i in n){if(r.local)this.variables[i]=n[i];else if(this.variables[i])continue;this.setProperty(i,n[i])}r.local&&this.save()}}get(){return this.variables}remove(n){let r=Array.isArray(n)?n:n.split(" ");for(let i of r)delete this.variables[i];this.save()}arr(n=10,r="number"){let i=[];for(let o=0;o{class t{static forRoot(n=Ti){return{ngModule:t,providers:[{provide:br,useValue:n}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ae({type:t});static \u0275inj=se({providers:[{provide:br,useValue:Ti},M1,g0,mv(yv())],imports:[Fe,Zt]})}return t})();var A1=["*"],N1=(t,e,n,r,i,o,s,a,c)=>({_primary:t,_secondary:e,_success:n,_danger:r,_warning:i,_info:o,_light:s,_dark:a,_link:c}),zc=(()=>{let e=class e{constructor(){this.type="primary",this.class="",this.disabled=!1,this.disableSubmit=!1,this.wClick=new U}clicked(){this.disabled||(typeof this.click=="function"&&this.click(),this.wClick.emit())}setDisabled(r){this.disabled=r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ue({type:e,selectors:[["wbutton"]],inputs:{type:"type",class:"class",disabled:"disabled",disableSubmit:"disableSubmit",click:"click"},outputs:{wClick:"wClick"},ngContentSelectors:A1,decls:2,vars:16,consts:[[3,"click","ngClass","type","disabled"]],template:function(i,o){i&1&&(Fa(),y(0,"button",0),O("click",function(){return o.clicked()}),eo(1),v()),i&2&&(Sy("w-btn",o.class?" "+o.class:"",""),m("ngClass",Py(6,N1,[o.type==="primary",o.type==="secondary",o.type==="success",o.type==="danger",o.type==="warning",o.type==="info",o.type==="light",o.type==="dark",o.type==="link"]))("type",o.click||o.disableSubmit?"button":"submit")("disabled",o.disabled))},dependencies:[Gt]});let t=e;return t})();var qc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Fe]});let t=e;return t})();var _0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(I(dt))},e.\u0275dir=oe({type:e,selectors:[["ng-template","cell",""]],inputs:{cell:"cell"}});let t=e;return t})(),w0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(I(dt))},e.\u0275dir=oe({type:e,selectors:[["ng-template","sort",""]],inputs:{cell:"cell"}});let t=e;return t})(),C0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(I(dt))},e.\u0275dir=oe({type:e,selectors:[["ng-template","actions",""]]});let t=e;return t})(),b0=(()=>{let e=class e{constructor(r){this.template=r}};e.\u0275fac=function(i){return new(i||e)(I(dt))},e.\u0275dir=oe({type:e,selectors:[["ng-template","customEdit",""]]});let t=e;return t})();var D0=(()=>{let e=class e{transform(r,i,o,s){if(!Array.isArray(r))return[];if(i.perPage===-1)return r;r=r.slice();for(let a=0;aa[o.title]c[o.title]?o.direction=="desc"?-1:1:0),r.slice((i.page-1)*i.perPage,i.page*i.perPage)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ir({name:"perPage",type:e,pure:!0});let t=e;return t})();var R1=t=>({$implicit:t});function k1(t,e){if(t&1){let n=G();y(0,"div",17)(1,"input",18),O("ngModelChange",function(){A(n);let i=g();return N(i.searching())})("keyup.enter",function(){A(n);let i=g();return i.search(),N(i.searchShow=!1)}),qt("ngModelChange",function(i){A(n);let o=g();return un(o.searching_text,i)||(o.searching_text=i),N(i)}),v(),y(2,"span",19),O("click",function(){A(n);let i=g();return i.search(),N(i.searchShow=!1)}),P(3," search "),v()()}if(t&2){let n=g();pe("table-search--active",n.searchShow),p(),zt("ngModel",n.searching_text)}}function F1(t,e){if(t&1){let n=G();y(0,"div",20)(1,"span",21),O("click",function(){A(n);let i=g();return N(i.searchShow=!0)}),P(2," search "),v()()}}function L1(t,e){if(t&1&&(y(0,"i",24),P(1),v()),t&2){let n=g(2).$implicit;m("title",n.icon),p(),fe(" ",n.icon," ")}}function V1(t,e){if(t&1&&(y(0,"span"),P(1),v()),t&2){let n=g(2).$implicit;p(),Ie(n.text)}}function j1(t,e){if(t&1){let n=G();y(0,"wbutton",22),O("click",function(){A(n);let i=g().$implicit;return N(i.click())}),T(1,L1,2,2,"i",23)(2,V1,2,1,"span",9),v()}if(t&2){let n=g().$implicit;m("disableSubmit",!0),p(),m("ngIf",n.icon),p(),m("ngIf",n.text)}}function B1(t,e){if(t&1&&(we(0),T(1,j1,3,3,"wbutton",10),Ce()),t&2){let n=e.$implicit,r=g(2);p(),m("ngIf",r.config.create&&n)}}function U1(t,e){if(t&1&&(we(0),T(1,B1,2,1,"ng-container",15),Ce()),t&2){let n=g();p(),m("ngForOf",n.config.headerButtons)}}function $1(t,e){if(t&1){let n=G();y(0,"wbutton",22),O("click",function(){A(n);let i=g();return N(i.config.create())}),P(1," + "),y(2,"span"),P(3,"Add new"),v()()}t&2&&m("disableSubmit",!0)}function H1(t,e){t&1&&(y(0,"th"),P(1,"No."),v())}function z1(t,e){t&1&&(y(0,"span",28),P(1," keyboard_backspace "),v())}function q1(t,e){if(t&1){let n=G();y(0,"th",25)(1,"div",26),O("click",function(){let i=A(n).$implicit,o=g();return N(o.sort(i))}),y(2,"span"),P(3),v(),T(4,z1,2,0,"span",27),v()()}if(t&2){let n=e.$implicit,r=g();p(),pe("_sortActiveDown",r.sort_type.direction==="desc"&&n.field===r.sort_type.title)("_sortActiveUp",r.sort_type.direction==="asc"&&n.field===r.sort_type.title),p(2),Ie(n.title),p(),m("ngIf",r.sortable[n.field])}}function G1(t,e){t&1&&mt(0)}function W1(t,e){if(t&1&&T(0,G1,1,0,"ng-container",30),t&2){let n=g(2);m("ngTemplateOutlet",n.action.template)}}function Z1(t,e){t&1&&P(0,"Actions")}function Y1(t,e){t&1&&mt(0)}function Q1(t,e){if(t&1&&(y(0,"th"),T(1,W1,1,1,"ng-template",null,0,dn)(3,Z1,1,0,"ng-template",null,1,dn)(5,Y1,1,0,"ng-container",29),v()),t&2){let n=St(2),r=St(4),i=g();p(5),m("ngIf",i.action)("ngIfThen",n)("ngIfElse",r)}}function K1(t,e){if(t&1&&(y(0,"td"),P(1),v()),t&2){let n=g().$implicit;p(),Ie(n.num)}}function J1(t,e){if(t&1&&(y(0,"td"),P(1),v()),t&2){let n=g().$implicit,r=g().$implicit;cr("data-label",n.title+":\xA0"),p(),fe(" ",r[n.field]," ")}}function X1(t,e){t&1&&mt(0)}function eO(t,e){if(t&1&&(y(0,"td"),T(1,X1,1,0,"ng-container",32),v()),t&2){let n=g().$implicit,r=g().$implicit,i=g();cr("data-label",n.title+":\xA0"),p(),m("ngTemplateOutlet",i.custom_cell[n.field])("ngTemplateOutletContext",Pn(3,R1,r))}}function tO(t,e){t&1&&mt(0)}function nO(t,e){if(t&1&&(we(0),T(1,J1,2,2,"ng-template",null,2,dn)(3,eO,2,5,"ng-template",null,3,dn)(5,tO,1,0,"ng-container",29),Ce()),t&2){let n=e.$implicit,r=St(2),i=St(4),o=g(2);p(5),m("ngIf",o.custom_cell[n.field])("ngIfThen",i)("ngIfElse",r)}}function rO(t,e){if(t&1){let n=G();y(0,"i",40),O("click",function(){A(n);let i=g(2).$implicit,o=g(3).$implicit;return N(i.click(o))}),P(1),v()}if(t&2){let n=g(2).$implicit;m("title",n.icon),p(),fe(" ",n.icon," ")}}function iO(t,e){if(t&1&&(y(0,"a",41)(1,"i",24),P(2),v()()),t&2){let n=g(2).$implicit;m("href",n.ahref,Sa)("target",n.target||"_blank"),p(),m("title",n.icon),p(),fe(" ",n.icon," ")}}function oO(t,e){if(t&1&&(y(0,"a",41)(1,"i",24),P(2),v()()),t&2){let n=g(2).$implicit,r=g(3).$implicit;m("href",n.ahrefFunc(r),Sa)("target",n.target||"_blank"),p(),m("title",n.icon),p(),fe(" ",n.icon," ")}}function sO(t,e){if(t&1&&(y(0,"a",42)(1,"i",24),P(2),v()()),t&2){let n=g(2).$implicit;m("routerLink",n.href),p(),m("title",n.icon),p(),fe(" ",n.icon," ")}}function aO(t,e){if(t&1&&(y(0,"a",42)(1,"i",24),P(2),v()()),t&2){let n=g(2).$implicit,r=g(3).$implicit;m("routerLink",n.hrefFunc(r)),p(),m("title",n.icon),p(),fe(" ",n.icon," ")}}function cO(t,e){if(t&1&&(we(0),T(1,rO,2,2,"i",37)(2,iO,3,4,"a",38)(3,oO,3,4,"a",38)(4,sO,3,3,"a",39)(5,aO,3,3,"a",39),Ce()),t&2){let n=g().$implicit;p(),m("ngIf",!n.ahref&&!n.ahrefFunc&&!n.href&&!n.hrefFunc),p(),m("ngIf",n.href),p(),m("ngIf",n.ahrefFunc),p(),m("ngIf",n.href),p(),m("ngIf",n.hrefFunc)}}function lO(t,e){if(t&1&&(we(0),T(1,cO,6,5,"ng-container",9),Ce()),t&2){let n=e.$implicit;p(),m("ngIf",n)}}function uO(t,e){if(t&1&&(we(0),T(1,lO,2,1,"ng-container",15),Ce()),t&2){let n=g(3);p(),m("ngForOf",n.config.buttons)}}function dO(t,e){if(t&1){let n=G();y(0,"i",43),O("click",function(){A(n);let i=g(2).$implicit,o=g();return N(o.config.update(i))}),P(1," edit "),v()}}function fO(t,e){if(t&1){let n=G();y(0,"i",44),O("click",function(){A(n);let i=g(2).$implicit,o=g();return N(o.config.delete(i))}),P(1," delete_outline "),v()}}function hO(t,e){if(t&1&&(y(0,"td",33)(1,"div",34),T(2,uO,2,1,"ng-container",9)(3,dO,2,0,"i",35)(4,fO,2,0,"i",36),v()()),t&2){let n=g(2);p(2),m("ngIf",n.config.buttons),p(),m("ngIf",n.config.update),p(),m("ngIf",n.config.delete)}}function pO(t,e){if(t&1&&(y(0,"tr"),T(1,K1,2,1,"td",9)(2,nO,6,3,"ng-container",15)(3,hO,5,3,"td",31),v()),t&2){let n=g();p(),m("ngIf",n.config.num),p(),m("ngForOf",n.columns),p(),m("ngIf",n.config.delete||n.config.update||n.config.buttons)}}function gO(t,e){if(t&1){let n=G();y(0,"div",56)(1,"div",57),O("click",function(){let i=A(n).$implicit,o=g(3);return N(o.changePerPage(i))}),P(2),v()()}if(t&2){let n=e.$implicit,r=g(3);p(),pe("selected",r.config.perPage===n),p(),fe(" ",n," ")}}function mO(t,e){if(t&1){let n=G();y(0,"div",56)(1,"div",57),O("click",function(){A(n);let i=g(3);return N(i.changePerPage(-1))}),P(2," All "),v()()}if(t&2){let n=g(3);p(),pe("selected",n.config.perPage===-1)}}function yO(t,e){if(t&1&&(y(0,"div",58),P(1),v()),t&2){let n=g(3);p(),fe(" Page ",n.config.page," ")}}function vO(t,e){if(t&1&&(y(0,"div",58)(1,"span"),P(2),v(),y(3,"span"),P(4," of "),v(),y(5,"span"),P(6),dr(7,"search"),v()()),t&2){let n,r=g(3);p(2),Ed("",(r.config.page-1)*r.config.perPage+1," - ",r.config.page*r.config.perPage>(r.rows==null?null:r.rows.length)&&(r.rows==null?null:r.rows.length)||r.config.page*r.config.perPage,""),p(4),Ie((n=oi(7,3,r.rows,r.searching_text,r.config.searchBy||"title"))==null?null:n.length)}}function _O(t,e){if(t&1){let n=G();y(0,"div",48)(1,"div",49),P(2,"Showing items per page"),v(),y(3,"div",50),O("clickOutside",function(){A(n);let i=g(2);return N(i.select_page_size=!1)}),y(4,"div",51),O("click",function(){A(n);let i=g(2);return N(i.select_page_size=!i.select_page_size)}),P(5),v(),y(6,"div",52),T(7,gO,3,3,"div",53)(8,mO,3,2,"div",54),v()(),T(9,yO,2,1,"div",55)(10,vO,8,7,"div",55),v()}if(t&2){let n=g(2);p(3),pe("open",n.select_page_size),p(2),fe(" ",n.config.perPage===-1?"All":n.config.perPage," "),p(2),m("ngForOf",n.config.pageSizeOptions),p(),m("ngIf",n.config.allDocs),p(),m("ngIf",n.config.perPage>=0&&!n.config.allDocs),p(),m("ngIf",n.config.perPage>=0&&n.config.allDocs)}}function wO(t,e){if(t&1){let n=G();y(0,"div",59)(1,"wbutton",60),O("click",function(){A(n);let i=g(2);return N(i.config.page=1)}),de(2,"i",61),v(),y(3,"wbutton",62),O("click",function(){A(n);let i=g(2);return N(i.previous())}),de(4,"i",61),v(),y(5,"wbutton",63),O("click",function(){A(n);let i=g(2);return N(i.next())}),de(6,"i",61),v(),y(7,"wbutton",64),O("click",function(){A(n);let i=g(2);return N(i.lastPage())}),de(8,"i",61),v()()}if(t&2){let n=g(2);p(),m("disabled",n.config.page===1),p(2),m("disabled",n.config.page===1),p(2),m("disabled",n.config.page*n.config.perPage>(n.rows==null?null:n.rows.length)),p(2),m("disabled",n.isLast())}}function CO(t,e){if(t&1){let n=G();y(0,"div",59)(1,"wbutton",62),O("click",function(){A(n);let i=g(2);return N(i.previous())}),de(2,"i",61),v(),y(3,"wbutton",63),O("click",function(){A(n);let i=g(2);return N(i.next())}),de(4,"i",61),v()()}if(t&2){let n=g(2);p(),m("disabled",n.config.page===1),p(2),m("disabled",n.rows.length!==n.config.perPage)}}function bO(t,e){if(t&1&&(y(0,"tfoot",45),T(1,_O,11,7,"div",46)(2,wO,9,4,"div",47)(3,CO,5,2,"div",47),v()),t&2){let n=g();p(),m("ngIf",n.config.perPage),p(),m("ngIf",n.config.perPage!==-1&&n.config.allDocs),p(),m("ngIf",!n.config.allDocs)}}var NB=(()=>{let e=class e{constructor(r,i){this._router=r,this._store=i,this.tableId="table_"+this._router.url.split("/").filter(o=>o&&o.length!==24).join("/"),this.config={},this.columns=[],this.rows=[],this.value="_id",this.title="",this.now=Date.now(),this.searchShow=!1,this.searching_text="",this.filter_filter="",this.onSearch=new U,this.custom_cell={},this.sort_type={},this.sortable={},this.select_page_size=!1}ngOnInit(){this.default_config();for(let r=0;r{r&&this.changePerPage(Number(r))})}default_config(){this.config.pageSizeOptions||(this.config.pageSizeOptions=[1,10,20,50]),this.config.perPage||(this.config.perPage=-1),this.config.page||(this.config.page=1),this.config.searchable||(this.config.searchable=!1),typeof this.config.allDocs!="boolean"&&(this.config.allDocs=!0)}ngAfterContentInit(){for(let i=0;i{this.refresh()},1e3);setTimeout(()=>{clearInterval(r)},2e4)}refresh(){this.now=Date.now()}searching(){setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text)},100),clearTimeout(this._search_timeout),this._search_timeout=setTimeout(this.searching.bind(this),2e3)}search(){clearTimeout(this._search_timeout),setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text),this.refresh()},100),this.onSearch.emit(this.searching_text)}next(){(typeof this.config.paginate=="function"||this.config.page*this.config.perPage1&&(this.config.page-=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this.refresh())}changePerPage(r){this.config.perPage=r,typeof this.config.setPerPage=="function"&&this.config.setPerPage(this.config.perPage),this.config.page=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this._store.set(this.tableId+"perPage",r.toString()),(this.config.page-1)*this.config.perPage>this.rows.length&&this.lastPage(),this.select_page_size=!1,this.refresh()}lastPage(){this.config.page=Math.ceil(this.rows.length/this.config.perPage)}isLast(){return this.rows&&this.config.page==Math.ceil(this.rows.length/this.config.perPage)}sort(r){this.sort_type.title!=r.title&&(this.sort_type={}),this.sortable[r.field]&&(this.sort_type={title:r.field,direction:typeof this.sort_type.direction!="string"&&"asc"||this.sort_type.direction=="asc"&&"desc"||void 0})}};e.\u0275fac=function(i){return new(i||e)(I(it),I(Yt))},e.\u0275cmp=ue({type:e,selectors:[["wtable"]],contentQueries:function(i,o,s){if(i&1&&(ur(s,C0,5),ur(s,b0,5),ur(s,_0,4),ur(s,w0,4)),i&2){let a;Xe(a=et())&&(o.action=a.first),Xe(a=et())&&(o.editForm=a.first),Xe(a=et())&&(o.cell=a),Xe(a=et())&&(o.sortHeaders=a)}},inputs:{config:"config",columns:"columns",rows:"rows",value:"value",title:"title"},outputs:{onSearch:"onSearch"},decls:19,vars:19,consts:[["customAction",""],["defaultAction",""],["defaultRows",""],["customRows",""],[1,"wtable"],[1,"users__header","w-card__header"],[1,"w-forms__title"],["class","table-search",3,"table-search--active",4,"ngIf"],["class","table-search__icon-mobile",4,"ngIf"],[4,"ngIf"],["class","table-plus-btn",3,"disableSubmit","click",4,"ngIf"],["cellpadding","0","cellspacing","0",1,"table"],[1,"table-header"],["scope","col",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],["class","table-footer",4,"ngIf"],[1,"table-search"],["placeholder","Search...","type","text",1,"table-search__input",3,"ngModelChange","keyup.enter","ngModel"],[1,"material-icons","material-symbols-outlined","table-search__icon",3,"click"],[1,"table-search__icon-mobile"],[1,"material-icons","material-symbols-outlined",3,"click"],[1,"table-plus-btn",3,"click","disableSubmit"],["class","material-icons",3,"title",4,"ngIf"],[1,"material-icons",3,"title"],["scope","col"],[1,"table-header__sort",3,"click"],["class","material-icons icon-arrow",4,"ngIf"],[1,"material-icons","icon-arrow"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngTemplateOutlet"],["class","table-body__last-td","data-label","Actions:\xA0",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-label","Actions:\xA0",1,"table-body__last-td"],[1,"table__actions"],["class","material-icons","title","Edit",3,"click",4,"ngIf"],["class","material-icons","title","Delete",3,"click",4,"ngIf"],["class","material-icons",3,"title","click",4,"ngIf"],[3,"href","target",4,"ngIf"],[3,"routerLink",4,"ngIf"],[1,"material-icons",3,"click","title"],[3,"href","target"],[3,"routerLink"],["title","Edit",1,"material-icons",3,"click"],["title","Delete",1,"material-icons",3,"click"],[1,"table-footer"],["class","item-page",4,"ngIf"],["class","table-footer__pagination",4,"ngIf"],[1,"item-page"],[1,"item-page__text"],[1,"item-page__dropdown",3,"clickOutside"],[1,"caption",3,"click"],[1,"list"],["class","item",4,"ngFor","ngForOf"],["class","item",4,"ngIf"],["class","item-page__result",4,"ngIf"],[1,"item"],[3,"click"],[1,"item-page__result"],[1,"table-footer__pagination"],[1,"table-footer__arrow","_start",3,"click","disabled"],[1,"chevron"],[1,"table-footer__arrow","_left",3,"click","disabled"],[1,"table-footer__arrow","_right",3,"click","disabled"],[1,"table-footer__arrow","_end",3,"click","disabled"]],template:function(i,o){i&1&&(y(0,"div",4)(1,"div",5)(2,"h3",6),P(3),v(),T(4,k1,4,3,"div",7)(5,F1,3,0,"div",8)(6,U1,2,1,"ng-container",9)(7,$1,4,1,"wbutton",10),v(),y(8,"table",11)(9,"thead",12)(10,"tr"),T(11,H1,2,0,"th",9)(12,q1,5,6,"th",13)(13,Q1,6,3,"th",9),v()(),y(14,"tbody",14),T(15,pO,4,3,"tr",15),dr(16,"search"),dr(17,"perPage"),v(),T(18,bO,4,3,"tfoot",16),v()()),i&2&&(p(3),Ie(o.title),p(),m("ngIf",o.config.searchable),p(),m("ngIf",!o.searchShow),p(),m("ngIf",o.config.headerButtons),p(),m("ngIf",o.config.create),p(4),m("ngIf",o.config.num),p(),m("ngForOf",o.columns),p(),m("ngIf",o.config.delete||o.config.update),p(2),m("ngForOf",o.config.allDocs?Ry(17,14,oi(16,10,o.rows,o.filter_filter,o.config.searchBy||"title"),o.config,o.sort_type,o.filter_filter+o.now):o.rows),p(3),m("ngIf",o.config.perPage||o.config.formCreate&&o.config.create))},dependencies:[Ue,Ye,ci,Un,Ii,_r,Uc,zc,mc,$c,D0],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wtable[_ngcontent-%COMP%]{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%]{padding-bottom:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-primary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{position:absolute;right:15px;min-width:45px;top:15px}}.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable[_ngcontent-%COMP%] .table-search--active[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{opacity:1}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]:focus{border:2px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__icon[_ngcontent-%COMP%]{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%]{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .table-plus-btn[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .w-forms__title[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:inherit}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%]{position:relative;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover .icon-arrow[_ngcontent-%COMP%]{opacity:1;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveDown[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(-90deg);opacity:1}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveUp[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:1}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{display:none;text-align:left}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{width:140px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:2px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:none}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{margin-top:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{border-right:none}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%]{display:flex;gap:6px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;width:22px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{bottom:0;left:5px}}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:after{border-color:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:before{background:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:1px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:8px;top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:2px;content:""}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._right[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{transform:rotate(315deg);top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:11px;content:""}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page[_ngcontent-%COMP%]{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%]{position:relative;margin:0 10px;font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:11px 20px;cursor:pointer;text-align:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item.selected[_ngcontent-%COMP%]{font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}']});let t=e;return t})();var DO=["inputEl"],E0=["*","*"];function EO(t,e){if(t&1&&(y(0,"span",7),P(1),v()),t&2){let n=g(2);p(),Ie(n.label)}}function IO(t,e){if(t&1&&(y(0,"div",8),P(1),v()),t&2){let n=g(2);p(),fe(" ",n.label||n.placeholder," is invalid. ")}}function xO(t,e){if(t&1){let n=G();y(0,"label",3),T(1,EO,2,1,"span",4),y(2,"input",5,0),O("keyup.enter",function(){A(n);let i=g();return N(i.onSubmit())}),qt("ngModelChange",function(i){A(n);let o=g();return un(o.value,i)||(o.value=i),N(i)}),O("ngModelChange",function(){A(n);let i=g();return N(i.onChange(i.value))})("blur",function(){A(n);let i=g();return N(i.wBlur.emit())}),v(),T(4,IO,2,1,"div",6),eo(5),v()}if(t&2){let n=g();m("for",n.name),p(),m("ngIf",n.label),p(),pe("error",n.error),m("type",n.type||"text")("placeholder",n.placeholder||"Enter text..."),zt("ngModel",n.value),m("ngClass",n.wClass)("name",n.name)("disabled",n.disabled),p(2),m("ngIf",n.error)}}function MO(t,e){if(t&1&&(y(0,"div",8),P(1),v()),t&2){let n=g(2);p(),fe(" ",n.label||n.placeholder," is invalid. ")}}function SO(t,e){if(t&1){let n=G();we(0),y(1,"label",3)(2,"span",7),P(3),v(),y(4,"textarea",9,0),O("keyup.enter",function(){A(n);let i=g();return N(i.onSubmit())}),qt("ngModelChange",function(i){A(n);let o=g();return un(o.value,i)||(o.value=i),N(i)}),O("ngModelChange",function(){A(n);let i=g();return N(i.onChange(i.value))})("blur",function(){A(n);let i=g();return N(i.wBlur.emit())}),v(),T(6,MO,2,1,"div",6),v(),Ce()}if(t&2){let n=g();p(),m("for",n.name),p(2),Ie(n.label),p(),pe("error",n.error),zt("ngModel",n.value),m("placeholder",n.placeholder)("ngClass",n.wClass)("name",n.name)("disabled",n.disabled),p(2),m("ngIf",n.error)}}function TO(t,e){if(t&1){let n=G();y(0,"label",11)(1,"span",12),P(2),v(),y(3,"input",13,0),qt("ngModelChange",function(i){A(n);let o=g(2);return un(o.value,i)||(o.value=i),N(i)}),O("ngModelChange",function(){A(n);let i=g(2);return N(i.onChange(i.value))}),v(),de(5,"span",14),eo(6,1),v()}if(t&2){let n=e.$implicit,r=g(2);p(2),Ie(n),p(),pe("error",r.error),zt("ngModel",r.value),m("ngClass",r.wClass)("name",r.name)("value",n)("disabled",r.disabled)}}function OO(t,e){if(t&1&&(we(0),T(1,TO,7,8,"label",10),Ce()),t&2){let n=g();p(),m("ngForOf",n.items)}}function AO(t,e){if(t&1&&(y(0,"span",19),P(1),v()),t&2){let n=g(2);p(),Ie(n.label)}}function NO(t,e){if(t&1){let n=G();we(0),y(1,"label",15)(2,"input",16,0),O("ngModelChange",function(){A(n);let i=g();return N(i.onChange(i.value))}),qt("ngModelChange",function(i){A(n);let o=g();return un(o.value,i)||(o.value=i),N(i)}),v(),de(4,"span",17),T(5,AO,2,1,"span",18),v(),Ce()}if(t&2){let n=g();p(),m("for",n.name),p(),pe("error",n.error),m("disabled",n.disabled),zt("ngModel",n.value),m("ngClass",n.wClass)("name",n.name),p(3),m("ngIf",n.label)}}var jB=(()=>{let e=class e{constructor(){this.value="",this.valid=r=>!!r,this.items=[],this.placeholder="",this.disabled=!1,this.focused=!1,this.name="name",this.type="text",this.label="",this.wChange=new U,this.wSubmit=new U,this.wBlur=new U,this.error=!1}focus(){setTimeout(()=>{this.inputEl.nativeElement.focus()},100)}onChange(r){this.value=typeof this.replace=="function"?this.replace(r):r,this.wChange.emit(this.value)}onSubmit(){this.valid(this.value)?this.wSubmit.emit(this.value):this.error=!0}ngOnInit(){this.focused&&this.focus(),this.setFocus&&(this.setFocus.focus=this.focus.bind(this))}setDisabled(r){this.disabled=r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ue({type:e,selectors:[["winput"]],viewQuery:function(i,o){if(i&1&&ii(DO,5),i&2){let s;Xe(s=et())&&(o.inputEl=s.first)}},inputs:{value:"value",replace:"replace",valid:"valid",items:"items",placeholder:"placeholder",disabled:"disabled",focused:"focused",wClass:"wClass",name:"name",type:"type",label:"label",setFocus:"setFocus"},outputs:{wChange:"wChange",wSubmit:"wSubmit",wBlur:"wBlur"},ngContentSelectors:E0,decls:4,vars:4,consts:[["inputEl",""],["class","w-forms",3,"for",4,"ngIf"],[4,"ngIf"],[1,"w-forms",3,"for"],["class","w-forms__title",4,"ngIf"],[1,"w-forms__input",3,"keyup.enter","ngModelChange","blur","type","placeholder","ngModel","ngClass","name","disabled"],["class","error-message",4,"ngIf"],[1,"w-forms__title"],[1,"error-message"],[1,"w-forms__textarea",3,"keyup.enter","ngModelChange","blur","ngModel","placeholder","ngClass","name","disabled"],["class","check-label",4,"ngFor","ngForOf"],[1,"check-label"],[1,"form-label"],["type","radio",3,"ngModelChange","ngModel","ngClass","name","value","disabled"],[1,"checkbox","_radio"],[1,"container-box",3,"for"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","disabled","ngModel","ngClass","name"],[1,"checkmark"],["class","check-text",4,"ngIf"],[1,"check-text"]],template:function(i,o){i&1&&(Fa(E0),T(0,xO,6,11,"label",1)(1,SO,7,10,"ng-container",2)(2,OO,2,1,"ng-container",2)(3,NO,6,8,"ng-container",2)),i&2&&(m("ngIf",o.type!=="radio"&&o.type!=="checkbox"&&o.type!=="textarea"),p(),m("ngIf",o.type==="textarea"),p(),m("ngIf",o.type==="radio"),p(),m("ngIf",o.type==="checkbox"))},dependencies:[Un,Zf,Yf,Ii,_r,Gt,Ue,Ye],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.w-forms[_ngcontent-%COMP%]{position:relative;padding:10px 0;display:block}.w-forms__title[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius);margin-bottom:10px}.w-forms__field[_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--c-border);border-radius:var(--b-radius);color:var(--c-text-secondary);font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 4px);transition:var(--transition);width:100%;display:block;letter-spacing:var(--letter-spacing);padding:8px 12px;appearance:textfield;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__field[_ngcontent-%COMP%]::placeholder, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]::placeholder{color:var(--c-placeholder);transition:var(--transition)}.w-forms__field[_ngcontent-%COMP%]:focus, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:focus{transition:var(--transition);border-color:var(--c-primary);outline:none}.w-forms__field[_ngcontent-%COMP%]:disabled, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey);border-color:var(--c-grey);color:var(--c-grey);cursor:default;opacity:.6}.w-forms__field[type=time][_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[type=time][_ngcontent-%COMP%]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.w-forms__checkbox[_ngcontent-%COMP%]{display:none}.w-forms__checkbox[_ngcontent-%COMP%]:checked ~ .checkbox[_ngcontent-%COMP%]:before{opacity:1}input.error[_ngcontent-%COMP%], textarea.error[_ngcontent-%COMP%]{border:1px solid red}.error-message[_ngcontent-%COMP%]{color:red;font-size:12px;margin-top:4px}.check-label[_ngcontent-%COMP%]{display:flex;column-gap:5px;cursor:pointer}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]:before{position:absolute;left:50%;top:50%;transition:var(--transition);opacity:0;transform:translate(-50%,-65%) rotate(45deg);height:11px;width:7px;display:block;content:"";border-bottom:2px solid var(--c-primary);border-right:2px solid var(--c-primary)}.container-box[_ngcontent-%COMP%]{position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:32px;width:32px;background-color:#12677a6e;border-radius:50%;transition:all .3s}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after, .container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:10px;top:47%;width:8px;height:14px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-50%,-50%)}.container-box[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#0f353d60}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--c-primary)}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}']});let t=e;return t})();var I0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Zt,Fe]});let t=e;return t})();function PO(t,e){if(t&1){let n=G();y(0,"wbutton",4),O("click",function(){let i=A(n).$implicit,o=g();return N(i.click(o.submition,o.close))}),P(1),v()}if(t&2){let n=e.$implicit;m("ngClass",n.class),p(),fe(" ",n.label," ")}}var Gc=(()=>{let e=class e{set(r){this._core.copy(r,this.submition),this._core.copy(r.data,this.submition.data)}constructor(r){this._core=r}};e.\u0275fac=function(i){return new(i||e)(I(xe))},e.\u0275cmp=ue({type:e,selectors:[["ng-component"]],decls:4,vars:3,consts:[["formRef",""],[3,"wSubmit","wChange","config","submition"],[1,"btn-action","btn-action_w95p"],["class","w-btn _primary",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"w-btn","_primary",3,"click","ngClass"]],template:function(i,o){if(i&1){let s=G();y(0,"wform",1,0),O("wSubmit",function(){return A(s),o.set(o.submition),o.submit(o.submition),N(o.close())})("wChange",function(){return A(s),o.set(o.submition),N(o.change(o.submition))}),v(),y(2,"div",2),T(3,PO,2,2,"wbutton",3),v()}i&2&&(m("config",o.form)("submition",o.submition),p(3),m("ngForOf",o.buttons))},styles:[".btn-action[_ngcontent-%COMP%]{padding:30px 0 0}.btn-action[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{width:100%;display:block}"]});let t=e;return t})();var Wc=(()=>{let e=class e{constructor(r){this._mongo=r}get getDoc(){return this.doc}change(){this._mongo.unique(this.module,this.doc,{name:this.field},r=>{this.doc[this.field]!==r&&(this.doc[this.field]=r)})}};e.\u0275fac=function(i){return new(i||e)(I(m0))},e.\u0275cmp=ue({type:e,selectors:[["app-modal-unique"]],decls:1,vars:2,consts:[[3,"wChange","config","submition"]],template:function(i,o){i&1&&(y(0,"wform",0),O("wChange",function(){return o.change()}),v()),i&2&&m("config",o.form)("submition",o.getDoc)}});let t=e;return t})();var x0=(()=>{let e=class e extends Bc{constructor(r,i,o,s){super({name:"form"},r,i,o,s),this.customforms=[],this.get().subscribe(a=>this.customforms.push(...a)),s.on("customform_create").subscribe(a=>{this.customforms.push(a)}),s.on("customform_delete").subscribe(a=>{this.customforms.splice(this.customforms.findIndex(c=>c._id===a._id),1)})}};e.\u0275fac=function(i){return new(i||e)(_(Oi),_(Yt),_(y0),_(xe))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var M0=[{name:"Afrikaans",origin:"Afrikaans",code:"af"},{name:"Albanian",origin:"shqiptare",code:"sq"},{name:"Amharic",origin:"\u12A0\u121B\u122D\u129B",code:"am"},{name:"Arabic",origin:"\u0639\u0631\u0628\u064A",code:"ar"},{name:"Armenian",origin:"\u0570\u0561\u0575\u0565\u0580\u0565\u0576",code:"hy"},{name:"Assamese",origin:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",code:"as"},{name:"Aymara",origin:"Aymara",code:"ay"},{name:"Azerbaijani",origin:"Az\u0259rbaycan",code:"az"},{name:"Bambara",origin:"U b'a don",code:"bm"},{name:"Basque",origin:"euskara",code:"eu"},{name:"Belarusian",origin:"\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456",code:"be"},{name:"Bengali",origin:"\u09AC\u09BE\u0982\u09B2\u09BE",code:"bn"},{name:"Bhojpuri",origin:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",code:"bho"},{name:"Bosnian",origin:"bosanski",code:"bs"},{name:"Bulgarian",origin:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",code:"bg"},{name:"Catalan",origin:"catal\xE0",code:"ca"},{name:"Cebuano",origin:"Cebuano",code:"ceb"},{name:"Chinese (Simplified)",origin:"\u7B80\u4F53\u4E2D\u6587\uFF09",code:"zh-CN"},{name:"Chinese (Traditional)",origin:"\u4E2D\u570B\u50B3\u7D71\u7684\uFF09",code:"zh-TW"},{name:"Corsican",origin:"Corsu",code:"co"},{name:"Croatian",origin:"Hrvatski",code:"hr"},{name:"Czech",origin:"\u010De\u0161tina",code:"cs"},{name:"Danish",origin:"dansk",code:"da"},{name:"Dhivehi",origin:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",code:"dv"},{name:"Dogri",origin:"\u0921\u094B\u0917\u0930\u0940",code:"doi"},{name:"Dutch",origin:"Nederlands",code:"nl"},{name:"English",origin:"English",code:"en"},{name:"English (British)",origin:"English (British)",code:"en-GB"},{name:"English (Australian)",origin:"English (Australian)",code:"en-AU"},{name:"Esperanto",origin:"Esperanto",code:"eo"},{name:"Estonian",origin:"eesti keel",code:"et"},{name:"Ewe",origin:"A\u014Bgba",code:"ee"},{name:"Filipino (Tagalog)",origin:"Filipino (Tagalog)",code:"fil"},{name:"Finnish",origin:"Suomalainen",code:"fi"},{name:"French",origin:"Fran\xE7ais",code:"fr"},{name:"Frisian",origin:"Frysk",code:"fy"},{name:"Galician",origin:"galego",code:"gl"},{name:"Georgian",origin:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",code:"ka"},{name:"German",origin:"Deutsch",code:"de"},{name:"Greek",origin:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",code:"el"},{name:"Guarani",origin:"guarani",code:"gn"},{name:"Gujarati",origin:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",code:"gu"},{name:"Haitian Creole",origin:"Krey\xF2l ayisyen",code:"ht"},{name:"Hausa",origin:"Hausa",code:"ha"},{name:"Hawaiian",origin:"\u02BB\u014Clelo Hawai\u02BBi",code:"haw"},{name:"Hebrew",origin:"\u05E2\u05B4\u05D1\u05E8\u05B4\u05D9\u05EA",code:"he"},{name:"Hindi",origin:"\u0928\u0939\u0940\u0902",code:"hi"},{name:"Hmong",origin:"Hmong",code:"hmn"},{name:"Hungarian",origin:"Magyar",code:"hu"},{name:"Icelandic",origin:"\xEDslenskur",code:"is"},{name:"Igbo",origin:"Igbo",code:"ig"},{name:"Ilocano",origin:"Ilocano",code:"ilo"},{name:"Indonesian",origin:"bahasa Indonesia",code:"id"},{name:"Irish",origin:"Gaeilge",code:"ga"},{name:"Italian",origin:"Italiano",code:"it"},{name:"Japanese",origin:"\u65E5\u672C",code:"ja"},{name:"Javanese",origin:"basa jawa",code:"jv"},{name:"Kannada",origin:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",code:"kn"},{name:"Kazakh",origin:"\u049B\u0430\u0437\u0430\u049B",code:"kk"},{name:"Khmer",origin:"\u1781\u17D2\u1798\u17C2\u179A",code:"km"},{name:"Kinyarwanda",origin:"Kinyarwanda",code:"rw"},{name:"Konkani",origin:"\u0915\u094B\u0902\u0915\u0923\u0940",code:"gom"},{name:"Korean",origin:"\uD55C\uAD6D\uC778",code:"ko"},{name:"Krio",origin:"Kryo we de na di w\u0254l",code:"kri"},{name:"Kurdish",origin:"Kurd\xEE",code:"ku"},{name:"Kurdish (Sorani)",origin:"\u06A9\u0648\u0631\u062F\u06CC (\u0633\u06C6\u0631\u0627\u0646\u06CC)",code:"ckb"},{name:"Kyrgyz",origin:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",code:"ky"},{name:"Lao",origin:"\u0EC1\u0EAE\u0E87\u200B\u0E87\u0EB2\u0E99",code:"lo"},{name:"Latin",origin:"Latinus",code:"la"},{name:"Latvian",origin:"latviski",code:"lv"},{name:"Lingala",origin:"Lingala",code:"ln"},{name:"Lithuanian",origin:"lietuvi\u0173",code:"lt"},{name:"Luganda",origin:"Luganda",code:"lg"},{name:"Luxembourgish",origin:"l\xEBtzebuergesch",code:"lb"},{name:"Macedonian",origin:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",code:"mk"},{name:"Maithili",origin:"\u092E\u0948\u0925\u093F\u0932\u0940",code:"mai"},{name:"Malagasy",origin:"Malagasy",code:"mg"},{name:"Malay",origin:"Melayu",code:"ms"},{name:"Malayalam",origin:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",code:"ml"},{name:"Maltese",origin:"Malti",code:"mt"},{name:"Maori",origin:"Maori",code:"mi"},{name:"Marathi",origin:"\u092E\u0930\u093E\u0920\u0940",code:"mr"},{name:"Meiteilon (Manipuri)",origin:"\uABC3\uABE6\uABCF\uABC7\uABE6\uABCF\uABC2\uABE3\uABDF (\uABC3\uABC5\uABE4\uABC4\uABE8\uABD4\uABE4) \uABF4.",code:"mni-Mtei"},{name:"Mizo",origin:"Mizo",code:"lus"},{name:"Mongolian",origin:"\u041C\u043E\u043D\u0433\u043E\u043B",code:"mn"},{name:"Myanmar (Burmese)",origin:"\u1019\u103C\u1014\u103A\u1019\u102C (\u1017\u1019\u102C)\u104A",code:"my"},{name:"Nepali",origin:"\u0928\u0947\u092A\u093E\u0932\u0940",code:"ne"},{name:"Norwegian",origin:"norsk",code:"no"},{name:"Nyanja (Chichewa)",origin:"Nyanja (Chichewa)",code:"ny"},{name:"Odia (Oriya)",origin:"\u0B13\u0B21\u0B3F\u0B06 (\u0B13\u0B21\u0B3F\u0B06)",code:"or"},{name:"Oromo",origin:"Oromo",code:"om"},{name:"Pashto",origin:"\u067E\u069A\u062A\u0648",code:"ps"},{name:"Persian",origin:"\u0641\u0627\u0631\u0633\u06CC",code:"fa"},{name:"Polish",origin:"Polski",code:"pl"},{name:"Portuguese (Portugal, Brazil)",origin:"Portugu\xEAs (Portugal, Brasil)",code:"pt"},{name:"Punjabi",origin:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",code:"pa"},{name:"Quechua",origin:"Runasimi",code:"qu"},{name:"Romanian",origin:"Rom\xE2n\u0103",code:"ro"},{name:"Russian",origin:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",code:"ru"},{name:"Samoan",origin:"Samoa",code:"sm"},{name:"Sanskrit",origin:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",code:"sa"},{name:"Scots Gaelic",origin:"G\xE0idhlig na h-Alba",code:"gd"},{name:"Sepedi",origin:"Sepedi",code:"nso"},{name:"Serbian",origin:"\u0421\u0440\u043F\u0441\u043A\u0438",code:"sr"},{name:"Sesotho",origin:"Senyesemane",code:"st"},{name:"Shona",origin:"Shona",code:"sn"},{name:"Sindhi",origin:"\u0633\u0646\u068C\u064A",code:"sd"},{name:"Sinhala (Sinhalese)",origin:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD (\u0DC3\u0DD2\u0D82\u0DC4\u0DBD)",code:"si"},{name:"Slovak",origin:"slovensk\xFD",code:"sk"},{name:"Slovenian",origin:"Sloven\u0161\u010Dina",code:"sl"},{name:"Somali",origin:"Somali",code:"so"},{name:"Spanish",origin:"espa\xF1ol",code:"es"},{name:"Sundanese",origin:"Sundanese",code:"su"},{name:"Swahili",origin:"kiswahili",code:"sw"},{name:"Swedish",origin:"svenska",code:"sv"},{name:"Tagalog (Filipino)",origin:"Tagalog (Filipino)",code:"tl"},{name:"Tajik",origin:"\u0442\u043E\u04B7\u0438\u043A\u04E3",code:"tg"},{name:"Tamil",origin:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",code:"ta"},{name:"Tatar",origin:"\u0422\u0430\u0442\u0430\u0440",code:"tt"},{name:"Telugu",origin:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",code:"te"},{name:"Thai",origin:"\u0E41\u0E1A\u0E1A\u0E44\u0E17\u0E22",code:"th"},{name:"Tigrinya",origin:"\u1275\u130D\u122A\u129B",code:"ti"},{name:"Tsonga",origin:"Tsonga",code:"ts"},{name:"Turkish",origin:"T\xFCrk",code:"tr"},{name:"Turkmen",origin:"T\xFCrkmenler",code:"tk"},{name:"Twi (Akan)",origin:"Twi (Will) .",code:"ak"},{name:"Ukrainian",origin:"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",code:"uk"},{name:"Urdu",origin:"\u0627\u0631\u062F\u0648",code:"ur"},{name:"Uyghur",origin:"\u0626\u06C7\u064A\u063A\u06C7\u0631",code:"ug"},{name:"Uzbek",origin:"o'zbek",code:"uz"},{name:"Vietnamese",origin:"Ti\u1EBFng Vi\u1EC7t",code:"vi"},{name:"Welsh",origin:"Cymraeg",code:"cy"},{name:"Xhosa",origin:"isiXhosa",code:"xh"},{name:"Yiddish",origin:"\u05D9\u05D9\u05D3\u05D9\u05E9",code:"yi"},{name:"Yoruba",origin:"Yoruba",code:"yo"},{name:"Zulu",origin:"Zulu",code:"zu"}];var Ni=(()=>{let e=class e{constructor(r,i,o){this.store=r,this.http=i,this._core=o,this.allLanguages=M0,this.appId=wi.appId,this.words=[],this.pages=[],this.languages=wi.languages?wi.languages:[{code:"en",name:"English",origin:"English"}],this.language=this.languages.length?this.languages[0]:{code:"en",name:"English",origin:"English"},this.translates={},this.resets={},this.now=Date.now(),this._created={},this._wordsLoaded=!1,this.store.getJson("translates",s=>{s&&(this.translates=s||{})}),this._core.on("languages").subscribe(s=>{this.languages=s}),this.store.getJson("words",s=>{s&&(this.words=s)}),this.store.getJson("language",s=>{s&&this.set_language(s)}),this.http.get("/api/translate/get"+(this.appId?"/"+this.appId:""),s=>{s&&(this.translates=s,this.store.setJson("translates",this.translates))}),this.http.get("/api/word/get"+(this.appId?"/"+this.appId:""),s=>{if(s){this.words=s,this.store.setJson("words",this.words);for(let a=0;a=0;i--)this.words[i]._id==r._id&&this.words.splice(i,1);this.http.post("/api/word/delete"+(this.appId?"/"+this.appId:""),{_id:r._id}),this.http.post("/api/translate/delete"+(this.appId?"/"+this.appId:""),{slug:r.slug})}set_language(r){r&&(this.http.post("/api/translate/set",{appId:this.appId,language:r.code}),this.language=r,this.reset(),this.store.setJson("language",r))}next_language(){for(let r=0;ro?.slug||"").filter(o=>!!o).indexOf(r)<0&&this.create_word(r),this._slug2name(r))):""}create_word(r){this._created[r]||(this._wordsLoaded?(this._created[r]=!0,this.http.post("/api/word/create",{appId:this.appId,slug:r,word:this._slug2name(r),page:r.split(".")[0],lang:this.language.code},i=>{i&&this.words.push(i)})):setTimeout(()=>{this.create_word(r)},500))}update_translate(r,i,o){this._core.afterWhile(this,()=>{if(this.http.post("/api/translate/create",{appId:this.appId,slug:r,translate:o,lang:i}),this.store.setJson("translates",this.translates),this.language.code===i&&Array.isArray(this.resets[r]))for(let s=0;s{let i="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(this.translates)),o=document.createElement("a");o.href=i,o.download="translate.json",o.click(),o.remove()})}_slug2name(r){return r.substr(r.indexOf(".")+1)}};e.\u0275fac=function(i){return new(i||e)(_(Yt),_(Oi),_(xe))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kO(t,e){if(t&1){let n=G();y(0,"span",3),O("click",function(){A(n);let i=g();return N(i.close())}),P(1,"\xD7"),v()}}var S0=(()=>{let e=class e{constructor(){this.class="",this.size="flex",this.closable=!0,this.showModal=!1}ngOnInit(){typeof this.onClickOutside!="function"&&(this.onClickOutside=this.close),typeof this.onOpen=="function"&&this.onOpen()}ngAfterViewInit(){setTimeout(()=>{this.showModal=!0},this.timestart||0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ue({type:e,selectors:[["lib-modal"]],decls:4,vars:3,consts:[[1,"modal",3,"click","ngClass","hidden"],[1,"modal-content",3,"click"],["class","close",3,"click",4,"ngIf"],[1,"close",3,"click"]],template:function(i,o){i&1&&(y(0,"div",0),O("click",function(){return o.onClickOutside()}),y(1,"div",1),O("click",function(a){return a.stopPropagation()}),de(2,"div"),T(3,kO,2,0,"span",2),v()()),i&2&&(m("ngClass",o.class+" "+o.size)("hidden",!o.showModal),p(3),m("ngIf",o.closable))},dependencies:[Gt,Ye]});let t=e;return t})();var T0=new E("modalConfig");var O0=(()=>{let e=class e{constructor(r,i,o){this.config=r,this.core=i,this.dom=o,this.opened={},this.config||(this.config={}),this.config.modals||(this.config.modals={})}show(r){if((typeof r=="string"||typeof r=="function")&&(r={component:r}),(!r||typeof r!="object")&&(r={}),typeof r.component=="string"&&this.config.modals&&this.config.modals[r.component]&&(r.component=this.config.modals[r.component]),typeof r.component!="function"){console.log("This component does not exists.");return}r.class||(r.class="");for(let s in this.config)s=="class"&&(r.class+=(r.class&&" "||"")+this.config.class);r.id=Math.floor(Math.random()*Date.now())+Date.now(),this.opened[r.id]=r,this.core.document.body.classList.add("modalOpened");let i,o;return r.close=()=>{o.componentRef.destroy(),i.nativeElement.remove(),typeof r.onClose=="function"&&r.onClose(),delete this.opened[r.id],Object.keys(this.opened).length||this.core.document.body.classList.remove("modalOpened")},typeof r.timeout=="number"&&r.timeout>0&&setTimeout(r.close,r.timeout),i=this.dom.appendComponent(S0,r),o=this.dom.appendComponent(r.component,r,i.nativeElement.children[0].children[0].children[0]),i.nativeElement}open(r){this.show(r)}small(r){(typeof r=="string"||typeof r=="function")&&(r={component:r}),r.size="small",this.show(r)}mid(r){(typeof r=="string"||typeof r=="function")&&(r={component:r}),r.size="mid",this.show(r)}big(r){(typeof r=="string"||typeof r=="function")&&(r={component:r}),r.size="big",this.show(r)}full(r){(typeof r=="string"||typeof r=="function")&&(r={component:r}),r.size="full",this.show(r)}destroy(){for(let r in this.opened)this.opened[r].close();this.core.document.body.classList.remove("modalOpened")}};e.\u0275fac=function(i){return new(i||e)(_(T0,8),_(xe),_(Hc))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A0=(()=>{let e=class e{constructor(r,i,o,s,a,c,l){this.componentFactoryResolver=r,this._cfs=i,this._translate=o,this._modal=s,this._store=a,this.appRef=c,this.injector=l,this.appId=wi.appId,this._injectedComponent={},this.templateFields={},this.customTemplateFields={},this._templateComponent={},this.forms=[],this.formIds=[],this._store.getJson("formIds",u=>{Array.isArray(u)&&this.formIds.push(...u)})}getTemplateFields(r){return this.templateFields[r]||["Placeholder","Label"]}setTemplateFields(r,i,o={}){this.templateFields[r]=i,this.customTemplateFields[r]=D(D({},this.customTemplateFields[r]||{}),o)}getCustomTemplateFields(r){return this.customTemplateFields[r]||{}}injectComponent(r,i=["Placeholder","Label"],o={}){let s=r.name.replace("_","").replace("Component","");if(!this._injectedComponent[s]){this._injectedComponent[s]=!0,this.templateFields[s]=i,this.customTemplateFields[s]=o;let c=this.componentFactoryResolver.resolveComponentFactory(r).create(this.injector);this.appRef.attachView(c.hostView);let l=c.hostView.rootNodes[0];document.body.appendChild(l)}}addTemplateComponent(r,i){this._templateComponent[r]||(this._templateComponent[r]=i)}getTemplateComponent(r){return this._templateComponent[r]}getTemplateComponentsNames(){let r=[];for(let i in this._templateComponent)r.push(i);return r}translateForm(r){if(r.title){r.title=this._translate.translate(`Form_${r.formId}.${r.title}`,i=>{r.title=i});for(let i of r.components)for(let o of i.fields||[])this.translateFormComponent(r,o)}}translateFormComponent(r,i){let o=i.value;typeof o=="string"&&!i.skipTranslation&&(i.value=this._translate.translate(`Form_${r.formId}.${o}`,s=>{i.value=s}))}getDefaultForm(r,i=["name","description"]){return this.formIds.indexOf(r)===-1&&(this.formIds.push(r),this._store.setJson("formIds",this.formIds)),{id:r,components:i.map((s,a)=>({name:s.includes(".")?s.split(".")[1]:"Text",key:s,focused:!a,fields:[{name:"Placeholder",value:"Enter your "+s.split(".")[0]},{name:"Label",value:s.split(".")[0].capitalize()}]}))}}getForm(r,i){if(i&&this.forms.map(s=>s.formId).indexOf(i?.formId)===-1&&this.forms.push(i),this.formIds.indexOf(r)===-1&&(this.formIds.push(r),this._store.setJson("formIds",this.formIds)),i=i||this.forms.find(s=>s.formId===r),i=i||this.getDefaultForm(r),i)for(let s of i.components)s.root=!0;let o=this._cfs.customforms.filter(s=>s.active&&s.formId===r);i.formId=r;for(let s of o){i.title=i.title||s.name,i.class=i.class||s.class;for(let a of s.components)a.root=!1,i.components.push(a)}return this.translateForm(i),i}modal(r,i=[],o={},s=c=>{},a={}){return new Promise(c=>{this._modal.show(W(D({},a),{component:Gc,class:"forms_modal",form:r,buttons:Array.isArray(i)?i:[i],submition:o,onClose:function(){c(this.submition)},submit:l=>{c(l)},change:l=>{typeof s=="function"&&s(l)}}))})}modalUnique(r,i,o,s="",a=()=>{}){this._modal.show({component:Wc,form:this.getDefaultForm("unique",[i+(s?"."+s:"")]),module:r,field:i,doc:o,class:"forms_modal",onClose:a})}};e.\u0275fac=function(i){return new(i||e)(_($t),_(x0),_(Ni),_(O0),_(Yt),_(tt),_(Se))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var VO=(t,e,n,r,i,o,s)=>({field:t,config:e,component:n,submition:r,wSubmit:i,wChange:o,wClick:s}),jO=t=>({$implicit:t});function BO(t,e){if(t&1){let n=G();y(0,"form-component",4),O("wSubmit",function(){A(n);let i=g(3);return N(i.wSubmit.emit(i.submition))})("wChange",function(){A(n);let i=g(3);return N(i.wChange.emit())})("wClick",function(){A(n);let i=g(3);return N(i.wClick.emit())}),v()}if(t&2){let n=g(),r=n.$implicit,i=n.index,o=g(2);lr(o.config.formId+"_"+o.index+"_"+i+" "+(o.component.class||"")),m("component",r)("submition",o.submition)("config",o.config)("index",o.index+"_"+i)}}function UO(t,e){if(t&1&&(we(0),T(1,BO,1,6,"form-component",3),Ce()),t&2){let n=g(2);p(),m("ngIf",!n.component.hidden)}}function $O(t,e){if(t&1&&(we(0),y(1,"div",1),T(2,UO,2,1,"ng-container",2),v(),Ce()),t&2){let n=g();p(),lr(n.component.class||""),p(),m("ngForOf",n.component.components)}}function HO(t,e){t&1&&mt(0)}function zO(t,e){if(t&1&&(we(0),y(1,"div",5),T(2,HO,1,0,"ng-container",6),v(),Ce()),t&2){let n=g();p(2),m("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Pn(10,jO,Ny(2,VO,n.field,n.config,n.component,n.submition,n.submit.bind(n),n.change.bind(n),n.click.bind(n))))}}var N0=(()=>{let e=class e{submit(){this.wSubmit.emit(this.submition)}change(){this.wChange.emit(this.submition)}click(){this.wClick.emit(this.submition)}get hasComponents(){return Array.isArray(this.component.components)}get template(){return this._form.getTemplateComponent(this.component.name)}constructor(r){this._form=r,this.submition={},this.wSubmit=new U,this.wChange=new U,this.wClick=new U,this.field={}}ngOnInit(){if(Array.isArray(this.component.fields))for(let r of this.component.fields)this.field[r.name]=r.value}};e.\u0275fac=function(i){return new(i||e)(I(A0))},e.\u0275cmp=ue({type:e,selectors:[["form-component"]],inputs:{index:"index",config:"config",component:"component",submition:"submition"},outputs:{wSubmit:"wSubmit",wChange:"wChange",wClick:"wClick"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"form-components-container"],[4,"ngFor","ngForOf"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"],[1,"form-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&T(0,$O,3,3,"ng-container",0)(1,zO,3,12,"ng-container",0),i&2&&(m("ngIf",o.hasComponents),p(),m("ngIf",o.component.name&&o.template))},dependencies:[Ue,Ye,ci,e],styles:["[_nghost-%COMP%]{position:relative}.w-forms[_ngcontent-%COMP%]{position:relative;padding:0!important;background-color:red}.w-forms__component[_ngcontent-%COMP%]{align-items:end;margin:0 0 10px}.w-forms__level[_ngcontent-%COMP%]{top:3px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:calc(var(--fs) + 4px);letter-spacing:var(--letter-spacing);transition:var(--transition)}.w-forms__level._sky[_ngcontent-%COMP%]{color:var(--c-info)}.w-forms__level._orange[_ngcontent-%COMP%]{color:var(--c-warn)}.w-forms__level._green[_ngcontent-%COMP%]{color:var(--c-success)}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;bottom:10px;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}"]});let t=e;return t})();function GO(t,e){if(t&1&&(y(0,"h1",4),P(1),v()),t&2){let n=g();p(),Ie(n.config.title)}}function WO(t,e){if(t&1){let n=G();y(0,"form-component",6),O("wSubmit",function(){A(n);let i=g(2);return N(i.onSubmit())})("wChange",function(){A(n);let i=g(2);return N(i.onChange())})("wClick",function(){A(n);let i=g(2);return N(i.onClick())}),v()}if(t&2){let n=g(),r=n.$implicit,i=n.index,o=g();lr(o.config.formId+"_"+i+" "+(r.class||"")+" "+o.config.formId),m("component",r)("submition",o.submition)("config",o.config)("index",""+i)}}function ZO(t,e){if(t&1&&(we(0),T(1,WO,1,6,"form-component",5),Ce()),t&2){let n=e.$implicit;p(),m("ngIf",!n.hidden)}}var dh=(()=>{let e=class e{constructor(r){this._core=r,this.submition={},this.wChange=new U,this.wSubmit=new U}ngAfterViewInit(){this.submition.data=this.submition.data||{}}component(r,i=this.config.components){for(let o of i){if(o.key===r)return o;if(o.components?.length){let s=this.component(r,o.components);if(s)return s}}return!1}onSubmit(){this._core.afterWhile(this,()=>{for(let r of this.config.components)if(r.key&&r.required&&(r.valid&&!r.valid()||!r.valid&&!this.submition[r.key])){typeof r.focus=="function"&&r.focus();return}this.wSubmit.emit(this.submition)})}onChange(){this._core.afterWhile(this,()=>{this.wChange.emit(this.submition)})}onClick(){}};e.\u0275fac=function(i){return new(i||e)(I(xe))},e.\u0275cmp=ue({type:e,selectors:[["wform"]],inputs:{config:"config",submition:"submition"},outputs:{wChange:"wChange",wSubmit:"wSubmit"},decls:4,vars:2,consts:[[1,"w-forms"],["class","w-forms__title",4,"ngIf"],[3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"w-forms__title"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"]],template:function(i,o){i&1&&(y(0,"div",0),T(1,GO,2,1,"h1",1),y(2,"form",2),O("ngSubmit",function(){return o.onSubmit()}),T(3,ZO,2,1,"ng-container",3),v()()),i&2&&(p(),m("ngIf",o.config.title),p(2),m("ngForOf",o.config.components))},dependencies:[Ue,Ye,N0]});let t=e;return t})();var P0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Fe,qc]});let t=e;return t})();Id(Gc,[Gt,Ue,zc,dh],[]);Id(Wc,[dh],[]);var H3=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Fe,Zt,Ai,P0,qc,v_,I0]});let t=e;return t})();var q3=(()=>{let e=class e{constructor(r,i){this.elementRef=r,this.tr=i}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.tr.translate(this.elementRef.nativeElement.innerHTML,r=>{this.elementRef.nativeElement.innerHTML=r})}};e.\u0275fac=function(i){return new(i||e)(I(Ee),I(Ni))},e.\u0275dir=oe({type:e,selectors:[["","translate",""]]});let t=e;return t})();var W3=(()=>{let e=class e{constructor(r){this._tr=r}transform(r,i){return this._tr.translate(r)}};e.\u0275fac=function(i){return new(i||e)(I(Ni,16))},e.\u0275pipe=ir({name:"translate",type:e,pure:!0});let t=e;return t})();var nU=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Fe,Zt,Ai]});let t=e;return t})();var YO=["e_search"],QO=t=>({item:t});function KO(t,e){if(t&1&&(y(0,"div",21),P(1),v()),t&2){let n=g();p(),Ie(n.label)}}function JO(t,e){if(t&1&&(y(0,"div"),P(1),v()),t&2){let n=g(3);p(),Ie(n.placeholder)}}function XO(t,e){t&1&&(y(0,"span"),P(1,", "),v())}function eA(t,e){if(t&1){let n=G();y(0,"span"),P(1),y(2,"i",27),O("click",function(){A(n);let i=g().index,o=g(3);return o._values.splice(i,1),N(o.modelChange.emit(o._values))}),P(3,"close"),v()()}if(t&2){let n=g().$implicit,r=g(3);p(),fe("",r._items[n][r.name]," ")}}function tA(t,e){if(t&1&&(y(0,"span"),T(1,XO,2,0,"span",25)(2,eA,4,1,"span",25),v()),t&2){let n=e.$implicit,r=e.index,i=g(3);p(),m("ngIf",r),p(),m("ngIf",i._items[n])}}function nA(t,e){if(t&1&&(y(0,"div",24),T(1,JO,2,1,"div",25)(2,tA,3,2,"span",26),v()),t&2){let n=g(2);p(),m("ngIf",!n._values.length),p(),m("ngForOf",n._values)}}function rA(t,e){if(t&1&&(y(0,"div",24),P(1),v()),t&2){let n=g(2);p(),fe(" ",n._selected||n.placeholder," ")}}function iA(t,e){if(t&1&&(y(0,"div",22),T(1,nA,3,2,"div",23)(2,rA,2,1,"div",23),v()),t&2){let n=g();p(),m("ngIf",n.multiple),p(),m("ngIf",!n.multiple)}}function oA(t,e){if(t&1){let n=G();y(0,"div",17),O("click",function(){A(n);let i=g();return N(i.clear())}),y(1,"span",28),P(2,"close"),v()()}}function sA(t,e){if(t&1){let n=G();y(0,"div",33)(1,"input",34,3),qt("ngModelChange",function(i){A(n);let o=g(3);return un(o.search,i)||(o.search=i),N(i)}),v(),Ca(),y(3,"svg",35),de(4,"path",36),v()()}if(t&2){let n=g(3);p(),zt("ngModel",n.search)}}function aA(t,e){if(t&1&&(y(0,"div"),mt(1,15),T(2,sA,5,1,"ng-template",null,2,dn),v()),t&2){let n=St(3),r=g(2);p(),m("ngTemplateOutlet",r.t_search?r.t_search:n)}}function cA(t,e){if(t&1&&mt(0,37),t&2){let n=e.$implicit;g();let r=St(8),i=g();m("ngTemplateOutlet",i.t_item?i.t_item:r)("ngTemplateOutletContext",Pn(2,QO,n))}}function lA(t,e){t&1&&(y(0,"div",38),P(1," Nothing was found "),v())}function uA(t,e){if(t&1){let n=G();y(0,"div",39),O("click",function(){let i=A(n).item,o=g(2);return N(o.item_onclick(i))}),y(1,"div",40),P(2),v()()}if(t&2){let n=e.item,r=g(2);pe("disabled",r._values.indexOf(n.value)!==-1),p(),pe("selected",r._values.indexOf(n[r.value])!==-1),p(),fe(" ",n[r.name]," ")}}function dA(t,e){if(t&1&&(y(0,"div",29),T(1,aA,4,1,"div",25),y(2,"div",30),T(3,cA,1,4,"ng-container",31),dr(4,"search"),T(5,lA,2,0,"div",32),dr(6,"search"),v(),T(7,uA,3,5,"ng-template",null,1,dn),v()),t&2){let n,r=g();pe("_search",r.searchable),p(),m("ngIf",r.searchable),p(2),m("ngForOf",oi(4,5,r.items,r.search,r.searchableBy)),p(2),m("ngIf",!((n=oi(6,9,r.items,r.search,r.searchableBy))!=null&&n.length))}}var lU=(()=>{let e=class e{constructor(){this.update=new U,this.placeholder="",this.items=[],this._items={},this.disabled=!1,this.clearable=!1,this.name="name",this.value="_id",this.multiple=!1,this.label="",this.searchable=!1,this.searchableBy="name",this.modelChange=new U,this._values=[],this._names=[],this.search=""}clear(){this.multiple?(this._values=[],this.modelChange.emit(this._values)):(this._selected="",this.modelChange.emit(""))}ngOnInit(){for(let r=0;r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ae({type:e}),e.\u0275inj=se({imports:[Zt,Fe,Ai]});let t=e;return t})();export{D as a,W as b,L0 as c,vt as d,pl as e,yw as f,ct as g,_l as h,S as i,b as j,se as k,E as l,_ as m,ue as n,ae as o,sn as p,A as q,N as r,Ca as s,U as t,re as u,pt as v,CL as w,Sa as x,bL as y,p as z,I as A,Qr as B,T as C,cr as D,m as E,wy as F,pe as G,lr as H,y as I,v as J,de as K,we as L,Ce as M,G as N,O,g as P,Fa as Q,eo as R,ur as S,ii as T,Xe as U,et as V,St as W,P as X,Ie as Y,fe as Z,zt as _,un as $,qt as aa,xL as ba,Pn as ca,dr as da,ML as ea,dn as fa,SL as ga,Rn as ha,Te as ia,Gt as ja,Ue as ka,Ye as la,tv as ma,Fe as na,Ex as oa,vv as pa,b2 as qa,D2 as ra,E2 as sa,xv as ta,ZM as ua,it as va,mc as wa,$2 as xa,H2 as ya,v_ as za,wi as Aa,Zf as Ba,Ii as Ca,_r as Da,Zt as Ea,lV as Fa,xe as Ga,M1 as Ha,Uc as Ia,Bc as Ja,Yt as Ka,Oi as La,fB as Ma,Hc as Na,y0 as Oa,hB as Pa,pB as Qa,Ai as Ra,Ni as Sa,q3 as Ta,zc as Ua,qc as Va,jB as Wa,I0 as Xa,_0 as Ya,NB as Za,x0 as _a,O0 as $a,A0 as ab,dh as bb,P0 as cb,H3 as db,W3 as eb,nU as fb,lU as gb,mU as hb}; diff --git a/docs/chunk-C3V67GQQ.js b/docs/chunk-C3V67GQQ.js deleted file mode 100644 index 055314e..0000000 --- a/docs/chunk-C3V67GQQ.js +++ /dev/null @@ -1 +0,0 @@ -import{g as x,h,i as b}from"./chunk-4MVVYH4U.js";import{E as s,I as e,J as n,K as r,Ua as y,Wa as f,X as i,ba as c,k as m,n as a,o as d,z as u,za as w}from"./chunk-4ZWMSXGZ.js";var H=()=>["banana","lemon","lime"],g=(()=>{let t=class t{};t.\u0275fac=function(p){return new(p||t)},t.\u0275cmp=a({type:t,selectors:[["ng-component"]],decls:38,vars:2,consts:[[1,"wrapper-com"],["type","textarea"],["type","radio",3,"items"],["type","checkbox","label","Hello World"],["type","password"],["type","email"],["type","number"],["type","tel"],["type","url"],["type","search"],["type","date"],["type","datetime-local"],["type","month"],["type","week"],["type","time"],["type","color"],["type","datetime"],["type","range"],["type","primary"],["type","secondary"],["type","success"],["type","danger"],["type","warning"],["type","info"],["type","light"],["type","dark"],["type","link"]],template:function(p,W){p&1&&(e(0,"div",0),r(1,"winput")(2,"winput",1)(3,"winput",2)(4,"winput",3)(5,"winput",4)(6,"winput",5)(7,"winput",6)(8,"winput",7)(9,"winput",8)(10,"winput",9)(11,"winput",10)(12,"winput",11)(13,"winput",12)(14,"winput",13)(15,"winput",14)(16,"winput",15)(17,"winput",16)(18,"winput",17),e(19,"wbutton",18),i(20,"Hello World"),n(),e(21,"wbutton",19),i(22,"Hello World"),n(),e(23,"wbutton",20),i(24,"Hello World"),n(),e(25,"wbutton",21),i(26,"Hello World"),n(),e(27,"wbutton",22),i(28,"Hello World"),n(),e(29,"wbutton",23),i(30,"Hello World"),n(),e(31,"wbutton",24),i(32,"Hello World"),n(),e(33,"wbutton",25),i(34,"Hello World"),n(),e(35,"wbutton",26),i(36,"Hello World"),n(),r(37,"ngx-file"),n()),p&2&&(u(3),s("items",c(1,H)))},dependencies:[y,f,x],styles:[".wrapper-com[_ngcontent-%COMP%]{height:100vh;overflow:scroll;padding:20px}"]});let o=t;return o})();var S=[{path:"",component:g}],N=(()=>{let t=class t{};t.\u0275fac=function(p){return new(p||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[w.forChild(S),b,h]});let o=t;return o})();export{N as ComponentsModule}; diff --git a/docs/chunk-NO7PPEHJ.js b/docs/chunk-NO7PPEHJ.js deleted file mode 100644 index bb0e1d0..0000000 --- a/docs/chunk-NO7PPEHJ.js +++ /dev/null @@ -1 +0,0 @@ -import{a as j}from"./chunk-3BVBZK3A.js";import{i as $}from"./chunk-4MVVYH4U.js";import{A as a,C as f,E as s,Ga as v,I as g,J as h,N as y,O as M,Oa as k,P as l,Sa as F,Wa as I,Ya as S,Za as T,ab as U,k as _,ka as O,n as u,o as b,q as C,r as x,z as w,za as P}from"./chunk-4ZWMSXGZ.js";function D(t,e){if(t&1){let c=y();g(0,"winput",3),M("wChange",function(n){let r=C(c).$implicit,d=l().$implicit,m=l();return r.is[d]=n,x(m.update(r))}),h()}if(t&2){let c=e.$implicit,i=l().$implicit;s("value",c.is[i])}}function V(t,e){if(t&1&&f(0,D,1,1,"ng-template",2),t&2){let c=e.$implicit;s("cell",c)}}var N=(()=>{let e=class e{get roles(){return this._us.roles}get users(){return this._us.users}constructor(i,n,r,d,m){this._translate=i,this._us=n,this._form=r,this._alert=d,this._core=m,this.form=this._form.getForm("user"),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(o,p)=>{this._us.create(o,{alert:"User has been created",callback:p.bind(this)})}}).then(this._us.create.bind(this))},update:o=>{this._form.modal(this.form,[],o).then(p=>{this._core.copy(p,o),this._us.update(o,{alert:"User has been updated"})})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._us.delete(o,{name:"admin",alert:"User has been deleted",callback:()=>{}})}}]})}},this.columns=["name","email"];for(let o of this._us.roles)this.columns.push(o)}update(i){this._us.updateAdmin(i)}};e.\u0275fac=function(n){return new(n||e)(a(F),a(j),a(U),a(k),a(v))},e.\u0275cmp=u({type:e,selectors:[["app-users"]],decls:2,vars:4,consts:[[3,"columns","config","rows"],[4,"ngFor","ngForOf"],[3,"cell"],["type","checkbox",3,"wChange","value"]],template:function(n,r){n&1&&(g(0,"wtable",0),f(1,V,1,1,null,1),h()),n&2&&(s("columns",r.columns)("config",r.config)("rows",r.users),w(),s("ngForOf",r.roles))},dependencies:[O,I,T,S],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.w-table-user[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.w-table-user__img[_ngcontent-%COMP%]{width:30px;height:30px;min-width:30px;min-height:30px;margin-right:10px}.w-table-user__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:var(--b-radius-img)}@media (max-width: 991.9px){.w-table-user__img[_ngcontent-%COMP%]{display:none}}@media (max-width: 991.9px){.w-table[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .w-table[_ngcontent-%COMP%] .role[_ngcontent-%COMP%]{display:none}}.w-table[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{height:18px;max-height:18px;display:block}.w-table[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{padding:2px}.users-field[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:10px}.users-field[_ngcontent-%COMP%] .forms[_ngcontent-%COMP%]{width:100%}@media (max-width: 575.9px){.users-field[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin-bottom:20px;width:100%}}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{transition:var(--transition)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]:hover{color:var(--c-error)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%]{margin-left:15px}.users__header[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius)}"]});let t=e;return t})();var E=[{path:"",component:N}],X=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=b({type:e}),e.\u0275inj=_({imports:[P.forChild(E),$]});let t=e;return t})();export{X as UsersModule}; diff --git a/docs/chunk-P7NPAUAN.js b/docs/chunk-P7NPAUAN.js deleted file mode 100644 index b89ce0a..0000000 --- a/docs/chunk-P7NPAUAN.js +++ /dev/null @@ -1 +0,0 @@ -import{i as $}from"./chunk-4MVVYH4U.js";import{$ as L,A as p,Ba as j,C as T,Ca as N,Da as P,E as w,I as h,J as u,K as x,N as I,O as S,Oa as D,P as F,Sa as E,X as g,Ya as z,Z as M,Za as B,_ as A,_a as R,aa as V,ab as U,k as v,n as b,o as k,q as _,r as C,z as y,za as W}from"./chunk-4ZWMSXGZ.js";function G(m,n){if(m&1&&g(0),m&2){let a=n.$implicit;M(" ",a.components==null?null:a.components.length," ")}}function H(m,n){if(m&1){let a=I();h(0,"label",3)(1,"input",4),S("ngModelChange",function(){let o=_(a).$implicit,l=F();return C(l.changeStatus(o))}),V("ngModelChange",function(o){let l=_(a).$implicit;return L(l.active,o)||(l.active=o),C(o)}),u(),x(2,"span",5),h(3,"span",6),g(4,"Active"),u()()}if(m&2){let a=n.$implicit;y(),A("ngModel",a.active)}}var q=(()=>{let n=class n{get rows(){return this._cfs.customforms}constructor(s,o,l,d){this._translate=s,this._cfs=o,this._alert=l,this._form=d,this.columns=["formId","components","active"],this.form=this._form.getForm("form",{formId:"form",title:"Custom form",components:[{name:"Text",key:"title",focused:!0,fields:[{name:"Placeholder",value:"fill title"},{name:"Label",value:"Title"}]},{name:"Select",key:"formId",fields:[{name:"Placeholder",value:"Select form id"},{name:"Label",value:"Form ID"},{name:"Items",value:this._form.formIds}]}]}),this.components=[],this.formComponents=this._form.getForm("formComponents",{formId:"formComponents",title:"Custom components",components:[{components:this.components},{name:"Select",key:"addComponent",fields:[{name:"Placeholder",value:"Select form componnet"},{name:"Label",value:"Form Component"},{name:"Value",value:"name",skipTranslation:!0},{name:"Items",value:this._form.getTemplateComponentsNames()}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(t,i)=>{this._cfs.create(t,{callback:i.bind(this)})}}).then(this._cfs.create.bind(this))},update:t=>{this._form.modal(this.form,{label:"Update",click:(i,f)=>{this._cfs.update(i,{callback:f.bind(this)})}},t).then(this._cfs.update.bind(this))},delete:t=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._cfs.delete(t)}}]})},buttons:[{icon:"text_fields",click:t=>{console.log(this.formComponents),this.components.splice(0,this.components.length);let i={addComponent:"Text"};t.components=t.components||[];for(let e=t.components.length-1;e>=0;e--){let r=this._form.getTemplateFields(t.components[e].name);t.components[e].fields=t.components[e].fields.filter(c=>r.includes(c.name));for(let c of r)t.components[e].fields.find(K=>K.name===c)||t.components[e].fields.push({value:"",name:c});i["key"+e]=t.components[e].key;for(let c of t.components[e].fields)i[c.name+e]=c.value}let f=e=>{this.components.splice(e,1),t.components.splice(e,1),this._cfs.updateAfterWhile(t)};(t.components||[]).forEach(e=>{this.components.push(this._addCustomComponent(e.name,this.components.length,f))}),this._form.modal(this.formComponents,{label:"Add component",click:()=>{let e=i.addComponent;this.components.push(this._addCustomComponent(e,this.components.length,f)),t.components.push({name:i.addComponent,fields:this._form.getTemplateFields(e).map(r=>({value:"",name:r}))})}},i,()=>{},{size:"big"}).then(()=>{for(let e=0;e({name:this._form.getCustomTemplateFields(s)[i]||"Text",key:i+o,fields:[{name:"Placeholder",value:"fill "+i},{name:"Label",value:i.charAt(0).toUpperCase()+i.slice(1,i.length)}]}));return{class:"d-f mt10",components:[{name:"Text",key:"key"+o,fields:[{name:"Placeholder",value:"fill key"},{name:"Label",value:"Key"}]},...d,{name:"Button",fields:[{name:"Label",value:"Remove"},{name:"Click",value:()=>{l(o)}}]}]}}changeStatus(s){setTimeout(()=>{if(s.active)for(let o of this._cfs.customforms)o._id===s._id||o.formId!==s.formId||o.active&&(o.active=!1,this._cfs.updateAfterWhile(o));this._cfs.updateAfterWhile(s)})}};n.\u0275fac=function(o){return new(o||n)(p(E),p(R),p(D),p(U))},n.\u0275cmp=b({type:n,selectors:[["ng-component"]],decls:3,vars:3,consts:[["title","Forms Customization",3,"columns","config","rows"],["cell","components"],["cell","active"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","ngModel"],[1,"checkmark"],[1,"checkmark-text"]],template:function(o,l){o&1&&(h(0,"wtable",0),T(1,G,1,1,"ng-template",1)(2,H,5,1,"ng-template",2),u()),o&2&&w("columns",l.columns)("config",l.config)("rows",l.rows)},dependencies:[j,N,P,B,z]});let m=n;return m})();var J=[{path:"",component:q}],le=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=k({type:n}),n.\u0275inj=v({imports:[W.forChild(J),$]});let m=n;return m})();export{le as CustomformsModule}; diff --git a/docs/chunk-Q3QQHINB.js b/docs/chunk-Q3QQHINB.js deleted file mode 100644 index f2f4d41..0000000 --- a/docs/chunk-Q3QQHINB.js +++ /dev/null @@ -1 +0,0 @@ -import{A as f,C as v,E as _,Ea as S,I as o,J as l,La as j,O as g,P as y,Ra as k,Sa as I,Ta as A,Ua as E,Va as F,X as p,Ya as N,Z as x,Za as D,ab as z,da as M,db as B,ea as P,eb as J,fb as L,gb as $,hb as H,k as w,n as b,na as T,o as C,z as u,za as O}from"./chunk-4ZWMSXGZ.js";function q(r,t){if(r&1&&p(0),r&2){let c=t.$implicit;x(" ",c==null||c.slug==null?null:c.slug.split(".")[0]," ")}}function G(r,t){if(r&1&&(p(0),M(1,"translate")),r&2){let c=t.$implicit,e=y();x(" ",P(1,1,c==null?null:c.slug,e.ts.now)," ")}}var R=(()=>{let t=class t{setPage(e){this.page=e,localStorage.setItem("page",e)}get rows(){return this.ts.words.filter(e=>this.page&&typeof e=="object"?this.page===e.slug.split(".")[0]:!0)}constructor(e,a,n){this.ts=e,this._form=a,this._http=n,this.columns=["page","word","translation"],this.form=this._form.getForm("translate",{formId:"translate",title:"Translate",components:[{name:"Text",key:"translate",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.formAll=this._form.getForm("translateAll",{formId:"translateAll",title:"Translate All",components:[{name:"Text",key:"words",fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]},{name:"Text",key:"translates",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.config={update:i=>{this._form.modal(this.form,[],{translate:this.ts.translate(i.slug)}).then(m=>{this._http.post("/api/translate/create",{appId:this.ts.appId,slug:i.slug,lang:this.ts.language.code,translate:m.translate}),this.ts.translates[this.ts.language.code][i.slug]=m.translate,this.ts.reset()})}},this.pages=[{name:this.ts.translate("Common.All"),_id:""}].concat(this.ts.pages.map(i=>({name:i,_id:i}))),this.page=localStorage.getItem("page")||""}translateAll(e=!1){let a=e?this.rows.filter(s=>!this.ts.translates[this.ts.language.code][s.slug]):this.rows,n=JSON.stringify(a.map(s=>s.word)),i=a.map(s=>s.slug),m=JSON.stringify(a.map(s=>this.ts.translate(s.slug)));this._form.modal(this.formAll,[],{words:n,translates:m}).then(s=>{if(m===s.translates)return;let h=JSON.parse(s.translates);for(let d=0;da.code===e))}};t.\u0275fac=function(a){return new(a||t)(f(I),f(z),f(j))},t.\u0275cmp=b({type:t,selectors:[["ng-component"]],decls:26,vars:7,consts:[[1,"container-fluid"],[1,"page-wrapper"],[1,"translate__top-inner"],[1,"translate__inner"],["for","",1,"formboxs"],["translate","",1,"formboxs_title"],["value","code",3,"modelChange","items","select"],[2,"width","300px",3,"modelChange","items","select"],[1,"translate__buttons"],[1,"translate__dawn-jcon",3,"click"],[1,"material-icons","ng-tns-c405976996-4"],["translate",""],[3,"columns","config","rows"],["cell","page"],["cell","translation"]],template:function(a,n){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4)(5,"div",5),p(6," Common.Select language "),l(),o(7,"wselect",6),g("modelChange",function(m){return n.set_language(m)}),l()(),o(8,"label",4)(9,"div",5),p(10," Common.Select page "),l(),o(11,"wselect",7),g("modelChange",function(m){return n.setPage(m)}),l()()(),o(12,"div",8)(13,"wbutton",9),g("click",function(){return n.translateAll()}),o(14,"span",10),p(15," translate "),l(),o(16,"span",11),p(17,"Common.Translate all"),l()(),o(18,"wbutton",9),g("click",function(){return n.translateAll(!0)}),o(19,"span",10),p(20," translate "),l(),o(21,"span",11),p(22,"Common.Translate missed"),l()()()(),o(23,"wtable",12),v(24,q,1,1,"ng-template",13)(25,G,2,4,"ng-template",14),l()()()),a&2&&(u(7),_("items",n.ts.languages)("select",n.ts.language.code),u(4),_("items",n.pages)("select",n.page),u(12),_("columns",n.columns)("config",n.config)("rows",n.rows))},dependencies:[A,E,D,N,$,J],styles:['.translate__top-inner[_ngcontent-%COMP%]{width:100%;max-width:100vw;display:flex;background:var(--c-bg-secondary);padding:15px;align-items:end;flex-wrap:wrap;gap:20px;justify-content:space-between;border-radius:10px;margin:0 auto;position:relative}@media screen and (max-width: 1250px){.translate__top-inner[_ngcontent-%COMP%]{justify-content:center}}@media (max-width: 767px){.translate__top-inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:15px}}.translate__top-inner[_ngcontent-%COMP%]:before{content:"";position:absolute;height:100px;width:100%;background-color:var(--c-bg-secondary);z-index:-1;left:0;right:0;bottom:-50px}.translate__btn[_ngcontent-%COMP%]{position:absolute;top:-5px;right:25px;font-size:23px}.translate__dawn-jcon[_ngcontent-%COMP%] span.material-icons[_ngcontent-%COMP%]{padding-right:5px}.translate__buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}@media (max-width: 575px){.translate__buttons[_ngcontent-%COMP%]{flex-direction:column}.translate__buttons[_ngcontent-%COMP%] wbutton[_ngcontent-%COMP%]{width:100%}}.translate__inner[_ngcontent-%COMP%]{display:flex;gap:40px;flex-wrap:wrap}@media (max-width: 575px){.translate__inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:20px}}.formboxs_label[_ngcontent-%COMP%]{width:100%;color:var(--c-text-primary);position:relative;display:flex;justify-content:space-between;padding-bottom:10px;padding-right:52px}.translate__main-wrap[_ngcontent-%COMP%]{justify-content:center}.translate__select[_ngcontent-%COMP%]{min-width:200px;max-width:200px;background:var(--c-grey);padding:5px;border:1px solid #7f8c8d;border-radius:5px}.translate__main-inner[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;width:100%;max-width:350px;border-radius:10px;margin:5px 15px 35px;padding:10px;height:fit-content;background:var(--c-bg-secondary);border:2px solid var(--c-primary);cursor:pointer}@media (max-width: 575px){.translate__main-inner[_ngcontent-%COMP%]{margin:0}}.title[_ngcontent-%COMP%]{text-align:center}.input[_ngcontent-%COMP%]{width:100%;margin-right:10px;border-radius:5px;padding:5px 10px;border:1px solid var(--c-text-primary)}.formboxs[_ngcontent-%COMP%]{display:flex;gap:10px;flex-direction:column;align-items:flex-start}.formboxs_title[_ngcontent-%COMP%]{color:var(--c-text-primary);display:flex;justify-content:center;align-items:center}.main__sub-inner[_ngcontent-%COMP%]{margin:20px;display:flex;flex-wrap:wrap}@media (max-width: 767px){.main__sub-inner[_ngcontent-%COMP%]{margin:20px 0}}@media (max-width: 575px){.main__sub-inner[_ngcontent-%COMP%]{gap:20px}}.img-close[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;position:absolute;top:-6px;right:-6px;z-index:2;transition:all .3s;cursor:pointer}.img-close[_ngcontent-%COMP%]:before{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--c-text-primary)}.img-close[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(-45deg);background:var(--c-text-primary)}']});let r=t;return r})();var K=[{path:"",component:R}],gt=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=w({imports:[O.forChild(K),L,T,F,S,B,k,H]});let r=t;return r})();export{gt as TranslatesModule}; diff --git a/docs/chunk-TEWE2GD7.js b/docs/chunk-TEWE2GD7.js deleted file mode 100644 index 83e5949..0000000 --- a/docs/chunk-TEWE2GD7.js +++ /dev/null @@ -1 +0,0 @@ -import{a as k}from"./chunk-3BVBZK3A.js";import{a as j,g as I,h as L,i as N}from"./chunk-4MVVYH4U.js";import{A as l,Aa as M,C as P,E as p,Ga as O,I as n,J as a,N as x,O as c,P as u,Ta as S,Ua as T,X as f,ab as E,ba as y,bb as F,k as g,la as v,n as h,o as _,q as w,r as b,z as m,za as C}from"./chunk-4ZWMSXGZ.js";var A=()=>({"border-radius":"var(--c-img-round)",width:"52px",height:"52px"});function B(i,t){if(i&1){let d=x();n(0,"wform",13),c("wChange",function(r){w(d);let o=u();return b(o.update(r))}),a()}if(i&2){let d=u();p("config",d.formProfile)("submition",d.user)}}var z=(()=>{let t=class t{constructor(e,r,o){this._form=e,this._core=r,this.us=o,this.url=M.url,this.formProfile=this._form.getForm("profile",{formId:"profile",title:"Profile Settings",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"Enter your name"},{name:"Label",value:"Name"}]},{name:"Text",key:"phone",fields:[{name:"Placeholder",value:"Enter your phone"},{name:"Label",value:"Phone"}]},{name:"Text",key:"bio",fields:[{name:"Placeholder",value:"Enter your bio"},{name:"Label",value:"Bio"},{name:"Textarea",value:!0}]}]}),this.formPassword=this._form.getForm("change password",{formId:"change password",title:"Change password",components:[{name:"Password",key:"oldPass",focused:!0,fields:[{name:"Placeholder",value:"Enter your old password"},{name:"Label",value:"Old Password"}]},{name:"Password",key:"newPass",fields:[{name:"Placeholder",value:"Enter your new password"},{name:"Label",value:"New Password"}]}]}),this._core.onComplete("us.user").then(()=>{let s={};this._core.copy(this.us.user,s),this.user=s})}update(e){this._core.copy(e,this.us.user),this.us.updateMe()}changePassword(){this._form.modal(this.formPassword,{label:"Change",click:(e,r)=>{this.us.changePassword(e.oldPass,e.newPass),r()}}).then(e=>{this.us.changePassword(e.oldPass,e.newPass)})}updateThumb(e){this.us.user.thumb=Array.isArray(e)?e[0]:e,this.us.updateMe()}};t.\u0275fac=function(r){return new(r||t)(l(E),l(O),l(k))},t.\u0275cmp=h({type:t,selectors:[["app-profile"]],decls:18,vars:8,consts:[[1,"container"],[1,"profile__header"],[1,"avatar","_profile"],["err","assets/default.png","container","user",3,"update","value","name","isPhoto","imgStyle","height","width"],[1,"profile__body"],[3,"config","submition","wChange",4,"ngIf"],[1,"profile__footer"],[1,"profile__logout"],["type","danger",3,"click"],[1,"material-icons"],["translate",""],[1,"profile__password"],["type","link","translate","",3,"click"],[3,"wChange","config","submition"]],template:function(r,o){r&1&&(n(0,"div",0)(1,"wcard")(2,"div",1)(3,"div")(4,"div",2)(5,"ngx-file",3),c("update",function(D){return o.updateThumb(D)}),a()()()(),n(6,"div",4),P(7,B,1,2,"wform",5),n(8,"div",6)(9,"div",7)(10,"wbutton",8),c("click",function(){return o.us.logout()}),n(11,"span",9),f(12,"logout"),a(),n(13,"span",10),f(14,"Profile.Logout"),a()()(),n(15,"div",11)(16,"wbutton",12),c("click",function(){return o.changePassword()}),f(17," Profile.Change Password "),a()()()()()()),r&2&&(m(5),p("value",o.us.user.thumb?o.url+o.us.user.thumb:"assets/default.png")("name",o.us.user._id+".jpg")("isPhoto",!0)("imgStyle",y(7,A))("height",512)("width",512),m(2),p("ngIf",o.user))},dependencies:[S,v,T,j,F,I],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] wcard[_ngcontent-%COMP%]{width:100%;transition:all .3s;display:block}.container[_ngcontent-%COMP%]{padding:unset}.profile__header[_ngcontent-%COMP%]{z-index:9;top:20px;position:absolute;right:30px;letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:8px}.profile__footer[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}@media (max-width: 767.9px){.profile__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.profile__footer[_ngcontent-%COMP%] .profile__logout[_ngcontent-%COMP%]{order:2;margin-top:20px}}.profile__logout[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;display:flex;justify-content:space-between;align-items:center}.profile__logout[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:10px}.imgClass[_ngcontent-%COMP%]{height:52px;width:52px}.avatar[_ngcontent-%COMP%]{border-radius:50%;border:1px solid var(--c-border);position:relative;margin:0 auto;padding:3px}.avatar._profile[_ngcontent-%COMP%]{width:60px;height:60px}.avatar__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar__upload[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:0;bottom:0;width:24px;height:24px;border-radius:50%;background:var(--c-primary);display:flex;justify-content:center;align-items:center;transition:.3s all ease-in-out}.avatar__icon[_ngcontent-%COMP%]{color:#fff;font-size:16px}.profile__password[_ngcontent-%COMP%]{cursor:pointer}"]});let i=t;return i})();var R=[{path:"",component:z}],oe=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=_({type:t}),t.\u0275inj=g({imports:[C.forChild(R),N,L]});let i=t;return i})();export{oe as ProfileModule}; diff --git a/docs/chunk-YPGDCGX4.js b/docs/chunk-YPGDCGX4.js deleted file mode 100644 index c99fecc..0000000 --- a/docs/chunk-YPGDCGX4.js +++ /dev/null @@ -1 +0,0 @@ -import{i as x}from"./chunk-4MVVYH4U.js";import{A as n,E as v,Ga as m,Ja as y,K as b,Ka as C,La as I,Oa as f,Sa as _,Za as w,ab as S,j as d,k as u,m as l,n as h,o as g,za as j}from"./chunk-4ZWMSXGZ.js";var k=(()=>{let t=class t extends y{constructor(o,e,s,c){super({name:"articletag"},o,e,s,c),this.articletags=[],this.get().subscribe(a=>this.articletags.push(...a)),c.on("articletag_create").subscribe(a=>{this.articletags.push(a)}),c.on("articletag_delete").subscribe(a=>{this.articletags.splice(this.articletags.findIndex(r=>r._id===a._id),1)})}};t.\u0275fac=function(e){return new(e||t)(l(I),l(C),l(f),l(m))},t.\u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var F=(()=>{let t=class t{get rows(){return this._sa.articletags}constructor(o,e,s,c,a){this._translate=o,this._alert=e,this._sa=s,this._form=c,this._core=a,this.columns=["name","description"],this.form=this._form.getForm("tags",{formId:"tags",title:"Tags",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill tags title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill tags description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,p)=>{this._sa.create(r),p()}})},update:r=>{this._form.modal(this.form,[],r).then(p=>{this._core.copy(p,r),this._sa.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this cservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("tags","url",r)}}]}}};t.\u0275fac=function(e){return new(e||t)(n(_),n(f),n(k),n(S),n(m))},t.\u0275cmp=h({type:t,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Tags",3,"columns","config","rows"]],template:function(e,s){e&1&&b(0,"wtable",0),e&2&&v("columns",s.columns)("config",s.config)("rows",s.rows)},dependencies:[w]});let i=t;return i})();var D=[{path:"",component:F}],z=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=g({type:t}),t.\u0275inj=u({imports:[j.forChild(D),x]});let i=t;return i})();export{z as TagsModule}; diff --git a/docs/chunk-Z3GF5ZGP.js b/docs/chunk-Z3GF5ZGP.js deleted file mode 100644 index 5357ea5..0000000 --- a/docs/chunk-Z3GF5ZGP.js +++ /dev/null @@ -1 +0,0 @@ -import{a as F}from"./chunk-3BVBZK3A.js";import{b as H,c as z,d as U,i as q}from"./chunk-4MVVYH4U.js";import{A as r,C as P,E as f,Ga as k,I as a,J as c,La as T,Ma as L,N as x,Na as j,O as m,P as w,Qa as R,Sa as A,X as y,ab as B,bb as N,j as C,k as b,l as v,la as I,m as l,n as M,o as O,q as _,r as u,va as E,z as d,za as S}from"./chunk-4ZWMSXGZ.js";var D=new v("alertConfig"),V={};var K=(()=>{let i=class i{constructor(t,e,o){this.config=t,this._core=e,this._dom=o,this.uniques={},this.shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"},this.config||(this.config=V),this._dom.appendComponent(U)}show(t){let e=typeof t=="string"?{text:t}:t||{};e.type||(e.type="info"),e.position||(e.position="bottomRight");let o;e.close=()=>{o&&o.componentRef.destroy(),s.nativeElement.remove()};let s=this._dom.appendById(z,e,e.position);if(typeof e.component=="function"){let g=s.nativeElement.children[0].children[0].children[0];o=this._dom.appendComponent(e.component,t,g)}return s.nativeElement}open(t){this.show(t)}info(t){typeof t=="string"?this.show({text:t,type:"info"}):(t.type="info",this.show(t))}success(t){typeof t=="string"?this.show({text:t,type:"success"}):(t.type="success",this.show(t))}warning(t){typeof t=="string"?this.show({text:t,type:"warning"}):(t.type="warning",this.show(t))}error(t){typeof t=="string"?this.show({text:t,type:"error"}):(t.type="error",this.show(t))}question(t){typeof t=="string"?this.show({text:t,type:"question"}):(t.type="question",this.show(t))}destroy(){this._core.document.getElementById("bottomRight").innerHTML="",this._core.document.getElementById("bottomLeft").innerHTML="",this._core.document.getElementById("bottomCenter").innerHTML="",this._core.document.getElementById("topRight").innerHTML="",this._core.document.getElementById("topLeft").innerHTML="",this._core.document.getElementById("topCenter").innerHTML="",this._core.document.getElementById("center").innerHTML=""}};i.\u0275fac=function(e){return new(e||i)(l(D,8),l(k),l(j))},i.\u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function $(n,i){if(n&1){let h=x();a(0,"span",8),m("click",function(){_(h);let e=w();return u(e.us.setMode("dark"))}),y(1," dark_mode "),c()}}function tt(n,i){if(n&1){let h=x();a(0,"span",8),m("click",function(){_(h);let e=w();return u(e.us.setMode())}),y(1," light_mode "),c()}}var J=(()=>{let i=class i{constructor(t,e,o,s,g,W,Y,Q){this.us=t,this.ui=e,this._alert=o,this._http=s,this._hash=g,this._router=W,this._form=Y,this._translate=Q,this.form=this._form.getForm("sign",{formId:"sign",title:"Sign In / Sign Up",components:[{name:"Email",key:"email",focused:!0,required:!0,fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",required:!0,fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Text",key:"code",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}],hidden:!0},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{this.submit()}}]}]}),this.user={email:"ceo@webart.work",password:"asdasdasdasd",code:""},this._set=p=>{p?(localStorage.setItem("waw_user",JSON.stringify(p)),this._http.set("token",p.token),this.us.setUser(p),this.us.load(),this._router.navigateByUrl("/profile")):this._alert.error({text:"Something went wrong"})}}submit(){!this.form.components[2].hidden&&this.user.code?this.save():this.user.email||this._alert.error({text:this._translate.translate("Sign.Enter your email")}),this.ui.valid(this.user.email)?this.user.password?(this._hash.set("email",this.user.email),this._http.post("/api/user/status",this.user,t=>{t.email&&t.pass?this.login():t.email?this.reset():this.sign()})):this._alert.error({text:this._translate.translate("Sign.Enter your password")}):this._alert.error({text:this._translate.translate("Sign.Enter proper email")})}login(){this._http.post("/api/user/login",this.user,this._set.bind(this))}sign(){this._http.post("/api/user/sign",this.user,this._set.bind(this))}reset(){this._http.post("/api/user/request",this.user,()=>{this.form.components[2].hidden=!1}),this._alert.info({text:"Mail will sent to your email"})}save(){}};i.\u0275fac=function(e){return new(e||i)(r(F),r(R),r(K),r(T),r(L),r(E),r(B),r(A))},i.\u0275cmp=M({type:i,selectors:[["ng-component"]],decls:9,vars:4,consts:[[1,"auth-wrapper"],[1,"auth__wrap"],[1,"auth__img"],[3,"click"],[1,"auth__form"],[1,"auth"],["class","material-icons",3,"click",4,"ngIf"],[3,"wSubmit","submition","config"],[1,"material-icons",3,"click"]],template:function(e,o){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"icon-spider",3),m("click",function(){return o.us.setMode(o.us.mode?"":"dark")}),c()(),a(4,"div",4)(5,"div",5),P(6,$,2,0,"span",6)(7,tt,2,0,"span",6),a(8,"wform",7),m("wSubmit",function(){return o.submit()}),c()()()()()),e&2&&(d(6),f("ngIf",!o.us.mode),d(),f("ngIf",o.us.mode),d(),f("submition",o.user)("config",o.form))},dependencies:[I,N,H],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}[_nghost-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:auto;display:flex;flex-direction:column}.auth-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:var(--c-bg-primary);flex-grow:1;padding:20px;transition:all .3s}.auth[_ngcontent-%COMP%]{max-width:340px;width:100%;padding:30px;border-radius:10px;box-shadow:0 0 6px var(--c-shadow);background:var(--c-bg-secondary);display:flex;flex-flow:row wrap;position:relative}.auth[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;right:25px;top:25px;z-index:9;cursor:pointer}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:var(--c-text-primary);text-align:center;margin-bottom:15px}@media (max-width: 767.9px){.auth__title[_ngcontent-%COMP%]{font-size:18px}}.auth__btn[_ngcontent-%COMP%]{text-align:center;margin-top:30px}.auth__btn[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;width:100%}.auth__wrap[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center;max-width:880px;width:100%}@media (max-width: 767.9px){.auth__wrap[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__img[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%;display:flex;position:relative;padding-right:40px}.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{left:50%;transform:translate(-78%);font-size:320px;position:absolute;opacity:0;cursor:pointer}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:70px;transform:translate(-50%)}}.auth__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:260px;width:100%;object-fit:cover}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:260px;width:100%;height:100%}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%]{max-width:60px;margin:0 auto;flex:0 0 100%;padding:0 0 30px}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:100%;width:100%}}.auth__form[_ngcontent-%COMP%]{width:95%;flex:0 0 50%;max-width:50%;padding-left:40px;display:flex;justify-content:flex-end}@media (max-width: 767.9px){.auth__form[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%;justify-content:center;padding:0}}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%] .form__title[_ngcontent-%COMP%]{font-size:14px}}wform[_ngcontent-%COMP%]{flex:1 0}@media (max-width: 767.9px){wform[_ngcontent-%COMP%]{flex:0 0 100%;padding:0}}.w-forms[_ngcontent-%COMP%]{position:relative}.w-forms__level[_ngcontent-%COMP%]{top:5px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:20px;letter-spacing:.3px;transition:.3s all ease-in-out}.w-forms__level._sky[_ngcontent-%COMP%]{color:#17a2b8}.w-forms__level._orange[_ngcontent-%COMP%]{color:#e67e22}.w-forms__level._green[_ngcontent-%COMP%]{color:#14c76e}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;top:50%;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}@media screen and (max-width: 768px){.auth__img[_ngcontent-%COMP%]{display:none}}"]});let n=i;return n})();var et=[{path:"",component:J}],xt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=O({type:i}),i.\u0275inj=b({imports:[S.forChild(et),q]});let n=i;return n})();export{xt as SignModule}; diff --git a/docs/chunk-ZFRH4BJ3.js b/docs/chunk-ZFRH4BJ3.js deleted file mode 100644 index 87bbd0a..0000000 --- a/docs/chunk-ZFRH4BJ3.js +++ /dev/null @@ -1 +0,0 @@ -import{i as x}from"./chunk-4MVVYH4U.js";import{A as c,E as b,Ga as l,Ja as y,K as C,Ka as g,La as I,Oa as f,Sa as _,Za as w,ab as S,j as d,k as u,m as a,n as h,o as v,za as j}from"./chunk-4ZWMSXGZ.js";var T=(()=>{let e=class e extends y{constructor(r,t,s,m){super({name:"articlecomment"},r,t,s,m),this.articlecomments=[],this.get().subscribe(n=>this.articlecomments.push(...n)),m.on("articlecomment_create").subscribe(n=>{this.articlecomments.push(n)}),m.on("articlecomment_delete").subscribe(n=>{this.articlecomments.splice(this.articlecomments.findIndex(o=>o._id===n._id),1)})}};e.\u0275fac=function(t){return new(t||e)(a(I),a(g),a(f),a(l))},e.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var F=(()=>{let e=class e{get rows(){return this._sa.articlecomments}constructor(r,t,s,m,n){this._translate=r,this._alert=t,this._sa=s,this._form=m,this._core=n,this.columns=["name","description"],this.form=this._form.getForm("comments",{formId:"comments",title:"Comments",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill comments title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill comments description"},{name:"Label",value:"Description"}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(o,p)=>{this._sa.create(o),p()}})},update:o=>{this._form.modal(this.form,[],o).then(p=>{this._core.copy(p,o),this._sa.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this Articlecomment?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._sa.delete(o)}}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("comments","url",o)}}]}}};e.\u0275fac=function(t){return new(t||e)(c(_),c(f),c(T),c(S),c(l))},e.\u0275cmp=h({type:e,selectors:[["ng-component"]],decls:1,vars:3,consts:[["title","Comments",3,"columns","config","rows"]],template:function(t,s){t&1&&C(0,"wtable",0),t&2&&b("columns",s.columns)("config",s.config)("rows",s.rows)},dependencies:[w]});let i=e;return i})();var D=[{path:"",component:F}],z=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=v({type:e}),e.\u0275inj=u({imports:[j.forChild(D),x]});let i=e;return i})();export{z as CommentsModule}; diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index 997406a..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 28f8b2c..0000000 --- a/docs/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - Platform default waw project - - - - - - - - - - - - - - - - - - - - diff --git a/docs/main-SXTN33CW.js b/docs/main-SXTN33CW.js deleted file mode 100644 index b783d0d..0000000 --- a/docs/main-SXTN33CW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as yn}from"./chunk-3BVBZK3A.js";import{e as vn,f as Sn,i as En}from"./chunk-4MVVYH4U.js";import{A as dt,Aa as ce,B as nn,C as qe,E as I,Fa as mn,G as De,Ha as H,I as b,Ia as pn,J as P,K as Y,N as be,O as z,P as ae,Ra as gn,Ta as _n,X as D,Y as rn,a as je,ba as le,c as Zt,i as E,ia as sn,j as U,k as ke,la as on,m as V,n as ve,o as Oe,oa as an,pa as ln,q as Se,qa as cn,r as Ee,ra as Ue,u as Jt,ua as we,v as en,va as Te,w as ht,wa as un,x as tn,xa as hn,ya as dn,z as O,za as fn}from"./chunk-4ZWMSXGZ.js";var bn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ve({type:e,selectors:[["guest"]],decls:1,vars:0,template:function(i,s){i&1&&Y(0,"router-outlet")},dependencies:[we]});let r=e;return r})();var _=function(r){return r[r.State=0]="State",r[r.Transition=1]="Transition",r[r.Sequence=2]="Sequence",r[r.Group=3]="Group",r[r.Animate=4]="Animate",r[r.Keyframes=5]="Keyframes",r[r.Style=6]="Style",r[r.Trigger=7]="Trigger",r[r.Reference=8]="Reference",r[r.AnimateChild=9]="AnimateChild",r[r.AnimateRef=10]="AnimateRef",r[r.Query=11]="Query",r[r.Stagger=12]="Stagger",r}(_||{}),X="*";function Ve(r,e){return{type:_.Trigger,name:r,definitions:e,options:{}}}function ue(r,e=null){return{type:_.Animate,styles:e,timings:r}}function wn(r,e=null){return{type:_.Sequence,steps:r,options:e}}function B(r){return{type:_.Style,styles:r,offset:null}}function Qe(r,e,t){return{type:_.State,name:r,styles:e,options:t}}function he(r,e,t=null){return{type:_.Transition,expr:r,animation:e,options:t}}var ne=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},$e="!";var Tn=[Ve("flyInOut",[Qe("in",B({transform:"translateX(0)"})),he("void => *",[B({transform:"translateY(-10px)",opacity:0,height:"0"}),ue(400)]),he("* => void",[ue(400,B({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),Ve("tabInOut",[Qe("in",B({transform:"translateX(0)"})),he("void => *",[B({transform:"translateX(10px)",opacity:0}),ue(300)]),he("* => void",[ue(300,B({opacity:0,transform:"translateX(10px)"}))])]),Ve("showInOut",[Qe("in",B({})),he("void => *",[B({opacity:0}),ue(300)]),he("* => void",[ue(300,B({opacity:0}))])])];var ft;try{ft=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ft=!1}var Pn=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?an(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ft)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(V(en))},e.\u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Pe=()=>({exact:!0});function oi(r,e){if(r&1&&Y(0,"div",26),r&2){let t=ae();I("@showInOut",t.showSidebar)}}function ai(r,e){if(r&1){let t=be();b(0,"span",27),z("click",function(){Se(t);let i=ae();return Ee(i.us.setMode("dark"))}),D(1," dark_mode "),P()}}function li(r,e){if(r&1){let t=be();b(0,"span",27),z("click",function(){Se(t);let i=ae();return Ee(i.us.setMode())}),D(1," light_mode "),P()}}function ci(r,e){if(r&1){let t=be();b(0,"a",28),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"people"),P(),b(3,"span",23),D(4,"Theme.Users"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function ui(r,e){if(r&1){let t=be();b(0,"a",29),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"backup_table"),P(),b(3,"span",23),D(4,"Theme.Forms"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function hi(r,e){if(r&1){let t=be();b(0,"a",30),z("click",function(){Se(t);let i=ae();return Ee(i.hideSidebar())}),b(1,"span",5),D(2,"translate"),P(),b(3,"span",23),D(4,"Theme.Translates"),P()()}r&2&&I("routerLinkActiveOptions",le(1,Pe))}function di(r,e){r&1&&Y(0,"hr")}var mt=(()=>{let e=class e{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(n,i){this.us=n,this._platform=i,this.url=ce.url,this.forceAvatarUrl="",this.showSidebar=!1}};e.\u0275fac=function(i){return new(i||e)(dt(yn),dt(Pn))},e.\u0275cmp=ve({type:e,selectors:[["app-user"]],decls:42,vars:23,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],[4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/articles",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","/tags",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/comments",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(i,s){i&1&&(b(0,"div",0)(1,"nav",1),z("clickOutside",function(){return s.showSidebar=!1}),b(2,"ul",2)(3,"li",3)(4,"a",4),z("click",function(){return s.showSidebar=!1}),b(5,"span",5),D(6,"home"),P()()(),b(7,"li",6),z("click",function(){return s.showSidebar=!s.showSidebar}),b(8,"a",7),Y(9,"span",8),P()()()(),b(10,"div",9),qe(11,oi,1,1,"div",10),b(12,"div",11)(13,"div",12)(14,"div",13),qe(15,ai,2,0,"span",14)(16,li,2,0,"span",14),P(),b(17,"a",15)(18,"img",16),z("error",function(){return s.forceAvatarUrl="assets/default.png"}),P(),b(19,"div",17),D(20),P()(),Y(21,"hr"),qe(22,ci,5,2,"a",18)(23,ui,5,2,"a",19)(24,hi,5,2,"a",20)(25,di,1,0,"hr",21),b(26,"a",22),z("click",function(){return s.hideSidebar()}),b(27,"span",5),D(28,"article"),P(),b(29,"span",23),D(30,"Theme.Articles"),P()(),b(31,"a",24),z("click",function(){return s.hideSidebar()}),b(32,"span",5),D(33,"tag"),P(),b(34,"span",23),D(35,"Theme.Tags"),P()(),b(36,"a",25),z("click",function(){return s.hideSidebar()}),b(37,"span",5),D(38,"comment"),P(),b(39,"span",23),D(40,"Theme.Comments"),P()()()(),Y(41,"router-outlet"),P()()),i&2&&(O(2),De("_active",s.showSidebar),O(6),De("_active",s.showSidebar),O(2),De("showTable",s.showSidebar),O(),I("ngIf",s.showSidebar),O(),De("_active",s.showSidebar),O(3),I("ngIf",!s.us.mode),O(),I("ngIf",s.us.mode),O(2),I("src",s.forceAvatarUrl||s.us.user.thumb?s.url+s.us.user.thumb:"assets/default.png",tn),O(2),rn(s.us.user.name||"Profile"),O(2),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("ngIf",s.us.role("admin")),O(),I("routerLinkActiveOptions",le(20,Pe)),O(5),I("routerLinkActiveOptions",le(21,Pe)),O(5),I("routerLinkActiveOptions",le(22,Pe)))},dependencies:[_n,on,pn,we,un,hn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[Tn]}});let r=e;return r})();var An=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ve({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(i,s){i&1&&Y(0,"router-outlet")},dependencies:[we]});let r=e;return r})();function Mn(r){return new E(3e3,!1)}function fi(){return new E(3100,!1)}function mi(){return new E(3101,!1)}function pi(r){return new E(3001,!1)}function gi(r){return new E(3003,!1)}function yi(r){return new E(3004,!1)}function _i(r,e){return new E(3005,!1)}function vi(){return new E(3006,!1)}function Si(){return new E(3007,!1)}function Ei(r,e){return new E(3008,!1)}function bi(r){return new E(3002,!1)}function wi(r,e,t,n,i){return new E(3010,!1)}function Ti(){return new E(3011,!1)}function Pi(){return new E(3012,!1)}function Ai(){return new E(3200,!1)}function Mi(){return new E(3202,!1)}function Ci(){return new E(3013,!1)}function ki(r){return new E(3014,!1)}function Oi(r){return new E(3015,!1)}function Di(r){return new E(3016,!1)}function Ni(r,e){return new E(3404,!1)}function Ii(r){return new E(3502,!1)}function Fi(r){return new E(3503,!1)}function Li(){return new E(3300,!1)}function Ri(r){return new E(3504,!1)}function xi(r){return new E(3301,!1)}function zi(r,e){return new E(3302,!1)}function Bi(r){return new E(3303,!1)}function Ki(r,e){return new E(3400,!1)}function ji(r){return new E(3401,!1)}function qi(r){return new E(3402,!1)}function Ui(r,e){return new E(3505,!1)}function ie(r){switch(r.length){case 0:return new ne;case 1:return r[0];default:return new Ie(r)}}function jn(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((v,y)=>{let f=y,g=v;if(y!=="offset")switch(f=r.normalizePropertyName(f,i),g){case $e:g=t.get(y);break;case X:g=n.get(y);break;default:g=r.normalizeStyleValue(y,f,g,i);break}u.set(f,g)}),h||s.push(u),a=u,o=c}),i.length)throw Ii(i);return s}function xt(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&pt(t,"start",r)));break;case"done":r.onDone(()=>n(t&&pt(t,"done",r)));break;case"destroy":r.onDestroy(()=>n(t&&pt(t,"destroy",r)));break}}function pt(r,e,t){let n=t.totalTime,i=!!t.disabled,s=zt(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function zt(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function j(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function Cn(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var Vi=typeof document>"u"?null:document.documentElement;function Bt(r){let e=r.parentNode||r.host||null;return e===Vi?null:e}function Qi(r){return r.substring(1,6)=="ebkit"}var de=null,kn=!1;function $i(r){de||(de=Wi()||{},kn=de.style?"WebkitAppearance"in de.style:!1);let e=!0;return de.style&&!Qi(r)&&(e=r in de.style,!e&&kn&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in de.style)),e}function Wi(){return typeof document<"u"?document.body:null}function qn(r,e){for(;e;){if(e===r)return!0;e=Bt(e)}return!1}function Un(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var Kt=(()=>{let e=class e{validateStyleProperty(n){return $i(n)}containsElement(n,i){return qn(n,i)}getParentElement(n){return Bt(n)}query(n,i,s){return Un(n,i,s)}computeStyle(n,i,s){return s||""}animate(n,i,s,o,a,l=[],c){return new ne(s,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})(),Vt=class Vt{};Vt.NOOP=new Kt;var pe=Vt,ge=class{};var Gi=1e3,Vn="{{",Yi="}}",Qn="ng-enter",Et="ng-leave",We="ng-trigger",Ze=".ng-trigger",On="ng-animating",bt=".ng-animating";function ee(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wt(parseFloat(e[1]),e[2])}function wt(r,e){switch(e){case"s":return r*Gi;default:return r}}function Je(r,e,t){return r.hasOwnProperty("duration")?r:Hi(r,e,t)}function Hi(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(Mn(r)),{duration:0,delay:0,easing:""};i=wt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=wt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else i=r;if(!t){let a=!1,l=e.length;i<0&&(e.push(fi()),a=!0),s<0&&(e.push(mi()),a=!0),a&&e.splice(l,0,Mn(r))}return{duration:i,delay:s,easing:o}}function Xi(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function Z(r,e,t){e.forEach((n,i)=>{let s=jt(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function me(r,e){e.forEach((t,n)=>{let i=jt(n);r.style[i]=""})}function Fe(r){return Array.isArray(r)?r.length==1?r[0]:wn(r):r}function Zi(r,e,t){let n=e.params||{},i=$n(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(pi(s))})}var Tt=new RegExp(`${Vn}\\s*(.+?)\\s*${Yi}`,"g");function $n(r){let e=[];if(typeof r=="string"){let t;for(;t=Tt.exec(r);)e.push(t[1]);Tt.lastIndex=0}return e}function Re(r,e,t){let n=`${r}`,i=n.replace(Tt,(s,o)=>{let a=e[o];return a==null&&(t.push(gi(o)),a=""),a.toString()});return i==n?r:i}var Ji=/-+([a-z0-9])/g;function jt(r){return r.replace(Ji,(...e)=>e[1].toUpperCase())}function er(r,e){return r===0||e===0}function tr(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;so.set(a,qt(r,a)))}}return e}function K(r,e,t){switch(e.type){case _.Trigger:return r.visitTrigger(e,t);case _.State:return r.visitState(e,t);case _.Transition:return r.visitTransition(e,t);case _.Sequence:return r.visitSequence(e,t);case _.Group:return r.visitGroup(e,t);case _.Animate:return r.visitAnimate(e,t);case _.Keyframes:return r.visitKeyframes(e,t);case _.Style:return r.visitStyle(e,t);case _.Reference:return r.visitReference(e,t);case _.AnimateChild:return r.visitAnimateChild(e,t);case _.AnimateRef:return r.visitAnimateRef(e,t);case _.Query:return r.visitQuery(e,t);case _.Stagger:return r.visitStagger(e,t);default:throw yi(e.type)}}function qt(r,e){return window.getComputedStyle(r)[e]}var nr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),et=class extends ge{normalizePropertyName(e,t){return jt(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(nr.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(_i(e,n))}return o+s}};var tt="*";function ir(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>rr(n,t,e)):t.push(r),t}function rr(r,e,t){if(r[0]==":"){let l=sr(r,t);if(typeof l=="function"){e.push(l);return}r=l}let n=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Oi(r)),e;let i=n[1],s=n[2],o=n[3];e.push(Dn(i,o));let a=i==tt&&o==tt;s[0]=="<"&&!a&&e.push(Dn(o,i))}function sr(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var Ge=new Set(["true","1"]),Ye=new Set(["false","0"]);function Dn(r,e){let t=Ge.has(r)||Ye.has(r),n=Ge.has(e)||Ye.has(e);return(i,s)=>{let o=r==tt||r==i,a=e==tt||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?Ge.has(r):Ye.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?Ge.has(e):Ye.has(e)),o&&a}}var Wn=":self",or=new RegExp(`s*${Wn}s*,?`,"g");function Gn(r,e,t,n){return new Pt(r).build(e,t,n)}var Nn="",Pt=class{constructor(e){this._driver=e}build(e,t,n){let i=new At(t);return this._resetContextStyleTimingState(i),K(this,Fe(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Nn,e.collectedStyles=new Map,e.collectedStyles.set(Nn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(vi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==_.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(Si())}),{type:_.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{$n(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Ei(e.name,[...s.values()]))}return{type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=K(this,Fe(e.animation),t),i=ir(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(n=>K(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=K(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:s,options:fe(e.options)}}visitAnimate(e,t){let n=ur(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:B({});if(s.type==_.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=B(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===X?n.push(a):t.errors.push(bi(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Vn)>=0){s=!0;break}}}),{type:_.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(s!=i&&s>=h.startTime&&i<=h.endTime&&(t.errors.push(wi(l,h.startTime,h.endTime,s,i)),u=!1),s=h.startTime),u&&c.set(l,{startTime:s,endTime:i}),t.options&&Zi(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ti()),n;let i=1,s=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(A=>{let M=this._makeStyleAst(A,t),F=M.offset!=null?M.offset:cr(M.styles),k=0;return F!=null&&(s++,k=M.offset=F),l=l||k<0||k>1,a=a||k0&&s{let F=v>0?M==y?1:v*M:o[M],k=F*w;t.currentTime=f+g.delay+k,g.duration=k,this._validateStyleAst(A,t),A.offset=F,n.styles.push(A)}),n}visitReference(e,t){return{type:_.Reference,animation:K(this,Fe(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=ar(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,j(t.collectedStyles,t.currentQuerySelector,new Map);let a=K(this,Fe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ci());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Je(e.timings,t.errors,!0);return{type:_.Stagger,animation:K(this,Fe(e.animation),t),timings:n,options:null}}};function ar(r){let e=!!r.split(/\s*,\s*/).find(t=>t==Wn);return e&&(r=r.replace(or,"")),r=r.replace(/@\*/g,Ze).replace(/@\w+/g,t=>Ze+"-"+t.slice(1)).replace(/:animating/g,bt),[r,e]}function lr(r){return r?je({},r):null}var At=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function cr(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ur(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=Je(r,e).duration;return gt(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=gt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=Je(t,e);return gt(i.duration,i.delay,i.easing)}function fe(r){return r?(r=je({},r),r.params&&(r.params=lr(r.params))):r={},r}function gt(r,e,t){return{duration:r,delay:e,easing:t}}function Ut(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var xe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},hr=1,dr=":enter",fr=new RegExp(dr,"g"),mr=":leave",pr=new RegExp(mr,"g");function Yn(r,e,t,n,i,s=new Map,o=new Map,a,l,c=[]){return new Mt().buildKeyframes(r,e,t,n,i,s,o,a,l,c)}var Mt=class{buildKeyframes(e,t,n,i,s,o,a,l,c,h=[]){c=c||new xe;let u=new Ct(e,t,c,i,s,h,[]);u.options=l;let v=l.delay?ee(l.delay):0;u.currentTimeline.delayNextStep(v),u.currentTimeline.setStyles([o],null,u.errors,l),K(this,n,u);let y=u.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let w=y[g];if(w.element===t){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[Ut(t,[],[],[],0,v,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:ee(Re(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ee(n.duration):null,a=n.delay!=null?ee(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),K(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=nt);let o=ee(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>K(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ee(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),K(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Re(n,t.params,t.errors):n;return Je(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==_.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?ee(i.delay):0;s&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=nt);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),K(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let v=u.currentTimeline.currentTime;o=Math.max(o,v)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;K(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}},nt={},Ct=class r{constructor(e,t,n,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new it(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=ee(n.duration)),n.delay!=null&&(i.delay=ee(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Re(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=nt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new kt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(fr,"."+this._enterClassName),e=e.replace(pr,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(ki(t)),a}},it=class r{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=hr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||X),this._currentKeyframe.set(t,X);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=gr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Re(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??X),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===$e?e.add(u):h===X&&t.add(u)}),n||c.set("offset",l/this.duration),i.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Ut(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},kt=class extends it{constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",In(a)),s.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let v=new Map(e[u]),y=v.get("offset"),f=t+y*n;v.set("offset",In(f/o)),s.push(v)}n=o,t=0,i="",e=s}return Ut(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function In(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function gr(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,X)}else for(let[s,o]of i)t.set(s,o)}),t}function Fn(r,e,t,n,i,s,o,a,l,c,h,u,v){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:v}}var yt={},rt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return yr(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,l,c,h){let u=[],v=this.ast.options&&this.ast.options.params||yt,y=a&&a.params||yt,f=this.buildStyles(n,y,u),g=l&&l.params||yt,w=this.buildStyles(i,g,u),A=new Set,M=new Map,F=new Map,k=i==="void",ye={params:Hn(g,v),delay:this.ast.options?.delay},W=h?[]:Yn(e,t,this.ast.animation,s,o,f,w,ye,c,u),L=0;return W.forEach(R=>{L=Math.max(R.duration+R.delay,L)}),u.length?Fn(t,this._triggerName,n,i,k,f,w,[],[],M,F,L,u):(W.forEach(R=>{let re=R.element,_e=j(M,re,new Set);R.preStyleProps.forEach(se=>_e.add(se));let Gt=j(F,re,new Set);R.postStyleProps.forEach(se=>Gt.add(se)),re!==t&&A.add(re)}),Fn(t,this._triggerName,n,i,k,f,w,W,[...A.values()],M,F,L))}};function yr(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function Hn(r,e){let t=je({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var Ot=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=Hn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Re(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function _r(r,e,t){return new Dt(r,e,t)}var Dt=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new Ot(i.style,s,n))}),Ln(this.states,"true","1"),Ln(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new rt(e,i,this.states))}),this.fallbackTransition=vr(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function vr(r,e,t){let n=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},s={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new rt(r,s,e)}function Ln(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var Sr=new xe,Nt=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],i=[],s=Gn(this._driver,t,n,i);if(n.length)throw Fi(n);i.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=jn(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Yn(this._driver,t,s,Qn,Et,new Map,new Map,n,Sr,i),o.forEach(h=>{let u=j(a,h.element,new Map);h.postStyleProps.forEach(v=>u.set(v,null))})):(i.push(Li()),o=[]),i.length)throw Ri(i);a.forEach((h,u)=>{h.forEach((v,y)=>{h.set(y,this._driver.computeStyle(u,y,X))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=ie(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xi(e);return t}listen(e,t,n,i){let s=zt(t,"","","");return xt(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Rn="ng-animate-queued",Er=".ng-animate-queued",_t="ng-animate-disabled",br=".ng-animate-disabled",wr="ng-star-inserted",Tr=".ng-star-inserted",Pr=[],Xn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ar={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$="__ng_removed",ze=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Cr(i),n){let s=e,{value:o}=s,a=Zt(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},Le="void",vt=new ze(Le),It=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Q(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw zi(n,t);if(n==null||n.length==0)throw Bi(t);if(!kr(n))throw Ki(n,t);let s=j(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=j(this._engine.statesByElement,e,new Map);return a.has(t)||(Q(e,We),Q(e,We+"-"+t),a.set(t,vt)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw ji(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new Be(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Q(e,We),Q(e,We+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vt),!(c.value===Le)&&l.value===c.value){if(!Nr(l.params,c.params)){let g=[],w=s.matchStyles(l.value,l.params,g),A=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{me(e,w),Z(e,A)})}return}let v=j(this._engine.playersByElement,e,[]);v.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!i)return;y=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(Q(e,Rn),o.onStart(()=>{Ae(e,Rn)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let w=this._engine.playersByElement.get(e);if(w){let A=w.indexOf(o);A>=0&&w.splice(A,1)}}),this.players.push(o),v.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Ze,!0);n.forEach(i=>{if(i[$])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,Le,i);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&ie(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||vt,h=new ze(Le),u=new Be(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[$];(!s||s===Xn)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Q(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=zt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,xt(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ft=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new It(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(He(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!He(t))return;let s=t[$];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Q(e,_t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ae(e,_t))}removeNode(e,t,n){if(He(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[$]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return He(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ze,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,bt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ie(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[$];if(t&&t.setForRemoval){if(e[$]=Xn,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(_t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,br,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?ie(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw qi(e)}_flushAnimations(e,t){let n=new xe,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,Er,!0);for(let p=0;p{let p=Qn+g++;f.set(m,p),d.forEach(S=>Q(S,p))});let w=[],A=new Set,M=new Set;for(let d=0;dA.add(S)):M.add(m))}let F=new Map,k=Bn(v,Array.from(A));k.forEach((d,m)=>{let p=Et+g++;F.set(m,p),d.forEach(S=>Q(S,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(S=>Ae(S,p))}),k.forEach((d,m)=>{let p=F.get(m);d.forEach(S=>Ae(S,p))}),w.forEach(d=>{this.processLeaveNode(d)})});let ye=[],W=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let S=p.player,C=p.element;if(ye.push(S),this.collectedEnterElements.length){let N=C[$];if(N&&N.setForMove){if(N.previousTriggersValues&&N.previousTriggersValues.has(p.triggerName)){let oe=N.previousTriggersValues.get(p.triggerName),q=this.statesByElement.get(p.element);if(q&&q.has(p.triggerName)){let Ke=q.get(p.triggerName);Ke.value=oe,q.set(p.triggerName,Ke)}}S.destroy();return}}let G=!u||!this.driver.containsElement(u,C),x=F.get(C),te=f.get(C),T=this._buildInstruction(p,n,te,x,G);if(T.errors&&T.errors.length){W.push(T);return}if(G){S.onStart(()=>me(C,T.fromStyles)),S.onDestroy(()=>Z(C,T.toStyles)),i.push(S);return}if(p.isFallbackTransition){S.onStart(()=>me(C,T.fromStyles)),S.onDestroy(()=>Z(C,T.toStyles)),i.push(S);return}let Xt=[];T.timelines.forEach(N=>{N.stretchStartingKeyframe=!0,this.disabledNodes.has(N.element)||Xt.push(N)}),T.timelines=Xt,n.append(C,T.timelines);let ri={instruction:T,player:S,element:C};o.push(ri),T.queriedElements.forEach(N=>j(a,N,[]).push(S)),T.preStyleProps.forEach((N,oe)=>{if(N.size){let q=l.get(oe);q||l.set(oe,q=new Set),N.forEach((Ke,ut)=>q.add(ut))}}),T.postStyleProps.forEach((N,oe)=>{let q=c.get(oe);q||c.set(oe,q=new Set),N.forEach((Ke,ut)=>q.add(ut))})});if(W.length){let d=[];W.forEach(m=>{d.push(Ui(m.triggerName,m.errors))}),ye.forEach(m=>m.destroy()),this.reportError(d)}let L=new Map,R=new Map;o.forEach(d=>{let m=d.element;n.has(m)&&(R.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,L))}),i.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(S=>{j(L,m,[]).push(S),S.destroy()})});let re=w.filter(d=>Kn(d,l,c)),_e=new Map;zn(_e,this.driver,M,c,X).forEach(d=>{Kn(d,l,c)&&re.push(d)});let se=new Map;y.forEach((d,m)=>{zn(se,this.driver,new Set(d),l,$e)}),re.forEach(d=>{let m=_e.get(d),p=se.get(d);_e.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let ct=[],Yt=[],Ht={};o.forEach(d=>{let{element:m,player:p,instruction:S}=d;if(n.has(m)){if(h.has(m)){p.onDestroy(()=>Z(m,S.toStyles)),p.disabled=!0,p.overrideTotalTime(S.totalTime),i.push(p);return}let C=Ht;if(R.size>1){let x=m,te=[];for(;x=x.parentNode;){let T=R.get(x);if(T){C=T;break}te.push(x)}te.forEach(T=>R.set(T,C))}let G=this._buildAnimation(p.namespaceId,S,L,s,se,_e);if(p.setRealPlayer(G),C===Ht)ct.push(p);else{let x=this.playersByElement.get(C);x&&x.length&&(p.parentPlayer=ie(x)),i.push(p)}}else me(m,S.fromStyles),p.onDestroy(()=>Z(m,S.toStyles)),Yt.push(p),h.has(m)&&i.push(p)}),Yt.forEach(d=>{let m=s.get(d.element);if(m&&m.length){let p=ie(m);d.setRealPlayer(p)}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!G.destroyed);C.length?Or(this,m,C):this.processLeaveNode(m)}return w.length=0,ct.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),ct}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Le;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==s,u=j(n,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),u.push(y)})}me(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,v=t.timelines.map(f=>{let g=f.element;h.add(g);let w=g[$];if(w&&w.removedBeforeQueried)return new ne(f.duration,f.delay);let A=g!==l,M=Dr((n.get(g)||Pr).map(L=>L.getRealPlayer())).filter(L=>{let R=L;return R.element?R.element===g:!1}),F=s.get(g),k=o.get(g),ye=jn(this._normalizer,f.keyframes,F,k),W=this._buildPlayer(f,ye,M);if(f.subTimeline&&i&&u.add(g),A){let L=new Be(e,a,g);L.setRealPlayer(W),c.push(L)}return W});c.forEach(f=>{j(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Mr(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>Q(f,On));let y=ie(v);return y.onDestroy(()=>{h.forEach(f=>Ae(f,On)),Z(l,t.toStyles)}),u.forEach(f=>{j(i,f,[]).push(y)}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ne(e.duration,e.delay)}},Be=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new ne,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>xt(e,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){j(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Mr(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function Cr(r){return r??null}function He(r){return r&&r.nodeType===1}function kr(r){return r=="start"||r=="done"}function xn(r,e){let t=r.style.display;return r.style.display=e??"none",t}function zn(r,e,t,n,i){let s=[];t.forEach(l=>s.push(xn(l)));let o=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let v=e.computeStyle(c,u,i);h.set(u,v),(!v||v.length==0)&&(c[$]=Ar,o.push(c))}),r.set(c,h)});let a=0;return t.forEach(l=>xn(l,s[a++])),o}function Bn(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function Q(r,e){r.classList?.add(e)}function Ae(r,e){r.classList?.remove(e)}function Or(r,e,t){ie(t).onDone(()=>r.processLeaveNode(e))}function Dr(r){let e=[];return Zn(r,e),e}function Zn(r,e){for(let t=0;ti.add(s)):e.set(r,n),t.delete(r),!0}var Ce=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new Ft(e.body,t,n),this._timelineEngine=new Nt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Gn(this._driver,s,l,c);if(l.length)throw Ni(i,l);c.length&&void 0,a=_r(i,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=Cn(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=Cn(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ir(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=St(e[0]),e.length>1&&(n=St(e[e.length-1]))):e instanceof Map&&(t=St(e)),t||n?new Lt(r,t,n):null}var Me=class Me{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let i=Me.initialStylesByElement.get(e);i||Me.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Z(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Z(this._element,this._initialStyles),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Me.initialStylesByElement.delete(this._element),this._startStyles&&(me(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),Z(this._element,this._initialStyles),this._state=3)}};Me.initialStylesByElement=new WeakMap;var Lt=Me;function St(r){let e=null;return r.forEach((t,n)=>{Fr(n)&&(e=e||new Map,e.set(n,t))}),e}function Fr(r){return r==="display"||r==="position"}var st=class{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:qt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ot=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return qn(e,t)}getParentElement(e){return Bt(e)}query(e,t,n){return Un(e,t,n)}computeStyle(e,t,n){return qt(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};s&&(l.easing=s);let c=new Map,h=o.filter(y=>y instanceof st);er(n,i)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=Xi(t).map(y=>new Map(y));u=tr(e,u,c);let v=Ir(e,u);return new st(e,u,l,v)}};var Xe="@",Jn="@.disabled",at=class{constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Xe&&t==Jn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Rt=class extends at{constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Xe?t.charAt(1)=="."&&t==Jn?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Xe){let i=Lr(e),s=t.slice(1),o="";return s.charAt(0)!=Xe&&([s,o]=Rr(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Lr(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Rr(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var lt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new at(n,i,this.engine,u),c.set(i,h)}return h}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Rt(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var zr=(()=>{let e=class e extends Ce{constructor(n,i,s){super(n,i,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(V(sn),V(pe),V(ge))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();function Br(){return new et}function Kr(r,e,t){return new lt(r,e,t)}var ti=[{provide:ge,useFactory:Br},{provide:Ce,useClass:zr},{provide:nn,useFactory:Kr,deps:[ln,Ce,Jt]}],ei=[{provide:pe,useFactory:()=>new ot},{provide:ht,useValue:"BrowserAnimations"},...ti],jr=[{provide:pe,useClass:Kt},{provide:ht,useValue:"NoopAnimations"},...ti],ni=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?jr:ei}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Oe({type:e}),e.\u0275inj=ke({providers:ei,imports:[Ue]});let r=e;return r})();var Qt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var $t=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var Wt=(()=>{let e=class e{constructor(n){this.router=n}canActivate(){if(localStorage.getItem("waw_user")){let n=JSON.parse(localStorage.getItem("waw_user"));return n.is&&n.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}};e.\u0275fac=function(i){return new(i||e)(V(Te))},e.\u0275prov=U({token:e,factory:e.\u0275fac});let r=e;return r})();var qr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[$t],component:bn,children:[{path:"components",canActivate:[H],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-C3V67GQQ.js").then(r=>r.ComponentsModule)},{path:"sign",canActivate:[H],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-Z3GF5ZGP.js").then(r=>r.SignModule)}]},{path:"",canActivate:[Qt],component:mt,children:[{path:"profile",canActivate:[H],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-TEWE2GD7.js").then(r=>r.ProfileModule)},{path:"articles",canActivate:[H],data:{meta:{title:"Articles"}},loadChildren:()=>import("./chunk-4BTECIWA.js").then(r=>r.ArticlesModule)},{path:"tags",canActivate:[H],data:{meta:{title:"Tags"}},loadChildren:()=>import("./chunk-YPGDCGX4.js").then(r=>r.TagsModule)},{path:"comments",canActivate:[H],data:{meta:{title:"Comments"}},loadChildren:()=>import("./chunk-ZFRH4BJ3.js").then(r=>r.CommentsModule)}]},{path:"admin",canActivate:[Wt],component:mt,children:[{path:"users",canActivate:[H],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-NO7PPEHJ.js").then(r=>r.UsersModule)},{path:"forms",canActivate:[H],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-P7NPAUAN.js").then(r=>r.CustomformsModule)},{path:"translates",canActivate:[H],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-Q3QQHINB.js").then(r=>r.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],ii=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Oe({type:e,bootstrap:[An]}),e.\u0275inj=ke({providers:[Qt,$t,Wt],imports:[vn,Sn,En,Ue,mn,ni,gn.forRoot({store:{},http:{url:ce.url},socket:ce.production,meta:{useTitleSuffix:!0,defaults:{title:"Web Art Work",titleSuffix:" | Web Art Work","og:image":"https://webart.work/api/user/cdn/waw-logo.png"}},modal:{modals:{}}}),fn.forRoot(qr,{scrollPositionRestoration:"enabled",preloadingStrategy:dn})]});let r=e;return r})();ce.production&&void 0;cn().bootstrapModule(ii).catch(r=>console.error(r)); diff --git a/docs/media/1-I5WRTGCC.woff2 b/docs/media/1-I5WRTGCC.woff2 deleted file mode 100644 index a8fc845..0000000 Binary files a/docs/media/1-I5WRTGCC.woff2 and /dev/null differ diff --git a/docs/media/2-SO44HAFF.woff2 b/docs/media/2-SO44HAFF.woff2 deleted file mode 100644 index bd4e3bd..0000000 Binary files a/docs/media/2-SO44HAFF.woff2 and /dev/null differ diff --git a/docs/media/3-O3LXZE7D.woff2 b/docs/media/3-O3LXZE7D.woff2 deleted file mode 100644 index d7c16dc..0000000 Binary files a/docs/media/3-O3LXZE7D.woff2 and /dev/null differ diff --git a/docs/media/4-BAXDZN46.woff2 b/docs/media/4-BAXDZN46.woff2 deleted file mode 100644 index fd7e21b..0000000 Binary files a/docs/media/4-BAXDZN46.woff2 and /dev/null differ diff --git a/docs/media/5-F4YEHKRH.woff2 b/docs/media/5-F4YEHKRH.woff2 deleted file mode 100644 index 295b9f0..0000000 Binary files a/docs/media/5-F4YEHKRH.woff2 and /dev/null differ diff --git a/docs/polyfills-AXUTU6D7.js b/docs/polyfills-AXUTU6D7.js deleted file mode 100644 index 5ad99ce..0000000 --- a/docs/polyfills-AXUTU6D7.js +++ /dev/null @@ -1,2 +0,0 @@ -var ce=globalThis;function ee(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function dt(){let t=ce.performance;function r(M){t&&t.mark&&t.mark(M)}function i(M,_){t&&t.measure&&t.measure(M,_)}r("Zone");let n=(()=>{let _=class _{static assertZonePatched(){if(ce.Promise!==L.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=_.current;for(;e.parent;)e=e.parent;return e}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(e,d,O=!1){if(L.hasOwnProperty(e)){let N=ce[ee("forceDuplicateZoneCheck")]===!0;if(!O&&N)throw Error("Already loaded patch: "+e)}else if(!ce["__Zone_disable_"+e]){let N="Zone:"+e;r(N),L[e]=d(ce,_,w),i(N,N)}}get parent(){return this._parent}get name(){return this._name}constructor(e,d){this._parent=e,this._name=d?d.name||"unnamed":"",this._properties=d&&d.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,d)}get(e){let d=this.getZoneWith(e);if(d)return d._properties[e]}getZoneWith(e){let d=this;for(;d;){if(d._properties.hasOwnProperty(e))return d;d=d._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,d){if(typeof e!="function")throw new Error("Expecting function got: "+e);let O=this._zoneDelegate.intercept(this,e,d),N=this;return function(){return N.runGuarded(O,this,arguments,d)}}run(e,d,O,N){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,e,d,O,N)}finally{b=b.parent}}runGuarded(e,d=null,O,N){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,e,d,O,N)}catch(D){if(this._zoneDelegate.handleError(this,D))throw D}}finally{b=b.parent}}runTask(e,d,O){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");let N=e,{type:D,data:{isPeriodic:_e=!1,isRefreshable:ae=!1}={}}=e;if(e.state===X&&(D===W||D===y))return;let ne=e.state!=H;ne&&N._transitionTo(H,h);let Ee=S;S=N,b={parent:b,zone:this};try{D==y&&e.data&&!_e&&!ae&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,N,d,O)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{let l=e.state;if(l!==X&&l!==Y)if(D==W||_e||ae&&l===k)ne&&N._transitionTo(h,H,k);else{let a=N._zoneDelegates;this._updateTaskCount(N,-1),ne&&N._transitionTo(X,H,X),ae&&(N._zoneDelegates=a)}b=b.parent,S=Ee}}scheduleTask(e){if(e.zone&&e.zone!==this){let O=this;for(;O;){if(O===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);O=O.parent}}e._transitionTo(k,X);let d=[];e._zoneDelegates=d,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(O){throw e._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,O),O}return e._zoneDelegates===d&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(h,k),e}scheduleMicroTask(e,d,O,N){return this.scheduleTask(new T(F,e,d,O,N,void 0))}scheduleMacroTask(e,d,O,N,D){return this.scheduleTask(new T(y,e,d,O,N,D))}scheduleEventTask(e,d,O,N,D){return this.scheduleTask(new T(W,e,d,O,N,D))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(!(e.state!==h&&e.state!==H)){e._transitionTo(G,h,H);try{this._zoneDelegate.cancelTask(this,e)}catch(d){throw e._transitionTo(Y,G),this._zoneDelegate.handleError(this,d),d}return this._updateTaskCount(e,-1),e._transitionTo(X,G),e.runCount=-1,e}}_updateTaskCount(e,d){let O=e._zoneDelegates;d==-1&&(e._zoneDelegates=null);for(let N=0;NM.hasTask(c,e),onScheduleTask:(M,_,c,e)=>M.scheduleTask(c,e),onInvokeTask:(M,_,c,e,d,O)=>M.invokeTask(c,e,d,O),onCancelTask:(M,_,c,e)=>M.cancelTask(c,e)};class f{get zone(){return this._zone}constructor(_,c,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=c,this._forkZS=e&&(e&&e.onFork?e:c._forkZS),this._forkDlgt=e&&(e.onFork?c:c._forkDlgt),this._forkCurrZone=e&&(e.onFork?this._zone:c._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:c._interceptZS),this._interceptDlgt=e&&(e.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:c._invokeZS),this._invokeDlgt=e&&(e.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:c._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:c._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:c._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:c._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let d=e&&e.onHasTask,O=c&&c._hasTaskZS;(d||O)&&(this._hasTaskZS=d?e:s,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,e.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),e.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),e.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(_,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,c):new n(_,c)}intercept(_,c,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,c,e):c}invoke(_,c,e,d,O){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,c,e,d,O):c.apply(e,d)}handleError(_,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,c):!0}scheduleTask(_,c){let e=c;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,c),e||(e=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==F)z(c);else throw new Error("Task is missing scheduleFn.");return e}invokeTask(_,c,e,d){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,c,e,d):c.callback.apply(e,d)}cancelTask(_,c){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");e=c.cancelFn(c)}return e}hasTask(_,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,c)}catch(e){this.handleError(_,e)}}_updateTaskCount(_,c){let e=this._taskCounts,d=e[_],O=e[_]=d+c;if(O<0)throw new Error("More tasks executed then were scheduled.");if(d==0||O==0){let N={microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:_};this.hasTask(this._zone,N)}}}class T{constructor(_,c,e,d,O,N){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=c,this.data=d,this.scheduleFn=O,this.cancelFn=N,!e)throw new Error("callback is not defined");this.callback=e;let D=this;_===W&&d&&d.useG?this.invoke=T.invokeTask:this.invoke=function(){return T.invokeTask.call(ce,D,this,arguments)}}static invokeTask(_,c,e){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,c,e)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,c,e){if(this._state===c||this._state===e)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${c}'${e?" or '"+e+"'":""}, was '${this._state}'.`)}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}}}let g=ee("setTimeout"),p=ee("Promise"),C=ee("then"),E=[],P=!1,j;function V(M){if(j||ce[p]&&(j=ce[p].resolve(0)),j){let _=j[C];_||(_=j.then),_.call(j,M)}else ce[g](M,0)}function z(M){Q===0&&E.length===0&&V(J),M&&E.push(M)}function J(){if(!P){for(P=!0;E.length;){let M=E;E=[];for(let _=0;_b,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:z,showUncaughtError:()=>!n[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:V},b={parent:null,zone:new n(null,null)},S=null,Q=0;function q(){}return i("Zone","Zone"),n}function _t(){let t=globalThis,r=t[ee("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(r||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=dt(),t.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),le="true",ue="false",Pe=ee("");function Ve(t,r){return Zone.current.wrap(t,r)}function Ge(t,r,i,n,s){return Zone.current.scheduleMacroTask(t,r,i,n,s)}var x=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(t,r){for(let i=t.length-1;i>=0;i--)typeof t[i]=="function"&&(t[i]=Ve(t[i],r+"_"+i));return t}function yt(t,r){let i=t.constructor.name;for(let n=0;n{let p=function(){return g.apply(this,Fe(arguments,i+"."+s))};return he(p,g),p})(f)}}}function tt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=x("enable_beforeunload"),Ye=function(t){if(t=t||$.event,!t)return;let r=Ce[t.type];r||(r=Ce[t.type]=x("ON_PROPERTY"+t.type));let i=this||t.target||$,n=i[r],s;if(Be&&i===pe&&t.type==="error"){let f=t;s=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),s===!0&&t.preventDefault()}else s=n&&n.apply(this,arguments),t.type==="beforeunload"&&$[mt]&&typeof s=="string"?t.returnValue=s:s!=null&&!s&&t.preventDefault();return s};function $e(t,r,i){let n=be(t,r);if(!n&&i&&be(i,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let s=x("on"+r+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete n.writable,delete n.value;let f=n.get,T=n.set,g=r.slice(2),p=Ce[g];p||(p=Ce[g]=x("ON_PROPERTY"+g)),n.set=function(C){let E=this;if(!E&&t===$&&(E=$),!E)return;typeof E[p]=="function"&&E.removeEventListener(g,Ye),T&&T.call(E,null),E[p]=C,typeof C=="function"&&E.addEventListener(g,Ye,!1)},n.get=function(){let C=this;if(!C&&t===$&&(C=$),!C)return null;let E=C[p];if(E)return E;if(f){let P=f.call(this);if(P)return n.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(r),P}return null},Ae(t,r,n),t[s]=!0}function ot(t,r,i){if(r)for(let n=0;nfunction(T,g){let p=i(T,g);return p.cbIdx>=0&&typeof g[p.cbIdx]=="function"?Ge(p.name,g[p.cbIdx],p,s):f.apply(T,g)})}function he(t,r){t[x("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let t=pe.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let t=pe.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(t){return typeof t=="function"}function Qe(t){return typeof t=="number"}var me=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=x("propagationStopped");function at(t,r){let i=(r?r(t):t)+ue,n=(r?r(t):t)+le,s=Pe+i,f=Pe+n;te[t]={},te[t][ue]=s,te[t][le]=f}function Pt(t,r,i,n){let s=n&&n.add||He,f=n&&n.rm||xe,T=n&&n.listeners||"eventListeners",g=n&&n.rmAll||"removeAllListeners",p=x(s),C="."+s+":",E="prependListener",P="."+E+":",j=function(k,h,H){if(k.isRemoved)return;let G=k.callback;typeof G=="object"&&G.handleEvent&&(k.callback=y=>G.handleEvent(y),k.originalDelegate=G);let Y;try{k.invoke(k,h,[H])}catch(y){Y=y}let F=k.options;if(F&&typeof F=="object"&&F.once){let y=k.originalDelegate?k.originalDelegate:k.callback;h[f].call(h,H.type,y,F)}return Y};function V(k,h,H){if(h=h||t.event,!h)return;let G=k||h.target||t,Y=G[te[h.type][H?le:ue]];if(Y){let F=[];if(Y.length===1){let y=j(Y[0],G,h);y&&F.push(y)}else{let y=Y.slice();for(let W=0;W{throw W})}}}let z=function(k){return V(this,k,!1)},J=function(k){return V(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&h.useG!==void 0&&(H=h.useG);let G=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let F=!1;h&&h.rt!==void 0&&(F=h.rt);let y=k;for(;y&&!y.hasOwnProperty(s);)y=je(y);if(!y&&k[s]&&(y=k),!y||y[p])return!1;let W=h&&h.eventNameToString,L={},w=y[p]=y[s],b=y[x(f)]=y[f],S=y[x(T)]=y[T],Q=y[x(g)]=y[g],q;h&&h.prepend&&(q=y[x(h.prepend)]=y[h.prepend]);function M(o,u){return!me&&typeof o=="object"&&o?!!o.capture:!me||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let _=function(o){if(!L.isExisting)return w.call(L.target,L.eventName,L.capture?J:z,L.options)},c=function(o){if(!o.isRemoved){let u=te[o.eventName],v;u&&(v=u[o.capture?le:ue]);let R=v&&o.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);o.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(L.target=null,ke&&(ke.taskData=null),Ue&&(L.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=Z,re.capture=Oe,re.eventName=A,U&&(re.originalDelegate=B),I?ge.unshift(re):ge.push(re),m)return Z}};return y[s]=a(w,C,N,D,F),q&&(y[E]=a(q,P,d,D,F,!0)),y[f]=function(){let o=this||t,u=arguments[0];h&&h.transferEventName&&(u=h.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(G&&!G(b,m,o,arguments))return;let I=te[u],Z;I&&(Z=I[R?le:ue]);let A=Z&&o[Z];if(A)for(let B=0;Bfunction(s,f){s[ct]=!0,n&&n.apply(s,f)})}function Rt(t,r){r.patchMethod(t,"queueMicrotask",i=>function(n,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Re=x("zoneTask");function ye(t,r,i,n){let s=null,f=null;r+=n,i+=n;let T={};function g(C){let E=C.data;E.args[0]=function(){return C.invoke.apply(this,arguments)};let P=s.apply(t,E.args);return Qe(P)?E.handleId=P:(E.handle=P,E.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:E,handleId:P}=C.data;return f.call(t,E??P)}s=fe(t,r,C=>function(E,P){if(Ke(P[0])){let j={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?P[1]||0:void 0,args:P},V=P[0];P[0]=function(){try{return V.apply(this,arguments)}finally{let{handle:H,handleId:G,isPeriodic:Y,isRefreshable:F}=j;!Y&&!F&&(G?delete T[G]:H&&(H[Re]=null))}};let z=Ge(r,P[0],j,g,p);if(!z)return z;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=z.data;if(J)T[J]=z;else if(K&&(K[Re]=z,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:H,state:G}=z;return G==="notScheduled"?(z._state="scheduled",H._updateTaskCount(z,1)):G==="running"&&(z._state="scheduling"),h.call(this)}}return K??J??z}else return C.apply(t,P)}),f=fe(t,i,C=>function(E,P){let j=P[0],V;Qe(j)?(V=T[j],delete T[j]):(V=j?.[Re],V?j[Re]=null:V=j),V?.type?V.cancelFn&&V.zone.cancelTask(V):C.apply(t,P)})}function Ct(t,r){let{isBrowser:i,isMix:n}=r.getGlobalObjects();if(!i&&!n||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,t.customElements,"customElements","define",s)}function Dt(t,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:i,zoneSymbolEventNames:n,TRUE_STR:s,FALSE_STR:f,ZONE_SYMBOL_PREFIX:T}=r.getGlobalObjects();for(let p=0;pf.target===t);if(!n||n.length===0)return r;let s=n[0].ignoreProperties;return r.filter(f=>s.indexOf(f)===-1)}function et(t,r,i,n){if(!t)return;let s=ut(t,r,i);ot(t,s,n)}function Ze(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(t,r){if(Se&&!rt||Zone[t.symbol("patchEvents")])return;let i=r.__Zone_ignore_on_properties,n=[];if(Be){let s=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:s,ignoreProperties:["error"]}]:[];et(s,Ze(s),i&&i.concat(f),je(s))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{let i=r[t.__symbol__("legacyPatch")];i&&i()}),t.__load_patch("timers",r=>{let i="set",n="clear";ye(r,i,n,"Timeout"),ye(r,i,n,"Interval"),ye(r,i,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,i)=>{let n=["alert","prompt","confirm"];for(let s=0;sfunction(C,E){return i.current.run(T,r,E,p)})}}),t.__load_patch("EventTarget",(r,i,n)=>{St(r,n),Dt(r,n);let s=r.XMLHttpRequestEventTarget;s&&s.prototype&&n.patchEventTarget(r,n,[s.prototype])}),t.__load_patch("MutationObserver",(r,i,n)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,i,n)=>{ve("IntersectionObserver")}),t.__load_patch("FileReader",(r,i,n)=>{ve("FileReader")}),t.__load_patch("on_property",(r,i,n)=>{Ot(n,r)}),t.__load_patch("customElements",(r,i,n)=>{Ct(r,n)}),t.__load_patch("XHR",(r,i)=>{C(r);let n=x("xhrTask"),s=x("xhrSync"),f=x("xhrListener"),T=x("xhrScheduled"),g=x("xhrURL"),p=x("xhrErrorBeforeScheduled");function C(E){let P=E.XMLHttpRequest;if(!P)return;let j=P.prototype;function V(w){return w[n]}let z=j[Le],J=j[Ie];if(!z){let w=E.XMLHttpRequestEventTarget;if(w){let b=w.prototype;z=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(w){let b=w.data,S=b.target;S[T]=!1,S[p]=!1;let Q=S[f];z||(z=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let q=S[f]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[T]&&w.state===X){let _=S[i.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let c=w.invoke;w.invoke=function(){let e=S[i.__symbol__("loadfalse")];for(let d=0;dfunction(w,b){return w[s]=b[2]==!1,w[g]=b[1],G.apply(w,b)}),Y="XMLHttpRequest.send",F=x("fetchTaskAborting"),y=x("fetchTaskScheduling"),W=fe(j,"send",()=>function(w,b){if(i.current[y]===!0||w[s])return W.apply(w,b);{let S={target:w,url:w[g],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,H);w&&w[p]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),L=fe(j,"abort",()=>function(w,b){let S=V(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(i.current[F]===!0)return L.apply(w,b)})}}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&yt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,i)=>{function n(s){return function(f){lt(r,s).forEach(g=>{let p=r.PromiseRejectionEvent;if(p){let C=new p(s,{promise:f.promise,reason:f.rejection});g.invoke(C)}})}}r.PromiseRejectionEvent&&(i[x("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),i[x("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,i,n)=>{Rt(r,n)})}function Lt(t){t.__load_patch("ZoneAwarePromise",(r,i,n)=>{let s=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function T(l){if(l&&l.toString===Object.prototype.toString){let a=l.constructor&&l.constructor.name;return(a||"")+": "+JSON.stringify(l)}return l?l.toString():Object.prototype.toString.call(l)}let g=n.symbol,p=[],C=r[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,E=g("Promise"),P=g("then"),j="__creationTrace__";n.onUnhandledError=l=>{if(n.showUncaughtError()){let a=l&&l.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(l)}},n.microtaskDrainDone=()=>{for(;p.length;){let l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(a){z(a)}}};let V=g("unhandledPromiseRejectionHandler");function z(l){n.onUnhandledError(l);try{let a=i[V];typeof a=="function"&&a.call(this,l)}catch{}}function J(l){return l&&l.then}function K(l){return l}function X(l){return D.reject(l)}let k=g("state"),h=g("value"),H=g("finally"),G=g("parentPromiseValue"),Y=g("parentPromiseState"),F="Promise.then",y=null,W=!0,L=!1,w=0;function b(l,a){return o=>{try{M(l,a,o)}catch(u){M(l,!1,u)}}}let S=function(){let l=!1;return function(o){return function(){l||(l=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",q=g("currentTaskTrace");function M(l,a,o){let u=S();if(l===o)throw new TypeError(Q);if(l[k]===y){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(R){return u(()=>{M(l,!1,R)})(),l}if(a!==L&&o instanceof D&&o.hasOwnProperty(k)&&o.hasOwnProperty(h)&&o[k]!==y)c(o),M(l,o[k],o[h]);else if(a!==L&&typeof v=="function")try{v.call(o,u(b(l,a)),u(b(l,!1)))}catch(R){u(()=>{M(l,!1,R)})()}else{l[k]=a;let R=l[h];if(l[h]=o,l[H]===H&&a===W&&(l[k]=l[Y],l[h]=l[G]),a===L&&o instanceof Error){let m=i.currentTask&&i.currentTask.data&&i.currentTask.data[j];m&&f(o,q,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let I=l[h],Z=!!o&&H===o[H];Z&&(o[G]=I,o[Y]=R);let A=a.run(m,void 0,Z&&m!==X&&m!==K?[]:[I]);M(o,!0,A)}catch(I){M(o,!1,I)}},o)}let d="function ZoneAwarePromise() { [native code] }",O=function(){},N=r.AggregateError;class D{static toString(){return d}static resolve(a){return a instanceof D?a:M(new this(null),W,a)}static reject(a){return M(new this(null),L,a)}static withResolvers(){let a={};return a.promise=new D((o,u)=>{a.resolve=o,a.reject=u}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new N([],"All promises were rejected"));let o=[],u=0;try{for(let m of a)u++,o.push(D.resolve(m))}catch{return Promise.reject(new N([],"All promises were rejected"))}if(u===0)return Promise.reject(new N([],"All promises were rejected"));let v=!1,R=[];return new D((m,I)=>{for(let Z=0;Z{v||(v=!0,m(A))},A=>{R.push(A),u--,u===0&&(v=!0,I(new N(R,"All promises were rejected")))})})}static race(a){let o,u,v=new this((I,Z)=>{o=I,u=Z});function R(I){o(I)}function m(I){u(I)}for(let I of a)J(I)||(I=this.resolve(I)),I.then(R,m);return v}static all(a){return D.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof D?this:D).allWithCallback(a,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(a,o){let u,v,R=new this((A,B)=>{u=A,v=B}),m=2,I=0,Z=[];for(let A of a){J(A)||(A=this.resolve(A));let B=I;try{A.then(U=>{Z[B]=o?o.thenCallback(U):U,m--,m===0&&u(Z)},U=>{o?(Z[B]=o.errorCallback(U),m--,m===0&&u(Z)):v(U)})}catch(U){v(U)}m++,I++}return m-=2,m===0&&u(Z),R}constructor(a){let o=this;if(!(o instanceof D))throw new Error("Must be an instanceof Promise.");o[k]=y,o[h]=[];try{let u=S();a&&a(u(b(o,W)),u(b(o,L)))}catch(u){M(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(a,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||D);let v=new u(O),R=i.current;return this[k]==y?this[h].push(R,v,a,o):e(this,R,v,a,o),v}catch(a){return this.then(null,a)}finally(a){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=D);let u=new o(O);u[H]=H;let v=i.current;return this[k]==y?this[h].push(v,u,a,a):e(this,v,u,a,a),u}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;let _e=r[E]=r.Promise;r.Promise=D;let ae=g("thenPatched");function ne(l){let a=l.prototype,o=s(a,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=a.then;a[P]=u,l.prototype.then=function(v,R){return new D((I,Z)=>{u.call(this,I,Z)}).then(v,R)},l[ae]=!0}n.patchThen=ne;function Ee(l){return function(a,o){let u=l.apply(a,o);if(u instanceof D)return u;let v=u.constructor;return v[ae]||ne(v),u}}return _e&&(ne(_e),fe(r,"fetch",l=>Ee(l))),Promise[i.__symbol__("uncaughtPromiseErrors")]=p,D})}function It(t){t.__load_patch("toString",r=>{let i=Function.prototype.toString,n=x("OriginalDelegate"),s=x("Promise"),f=x("Error"),T=function(){if(typeof this=="function"){let E=this[n];if(E)return typeof E=="function"?i.call(E):Object.prototype.toString.call(E);if(this===Promise){let P=r[s];if(P)return i.call(P)}if(this===Error){let P=r[f];if(P)return i.call(P)}}return i.call(this)};T[n]=i,Function.prototype.toString=T;let g=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:g.call(this)}})}function Mt(t,r,i,n,s){let f=Zone.__symbol__(n);if(r[f])return;let T=r[f]=r[n];r[n]=function(g,p,C){return p&&p.prototype&&s.forEach(function(E){let P=`${i}.${n}::`+E,j=p.prototype;try{if(j.hasOwnProperty(E)){let V=t.ObjectGetOwnPropertyDescriptor(j,E);V&&V.value?(V.value=t.wrapWithCurrentZone(V.value,P),t._redefineProperty(p.prototype,E,V)):j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}else j[E]&&(j[E]=t.wrapWithCurrentZone(j[E],P))}catch{}}),T.call(r,g,p,C)},t.attachOriginToPatched(r[n],T)}function Zt(t){t.__load_patch("util",(r,i,n)=>{let s=Ze(r);n.patchOnProperties=ot,n.patchMethod=fe,n.bindArguments=Fe,n.patchMacroTask=pt;let f=i.__symbol__("BLACK_LISTED_EVENTS"),T=i.__symbol__("UNPATCHED_EVENTS");r[T]&&(r[f]=r[T]),r[f]&&(i[f]=i[T]=r[f]),n.patchEventPrototype=wt,n.patchEventTarget=Pt,n.isIEOrEdge=vt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=Et,n.ArraySlice=Tt,n.patchClass=ve,n.wrapWithCurrentZone=Ve,n.filterProperties=ut,n.attachOriginToPatched=he,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Mt,n.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:s,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:le,FALSE_STR:ue,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(t){Lt(t),It(t),Zt(t)}var ft=_t();At(ft);Nt(ft);window.global=window; diff --git a/docs/styles-P2IVOYYR.css b/docs/styles-P2IVOYYR.css deleted file mode 100644 index 33fa5d5..0000000 --- a/docs/styles-P2IVOYYR.css +++ /dev/null @@ -1 +0,0 @@ -html,*,*:before,*:after{box-sizing:border-box}html{line-height:1.15;-webkit-text-size-adjust:100%}*{outline:0}html,body{margin:0;padding:0}main{display:block}h1{font-size:2em;margin:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}img{max-width:100%;display:inline-block;vertical-align:top}a{text-decoration:none}@font-face{font-family:Poppins;src:url("./media/1-I5WRTGCC.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/2-SO44HAFF.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/3-O3LXZE7D.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/4-BAXDZN46.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url("./media/5-F4YEHKRH.woff2") format("woff2")}.material-icons,i{font-family:Material Icons;font-weight:400;font-style:normal;font-size:26px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}html{font-size:16px;overflow:hidden;height:100%}body{font-family:Poppins,sans-serif;color:var(--c-text-primary);line-height:1.4;position:relative;overflow:hidden;height:100%;display:flex;flex-direction:column}.container{margin-left:auto;margin-right:auto;padding:10px;max-width:100%;width:100%}.container-box{display:flex;align-items:center}.container-box .w-input__checkbox{margin-right:5px}.showTable{padding:20px 20px 0!important}*::-webkit-scrollbar-track{box-shadow:inset 0 0 6px var(--c-shadow);background-color:#fff;display:none}*::-webkit-scrollbar{width:5px;height:5px;background-color:#fff}* ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px var(--c-basic);background-color:var(--c-basic)}@keyframes iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text .text-block{width:99%}.alert-text .text-block__text{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold{font-weight:700}.waw-alert__progress{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress:hover span{animation-play-state:paused}.waw-alert__progress span{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress span._red{background-color:#ffafb4}.waw-alert__progress span._green{background-color:#a6efb8}.waw-alert__progress span._yellow{background-color:#fff9b2}.waw-alert__progress span._orange,.waw-alert__progress span._blue{background-color:#ffcfa5}.waw-alert__progress span._white{background-color:#fff}.waw-alert__progress span._black{background-color:#000}.waw-alert:hover .waw-alert__progress>span{animation-play-state:paused}.waw-alert__close{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close:hover{opacity:1}.waw-alert__close:before,.waw-alert__close:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close:before{transform:rotate(45deg)}.waw-alert__close:after{transform:rotate(-45deg)}@keyframes waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close{opacity:0;transition:.3s all ease-in-out}.waw-alert{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert>.waw-alert-progressbar{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert>.waw-alert-progressbar>div{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert>.waw-alert-close{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert>.waw-alert-close:hover{opacity:1}.waw-alert>.waw-alert-body{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body:after{content:"";display:table;clear:both}.waw-alert>.waw-alert-body .waw-alert-texts{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body .waw-alert-icon{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert>.waw-alert-body .waw-alert-title{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert>.waw-alert-body .waw-alert-message{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper{padding:10px 15px}.waw-alert{margin:5px;border-radius:3px;width:auto}.waw-alert:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert:not(.waw-alert-rtl) .waw-alert-cover{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl .waw-alert-cover{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon .waw-alert-progressbar{background:transparent}.waw-alert.waw-alert-balloon:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target .waw-alert:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark .waw-alert-title{color:#fff}.waw-alert.waw-alert-theme-dark .waw-alert-message{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark .waw-alert-icon{color:#fff}.waw-alert.waw-alert-color-red{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn,.waw-alert .slideIn{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft{-webkit-animation:iziT-bounceInLeft .7s ease-in-out both;animation:iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown{-webkit-animation:iziT-bounceInDown .7s ease-in-out both;animation:iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp{-webkit-animation:iziT-bounceInUp .7s ease-in-out both;animation:iziT-bounceInUp .7s ease-in-out both}.height{height:auto!important}.w-btn{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary{background-color:var(--c-primary)}.w-btn._primary:hover{background-color:var(--c-primary-hover)}.w-btn._second{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger{background-color:var(--c-secondary);color:#fff}.w-btn._danger:hover{background:var(--c-secondary-hover)}.w-btn._link{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link:hover{color:var(--c-text-secondary)}.w-btn:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn:disabled:hover{background-color:var(--c-grey-dark)}.w-switch{display:flex;align-items:center;cursor:pointer}.w-switch__toggle{position:relative;width:45px;height:25px}.w-switch__input{display:none}.w-switch__input:checked+.w-switch__slider{background-color:var(--c-primary);border:1px solid var(--c-primary)}.w-switch__input:focus+.w-switch__slider{box-shadow:0 0 1px var(--c-shadow)}.w-switch__input:checked+.w-switch__slider:before{transform:translate(15px,-50%);background-color:#fff}.w-switch__slider{position:absolute;inset:0;background-color:#e7e7e7;border:1px solid var(--c-border);outline:none;transition:.3s all ease-in-out}.w-switch__slider:before{position:absolute;content:"";height:16px;width:16px;left:6px;top:50%;transform:translateY(-50%);background-color:#fff;transition:.3s all ease-in-out}.w-switch__slider._round{border-radius:34px}.w-switch__slider._round:before{border-radius:50%}.w-switch__text{margin-left:10px;font-size:14px;line-height:14px;letter-spacing:.3px;color:var(--c-text)}.form-container{margin-bottom:15px}.w-forms{position:relative;display:flex;flex-direction:column;width:100%;gap:10px}.w-forms__title{display:inline-block;color:var(--c-text-primary);font-size:19px;line-height:18px;letter-spacing:.3px;font-weight:500;margin-bottom:15px}.w-forms__component label{padding:0!important}.w-forms__input,.w-forms__textarea,.w-forms__select{height:42px;background-color:transparent;border:1px solid var(--c-border);border-radius:8px;color:var(--c-text-secondary);font-size:14px;line-height:20px;transition:.3s all ease-in-out;width:100%;display:block;letter-spacing:.3px;padding:10px}.w-forms__input::placeholder,.w-forms__textarea::placeholder,.w-forms__select::placeholder{color:var(--c-placeholder);transition:.3s all ease-in-out}.w-forms__input:focus,.w-forms__textarea:focus,.w-forms__select:focus{transition:.3s all ease-in-out;border-color:var(--c-primary)}.w-forms__input:disabled,.w-forms__textarea:disabled,.w-forms__select:disabled{background-color:#e7e7e7;border-color:#e7e7e7;color:#e7e7e7;cursor:default;opacity:.6}.w-forms__input[type=time]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__select{appearance:none;padding-right:30px}.w-forms__chevron{position:absolute;top:30px;right:12px}.w-forms__chevron:before{color:var(--c-primary)}.w-forms__textarea{min-height:80px;resize:vertical;max-height:250px;margin-top:10px}.w-card{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px)}.w-card__header{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.w-card__body{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section:last-child{border-bottom:none}.w-card__footer{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}.w-checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;color:var(--c-text-primary);cursor:pointer;padding:6px 8px;border-radius:6px;overflow:hidden;transition:.3s all ease-in-out}.w-checkbox__body:not(:last-child){margin-right:6px}.w-checkbox__body:hover{background:rgba(var(--c-primary),.09)}.w-checkbox__body:hover .w-checkbox__svg{border-color:var(--c-primary)}@media (max-width: 991.9px){.w-checkbox__body{width:100%;margin-bottom:4px;display:inline-block}}.w-checkbox__input{display:none}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg{background:var(--c-primary);border-color:var(--c-primary);animation:wave .4s ease}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg svg{stroke-dashoffset:0}.w-checkbox__svg{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:.3s all ease-in-out;box-shadow:0 1px 1px var(--c-shadow)}.w-checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-checkbox__text{padding-left:8px;line-height:18px}.w-checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}.w-radio{position:relative;display:flex;align-items:center;cursor:pointer;line-height:20px;font-size:16px;margin:5px 0}.w-radio:hover .w-radio__label:after{transform:scale(3.6)}.w-radio__label{position:relative;display:block;float:left;margin-right:10px;width:20px;height:20px;border:2px solid var(--c-border);border-radius:100%;min-width:20px}.w-radio__label:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:100%;background:var(--c-primary);transform:scale(0);transition:.3s all ease-in-out;opacity:.08;pointer-events:none}.w-radio__input{display:none}.w-radio__input:checked+.w-radio__label{border-color:var(--c-primary)}.w-radio__input:checked+.w-radio__label:after{transform:scale(1);transition:all .2s cubic-bezier(.35,.9,.4,.9);opacity:1}.wtable{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable{padding-bottom:50px}}.wtable .table{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable .table-plus-btn{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-white);border:1px solid var(--c-primary)}.wtable .table-plus-btn:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable .table-plus-btn span{margin-left:5px}@media screen and (max-width: 599px){.wtable .table-plus-btn span{display:none}}@media screen and (max-width: 599px){.wtable .table-plus-btn{position:absolute;right:0;min-width:auto;font-size:28px}}.wtable .table-search{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable .table-search--active .table-search__input{opacity:1}.wtable .table-search__input{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable .table-search__input:focus{border:2px solid var(--c-primary)}.wtable .table-search__icon{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable .table-search__icon-mobile{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable .table-search{display:none}.wtable .table-search.table-search--active{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable .table-search.table-search--active+.table-plus-btn{display:none}.wtable .table-search.table-search--active+.w-forms__title{display:none}.wtable .table-search__icon-mobile{display:inherit}}.wtable .table .table-header__sort{position:relative;cursor:pointer}.wtable .table .table-header__sort .icon-arrow{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable .table th{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable .table th .icon-arrow{opacity:0;transition:.3s all ease-in-out}.wtable .table th:hover .icon-arrow{opacity:1;transition:.3s all ease-in-out}.wtable .table th .table-header__sort._sortActiveDown .icon-arrow{transform:rotate(-90deg);opacity:1}.wtable .table th .table-header__sort._sortActiveUp .icon-arrow{opacity:1}@media all and (max-width: 991.9px){.wtable .table th{display:none;text-align:left}}.wtable .table th:last-child{width:140px}.wtable .table td{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable .table td{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable .table td:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable .table td:before{display:none}}.wtable .table tr:last-child td{border-bottom:none}@media (max-width: 991.9px){.wtable .table tr:last-child td{border-bottom:2px solid var(--c-border)}}.wtable .table tr td:last-child{border-right:none}@media (max-width: 992px){.wtable .table tr td:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable .table tr td:first-child{margin-top:20px}}.wtable .table tr th:last-child{border-right:none}.wtable .table .table__actions{display:flex;gap:6px}.wtable .table .table__actions a i{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable .table .table-body__last-td{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable .table .table-body__last-td i{font-size:22px;width:22px}.wtable .table .table-body__last-td i:hover{color:var(--c-primary)}.wtable .table-footer{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable .table-footer{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable .table-footer__pagination{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable .table-footer__pagination{bottom:0;left:5px}}.wtable .table-footer__arrow{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable .table-footer__arrow .chevron{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable .table-footer__arrow .chevron:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable .table-footer__arrow .chevron:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable .table-footer__arrow:disabled i:after{border-color:#9f9f9f}.wtable .table-footer__arrow:disabled i:before{background:#9f9f9f}.wtable .table-footer__arrow._start .chevron{position:relative;left:1px}.wtable .table-footer__arrow._start .chevron:after{left:8px;top:4px}.wtable .table-footer__arrow._start .chevron:before{display:block;left:2px;content:""}.wtable .table-footer__arrow._left .chevron{position:relative;left:4px}.wtable .table-footer__arrow._left .chevron:after{top:4px}.wtable .table-footer__arrow._right .chevron:after{transform:rotate(315deg);top:4px}.wtable .table-footer__arrow._end .chevron{position:relative;left:2px}.wtable .table-footer__arrow._end .chevron:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable .table-footer__arrow._end .chevron:before{display:block;left:11px;content:""}.wtable .table-footer .item-page{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable .table-footer .item-page__dropdown{position:relative;margin:0 10px;font-weight:700}.wtable .table-footer .item-page__dropdown .caption{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable .table-footer .item-page__dropdown .caption:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable .table-footer .item-page__dropdown .list .item>div{padding:11px 20px;cursor:pointer;text-align:center}.wtable .table-footer .item-page__dropdown .list .item:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list .item.selected{font-weight:700}.wtable .table-footer .item-page__dropdown.open .caption{border-radius:0 0 4px 4px}.wtable .table-footer .item-page__dropdown.open .list{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}:host{display:block}.w-select{width:100%}.w-select__label{margin-bottom:5px}.w-select__body{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active{border-color:var(--c-primary)}.w-select__header{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;position:relative}.w-select__header svg{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header svg path{fill:var(--c-primary)}.w-select__text{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text .text-overflow{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow svg{width:12px;height:12px}.w-select__arrow svg path{fill:var(--c-text-primary)}.w-select__arrow._active{transform:rotate(180deg)}.w-select .item{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select .item:hover{background:var(--c-shadow);border-bottom:1px solid var(--c-primary);color:var(--c-primary)}.w-select__popup{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid var(--c-primary);background:var(--c-bg-secondary);color:var(--c-text-primary);padding-bottom:15px;padding-top:15px}.w-select__popup._search{padding-top:60px}.w-select__popup .popup-block{max-height:180px;overflow-y:auto;padding:0 15px;margin-right:10px}.w-select__popup .popup-block__empty-search{padding:15px;text-align:center;color:var(--c-text-primary)}.w-select__search{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search .search-input{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search .search-icon{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select *::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select * ::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--c-border)}.w-select .checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select .checkbox__body:not(:last-child){margin-right:6px}.w-select .checkbox__body:hover{background:rgba(var(--c-sky),.09)}.w-select .checkbox__body:hover .checkbox__svg{border-color:var(--c-sky)}.w-select .checkbox__input{display:none}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg{background:var(--c-sky);border-color:var(--c-sky);animation:wave .4s ease}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg svg{stroke-dashoffset:0}.w-select .checkbox__svg{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select .checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select .checkbox__text{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select .checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes wave{50%{transform:scale(.9)}}.selected{font-weight:700}:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px}html.dark:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd}#html .modal{padding:20px}#html .modal-content{background:var(--c-bg-secondary);border-radius:8px;border:1px solid var(--c-border);max-width:700px;padding-top:45px}#html .modal .close{top:-2px;right:5px;font-size:50px}#html .modal .close:hover{color:var(--c-text-secondary)}#html body._modal-small .modal-content,#html .forms_modal .modal-content{max-width:500px;width:100%}.modal{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content{position:relative;background-color:#fff;margin:15% auto;padding:40px 20px 20px;border:1px solid #888;min-width:20%;max-width:80%}@media screen and (max-width: 767px){.modal-content{max-width:100%!important}}.close{color:#aaa;position:absolute;right:10px;top:10px;font-size:32px;line-height:1}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.big .modal-content{margin-top:5%!important;margin-bottom:0!important;max-width:100%!important}.d-b{display:block!important}.d-ib{display:inline-block!important}.d-f{display:flex!important}.fd-c{flex-direction:column!important}.jc-sb{justify-content:space-between!important}.jc-fs{justify-content:flex-start!important}.jc-c{justify-content:center!important}.jc-fe{justify-content:flex-end!important}.ai-c{align-items:center!important}.ai-fe{align-items:flex-end!important}.ai-fs{align-items:flex-start!important}.ai-sb{align-items:space-between!important}.fg-1{flex-grow:1!important}.m0{margin:0!important}.mx0{margin-left:0!important;margin-right:0!important}.my0{margin-top:0!important;margin-bottom:0!important}.mt0{margin-top:0!important}.mt10{margin-top:10px!important}.mb0{margin-bottom:0!important}.mb15{margin-bottom:15px!important}.ml0{margin-left:0!important}.mr0{margin-right:0!important} diff --git a/package-lock.json b/package-lock.json index 1f98b8c..f605089 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15764,8 +15764,7 @@ "version": "18.3.1", "resolved": "https://registry.npmjs.org/@angular-eslint/builder/-/builder-18.3.1.tgz", "integrity": "sha512-cPc7Ye9zDs5M4i+feL6vob+mh7yX5vxvOS5KQIhneUrp5e9D+IGuNFMmBLlOPpmklSc9XJBtuvI5Zjuh4z1ETw==", - "dev": true, - "requires": {} + "dev": true }, "@angular-eslint/bundled-angular-compiler": { "version": "18.3.1", @@ -16365,8 +16364,7 @@ "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true, - "requires": {} + "dev": true }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", @@ -17830,8 +17828,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jsonjoy.com/base64/-/base64-1.1.2.tgz", "integrity": "sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==", - "dev": true, - "requires": {} + "dev": true }, "@jsonjoy.com/json-pack": { "version": "1.1.0", @@ -17849,8 +17846,7 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-1.5.0.tgz", "integrity": "sha512-ojoNsrIuPI9g6o8UxhraZQSyF2ByJanAY4cTFbc8Mf2AXEF4aQRGY1dJxyJpuyav8r9FGflEt/Ff3u5Nt6YMPA==", - "dev": true, - "requires": {} + "dev": true }, "@leichtgewicht/ip-codec": { "version": "2.0.5", @@ -18007,8 +18003,7 @@ "version": "18.2.8", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-18.2.8.tgz", "integrity": "sha512-sq0kI8gEen4QlM6X8XqOYy7j4B8iLCYNo+iKxatV36ts4AXH0MuVkP56+oMaoH5oZNoSqd0RlfnotEHfvJAr8A==", - "dev": true, - "requires": {} + "dev": true }, "@nodelib/fs.scandir": { "version": "2.1.5", @@ -18919,8 +18914,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.1.0.tgz", "integrity": "sha512-wO4Dk/rm8u7RNhOf95ZzcEmC9rYOncYgvq4z3duaJrCgjN8BxAnDVyndanfcJZ0O6XZzHz6Q0hTimxTg8Y9g/A==", - "dev": true, - "requires": {} + "dev": true }, "@webassemblyjs/ast": { "version": "1.12.1", @@ -19112,15 +19106,13 @@ "version": "1.9.5", "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", - "dev": true, - "requires": {} + "dev": true }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "adjust-sourcemap-loader": { "version": "4.0.0", @@ -20773,8 +20765,7 @@ "version": "8.10.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", - "dev": true, - "requires": {} + "dev": true }, "eslint-plugin-prettier": { "version": "4.2.1", @@ -21595,8 +21586,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true, - "requires": {} + "dev": true }, "ieee754": { "version": "1.2.1", @@ -22179,8 +22169,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-2.0.0.tgz", "integrity": "sha512-SB8HNNiazAHXM1vGEzf8/tSyEhkfxuDdhYdPBX2Mwgzt0OuF2gicApQ+uvXLID/gXyJQgvrM9+1/2SxZFUUDIA==", - "dev": true, - "requires": {} + "dev": true }, "karma-source-map-support": { "version": "1.4.0", @@ -22272,8 +22261,7 @@ "version": "12.2.0", "resolved": "https://registry.npmjs.org/less-loader/-/less-loader-12.2.0.tgz", "integrity": "sha512-MYUxjSQSBUQmowc0l5nPieOYwMzGPUaTzB6inNW/bdPEG9zOL3eAAD1Qw5ZxSPk7we5dMojHwNODYMV1hq4EVg==", - "dev": true, - "requires": {} + "dev": true }, "levn": { "version": "0.4.1", @@ -23850,8 +23838,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz", "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==", - "dev": true, - "requires": {} + "dev": true }, "postcss-modules-local-by-default": { "version": "4.0.5", @@ -25371,8 +25358,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} + "dev": true }, "json-schema-traverse": { "version": "0.4.1", @@ -25403,8 +25389,7 @@ "version": "1.21.0", "resolved": "https://registry.npmjs.org/thingies/-/thingies-1.21.0.tgz", "integrity": "sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g==", - "dev": true, - "requires": {} + "dev": true }, "thunky": { "version": "1.1.0", @@ -25451,8 +25436,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/tree-dump/-/tree-dump-1.0.2.tgz", "integrity": "sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ==", - "dev": true, - "requires": {} + "dev": true }, "tree-kill": { "version": "1.2.2", @@ -25464,8 +25448,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "dev": true, - "requires": {} + "dev": true }, "tslib": { "version": "2.6.3", @@ -25998,8 +25981,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} + "dev": true }, "eslint-scope": { "version": "5.1.1", @@ -26297,8 +26279,7 @@ "ws": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", - "requires": {} + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==" }, "xmlhttprequest-ssl": { "version": "2.0.0", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index c51656a..40c8b2d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -65,6 +65,16 @@ const routes: Routes = [ component: UserComponent, children: [ /* user */ + { + path: 'articles', + canActivate: [MetaGuard], + data: { + meta: { + title: 'Articles' + } + }, + loadChildren: () => import('./modules/article/pages/articles/articles.module').then(m => m.ArticlesModule) + }, { path: 'profile', canActivate: [MetaGuard], diff --git a/src/app/core/formcomponents/boolean/boolean.component.ts b/src/app/core/formcomponents/boolean/boolean.component.ts index 4a9ad44..aa58b3f 100644 --- a/src/app/core/formcomponents/boolean/boolean.component.ts +++ b/src/app/core/formcomponents/boolean/boolean.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './boolean.component.html', - styleUrl: './boolean.component.scss' + templateUrl: './boolean.component.html', + styleUrl: './boolean.component.scss', + standalone: false }) export class BooleanComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/button/button.component.ts b/src/app/core/formcomponents/button/button.component.ts index 81c964e..2963a3b 100644 --- a/src/app/core/formcomponents/button/button.component.ts +++ b/src/app/core/formcomponents/button/button.component.ts @@ -4,9 +4,10 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - selector: 'button-formcomponents', - templateUrl: './button.component.html', - styleUrls: ['./button.component.scss'] + selector: 'button-formcomponents', + templateUrl: './button.component.html', + styleUrls: ['./button.component.scss'], + standalone: false }) export class ButtonComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/date/date.component.ts b/src/app/core/formcomponents/date/date.component.ts index dff6524..371db1e 100644 --- a/src/app/core/formcomponents/date/date.component.ts +++ b/src/app/core/formcomponents/date/date.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './date.component.html', - styleUrls: ['./date.component.scss'] + templateUrl: './date.component.html', + styleUrls: ['./date.component.scss'], + standalone: false }) export class DateComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/email/email.component.ts b/src/app/core/formcomponents/email/email.component.ts index 15c7ef8..526667f 100644 --- a/src/app/core/formcomponents/email/email.component.ts +++ b/src/app/core/formcomponents/email/email.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './email.component.html', - styleUrls: ['./email.component.scss'] + templateUrl: './email.component.html', + styleUrls: ['./email.component.scss'], + standalone: false }) export class EmailComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/number/number.component.ts b/src/app/core/formcomponents/number/number.component.ts index 79e4581..cc8a9dc 100644 --- a/src/app/core/formcomponents/number/number.component.ts +++ b/src/app/core/formcomponents/number/number.component.ts @@ -3,8 +3,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './number.component.html', - styleUrls: ['./number.component.scss'] + templateUrl: './number.component.html', + styleUrls: ['./number.component.scss'], + standalone: false }) export class NumberComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/password/password.component.ts b/src/app/core/formcomponents/password/password.component.ts index 44a1954..fcebe26 100644 --- a/src/app/core/formcomponents/password/password.component.ts +++ b/src/app/core/formcomponents/password/password.component.ts @@ -3,8 +3,9 @@ import { FormService } from '../../modules/form/form.service'; import { UiService } from 'wacom'; interface Interface {} @Component({ - templateUrl: './password.component.html', - styleUrls: ['./password.component.scss'] + templateUrl: './password.component.html', + styleUrls: ['./password.component.scss'], + standalone: false }) export class PasswordComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/photo/photo.component.html b/src/app/core/formcomponents/photo/photo.component.html index d16bee2..49f2c37 100644 --- a/src/app/core/formcomponents/photo/photo.component.html +++ b/src/app/core/formcomponents/photo/photo.component.html @@ -1,10 +1,13 @@ diff --git a/src/app/core/formcomponents/photo/photo.component.ts b/src/app/core/formcomponents/photo/photo.component.ts index 4eac589..60219d9 100644 --- a/src/app/core/formcomponents/photo/photo.component.ts +++ b/src/app/core/formcomponents/photo/photo.component.ts @@ -2,8 +2,9 @@ import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './photo.component.html', - styleUrls: ['./photo.component.scss'] + templateUrl: './photo.component.html', + styleUrls: ['./photo.component.scss'], + standalone: false }) export class PhotoComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/photos/photos.component.html b/src/app/core/formcomponents/photos/photos.component.html index 75e4076..7efb9f7 100644 --- a/src/app/core/formcomponents/photos/photos.component.html +++ b/src/app/core/formcomponents/photos/photos.component.html @@ -1,11 +1,14 @@ diff --git a/src/app/core/formcomponents/photos/photos.component.ts b/src/app/core/formcomponents/photos/photos.component.ts index 243f996..53f5246 100644 --- a/src/app/core/formcomponents/photos/photos.component.ts +++ b/src/app/core/formcomponents/photos/photos.component.ts @@ -2,8 +2,9 @@ import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { FormService } from '../../modules/form/form.service'; interface Interface { } @Component({ - templateUrl: './photos.component.html', - styleUrls: ['./photos.component.scss'] + templateUrl: './photos.component.html', + styleUrls: ['./photos.component.scss'], + standalone: false }) export class PhotosComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/select/select.component.ts b/src/app/core/formcomponents/select/select.component.ts index a0a42d9..8ea509e 100644 --- a/src/app/core/formcomponents/select/select.component.ts +++ b/src/app/core/formcomponents/select/select.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './select.component.html', - styleUrls: ['./select.component.scss'] + templateUrl: './select.component.html', + styleUrls: ['./select.component.scss'], + standalone: false }) export class SelectComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/tags/tags.component.ts b/src/app/core/formcomponents/tags/tags.component.ts index 8365c7d..4d112cc 100644 --- a/src/app/core/formcomponents/tags/tags.component.ts +++ b/src/app/core/formcomponents/tags/tags.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './tags.component.html', - styleUrls: ['./tags.component.scss'] + templateUrl: './tags.component.html', + styleUrls: ['./tags.component.scss'], + standalone: false }) export class TagsComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/text/text.component.ts b/src/app/core/formcomponents/text/text.component.ts index b7693b5..aee2eda 100644 --- a/src/app/core/formcomponents/text/text.component.ts +++ b/src/app/core/formcomponents/text/text.component.ts @@ -4,8 +4,9 @@ import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './text.component.html', - styleUrls: ['./text.component.scss'] + templateUrl: './text.component.html', + styleUrls: ['./text.component.scss'], + standalone: false }) export class TextComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/formcomponents/time/time.component.ts b/src/app/core/formcomponents/time/time.component.ts index 6a783be..2014845 100644 --- a/src/app/core/formcomponents/time/time.component.ts +++ b/src/app/core/formcomponents/time/time.component.ts @@ -2,8 +2,9 @@ import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { FormService } from '../../modules/form/form.service'; interface Interface {} @Component({ - templateUrl: './time.component.html', - styleUrls: ['./time.component.scss'] + templateUrl: './time.component.html', + styleUrls: ['./time.component.scss'], + standalone: false }) export class TimeComponent implements OnInit { @ViewChild('templateRef', { static: true }) diff --git a/src/app/core/icons/spider/spider.component.ts b/src/app/core/icons/spider/spider.component.ts index a04e7e4..1b75522 100644 --- a/src/app/core/icons/spider/spider.component.ts +++ b/src/app/core/icons/spider/spider.component.ts @@ -1,9 +1,10 @@ import { Component } from '@angular/core'; @Component({ - selector: 'icon-spider', - templateUrl: './spider.component.html', - styleUrls: ['./spider.component.scss'] + selector: 'icon-spider', + templateUrl: './spider.component.html', + styleUrls: ['./spider.component.scss'], + standalone: false }) export class SpiderComponent { diff --git a/src/app/core/modules/alert/calendar.component.ts b/src/app/core/modules/alert/calendar.component.ts index f820a32..b3ddedf 100644 --- a/src/app/core/modules/alert/calendar.component.ts +++ b/src/app/core/modules/alert/calendar.component.ts @@ -9,9 +9,10 @@ import { Router } from '@angular/router'; import { CalendarDate } from './calendar.interface'; @Component({ - selector: 'wcalendar', - templateUrl: './calendar.component.html', - styleUrls: ['./calendar.component.scss'] + selector: 'wcalendar', + templateUrl: './calendar.component.html', + styleUrls: ['./calendar.component.scss'], + standalone: false }) export class CalendarComponent { @Input() eventsByDate: Record = {}; diff --git a/src/app/core/modules/button/button.component.ts b/src/app/core/modules/button/button.component.ts index 4d6afbb..12d398d 100644 --- a/src/app/core/modules/button/button.component.ts +++ b/src/app/core/modules/button/button.component.ts @@ -6,9 +6,10 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; * disabled states and custom click events. */ @Component({ - selector: 'wbutton', - templateUrl: './button.component.html', - styleUrls: ['./button.component.scss'] + selector: 'wbutton', + templateUrl: './button.component.html', + styleUrls: ['./button.component.scss'], + standalone: false }) export class ButtonComponent { /** diff --git a/src/app/core/modules/card/card.component.ts b/src/app/core/modules/card/card.component.ts index 109554d..5a968bd 100644 --- a/src/app/core/modules/card/card.component.ts +++ b/src/app/core/modules/card/card.component.ts @@ -6,9 +6,10 @@ import { Component, Input, AfterContentInit, ContentChild, ElementRef } from '@a * It supports a flexible layout with optional header and footer sections. */ @Component({ - selector: 'wcard', - templateUrl: './card.component.html', - styleUrls: ['./card.component.scss'] + selector: 'wcard', + templateUrl: './card.component.html', + styleUrls: ['./card.component.scss'], + standalone: false }) export class CardComponent implements AfterContentInit { /** diff --git a/src/app/core/modules/file/file-cropper/file-cropper.component.ts b/src/app/core/modules/file/file-cropper/file-cropper.component.ts index e511ca9..3ab830a 100644 --- a/src/app/core/modules/file/file-cropper/file-cropper.component.ts +++ b/src/app/core/modules/file/file-cropper/file-cropper.component.ts @@ -2,9 +2,10 @@ import { Component } from '@angular/core'; import { ImageCroppedEvent } from 'ngx-image-cropper'; @Component({ - selector: 'app-file-cropper', - templateUrl: './file-cropper.component.html', - styleUrl: './file-cropper.component.scss' + selector: 'app-file-cropper', + templateUrl: './file-cropper.component.html', + styleUrl: './file-cropper.component.scss', + standalone: false }) export class FileCropperComponent { close: () => void; diff --git a/src/app/core/modules/file/file.component.html b/src/app/core/modules/file/file.component.html index 05d7344..ceedcb9 100644 --- a/src/app/core/modules/file/file.component.html +++ b/src/app/core/modules/file/file.component.html @@ -3,7 +3,7 @@

{{ label }}