From d728c30662ba0a1470c301a411dcf3f33ffe1cf6 Mon Sep 17 00:00:00 2001 From: Juan Francisco Cisneros Windows Date: Wed, 9 Oct 2024 08:40:54 -0500 Subject: [PATCH] New Features: 1. Incident progess chat saves images New Pages: Bugs Corrected: To Be Corrected: 0. On product delete, delete trace results 1. On product delete, delete flamegraph result 3. On add member do not delete github info 4. Sort System Test check if needed!!! --- src/app/app.module.ts | 5 +- .../incident-details.page.html | 9 ++++ .../incident-details/incident-details.page.ts | 54 ++++++++++++++++++- www/3rdpartylicenses.txt | 5 ++ www/7907.00226646da3de0eb.js | 1 + www/7907.cfb2bc5974652bb4.js | 1 - www/index.html | 4 +- www/main.692d96bfbb3def35.js | 1 - www/main.fbf9b0eda3a2e1a7.js | 1 + ...9b75570.js => runtime.43a7948dcc9a03aa.js} | 2 +- ...f7fd7b.css => styles.34e8f377e4b17709.css} | 2 +- www/webpushr-sw.js | 2 + 12 files changed, 78 insertions(+), 9 deletions(-) create mode 100644 www/7907.00226646da3de0eb.js delete mode 100644 www/7907.cfb2bc5974652bb4.js delete mode 100644 www/main.692d96bfbb3def35.js create mode 100644 www/main.fbf9b0eda3a2e1a7.js rename www/{runtime.cbc9e54bb9b75570.js => runtime.43a7948dcc9a03aa.js} (98%) rename www/{styles.4fdec8bfc7f7fd7b.css => styles.34e8f377e4b17709.css} (88%) create mode 100644 www/webpushr-sw.js diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 774da19..300d2b5 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,6 +15,7 @@ import {NgxEchartsDirective, NgxEchartsModule, provideEcharts} from "ngx-echarts import {getVertexAI, provideVertexAI} from "@angular/fire/vertexai-preview"; import {NgxFlamegraphModule} from "ngx-flamegraph"; import {MarkdownModule} from "ngx-markdown"; +import {getStorage, provideStorage} from "@angular/fire/storage"; @NgModule({ declarations: [AppComponent], @@ -37,8 +38,10 @@ import {MarkdownModule} from "ngx-markdown"; provideFirestore(() => getFirestore()), provideAuth(() => getAuth()), provideVertexAI(() => getVertexAI()), + provideStorage(()=>getStorage()), HttpClientModule, - provideEcharts() + provideEcharts(), + ], bootstrap: [AppComponent], }) diff --git a/src/app/pages/incident_manager/incident-details/incident-details.page.html b/src/app/pages/incident_manager/incident-details/incident-details.page.html index 34af02d..45070a0 100644 --- a/src/app/pages/incident_manager/incident-details/incident-details.page.html +++ b/src/app/pages/incident_manager/incident-details/incident-details.page.html @@ -135,7 +135,11 @@ + @if (comment.comment.split('/')[0] === 'https:' || comment.comment.split('/')[0] === 'http:') { + image + }@else{

+ }
@@ -151,6 +155,11 @@
+ + Add Data + + + Save Image Add Comment
diff --git a/src/app/pages/incident_manager/incident-details/incident-details.page.ts b/src/app/pages/incident_manager/incident-details/incident-details.page.ts index a94089e..49d3702 100644 --- a/src/app/pages/incident_manager/incident-details/incident-details.page.ts +++ b/src/app/pages/incident_manager/incident-details/incident-details.page.ts @@ -1,10 +1,10 @@ -import { Component, OnInit } from '@angular/core'; +import {Component, inject, OnInit} from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; import {LoadingController} from "@ionic/angular"; import {IncidentService} from "../../../services/incident.service"; import {Incident} from "../../../interfaces/incident"; -import {User} from "../../../interfaces/user"; import {NotificationService} from "../../../services/notification.service"; +import {getDownloadURL, ref, Storage, uploadBytesResumable} from "@angular/fire/storage"; @Component({ selector: 'app-incident-details', @@ -21,6 +21,8 @@ export class IncidentDetailsPage implements OnInit { newComment: string = ''; + storage: Storage = inject(Storage) + isImageLoaded: boolean = false; constructor( private router: Router, @@ -108,10 +110,58 @@ export class IncidentDetailsPage implements OnInit { } + + + + onImageLoad() { + this.isImageLoaded = true; + } + + + + async uploadFile(input: HTMLInputElement) { + if (!input.files) return + const files: FileList = input.files; + for (let i = 0; i < files.length; i++) { + const file = files.item(i); + if (file) { + const path = `incident/${this.orgName}/${this.productObjective}/${this.productStep}/${file.name}` + // @ts-ignore + const storageRef = ref(this.storage, path) + await uploadBytesResumable(storageRef, file).then((snapshot)=>{ + //get the url + console.log('Uploaded a blob or file!', snapshot.ref.fullPath); + this.downloadFile(snapshot.ref.fullPath).then(async (data) => { + this.newComment = data; + await this.addComment() + this.isImageLoaded = false; + }); + }); + } + } + } + + async downloadFile(file: string):Promise { + let finalUrl = ''; + // @ts-ignore + await getDownloadURL(ref(this.storage, file)).then((url) => { + console.log('File available at', url); + finalUrl = url; + }); + return finalUrl; + } + + + closeIncident() { } + saveChanges() { + + } + + /** * Show a loading spinner. diff --git a/www/3rdpartylicenses.txt b/www/3rdpartylicenses.txt index 463d8bc..f07b82e 100644 --- a/www/3rdpartylicenses.txt +++ b/www/3rdpartylicenses.txt @@ -82,6 +82,9 @@ Apache-2.0 @firebase/logger Apache-2.0 +@firebase/storage +Apache-2.0 + @firebase/util Apache-2.0 @@ -355,6 +358,8 @@ firebase/auth firebase/firestore +firebase/storage + firebase/vertexai-preview idb diff --git a/www/7907.00226646da3de0eb.js b/www/7907.00226646da3de0eb.js new file mode 100644 index 0000000..ff920b6 --- /dev/null +++ b/www/7907.00226646da3de0eb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7907],{5553:(F,R,r)=>{r.d(R,{h:()=>p});var c=r(177),m=r(7863),a=r(4438);let p=(()=>{var _;class e{}return(_=e).\u0275fac=function(v){return new(v||_)},_.\u0275mod=a.$C({type:_}),_.\u0275inj=a.G2t({imports:[c.MD,m.bv]}),e})()},3241:(F,R,r)=>{r.d(R,{p:()=>p});var c=r(4438),m=r(177),a=r(7863);let p=(()=>{var _;class e{constructor(v){this.location=v,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(_=e).\u0275fac=function(v){return new(v||_)(c.rXU(m.aZ))},_.\u0275cmp=c.VBU({type:_,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(v,s){1&v&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return s.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&v&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(s.title))},dependencies:[a.eU,a.iq,a.MC,a.BC,a.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8453:(F,R,r)=>{r.d(R,{W:()=>a});var c=r(4438),m=r(7863);let a=(()=>{var p;class _{constructor(){this.title="Title"}ngOnInit(){}}return(p=_).\u0275fac=function(f){return new(f||p)},p.\u0275cmp=c.VBU({type:p,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(f,v){1&f&&(c.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),c.EFF(3),c.k0s()()()),2&f&&(c.R7$(3),c.JRh(v.title))},dependencies:[m.hU,m.ln]}),_})()},7907:(F,R,r)=>{r.r(R),r.d(R,{IncidentDetailsPageModule:()=>J});var c=r(177),m=r(4341),a=r(7863),p=r(7650),_=r(467),e=r(4438),f=r(2107),v=r(4624),s=r(7473),d=r(8453),l=r(3241);function u(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",25),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toUpperCase())}}function h(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toLocaleUpperCase())}}function C(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function I(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function E(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function D(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",25),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function b(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function T(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function j(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function O(t,g){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",25),e.EFF(2),e.k0s()()),2&t){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function k(t,g){if(1&t&&(e.j41(0,"div",12),e.nrm(1,"ion-icon",13),e.j41(2,"ion-label",8),e.EFF(3),e.k0s()()),2&t){const o=g.$implicit;e.R7$(3),e.JRh(o)}}function N(t,g){if(1&t&&(e.j41(0,"a",30),e.nrm(1,"img",33),e.k0s()),2&t){const o=e.XpG().$implicit;e.FS9("href",o.comment,e.B4B),e.R7$(),e.FS9("src",o.comment,e.B4B)}}function $(t,g){if(1&t&&e.nrm(0,"p",34),2&t){const o=e.XpG().$implicit;e.Y8G("innerHTML",o.comment,e.npT)}}function B(t,g){if(1&t&&(e.qex(0),e.j41(1,"ion-card",29)(2,"ion-card-content"),e.DNE(3,N,2,2,"a",30)(4,$,1,1),e.k0s(),e.j41(5,"ion-card-content",31)(6,"div",32),e.nrm(7,"ion-icon",13),e.j41(8,"ion-label",8),e.EFF(9),e.k0s()()()(),e.bVm()),2&t){const o=g.$implicit,i=e.XpG();e.R7$(),e.AVh("self-end",o.from===i.currentUser)("bg-gray-600",o.from===i.currentUser)("self-start",o.from!==i.currentUser)("bg-gray-800",o.from!==i.currentUser),e.R7$(2),e.vxM(3,"https:"===o.comment.split("/")[0]||"http:"===o.comment.split("/")[0]?3:4),e.R7$(6),e.JRh(o.from)}}function A(t,g){if(1&t){const o=e.RV6();e.j41(0,"ion-button",35),e.bIt("click",function(){e.eBV(o);const n=e.XpG(),y=e.sdS(82);return e.Njj(n.uploadFile(y))}),e.EFF(1,"Save Image"),e.k0s()}}function L(t,g){if(1&t){const o=e.RV6();e.j41(0,"ion-button",36),e.bIt("click",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}}function S(t,g){if(1&t){const o=e.RV6();e.j41(0,"ion-button",37),e.bIt("click",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}2&t&&e.Y8G("disabled",!0)}function w(t,g){if(1&t){const o=e.RV6();e.j41(0,"ion-col",5)(1,"ion-card",6)(2,"ion-card-title",7),e.EFF(3,"Go to Incident Postmortem"),e.k0s(),e.j41(4,"ion-card-content")(5,"p"),e.EFF(6,"Postmortem Culture: Learning from Failure. The postmortem is a retrospective of the incident, focusing on what went wrong, what can be learned, and how to prevent similar incidents in the future."),e.k0s()(),e.j41(7,"ion-card-content",22)(8,"ion-button",38),e.bIt("click",function(){e.eBV(o);const n=e.XpG();return e.Njj(n.closeIncident())}),e.EFF(9,"Incident Postmortem"),e.k0s()()()()}}const G=[{path:"",component:(()=>{var t;class g{constructor(i,n,y,M,P){this.router=i,this.activatedRoute=n,this.loadingCtrl=y,this.incidentService=M,this.notificationService=P,this.productStep="",this.productObjective="",this.orgName="",this.currentUser="",this.incident={},this.newComment="",this.storage=(0,e.WQX)(f.wc),this.isImageLoaded=!1}ngOnInit(){}ionViewWillEnter(){this.getParams()}getParams(){this.activatedRoute.params.subscribe(n=>{this.productObjective=n.productObjective,this.productStep=n.step,this.incident=JSON.parse(n.incident)});const i=JSON.parse(localStorage.getItem("user"));this.orgName=i.orgName,this.currentUser=i.name,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep),console.log(this.incident.title)}addComment(){var i=this;return(0,_.A)(function*(){if(yield i.showLoading(),console.log("add comment"),console.log(i.currentUser),console.log(i.newComment),""===i.newComment)return;i.incident.report?i.incident.report.push({comment:i.newComment.replace(/\n/g,"
"),from:i.currentUser}):i.incident.report=[{comment:i.newComment.replace(/\n/g,"
"),from:i.currentUser}],yield i.incidentService.updateIncident(i.orgName,i.productObjective,i.productStep,i.incident);let n=[];n.push({role:"Incident Commander",member:i.incident.incidentCommander}),n.push({role:"Communications Lead",member:i.incident.communications_lead}),n.push({role:"Operations Lead",member:i.incident.operations_lead});for(let y=0;y{console.log("Uploaded a blob or file!",U.ref.fullPath),n.downloadFile(U.ref.fullPath).then(function(){var V=(0,_.A)(function*(x){n.newComment=x,yield n.addComment(),n.isImageLoaded=!1});return function(x){return V.apply(this,arguments)}}())})}}})()}downloadFile(i){var n=this;return(0,_.A)(function*(){let y="";return yield(0,f.qk)((0,f.KR)(n.storage,i)).then(M=>{console.log("File available at",M),y=M}),y})()}closeIncident(){}saveChanges(){}showLoading(){var i=this;return(0,_.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,_.A)(function*(){yield i.loadingCtrl.dismiss()})()}}return(t=g).\u0275fac=function(i){return new(i||t)(e.rXU(p.Ix),e.rXU(p.nX),e.rXU(a.Xi),e.rXU(v.I),e.rXU(s.J))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-incident-details"]],decls:98,vars:27,consts:[["upload",""],["title","Incident Details"],[3,"fullscreen"],[3,"title"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5","flex","flex-col","justify-center","items-center"],[1,"text-2xl"],[1,""],["size","6","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4",1,""],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-row","justify-center","items-center"],["name","person-circle",1,"text-2xl"],[1,"p-5","flex","flex-col","justify-center","items-start"],[4,"ngFor","ngForOf"],[1,"flex","flex-row","justify-center","w-full"],["placeholder","Add a comment","type","text",1,"w-2/3",3,"ngModelChange","autoGrow","ngModel"],[3,"click","disabled"],["type","file",2,"display","none",3,"change"],["class","ion-margin","color","success","expand","block",3,"click",4,"ngIf"],["color","success",1,"w-1/3","m-5",3,"click"],[1,"flex","flex-row","justify-center","items-center","w-full"],["color","danger",1,"w-full"],["color","danger",1,"w-full",3,"disabled"],[1,"text-green-800"],[1,"text-red-800"],[1,"text-yellow-800"],[1,"text-yellow-600"],[1,"text-white"],["target","_blank",3,"href"],[1,"text-right"],[1,"flex","flex-row","justify-end","items-center"],["alt","image",1,"w-1/2",3,"src"],[1,"",3,"innerHTML"],["color","success","expand","block",1,"ion-margin",3,"click"],["color","danger",1,"w-full",3,"click"],["color","danger",1,"w-full",3,"click","disabled"],["color","primary",1,"w-full",3,"click"]],template:function(i,n){if(1&i){const y=e.RV6();e.nrm(0,"app-header-return",1),e.j41(1,"ion-content",2)(2,"ion-grid"),e.nrm(3,"app-title",3),e.j41(4,"ion-row",4)(5,"ion-col",5)(6,"ion-card",6)(7,"ion-card-title",7),e.EFF(8),e.k0s(),e.j41(9,"ion-card-content")(10,"p",8),e.EFF(11),e.k0s()()()()(),e.j41(12,"ion-row",4)(13,"ion-col",9)(14,"ion-card",6)(15,"ion-card-title",7),e.EFF(16,"Current Status"),e.k0s(),e.DNE(17,u,3,1,"ion-card-content")(18,h,3,1,"ion-card-content"),e.k0s()(),e.j41(19,"ion-col",9)(20,"ion-card",6)(21,"ion-card-title",7),e.EFF(22,"Urgency"),e.k0s(),e.DNE(23,C,3,1,"ion-card-content")(24,I,3,1,"ion-card-content")(25,E,3,1,"ion-card-content")(26,D,3,1,"ion-card-content"),e.k0s()(),e.j41(27,"ion-col",10)(28,"ion-card",6)(29,"ion-card-title",7),e.EFF(30," Organization Impact"),e.k0s(),e.DNE(31,b,3,1,"ion-card-content")(32,T,3,1,"ion-card-content")(33,j,3,1,"ion-card-content")(34,O,3,1,"ion-card-content"),e.k0s()()(),e.nrm(35,"app-title",3),e.j41(36,"ion-row",4)(37,"ion-col",11)(38,"ion-card",6)(39,"ion-card-title",7),e.EFF(40,"Incident Commander"),e.k0s(),e.j41(41,"ion-card-content")(42,"div",12),e.nrm(43,"ion-icon",13),e.j41(44,"ion-label",8),e.EFF(45),e.k0s()()()()(),e.j41(46,"ion-col",11)(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"Communications Leader"),e.k0s(),e.j41(50,"ion-card-content")(51,"div",12),e.nrm(52,"ion-icon",13),e.j41(53,"ion-label",8),e.EFF(54),e.k0s()()()()(),e.j41(55,"ion-col",5)(56,"ion-card",6)(57,"ion-card-title",7),e.EFF(58,"Operations Lead"),e.k0s(),e.j41(59,"ion-card-content")(60,"div",12),e.nrm(61,"ion-icon",13),e.j41(62,"ion-label",8),e.EFF(63),e.k0s()()(),e.nrm(64,"br"),e.j41(65,"ion-card-title",7),e.EFF(66,"Operations Team"),e.k0s(),e.j41(67,"ion-card-content"),e.Z7z(68,k,4,1,"div",12,e.fX1),e.k0s()()()(),e.nrm(70,"app-title",3),e.j41(71,"ion-row",4)(72,"ion-col",5)(73,"ion-card",14),e.DNE(74,B,10,10,"ng-container",15),e.k0s()(),e.j41(75,"ion-col",5)(76,"ion-card",6)(77,"div",16)(78,"ion-textarea",17),e.mxI("ngModelChange",function(P){return e.eBV(y),e.DH7(n.newComment,P)||(n.newComment=P),e.Njj(P)}),e.k0s(),e.j41(79,"ion-button",18),e.bIt("click",function(){e.eBV(y);const P=e.sdS(82);return e.Njj(P.click())}),e.EFF(80," Add Data "),e.j41(81,"input",19,0),e.bIt("change",function(){return e.eBV(y),e.Njj(n.onImageLoad())}),e.k0s()(),e.DNE(83,A,2,0,"ion-button",20),e.j41(84,"ion-button",21),e.bIt("click",function(){return e.eBV(y),e.Njj(n.addComment())}),e.EFF(85,"Add Comment"),e.k0s()()()()(),e.j41(86,"ion-row",4)(87,"ion-col",5)(88,"ion-card",6)(89,"ion-card-title",7),e.EFF(90,"Change Incident State"),e.k0s(),e.j41(91,"ion-card-content")(92,"p"),e.EFF(93,"Change the state of the incident to closed or open.Only the incident commander can change the state of the incident."),e.k0s()(),e.j41(94,"ion-card-content",22),e.DNE(95,L,2,0,"ion-button",23)(96,S,2,1,"ion-button",24),e.k0s()()(),e.DNE(97,w,10,0,"ion-col",5),e.k0s()()()}2&i&&(e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Incident Details"),e.R7$(5),e.JRh(n.incident.title),e.R7$(3),e.JRh(n.incident.description),e.R7$(6),e.vxM(17,"open"===n.incident.state?17:-1),e.R7$(),e.vxM(18,"closed"===n.incident.state?18:-1),e.R7$(5),e.vxM(23,"Critical"===n.incident.urgency?23:-1),e.R7$(),e.vxM(24,"High"===n.incident.urgency?24:-1),e.R7$(),e.vxM(25,"Medium"===n.incident.urgency?25:-1),e.R7$(),e.vxM(26,"Low"===n.incident.urgency?26:-1),e.R7$(5),e.vxM(31,"Extensive/Widespread"===n.incident.org_impact?31:-1),e.R7$(),e.vxM(32,"Significant/Large"===n.incident.org_impact?32:-1),e.R7$(),e.vxM(33,"Moderate/Limited"===n.incident.org_impact?33:-1),e.R7$(),e.vxM(34,"Minor/Localized"===n.incident.org_impact?34:-1),e.R7$(),e.Y8G("title","Incident Team"),e.R7$(10),e.JRh(n.incident.incidentCommander),e.R7$(9),e.JRh(n.incident.communications_lead),e.R7$(9),e.JRh(n.incident.operations_lead),e.R7$(5),e.Dyx(n.incident.operation_team),e.R7$(2),e.Y8G("title","Incident Progress"),e.R7$(4),e.Y8G("ngForOf",n.incident.report),e.R7$(4),e.Y8G("autoGrow",!0),e.R50("ngModel",n.newComment),e.R7$(),e.Y8G("disabled",n.isImageLoaded),e.R7$(4),e.Y8G("ngIf",n.isImageLoaded),e.R7$(12),e.vxM(95,n.currentUser===n.incident.incidentCommander&&"open"===n.incident.state?95:-1),e.R7$(),e.vxM(96,n.currentUser!==n.incident.incidentCommander||"closed"===n.incident.state?96:-1),e.R7$(),e.vxM(97,"closed"===n.incident.state?97:-1))},dependencies:[c.Sq,c.bT,m.BC,m.vS,a.Jm,a.b_,a.I9,a.tN,a.hU,a.W9,a.lO,a.iq,a.he,a.ln,a.nc,a.Gw,d.W,l.p]}),g})()}];let K=(()=>{var t;class g{}return(t=g).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[p.iI.forChild(G),p.iI]}),g})();var H=r(5553);let J=(()=>{var t;class g{}return(t=g).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[c.MD,m.YN,a.bv,K,H.h]}),g})()},4796:(F,R,r)=>{r.d(R,{u:()=>_});var c=r(467),m=r(8737),a=r(4262),p=r(4438);let _=(()=>{var e;class f{constructor(s,d){this.auth=s,this.firestore=d}registerUser(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);return l.user?(yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),{email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid}),yield(0,a.BN)((0,a.H9)(d.firestore,"teams",`${s.orgName}`),{name:s.orgName,members:[l.user.uid]}),l):null}catch{return null}})()}loginUser(s){var d=this;return(0,c.A)(function*(){try{var l;const u=yield(0,m.x9)(d.auth,s.email,s.password);if(null!==(l=u.user)&&void 0!==l&&l.uid){const h=yield(0,a.x7)((0,a.H9)(d.firestore,"users",u.user.uid));if(h.exists())return localStorage.setItem("user",JSON.stringify(h.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var s=this;return(0,c.A)(function*(){yield s.auth.signOut()})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);if(!l.user)return!1;const u={email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid};return yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),u),u}catch{return!1}})()}}return(e=f).\u0275fac=function(s){return new(s||e)(p.KVO(m.Nj),p.KVO(a._7))},e.\u0275prov=p.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),f})()},7473:(F,R,r)=>{r.d(R,{J:()=>e});var c=r(467),m=r(4262),a=r(4438),p=r(1626),_=r(5092);let e=(()=>{var f;class v{constructor(d,l,u){this.firestore=d,this.http=l,this.teamService=u}saveNotificationID(d,l){var u=this;return(0,c.A)(function*(){const h=(0,m.H9)(u.firestore,"users",d.uid),C=yield(0,m.x7)(h);if(C.exists()){const I=C.data();return I.notificationID=l,yield(0,m.BN)(h,I),!0}return console.log("No such document!"),!1})()}getNotificationUser(d){var l=this;return(0,c.A)(function*(){const u=(0,m.H9)(l.firestore,"users",d.uid),h=yield(0,m.x7)(u);if(h.exists()){const C=h.data();return C.notificationID?C.notificationID:""}return console.log("No such document!"),null})()}notifyIncidentToUser(d,l){var u=this;return(0,c.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(l),C=d.map(D=>D.member),I=h.filter(D=>C.includes(D.name));console.log("team",I);const E="https://devprobeapi.onrender.com/sendNotification";for(let D of I){let b=yield u.getNotificationUser(D);if(console.log("sid",b),""!==b){const j={sid:b,title:"New Incident",type:"new_incident",message:`Hey ${D.name}, you have been assigned a new incident your incident role is ${d.find(O=>O.member===D.name).role}`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(E,j).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}notifyIncidentUpdateToTeam(d,l){var u=this;return(0,c.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(l),C=d.map(D=>D.member),I=h.filter(D=>C.includes(D.name));console.log("team",I);const E="https://devprobeapi.onrender.com/sendNotification";for(let D of I){let b=yield u.getNotificationUser(D);if(console.log("sid",b),""!==b){const j={sid:b,title:"Incident Update",type:"update_incident",message:`Hey ${D.name}, there are updates to your incident`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(E,j).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}}return(f=v).\u0275fac=function(d){return new(d||f)(a.KVO(m._7),a.KVO(p.Qq),a.KVO(_.O))},f.\u0275prov=a.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),v})()},5092:(F,R,r)=>{r.d(R,{O:()=>_});var c=r(467),m=r(4262),a=r(4438),p=r(4796);let _=(()=>{var e;class f{constructor(s,d){this.firestore=s,this.authService=d}getTeamByOrganization(s){var d=this;return(0,c.A)(function*(){let l=(0,m.H9)(d.firestore,"teams",s);const C=(yield(0,m.x7)(l)).data();let I=[];for(let E=0;Eb!==d);return yield(0,m.BN)(u,{name:I.name,members:E}),u=(0,m.H9)(l.firestore,"users",d),yield(0,m.BN)(u,{}),yield l.authService,!0}catch{return!1}})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield d.authService.addMember(s);if(!l)return!1;const u=(0,m.H9)(d.firestore,"teams",s.orgName),C=(yield(0,m.x7)(u)).data();console.log(C);const I=C;let E=I.members;return E.push(l.uid),console.log(E),yield(0,m.mZ)(u,{name:I.name,members:E}),l.uid}catch{return!1}})()}}return(e=f).\u0275fac=function(s){return new(s||e)(a.KVO(m._7),a.KVO(p.u))},e.\u0275prov=a.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),f})()}}]); \ No newline at end of file diff --git a/www/7907.cfb2bc5974652bb4.js b/www/7907.cfb2bc5974652bb4.js deleted file mode 100644 index 216d43e..0000000 --- a/www/7907.cfb2bc5974652bb4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7907],{5553:(P,I,o)=>{o.d(I,{h:()=>g});var l=o(177),m=o(7863),r=o(4438);let g=(()=>{var _;class e{}return(_=e).\u0275fac=function(v){return new(v||_)},_.\u0275mod=r.$C({type:_}),_.\u0275inj=r.G2t({imports:[l.MD,m.bv]}),e})()},3241:(P,I,o)=>{o.d(I,{p:()=>g});var l=o(4438),m=o(177),r=o(7863);let g=(()=>{var _;class e{constructor(v){this.location=v,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(_=e).\u0275fac=function(v){return new(v||_)(l.rXU(m.aZ))},_.\u0275cmp=l.VBU({type:_,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(v,a){1&v&&(l.j41(0,"ion-header",0)(1,"ion-toolbar"),l.nrm(2,"ion-menu-button",1),l.j41(3,"ion-icon",2),l.bIt("click",function(){return a.goBack()}),l.k0s(),l.j41(4,"ion-title"),l.EFF(5),l.k0s()()()),2&v&&(l.Y8G("translucent",!0),l.R7$(5),l.JRh(a.title))},dependencies:[r.eU,r.iq,r.MC,r.BC,r.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8453:(P,I,o)=>{o.d(I,{W:()=>r});var l=o(4438),m=o(7863);let r=(()=>{var g;class _{constructor(){this.title="Title"}ngOnInit(){}}return(g=_).\u0275fac=function(p){return new(p||g)},g.\u0275cmp=l.VBU({type:g,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(p,v){1&p&&(l.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),l.EFF(3),l.k0s()()()),2&p&&(l.R7$(3),l.JRh(v.title))},dependencies:[m.hU,m.ln]}),_})()},7907:(P,I,o)=>{o.r(I),o.d(I,{IncidentDetailsPageModule:()=>B});var l=o(177),m=o(4341),r=o(7863),g=o(7650),_=o(467),e=o(4438),p=o(4624),v=o(7473),a=o(8453),d=o(3241);function s(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",21),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.state.toUpperCase())}}function u(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",22),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.state.toLocaleUpperCase())}}function h(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",22),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.urgency.toUpperCase())}}function E(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",23),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.urgency.toUpperCase())}}function C(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",24),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.urgency.toUpperCase())}}function D(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",21),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.urgency.toUpperCase())}}function y(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",22),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.org_impact.toUpperCase())}}function R(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",23),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.org_impact.toUpperCase())}}function b(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",24),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.org_impact.toUpperCase())}}function F(t,f){if(1&t&&(e.j41(0,"ion-card-content")(1,"ion-label",21),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.incident.org_impact.toUpperCase())}}function j(t,f){if(1&t&&(e.j41(0,"div",11),e.nrm(1,"ion-icon",12),e.j41(2,"ion-label",7),e.EFF(3),e.k0s()()),2&t){const c=f.$implicit;e.R7$(3),e.JRh(c)}}function T(t,f){if(1&t&&(e.qex(0),e.j41(1,"ion-card",25)(2,"ion-card-content"),e.nrm(3,"p",26),e.k0s(),e.j41(4,"ion-card-content",27)(5,"div",28),e.nrm(6,"ion-icon",12),e.j41(7,"ion-label",7),e.EFF(8),e.k0s()()()(),e.bVm()),2&t){const c=f.$implicit,n=e.XpG();e.R7$(),e.AVh("self-end",c.from===n.currentUser)("bg-gray-600",c.from===n.currentUser)("self-start",c.from!==n.currentUser)("bg-gray-800",c.from!==n.currentUser),e.R7$(2),e.Y8G("innerHTML",c.comment,e.npT),e.R7$(5),e.JRh(c.from)}}function U(t,f){if(1&t){const c=e.RV6();e.j41(0,"ion-button",29),e.bIt("click",function(){e.eBV(c);const i=e.XpG();return e.Njj(i.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}}function x(t,f){if(1&t){const c=e.RV6();e.j41(0,"ion-button",30),e.bIt("click",function(){e.eBV(c);const i=e.XpG();return e.Njj(i.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}2&t&&e.Y8G("disabled",!0)}function N(t,f){if(1&t){const c=e.RV6();e.j41(0,"ion-col",4)(1,"ion-card",5)(2,"ion-card-title",6),e.EFF(3,"Go to Incident Postmortem"),e.k0s(),e.j41(4,"ion-card-content")(5,"p"),e.EFF(6,"Postmortem Culture: Learning from Failure. The postmortem is a retrospective of the incident, focusing on what went wrong, what can be learned, and how to prevent similar incidents in the future."),e.k0s()(),e.j41(7,"ion-card-content",18)(8,"ion-button",31),e.bIt("click",function(){e.eBV(c);const i=e.XpG();return e.Njj(i.closeIncident())}),e.EFF(9,"Incident Postmortem"),e.k0s()()()()}}const $=[{path:"",component:(()=>{var t;class f{constructor(n,i,M,O,w){this.router=n,this.activatedRoute=i,this.loadingCtrl=M,this.incidentService=O,this.notificationService=w,this.productStep="",this.productObjective="",this.orgName="",this.currentUser="",this.incident={},this.newComment=""}ngOnInit(){}ionViewWillEnter(){this.getParams()}getParams(){this.activatedRoute.params.subscribe(i=>{this.productObjective=i.productObjective,this.productStep=i.step,this.incident=JSON.parse(i.incident)});const n=JSON.parse(localStorage.getItem("user"));this.orgName=n.orgName,this.currentUser=n.name,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep),console.log(this.incident.title)}addComment(){var n=this;return(0,_.A)(function*(){if(yield n.showLoading(),console.log("add comment"),console.log(n.currentUser),console.log(n.newComment),""===n.newComment)return;n.incident.report?n.incident.report.push({comment:n.newComment.replace(/\n/g,"
"),from:n.currentUser}):n.incident.report=[{comment:n.newComment.replace(/\n/g,"
"),from:n.currentUser}],yield n.incidentService.updateIncident(n.orgName,n.productObjective,n.productStep,n.incident);let i=[];i.push({role:"Incident Commander",member:n.incident.incidentCommander}),i.push({role:"Communications Lead",member:n.incident.communications_lead}),i.push({role:"Operations Lead",member:n.incident.operations_lead});for(let M=0;M{var t;class f{}return(t=f).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.iI.forChild($),g.iI]}),f})();var A=o(5553);let B=(()=>{var t;class f{}return(t=f).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[l.MD,m.YN,r.bv,k,A.h]}),f})()},4796:(P,I,o)=>{o.d(I,{u:()=>_});var l=o(467),m=o(8737),r=o(4262),g=o(4438);let _=(()=>{var e;class p{constructor(a,d){this.auth=a,this.firestore=d}registerUser(a){var d=this;return(0,l.A)(function*(){try{const s=yield(0,m.eJ)(d.auth,a.email,a.password);return s.user?(yield(0,r.BN)((0,r.H9)(d.firestore,"users",s.user.uid),{email:a.email,name:a.name,orgName:a.orgName,uid:s.user.uid}),yield(0,r.BN)((0,r.H9)(d.firestore,"teams",`${a.orgName}`),{name:a.orgName,members:[s.user.uid]}),s):null}catch{return null}})()}loginUser(a){var d=this;return(0,l.A)(function*(){try{var s;const u=yield(0,m.x9)(d.auth,a.email,a.password);if(null!==(s=u.user)&&void 0!==s&&s.uid){const h=yield(0,r.x7)((0,r.H9)(d.firestore,"users",u.user.uid));if(h.exists())return localStorage.setItem("user",JSON.stringify(h.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var a=this;return(0,l.A)(function*(){yield a.auth.signOut()})()}addMember(a){var d=this;return(0,l.A)(function*(){try{const s=yield(0,m.eJ)(d.auth,a.email,a.password);if(!s.user)return!1;const u={email:a.email,name:a.name,orgName:a.orgName,uid:s.user.uid};return yield(0,r.BN)((0,r.H9)(d.firestore,"users",s.user.uid),u),u}catch{return!1}})()}}return(e=p).\u0275fac=function(a){return new(a||e)(g.KVO(m.Nj),g.KVO(r._7))},e.\u0275prov=g.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),p})()},7473:(P,I,o)=>{o.d(I,{J:()=>e});var l=o(467),m=o(4262),r=o(4438),g=o(1626),_=o(5092);let e=(()=>{var p;class v{constructor(d,s,u){this.firestore=d,this.http=s,this.teamService=u}saveNotificationID(d,s){var u=this;return(0,l.A)(function*(){const h=(0,m.H9)(u.firestore,"users",d.uid),E=yield(0,m.x7)(h);if(E.exists()){const C=E.data();return C.notificationID=s,yield(0,m.BN)(h,C),!0}return console.log("No such document!"),!1})()}getNotificationUser(d){var s=this;return(0,l.A)(function*(){const u=(0,m.H9)(s.firestore,"users",d.uid),h=yield(0,m.x7)(u);if(h.exists()){const E=h.data();return E.notificationID?E.notificationID:""}return console.log("No such document!"),null})()}notifyIncidentToUser(d,s){var u=this;return(0,l.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(s),E=d.map(y=>y.member),C=h.filter(y=>E.includes(y.name));console.log("team",C);const D="https://devprobeapi.onrender.com/sendNotification";for(let y of C){let R=yield u.getNotificationUser(y);if(console.log("sid",R),""!==R){const F={sid:R,title:"New Incident",type:"new_incident",message:`Hey ${y.name}, you have been assigned a new incident your incident role is ${d.find(j=>j.member===y.name).role}`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(D,F).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}notifyIncidentUpdateToTeam(d,s){var u=this;return(0,l.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(s),E=d.map(y=>y.member),C=h.filter(y=>E.includes(y.name));console.log("team",C);const D="https://devprobeapi.onrender.com/sendNotification";for(let y of C){let R=yield u.getNotificationUser(y);if(console.log("sid",R),""!==R){const F={sid:R,title:"Incident Update",type:"update_incident",message:`Hey ${y.name}, there are updates to your incident`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(D,F).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}}return(p=v).\u0275fac=function(d){return new(d||p)(r.KVO(m._7),r.KVO(g.Qq),r.KVO(_.O))},p.\u0275prov=r.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}),v})()},5092:(P,I,o)=>{o.d(I,{O:()=>_});var l=o(467),m=o(4262),r=o(4438),g=o(4796);let _=(()=>{var e;class p{constructor(a,d){this.firestore=a,this.authService=d}getTeamByOrganization(a){var d=this;return(0,l.A)(function*(){let s=(0,m.H9)(d.firestore,"teams",a);const E=(yield(0,m.x7)(s)).data();let C=[];for(let D=0;DR!==d);return yield(0,m.BN)(u,{name:C.name,members:D}),u=(0,m.H9)(s.firestore,"users",d),yield(0,m.BN)(u,{}),yield s.authService,!0}catch{return!1}})()}addMember(a){var d=this;return(0,l.A)(function*(){try{const s=yield d.authService.addMember(a);if(!s)return!1;const u=(0,m.H9)(d.firestore,"teams",a.orgName),E=(yield(0,m.x7)(u)).data();console.log(E);const C=E;let D=C.members;return D.push(s.uid),console.log(D),yield(0,m.mZ)(u,{name:C.name,members:D}),s.uid}catch{return!1}})()}}return(e=p).\u0275fac=function(a){return new(a||e)(r.KVO(m._7),r.KVO(g.u))},e.\u0275prov=r.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),p})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index f01f02b..8b8e8f7 100644 --- a/www/index.html +++ b/www/index.html @@ -37,11 +37,11 @@ } }); - + - + diff --git a/www/main.692d96bfbb3def35.js b/www/main.692d96bfbb3def35.js deleted file mode 100644 index e69154d..0000000 --- a/www/main.692d96bfbb3def35.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,gt,C)=>{"use strict";C.d(gt,{Am:()=>pn,FA:()=>Fe,Fy:()=>ge,I9:()=>Sr,Im:()=>Jn,Ku:()=>ut,T9:()=>mt,Tj:()=>Vt,Uj:()=>Je,XA:()=>Ae,ZQ:()=>Be,bD:()=>Nt,cY:()=>Qe,eX:()=>X,g:()=>ve,hp:()=>Pn,jZ:()=>ke,lT:()=>tt,lV:()=>mn,nr:()=>we,sr:()=>Pt,tD:()=>gn,u:()=>Se,yU:()=>Et,zW:()=>H});const xe=function(ce){const ye=[];let ze=0;for(let Lt=0;Lt>6|192,ye[ze++]=63&ie|128):55296==(64512&ie)&&Lt+1>18|240,ye[ze++]=ie>>12&63|128,ye[ze++]=ie>>6&63|128,ye[ze++]=63&ie|128):(ye[ze++]=ie>>12|224,ye[ze++]=ie>>6&63|128,ye[ze++]=63&ie|128)}return ye},ue={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ce,ye){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const ze=ye?this.byteToCharMapWebSafe_:this.byteToCharMap_,Lt=[];for(let ie=0;ie>6,ir=63&vn;tn||(ir=64,lt||(Cn=64)),Lt.push(ze[dt>>2],ze[(3&dt)<<4|Wt>>4],ze[Cn],ze[ir])}return Lt.join("")},encodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?btoa(ce):this.encodeByteArray(xe(ce),ye)},decodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?atob(ce):function(ce){const ye=[];let ze=0,Lt=0;for(;ze191&&ie<224){const dt=ce[ze++];ye[Lt++]=String.fromCharCode((31&ie)<<6|63&dt)}else if(ie>239&&ie<365){const tn=((7&ie)<<18|(63&ce[ze++])<<12|(63&ce[ze++])<<6|63&ce[ze++])-65536;ye[Lt++]=String.fromCharCode(55296+(tn>>10)),ye[Lt++]=String.fromCharCode(56320+(1023&tn))}else{const dt=ce[ze++],lt=ce[ze++];ye[Lt++]=String.fromCharCode((15&ie)<<12|(63&dt)<<6|63<)}}return ye.join("")}(this.decodeStringToByteArray(ce,ye))},decodeStringToByteArray(ce,ye){this.init_();const ze=ye?this.charToByteMapWebSafe_:this.charToByteMap_,Lt=[];for(let ie=0;ie>4),64!==vn&&(Lt.push(Wt<<4&240|vn>>2),64!==dn&&Lt.push(vn<<6&192|dn))}return Lt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ce){return function(ce){const ye=xe(ce);return ue.encodeByteArray(ye,!0)}(ce).replace(/\./g,"")},Se=function(ce){try{return ue.decodeString(ce,!0)}catch(ye){console.error("base64Decode failed: ",ye)}return null},It=()=>{try{return function Xe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ye=ce&&Se(ce[1]);return ye&&JSON.parse(ye)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},Vt=ce=>{var ye,ze;return null===(ze=null===(ye=It())||void 0===ye?void 0:ye.emulatorHosts)||void 0===ze?void 0:ze[ce]},Et=ce=>{const ye=Vt(ce);if(!ye)return;const ze=ye.lastIndexOf(":");if(ze<=0||ze+1===ye.length)throw new Error(`Invalid host ${ye} with no separate hostname and port!`);const Lt=parseInt(ye.substring(ze+1),10);return"["===ye[0]?[ye.substring(1,ze-1),Lt]:[ye.substring(0,ze),Lt]},mt=()=>{var ce;return null===(ce=It())||void 0===ce?void 0:ce.config},Ae=ce=>{var ye;return null===(ye=It())||void 0===ye?void 0:ye[`_${ce}`]};class Qe{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ye,ze)=>{this.resolve=ye,this.reject=ze})}wrapCallback(ye){return(ze,Lt)=>{ze?this.reject(ze):this.resolve(Lt),"function"==typeof ye&&(this.promise.catch(()=>{}),1===ye.length?ye(ze):ye(ze,Lt))}}}function ge(ce,ye){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Lt=ye||"demo-project",ie=ce.iat||0,dt=ce.sub||ce.user_id;if(!dt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const lt=Object.assign({iss:`https://securetoken.google.com/${Lt}`,aud:Lt,iat:ie,exp:ie+3600,auth_time:ie,sub:dt,user_id:dt,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(lt)),""].join(".")}function Be(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ke(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Be())}function Pt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function mn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function tt(){const ce=Be();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function we(){return!function Pe(){var ce;const ye=null===(ce=It())||void 0===ce?void 0:ce.forceEnvironment;if("node"===ye)return!0;if("browser"===ye)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function H(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((ce,ye)=>{try{let ze=!0;const Lt="validate-browser-context-for-indexeddb-analytics-module",ie=self.indexedDB.open(Lt);ie.onsuccess=()=>{ie.result.close(),ze||self.indexedDB.deleteDatabase(Lt),ce(!0)},ie.onupgradeneeded=()=>{ze=!1},ie.onerror=()=>{var dt;ye((null===(dt=ie.error)||void 0===dt?void 0:dt.message)||"")}}catch(ze){ye(ze)}})}class ve extends Error{constructor(ye,ze,Lt){super(ze),this.code=ye,this.customData=Lt,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Fe.prototype.create)}}class Fe{constructor(ye,ze,Lt){this.service=ye,this.serviceName=ze,this.errors=Lt}create(ye,...ze){const Lt=ze[0]||{},ie=`${this.service}/${ye}`,dt=this.errors[ye],lt=dt?function it(ce,ye){return ce.replace(sn,(ze,Lt)=>{const ie=ye[Lt];return null!=ie?String(ie):`<${Lt}?>`})}(dt,Lt):"Error";return new ve(ie,`${this.serviceName}: ${lt} (${ie}).`,Lt)}}const sn=/\{\$([^}]+)}/g;function Jn(ce){for(const ye in ce)if(Object.prototype.hasOwnProperty.call(ce,ye))return!1;return!0}function Nt(ce,ye){if(ce===ye)return!0;const ze=Object.keys(ce),Lt=Object.keys(ye);for(const ie of ze){if(!Lt.includes(ie))return!1;const dt=ce[ie],lt=ye[ie];if(Ht(dt)&&Ht(lt)){if(!Nt(dt,lt))return!1}else if(dt!==lt)return!1}for(const ie of Lt)if(!ze.includes(ie))return!1;return!0}function Ht(ce){return null!==ce&&"object"==typeof ce}function pn(ce){const ye=[];for(const[ze,Lt]of Object.entries(ce))Array.isArray(Lt)?Lt.forEach(ie=>{ye.push(encodeURIComponent(ze)+"="+encodeURIComponent(ie))}):ye.push(encodeURIComponent(ze)+"="+encodeURIComponent(Lt));return ye.length?"&"+ye.join("&"):""}function Sr(ce){const ye={};return ce.replace(/^\?/,"").split("&").forEach(Lt=>{if(Lt){const[ie,dt]=Lt.split("=");ye[decodeURIComponent(ie)]=decodeURIComponent(dt)}}),ye}function Pn(ce){const ye=ce.indexOf("?");if(!ye)return"";const ze=ce.indexOf("#",ye);return ce.substring(ye,ze>0?ze:void 0)}function gn(ce,ye){const ze=new en(ce,ye);return ze.subscribe.bind(ze)}class en{constructor(ye,ze){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=ze,this.task.then(()=>{ye(this)}).catch(Lt=>{this.error(Lt)})}next(ye){this.forEachObserver(ze=>{ze.next(ye)})}error(ye){this.forEachObserver(ze=>{ze.error(ye)}),this.close(ye)}complete(){this.forEachObserver(ye=>{ye.complete()}),this.close()}subscribe(ye,ze,Lt){let ie;if(void 0===ye&&void 0===ze&&void 0===Lt)throw new Error("Missing Observer.");ie=function Ir(ce,ye){if("object"!=typeof ce||null===ce)return!1;for(const ze of ye)if(ze in ce&&"function"==typeof ce[ze])return!0;return!1}(ye,["next","error","complete"])?ye:{next:ye,error:ze,complete:Lt},void 0===ie.next&&(ie.next=Nr),void 0===ie.error&&(ie.error=Nr),void 0===ie.complete&&(ie.complete=Nr);const dt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ie.error(this.finalError):ie.complete()}catch{}}),this.observers.push(ie),dt}unsubscribeOne(ye){void 0===this.observers||void 0===this.observers[ye]||(delete this.observers[ye],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ye){if(!this.finalized)for(let ze=0;ze{if(void 0!==this.observers&&void 0!==this.observers[ye])try{ze(this.observers[ye])}catch(Lt){typeof console<"u"&&console.error&&console.error(Lt)}})}close(ye){this.finalized||(this.finalized=!0,void 0!==ye&&(this.finalError=ye),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nr(){}function ut(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Tn,gt,C)=>{"use strict";C.d(gt,{L:()=>U,a:()=>ue,b:()=>oe,c:()=>Ke,d:()=>Je,g:()=>ht}),C(5531);const U="ionViewWillEnter",ue="ionViewDidEnter",oe="ionViewWillLeave",Ke="ionViewDidLeave",Je="ionViewWillUnload",ht=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},5531:(Tn,gt,C)=>{"use strict";C.d(gt,{a:()=>Se,c:()=>c,g:()=>Je});class h{constructor(){this.m=new Map}reset(we){this.m=new Map(Object.entries(we))}get(we,H){const X=this.m.get(we);return void 0!==X?X:H}getBoolean(we,H=!1){const X=this.m.get(we);return void 0===X?H:"string"==typeof X?"true"===X:!!X}getNumber(we,H){const X=parseFloat(this.m.get(we));return isNaN(X)?void 0!==H?H:NaN:X}set(we,H){this.m.set(we,H)}}const c=new h,Je=ht=>De(ht),Se=(ht,we)=>("string"==typeof ht&&(we=ht,ht=void 0),Je(ht).includes(we)),De=(ht=window)=>{if(typeof ht>"u")return[];ht.Ionic=ht.Ionic||{};let we=ht.Ionic.platforms;return null==we&&(we=ht.Ionic.platforms=Ye(ht),we.forEach(H=>ht.document.documentElement.classList.add(`plt-${H}`))),we},Ye=ht=>{const we=c.get("platform");return Object.keys(mn).filter(H=>{const X=null==we?void 0:we[H];return"function"==typeof X?X(ht):mn[H](ht)})},Xe=ht=>!!(_t(ht,/iPad/i)||_t(ht,/Macintosh/i)&&mt(ht)),Rt=ht=>_t(ht,/android|sink/i),mt=ht=>Pt(ht,"(any-pointer:coarse)"),Qe=ht=>ge(ht)||Be(ht),ge=ht=>!!(ht.cordova||ht.phonegap||ht.PhoneGap),Be=ht=>{const we=ht.Capacitor;return!(null==we||!we.isNative)},_t=(ht,we)=>we.test(ht.navigator.userAgent),Pt=(ht,we)=>{var H;return null===(H=ht.matchMedia)||void 0===H?void 0:H.call(ht,we).matches},mn={ipad:Xe,iphone:ht=>_t(ht,/iPhone/i),ios:ht=>_t(ht,/iPhone|iPod/i)||Xe(ht),android:Rt,phablet:ht=>{const we=ht.innerWidth,H=ht.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return X>390&&X<520&&fe>620&&fe<800},tablet:ht=>{const we=ht.innerWidth,H=ht.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return Xe(ht)||(ht=>Rt(ht)&&!_t(ht,/mobile/i))(ht)||X>460&&X<820&&fe>780&&fe<1400},cordova:ge,capacitor:Be,electron:ht=>_t(ht,/electron/i),pwa:ht=>{var we;return!!(null!==(we=ht.matchMedia)&&void 0!==we&&we.call(ht,"(display-mode: standalone)").matches||ht.navigator.standalone)},mobile:mt,mobileweb:ht=>mt(ht)&&!Qe(ht),desktop:ht=>!mt(ht),hybrid:Qe}},9986:(Tn,gt,C)=>{"use strict";C.d(gt,{c:()=>ue});var h=C(8476);let c;const xe=(oe,Ke,Je)=>{const Se=Ke.startsWith("animation")?(oe=>(void 0===c&&(c=void 0===oe.style.animationName&&void 0!==oe.style.webkitAnimationName?"-webkit-":""),c))(oe):"";oe.style.setProperty(Se+Ke,Je)},U=(oe=[],Ke)=>{if(void 0!==Ke){const Je=Array.isArray(Ke)?Ke:[Ke];return[...oe,...Je]}return oe},ue=oe=>{let Ke,Je,Se,De,Ye,Ze,It,ke,Pe,_t,tt,Xe=[],ct=[],Dt=[],Rt=!1,Vt={},Et=[],mt=[],Ae={},Qe=0,ge=!1,Be=!1,Pt=!0,mn=!1,vt=!0,on=!1;const ht=oe,we=[],H=[],X=[],fe=[],se=[],ve=[],Fe=[],it=[],sn=[],Sn=[],qe=[],Kt="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,En="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Kt,On=()=>qe,Jn=(x,te)=>{const Te=te.findIndex(He=>He.c===x);Te>-1&&te.splice(Te,1)},Nt=(x,te)=>((null!=te&&te.oneTimeCallback?H:we).push({c:x,o:te}),tt),fn=()=>{En&&(qe.forEach(x=>{x.cancel()}),qe.length=0)},pn=()=>{ve.forEach(x=>{null!=x&&x.parentNode&&x.parentNode.removeChild(x)}),ve.length=0},mr=()=>void 0!==Ye?Ye:It?It.getFill():"both",ur=()=>void 0!==ke?ke:void 0!==Ze?Ze:It?It.getDirection():"normal",Pr=()=>ge?"linear":void 0!==Se?Se:It?It.getEasing():"linear",cr=()=>Be?0:void 0!==Pe?Pe:void 0!==Je?Je:It?It.getDuration():0,kr=()=>void 0!==De?De:It?It.getIterations():1,ii=()=>void 0!==_t?_t:void 0!==Ke?Ke:It?It.getDelay():0,tn=()=>{0!==Qe&&(Qe--,0===Qe&&((()=>{sn.forEach(Tt=>Tt()),Sn.forEach(Tt=>Tt());const x=Pt?1:0,te=Et,Te=mt,He=Ae;fe.forEach(Tt=>{const Jt=Tt.classList;te.forEach(ln=>Jt.add(ln)),Te.forEach(ln=>Jt.remove(ln));for(const ln in He)He.hasOwnProperty(ln)&&xe(Tt,ln,He[ln])}),Pe=void 0,ke=void 0,_t=void 0,we.forEach(Tt=>Tt.c(x,tt)),H.forEach(Tt=>Tt.c(x,tt)),H.length=0,vt=!0,Pt&&(mn=!0),Pt=!0})(),It&&It.animationFinish()))},Yn=()=>{(()=>{Fe.forEach(He=>He()),it.forEach(He=>He());const x=ct,te=Dt,Te=Vt;fe.forEach(He=>{const Tt=He.classList;x.forEach(Jt=>Tt.add(Jt)),te.forEach(Jt=>Tt.remove(Jt));for(const Jt in Te)Te.hasOwnProperty(Jt)&&xe(He,Jt,Te[Jt])})})(),Xe.length>0&&En&&(fe.forEach(x=>{const te=x.animate(Xe,{id:ht,delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()});te.pause(),qe.push(te)}),qe.length>0&&(qe[0].onfinish=()=>{tn()})),Rt=!0},dn=x=>{x=Math.min(Math.max(x,0),.9999),En&&qe.forEach(te=>{te.currentTime=te.effect.getComputedTiming().delay+cr()*x,te.pause()})},Cn=x=>{qe.forEach(te=>{te.effect.updateTiming({delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()})}),void 0!==x&&dn(x)},ir=(x=!1,te=!0,Te)=>(x&&se.forEach(He=>{He.update(x,te,Te)}),En&&Cn(Te),tt),Zr=()=>{Rt&&(En?qe.forEach(x=>{x.pause()}):fe.forEach(x=>{xe(x,"animation-play-state","paused")}),on=!0)},$t=x=>new Promise(te=>{null!=x&&x.sync&&(Be=!0,Nt(()=>Be=!1,{oneTimeCallback:!0})),Rt||Yn(),mn&&(En&&(dn(0),Cn()),mn=!1),vt&&(Qe=se.length+1,vt=!1);const Te=()=>{Jn(He,H),te()},He=()=>{Jn(Te,X),te()};Nt(He,{oneTimeCallback:!0}),((x,te)=>{X.push({c:x,o:{oneTimeCallback:!0}})})(Te),se.forEach(Tt=>{Tt.play()}),En?(qe.forEach(x=>{x.play()}),(0===Xe.length||0===fe.length)&&tn()):tn(),on=!1}),ee=(x,te)=>{const Te=Xe[0];return void 0===Te||void 0!==Te.offset&&0!==Te.offset?Xe=[{offset:0,[x]:te},...Xe]:Te[x]=te,tt};return tt={parentAnimation:It,elements:fe,childAnimations:se,id:ht,animationFinish:tn,from:ee,to:(x,te)=>{const Te=Xe[Xe.length-1];return void 0===Te||void 0!==Te.offset&&1!==Te.offset?Xe=[...Xe,{offset:1,[x]:te}]:Te[x]=te,tt},fromTo:(x,te,Te)=>ee(x,te).to(x,Te),parent:x=>(It=x,tt),play:$t,pause:()=>(se.forEach(x=>{x.pause()}),Zr(),tt),stop:()=>{se.forEach(x=>{x.stop()}),Rt&&(fn(),Rt=!1),ge=!1,Be=!1,vt=!0,ke=void 0,Pe=void 0,_t=void 0,Qe=0,mn=!1,Pt=!0,on=!1,X.forEach(x=>x.c(0,tt)),X.length=0},destroy:x=>(se.forEach(te=>{te.destroy(x)}),(x=>{fn(),x&&pn()})(x),fe.length=0,se.length=0,Xe.length=0,we.length=0,H.length=0,Rt=!1,vt=!0,tt),keyframes:x=>{const te=Xe!==x;return Xe=x,te&&(x=>{En&&On().forEach(te=>{const Te=te.effect;if(Te.setKeyframes)Te.setKeyframes(x);else{const He=new KeyframeEffect(Te.target,x,Te.getTiming());te.effect=He}})})(Xe),tt},addAnimation:x=>{if(null!=x)if(Array.isArray(x))for(const te of x)te.parent(tt),se.push(te);else x.parent(tt),se.push(x);return tt},addElement:x=>{if(null!=x)if(1===x.nodeType)fe.push(x);else if(x.length>=0)for(let te=0;te(Ye=x,ir(!0),tt),direction:x=>(Ze=x,ir(!0),tt),iterations:x=>(De=x,ir(!0),tt),duration:x=>(!En&&0===x&&(x=1),Je=x,ir(!0),tt),easing:x=>(Se=x,ir(!0),tt),delay:x=>(Ke=x,ir(!0),tt),getWebAnimations:On,getKeyframes:()=>Xe,getFill:mr,getDirection:ur,getDelay:ii,getIterations:kr,getEasing:Pr,getDuration:cr,afterAddRead:x=>(sn.push(x),tt),afterAddWrite:x=>(Sn.push(x),tt),afterClearStyles:(x=[])=>{for(const te of x)Ae[te]="";return tt},afterStyles:(x={})=>(Ae=x,tt),afterRemoveClass:x=>(mt=U(mt,x),tt),afterAddClass:x=>(Et=U(Et,x),tt),beforeAddRead:x=>(Fe.push(x),tt),beforeAddWrite:x=>(it.push(x),tt),beforeClearStyles:(x=[])=>{for(const te of x)Vt[te]="";return tt},beforeStyles:(x={})=>(Vt=x,tt),beforeRemoveClass:x=>(Dt=U(Dt,x),tt),beforeAddClass:x=>(ct=U(ct,x),tt),onFinish:Nt,isRunning:()=>0!==Qe&&!on,progressStart:(x=!1,te)=>(se.forEach(Te=>{Te.progressStart(x,te)}),Zr(),ge=x,Rt||Yn(),ir(!1,!0,te),tt),progressStep:x=>(se.forEach(te=>{te.progressStep(x)}),dn(x),tt),progressEnd:(x,te,Te)=>(ge=!1,se.forEach(He=>{He.progressEnd(x,te,Te)}),void 0!==Te&&(Pe=Te),mn=!1,Pt=!0,0===x?(ke="reverse"===ur()?"normal":"reverse","reverse"===ke&&(Pt=!1),En?(ir(),dn(1-te)):(_t=(1-te)*cr()*-1,ir(!1,!1))):1===x&&(En?(ir(),dn(te)):(_t=te*cr()*-1,ir(!1,!1))),void 0!==x&&!It&&$t(),tt)}}},464:(Tn,gt,C)=>{"use strict";C.d(gt,{E:()=>Se,a:()=>h,s:()=>Ke});const h=De=>{try{if(De instanceof oe)return De.value;if(!xe()||"string"!=typeof De||""===De)return De;if(De.includes("onload="))return"";const Ye=document.createDocumentFragment(),Ze=document.createElement("div");Ye.appendChild(Ze),Ze.innerHTML=De,ue.forEach(Rt=>{const It=Ye.querySelectorAll(Rt);for(let Vt=It.length-1;Vt>=0;Vt--){const Et=It[Vt];Et.parentNode?Et.parentNode.removeChild(Et):Ye.removeChild(Et);const mt=Z(Et);for(let Ae=0;Ae{if(De.nodeType&&1!==De.nodeType)return;if(typeof NamedNodeMap<"u"&&!(De.attributes instanceof NamedNodeMap))return void De.remove();for(let Ze=De.attributes.length-1;Ze>=0;Ze--){const Xe=De.attributes.item(Ze),ct=Xe.name;if(!U.includes(ct.toLowerCase())){De.removeAttribute(ct);continue}const Dt=Xe.value,Rt=De[ct];(null!=Dt&&Dt.toLowerCase().includes("javascript:")||null!=Rt&&Rt.toLowerCase().includes("javascript:"))&&De.removeAttribute(ct)}const Ye=Z(De);for(let Ze=0;Zenull!=De.children?De.children:De.childNodes,xe=()=>{var De;const Ye=window,Ze=null===(De=null==Ye?void 0:Ye.Ionic)||void 0===De?void 0:De.config;return!Ze||(Ze.get?Ze.get("sanitizerEnabled",!0):!0===Ze.sanitizerEnabled||void 0===Ze.sanitizerEnabled)},U=["class","id","href","src","name","slot"],ue=["script","style","iframe","meta","link","object","embed"];class oe{constructor(Ye){this.value=Ye}}const Ke=De=>{const Ye=window,Ze=Ye.Ionic;if(!Ze||!Ze.config||"Object"===Ze.config.constructor.name)return Ye.Ionic=Ye.Ionic||{},Ye.Ionic.config=Object.assign(Object.assign({},Ye.Ionic.config),De),Ye.Ionic.config},Se=!1},8621:(Tn,gt,C)=>{"use strict";C.d(gt,{C:()=>U,a:()=>Z,d:()=>xe});var h=C(467),c=C(4920);const Z=function(){var ue=(0,h.A)(function*(oe,Ke,Je,Se,De,Ye){var Ze;if(oe)return oe.attachViewToDom(Ke,Je,De,Se);if(!(Ye||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Xe="string"==typeof Je?null===(Ze=Ke.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Je):Je;return Se&&Se.forEach(ct=>Xe.classList.add(ct)),De&&Object.assign(Xe,De),Ke.appendChild(Xe),yield new Promise(ct=>(0,c.c)(Xe,ct)),Xe});return function(Ke,Je,Se,De,Ye,Ze){return ue.apply(this,arguments)}}(),xe=(ue,oe)=>{if(oe){if(ue)return ue.removeViewFromDom(oe.parentElement,oe);oe.remove()}return Promise.resolve()},U=()=>{let ue,oe;return{attachViewToDom:function(){var Se=(0,h.A)(function*(De,Ye,Ze={},Xe=[]){var ct,Dt;let Rt;if(ue=De,Ye){const Vt="string"==typeof Ye?null===(ct=ue.ownerDocument)||void 0===ct?void 0:ct.createElement(Ye):Ye;Xe.forEach(Et=>Vt.classList.add(Et)),Object.assign(Vt,Ze),ue.appendChild(Vt),Rt=Vt,yield new Promise(Et=>(0,c.c)(Vt,Et))}else if(ue.children.length>0&&("ION-MODAL"===ue.tagName||"ION-POPOVER"===ue.tagName)&&!(Rt=ue.children[0]).classList.contains("ion-delegate-host")){const Et=null===(Dt=ue.ownerDocument)||void 0===Dt?void 0:Dt.createElement("div");Et.classList.add("ion-delegate-host"),Xe.forEach(mt=>Et.classList.add(mt)),Et.append(...ue.children),ue.appendChild(Et),Rt=Et}const It=document.querySelector("ion-app")||document.body;return oe=document.createComment("ionic teleport"),ue.parentNode.insertBefore(oe,ue),It.appendChild(ue),null!=Rt?Rt:ue});return function(Ye,Ze){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(ue&&oe&&(oe.parentNode.insertBefore(ue,oe),oe.remove()),Promise.resolve())}}},1970:(Tn,gt,C)=>{"use strict";C.d(gt,{B:()=>xe,G:()=>U});class c{constructor(oe,Ke,Je,Se,De){this.id=Ke,this.name=Je,this.disableScroll=De,this.priority=1e6*Se+Ke,this.ctrl=oe}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const oe=this.ctrl.capture(this.name,this.id,this.priority);return oe&&this.disableScroll&&this.ctrl.disableScroll(this.id),oe}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(oe,Ke,Je,Se){this.id=Ke,this.disable=Je,this.disableScroll=Se,this.ctrl=oe}block(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.disableGesture(oe,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.enableGesture(oe,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const xe="backdrop-no-scroll",U=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(oe){var Ke;return new c(this,this.newID(),oe.name,null!==(Ke=oe.priority)&&void 0!==Ke?Ke:0,!!oe.disableScroll)}createBlocker(oe={}){return new Z(this,this.newID(),oe.disable,!!oe.disableScroll)}start(oe,Ke,Je){return this.canStart(oe)?(this.requestedStart.set(Ke,Je),!0):(this.requestedStart.delete(Ke),!1)}capture(oe,Ke,Je){if(!this.start(oe,Ke,Je))return!1;const Se=this.requestedStart;let De=-1e4;if(Se.forEach(Ye=>{De=Math.max(De,Ye)}),De===Je){this.capturedId=Ke,Se.clear();const Ye=new CustomEvent("ionGestureCaptured",{detail:{gestureName:oe}});return document.dispatchEvent(Ye),!0}return Se.delete(Ke),!1}release(oe){this.requestedStart.delete(oe),this.capturedId===oe&&(this.capturedId=void 0)}disableGesture(oe,Ke){let Je=this.disabledGestures.get(oe);void 0===Je&&(Je=new Set,this.disabledGestures.set(oe,Je)),Je.add(Ke)}enableGesture(oe,Ke){const Je=this.disabledGestures.get(oe);void 0!==Je&&Je.delete(Ke)}disableScroll(oe){this.disabledScroll.add(oe),1===this.disabledScroll.size&&document.body.classList.add(xe)}enableScroll(oe){this.disabledScroll.delete(oe),0===this.disabledScroll.size&&document.body.classList.remove(xe)}canStart(oe){return!(void 0!==this.capturedId||this.isDisabled(oe))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(oe){const Ke=this.disabledGestures.get(oe);return!!(Ke&&Ke.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,gt,C)=>{"use strict";C.r(gt),C.d(gt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ke,blockHardwareBackButton:()=>ue,shouldUseCloseWatcher:()=>U,startHardwareBackButton:()=>oe});var h=C(467),c=C(8476),Z=C(3664);C(9672);const U=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,ue=()=>{document.addEventListener("backbutton",()=>{})},oe=()=>{const Se=document;let De=!1;const Ye=()=>{if(De)return;let Ze=0,Xe=[];const ct=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(It,Vt){Xe.push({priority:It,handler:Vt,id:Ze++})}}});Se.dispatchEvent(ct);const Dt=function(){var It=(0,h.A)(function*(Vt){try{if(null!=Vt&&Vt.handler){const Et=Vt.handler(Rt);null!=Et&&(yield Et)}}catch(Et){console.error(Et)}});return function(Et){return It.apply(this,arguments)}}(),Rt=()=>{if(Xe.length>0){let It={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Xe.forEach(Vt=>{Vt.priority>=It.priority&&(It=Vt)}),De=!0,Xe=Xe.filter(Vt=>Vt.id!==It.id),Dt(It).then(()=>De=!1)}};Rt()};if(U()){let Ze;const Xe=()=>{null==Ze||Ze.destroy(),Ze=new c.w.CloseWatcher,Ze.onclose=()=>{Ye(),Xe()}};Xe()}else Se.addEventListener("backbutton",Ye)},Ke=100,Je=99},4920:(Tn,gt,C)=>{"use strict";C.d(gt,{a:()=>Ke,b:()=>Je,c:()=>Z,d:()=>Xe,e:()=>Vt,f:()=>Ze,g:()=>Se,h:()=>U,i:()=>oe,j:()=>ct,k:()=>xe,l:()=>Ye,m:()=>Dt,n:()=>It,o:()=>Et,p:()=>Rt,r:()=>De,s:()=>mt,t:()=>h});const h=(Ae,Qe=0)=>new Promise(ge=>{c(Ae,Qe,ge)}),c=(Ae,Qe=0,ge)=>{let Be,ke;const Pe={passive:!0},Pt=()=>{Be&&Be()},mn=vt=>{(void 0===vt||Ae===vt.target)&&(Pt(),ge(vt))};return Ae&&(Ae.addEventListener("webkitTransitionEnd",mn,Pe),Ae.addEventListener("transitionend",mn,Pe),ke=setTimeout(mn,Qe+500),Be=()=>{void 0!==ke&&(clearTimeout(ke),ke=void 0),Ae.removeEventListener("webkitTransitionEnd",mn,Pe),Ae.removeEventListener("transitionend",mn,Pe)}),Pt},Z=(Ae,Qe)=>{Ae.componentOnReady?Ae.componentOnReady().then(ge=>Qe(ge)):De(()=>Qe(Ae))},xe=Ae=>void 0!==Ae.componentOnReady,U=(Ae,Qe=[])=>{const ge={};return Qe.forEach(Be=>{Ae.hasAttribute(Be)&&(null!==Ae.getAttribute(Be)&&(ge[Be]=Ae.getAttribute(Be)),Ae.removeAttribute(Be))}),ge},ue=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],oe=(Ae,Qe)=>{let ge=ue;return Qe&&Qe.length>0&&(ge=ge.filter(Be=>!Qe.includes(Be))),U(Ae,ge)},Ke=(Ae,Qe,ge,Be)=>{var ke;if(typeof window<"u"){const Pe=window,_t=null===(ke=null==Pe?void 0:Pe.Ionic)||void 0===ke?void 0:ke.config;if(_t){const Pt=_t.get("_ael");if(Pt)return Pt(Ae,Qe,ge,Be);if(_t._ael)return _t._ael(Ae,Qe,ge,Be)}}return Ae.addEventListener(Qe,ge,Be)},Je=(Ae,Qe,ge,Be)=>{var ke;if(typeof window<"u"){const Pe=window,_t=null===(ke=null==Pe?void 0:Pe.Ionic)||void 0===ke?void 0:ke.config;if(_t){const Pt=_t.get("_rel");if(Pt)return Pt(Ae,Qe,ge,Be);if(_t._rel)return _t._rel(Ae,Qe,ge,Be)}}return Ae.removeEventListener(Qe,ge,Be)},Se=(Ae,Qe=Ae)=>Ae.shadowRoot||Qe,De=Ae=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ae):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ae):setTimeout(Ae),Ye=Ae=>!!Ae.shadowRoot&&!!Ae.attachShadow,Ze=Ae=>{if(Ae.focus(),Ae.classList.contains("ion-focusable")){const Qe=Ae.closest("ion-app");Qe&&Qe.setFocus([Ae])}},Xe=(Ae,Qe,ge,Be,ke)=>{if(Ae||Ye(Qe)){let Pe=Qe.querySelector("input.aux-input");Pe||(Pe=Qe.ownerDocument.createElement("input"),Pe.type="hidden",Pe.classList.add("aux-input"),Qe.appendChild(Pe)),Pe.disabled=ke,Pe.name=ge,Pe.value=Be||""}},ct=(Ae,Qe,ge)=>Math.max(Ae,Math.min(Qe,ge)),Dt=(Ae,Qe)=>{if(!Ae){const ge="ASSERT: "+Qe;throw console.error(ge),new Error(ge)}},Rt=Ae=>{if(Ae){const Qe=Ae.changedTouches;if(Qe&&Qe.length>0){const ge=Qe[0];return{x:ge.clientX,y:ge.clientY}}if(void 0!==Ae.pageX)return{x:Ae.pageX,y:Ae.pageY}}return{x:0,y:0}},It=Ae=>{const Qe="rtl"===document.dir;switch(Ae){case"start":return Qe;case"end":return!Qe;default:throw new Error(`"${Ae}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Vt=(Ae,Qe)=>{const ge=Ae._original||Ae;return{_original:Ae,emit:Et(ge.emit.bind(ge),Qe)}},Et=(Ae,Qe=0)=>{let ge;return(...Be)=>{clearTimeout(ge),ge=setTimeout(Ae,Qe,...Be)}},mt=(Ae,Qe)=>{if(null!=Ae||(Ae={}),null!=Qe||(Qe={}),Ae===Qe)return!0;const ge=Object.keys(Ae);if(ge.length!==Object.keys(Qe).length)return!1;for(const Be of ge)if(!(Be in Qe)||Ae[Be]!==Qe[Be])return!1;return!0}},5465:(Tn,gt,C)=>{"use strict";C.d(gt,{m:()=>Ze});var h=C(467),c=C(8476),Z=C(6411),xe=C(4929),U=C(4920),ue=C(3664),oe=C(9986);const Ke=Xe=>(0,oe.c)().duration(Xe?400:300),Je=Xe=>{let ct,Dt;const Rt=Xe.width+8,It=(0,oe.c)(),Vt=(0,oe.c)();Xe.isEndSide?(ct=Rt+"px",Dt="0px"):(ct=-Rt+"px",Dt="0px"),It.addElement(Xe.menuInnerEl).fromTo("transform",`translateX(${ct})`,`translateX(${Dt})`);const mt="ios"===(0,ue.b)(Xe),Ae=mt?.2:.25;return Vt.addElement(Xe.backdropEl).fromTo("opacity",.01,Ae),Ke(mt).addAnimation([It,Vt])},Se=Xe=>{let ct,Dt;const Rt=(0,ue.b)(Xe),It=Xe.width;Xe.isEndSide?(ct=-It+"px",Dt=It+"px"):(ct=It+"px",Dt=-It+"px");const Vt=(0,oe.c)().addElement(Xe.menuInnerEl).fromTo("transform",`translateX(${Dt})`,"translateX(0px)"),Et=(0,oe.c)().addElement(Xe.contentEl).fromTo("transform","translateX(0px)",`translateX(${ct})`),mt=(0,oe.c)().addElement(Xe.backdropEl).fromTo("opacity",.01,.32);return Ke("ios"===Rt).addAnimation([Vt,Et,mt])},De=Xe=>{const ct=(0,ue.b)(Xe),Dt=Xe.width*(Xe.isEndSide?-1:1)+"px",Rt=(0,oe.c)().addElement(Xe.contentEl).fromTo("transform","translateX(0px)",`translateX(${Dt})`);return Ke("ios"===ct).addAnimation(Rt)},Ze=(()=>{const Xe=new Map,ct=[],Dt=function(){var X=(0,h.A)(function*(fe){const se=yield Qe(fe,!0);return!!se&&se.open()});return function(se){return X.apply(this,arguments)}}(),Rt=function(){var X=(0,h.A)(function*(fe){const se=yield void 0!==fe?Qe(fe,!0):ge();return void 0!==se&&se.close()});return function(se){return X.apply(this,arguments)}}(),It=function(){var X=(0,h.A)(function*(fe){const se=yield Qe(fe,!0);return!!se&&se.toggle()});return function(se){return X.apply(this,arguments)}}(),Vt=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Qe(se);return ve&&(ve.disabled=!fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),Et=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Qe(se);return ve&&(ve.swipeGesture=fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),mt=function(){var X=(0,h.A)(function*(fe){if(null!=fe){const se=yield Qe(fe);return void 0!==se&&se.isOpen()}return void 0!==(yield ge())});return function(se){return X.apply(this,arguments)}}(),Ae=function(){var X=(0,h.A)(function*(fe){const se=yield Qe(fe);return!!se&&!se.disabled});return function(se){return X.apply(this,arguments)}}(),Qe=function(){var X=(0,h.A)(function*(fe,se=!1){if(yield H(),"start"===fe||"end"===fe){const Fe=ct.filter(sn=>sn.side===fe&&!sn.disabled);if(Fe.length>=1)return Fe.length>1&&se&&(0,xe.p)(`menuController queried for a menu on the "${fe}" side, but ${Fe.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Fe.map(sn=>sn.el)),Fe[0].el;const it=ct.filter(sn=>sn.side===fe);if(it.length>=1)return it.length>1&&se&&(0,xe.p)(`menuController queried for a menu on the "${fe}" side, but ${it.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,it.map(sn=>sn.el)),it[0].el}else if(null!=fe)return we(Fe=>Fe.menuId===fe);return we(Fe=>!Fe.disabled)||(ct.length>0?ct[0].el:void 0)});return function(se){return X.apply(this,arguments)}}(),ge=function(){var X=(0,h.A)(function*(){return yield H(),tt()});return function(){return X.apply(this,arguments)}}(),Be=function(){var X=(0,h.A)(function*(){return yield H(),on()});return function(){return X.apply(this,arguments)}}(),ke=function(){var X=(0,h.A)(function*(){return yield H(),ht()});return function(){return X.apply(this,arguments)}}(),Pe=(X,fe)=>{Xe.set(X,fe)},mn=function(){var X=(0,h.A)(function*(fe,se,ve){if(ht())return!1;if(se){const Fe=yield ge();Fe&&fe.el!==Fe&&(yield Fe.setOpen(!1,!1))}return fe._setOpen(se,ve)});return function(se,ve,Fe){return X.apply(this,arguments)}}(),tt=()=>we(X=>X._isOpen),on=()=>ct.map(X=>X.el),ht=()=>ct.some(X=>X.isAnimating),we=X=>{const fe=ct.find(X);if(void 0!==fe)return fe.el},H=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(fe=>(0,U.c)(X,fe))));return Pe("reveal",De),Pe("push",Se),Pe("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",X=>{const fe=tt();fe&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>fe.close())}),{registerAnimation:Pe,get:Qe,getMenus:Be,getOpen:ge,isEnabled:Ae,swipeGesture:Et,isAnimating:ke,isOpen:mt,enable:Vt,toggle:It,close:Rt,open:Dt,_getOpenSync:tt,_createAnimation:(X,fe)=>{const se=Xe.get(X);if(!se)throw new Error("animation not registered");return se(fe)},_register:X=>{ct.indexOf(X)<0&&ct.push(X)},_unregister:X=>{const fe=ct.indexOf(X);fe>-1&&ct.splice(fe,1)},_setOpen:mn}})()},8607:(Tn,gt,C)=>{"use strict";C.r(gt),C.d(gt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>Je});var h=C(1970);const c=(Ze,Xe,ct,Dt)=>{const Rt=Z(Ze)?{capture:!!Dt.capture,passive:!!Dt.passive}:!!Dt.capture;let It,Vt;return Ze.__zone_symbol__addEventListener?(It="__zone_symbol__addEventListener",Vt="__zone_symbol__removeEventListener"):(It="addEventListener",Vt="removeEventListener"),Ze[It](Xe,ct,Rt),()=>{Ze[Vt](Xe,ct,Rt)}},Z=Ze=>{if(void 0===xe)try{const Xe=Object.defineProperty({},"passive",{get:()=>{xe=!0}});Ze.addEventListener("optsTest",()=>{},Xe)}catch{xe=!1}return!!xe};let xe;const oe=Ze=>Ze instanceof Document?Ze:Ze.ownerDocument,Je=Ze=>{let Xe=!1,ct=!1,Dt=!0,Rt=!1;const It=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ze),Vt=It.canStart,Et=It.onWillStart,mt=It.onStart,Ae=It.onEnd,Qe=It.notCaptured,ge=It.onMove,Be=It.threshold,ke=It.passive,Pe=It.blurOnStart,_t={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Pt=((Ze,Xe,ct)=>{const Dt=ct*(Math.PI/180),Rt="x"===Ze,It=Math.cos(Dt),Vt=Xe*Xe;let Et=0,mt=0,Ae=!1,Qe=0;return{start(ge,Be){Et=ge,mt=Be,Qe=0,Ae=!0},detect(ge,Be){if(!Ae)return!1;const ke=ge-Et,Pe=Be-mt,_t=ke*ke+Pe*Pe;if(_tIt?1:mn<-It?-1:0,Ae=!1,!0},isGesture:()=>0!==Qe,getDirection:()=>Qe}})(It.direction,It.threshold,It.maxAngle),mn=h.G.createGesture({name:Ze.gestureName,priority:Ze.gesturePriority,disableScroll:Ze.disableScroll}),on=()=>{Xe&&(Rt=!1,ge&&ge(_t))},ht=()=>!!mn.capture()&&(Xe=!0,Dt=!1,_t.startX=_t.currentX,_t.startY=_t.currentY,_t.startTime=_t.currentTime,Et?Et(_t).then(H):H(),!0),H=()=>{Pe&&(()=>{if(typeof document<"u"){const Fe=document.activeElement;null!=Fe&&Fe.blur&&Fe.blur()}})(),mt&&mt(_t),Dt=!0},X=()=>{Xe=!1,ct=!1,Rt=!1,Dt=!0,mn.release()},fe=Fe=>{const it=Xe,sn=Dt;if(X(),sn){if(Se(_t,Fe),it)return void(Ae&&Ae(_t));Qe&&Qe(_t)}},se=((Ze,Xe,ct,Dt,Rt)=>{let It,Vt,Et,mt,Ae,Qe,ge,Be=0;const ke=we=>{Be=Date.now()+2e3,Xe(we)&&(!Vt&&ct&&(Vt=c(Ze,"touchmove",ct,Rt)),Et||(Et=c(we.target,"touchend",_t,Rt)),mt||(mt=c(we.target,"touchcancel",_t,Rt)))},Pe=we=>{Be>Date.now()||Xe(we)&&(!Qe&&ct&&(Qe=c(oe(Ze),"mousemove",ct,Rt)),ge||(ge=c(oe(Ze),"mouseup",Pt,Rt)))},_t=we=>{mn(),Dt&&Dt(we)},Pt=we=>{vt(),Dt&&Dt(we)},mn=()=>{Vt&&Vt(),Et&&Et(),mt&&mt(),Vt=Et=mt=void 0},vt=()=>{Qe&&Qe(),ge&&ge(),Qe=ge=void 0},tt=()=>{mn(),vt()},on=(we=!0)=>{we?(It||(It=c(Ze,"touchstart",ke,Rt)),Ae||(Ae=c(Ze,"mousedown",Pe,Rt))):(It&&It(),Ae&&Ae(),It=Ae=void 0,tt())};return{enable:on,stop:tt,destroy:()=>{on(!1),Dt=ct=Xe=void 0}}})(It.el,Fe=>{const it=Ye(Fe);return!(ct||!Dt||(De(Fe,_t),_t.startX=_t.currentX,_t.startY=_t.currentY,_t.startTime=_t.currentTime=it,_t.velocityX=_t.velocityY=_t.deltaX=_t.deltaY=0,_t.event=Fe,Vt&&!1===Vt(_t))||(mn.release(),!mn.start()))&&(ct=!0,0===Be?ht():(Pt.start(_t.startX,_t.startY),!0))},Fe=>{Xe?!Rt&&Dt&&(Rt=!0,Se(_t,Fe),requestAnimationFrame(on)):(Se(_t,Fe),Pt.detect(_t.currentX,_t.currentY)&&(!Pt.isGesture()||!ht())&&ve())},fe,{capture:!1,passive:ke}),ve=()=>{X(),se.stop(),Qe&&Qe(_t)};return{enable(Fe=!0){Fe||(Xe&&fe(void 0),X()),se.enable(Fe)},destroy(){mn.destroy(),se.destroy()}}},Se=(Ze,Xe)=>{if(!Xe)return;const ct=Ze.currentX,Dt=Ze.currentY,Rt=Ze.currentTime;De(Xe,Ze);const It=Ze.currentX,Vt=Ze.currentY,mt=(Ze.currentTime=Ye(Xe))-Rt;if(mt>0&&mt<100){const Qe=(Vt-Dt)/mt;Ze.velocityX=(It-ct)/mt*.7+.3*Ze.velocityX,Ze.velocityY=.7*Qe+.3*Ze.velocityY}Ze.deltaX=It-Ze.startX,Ze.deltaY=Vt-Ze.startY,Ze.event=Xe},De=(Ze,Xe)=>{let ct=0,Dt=0;if(Ze){const Rt=Ze.changedTouches;if(Rt&&Rt.length>0){const It=Rt[0];ct=It.clientX,Dt=It.clientY}else void 0!==Ze.pageX&&(ct=Ze.pageX,Dt=Ze.pageY)}Xe.currentX=ct,Xe.currentY=Dt},Ye=Ze=>Ze.timeStamp||Date.now()},9672:(Tn,gt,C)=>{"use strict";C.d(gt,{B:()=>ue,a:()=>Ue,b:()=>Tr,c:()=>sn,d:()=>En,e:()=>sr,f:()=>ht,g:()=>Sn,h:()=>tt,i:()=>Kt,j:()=>ir,k:()=>oe,r:()=>Kn,w:()=>ni});var h=C(467);var xe=Object.defineProperty,ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},oe=z=>{const me=new URL(z,W.$resourcesUrl$);return me.origin!==wt.location.origin?me.href:me.pathname},Ke={},Ye=z=>"object"==(z=typeof z)||"function"===z;function Ze(z){var me,Oe,et;return null!=(et=null==(Oe=null==(me=z.head)?void 0:me.querySelector('meta[name="csp-nonce"]'))?void 0:Oe.getAttribute("content"))?et:void 0}((z,me)=>{for(var Oe in me)xe(z,Oe,{get:me[Oe],enumerable:!0})})({},{err:()=>Dt,map:()=>Rt,ok:()=>ct,unwrap:()=>It,unwrapErr:()=>Vt});var ct=z=>({isOk:!0,isErr:!1,value:z}),Dt=z=>({isOk:!1,isErr:!0,value:z});function Rt(z,me){if(z.isOk){const Oe=me(z.value);return Oe instanceof Promise?Oe.then(et=>ct(et)):ct(Oe)}if(z.isErr)return Dt(z.value);throw"should never get here"}var It=z=>{if(z.isOk)return z.value;throw z.value},Vt=z=>{if(z.isErr)return z.value;throw z.value},ke="s-id",Pe="sty-id",mn="slot-fb{display:contents}slot-fb[hidden]{display:none}",vt="http://www.w3.org/1999/xlink",tt=(z,me,...Oe)=>{let et=null,St=null,At=null,Yt=!1,rn=!1;const cn=[],yn=zn=>{for(let lr=0;lrzn[lr]).join(" "))}}if("function"==typeof z)return z(null===me?{}:me,cn,H);const Fn=on(z,null);return Fn.$attrs$=me,cn.length>0&&(Fn.$children$=cn),Fn.$key$=St,Fn.$name$=At,Fn},on=(z,me)=>({$flags$:0,$tag$:z,$text$:me,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ht={},H={forEach:(z,me)=>z.map(X).forEach(me),map:(z,me)=>z.map(X).map(me).map(fe)},X=z=>({vattrs:z.$attrs$,vchildren:z.$children$,vkey:z.$key$,vname:z.$name$,vtag:z.$tag$,vtext:z.$text$}),fe=z=>{if("function"==typeof z.vtag){const Oe={...z.vattrs};return z.vkey&&(Oe.key=z.vkey),z.vname&&(Oe.name=z.vname),tt(z.vtag,Oe,...z.vchildren||[])}const me=on(z.vtag,z.vtext);return me.$attrs$=z.vattrs,me.$children$=z.vchildren,me.$key$=z.vkey,me.$name$=z.vname,me},ve=(z,me,Oe,et,St,At,Yt)=>{let rn,cn,yn,Fn;if(1===At.nodeType){for(rn=At.getAttribute("c-id"),rn&&(cn=rn.split("."),(cn[0]===Yt||"0"===cn[0])&&(yn={$flags$:0,$hostId$:cn[0],$nodeId$:cn[1],$depth$:cn[2],$index$:cn[3],$tag$:At.tagName.toLowerCase(),$elm$:At,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},me.push(yn),At.removeAttribute("c-id"),z.$children$||(z.$children$=[]),z.$children$[yn.$index$]=yn,z=yn,et&&"0"===yn.$depth$&&(et[yn.$index$]=yn.$elm$))),Fn=At.childNodes.length-1;Fn>=0;Fn--)ve(z,me,Oe,et,St,At.childNodes[Fn],Yt);if(At.shadowRoot)for(Fn=At.shadowRoot.childNodes.length-1;Fn>=0;Fn--)ve(z,me,Oe,et,St,At.shadowRoot.childNodes[Fn],Yt)}else if(8===At.nodeType)cn=At.nodeValue.split("."),(cn[1]===Yt||"0"===cn[1])&&(rn=cn[0],yn={$flags$:0,$hostId$:cn[1],$nodeId$:cn[2],$depth$:cn[3],$index$:cn[4],$elm$:At,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===rn?(yn.$elm$=At.nextSibling,yn.$elm$&&3===yn.$elm$.nodeType&&(yn.$text$=yn.$elm$.textContent,me.push(yn),At.remove(),z.$children$||(z.$children$=[]),z.$children$[yn.$index$]=yn,et&&"0"===yn.$depth$&&(et[yn.$index$]=yn.$elm$))):yn.$hostId$===Yt&&("s"===rn?(yn.$tag$="slot",At["s-sn"]=cn[5]?yn.$name$=cn[5]:"",At["s-sr"]=!0,et&&(yn.$elm$=he.createElement(yn.$tag$),yn.$name$&&yn.$elm$.setAttribute("name",yn.$name$),At.parentNode.insertBefore(yn.$elm$,At),At.remove(),"0"===yn.$depth$&&(et[yn.$index$]=yn.$elm$)),Oe.push(yn),z.$children$||(z.$children$=[]),z.$children$[yn.$index$]=yn):"r"===rn&&(et?At.remove():(St["s-cr"]=At,At["s-cn"]=!0))));else if(z&&"style"===z.$tag$){const zn=on(null,At.textContent);zn.$elm$=At,zn.$index$="0",z.$children$=[zn]}},Fe=(z,me)=>{if(1===z.nodeType){let Oe=0;for(;Oeoi.push(z),Sn=z=>mi(z).$modeName$,Kt=z=>mi(z).$hostElement$,En=(z,me,Oe)=>{const et=Kt(z);return{emit:St=>On(et,me,{bubbles:!!(4&Oe),composed:!!(2&Oe),cancelable:!!(1&Oe),detail:St})}},On=(z,me,Oe)=>{const et=W.ce(me,Oe);return z.dispatchEvent(et),et},Qn=new WeakMap,nr=(z,me,Oe)=>{let et=No.get(z);In&&Oe?(et=et||new CSSStyleSheet,"string"==typeof et?et=me:et.replaceSync(me)):et=me,No.set(z,et)},vr=(z,me,Oe)=>{var et;const St=Jn(me,Oe),At=No.get(St);if(z=11===z.nodeType?z:he,At)if("string"==typeof At){let rn,Yt=Qn.get(z=z.head||z);if(Yt||Qn.set(z,Yt=new Set),!Yt.has(St)){if(z.host&&(rn=z.querySelector(`[${Pe}="${St}"]`)))rn.innerHTML=At;else{rn=he.createElement("style"),rn.innerHTML=At;const cn=null!=(et=W.$nonce$)?et:Ze(he);null!=cn&&rn.setAttribute("nonce",cn),z.insertBefore(rn,z.querySelector("link"))}4&me.$flags$&&(rn.innerHTML+=mn),Yt&&Yt.add(St)}}else z.adoptedStyleSheets.includes(At)||(z.adoptedStyleSheets=[...z.adoptedStyleSheets,At]);return St},Jn=(z,me)=>"sc-"+(me&&32&z.$flags$?z.$tagName$+"-"+me:z.$tagName$),nt=z=>z.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Nt=(z,me,Oe,et,St,At)=>{if(Oe!==et){let Yt=ao(z,me),rn=me.toLowerCase();if("class"===me){const cn=z.classList,yn=fn(Oe),Fn=fn(et);cn.remove(...yn.filter(zn=>zn&&!Fn.includes(zn))),cn.add(...Fn.filter(zn=>zn&&!yn.includes(zn)))}else if("style"===me){for(const cn in Oe)(!et||null==et[cn])&&(cn.includes("-")?z.style.removeProperty(cn):z.style[cn]="");for(const cn in et)(!Oe||et[cn]!==Oe[cn])&&(cn.includes("-")?z.style.setProperty(cn,et[cn]):z.style[cn]=et[cn])}else if("key"!==me)if("ref"===me)et&&et(z);else if(Yt||"o"!==me[0]||"n"!==me[1]){const cn=Ye(et);if((Yt||cn&&null!==et)&&!St)try{if(z.tagName.includes("-"))z[me]=et;else{const Fn=null==et?"":et;"list"===me?Yt=!1:(null==Oe||z[me]!=Fn)&&(z[me]=Fn)}}catch{}let yn=!1;rn!==(rn=rn.replace(/^xlink\:?/,""))&&(me=rn,yn=!0),null==et||!1===et?(!1!==et||""===z.getAttribute(me))&&(yn?z.removeAttributeNS(vt,me):z.removeAttribute(me)):(!Yt||4&At||St)&&!cn&&(et=!0===et?"":et,yn?z.setAttributeNS(vt,me,et):z.setAttribute(me,et))}else if(me="-"===me[2]?me.slice(3):ao(wt,rn)?rn.slice(2):rn[2]+me.slice(3),Oe||et){const cn=me.endsWith(pn);me=me.replace(Sr,""),Oe&&W.rel(z,me,Oe,cn),et&&W.ael(z,me,et,cn)}}},Ht=/\s/,fn=z=>z?z.split(Ht):[],pn="Capture",Sr=new RegExp(pn+"$"),Pn=(z,me,Oe)=>{const et=11===me.$elm$.nodeType&&me.$elm$.host?me.$elm$.host:me.$elm$,St=z&&z.$attrs$||Ke,At=me.$attrs$||Ke;for(const Yt of Nn(Object.keys(St)))Yt in At||Nt(et,Yt,St[Yt],void 0,Oe,me.$flags$);for(const Yt of Nn(Object.keys(At)))Nt(et,Yt,St[Yt],At[Yt],Oe,me.$flags$)};function Nn(z){return z.includes("ref")?[...z.filter(me=>"ref"!==me),"ref"]:z}var gn,en,Er,Ir=!1,Nr=!1,Zn=!1,Dr=!1,tr=(z,me,Oe,et)=>{var St;const At=me.$children$[Oe];let rn,cn,yn,Yt=0;if(Ir||(Zn=!0,"slot"===At.$tag$&&(gn&&et.classList.add(gn+"-s"),At.$flags$|=At.$children$?2:1)),null!==At.$text$)rn=At.$elm$=he.createTextNode(At.$text$);else if(1&At.$flags$)rn=At.$elm$=he.createTextNode("");else{if(Dr||(Dr="svg"===At.$tag$),rn=At.$elm$=he.createElementNS(Dr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&At.$flags$?"slot-fb":At.$tag$),Dr&&"foreignObject"===At.$tag$&&(Dr=!1),Pn(null,At,Dr),(z=>null!=z)(gn)&&rn["s-si"]!==gn&&rn.classList.add(rn["s-si"]=gn),At.$children$)for(Yt=0;Yt{W.$flags$|=1;const me=z.closest(Er.toLowerCase());if(null!=me){const Oe=Array.from(me.childNodes).find(St=>St["s-cr"]),et=Array.from(z.childNodes);for(const St of Oe?et.reverse():et)null!=St["s-sh"]&&(ye(me,St,null!=Oe?Oe:null),St["s-sh"]=void 0,Zn=!0)}W.$flags$&=-2},mr=(z,me)=>{W.$flags$|=1;const Oe=Array.from(z.childNodes);if(z["s-sr"]){let et=z;for(;et=et.nextSibling;)et&&et["s-sn"]===z["s-sn"]&&et["s-sh"]===Er&&Oe.push(et)}for(let et=Oe.length-1;et>=0;et--){const St=Oe[et];St["s-hn"]!==Er&&St["s-ol"]&&(ye(Ai(St),St,ii(St)),St["s-ol"].remove(),St["s-ol"]=void 0,St["s-sh"]=void 0,Zn=!0),me&&mr(St,me)}W.$flags$&=-2},ur=(z,me,Oe,et,St,At)=>{let rn,Yt=z["s-cr"]&&z["s-cr"].parentNode||z;for(Yt.shadowRoot&&Yt.tagName===Er&&(Yt=Yt.shadowRoot);St<=At;++St)et[St]&&(rn=tr(null,Oe,St,z),rn&&(et[St].$elm$=rn,ye(Yt,rn,ii(me))))},Pr=(z,me,Oe)=>{for(let et=me;et<=Oe;++et){const St=z[et];if(St){const At=St.$elm$;ce(St),At&&(Nr=!0,At["s-ol"]?At["s-ol"].remove():mr(At,!0),At.remove())}}},kr=(z,me,Oe=!1)=>z.$tag$===me.$tag$&&("slot"===z.$tag$?z.$name$===me.$name$:!!Oe||z.$key$===me.$key$),ii=z=>z&&z["s-ol"]||z,Ai=z=>(z["s-ol"]?z["s-ol"]:z).parentNode,Qr=(z,me,Oe=!1)=>{const et=me.$elm$=z.$elm$,St=z.$children$,At=me.$children$,Yt=me.$tag$,rn=me.$text$;let cn;null===rn?(Dr="svg"===Yt||"foreignObject"!==Yt&&Dr,"slot"!==Yt||Ir?Pn(z,me,Dr):z.$name$!==me.$name$&&(me.$elm$["s-sn"]=me.$name$||"",Jr(me.$elm$.parentElement)),null!==St&&null!==At?((z,me,Oe,et,St=!1)=>{let jr,br,At=0,Yt=0,rn=0,cn=0,yn=me.length-1,Fn=me[0],zn=me[yn],lr=et.length-1,Bn=et[0],qr=et[lr];for(;At<=yn&&Yt<=lr;)if(null==Fn)Fn=me[++At];else if(null==zn)zn=me[--yn];else if(null==Bn)Bn=et[++Yt];else if(null==qr)qr=et[--lr];else if(kr(Fn,Bn,St))Qr(Fn,Bn,St),Fn=me[++At],Bn=et[++Yt];else if(kr(zn,qr,St))Qr(zn,qr,St),zn=me[--yn],qr=et[--lr];else if(kr(Fn,qr,St))("slot"===Fn.$tag$||"slot"===qr.$tag$)&&mr(Fn.$elm$.parentNode,!1),Qr(Fn,qr,St),ye(z,Fn.$elm$,zn.$elm$.nextSibling),Fn=me[++At],qr=et[--lr];else if(kr(zn,Bn,St))("slot"===Fn.$tag$||"slot"===qr.$tag$)&&mr(zn.$elm$.parentNode,!1),Qr(zn,Bn,St),ye(z,zn.$elm$,Fn.$elm$),zn=me[--yn],Bn=et[++Yt];else{for(rn=-1,cn=At;cn<=yn;++cn)if(me[cn]&&null!==me[cn].$key$&&me[cn].$key$===Bn.$key$){rn=cn;break}rn>=0?(br=me[rn],br.$tag$!==Bn.$tag$?jr=tr(me&&me[Yt],Oe,rn,z):(Qr(br,Bn,St),me[rn]=void 0,jr=br.$elm$),Bn=et[++Yt]):(jr=tr(me&&me[Yt],Oe,Yt,z),Bn=et[++Yt]),jr&&ye(Ai(Fn.$elm$),jr,ii(Fn.$elm$))}At>yn?ur(z,null==et[lr+1]?null:et[lr+1].$elm$,Oe,et,Yt,lr):Yt>lr&&Pr(me,At,yn)})(et,St,me,At,Oe):null!==At?(null!==z.$text$&&(et.textContent=""),ur(et,null,me,At,0,At.length-1)):null!==St&&Pr(St,0,St.length-1),Dr&&"svg"===Yt&&(Dr=!1)):(cn=et["s-cr"])?cn.parentNode.textContent=rn:z.$text$!==rn&&(et.data=rn)},pe=z=>{const me=z.childNodes;for(const Oe of me)if(1===Oe.nodeType){if(Oe["s-sr"]){const et=Oe["s-sn"];Oe.hidden=!1;for(const St of me)if(St!==Oe)if(St["s-hn"]!==Oe["s-hn"]||""!==et){if(1===St.nodeType&&(et===St.getAttribute("slot")||et===St["s-sn"])||3===St.nodeType&&et===St["s-sn"]){Oe.hidden=!0;break}}else if(1===St.nodeType||3===St.nodeType&&""!==St.textContent.trim()){Oe.hidden=!0;break}}pe(Oe)}},rt=[],Mt=z=>{let me,Oe,et;for(const St of z.childNodes){if(St["s-sr"]&&(me=St["s-cr"])&&me.parentNode){Oe=me.parentNode.childNodes;const At=St["s-sn"];for(et=Oe.length-1;et>=0;et--)if(me=Oe[et],!(me["s-cn"]||me["s-nr"]||me["s-hn"]===St["s-hn"]||me["s-sh"]&&me["s-sh"]===St["s-hn"]))if(ut(me,At)){let Yt=rt.find(rn=>rn.$nodeToRelocate$===me);Nr=!0,me["s-sn"]=me["s-sn"]||At,Yt?(Yt.$nodeToRelocate$["s-sh"]=St["s-hn"],Yt.$slotRefNode$=St):(me["s-sh"]=St["s-hn"],rt.push({$slotRefNode$:St,$nodeToRelocate$:me})),me["s-sr"]&&rt.map(rn=>{ut(rn.$nodeToRelocate$,me["s-sn"])&&(Yt=rt.find(cn=>cn.$nodeToRelocate$===me),Yt&&!rn.$slotRefNode$&&(rn.$slotRefNode$=Yt.$slotRefNode$))})}else rt.some(Yt=>Yt.$nodeToRelocate$===me)||rt.push({$nodeToRelocate$:me})}1===St.nodeType&&Mt(St)}},ut=(z,me)=>1===z.nodeType?null===z.getAttribute("slot")&&""===me||z.getAttribute("slot")===me:z["s-sn"]===me||""===me,ce=z=>{z.$attrs$&&z.$attrs$.ref&&z.$attrs$.ref(null),z.$children$&&z.$children$.map(ce)},ye=(z,me,Oe)=>{const et=null==z?void 0:z.insertBefore(me,Oe);return Lt(me,z),et},ze=z=>z?z["s-rsc"]||z["s-si"]||z["s-sc"]||ze(z.parentElement):void 0,Lt=(z,me)=>{var Oe,et,St;if(z&&me){const At=z["s-rsc"],Yt=ze(me);At&&null!=(Oe=z.classList)&&Oe.contains(At)&&z.classList.remove(At),Yt&&(z["s-rsc"]=Yt,(null==(et=z.classList)||!et.contains(Yt))&&(null==(St=z.classList)||St.add(Yt)))}},dt=(z,me)=>{me&&!z.$onRenderResolve$&&me["s-p"]&&me["s-p"].push(new Promise(Oe=>z.$onRenderResolve$=Oe))},lt=(z,me)=>{if(z.$flags$|=16,!(4&z.$flags$))return dt(z,z.$ancestorComponent$),ni(()=>Wt(z,me));z.$flags$|=512},Wt=(z,me)=>{const et=z.$lazyInstance$;let St;return me&&(z.$flags$|=256,z.$queuedListeners$&&(z.$queuedListeners$.map(([At,Yt])=>dr(et,At,Yt)),z.$queuedListeners$=void 0),St=dr(et,"componentWillLoad")),St=tn(St,()=>dr(et,"componentWillRender")),tn(St,()=>Yn(z,et,me))},tn=(z,me)=>vn(z)?z.then(me):me(),vn=z=>z instanceof Promise||z&&z.then&&"function"==typeof z.then,Yn=function(){var z=(0,h.A)(function*(me,Oe,et){var St;const At=me.$hostElement$,rn=At["s-rc"];et&&(z=>{const me=z.$cmpMeta$,Oe=z.$hostElement$,et=me.$flags$,At=vr(Oe.shadowRoot?Oe.shadowRoot:Oe.getRootNode(),me,z.$modeName$);10&et&&(Oe["s-sc"]=At,Oe.classList.add(At+"-h"),2&et&&Oe.classList.add(At+"-s"))})(me);dn(me,Oe,At,et),rn&&(rn.map(yn=>yn()),At["s-rc"]=void 0);{const yn=null!=(St=At["s-p"])?St:[],Fn=()=>Cn(me);0===yn.length?Fn():(Promise.all(yn).then(Fn),me.$flags$|=4,yn.length=0)}});return function(Oe,et,St){return z.apply(this,arguments)}}(),dn=(z,me,Oe,et)=>{try{me=me.render&&me.render(),z.$flags$&=-17,z.$flags$|=2,((z,me,Oe=!1)=>{var et,St,At,Yt,rn;const cn=z.$hostElement$,yn=z.$cmpMeta$,Fn=z.$vnode$||on(null,null),zn=(z=>z&&z.$tag$===ht)(me)?me:tt(null,null,me);if(Er=cn.tagName,yn.$attrsToReflect$&&(zn.$attrs$=zn.$attrs$||{},yn.$attrsToReflect$.map(([lr,Bn])=>zn.$attrs$[Bn]=cn[lr])),Oe&&zn.$attrs$)for(const lr of Object.keys(zn.$attrs$))cn.hasAttribute(lr)&&!["key","ref","style","class"].includes(lr)&&(zn.$attrs$[lr]=cn[lr]);if(zn.$tag$=null,zn.$flags$|=4,z.$vnode$=zn,zn.$elm$=Fn.$elm$=cn.shadowRoot||cn,gn=cn["s-sc"],Ir=!!(1&yn.$flags$),en=cn["s-cr"],Nr=!1,Qr(Fn,zn,Oe),W.$flags$|=1,Zn){Mt(zn.$elm$);for(const lr of rt){const Bn=lr.$nodeToRelocate$;if(!Bn["s-ol"]){const qr=he.createTextNode("");qr["s-nr"]=Bn,ye(Bn.parentNode,Bn["s-ol"]=qr,Bn)}}for(const lr of rt){const Bn=lr.$nodeToRelocate$,qr=lr.$slotRefNode$;if(qr){const jr=qr.parentNode;let br=qr.nextSibling;if(br&&1===br.nodeType){let wi=null==(et=Bn["s-ol"])?void 0:et.previousSibling;for(;wi;){let Ni=null!=(St=wi["s-nr"])?St:null;if(Ni&&Ni["s-sn"]===Bn["s-sn"]&&jr===Ni.parentNode){for(Ni=Ni.nextSibling;Ni===Bn||null!=Ni&&Ni["s-sr"];)Ni=null==Ni?void 0:Ni.nextSibling;if(!Ni||!Ni["s-nr"]){br=Ni;break}}wi=wi.previousSibling}}(!br&&jr!==Bn.parentNode||Bn.nextSibling!==br)&&Bn!==br&&(ye(jr,Bn,br),1===Bn.nodeType&&(Bn.hidden=null!=(At=Bn["s-ih"])&&At)),Bn&&"function"==typeof qr["s-rf"]&&qr["s-rf"](Bn)}else 1===Bn.nodeType&&(Oe&&(Bn["s-ih"]=null!=(Yt=Bn.hidden)&&Yt),Bn.hidden=!0)}}if(Nr&&pe(zn.$elm$),W.$flags$&=-2,rt.length=0,2&yn.$flags$)for(const lr of zn.$elm$.childNodes)lr["s-hn"]!==Er&&!lr["s-sh"]&&(Oe&&null==lr["s-ih"]&&(lr["s-ih"]=null!=(rn=lr.hidden)&&rn),lr.hidden=!0);en=void 0})(z,me,et)}catch(St){ui(St,z.$hostElement$)}return null},Cn=z=>{const Oe=z.$hostElement$,St=z.$lazyInstance$,At=z.$ancestorComponent$;dr(St,"componentDidRender"),64&z.$flags$?dr(St,"componentDidUpdate"):(z.$flags$|=64,$r(Oe),dr(St,"componentDidLoad"),z.$onReadyResolve$(Oe),At||Ar()),z.$onInstanceResolve$(Oe),z.$onRenderResolve$&&(z.$onRenderResolve$(),z.$onRenderResolve$=void 0),512&z.$flags$&&ot(()=>lt(z,!1)),z.$flags$&=-517},ir=z=>{{const me=mi(z),Oe=me.$hostElement$.isConnected;return Oe&&2==(18&me.$flags$)&<(me,!1),Oe}},Ar=z=>{$r(he.documentElement),ot(()=>On(wt,"appload",{detail:{namespace:"ionic"}}))},dr=(z,me,Oe)=>{if(z&&z[me])try{return z[me](Oe)}catch(et){ui(et)}},$r=z=>z.classList.add("hydrated"),Ri=(z,me,Oe)=>{var et;const St=z.prototype;if(me.$members$){z.watchers&&(me.$watchers$=z.watchers);const At=Object.entries(me.$members$);if(At.map(([Yt,[rn]])=>{31&rn||2&Oe&&32&rn?Object.defineProperty(St,Yt,{get(){return((z,me)=>mi(this).$instanceValues$.get(me))(0,Yt)},set(cn){((z,me,Oe,et)=>{const St=mi(z);if(!St)throw new Error(`Couldn't find host element for "${et.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const At=St.$hostElement$,Yt=St.$instanceValues$.get(me),rn=St.$flags$,cn=St.$lazyInstance$;Oe=((z,me)=>null==z||Ye(z)?z:4&me?"false"!==z&&(""===z||!!z):2&me?parseFloat(z):1&me?String(z):z)(Oe,et.$members$[me][0]);const yn=Number.isNaN(Yt)&&Number.isNaN(Oe);if((!(8&rn)||void 0===Yt)&&Oe!==Yt&&!yn&&(St.$instanceValues$.set(me,Oe),cn)){if(et.$watchers$&&128&rn){const zn=et.$watchers$[me];zn&&zn.map(lr=>{try{cn[lr](Oe,Yt,me)}catch(Bn){ui(Bn,At)}})}2==(18&rn)&<(St,!1)}})(this,Yt,cn,me)},configurable:!0,enumerable:!0}):1&Oe&&64&rn&&Object.defineProperty(St,Yt,{value(...cn){var yn;const Fn=mi(this);return null==(yn=null==Fn?void 0:Fn.$onInstancePromise$)?void 0:yn.then(()=>{var zn;return null==(zn=Fn.$lazyInstance$)?void 0:zn[Yt](...cn)})}})}),1&Oe){const Yt=new Map;St.attributeChangedCallback=function(rn,cn,yn){W.jmp(()=>{var Fn;const zn=Yt.get(rn);if(this.hasOwnProperty(zn))yn=this[zn],delete this[zn];else{if(St.hasOwnProperty(zn)&&"number"==typeof this[zn]&&this[zn]==yn)return;if(null==zn){const lr=mi(this),Bn=null==lr?void 0:lr.$flags$;if(Bn&&!(8&Bn)&&128&Bn&&yn!==cn){const qr=lr.$lazyInstance$,jr=null==(Fn=me.$watchers$)?void 0:Fn[rn];null==jr||jr.forEach(br=>{null!=qr[br]&&qr[br].call(qr,yn,cn,rn)})}return}}this[zn]=(null!==yn||"boolean"!=typeof this[zn])&&yn})},z.observedAttributes=Array.from(new Set([...Object.keys(null!=(et=me.$watchers$)?et:{}),...At.filter(([rn,cn])=>15&cn[0]).map(([rn,cn])=>{var yn;const Fn=cn[1]||rn;return Yt.set(Fn,rn),512&cn[0]&&(null==(yn=me.$attrsToReflect$)||yn.push([rn,Fn])),Fn})]))}}return z},gi=function(){var z=(0,h.A)(function*(me,Oe,et,St){let At;if(!(32&Oe.$flags$)){if(Oe.$flags$|=32,et.$lazyBundleId$){if(At=Eo(et),At.then){const Fn=()=>{};At=yield At,Fn()}At.isProxied||(et.$watchers$=At.watchers,Ri(At,et,2),At.isProxied=!0);const yn=()=>{};Oe.$flags$|=8;try{new At(Oe)}catch(Fn){ui(Fn)}Oe.$flags$&=-9,Oe.$flags$|=128,yn(),pr(Oe.$lazyInstance$)}else At=me.constructor,customElements.whenDefined(et.$tagName$).then(()=>Oe.$flags$|=128);if(At.style){let yn=At.style;"string"!=typeof yn&&(yn=yn[Oe.$modeName$=(z=>oi.map(me=>me(z)).find(me=>!!me))(me)]);const Fn=Jn(et,Oe.$modeName$);if(!No.has(Fn)){const zn=()=>{};nr(Fn,yn,!!(1&et.$flags$)),zn()}}}const Yt=Oe.$ancestorComponent$,rn=()=>lt(Oe,!0);Yt&&Yt["s-rc"]?Yt["s-rc"].push(rn):rn()});return function(Oe,et,St,At){return z.apply(this,arguments)}}(),pr=z=>{dr(z,"connectedCallback")},ne=z=>{const me=z["s-cr"]=he.createComment("");me["s-cn"]=!0,ye(z,me,z.firstChild)},ee=z=>{dr(z,"disconnectedCallback")},$e=function(){var z=(0,h.A)(function*(me){if(!(1&W.$flags$)){const Oe=mi(me);Oe.$rmListeners$&&(Oe.$rmListeners$.map(et=>et()),Oe.$rmListeners$=void 0),null!=Oe&&Oe.$lazyInstance$?ee(Oe.$lazyInstance$):null!=Oe&&Oe.$onReadyPromise$&&Oe.$onReadyPromise$.then(()=>ee(Oe.$lazyInstance$))}});return function(Oe){return z.apply(this,arguments)}}(),x=z=>{const me=z.cloneNode;z.cloneNode=function(Oe){const et=this,St=et.shadowRoot&&Le,At=me.call(et,!!St&&Oe);if(!St&&Oe){let rn,cn,Yt=0;const yn=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Yt!et.childNodes[Yt][Fn]),rn&&(At.__appendChild?At.__appendChild(rn.cloneNode(!0)):At.appendChild(rn.cloneNode(!0))),cn&&At.appendChild(et.childNodes[Yt].cloneNode(!0))}return At}},te=z=>{z.__appendChild=z.appendChild,z.appendChild=function(me){const Oe=me["s-sn"]=Fr(me),et=Or(this.childNodes,Oe,this.tagName);if(et){const St=zr(et,Oe),At=St[St.length-1],Yt=ye(At.parentNode,me,At.nextSibling);return pe(this),Yt}return this.__appendChild(me)}},Te=z=>{z.__removeChild=z.removeChild,z.removeChild=function(me){if(me&&typeof me["s-sn"]<"u"){const Oe=Or(this.childNodes,me["s-sn"],this.tagName);if(Oe){const St=zr(Oe,me["s-sn"]).find(At=>At===me);if(St)return St.remove(),void pe(this)}}return this.__removeChild(me)}},He=z=>{const me=z.prepend;z.prepend=function(...Oe){Oe.forEach(et=>{"string"==typeof et&&(et=this.ownerDocument.createTextNode(et));const St=et["s-sn"]=Fr(et),At=Or(this.childNodes,St,this.tagName);if(At){const Yt=document.createTextNode("");Yt["s-nr"]=et,At["s-cr"].parentNode.__appendChild(Yt),et["s-ol"]=Yt;const cn=zr(At,St)[0];return ye(cn.parentNode,et,cn.nextSibling)}return 1===et.nodeType&&et.getAttribute("slot")&&(et.hidden=!0),me.call(this,et)})}},Tt=z=>{z.append=function(...me){me.forEach(Oe=>{"string"==typeof Oe&&(Oe=this.ownerDocument.createTextNode(Oe)),this.appendChild(Oe)})}},Jt=z=>{const me=z.insertAdjacentHTML;z.insertAdjacentHTML=function(Oe,et){if("afterbegin"!==Oe&&"beforeend"!==Oe)return me.call(this,Oe,et);const St=this.ownerDocument.createElement("_");let At;if(St.innerHTML=et,"afterbegin"===Oe)for(;At=St.firstChild;)this.prepend(At);else if("beforeend"===Oe)for(;At=St.firstChild;)this.append(At)}},ln=z=>{z.insertAdjacentText=function(me,Oe){this.insertAdjacentHTML(me,Oe)}},or=z=>{const me=z.insertAdjacentElement;z.insertAdjacentElement=function(Oe,et){return"afterbegin"!==Oe&&"beforeend"!==Oe?me.call(this,Oe,et):"afterbegin"===Oe?(this.prepend(et),et):("beforeend"===Oe&&this.append(et),et)}},$n=z=>{const me=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(z,"__textContent",me),Object.defineProperty(z,"textContent",{get(){return" "+kn(this.childNodes).map(St=>{var At,Yt;const rn=[];let cn=St.nextSibling;for(;cn&&cn["s-sn"]===St["s-sn"];)(3===cn.nodeType||1===cn.nodeType)&&rn.push(null!=(Yt=null==(At=cn.textContent)?void 0:At.trim())?Yt:""),cn=cn.nextSibling;return rn.filter(yn=>""!==yn).join(" ")}).filter(St=>""!==St).join(" ")+" "},set(Oe){kn(this.childNodes).forEach(St=>{let At=St.nextSibling;for(;At&&At["s-sn"]===St["s-sn"];){const Yt=At;At=At.nextSibling,Yt.remove()}if(""===St["s-sn"]){const Yt=this.ownerDocument.createTextNode(Oe);Yt["s-sn"]="",ye(St.parentElement,Yt,St.nextSibling)}else St.remove()})}})},xr=(z,me)=>{class Oe extends Array{item(St){return this[St]}}if(8&me.$flags$){const et=z.__lookupGetter__("childNodes");Object.defineProperty(z,"children",{get(){return this.childNodes.map(St=>1===St.nodeType)}}),Object.defineProperty(z,"childElementCount",{get:()=>z.children.length}),Object.defineProperty(z,"childNodes",{get(){const St=et.call(this);if(!(1&W.$flags$)&&2&mi(this).$flags$){const At=new Oe;for(let Yt=0;Yt{const me=[];for(const Oe of Array.from(z))Oe["s-sr"]&&me.push(Oe),me.push(...kn(Oe.childNodes));return me},Fr=z=>z["s-sn"]||1===z.nodeType&&z.getAttribute("slot")||"",Or=(z,me,Oe)=>{let St,et=0;for(;et{const Oe=[z];for(;(z=z.nextSibling)&&z["s-sn"]===me;)Oe.push(z);return Oe},Tr=(z,me={})=>{var Oe;const St=[],At=me.exclude||[],Yt=wt.customElements,rn=he.head,cn=rn.querySelector("meta[charset]"),yn=he.createElement("style"),Fn=[],zn=he.querySelectorAll(`[${Pe}]`);let lr,Bn=!0,qr=0;for(Object.assign(W,me),W.$resourcesUrl$=new URL(me.resourcesUrl||"./",he.baseURI).href,W.$flags$|=2;qr{br[1].map(wi=>{var Ni;const ki={$flags$:wi[0],$tagName$:wi[1],$members$:wi[2],$listeners$:wi[3]};4&ki.$flags$&&(jr=!0),ki.$members$=wi[2],ki.$listeners$=wi[3],ki.$attrsToReflect$=[],ki.$watchers$=null!=(Ni=wi[4])?Ni:{};const ho=ki.$tagName$,as=class extends HTMLElement{constructor(Ur){super(Ur),Gn(Ur=this,ki),1&ki.$flags$&&Ur.attachShadow({mode:"open",delegatesFocus:!!(16&ki.$flags$)})}connectedCallback(){lr&&(clearTimeout(lr),lr=null),Bn?Fn.push(this):W.jmp(()=>(z=>{if(!(1&W.$flags$)){const me=mi(z),Oe=me.$cmpMeta$,et=()=>{};if(1&me.$flags$)Wn(z,me,Oe.$listeners$),null!=me&&me.$lazyInstance$?pr(me.$lazyInstance$):null!=me&&me.$onReadyPromise$&&me.$onReadyPromise$.then(()=>pr(me.$lazyInstance$));else{let St;if(me.$flags$|=1,St=z.getAttribute(ke),St){if(1&Oe.$flags$){const At=vr(z.shadowRoot,Oe,z.getAttribute("s-mode"));z.classList.remove(At+"-h",At+"-s")}((z,me,Oe,et)=>{const At=z.shadowRoot,Yt=[],cn=At?[]:null,yn=et.$vnode$=on(me,null);W.$orgLocNodes$||Fe(he.body,W.$orgLocNodes$=new Map),z[ke]=Oe,z.removeAttribute(ke),ve(yn,Yt,[],cn,z,z,Oe),Yt.map(Fn=>{const zn=Fn.$hostId$+"."+Fn.$nodeId$,lr=W.$orgLocNodes$.get(zn),Bn=Fn.$elm$;lr&&Le&&""===lr["s-en"]&&lr.parentNode.insertBefore(Bn,lr.nextSibling),At||(Bn["s-hn"]=me,lr&&(Bn["s-ol"]=lr,Bn["s-ol"]["s-nr"]=Bn)),W.$orgLocNodes$.delete(zn)}),At&&cn.map(Fn=>{Fn&&At.appendChild(Fn)})})(z,Oe.$tagName$,St,me)}St||12&Oe.$flags$&&ne(z);{let At=z;for(;At=At.parentNode||At.host;)if(1===At.nodeType&&At.hasAttribute("s-id")&&At["s-p"]||At["s-p"]){dt(me,me.$ancestorComponent$=At);break}}Oe.$members$&&Object.entries(Oe.$members$).map(([At,[Yt]])=>{if(31&Yt&&z.hasOwnProperty(At)){const rn=z[At];delete z[At],z[At]=rn}}),gi(z,me,Oe)}et()}})(this))}disconnectedCallback(){W.jmp(()=>$e(this))}componentOnReady(){return mi(this).$onReadyPromise$}};2&ki.$flags$&&((z,me)=>{x(z),te(z),Tt(z),He(z),or(z),Jt(z),ln(z),$n(z),xr(z,me),Te(z)})(as.prototype,ki),ki.$lazyBundleId$=br[0],!At.includes(ho)&&!Yt.get(ho)&&(St.push(ho),Yt.define(ho,Ri(as,ki,1)))})}),St.length>0&&(jr&&(yn.textContent+=mn),yn.textContent+=St+"{visibility:hidden}.hydrated{visibility:inherit}",yn.innerHTML.length)){yn.setAttribute("data-styles","");const br=null!=(Oe=W.$nonce$)?Oe:Ze(he);null!=br&&yn.setAttribute("nonce",br),rn.insertBefore(yn,cn?cn.nextSibling:rn.firstChild)}Bn=!1,Fn.length?Fn.map(br=>br.connectedCallback()):W.jmp(()=>lr=setTimeout(Ar,30))},Wn=(z,me,Oe,et)=>{Oe&&Oe.map(([St,At,Yt])=>{const rn=ai(z,St),cn=Cr(me,Yt),yn=li(St);W.ael(rn,At,cn,yn),(me.$rmListeners$=me.$rmListeners$||[]).push(()=>W.rel(rn,At,cn,yn))})},Cr=(z,me)=>Oe=>{try{256&z.$flags$?z.$lazyInstance$[me](Oe):(z.$queuedListeners$=z.$queuedListeners$||[]).push([me,Oe])}catch(et){ui(et)}},ai=(z,me)=>4&me?he:8&me?wt:16&me?he.body:z,li=z=>st?{passive:!!(1&z),capture:!!(2&z)}:!!(2&z),Lr=new WeakMap,mi=z=>Lr.get(z),Kn=(z,me)=>Lr.set(me.$lazyInstance$=z,me),Gn=(z,me)=>{const Oe={$flags$:0,$hostElement$:z,$cmpMeta$:me,$instanceValues$:new Map};return Oe.$onInstancePromise$=new Promise(et=>Oe.$onInstanceResolve$=et),Oe.$onReadyPromise$=new Promise(et=>Oe.$onReadyResolve$=et),z["s-p"]=[],z["s-rc"]=[],Wn(z,Oe,me.$listeners$),Lr.set(z,Oe)},ao=(z,me)=>me in z,ui=(z,me)=>(0,console.error)(z,me),Ci=new Map,Eo=(z,me,Oe)=>{const et=z.$tagName$.replace(/-/g,"_"),St=z.$lazyBundleId$,At=Ci.get(St);return At?At[et]:C(8996)(`./${St}.entry.js`).then(Yt=>(Ci.set(St,Yt),Yt[et]),ui)},No=new Map,oi=[],wt=typeof window<"u"?window:{},he=wt.document||{head:{}},W={$flags$:0,$resourcesUrl$:"",jmp:z=>z(),raf:z=>requestAnimationFrame(z),ael:(z,me,Oe,et)=>z.addEventListener(me,Oe,et),rel:(z,me,Oe,et)=>z.removeEventListener(me,Oe,et),ce:(z,me)=>new CustomEvent(z,me)},Ue=z=>{Object.assign(W,z)},Le=!0,st=(()=>{let z=!1;try{he.addEventListener("e",null,Object.defineProperty({},"passive",{get(){z=!0}}))}catch{}return z})(),In=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Vn=!1,w=[],j=[],re=(z,me)=>Oe=>{z.push(Oe),Vn||(Vn=!0,me&&4&W.$flags$?ot(Ee):W.raf(Ee))},P=z=>{for(let me=0;me{P(w),P(j),(Vn=w.length>0)&&W.raf(Ee)},ot=z=>Promise.resolve(void 0).then(z),sr=re(w,!1),ni=re(j,!0)},2725:(Tn,gt,C)=>{"use strict";C.d(gt,{b:()=>Ke,c:()=>Je,d:()=>Se,e:()=>tt,g:()=>we,l:()=>mn,s:()=>on,t:()=>It,w:()=>vt});var h=C(467),c=C(3664),Z=C(9672),xe=C(4929),U=C(4920);const Ke="ionViewWillLeave",Je="ionViewDidLeave",Se="ionViewWillUnload",De=H=>{H.tabIndex=-1,H.focus()},Ye=H=>null!==H.offsetParent,Xe="ion-last-focus",Rt_saveViewFocus=fe=>{if(c.c.get("focusManagerPriority",!1)){const ve=document.activeElement;null!==ve&&null!=fe&&fe.contains(ve)&&ve.setAttribute(Xe,"true")}},Rt_setViewFocus=fe=>{const se=c.c.get("focusManagerPriority",!1);if(Array.isArray(se)&&!fe.contains(document.activeElement)){const ve=fe.querySelector(`[${Xe}]`);if(ve&&Ye(ve))return void De(ve);for(const Fe of se)switch(Fe){case"content":const it=fe.querySelector('main, [role="main"]');if(it&&Ye(it))return void De(it);break;case"heading":const sn=fe.querySelector('h1, [role="heading"][aria-level="1"]');if(sn&&Ye(sn))return void De(sn);break;case"banner":const Sn=fe.querySelector('header, [role="banner"]');if(Sn&&Ye(Sn))return void De(Sn);break;default:(0,xe.p)(`Unrecognized focus manager priority value ${Fe}`)}De(fe)}},It=H=>new Promise((X,fe)=>{(0,Z.w)(()=>{Vt(H),Et(H).then(se=>{se.animation&&se.animation.destroy(),mt(H),X(se)},se=>{mt(H),fe(se)})})}),Vt=H=>{const X=H.enteringEl,fe=H.leavingEl;Rt_saveViewFocus(fe),ht(X,fe,H.direction),H.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),on(X,!1),X.style.setProperty("pointer-events","none"),fe&&(on(fe,!1),fe.style.setProperty("pointer-events","none"))},Et=function(){var H=(0,h.A)(function*(X){const fe=yield Ae(X);return fe&&Z.B.isBrowser?Qe(fe,X):ge(X)});return function(fe){return H.apply(this,arguments)}}(),mt=H=>{const X=H.enteringEl,fe=H.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==fe&&(fe.classList.remove("ion-page-invisible"),fe.style.removeProperty("pointer-events")),Rt_setViewFocus(X)},Ae=function(){var H=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(C.bind(C,8454))).iosTransitionAnimation:(yield Promise.resolve().then(C.bind(C,3314))).mdTransitionAnimation:void 0});return function(fe){return H.apply(this,arguments)}}(),Qe=function(){var H=(0,h.A)(function*(X,fe){yield Be(fe,!0);const se=X(fe.baseEl,fe);_t(fe.enteringEl,fe.leavingEl);const ve=yield Pe(se,fe);return fe.progressCallback&&fe.progressCallback(void 0),ve&&Pt(fe.enteringEl,fe.leavingEl),{hasCompleted:ve,animation:se}});return function(fe,se){return H.apply(this,arguments)}}(),ge=function(){var H=(0,h.A)(function*(X){const fe=X.enteringEl,se=X.leavingEl,ve=c.c.get("focusManagerPriority",!1);return yield Be(X,ve),_t(fe,se),Pt(fe,se),{hasCompleted:!0}});return function(fe){return H.apply(this,arguments)}}(),Be=function(){var H=(0,h.A)(function*(X,fe){(void 0!==X.deepWait?X.deepWait:fe)&&(yield Promise.all([tt(X.enteringEl),tt(X.leavingEl)])),yield ke(X.viewIsReady,X.enteringEl)});return function(fe,se){return H.apply(this,arguments)}}(),ke=function(){var H=(0,h.A)(function*(X,fe){X&&(yield X(fe))});return function(fe,se){return H.apply(this,arguments)}}(),Pe=(H,X)=>{const fe=X.progressCallback,se=new Promise(ve=>{H.onFinish(Fe=>ve(1===Fe))});return fe?(H.progressStart(!0),fe(H)):H.play(),se},_t=(H,X)=>{mn(X,Ke),mn(H,"ionViewWillEnter")},Pt=(H,X)=>{mn(H,"ionViewDidEnter"),mn(X,Je)},mn=(H,X)=>{if(H){const fe=new CustomEvent(X,{bubbles:!1,cancelable:!1});H.dispatchEvent(fe)}},vt=()=>new Promise(H=>(0,U.r)(()=>(0,U.r)(()=>H()))),tt=function(){var H=(0,h.A)(function*(X){const fe=X;if(fe){if(null!=fe.componentOnReady){if(null!=(yield fe.componentOnReady()))return}else if(null!=fe.__registerHost)return void(yield new Promise(ve=>(0,U.r)(ve)));yield Promise.all(Array.from(fe.children).map(tt))}});return function(fe){return H.apply(this,arguments)}}(),on=(H,X)=>{X?(H.setAttribute("aria-hidden","true"),H.classList.add("ion-page-hidden")):(H.hidden=!1,H.removeAttribute("aria-hidden"),H.classList.remove("ion-page-hidden"))},ht=(H,X,fe)=>{void 0!==H&&(H.style.zIndex="back"===fe?"99":"101"),void 0!==X&&(X.style.zIndex="100")},we=H=>H.classList.contains("ion-page")?H:H.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||H},4929:(Tn,gt,C)=>{"use strict";C.d(gt,{a:()=>c,b:()=>Z,p:()=>h});const h=(xe,...U)=>console.warn(`[Ionic Warning]: ${xe}`,...U),c=(xe,...U)=>console.error(`[Ionic Error]: ${xe}`,...U),Z=(xe,...U)=>console.error(`<${xe.tagName.toLowerCase()}> must be used inside ${U.join(" or ")}.`)},8476:(Tn,gt,C)=>{"use strict";C.d(gt,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,gt,C)=>{"use strict";C.d(gt,{a:()=>De,b:()=>on,c:()=>Z,i:()=>ht});var h=C(9672);class c{constructor(){this.m=new Map}reset(H){this.m=new Map(Object.entries(H))}get(H,X){const fe=this.m.get(H);return void 0!==fe?fe:X}getBoolean(H,X=!1){const fe=this.m.get(H);return void 0===fe?X:"string"==typeof fe?"true"===fe:!!fe}getNumber(H,X){const fe=parseFloat(this.m.get(H));return isNaN(fe)?void 0!==X?X:NaN:fe}set(H,X){this.m.set(H,X)}}const Z=new c,Je="ionic-persist-config",De=(we,H)=>("string"==typeof we&&(H=we,we=void 0),(we=>Ye(we))(we).includes(H)),Ye=(we=window)=>{if(typeof we>"u")return[];we.Ionic=we.Ionic||{};let H=we.Ionic.platforms;return null==H&&(H=we.Ionic.platforms=Ze(we),H.forEach(X=>we.document.documentElement.classList.add(`plt-${X}`))),H},Ze=we=>{const H=Z.get("platform");return Object.keys(vt).filter(X=>{const fe=null==H?void 0:H[X];return"function"==typeof fe?fe(we):vt[X](we)})},ct=we=>!!(Pt(we,/iPad/i)||Pt(we,/Macintosh/i)&&Ae(we)),It=we=>Pt(we,/android|sink/i),Ae=we=>mn(we,"(any-pointer:coarse)"),ge=we=>Be(we)||ke(we),Be=we=>!!(we.cordova||we.phonegap||we.PhoneGap),ke=we=>{const H=we.Capacitor;return!(null==H||!H.isNative)},Pt=(we,H)=>H.test(we.navigator.userAgent),mn=(we,H)=>{var X;return null===(X=we.matchMedia)||void 0===X?void 0:X.call(we,H).matches},vt={ipad:ct,iphone:we=>Pt(we,/iPhone/i),ios:we=>Pt(we,/iPhone|iPod/i)||ct(we),android:It,phablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return fe>390&&fe<520&&se>620&&se<800},tablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return ct(we)||(we=>It(we)&&!Pt(we,/mobile/i))(we)||fe>460&&fe<820&&se>780&&se<1400},cordova:Be,capacitor:ke,electron:we=>Pt(we,/electron/i),pwa:we=>{var H;return!!(null!==(H=we.matchMedia)&&void 0!==H&&H.call(we,"(display-mode: standalone)").matches||we.navigator.standalone)},mobile:Ae,mobileweb:we=>Ae(we)&&!ge(we),desktop:we=>!Ae(we),hybrid:ge};let tt;const on=we=>we&&(0,h.g)(we)||tt,ht=(we={})=>{if(typeof window>"u")return;const H=window.document,X=window,fe=X.Ionic=X.Ionic||{},se={};we._ael&&(se.ael=we._ael),we._rel&&(se.rel=we._rel),we._ce&&(se.ce=we._ce),(0,h.a)(se);const ve=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(we=>{try{const H=we.sessionStorage.getItem(Je);return null!==H?JSON.parse(H):{}}catch{return{}}})(X)),{persistConfig:!1}),fe.config),(we=>{const H={};return we.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,fe])=>{try{return[decodeURIComponent(X),decodeURIComponent(fe)]}catch{return["",""]}}).filter(([X])=>((we,H)=>we.substr(0,H.length)===H)(X,"ionic:")).map(([X,fe])=>[X.slice(6),fe]).forEach(([X,fe])=>{H[X]=fe}),H})(X)),we);Z.reset(ve),Z.getBoolean("persistConfig")&&((we,H)=>{try{we.sessionStorage.setItem(Je,JSON.stringify(H))}catch{return}})(X,ve),Ye(X),fe.config=Z,fe.mode=tt=Z.get("mode",H.documentElement.getAttribute("mode")||(De(X,"ios")?"ios":"md")),Z.set("mode",tt),H.documentElement.setAttribute("mode",tt),H.documentElement.classList.add(tt),Z.getBoolean("_testing")&&Z.set("animated",!1);const Fe=sn=>{var Sn;return null===(Sn=sn.tagName)||void 0===Sn?void 0:Sn.startsWith("ION-")},it=sn=>["ios","md"].includes(sn);(0,h.c)(sn=>{for(;sn;){const Sn=sn.mode||sn.getAttribute("mode");if(Sn){if(it(Sn))return Sn;Fe(sn)&&console.warn('Invalid ionic mode: "'+Sn+'", expected: "ios" or "md"')}sn=sn.parentElement}return tt})}},8454:(Tn,gt,C)=>{"use strict";C.r(gt),C.d(gt,{iosTransitionAnimation:()=>Xe,shadow:()=>Ke});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const oe=Dt=>document.querySelector(`${Dt}.ion-cloned-element`),Ke=Dt=>Dt.shadowRoot||Dt,Je=Dt=>{const Rt="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs"),It="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=Rt){const Vt=Rt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Vt?Vt.querySelector(It):null}return Dt.querySelector(It)},Se=(Dt,Rt)=>{const It="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs");let Vt=[];if(null!=It){const Et=It.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Et&&(Vt=Et.querySelectorAll("ion-buttons"))}else Vt=Dt.querySelectorAll("ion-buttons");for(const Et of Vt){const mt=Et.closest("ion-header"),Ae=mt&&!mt.classList.contains("header-collapse-condense-inactive"),Qe=Et.querySelector("ion-back-button"),ge=Et.classList.contains("buttons-collapse");if(null!==Qe&&("start"===Et.slot||""===Et.slot)&&(ge&&Ae&&Rt||!ge))return Qe}return null},Ye=(Dt,Rt,It,Vt,Et,mt,Ae,Qe,ge)=>{var Be,ke;const Pe=Rt?`calc(100% - ${Et.right+4}px)`:Et.left-4+"px",_t=Rt?"right":"left",Pt=Rt?"left":"right",mn=Rt?"right":"left";let vt=1,tt=1,on=`scale(${tt})`;const ht="scale(1)";if(mt&&Ae){const Ht=(null===(Be=mt.textContent)||void 0===Be?void 0:Be.trim())===(null===(ke=Qe.textContent)||void 0===ke?void 0:ke.trim());vt=ge.width/Ae.width,tt=(ge.height-ct)/Ae.height,on=Ht?`scale(${vt}, ${tt})`:`scale(${tt})`}const H=Ke(Vt).querySelector("ion-icon").getBoundingClientRect(),X=Rt?H.width/2-(H.right-Et.right)+"px":Et.left-H.width/2+"px",fe=Rt?`-${window.innerWidth-Et.right}px`:`${Et.left}px`,se=`${ge.top}px`,ve=`${Et.top}px`,sn=It?[{offset:0,transform:`translate3d(${fe}, ${ve}, 0)`},{offset:1,transform:`translate3d(${X}, ${se}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${se}, 0)`},{offset:1,transform:`translate3d(${fe}, ${ve}, 0)`}],Kt=It?[{offset:0,opacity:1,transform:ht},{offset:1,opacity:0,transform:on}]:[{offset:0,opacity:0,transform:on},{offset:1,opacity:1,transform:ht}],Qn=It?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],nr=(0,h.c)(),vr=(0,h.c)(),rr=(0,h.c)(),Jn=oe("ion-back-button"),nt=Ke(Jn).querySelector(".button-text"),Nt=Ke(Jn).querySelector("ion-icon");Jn.text=Vt.text,Jn.mode=Vt.mode,Jn.icon=Vt.icon,Jn.color=Vt.color,Jn.disabled=Vt.disabled,Jn.style.setProperty("display","block"),Jn.style.setProperty("position","fixed"),vr.addElement(Nt),nr.addElement(nt),rr.addElement(Jn),rr.beforeStyles({position:"absolute",top:"0px",[mn]:"0px"}).beforeAddWrite(()=>{Vt.style.setProperty("display","none"),Jn.style.setProperty(_t,Pe)}).afterAddWrite(()=>{Vt.style.setProperty("display",""),Jn.style.setProperty("display","none"),Jn.style.removeProperty(_t)}).keyframes(sn),nr.beforeStyles({"transform-origin":`${_t} top`}).keyframes(Kt),vr.beforeStyles({"transform-origin":`${Pt} center`}).keyframes(Qn),Dt.addAnimation([nr,vr,rr])},Ze=(Dt,Rt,It,Vt,Et,mt,Ae,Qe,ge)=>{var Be,ke;const Pe=Rt?"right":"left",_t=Rt?`calc(100% - ${Et.right}px)`:`${Et.left}px`,mn=`${Et.top}px`;let tt=Rt?`-${window.innerWidth-Ae.right-8}px`:`${Ae.x+8}px`,on=.5;const ht="scale(1)";let we=`scale(${on})`;if(Qe&&ge){tt=Rt?`-${window.innerWidth-ge.right-8}px`:ge.x-8+"px";const Sn=(null===(Be=Qe.textContent)||void 0===Be?void 0:Be.trim())===(null===(ke=Vt.textContent)||void 0===ke?void 0:ke.trim());on=ge.height/(mt.height-ct),we=Sn?`scale(${ge.width/mt.width}, ${on})`:`scale(${on})`}const fe=Ae.top+Ae.height/2-Et.height*on/2+"px",Fe=It?[{offset:0,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${mn}, 0) ${ht}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${mn}, 0) ${ht}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`}],it=oe("ion-title"),sn=(0,h.c)();it.innerText=Vt.innerText,it.size=Vt.size,it.color=Vt.color,sn.addElement(it),sn.beforeStyles({"transform-origin":`${Pe} top`,height:`${Et.height}px`,display:"",position:"relative",[Pe]:_t}).beforeAddWrite(()=>{Vt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Vt.style.setProperty("opacity",""),it.style.setProperty("display","none")}).keyframes(Fe),Dt.addAnimation(sn)},Xe=(Dt,Rt)=>{var It;try{const Vt="cubic-bezier(0.32,0.72,0,1)",Et="opacity",mt="transform",Ae="0%",ge="rtl"===Dt.ownerDocument.dir,Be=ge?"-99.5%":"99.5%",ke=ge?"33%":"-33%",Pe=Rt.enteringEl,_t=Rt.leavingEl,Pt="back"===Rt.direction,mn=Pe.querySelector(":scope > ion-content"),vt=Pe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),tt=Pe.querySelectorAll(":scope > ion-header > ion-toolbar"),on=(0,h.c)(),ht=(0,h.c)();if(on.addElement(Pe).duration((null!==(It=Rt.duration)&&void 0!==It?It:0)||540).easing(Rt.easing||Vt).fill("both").beforeRemoveClass("ion-page-invisible"),_t&&null!=Dt){const fe=(0,h.c)();fe.addElement(Dt),on.addAnimation(fe)}if(mn||0!==tt.length||0!==vt.length?(ht.addElement(mn),ht.addElement(vt)):ht.addElement(Pe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(ht),Pt?ht.beforeClearStyles([Et]).fromTo("transform",`translateX(${ke})`,`translateX(${Ae})`).fromTo(Et,.8,1):ht.beforeClearStyles([Et]).fromTo("transform",`translateX(${Be})`,`translateX(${Ae})`),mn){const fe=Ke(mn).querySelector(".transition-effect");if(fe){const se=fe.querySelector(".transition-cover"),ve=fe.querySelector(".transition-shadow"),Fe=(0,h.c)(),it=(0,h.c)(),sn=(0,h.c)();Fe.addElement(fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),it.addElement(se).beforeClearStyles([Et]).fromTo(Et,0,.1),sn.addElement(ve).beforeClearStyles([Et]).fromTo(Et,.03,.7),Fe.addAnimation([it,sn]),ht.addAnimation([Fe])}}const we=Pe.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:X}=((Dt,Rt,It,Vt,Et)=>{const mt=Se(Vt,It),Ae=Je(Et),Qe=Je(Vt),ge=Se(Et,It),Be=null!==mt&&null!==Ae&&!It,ke=null!==Qe&&null!==ge&&It;if(Be){const Pe=Ae.getBoundingClientRect(),_t=mt.getBoundingClientRect(),Pt=Ke(mt).querySelector(".button-text"),mn=null==Pt?void 0:Pt.getBoundingClientRect(),tt=Ke(Ae).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,Rt,It,Ae,Pe,tt,_t,Pt,mn),Ye(Dt,Rt,It,mt,_t,Pt,mn,Ae,tt)}else if(ke){const Pe=Qe.getBoundingClientRect(),_t=ge.getBoundingClientRect(),Pt=Ke(ge).querySelector(".button-text"),mn=null==Pt?void 0:Pt.getBoundingClientRect(),tt=Ke(Qe).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,Rt,It,Qe,Pe,tt,_t,Pt,mn),Ye(Dt,Rt,It,ge,_t,Pt,mn,Qe,tt)}return{forward:Be,backward:ke}})(on,ge,Pt,Pe,_t);if(tt.forEach(fe=>{const se=(0,h.c)();se.addElement(fe),on.addAnimation(se);const ve=(0,h.c)();ve.addElement(fe.querySelector("ion-title"));const Fe=(0,h.c)(),it=Array.from(fe.querySelectorAll("ion-buttons,[menuToggle]")),sn=fe.closest("ion-header"),Sn=null==sn?void 0:sn.classList.contains("header-collapse-condense-inactive");let qe;qe=it.filter(Pt?nr=>{const vr=nr.classList.contains("buttons-collapse");return vr&&!Sn||!vr}:nr=>!nr.classList.contains("buttons-collapse")),Fe.addElement(qe);const Kt=(0,h.c)();Kt.addElement(fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const En=(0,h.c)();En.addElement(Ke(fe).querySelector(".toolbar-background"));const On=(0,h.c)(),Qn=fe.querySelector("ion-back-button");if(Qn&&On.addElement(Qn),se.addAnimation([ve,Fe,Kt,En,On]),Fe.fromTo(Et,.01,1),Kt.fromTo(Et,.01,1),Pt)Sn||ve.fromTo("transform",`translateX(${ke})`,`translateX(${Ae})`).fromTo(Et,.01,1),Kt.fromTo("transform",`translateX(${ke})`,`translateX(${Ae})`),On.fromTo(Et,.01,1);else if(we||ve.fromTo("transform",`translateX(${Be})`,`translateX(${Ae})`).fromTo(Et,.01,1),Kt.fromTo("transform",`translateX(${Be})`,`translateX(${Ae})`),En.beforeClearStyles([Et,"transform"]),(null==sn?void 0:sn.translucent)?En.fromTo("transform",ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):En.fromTo(Et,.01,"var(--opacity)"),H||On.fromTo(Et,.01,1),Qn&&!H){const vr=(0,h.c)();vr.addElement(Ke(Qn).querySelector(".button-text")).fromTo("transform",ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),se.addAnimation(vr)}}),_t){const fe=(0,h.c)(),se=_t.querySelector(":scope > ion-content"),ve=_t.querySelectorAll(":scope > ion-header > ion-toolbar"),Fe=_t.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(se||0!==ve.length||0!==Fe.length?(fe.addElement(se),fe.addElement(Fe)):fe.addElement(_t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(fe),Pt){fe.beforeClearStyles([Et]).fromTo("transform",`translateX(${Ae})`,ge?"translateX(-100%)":"translateX(100%)");const it=(0,c.g)(_t);on.afterAddWrite(()=>{"normal"===on.getDirection()&&it.style.setProperty("display","none")})}else fe.fromTo("transform",`translateX(${Ae})`,`translateX(${ke})`).fromTo(Et,1,.8);if(se){const it=Ke(se).querySelector(".transition-effect");if(it){const sn=it.querySelector(".transition-cover"),Sn=it.querySelector(".transition-shadow"),qe=(0,h.c)(),Kt=(0,h.c)(),En=(0,h.c)();qe.addElement(it).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Kt.addElement(sn).beforeClearStyles([Et]).fromTo(Et,.1,0),En.addElement(Sn).beforeClearStyles([Et]).fromTo(Et,.7,.03),qe.addAnimation([Kt,En]),fe.addAnimation([qe])}}ve.forEach(it=>{const sn=(0,h.c)();sn.addElement(it);const Sn=(0,h.c)();Sn.addElement(it.querySelector("ion-title"));const qe=(0,h.c)(),Kt=it.querySelectorAll("ion-buttons,[menuToggle]"),En=it.closest("ion-header"),On=null==En?void 0:En.classList.contains("header-collapse-condense-inactive"),Qn=Array.from(Kt).filter(Nt=>{const Ht=Nt.classList.contains("buttons-collapse");return Ht&&!On||!Ht});qe.addElement(Qn);const nr=(0,h.c)(),vr=it.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");vr.length>0&&nr.addElement(vr);const rr=(0,h.c)();rr.addElement(Ke(it).querySelector(".toolbar-background"));const Jn=(0,h.c)(),nt=it.querySelector("ion-back-button");if(nt&&Jn.addElement(nt),sn.addAnimation([Sn,qe,nr,Jn,rr]),on.addAnimation(sn),Jn.fromTo(Et,.99,0),qe.fromTo(Et,.99,0),nr.fromTo(Et,.99,0),Pt){if(On||Sn.fromTo("transform",`translateX(${Ae})`,ge?"translateX(-100%)":"translateX(100%)").fromTo(Et,.99,0),nr.fromTo("transform",`translateX(${Ae})`,ge?"translateX(-100%)":"translateX(100%)"),rr.beforeClearStyles([Et,"transform"]),(null==En?void 0:En.translucent)?rr.fromTo("transform","translateX(0px)",ge?"translateX(-100%)":"translateX(100%)"):rr.fromTo(Et,"var(--opacity)",0),nt&&!X){const Ht=(0,h.c)();Ht.addElement(Ke(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Ae})`,`translateX(${(ge?-124:124)+"px"})`),sn.addAnimation(Ht)}}else On||Sn.fromTo("transform",`translateX(${Ae})`,`translateX(${ke})`).fromTo(Et,.99,0).afterClearStyles([mt,Et]),nr.fromTo("transform",`translateX(${Ae})`,`translateX(${ke})`).afterClearStyles([mt,Et]),Jn.afterClearStyles([Et]),Sn.afterClearStyles([Et]),qe.afterClearStyles([Et])})}return on}catch(Vt){throw Vt}},ct=10},3314:(Tn,gt,C)=>{"use strict";C.r(gt),C.d(gt,{mdTransitionAnimation:()=>ue});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const ue=(oe,Ke)=>{var Je,Se,De;const Xe="back"===Ke.direction,Dt=Ke.leavingEl,Rt=(0,c.g)(Ke.enteringEl),It=Rt.querySelector("ion-toolbar"),Vt=(0,h.c)();if(Vt.addElement(Rt).fill("both").beforeRemoveClass("ion-page-invisible"),Xe?Vt.duration((null!==(Je=Ke.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Vt.duration((null!==(Se=Ke.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),It){const Et=(0,h.c)();Et.addElement(It),Vt.addAnimation(Et)}if(Dt&&Xe){Vt.duration((null!==(De=Ke.duration)&&void 0!==De?De:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Et=(0,h.c)();Et.addElement((0,c.g)(Dt)).onFinish(mt=>{1===mt&&Et.elements.length>0&&Et.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Vt.addAnimation(Et)}return Vt}},6002:(Tn,gt,C)=>{"use strict";C.d(gt,{B:()=>Kt,F:()=>Jn,G:()=>En,O:()=>On,a:()=>Rt,b:()=>It,c:()=>Ae,d:()=>Qn,e:()=>nr,f:()=>H,g:()=>fe,h:()=>Fe,i:()=>sn,j:()=>ge,k:()=>Be,l:()=>Vt,m:()=>Et,n:()=>Se,o:()=>ht,q:()=>De,s:()=>qe});var h=C(467),c=C(8476),Z=C(4920),xe=C(6411),U=C(3664),ue=C(8621),oe=C(1970),Ke=C(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Nt)=>{const Ht=nt.querySelector(Je);Ye(Ht,null!=Nt?Nt:nt)},De=(nt,Nt)=>{const Ht=Array.from(nt.querySelectorAll(Je));Ye(Ht.length>0?Ht[Ht.length-1]:null,null!=Nt?Nt:nt)},Ye=(nt,Nt)=>{let Ht=nt;const fn=null==nt?void 0:nt.shadowRoot;fn&&(Ht=fn.querySelector(Je)||nt),Ht?(0,Z.f)(Ht):Nt.focus()};let Ze=0,Xe=0;const ct=new WeakMap,Dt=nt=>({create:Nt=>ke(nt,Nt),dismiss:(Nt,Ht,fn)=>vt(document,Nt,Ht,nt,fn),getTop:()=>(0,h.A)(function*(){return ht(document,nt)})()}),Rt=Dt("ion-alert"),It=Dt("ion-action-sheet"),Vt=Dt("ion-loading"),Et=Dt("ion-modal"),Ae=Dt("ion-popover"),ge=nt=>{typeof document<"u"&&mn(document);const Nt=Ze++;nt.overlayIndex=Nt},Be=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++Xe),nt.id),ke=(nt,Nt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const Ht=document.createElement(nt);return Ht.classList.add("overlay-hidden"),Object.assign(Ht,Object.assign(Object.assign({},Nt),{hasController:!0})),se(document).appendChild(Ht),new Promise(fn=>(0,Z.c)(Ht,fn))}):Promise.resolve(),_t=(nt,Nt)=>{let Ht=nt;const fn=null==nt?void 0:nt.shadowRoot;fn&&(Ht=fn.querySelector(Je)||nt),Ht?(0,Z.f)(Ht):Nt.focus()},mn=nt=>{0===Ze&&(Ze=1,nt.addEventListener("focus",Nt=>{((nt,Nt)=>{const Ht=ht(Nt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),fn=nt.target;Ht&&fn&&!Ht.classList.contains(Jn)&&(Ht.shadowRoot?(()=>{if(Ht.contains(fn))Ht.lastFocus=fn;else if("ION-TOAST"===fn.tagName)_t(Ht.lastFocus,Ht);else{const Pn=Ht.lastFocus;Se(Ht),Pn===Nt.activeElement&&De(Ht),Ht.lastFocus=Nt.activeElement}})():(()=>{if(Ht===fn)Ht.lastFocus=void 0;else if("ION-TOAST"===fn.tagName)_t(Ht.lastFocus,Ht);else{const Pn=(0,Z.g)(Ht);if(!Pn.contains(fn))return;const Nn=Pn.querySelector(".ion-overlay-wrapper");if(!Nn)return;if(Nn.contains(fn)||fn===Pn.querySelector("ion-backdrop"))Ht.lastFocus=fn;else{const gn=Ht.lastFocus;Se(Nn,Ht),gn===Nt.activeElement&&De(Nn,Ht),Ht.lastFocus=Nt.activeElement}}})())})(Nt,nt)},!0),nt.addEventListener("ionBackButton",Nt=>{const Ht=ht(nt);null!=Ht&&Ht.backdropDismiss&&Nt.detail.register(xe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ht.dismiss(void 0,Kt)})}),(0,xe.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Nt=>{if("Escape"===Nt.key){const Ht=ht(nt);null!=Ht&&Ht.backdropDismiss&&Ht.dismiss(void 0,Kt)}}))},vt=(nt,Nt,Ht,fn,pn)=>{const Sr=ht(nt,fn,pn);return Sr?Sr.dismiss(Nt,Ht):Promise.reject("overlay does not exist")},on=(nt,Nt)=>((nt,Nt)=>(void 0===Nt&&(Nt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Nt)).filter(Ht=>Ht.overlayIndex>0)))(nt,Nt).filter(Ht=>!(nt=>nt.classList.contains("overlay-hidden"))(Ht)),ht=(nt,Nt,Ht)=>{const fn=on(nt,Nt);return void 0===Ht?fn[fn.length-1]:fn.find(pn=>pn.id===Ht)},we=(nt=!1)=>{const Ht=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ht&&(nt?Ht.setAttribute("aria-hidden","true"):Ht.removeAttribute("aria-hidden"))},H=function(){var nt=(0,h.A)(function*(Nt,Ht,fn,pn,Sr){var Pn,Nn;if(Nt.presented)return;we(!0),document.body.classList.add(oe.B),vr(Nt.el),Nt.presented=!0,Nt.willPresent.emit(),null===(Pn=Nt.willPresentShorthand)||void 0===Pn||Pn.emit();const gn=(0,U.b)(Nt),en=Nt.enterAnimation?Nt.enterAnimation:U.c.get(Ht,"ios"===gn?fn:pn);(yield ve(Nt,en,Nt.el,Sr))&&(Nt.didPresent.emit(),null===(Nn=Nt.didPresentShorthand)||void 0===Nn||Nn.emit()),"ION-TOAST"!==Nt.el.tagName&&X(Nt.el),Nt.keyboardClose&&(null===document.activeElement||!Nt.el.contains(document.activeElement))&&Nt.el.focus(),Nt.el.removeAttribute("aria-hidden")});return function(Ht,fn,pn,Sr,Pn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Nt){let Ht=document.activeElement;if(!Ht)return;const fn=null==Ht?void 0:Ht.shadowRoot;fn&&(Ht=fn.querySelector(Je)||Ht),yield Nt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ht.focus()});return function(Ht){return nt.apply(this,arguments)}}(),fe=function(){var nt=(0,h.A)(function*(Nt,Ht,fn,pn,Sr,Pn,Nn){var gn,en;if(!Nt.presented)return!1;void 0!==c.d&&1===on(c.d).length&&(we(!1),document.body.classList.remove(oe.B)),Nt.presented=!1;try{Nt.el.style.setProperty("pointer-events","none"),Nt.willDismiss.emit({data:Ht,role:fn}),null===(gn=Nt.willDismissShorthand)||void 0===gn||gn.emit({data:Ht,role:fn});const Ir=(0,U.b)(Nt),Nr=Nt.leaveAnimation?Nt.leaveAnimation:U.c.get(pn,"ios"===Ir?Sr:Pn);fn!==En&&(yield ve(Nt,Nr,Nt.el,Nn)),Nt.didDismiss.emit({data:Ht,role:fn}),null===(en=Nt.didDismissShorthand)||void 0===en||en.emit({data:Ht,role:fn}),(ct.get(Nt)||[]).forEach(Dr=>Dr.destroy()),ct.delete(Nt),Nt.el.classList.add("overlay-hidden"),Nt.el.style.removeProperty("pointer-events"),void 0!==Nt.el.lastFocus&&(Nt.el.lastFocus=void 0)}catch(Ir){console.error(Ir)}return Nt.el.remove(),rr(),!0});return function(Ht,fn,pn,Sr,Pn,Nn,gn){return nt.apply(this,arguments)}}(),se=nt=>nt.querySelector("ion-app")||nt.body,ve=function(){var nt=(0,h.A)(function*(Nt,Ht,fn,pn){fn.classList.remove("overlay-hidden");const Pn=Ht(Nt.el,pn);(!Nt.animated||!U.c.getBoolean("animated",!0))&&Pn.duration(0),Nt.keyboardClose&&Pn.beforeAddWrite(()=>{const gn=fn.ownerDocument.activeElement;null!=gn&&gn.matches("input,ion-input, ion-textarea")&&gn.blur()});const Nn=ct.get(Nt)||[];return ct.set(Nt,[...Nn,Pn]),yield Pn.play(),!0});return function(Ht,fn,pn,Sr){return nt.apply(this,arguments)}}(),Fe=(nt,Nt)=>{let Ht;const fn=new Promise(pn=>Ht=pn);return it(nt,Nt,pn=>{Ht(pn.detail)}),fn},it=(nt,Nt,Ht)=>{const fn=pn=>{(0,Z.b)(nt,Nt,fn),Ht(pn)};(0,Z.a)(nt,Nt,fn)},sn=nt=>"cancel"===nt||nt===Kt,Sn=nt=>nt(),qe=(nt,Nt)=>{if("function"==typeof nt)return U.c.get("_zoneGate",Sn)(()=>{try{return nt(Nt)}catch(fn){throw fn}})},Kt="backdrop",En="gesture",On=39,Qn=nt=>{let Ht,Nt=!1;const fn=(0,ue.C)(),pn=(Nn=!1)=>{if(Ht&&!Nn)return{delegate:Ht,inline:Nt};const{el:gn,hasController:en,delegate:Er}=nt;return Nt=null!==gn.parentNode&&!en,Ht=Nt?Er||fn:Er,{inline:Nt,delegate:Ht}};return{attachViewToDom:function(){var Nn=(0,h.A)(function*(gn){const{delegate:en}=pn(!0);if(en)return yield en.attachViewToDom(nt.el,gn);const{hasController:Er}=nt;if(Er&&void 0!==gn)throw new Error("framework delegate is missing");return null});return function(en){return Nn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:Nn}=pn();Nn&&void 0!==nt.el&&Nn.removeViewFromDom(nt.el.parentElement,nt.el)}}},nr=()=>{let nt;const Nt=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(fn,pn)=>{Nt();const Sr=void 0!==pn?document.getElementById(pn):null;Sr?nt=((Nn,gn)=>{const en=()=>{gn.present()};return Nn.addEventListener("click",en),()=>{Nn.removeEventListener("click",en)}})(Sr,fn):(0,Ke.p)(`A trigger element with the ID "${pn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,fn)},removeClickListener:Nt}},vr=nt=>{var Nt;if(void 0===c.d)return;const Ht=on(c.d);for(let fn=Ht.length-1;fn>=0;fn--){const pn=Ht[fn],Sr=null!==(Nt=Ht[fn+1])&&void 0!==Nt?Nt:nt;(Sr.hasAttribute("aria-hidden")||"ION-TOAST"!==Sr.tagName)&&pn.setAttribute("aria-hidden","true")}},rr=()=>{if(void 0===c.d)return;const nt=on(c.d);for(let Nt=nt.length-1;Nt>=0;Nt--){const Ht=nt[Nt];if(Ht.removeAttribute("aria-hidden"),"ION-TOAST"!==Ht.tagName)break}},Jn="ion-disable-focus-trap"},63:(Tn,gt,C)=>{"use strict";var h=C(345),c=C(4438),Z=C(7650),xe=C(2872),U=C(7863),ue=C(177);function oe(qe,Kt){if(1&qe){const En=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(En);const Qn=c.XpG().$implicit,nr=c.XpG();return c.Njj(nr.navigate(Qn))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&qe){const En=c.XpG().$implicit;c.R7$(),c.Y8G("name",En.icon),c.R7$(2),c.JRh(En.title)}}function Ke(qe,Kt){if(1&qe&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&qe){const En=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",En.url),c.R7$(),c.Y8G("name",En.icon),c.R7$(2),c.JRh(En.title),c.R7$(2),c.JRh(On.user.name)}}function Je(qe,Kt){if(1&qe&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&qe){const En=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",En.url),c.R7$(),c.Y8G("name",En.icon),c.R7$(2),c.JRh(En.title),c.R7$(2),c.JRh(On.user.orgName)}}function Se(qe,Kt){if(1&qe&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&qe){const En=c.XpG(2).$implicit;c.Y8G("routerLink",En.url),c.R7$(),c.Y8G("name",En.icon),c.R7$(2),c.JRh(En.title)}}function De(qe,Kt){if(1&qe&&c.DNE(0,Ke,6,4,"ion-item",9)(1,Je,6,4)(2,Se,4,3),2&qe){const En=c.XpG().$implicit;c.vxM(0,"Settings"===En.title?0:"My Team"===En.title?1:2)}}function Ye(qe,Kt){if(1&qe&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,oe,4,2,"ion-item")(2,De,3,1),c.k0s()),2&qe){const En=Kt.$implicit;c.R7$(),c.vxM(1,En.params?1:2)}}let Ze=(()=>{var qe;class Kt{constructor(On,Qn){this.router=On,this.menuController=Qn,this.user={},this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(On=>{On instanceof Z.wF&&(On.urlAfterRedirects.includes("/login")||On.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))}),this.getUser()}navigate(On){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([On.url],{queryParams:On.params||{}})})}getUser(){const On=JSON.parse(localStorage.getItem("user"));this.user=On}}return(qe=Kt).\u0275fac=function(On){return new(On||qe)(c.rXU(Z.Ix),c.rXU(U._t))},qe.\u0275cmp=c.VBU({type:qe,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(On,Qn){1&On&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,Ye,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&On&&(c.R7$(9),c.Y8G("ngForOf",Qn.menuItems))},dependencies:[ue.Sq,U.U1,U.ZB,U.W9,U.eU,U.iq,U.uz,U.he,U.nf,U.oS,U.cA,U.HP,U.BC,U.ai,U.Rg,U.N7,Z.Wk]}),Kt})();var Xe=C(9842),ct=C(8737),Dt=C(1203),Rt=C(6354),It=C(6697);C(2214);const Et=(0,Rt.T)(qe=>!!qe);let mt=(()=>{var qe;class Kt{constructor(On,Qn){(0,Xe.A)(this,"router",void 0),(0,Xe.A)(this,"auth",void 0),(0,Xe.A)(this,"canActivate",(nr,vr)=>{const rr=nr.data.authGuardPipe||(()=>Et);return(0,ct.kQ)(this.auth).pipe((0,It.s)(1),rr(nr,vr),(0,Rt.T)(Jn=>"boolean"==typeof Jn?Jn:Array.isArray(Jn)?this.router.createUrlTree(Jn):this.router.parseUrl(Jn)))}),this.router=On,this.auth=Qn}}return qe=Kt,(0,Xe.A)(Kt,"\u0275fac",function(On){return new(On||qe)(c.KVO(Z.Ix),c.KVO(ct.Nj))}),(0,Xe.A)(Kt,"\u0275prov",c.jDH({token:qe,factory:qe.\u0275fac,providedIn:"any"})),Kt})();const Ae=qe=>({canActivate:[mt],data:{authGuardPipe:qe}}),vt=()=>{return qe=[""],(0,Dt.F)(Et,(0,Rt.T)(Kt=>Kt||qe));var qe},tt=()=>{return qe=["home"],(0,Dt.F)(Et,(0,Rt.T)(Kt=>Kt&&qe||!0));var qe},on=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([C.e(2076),C.e(2757)]).then(C.bind(C,2757)).then(qe=>qe.HomePageModule),...Ae(vt)},{path:"register",loadChildren:()=>C.e(5995).then(C.bind(C,5995)).then(qe=>qe.RegisterPageModule),...Ae(tt)},{path:"login",loadChildren:()=>C.e(6536).then(C.bind(C,6536)).then(qe=>qe.LoginPageModule),...Ae(tt)},{path:"myteam",loadChildren:()=>Promise.all([C.e(2076),C.e(461)]).then(C.bind(C,461)).then(qe=>qe.MyteamPageModule),...Ae(vt)},{path:"model-product",loadChildren:()=>Promise.all([C.e(2076),C.e(4914)]).then(C.bind(C,4914)).then(qe=>qe.ModelProductPageModule),...Ae(vt)},{path:"new-product",loadChildren:()=>Promise.all([C.e(2076),C.e(3646)]).then(C.bind(C,3646)).then(qe=>qe.NewProductPageModule),...Ae(vt)},{path:"view-product",loadChildren:()=>Promise.all([C.e(2076),C.e(1313)]).then(C.bind(C,1313)).then(qe=>qe.ViewProductPageModule),...Ae(vt)},{path:"show-map",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(9070)]).then(C.bind(C,9070)).then(qe=>qe.ShowMapPageModule),...Ae(vt)},{path:"latency-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9456)]).then(C.bind(C,9456)).then(qe=>qe.LatencyTestPageModule),...Ae(vt)},{path:"latency-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8886)]).then(C.bind(C,8886)).then(qe=>qe.LatencyChooserPageModule),...Ae(vt)},{path:"latency-results",loadChildren:()=>Promise.all([C.e(2076),C.e(8984)]).then(C.bind(C,8984)).then(qe=>qe.LatencyResultsPageModule),...Ae(vt)},{path:"graph-latency",loadChildren:()=>Promise.all([C.e(2076),C.e(6975)]).then(C.bind(C,6975)).then(qe=>qe.GraphPageModule),...Ae(vt)},{path:"trace-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4839)]).then(C.bind(C,4839)).then(qe=>qe.TraceChooserPageModule),...Ae(vt)},{path:"trace-test",loadChildren:()=>Promise.all([C.e(2076),C.e(3451)]).then(C.bind(C,3451)).then(qe=>qe.TraceTestPageModule),...Ae(vt)},{path:"trace-results",loadChildren:()=>Promise.all([C.e(2076),C.e(7762)]).then(C.bind(C,7762)).then(qe=>qe.TraceResultsPageModule),...Ae(vt)},{path:"show-map-trace",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(8566)]).then(C.bind(C,8566)).then(qe=>qe.ShowMapTracePageModule),...Ae(vt)},{path:"graph-data-for",loadChildren:()=>C.e(1081).then(C.bind(C,1081)).then(qe=>qe.GraphDataForPageModule),...Ae(vt)},{path:"graph-trace",loadChildren:()=>Promise.all([C.e(2076),C.e(6303)]).then(C.bind(C,6303)).then(qe=>qe.GraphTracePageModule),...Ae(vt)},{path:"ai",loadChildren:()=>C.e(4348).then(C.bind(C,4348)).then(qe=>qe.AiPageModule),...Ae(vt)},{path:"flame-graph",loadChildren:()=>Promise.all([C.e(2076),C.e(5054)]).then(C.bind(C,5054)).then(qe=>qe.FlameGraphPageModule),...Ae(vt)},{path:"flame-graph-for",loadChildren:()=>Promise.all([C.e(2076),C.e(5399)]).then(C.bind(C,5399)).then(qe=>qe.FlameGraphForPageModule),...Ae(vt)},{path:"flame-graph-date",loadChildren:()=>Promise.all([C.e(2076),C.e(6480)]).then(C.bind(C,6480)).then(qe=>qe.FlameGraphDatePageModule),...Ae(vt)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([C.e(2076),C.e(3100)]).then(C.bind(C,3100)).then(qe=>qe.FlameGraphComparePageModule),...Ae(vt)},{path:"software-testing",loadChildren:()=>Promise.all([C.e(2076),C.e(1015)]).then(C.bind(C,1015)).then(qe=>qe.SoftwareTestingPageModule),...Ae(vt)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8711)]).then(C.bind(C,8711)).then(qe=>qe.SoftwareTestingChooserPageModule),...Ae(vt)},{path:"create-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1143)]).then(C.bind(C,1143)).then(qe=>qe.CreateSystemTestPageModule),...Ae(vt)},{path:"execute-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1010)]).then(C.bind(C,1010)).then(qe=>qe.ExecuteSystemTestPageModule),...Ae(vt)},{path:"board",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(3728)]).then(C.bind(C,3728)).then(qe=>qe.BoardPageModule),...Ae(vt)},{path:"view-history-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9546)]).then(C.bind(C,9546)).then(qe=>qe.ViewHistorySystemTestPageModule),...Ae(vt)},{path:"view-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(7056)]).then(C.bind(C,7056)).then(qe=>qe.ViewSystemTestPageModule),...Ae(vt)},{path:"create-unit-test",loadChildren:()=>Promise.all([C.e(2076),C.e(6695)]).then(C.bind(C,6695)).then(qe=>qe.CreateUnitTestPageModule),...Ae(vt)},{path:"settings",loadChildren:()=>Promise.all([C.e(2076),C.e(5371)]).then(C.bind(C,5371)).then(qe=>qe.SettingsPageModule),...Ae(vt)},{path:"create-integration-test",loadChildren:()=>Promise.all([C.e(2076),C.e(2494)]).then(C.bind(C,2494)).then(qe=>qe.CreateIntegrationTestPageModule),...Ae(vt)},{path:"load-test-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4163)]).then(C.bind(C,4163)).then(qe=>qe.LoadTestChooserPageModule),...Ae(vt)},{path:"load-test",loadChildren:()=>Promise.all([C.e(9878),C.e(4559)]).then(C.bind(C,4559)).then(qe=>qe.LoadTestPageModule),...Ae(vt)},{path:"load-test-history",loadChildren:()=>Promise.all([C.e(9878),C.e(4304)]).then(C.bind(C,4304)).then(qe=>qe.LoadTestHistoryPageModule),...Ae(vt)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(1133)]).then(C.bind(C,1133)).then(qe=>qe.IncidentManagerChooserPageModule),...Ae(vt)},{path:"incident-manager",loadChildren:()=>Promise.all([C.e(2076),C.e(3675)]).then(C.bind(C,3675)).then(qe=>qe.IncidentManagerPageModule)},{path:"new-incident",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(8839)]).then(C.bind(C,8839)).then(qe=>qe.NewIncidentPageModule)},{path:"incident-details",loadChildren:()=>Promise.all([C.e(2076),C.e(7907)]).then(C.bind(C,7907)).then(qe=>qe.IncidentDetailsPageModule)}];let ht=(()=>{var qe;class Kt{}return(qe=Kt).\u0275fac=function(On){return new(On||qe)},qe.\u0275mod=c.$C({type:qe}),qe.\u0275inj=c.G2t({imports:[Z.iI.forRoot(on,{preloadingStrategy:Z.Kp}),Z.iI]}),Kt})();var we=C(7440),H=C(4262);const X_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var fe=C(1626),se=C(2820),ve=C(9032),Fe=C(7616),it=C(9549);let sn=(()=>{var qe;class Kt{}return(qe=Kt).\u0275fac=function(On){return new(On||qe)},qe.\u0275mod=c.$C({type:qe,bootstrap:[Ze]}),qe.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:xe.jM},(0,we.MW)(()=>(0,we.Wp)(X_firebase)),(0,H.hV)(()=>(0,H.aU)()),(0,ct._q)(()=>(0,ct.xI)()),(0,ve.cw)(()=>(0,ve.v_)()),fe.q1,(0,se.eS)()],imports:[h.Bb,U.bv.forRoot(),ht,fe.q1,se.sN.forRoot({echarts:()=>C.e(9697).then(C.bind(C,9697))}),Fe.n,it.y2.forRoot()]}),Kt})();(0,c.SmG)(),h.sG().bootstrapModule(sn).catch(qe=>console.log(qe))},4412:(Tn,gt,C)=>{"use strict";C.d(gt,{t:()=>c});var h=C(1413);class c extends h.B{constructor(xe){super(),this._value=xe}get value(){return this.getValue()}_subscribe(xe){const U=super._subscribe(xe);return!U.closed&&xe.next(this._value),U}getValue(){const{hasError:xe,thrownError:U,_value:ue}=this;if(xe)throw U;return this._throwIfClosed(),ue}next(xe){super.next(this._value=xe)}}},1985:(Tn,gt,C)=>{"use strict";C.d(gt,{c:()=>Ke});var h=C(7707),c=C(8359),Z=C(3494),xe=C(1203),U=C(1026),ue=C(8071),oe=C(9786);let Ke=(()=>{class Ye{constructor(Xe){Xe&&(this._subscribe=Xe)}lift(Xe){const ct=new Ye;return ct.source=this,ct.operator=Xe,ct}subscribe(Xe,ct,Dt){const Rt=function De(Ye){return Ye&&Ye instanceof h.vU||function Se(Ye){return Ye&&(0,ue.T)(Ye.next)&&(0,ue.T)(Ye.error)&&(0,ue.T)(Ye.complete)}(Ye)&&(0,c.Uv)(Ye)}(Xe)?Xe:new h.Ms(Xe,ct,Dt);return(0,oe.Y)(()=>{const{operator:It,source:Vt}=this;Rt.add(It?It.call(Rt,Vt):Vt?this._subscribe(Rt):this._trySubscribe(Rt))}),Rt}_trySubscribe(Xe){try{return this._subscribe(Xe)}catch(ct){Xe.error(ct)}}forEach(Xe,ct){return new(ct=Je(ct))((Dt,Rt)=>{const It=new h.Ms({next:Vt=>{try{Xe(Vt)}catch(Et){Rt(Et),It.unsubscribe()}},error:Rt,complete:Dt});this.subscribe(It)})}_subscribe(Xe){var ct;return null===(ct=this.source)||void 0===ct?void 0:ct.subscribe(Xe)}[Z.s](){return this}pipe(...Xe){return(0,xe.m)(Xe)(this)}toPromise(Xe){return new(Xe=Je(Xe))((ct,Dt)=>{let Rt;this.subscribe(It=>Rt=It,It=>Dt(It),()=>ct(Rt))})}}return Ye.create=Ze=>new Ye(Ze),Ye})();function Je(Ye){var Ze;return null!==(Ze=null!=Ye?Ye:U.$.Promise)&&void 0!==Ze?Ze:Promise}},2771:(Tn,gt,C)=>{"use strict";C.d(gt,{m:()=>Z});var h=C(1413),c=C(6129);class Z extends h.B{constructor(U=1/0,ue=1/0,oe=c.U){super(),this._bufferSize=U,this._windowTime=ue,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ue===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,ue)}next(U){const{isStopped:ue,_buffer:oe,_infiniteTimeWindow:Ke,_timestampProvider:Je,_windowTime:Se}=this;ue||(oe.push(U),!Ke&&oe.push(Je.now()+Se)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const ue=this._innerSubscribe(U),{_infiniteTimeWindow:oe,_buffer:Ke}=this,Je=Ke.slice();for(let Se=0;Se{"use strict";C.d(gt,{B:()=>oe});var h=C(1985),c=C(8359);const xe=(0,C(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=C(7908),ue=C(9786);let oe=(()=>{class Je extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(De){const Ye=new Ke(this,this);return Ye.operator=De,Ye}_throwIfClosed(){if(this.closed)throw new xe}next(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ye of this.currentObservers)Ye.next(De)}})}error(De){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=De;const{observers:Ye}=this;for(;Ye.length;)Ye.shift().error(De)}})}complete(){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:De}=this;for(;De.length;)De.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var De;return(null===(De=this.observers)||void 0===De?void 0:De.length)>0}_trySubscribe(De){return this._throwIfClosed(),super._trySubscribe(De)}_subscribe(De){return this._throwIfClosed(),this._checkFinalizedStatuses(De),this._innerSubscribe(De)}_innerSubscribe(De){const{hasError:Ye,isStopped:Ze,observers:Xe}=this;return Ye||Ze?c.Kn:(this.currentObservers=null,Xe.push(De),new c.yU(()=>{this.currentObservers=null,(0,U.o)(Xe,De)}))}_checkFinalizedStatuses(De){const{hasError:Ye,thrownError:Ze,isStopped:Xe}=this;Ye?De.error(Ze):Xe&&De.complete()}asObservable(){const De=new h.c;return De.source=this,De}}return Je.create=(Se,De)=>new Ke(Se,De),Je})();class Ke extends oe{constructor(Se,De){super(),this.destination=Se,this.source=De}next(Se){var De,Ye;null===(Ye=null===(De=this.destination)||void 0===De?void 0:De.next)||void 0===Ye||Ye.call(De,Se)}error(Se){var De,Ye;null===(Ye=null===(De=this.destination)||void 0===De?void 0:De.error)||void 0===Ye||Ye.call(De,Se)}complete(){var Se,De;null===(De=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===De||De.call(Se)}_subscribe(Se){var De,Ye;return null!==(Ye=null===(De=this.source)||void 0===De?void 0:De.subscribe(Se))&&void 0!==Ye?Ye:c.Kn}}},7707:(Tn,gt,C)=>{"use strict";C.d(gt,{Ms:()=>Dt,vU:()=>Ye});var h=C(8071),c=C(8359),Z=C(1026),xe=C(5334),U=C(5343);const ue=Je("C",void 0,void 0);function Je(mt,Ae,Qe){return{kind:mt,value:Ae,error:Qe}}var Se=C(9270),De=C(9786);class Ye extends c.yU{constructor(Ae){super(),this.isStopped=!1,Ae?(this.destination=Ae,(0,c.Uv)(Ae)&&Ae.add(this)):this.destination=Et}static create(Ae,Qe,ge){return new Dt(Ae,Qe,ge)}next(Ae){this.isStopped?Vt(function Ke(mt){return Je("N",mt,void 0)}(Ae),this):this._next(Ae)}error(Ae){this.isStopped?Vt(function oe(mt){return Je("E",void 0,mt)}(Ae),this):(this.isStopped=!0,this._error(Ae))}complete(){this.isStopped?Vt(ue,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ae){this.destination.next(Ae)}_error(Ae){try{this.destination.error(Ae)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ze=Function.prototype.bind;function Xe(mt,Ae){return Ze.call(mt,Ae)}class ct{constructor(Ae){this.partialObserver=Ae}next(Ae){const{partialObserver:Qe}=this;if(Qe.next)try{Qe.next(Ae)}catch(ge){Rt(ge)}}error(Ae){const{partialObserver:Qe}=this;if(Qe.error)try{Qe.error(Ae)}catch(ge){Rt(ge)}else Rt(Ae)}complete(){const{partialObserver:Ae}=this;if(Ae.complete)try{Ae.complete()}catch(Qe){Rt(Qe)}}}class Dt extends Ye{constructor(Ae,Qe,ge){let Be;if(super(),(0,h.T)(Ae)||!Ae)Be={next:null!=Ae?Ae:void 0,error:null!=Qe?Qe:void 0,complete:null!=ge?ge:void 0};else{let ke;this&&Z.$.useDeprecatedNextContext?(ke=Object.create(Ae),ke.unsubscribe=()=>this.unsubscribe(),Be={next:Ae.next&&Xe(Ae.next,ke),error:Ae.error&&Xe(Ae.error,ke),complete:Ae.complete&&Xe(Ae.complete,ke)}):Be=Ae}this.destination=new ct(Be)}}function Rt(mt){Z.$.useDeprecatedSynchronousErrorHandling?(0,De.l)(mt):(0,xe.m)(mt)}function Vt(mt,Ae){const{onStoppedNotification:Qe}=Z.$;Qe&&Se.f.setTimeout(()=>Qe(mt,Ae))}const Et={closed:!0,next:U.l,error:function It(mt){throw mt},complete:U.l}},8359:(Tn,gt,C)=>{"use strict";C.d(gt,{Kn:()=>ue,yU:()=>U,Uv:()=>oe});var h=C(8071);const Z=(0,C(1853).L)(Je=>function(De){Je(this),this.message=De?`${De.length} errors occurred during unsubscription:\n${De.map((Ye,Ze)=>`${Ze+1}) ${Ye.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=De});var xe=C(7908);class U{constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:De}=this;if(De)if(this._parentage=null,Array.isArray(De))for(const Xe of De)Xe.remove(this);else De.remove(this);const{initialTeardown:Ye}=this;if((0,h.T)(Ye))try{Ye()}catch(Xe){Se=Xe instanceof Z?Xe.errors:[Xe]}const{_finalizers:Ze}=this;if(Ze){this._finalizers=null;for(const Xe of Ze)try{Ke(Xe)}catch(ct){Se=null!=Se?Se:[],ct instanceof Z?Se=[...Se,...ct.errors]:Se.push(ct)}}if(Se)throw new Z(Se)}}add(Se){var De;if(Se&&Se!==this)if(this.closed)Ke(Se);else{if(Se instanceof U){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(De=this._finalizers)&&void 0!==De?De:[]).push(Se)}}_hasParent(Se){const{_parentage:De}=this;return De===Se||Array.isArray(De)&&De.includes(Se)}_addParent(Se){const{_parentage:De}=this;this._parentage=Array.isArray(De)?(De.push(Se),De):De?[De,Se]:Se}_removeParent(Se){const{_parentage:De}=this;De===Se?this._parentage=null:Array.isArray(De)&&(0,xe.o)(De,Se)}remove(Se){const{_finalizers:De}=this;De&&(0,xe.o)(De,Se),Se instanceof U&&Se._removeParent(this)}}U.EMPTY=(()=>{const Je=new U;return Je.closed=!0,Je})();const ue=U.EMPTY;function oe(Je){return Je instanceof U||Je&&"closed"in Je&&(0,h.T)(Je.remove)&&(0,h.T)(Je.add)&&(0,h.T)(Je.unsubscribe)}function Ke(Je){(0,h.T)(Je)?Je():Je.unsubscribe()}},1026:(Tn,gt,C)=>{"use strict";C.d(gt,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,gt,C)=>{"use strict";C.d(gt,{z:()=>Se});var h=C(1985),c=C(3073),Z=C(8455),xe=C(3669),U=C(6450),ue=C(9326),oe=C(8496),Ke=C(4360),Je=C(5225);function Se(...Ze){const Xe=(0,ue.lI)(Ze),ct=(0,ue.ms)(Ze),{args:Dt,keys:Rt}=(0,c.D)(Ze);if(0===Dt.length)return(0,Z.H)([],Xe);const It=new h.c(function De(Ze,Xe,ct=xe.D){return Dt=>{Ye(Xe,()=>{const{length:Rt}=Ze,It=new Array(Rt);let Vt=Rt,Et=Rt;for(let mt=0;mt{const Ae=(0,Z.H)(Ze[mt],Xe);let Qe=!1;Ae.subscribe((0,Ke._)(Dt,ge=>{It[mt]=ge,Qe||(Qe=!0,Et--),Et||Dt.next(ct(It.slice()))},()=>{--Vt||Dt.complete()}))},Dt)},Dt)}}(Dt,Xe,Rt?Vt=>(0,oe.e)(Rt,Vt):xe.D));return ct?It.pipe((0,U.I)(ct)):It}function Ye(Ze,Xe,ct){Ze?(0,Je.N)(ct,Ze,Xe):Xe()}},8793:(Tn,gt,C)=>{"use strict";C.d(gt,{x:()=>U});var h=C(6365),Z=C(9326),xe=C(8455);function U(...ue){return function c(){return(0,h.U)(1)}()((0,xe.H)(ue,(0,Z.lI)(ue)))}},983:(Tn,gt,C)=>{"use strict";C.d(gt,{w:()=>c});const c=new(C(1985).c)(U=>U.complete())},8455:(Tn,gt,C)=>{"use strict";C.d(gt,{H:()=>Ae});var h=C(8750),c=C(941),Z=C(6745),ue=C(1985),Ke=C(4761),Je=C(8071),Se=C(5225);function Ye(Qe,ge){if(!Qe)throw new Error("Iterable cannot be null");return new ue.c(Be=>{(0,Se.N)(Be,ge,()=>{const ke=Qe[Symbol.asyncIterator]();(0,Se.N)(Be,ge,()=>{ke.next().then(Pe=>{Pe.done?Be.complete():Be.next(Pe.value)})},0,!0)})})}var Ze=C(5055),Xe=C(9858),ct=C(7441),Dt=C(5397),Rt=C(7953),It=C(591),Vt=C(5196);function Ae(Qe,ge){return ge?function mt(Qe,ge){if(null!=Qe){if((0,Ze.l)(Qe))return function xe(Qe,ge){return(0,h.Tg)(Qe).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Qe,ge);if((0,ct.X)(Qe))return function oe(Qe,ge){return new ue.c(Be=>{let ke=0;return ge.schedule(function(){ke===Qe.length?Be.complete():(Be.next(Qe[ke++]),Be.closed||this.schedule())})})}(Qe,ge);if((0,Xe.y)(Qe))return function U(Qe,ge){return(0,h.Tg)(Qe).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Qe,ge);if((0,Rt.T)(Qe))return Ye(Qe,ge);if((0,Dt.x)(Qe))return function De(Qe,ge){return new ue.c(Be=>{let ke;return(0,Se.N)(Be,ge,()=>{ke=Qe[Ke.l](),(0,Se.N)(Be,ge,()=>{let Pe,_t;try{({value:Pe,done:_t}=ke.next())}catch(Pt){return void Be.error(Pt)}_t?Be.complete():Be.next(Pe)},0,!0)}),()=>(0,Je.T)(null==ke?void 0:ke.return)&&ke.return()})}(Qe,ge);if((0,Vt.U)(Qe))return function Et(Qe,ge){return Ye((0,Vt.C)(Qe),ge)}(Qe,ge)}throw(0,It.L)(Qe)}(Qe,ge):(0,h.Tg)(Qe)}},3726:(Tn,gt,C)=>{"use strict";C.d(gt,{R:()=>Se});var h=C(8750),c=C(1985),Z=C(1397),xe=C(7441),U=C(8071),ue=C(6450);const oe=["addListener","removeListener"],Ke=["addEventListener","removeEventListener"],Je=["on","off"];function Se(ct,Dt,Rt,It){if((0,U.T)(Rt)&&(It=Rt,Rt=void 0),It)return Se(ct,Dt,Rt).pipe((0,ue.I)(It));const[Vt,Et]=function Xe(ct){return(0,U.T)(ct.addEventListener)&&(0,U.T)(ct.removeEventListener)}(ct)?Ke.map(mt=>Ae=>ct[mt](Dt,Ae,Rt)):function Ye(ct){return(0,U.T)(ct.addListener)&&(0,U.T)(ct.removeListener)}(ct)?oe.map(De(ct,Dt)):function Ze(ct){return(0,U.T)(ct.on)&&(0,U.T)(ct.off)}(ct)?Je.map(De(ct,Dt)):[];if(!Vt&&(0,xe.X)(ct))return(0,Z.Z)(mt=>Se(mt,Dt,Rt))((0,h.Tg)(ct));if(!Vt)throw new TypeError("Invalid event target");return new c.c(mt=>{const Ae=(...Qe)=>mt.next(1Et(Ae)})}function De(ct,Dt){return Rt=>It=>ct[Rt](Dt,It)}},8750:(Tn,gt,C)=>{"use strict";C.d(gt,{Tg:()=>Ze});var h=C(1635),c=C(7441),Z=C(9858),xe=C(1985),U=C(5055),ue=C(7953),oe=C(591),Ke=C(5397),Je=C(5196),Se=C(8071),De=C(5334),Ye=C(3494);function Ze(mt){if(mt instanceof xe.c)return mt;if(null!=mt){if((0,U.l)(mt))return function Xe(mt){return new xe.c(Ae=>{const Qe=mt[Ye.s]();if((0,Se.T)(Qe.subscribe))return Qe.subscribe(Ae);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(mt);if((0,c.X)(mt))return function ct(mt){return new xe.c(Ae=>{for(let Qe=0;Qe{mt.then(Qe=>{Ae.closed||(Ae.next(Qe),Ae.complete())},Qe=>Ae.error(Qe)).then(null,De.m)})}(mt);if((0,ue.T)(mt))return It(mt);if((0,Ke.x)(mt))return function Rt(mt){return new xe.c(Ae=>{for(const Qe of mt)if(Ae.next(Qe),Ae.closed)return;Ae.complete()})}(mt);if((0,Je.U)(mt))return function Vt(mt){return It((0,Je.C)(mt))}(mt)}throw(0,oe.L)(mt)}function It(mt){return new xe.c(Ae=>{(function Et(mt,Ae){var Qe,ge,Be,ke;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Qe=(0,h.xN)(mt);!(ge=yield Qe.next()).done;)if(Ae.next(ge.value),Ae.closed)return}catch(Pe){Be={error:Pe}}finally{try{ge&&!ge.done&&(ke=Qe.return)&&(yield ke.call(Qe))}finally{if(Be)throw Be.error}}Ae.complete()})})(mt,Ae).catch(Qe=>Ae.error(Qe))})}},7786:(Tn,gt,C)=>{"use strict";C.d(gt,{h:()=>ue});var h=C(6365),c=C(8750),Z=C(983),xe=C(9326),U=C(8455);function ue(...oe){const Ke=(0,xe.lI)(oe),Je=(0,xe.R0)(oe,1/0),Se=oe;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(Je)((0,U.H)(Se,Ke)):Z.w}},7673:(Tn,gt,C)=>{"use strict";C.d(gt,{of:()=>Z});var h=C(9326),c=C(8455);function Z(...xe){const U=(0,h.lI)(xe);return(0,c.H)(xe,U)}},1584:(Tn,gt,C)=>{"use strict";C.d(gt,{O:()=>U});var h=C(1985),c=C(3236),Z=C(9470);function U(ue=0,oe,Ke=c.b){let Je=-1;return null!=oe&&((0,Z.m)(oe)?Ke=oe:Je=oe),new h.c(Se=>{let De=function xe(ue){return ue instanceof Date&&!isNaN(ue)}(ue)?+ue-Ke.now():ue;De<0&&(De=0);let Ye=0;return Ke.schedule(function(){Se.closed||(Se.next(Ye++),0<=Je?this.schedule(void 0,Je):Se.complete())},De)})}},4360:(Tn,gt,C)=>{"use strict";C.d(gt,{_:()=>c});var h=C(7707);function c(xe,U,ue,oe,Ke){return new Z(xe,U,ue,oe,Ke)}class Z extends h.vU{constructor(U,ue,oe,Ke,Je,Se){super(U),this.onFinalize=Je,this.shouldUnsubscribe=Se,this._next=ue?function(De){try{ue(De)}catch(Ye){U.error(Ye)}}:super._next,this._error=Ke?function(De){try{Ke(De)}catch(Ye){U.error(Ye)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(De){U.error(De)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ue}=this;super.unsubscribe(),!ue&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},274:(Tn,gt,C)=>{"use strict";C.d(gt,{H:()=>Z});var h=C(1397),c=C(8071);function Z(xe,U){return(0,c.T)(U)?(0,h.Z)(xe,U,1):(0,h.Z)(xe,1)}},9901:(Tn,gt,C)=>{"use strict";C.d(gt,{U:()=>Z});var h=C(9974),c=C(4360);function Z(xe){return(0,h.N)((U,ue)=>{let oe=!1;U.subscribe((0,c._)(ue,Ke=>{oe=!0,ue.next(Ke)},()=>{oe||ue.next(xe),ue.complete()}))})}},3294:(Tn,gt,C)=>{"use strict";C.d(gt,{F:()=>xe});var h=C(3669),c=C(9974),Z=C(4360);function xe(ue,oe=h.D){return ue=null!=ue?ue:U,(0,c.N)((Ke,Je)=>{let Se,De=!0;Ke.subscribe((0,Z._)(Je,Ye=>{const Ze=oe(Ye);(De||!ue(Se,Ze))&&(De=!1,Se=Ze,Je.next(Ye))}))})}function U(ue,oe){return ue===oe}},5964:(Tn,gt,C)=>{"use strict";C.d(gt,{p:()=>Z});var h=C(9974),c=C(4360);function Z(xe,U){return(0,h.N)((ue,oe)=>{let Ke=0;ue.subscribe((0,c._)(oe,Je=>xe.call(U,Je,Ke++)&&oe.next(Je)))})}},980:(Tn,gt,C)=>{"use strict";C.d(gt,{j:()=>c});var h=C(9974);function c(Z){return(0,h.N)((xe,U)=>{try{xe.subscribe(U)}finally{U.add(Z)}})}},1594:(Tn,gt,C)=>{"use strict";C.d(gt,{$:()=>oe});var h=C(9350),c=C(5964),Z=C(6697),xe=C(9901),U=C(3774),ue=C(3669);function oe(Ke,Je){const Se=arguments.length>=2;return De=>De.pipe(Ke?(0,c.p)((Ye,Ze)=>Ke(Ye,Ze,De)):ue.D,(0,Z.s)(1),Se?(0,xe.U)(Je):(0,U.v)(()=>new h.G))}},6354:(Tn,gt,C)=>{"use strict";C.d(gt,{T:()=>Z});var h=C(9974),c=C(4360);function Z(xe,U){return(0,h.N)((ue,oe)=>{let Ke=0;ue.subscribe((0,c._)(oe,Je=>{oe.next(xe.call(U,Je,Ke++))}))})}},3703:(Tn,gt,C)=>{"use strict";C.d(gt,{u:()=>c});var h=C(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Tn,gt,C)=>{"use strict";C.d(gt,{U:()=>Z});var h=C(1397),c=C(3669);function Z(xe=1/0){return(0,h.Z)(c.D,xe)}},1397:(Tn,gt,C)=>{"use strict";C.d(gt,{Z:()=>Ke});var h=C(6354),c=C(8750),Z=C(9974),xe=C(5225),U=C(4360),oe=C(8071);function Ke(Je,Se,De=1/0){return(0,oe.T)(Se)?Ke((Ye,Ze)=>(0,h.T)((Xe,ct)=>Se(Ye,Xe,Ze,ct))((0,c.Tg)(Je(Ye,Ze))),De):("number"==typeof Se&&(De=Se),(0,Z.N)((Ye,Ze)=>function ue(Je,Se,De,Ye,Ze,Xe,ct,Dt){const Rt=[];let It=0,Vt=0,Et=!1;const mt=()=>{Et&&!Rt.length&&!It&&Se.complete()},Ae=ge=>It{Xe&&Se.next(ge),It++;let Be=!1;(0,c.Tg)(De(ge,Vt++)).subscribe((0,U._)(Se,ke=>{null==Ze||Ze(ke),Xe?Ae(ke):Se.next(ke)},()=>{Be=!0},void 0,()=>{if(Be)try{for(It--;Rt.length&&ItQe(ke)):Qe(ke)}mt()}catch(ke){Se.error(ke)}}))};return Je.subscribe((0,U._)(Se,Ae,()=>{Et=!0,mt()})),()=>{null==Dt||Dt()}}(Ye,Ze,Je,De)))}},941:(Tn,gt,C)=>{"use strict";C.d(gt,{Q:()=>xe});var h=C(5225),c=C(9974),Z=C(4360);function xe(U,ue=0){return(0,c.N)((oe,Ke)=>{oe.subscribe((0,Z._)(Ke,Je=>(0,h.N)(Ke,U,()=>Ke.next(Je),ue),()=>(0,h.N)(Ke,U,()=>Ke.complete(),ue),Je=>(0,h.N)(Ke,U,()=>Ke.error(Je),ue)))})}},9172:(Tn,gt,C)=>{"use strict";C.d(gt,{Z:()=>xe});var h=C(8793),c=C(9326),Z=C(9974);function xe(...U){const ue=(0,c.lI)(U);return(0,Z.N)((oe,Ke)=>{(ue?(0,h.x)(U,oe,ue):(0,h.x)(U,oe)).subscribe(Ke)})}},6745:(Tn,gt,C)=>{"use strict";C.d(gt,{_:()=>c});var h=C(9974);function c(Z,xe=0){return(0,h.N)((U,ue)=>{ue.add(Z.schedule(()=>U.subscribe(ue),xe))})}},5558:(Tn,gt,C)=>{"use strict";C.d(gt,{n:()=>xe});var h=C(8750),c=C(9974),Z=C(4360);function xe(U,ue){return(0,c.N)((oe,Ke)=>{let Je=null,Se=0,De=!1;const Ye=()=>De&&!Je&&Ke.complete();oe.subscribe((0,Z._)(Ke,Ze=>{null==Je||Je.unsubscribe();let Xe=0;const ct=Se++;(0,h.Tg)(U(Ze,ct)).subscribe(Je=(0,Z._)(Ke,Dt=>Ke.next(ue?ue(Ze,Dt,ct,Xe++):Dt),()=>{Je=null,Ye()}))},()=>{De=!0,Ye()}))})}},6697:(Tn,gt,C)=>{"use strict";C.d(gt,{s:()=>xe});var h=C(983),c=C(9974),Z=C(4360);function xe(U){return U<=0?()=>h.w:(0,c.N)((ue,oe)=>{let Ke=0;ue.subscribe((0,Z._)(oe,Je=>{++Ke<=U&&(oe.next(Je),U<=Ke&&oe.complete())}))})}},6977:(Tn,gt,C)=>{"use strict";C.d(gt,{Q:()=>U});var h=C(9974),c=C(4360),Z=C(8750),xe=C(5343);function U(ue){return(0,h.N)((oe,Ke)=>{(0,Z.Tg)(ue).subscribe((0,c._)(Ke,()=>Ke.complete(),xe.l)),!Ke.closed&&oe.subscribe(Ke)})}},8141:(Tn,gt,C)=>{"use strict";C.d(gt,{M:()=>U});var h=C(8071),c=C(9974),Z=C(4360),xe=C(3669);function U(ue,oe,Ke){const Je=(0,h.T)(ue)||oe||Ke?{next:ue,error:oe,complete:Ke}:ue;return Je?(0,c.N)((Se,De)=>{var Ye;null===(Ye=Je.subscribe)||void 0===Ye||Ye.call(Je);let Ze=!0;Se.subscribe((0,Z._)(De,Xe=>{var ct;null===(ct=Je.next)||void 0===ct||ct.call(Je,Xe),De.next(Xe)},()=>{var Xe;Ze=!1,null===(Xe=Je.complete)||void 0===Xe||Xe.call(Je),De.complete()},Xe=>{var ct;Ze=!1,null===(ct=Je.error)||void 0===ct||ct.call(Je,Xe),De.error(Xe)},()=>{var Xe,ct;Ze&&(null===(Xe=Je.unsubscribe)||void 0===Xe||Xe.call(Je)),null===(ct=Je.finalize)||void 0===ct||ct.call(Je)}))}):xe.D}},3774:(Tn,gt,C)=>{"use strict";C.d(gt,{v:()=>xe});var h=C(9350),c=C(9974),Z=C(4360);function xe(ue=U){return(0,c.N)((oe,Ke)=>{let Je=!1;oe.subscribe((0,Z._)(Ke,Se=>{Je=!0,Ke.next(Se)},()=>Je?Ke.complete():Ke.error(ue())))})}function U(){return new h.G}},6780:(Tn,gt,C)=>{"use strict";C.d(gt,{R:()=>U});var h=C(8359);class c extends h.yU{constructor(oe,Ke){super()}schedule(oe,Ke=0){return this}}const Z={setInterval(ue,oe,...Ke){const{delegate:Je}=Z;return null!=Je&&Je.setInterval?Je.setInterval(ue,oe,...Ke):setInterval(ue,oe,...Ke)},clearInterval(ue){const{delegate:oe}=Z;return((null==oe?void 0:oe.clearInterval)||clearInterval)(ue)},delegate:void 0};var xe=C(7908);class U extends c{constructor(oe,Ke){super(oe,Ke),this.scheduler=oe,this.work=Ke,this.pending=!1}schedule(oe,Ke=0){var Je;if(this.closed)return this;this.state=oe;const Se=this.id,De=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(De,Se,Ke)),this.pending=!0,this.delay=Ke,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(De,this.id,Ke),this}requestAsyncId(oe,Ke,Je=0){return Z.setInterval(oe.flush.bind(oe,this),Je)}recycleAsyncId(oe,Ke,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return Ke;null!=Ke&&Z.clearInterval(Ke)}execute(oe,Ke){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(oe,Ke);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,Ke){let Se,Je=!1;try{this.work(oe)}catch(De){Je=!0,Se=De||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:oe,scheduler:Ke}=this,{actions:Je}=Ke;this.work=this.state=this.scheduler=null,this.pending=!1,(0,xe.o)(Je,this),null!=oe&&(this.id=this.recycleAsyncId(Ke,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(Tn,gt,C)=>{"use strict";C.d(gt,{q:()=>Z});var h=C(6129);class c{constructor(U,ue=c.now){this.schedulerActionCtor=U,this.now=ue}schedule(U,ue=0,oe){return new this.schedulerActionCtor(this,U).schedule(oe,ue)}}c.now=h.U.now;class Z extends c{constructor(U,ue=c.now){super(U,ue),this.actions=[],this._active=!1}flush(U){const{actions:ue}=this;if(this._active)return void ue.push(U);let oe;this._active=!0;do{if(oe=U.execute(U.state,U.delay))break}while(U=ue.shift());if(this._active=!1,oe){for(;U=ue.shift();)U.unsubscribe();throw oe}}}},3236:(Tn,gt,C)=>{"use strict";C.d(gt,{E:()=>Z,b:()=>xe});var h=C(6780);const Z=new(C(9687).q)(h.R),xe=Z},6129:(Tn,gt,C)=>{"use strict";C.d(gt,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Tn,gt,C)=>{"use strict";C.d(gt,{f:()=>h});const h={setTimeout(c,Z,...xe){const{delegate:U}=h;return null!=U&&U.setTimeout?U.setTimeout(c,Z,...xe):setTimeout(c,Z,...xe)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,gt,C)=>{"use strict";C.d(gt,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,gt,C)=>{"use strict";C.d(gt,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Tn,gt,C)=>{"use strict";C.d(gt,{G:()=>c});const c=(0,C(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Tn,gt,C)=>{"use strict";C.d(gt,{R0:()=>ue,lI:()=>U,ms:()=>xe});var h=C(8071),c=C(9470);function Z(oe){return oe[oe.length-1]}function xe(oe){return(0,h.T)(Z(oe))?oe.pop():void 0}function U(oe){return(0,c.m)(Z(oe))?oe.pop():void 0}function ue(oe,Ke){return"number"==typeof Z(oe)?oe.pop():Ke}},3073:(Tn,gt,C)=>{"use strict";C.d(gt,{D:()=>U});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:xe}=Object;function U(oe){if(1===oe.length){const Ke=oe[0];if(h(Ke))return{args:Ke,keys:null};if(function ue(oe){return oe&&"object"==typeof oe&&c(oe)===Z}(Ke)){const Je=xe(Ke);return{args:Je.map(Se=>Ke[Se]),keys:Je}}}return{args:oe,keys:null}}},7908:(Tn,gt,C)=>{"use strict";function h(c,Z){if(c){const xe=c.indexOf(Z);0<=xe&&c.splice(xe,1)}}C.d(gt,{o:()=>h})},1853:(Tn,gt,C)=>{"use strict";function h(c){const xe=c(U=>{Error.call(U),U.stack=(new Error).stack});return xe.prototype=Object.create(Error.prototype),xe.prototype.constructor=xe,xe}C.d(gt,{L:()=>h})},8496:(Tn,gt,C)=>{"use strict";function h(c,Z){return c.reduce((xe,U,ue)=>(xe[U]=Z[ue],xe),{})}C.d(gt,{e:()=>h})},9786:(Tn,gt,C)=>{"use strict";C.d(gt,{Y:()=>Z,l:()=>xe});var h=C(1026);let c=null;function Z(U){if(h.$.useDeprecatedSynchronousErrorHandling){const ue=!c;if(ue&&(c={errorThrown:!1,error:null}),U(),ue){const{errorThrown:oe,error:Ke}=c;if(c=null,oe)throw Ke}}else U()}function xe(U){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},5225:(Tn,gt,C)=>{"use strict";function h(c,Z,xe,U=0,ue=!1){const oe=Z.schedule(function(){xe(),ue?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(oe),!ue)return oe}C.d(gt,{N:()=>h})},3669:(Tn,gt,C)=>{"use strict";function h(c){return c}C.d(gt,{D:()=>h})},7441:(Tn,gt,C)=>{"use strict";C.d(gt,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,gt,C)=>{"use strict";C.d(gt,{T:()=>c});var h=C(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Tn,gt,C)=>{"use strict";function h(c){return"function"==typeof c}C.d(gt,{T:()=>h})},5055:(Tn,gt,C)=>{"use strict";C.d(gt,{l:()=>Z});var h=C(3494),c=C(8071);function Z(xe){return(0,c.T)(xe[h.s])}},5397:(Tn,gt,C)=>{"use strict";C.d(gt,{x:()=>Z});var h=C(4761),c=C(8071);function Z(xe){return(0,c.T)(null==xe?void 0:xe[h.l])}},4402:(Tn,gt,C)=>{"use strict";C.d(gt,{A:()=>Z});var h=C(1985),c=C(8071);function Z(xe){return!!xe&&(xe instanceof h.c||(0,c.T)(xe.lift)&&(0,c.T)(xe.subscribe))}},9858:(Tn,gt,C)=>{"use strict";C.d(gt,{y:()=>c});var h=C(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Tn,gt,C)=>{"use strict";C.d(gt,{C:()=>Z,U:()=>xe});var h=C(1635),c=C(8071);function Z(U){return(0,h.AQ)(this,arguments,function*(){const oe=U.getReader();try{for(;;){const{value:Ke,done:Je}=yield(0,h.N3)(oe.read());if(Je)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Ke)}}finally{oe.releaseLock()}})}function xe(U){return(0,c.T)(null==U?void 0:U.getReader)}},9470:(Tn,gt,C)=>{"use strict";C.d(gt,{m:()=>c});var h=C(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Tn,gt,C)=>{"use strict";C.d(gt,{N:()=>Z,S:()=>c});var h=C(8071);function c(xe){return(0,h.T)(null==xe?void 0:xe.lift)}function Z(xe){return U=>{if(c(U))return U.lift(function(ue){try{return xe(ue,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,gt,C)=>{"use strict";C.d(gt,{I:()=>xe});var h=C(6354);const{isArray:c}=Array;function xe(U){return(0,h.T)(ue=>function Z(U,ue){return c(ue)?U(...ue):U(ue)}(U,ue))}},5343:(Tn,gt,C)=>{"use strict";function h(){}C.d(gt,{l:()=>h})},1203:(Tn,gt,C)=>{"use strict";C.d(gt,{F:()=>c,m:()=>Z});var h=C(3669);function c(...xe){return Z(xe)}function Z(xe){return 0===xe.length?h.D:1===xe.length?xe[0]:function(ue){return xe.reduce((oe,Ke)=>Ke(oe),ue)}}},5334:(Tn,gt,C)=>{"use strict";C.d(gt,{m:()=>Z});var h=C(1026),c=C(9270);function Z(xe){c.f.setTimeout(()=>{const{onUnhandledError:U}=h.$;if(!U)throw xe;U(xe)})}},591:(Tn,gt,C)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(gt,{L:()=>h})},8996:(Tn,gt,C)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!C.o(h,Z))return Promise.resolve().then(()=>{var ue=new Error("Cannot find module '"+Z+"'");throw ue.code="MODULE_NOT_FOUND",ue});var xe=h[Z],U=xe[0];return Promise.all(xe.slice(1).map(C.e)).then(()=>C(U))}c.keys=()=>Object.keys(h),c.id=8996,Tn.exports=c},177:(Tn,gt,C)=>{"use strict";C.d(gt,{AJ:()=>Yt,Jj:()=>wt,MD:()=>At,N0:()=>ki,QT:()=>Z,QX:()=>sr,Sm:()=>Dt,Sq:()=>or,T3:()=>Gn,UE:()=>Fn,VF:()=>U,Vy:()=>zn,Xr:()=>jr,ZD:()=>xe,_b:()=>x,aZ:()=>It,bT:()=>kn,fw:()=>Rt,hb:()=>Xe,hj:()=>Je,qQ:()=>oe});var h=C(4438);let c=null;function Z(){return c}function xe(D){var $;null!==($=c)&&void 0!==$||(c=D)}class U{}const oe=new h.nKC("");let Ke=(()=>{var D;class ${historyGo(F){throw new Error("")}}return(D=$).\u0275fac=function(F){return new(F||D)},D.\u0275prov=h.jDH({token:D,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),$})();const Je=new h.nKC("");let Se=(()=>{var D;class $ extends Ke{constructor(){super(),this._doc=(0,h.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("popstate",F,!1),()=>Ie.removeEventListener("popstate",F)}onHashChange(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("hashchange",F,!1),()=>Ie.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,Ie,We){this._history.pushState(F,Ie,We)}replaceState(F,Ie,We){this._history.replaceState(F,Ie,We)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(D=$).\u0275fac=function(F){return new(F||D)},D.\u0275prov=h.jDH({token:D,factory:()=>new D,providedIn:"platform"}),$})();function De(D,$){if(0==D.length)return $;if(0==$.length)return D;let Ve=0;return D.endsWith("/")&&Ve++,$.startsWith("/")&&Ve++,2==Ve?D+$.substring(1):1==Ve?D+$:D+"/"+$}function Ye(D){const $=D.match(/#|\?|$/),Ve=$&&$.index||D.length;return D.slice(0,Ve-("/"===D[Ve-1]?1:0))+D.slice(Ve)}function Ze(D){return D&&"?"!==D[0]?"?"+D:D}let Xe=(()=>{var D;class ${historyGo(F){throw new Error("")}}return(D=$).\u0275fac=function(F){return new(F||D)},D.\u0275prov=h.jDH({token:D,factory:()=>(0,h.WQX)(Dt),providedIn:"root"}),$})();const ct=new h.nKC("");let Dt=(()=>{var D;class $ extends Xe{constructor(F,Ie){var We,Qt,wn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(We=null!==(Qt=null!=Ie?Ie:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(wn=(0,h.WQX)(oe).location)||void 0===wn?void 0:wn.origin)&&void 0!==We?We:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return De(this._baseHref,F)}path(F=!1){const Ie=this._platformLocation.pathname+Ze(this._platformLocation.search),We=this._platformLocation.hash;return We&&F?`${Ie}${We}`:Ie}pushState(F,Ie,We,Qt){const wn=this.prepareExternalUrl(We+Ze(Qt));this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,We,Qt){const wn=this.prepareExternalUrl(We+Ze(Qt));this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,We;null===(Ie=(We=this._platformLocation).historyGo)||void 0===Ie||Ie.call(We,F)}}return(D=$).\u0275fac=function(F){return new(F||D)(h.KVO(Ke),h.KVO(ct,8))},D.\u0275prov=h.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),$})(),Rt=(()=>{var D;class $ extends Xe{constructor(F,Ie){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=Ie&&(this._baseHref=Ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var Ie;const We=null!==(Ie=this._platformLocation.hash)&&void 0!==Ie?Ie:"#";return We.length>0?We.substring(1):We}prepareExternalUrl(F){const Ie=De(this._baseHref,F);return Ie.length>0?"#"+Ie:Ie}pushState(F,Ie,We,Qt){let wn=this.prepareExternalUrl(We+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,We,Qt){let wn=this.prepareExternalUrl(We+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,We;null===(Ie=(We=this._platformLocation).historyGo)||void 0===Ie||Ie.call(We,F)}}return(D=$).\u0275fac=function(F){return new(F||D)(h.KVO(Ke),h.KVO(ct,8))},D.\u0275prov=h.jDH({token:D,factory:D.\u0275fac}),$})(),It=(()=>{var D;class ${constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const Ie=this._locationStrategy.getBaseHref();this._basePath=function Ae(D){if(new RegExp("^(https?:)?//").test(D)){const[,Ve]=D.split(/\/\/[^\/]+/);return Ve}return D}(Ye(mt(Ie))),this._locationStrategy.onPopState(We=>{this._subject.emit({url:this.path(!0),pop:!0,state:We.state,type:We.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,Ie=""){return this.path()==this.normalize(F+Ze(Ie))}normalize(F){return $.stripTrailingSlash(function Et(D,$){if(!D||!$.startsWith(D))return $;const Ve=$.substring(D.length);return""===Ve||["/",";","?","#"].includes(Ve[0])?Ve:$}(this._basePath,mt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,Ie="",We=null){this._locationStrategy.pushState(We,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),We)}replaceState(F,Ie="",We=null){this._locationStrategy.replaceState(We,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),We)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var Ie,We;null===(Ie=(We=this._locationStrategy).historyGo)||void 0===Ie||Ie.call(We,F)}onUrlChange(F){var Ie;return this._urlChangeListeners.push(F),null!==(Ie=this._urlChangeSubscription)&&void 0!==Ie||(this._urlChangeSubscription=this.subscribe(We=>{this._notifyUrlChangeListeners(We.url,We.state)})),()=>{const We=this._urlChangeListeners.indexOf(F);var Qt;this._urlChangeListeners.splice(We,1),0===this._urlChangeListeners.length&&(null===(Qt=this._urlChangeSubscription)||void 0===Qt||Qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",Ie){this._urlChangeListeners.forEach(We=>We(F,Ie))}subscribe(F,Ie,We){return this._subject.subscribe({next:F,error:Ie,complete:We})}}return(D=$).normalizeQueryParams=Ze,D.joinWithSlash=De,D.stripTrailingSlash=Ye,D.\u0275fac=function(F){return new(F||D)(h.KVO(Xe))},D.\u0275prov=h.jDH({token:D,factory:()=>function Vt(){return new It((0,h.KVO)(Xe))}(),providedIn:"root"}),$})();function mt(D){return D.replace(/\/index.html$/,"")}var ge=function(D){return D[D.Decimal=0]="Decimal",D[D.Percent=1]="Percent",D[D.Currency=2]="Currency",D[D.Scientific=3]="Scientific",D}(ge||{});const Pt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Fe(D,$){const Ve=(0,h.H5H)(D),F=Ve[h.KH2.NumberSymbols][$];if(typeof F>"u"){if($===Pt.CurrencyDecimal)return Ve[h.KH2.NumberSymbols][Pt.Decimal];if($===Pt.CurrencyGroup)return Ve[h.KH2.NumberSymbols][Pt.Group]}return F}const dt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $t(D){const $=parseInt(D);if(isNaN($))throw new Error("Invalid integer literal when parsing "+D);return $}function x(D,$){$=encodeURIComponent($);for(const Ve of D.split(";")){const F=Ve.indexOf("="),[Ie,We]=-1==F?[Ve,""]:[Ve.slice(0,F),Ve.slice(F+1)];if(Ie.trim()===$)return decodeURIComponent(We)}return null}class ln{constructor($,Ve,F,Ie){this.$implicit=$,this.ngForOf=Ve,this.index=F,this.count=Ie}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let or=(()=>{var D;class ${set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,Ie,We){this._viewContainer=F,this._template=Ie,this._differs=We,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const Ie=this._viewContainer;F.forEachOperation((We,Qt,wn)=>{if(null==We.previousIndex)Ie.createEmbeddedView(this._template,new ln(We.item,this._ngForOf,-1,-1),null===wn?void 0:wn);else if(null==wn)Ie.remove(null===Qt?void 0:Qt);else if(null!==Qt){const ar=Ie.get(Qt);Ie.move(ar,wn),$n(ar,We)}});for(let We=0,Qt=Ie.length;We{$n(Ie.get(We.currentIndex),We)})}static ngTemplateContextGuard(F,Ie){return!0}}return(D=$).\u0275fac=function(F){return new(F||D)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},D.\u0275dir=h.FsC({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function $n(D,$){D.context.$implicit=$.item}let kn=(()=>{var D;class ${constructor(F,Ie){this._viewContainer=F,this._context=new Fr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ie}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){Or("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){Or("ngIfElse",F),this._elseTemplateRef=F,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(F,Ie){return!0}}return(D=$).\u0275fac=function(F){return new(F||D)(h.rXU(h.c1b),h.rXU(h.C4Q))},D.\u0275dir=h.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Fr{constructor(){this.$implicit=null,this.ngIf=null}}function Or(D,$){if($&&!$.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,h.Tbb)($)}'.`)}let Gn=(()=>{var D;class ${constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var Ie;const We=this._viewContainerRef;if(this._viewRef&&We.remove(We.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Qt=this._createContextForwardProxy();this._viewRef=We.createEmbeddedView(this.ngTemplateOutlet,Qt,{injector:null!==(Ie=this.ngTemplateOutletInjector)&&void 0!==Ie?Ie:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,Ie,We)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ie,We),get:(F,Ie,We)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ie,We)}})}}return(D=$).\u0275fac=function(F){return new(F||D)(h.rXU(h.c1b))},D.\u0275dir=h.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),$})();function ui(D,$){return new h.wOt(2100,!1)}class Ci{createSubscription($,Ve){return(0,h.O8t)(()=>$.subscribe({next:Ve,error:F=>{throw F}}))}dispose($){(0,h.O8t)(()=>$.unsubscribe())}}class Eo{createSubscription($,Ve){return $.then(Ve,F=>{throw F})}dispose($){}}const No=new Eo,oi=new Ci;let wt=(()=>{var D;class ${constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,Ie=>this._updateLatestValue(F,Ie))}_selectStrategy(F){if((0,h.jNT)(F))return No;if((0,h.zjR)(F))return oi;throw ui()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,Ie){var We;F===this._obj&&(this._latestValue=Ie,this.markForCheckOnValueUpdate)&&(null===(We=this._ref)||void 0===We||We.markForCheck())}}return(D=$).\u0275fac=function(F){return new(F||D)(h.rXU(h.gRc,16))},D.\u0275pipe=h.EJ8({name:"async",type:D,pure:!1,standalone:!0}),$})(),sr=(()=>{var D;class ${constructor(F){this._locale=F}transform(F,Ie,We){if(!function me(D){return!(null==D||""===D||D!=D)}(F))return null;We||(We=this._locale);try{return function Zr(D,$,Ve){return function Ar(D,$,Ve,F,Ie,We,Qt=!1){let wn="",ar=!1;if(isFinite(D)){let er=function gi(D){let F,Ie,We,Qt,wn,$=Math.abs(D)+"",Ve=0;for((Ie=$.indexOf("."))>-1&&($=$.replace(".","")),(We=$.search(/e/i))>0?(Ie<0&&(Ie=We),Ie+=+$.slice(We+1),$=$.substring(0,We)):Ie<0&&(Ie=$.length),We=0;"0"===$.charAt(We);We++);if(We===(wn=$.length))F=[0],Ie=1;else{for(wn--;"0"===$.charAt(wn);)wn--;for(Ie-=We,F=[],Qt=0;We<=wn;We++,Qt++)F[Qt]=Number($.charAt(We))}return Ie>22&&(F=F.splice(0,21),Ve=Ie-1,Ie=1),{digits:F,exponent:Ve,integerLen:Ie}}(D);Qt&&(er=function Ri(D){if(0===D.digits[0])return D;const $=D.digits.length-D.integerLen;return D.exponent?D.exponent+=2:(0===$?D.digits.push(0,0):1===$&&D.digits.push(0),D.integerLen+=2),D}(er));let pi=$.minInt,Xr=$.minFrac,ci=$.maxFrac;if(We){const Di=We.match(dt);if(null===Di)throw new Error(`${We} is not a valid digit info`);const qi=Di[1],Si=Di[3],Qi=Di[5];null!=qi&&(pi=$t(qi)),null!=Si&&(Xr=$t(Si)),null!=Qi?ci=$t(Qi):null!=Si&&Xr>ci&&(ci=Xr)}!function pr(D,$,Ve){if($>Ve)throw new Error(`The minimum number of digits after fraction (${$}) is higher than the maximum (${Ve}).`);let F=D.digits,Ie=F.length-D.integerLen;const We=Math.min(Math.max($,Ie),Ve);let Qt=We+D.integerLen,wn=F[Qt];if(Qt>0){F.splice(Math.max(D.integerLen,Qt));for(let Xr=Qt;Xr=5)if(Qt-1<0){for(let Xr=0;Xr>Qt;Xr--)F.unshift(0),D.integerLen++;F.unshift(1),D.integerLen++}else F[Qt-1]++;for(;Ie=er?Hi.pop():ar=!1),ci>=10?1:0},0);pi&&(F.unshift(pi),D.integerLen++)}(er,Xr,ci);let ri=er.digits,Hi=er.integerLen;const vi=er.exponent;let Mn=[];for(ar=ri.every(Di=>!Di);Hi0?Mn=ri.splice(Hi,ri.length):(Mn=ri,ri=[0]);const Xn=[];for(ri.length>=$.lgSize&&Xn.unshift(ri.splice(-$.lgSize,ri.length).join(""));ri.length>$.gSize;)Xn.unshift(ri.splice(-$.gSize,ri.length).join(""));ri.length&&Xn.unshift(ri.join("")),wn=Xn.join(Fe(Ve,F)),Mn.length&&(wn+=Fe(Ve,Ie)+Mn.join("")),vi&&(wn+=Fe(Ve,Pt.Exponential)+"+"+vi)}else wn=Fe(Ve,Pt.Infinity);return wn=D<0&&!ar?$.negPre+wn+$.negSuf:$.posPre+wn+$.posSuf,wn}(D,function fr(D,$="-"){const Ve={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=D.split(";"),Ie=F[0],We=F[1],Qt=-1!==Ie.indexOf(".")?Ie.split("."):[Ie.substring(0,Ie.lastIndexOf("0")+1),Ie.substring(Ie.lastIndexOf("0")+1)],wn=Qt[0],ar=Qt[1]||"";Ve.posPre=wn.substring(0,wn.indexOf("#"));for(let pi=0;pi{var D;class ${}return(D=$).\u0275fac=function(F){return new(F||D)},D.\u0275mod=h.$C({type:D}),D.\u0275inj=h.G2t({}),$})();const Yt="browser",rn="server";function Fn(D){return D===Yt}function zn(D){return D===rn}let jr=(()=>{var D;class ${}return(D=$).\u0275prov=(0,h.jDH)({token:D,providedIn:"root",factory:()=>Fn((0,h.WQX)(h.Agw))?new br((0,h.WQX)(oe),window):new Ni}),$})();class br{constructor($,Ve){this.document=$,this.window=Ve,this.offset=()=>[0,0]}setOffset($){this.offset=Array.isArray($)?()=>$:$}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition($){this.window.scrollTo($[0],$[1])}scrollToAnchor($){const Ve=function wi(D,$){const Ve=D.getElementById($)||D.getElementsByName($)[0];if(Ve)return Ve;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const F=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let Ie=F.currentNode;for(;Ie;){const We=Ie.shadowRoot;if(We){const Qt=We.getElementById($)||We.querySelector(`[name="${$}"]`);if(Qt)return Qt}Ie=F.nextNode()}}return null}(this.document,$);Ve&&(this.scrollToElement(Ve),Ve.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Ve=$.getBoundingClientRect(),F=Ve.left+this.window.pageXOffset,Ie=Ve.top+this.window.pageYOffset,We=this.offset();this.window.scrollTo(F-We[0],Ie-We[1])}}class Ni{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class ki{}},1626:(Tn,gt,C)=>{"use strict";C.d(gt,{Qq:()=>fe,q1:()=>vn}),C(467);var c=C(4438),Z=C(7673),xe=C(1985),U=C(8455),ue=C(274),oe=C(5964),Ke=C(6354),Je=C(980),Se=C(5558),De=C(177);class Ye{}class Ze{}class Xe{constructor(x){this.normalizedNames=new Map,this.lazyUpdate=null,x?"string"==typeof x?this.lazyInit=()=>{this.headers=new Map,x.split("\n").forEach(te=>{const Te=te.indexOf(":");if(Te>0){const He=te.slice(0,Te),Tt=He.toLowerCase(),Jt=te.slice(Te+1).trim();this.maybeSetNormalizedName(He,Tt),this.headers.has(Tt)?this.headers.get(Tt).push(Jt):this.headers.set(Tt,[Jt])}})}:typeof Headers<"u"&&x instanceof Headers?(this.headers=new Map,x.forEach((te,Te)=>{this.setHeaderEntries(Te,te)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x).forEach(([te,Te])=>{this.setHeaderEntries(te,Te)})}:this.headers=new Map}has(x){return this.init(),this.headers.has(x.toLowerCase())}get(x){this.init();const te=this.headers.get(x.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x){return this.init(),this.headers.get(x.toLowerCase())||null}append(x,te){return this.clone({name:x,value:te,op:"a"})}set(x,te){return this.clone({name:x,value:te,op:"s"})}delete(x,te){return this.clone({name:x,value:te,op:"d"})}maybeSetNormalizedName(x,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,x)}init(){this.lazyInit&&(this.lazyInit instanceof Xe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x=>this.applyUpdate(x)),this.lazyUpdate=null))}copyFrom(x){x.init(),Array.from(x.headers.keys()).forEach(te=>{this.headers.set(te,x.headers.get(te)),this.normalizedNames.set(te,x.normalizedNames.get(te))})}clone(x){const te=new Xe;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof Xe?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([x]),te}applyUpdate(x){const te=x.name.toLowerCase();switch(x.op){case"a":case"s":let Te=x.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(x.name,te);const He=("a"===x.op?this.headers.get(te):void 0)||[];He.push(...Te),this.headers.set(te,He);break;case"d":const Tt=x.value;if(Tt){let Jt=this.headers.get(te);if(!Jt)return;Jt=Jt.filter(ln=>-1===Tt.indexOf(ln)),0===Jt.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Jt)}else this.headers.delete(te),this.normalizedNames.delete(te)}}setHeaderEntries(x,te){const Te=(Array.isArray(te)?te:[te]).map(Tt=>Tt.toString()),He=x.toLowerCase();this.headers.set(He,Te),this.maybeSetNormalizedName(x,He)}forEach(x){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>x(this.normalizedNames.get(te),this.headers.get(te)))}}class Dt{encodeKey(x){return Et(x)}encodeValue(x){return Et(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}const It=/%(\d[a-f0-9])/gi,Vt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Et(M){return encodeURIComponent(M).replace(It,(x,te)=>{var Te;return null!==(Te=Vt[te])&&void 0!==Te?Te:x})}function mt(M){return`${M}`}class Ae{constructor(x={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x.encoder||new Dt,x.fromString){if(x.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Rt(M,x){const te=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(He=>{const Tt=He.indexOf("="),[Jt,ln]=-1==Tt?[x.decodeKey(He),""]:[x.decodeKey(He.slice(0,Tt)),x.decodeValue(He.slice(Tt+1))],or=te.get(Jt)||[];or.push(ln),te.set(Jt,or)}),te}(x.fromString,this.encoder)}else x.fromObject?(this.map=new Map,Object.keys(x.fromObject).forEach(te=>{const Te=x.fromObject[te],He=Array.isArray(Te)?Te.map(mt):[mt(Te)];this.map.set(te,He)})):this.map=null}has(x){return this.init(),this.map.has(x)}get(x){this.init();const te=this.map.get(x);return te?te[0]:null}getAll(x){return this.init(),this.map.get(x)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x,te){return this.clone({param:x,value:te,op:"a"})}appendAll(x){const te=[];return Object.keys(x).forEach(Te=>{const He=x[Te];Array.isArray(He)?He.forEach(Tt=>{te.push({param:Te,value:Tt,op:"a"})}):te.push({param:Te,value:He,op:"a"})}),this.clone(te)}set(x,te){return this.clone({param:x,value:te,op:"s"})}delete(x,te){return this.clone({param:x,value:te,op:"d"})}toString(){return this.init(),this.keys().map(x=>{const te=this.encoder.encodeKey(x);return this.map.get(x).map(Te=>te+"="+this.encoder.encodeValue(Te)).join("&")}).filter(x=>""!==x).join("&")}clone(x){const te=new Ae({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(x),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x=>this.map.set(x,this.cloneFrom.map.get(x))),this.updates.forEach(x=>{switch(x.op){case"a":case"s":const te=("a"===x.op?this.map.get(x.param):void 0)||[];te.push(mt(x.value)),this.map.set(x.param,te);break;case"d":if(void 0===x.value){this.map.delete(x.param);break}{let Te=this.map.get(x.param)||[];const He=Te.indexOf(mt(x.value));-1!==He&&Te.splice(He,1),Te.length>0?this.map.set(x.param,Te):this.map.delete(x.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(x,te){return this.map.set(x,te),this}get(x){return this.map.has(x)||this.map.set(x,x.defaultValue()),this.map.get(x)}delete(x){return this.map.delete(x),this}has(x){return this.map.has(x)}keys(){return this.map.keys()}}function ke(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function Pe(M){return typeof Blob<"u"&&M instanceof Blob}function _t(M){return typeof FormData<"u"&&M instanceof FormData}class mn{constructor(x,te,Te,He){var Tt,Jt;let ln;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x.toUpperCase(),function Be(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||He?(this.body=void 0!==Te?Te:null,ln=He):ln=Te,ln&&(this.reportProgress=!!ln.reportProgress,this.withCredentials=!!ln.withCredentials,ln.responseType&&(this.responseType=ln.responseType),ln.headers&&(this.headers=ln.headers),ln.context&&(this.context=ln.context),ln.params&&(this.params=ln.params),this.transferCache=ln.transferCache),null!==(Tt=this.headers)&&void 0!==Tt||(this.headers=new Xe),null!==(Jt=this.context)&&void 0!==Jt||(this.context=new ge),this.params){const or=this.params.toString();if(0===or.length)this.urlWithParams=te;else{const $n=te.indexOf("?");this.urlWithParams=te+(-1===$n?"?":$nWn.set(Cr,x.setHeaders[Cr]),Or)),x.setParams&&(zr=Object.keys(x.setParams).reduce((Wn,Cr)=>Wn.set(Cr,x.setParams[Cr]),zr)),new mn(Jt,ln,xr,{params:zr,headers:Or,context:Tr,reportProgress:Fr,responseType:or,withCredentials:kn,transferCache:$n})}}var vt=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(vt||{});class tt{constructor(x,te=H.Ok,Te="OK"){this.headers=x.headers||new Xe,this.status=void 0!==x.status?x.status:te,this.statusText=x.statusText||Te,this.url=x.url||null,this.ok=this.status>=200&&this.status<300}}class on extends tt{constructor(x={}){super(x),this.type=vt.ResponseHeader}clone(x={}){return new on({headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class ht extends tt{constructor(x={}){super(x),this.type=vt.Response,this.body=void 0!==x.body?x.body:null}clone(x={}){return new ht({body:void 0!==x.body?x.body:this.body,headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class we extends tt{constructor(x){super(x,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x.url||"(unknown url)"}`:`Http failure response for ${x.url||"(unknown url)"}: ${x.status} ${x.statusText}`,this.error=x.error||null}}var H=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(H||{});function X(M,x){return{body:x,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let fe=(()=>{var M;class x{constructor(Te){this.handler=Te}request(Te,He,Tt={}){let Jt;if(Te instanceof mn)Jt=Te;else{let $n,xr;$n=Tt.headers instanceof Xe?Tt.headers:new Xe(Tt.headers),Tt.params&&(xr=Tt.params instanceof Ae?Tt.params:new Ae({fromObject:Tt.params})),Jt=new mn(Te,He,void 0!==Tt.body?Tt.body:null,{headers:$n,context:Tt.context,params:xr,reportProgress:Tt.reportProgress,responseType:Tt.responseType||"json",withCredentials:Tt.withCredentials,transferCache:Tt.transferCache})}const ln=(0,Z.of)(Jt).pipe((0,ue.H)($n=>this.handler.handle($n)));if(Te instanceof mn||"events"===Tt.observe)return ln;const or=ln.pipe((0,oe.p)($n=>$n instanceof ht));switch(Tt.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return or.pipe((0,Ke.T)($n=>{if(null!==$n.body&&!($n.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $n.body}));case"blob":return or.pipe((0,Ke.T)($n=>{if(null!==$n.body&&!($n.body instanceof Blob))throw new Error("Response is not a Blob.");return $n.body}));case"text":return or.pipe((0,Ke.T)($n=>{if(null!==$n.body&&"string"!=typeof $n.body)throw new Error("Response is not a string.");return $n.body}));default:return or.pipe((0,Ke.T)($n=>$n.body))}case"response":return or;default:throw new Error(`Unreachable: unhandled observe type ${Tt.observe}}`)}}delete(Te,He={}){return this.request("DELETE",Te,He)}get(Te,He={}){return this.request("GET",Te,He)}head(Te,He={}){return this.request("HEAD",Te,He)}jsonp(Te,He){return this.request("JSONP",Te,{params:(new Ae).append(He,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,He={}){return this.request("OPTIONS",Te,He)}patch(Te,He,Tt={}){return this.request("PATCH",Te,X(Tt,He))}post(Te,He,Tt={}){return this.request("POST",Te,X(Tt,He))}put(Te,He,Tt={}){return this.request("PUT",Te,X(Tt,He))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ye))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Kt(M,x){return x(M)}function En(M,x){return(te,Te)=>x.intercept(te,{handle:He=>M(He,Te)})}const Qn=new c.nKC(""),nr=new c.nKC(""),vr=new c.nKC(""),rr=new c.nKC("");function Jn(){let M=null;return(x,te)=>{var Te;null===M&&(M=(null!==(Te=(0,c.WQX)(Qn,{optional:!0}))&&void 0!==Te?Te:[]).reduceRight(En,Kt));const He=(0,c.WQX)(c.TgB),Tt=He.add();return M(x,te).pipe((0,Je.j)(()=>He.remove(Tt)))}}let Ht=(()=>{var M;class x extends Ye{constructor(Te,He){super(),this.backend=Te,this.injector=He,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const Tt=(0,c.WQX)(rr,{optional:!0});this.backend=null!=Tt?Tt:Te}handle(Te){if(null===this.chain){const Tt=Array.from(new Set([...this.injector.get(nr),...this.injector.get(vr,[])]));this.chain=Tt.reduceRight((Jt,ln)=>function On(M,x,te){return(Te,He)=>(0,c.N4e)(te,()=>x(Te,Tt=>M(Tt,He)))}(Jt,ln,this.injector),Kt)}const He=this.pendingTasks.add();return this.chain(Te,Tt=>this.backend.handle(Tt)).pipe((0,Je.j)(()=>this.pendingTasks.remove(He)))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ze),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const Dr=/^\)\]\}',?\n/;let Jr=(()=>{var M;class x{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new c.wOt(-2800,!1);const He=this.xhrFactory;return(He.\u0275loadImpl?(0,U.H)(He.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new xe.c(Jt=>{const ln=He.build();if(ln.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ln.withCredentials=!0),Te.headers.forEach((Wn,Cr)=>ln.setRequestHeader(Wn,Cr.join(","))),Te.headers.has("Accept")||ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const Wn=Te.detectContentTypeHeader();null!==Wn&&ln.setRequestHeader("Content-Type",Wn)}if(Te.responseType){const Wn=Te.responseType.toLowerCase();ln.responseType="json"!==Wn?Wn:"text"}const or=Te.serializeBody();let $n=null;const xr=()=>{if(null!==$n)return $n;const Wn=ln.statusText||"OK",Cr=new Xe(ln.getAllResponseHeaders()),ai=function tr(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(ln)||Te.url;return $n=new on({headers:Cr,status:ln.status,statusText:Wn,url:ai}),$n},kn=()=>{let{headers:Wn,status:Cr,statusText:ai,url:li}=xr(),ei=null;Cr!==H.NoContent&&(ei=typeof ln.response>"u"?ln.responseText:ln.response),0===Cr&&(Cr=ei?H.Ok:0);let Lr=Cr>=200&&Cr<300;if("json"===Te.responseType&&"string"==typeof ei){const mi=ei;ei=ei.replace(Dr,"");try{ei=""!==ei?JSON.parse(ei):null}catch(Kn){ei=mi,Lr&&(Lr=!1,ei={error:Kn,text:ei})}}Lr?(Jt.next(new ht({body:ei,headers:Wn,status:Cr,statusText:ai,url:li||void 0})),Jt.complete()):Jt.error(new we({error:ei,headers:Wn,status:Cr,statusText:ai,url:li||void 0}))},Fr=Wn=>{const{url:Cr}=xr(),ai=new we({error:Wn,status:ln.status||0,statusText:ln.statusText||"Unknown Error",url:Cr||void 0});Jt.error(ai)};let Or=!1;const zr=Wn=>{Or||(Jt.next(xr()),Or=!0);let Cr={type:vt.DownloadProgress,loaded:Wn.loaded};Wn.lengthComputable&&(Cr.total=Wn.total),"text"===Te.responseType&&ln.responseText&&(Cr.partialText=ln.responseText),Jt.next(Cr)},Tr=Wn=>{let Cr={type:vt.UploadProgress,loaded:Wn.loaded};Wn.lengthComputable&&(Cr.total=Wn.total),Jt.next(Cr)};return ln.addEventListener("load",kn),ln.addEventListener("error",Fr),ln.addEventListener("timeout",Fr),ln.addEventListener("abort",Fr),Te.reportProgress&&(ln.addEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.addEventListener("progress",Tr)),ln.send(or),Jt.next({type:vt.Sent}),()=>{ln.removeEventListener("error",Fr),ln.removeEventListener("abort",Fr),ln.removeEventListener("load",kn),ln.removeEventListener("timeout",Fr),Te.reportProgress&&(ln.removeEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.removeEventListener("progress",Tr)),ln.readyState!==ln.DONE&&ln.abort()}})))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const mr=new c.nKC(""),Pr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ii{}let Ai=(()=>{var M;class x{constructor(Te,He,Tt){this.doc=Te,this.platform=He,this.cookieName=Tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,De._b)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(De.qQ),c.KVO(c.Agw),c.KVO(Pr))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Qr(M,x){const te=M.url.toLowerCase();if(!(0,c.WQX)(mr)||"GET"===M.method||"HEAD"===M.method||te.startsWith("http://")||te.startsWith("https://"))return x(M);const Te=(0,c.WQX)(ii).getToken(),He=(0,c.WQX)(kr);return null!=Te&&!M.headers.has(He)&&(M=M.clone({headers:M.headers.set(He,Te)})),x(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Mt(M,x){return{\u0275kind:M,\u0275providers:x}}function ut(...M){const x=[fe,Jr,Ht,{provide:Ye,useExisting:Ht},{provide:Ze,useExisting:Jr},{provide:nr,useValue:Qr,multi:!0},{provide:mr,useValue:!0},{provide:ii,useClass:Ai}];for(const te of M)x.push(...te.\u0275providers);return(0,c.EmA)(x)}const ye=new c.nKC("");let vn=(()=>{var M;class x{}return(M=x).\u0275fac=function(Te){return new(Te||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[ut(Mt(rt.LegacyInterceptors,[{provide:ye,useFactory:Jn},{provide:nr,useExisting:ye,multi:!0}]))]}),x})()},4438:(Tn,gt,C)=>{"use strict";C.d(gt,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>sT,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>yT,Ql9:()=>T1,Ocv:()=>O1,Z63:()=>fo,aKT:()=>Ju,uvJ:()=>Lo,zcH:()=>Za,bkB:()=>Bs,$GK:()=>wt,nKC:()=>He,zZn:()=>ps,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>xi,Vns:()=>so,SKi:()=>bo,Xx1:()=>Fn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Zu,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>sc,kdw:()=>lr,C4Q:()=>ap,NYb:()=>_1,giA:()=>iT,xvI:()=>WR,RxE:()=>YD,c1b:()=>pd,gXe:()=>ls,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>ss,oH4:()=>gT,QZP:()=>QT,SmG:()=>V1,Rfq:()=>Qr,WQX:()=>Oe,Hps:()=>Lm,QuC:()=>po,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>lo,vPA:()=>_d,O8t:()=>PM,H3F:()=>JD,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>nT,e01:()=>rT,lNU:()=>Jn,h9k:()=>$g,$MX:()=>Bi,ZF7:()=>uo,Kcf:()=>nl,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Nt,mq5:()=>hC,JZv:()=>tr,LfX:()=>$t,plB:()=>il,jNT:()=>zE,zjR:()=>oT,TL$:()=>Tg,Tbb:()=>cr,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>us,GFd:()=>Wi,OA$:()=>Zi,Jv_:()=>DD,aNF:()=>TD,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eD,VBU:()=>_s,FsC:()=>$o,jDH:()=>fr,G2t:()=>gi,$C:()=>ul,EJ8:()=>Jo,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>z,kS0:()=>$c,QTQ:()=>l0,bIt:()=>TE,lsd:()=>rD,qSk:()=>ef,XpG:()=>zC,nI1:()=>OD,bMT:()=>ND,i5U:()=>kD,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>wD,mGM:()=>nD,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>bc,eBV:()=>Md,npT:()=>pu,$dS:()=>fh,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>fD,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>AD,mxI:()=>PE,R50:()=>ME,GBs:()=>tD}),C(467);let Z=null,xe=!1,U=1;const ue=Symbol("SIGNAL");function oe(e){const t=Z;return Z=e,t}const De={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 Ye(e){if(xe)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;Be(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Et(e){Be(e);for(let t=0;t0}function Be(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function ke(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let on=function tt(){throw new Error};function ht(){on()}let H=null;function ve(e,t){Dt()||ht(),e.equal(e.value,t)||(e.value=t,function sn(e){var t;e.version++,function Ze(){U++}(),ct(e),null===(t=H)||void 0===t||t()}(e))}const it={...De,equal:function c(e,t){return Object.is(e,t)},value:void 0};const qe=()=>{},Kt={...De,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:qe};var On=C(1413),Qn=C(8359),nr=C(4412),vr=C(6354);const Jn="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Nt(t,r)),this.code=t}}function Nt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function Nn(e){return{toString:e}.toString()}const en="__parameters__";function Zn(e,t,r){return Nn(()=>{const o=function Nr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,B,Y){const de=A.hasOwnProperty(en)?A[en]:Object.defineProperty(A,en,{value:[]})[en];for(;de.length<=Y;)de.push(null);return(de[Y]=de[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const tr=globalThis;function ur(e){for(let t in e)if(e[t]===ur)return t;throw Error("Could not find renamed property on target object.")}function Pr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function kr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ai=ur({__forward_ref__:ur});function Qr(e){return e.__forward_ref__=Qr,e.toString=function(){return cr(this())},e}function pe(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Ai)&&e.__forward_ref__===Qr}function fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pr(e){return ne(e,M)||ne(e,te)}function $t(e){return null!==pr(e)}function ne(e,t){return e.hasOwnProperty(t)?e[t]:null}function $e(e){return e&&(e.hasOwnProperty(x)||e.hasOwnProperty(Te))?e[x]:null}const M=ur({\u0275prov:ur}),x=ur({\u0275inj:ur}),te=ur({ngInjectableDef:ur}),Te=ur({ngInjectorDef:ur});class He{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=fr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tr(e){return e&&!!e.\u0275providers}const Wn=ur({\u0275cmp:ur}),Cr=ur({\u0275dir:ur}),ai=ur({\u0275pipe:ur}),li=ur({\u0275mod:ur}),ei=ur({\u0275fac:ur}),Lr=ur({__NG_ELEMENT_ID__:ur}),mi=ur({__NG_ENV_ID__:ur});function Kn(e){return"string"==typeof e?e:null==e?"":String(e)}function oi(e,t){throw new nt(-201,!1)}var wt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(wt||{});let he;function le(){return he}function W(e){const t=he;return he=e,t}function Ue(e,t,r){const o=pr(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&wt.Optional?null:void 0!==t?t:void oi()}const zt={},In="__NG_DI_FLAG__",Vn="ngTempTokenPath",j=/\n/gm,P="__source";let Ee;function sr(e){const t=Ee;return Ee=e,t}function ni(e,t=wt.Default){if(void 0===Ee)throw new nt(-203,!1);return null===Ee?Ue(e,void 0,t):Ee.get(e,t&wt.Optional?null:void 0,t)}function z(e,t=wt.Default){return(le()||ni)(pe(e),t)}function Oe(e,t=wt.Default){return z(e,et(t))}function et(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function St(e){const t=[];for(let r=0;rArray.isArray(r)?wi(r,t):t(r))}function Ni(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t,r){let o=Io(e,t);return o>=0?e[1|o]=r:(o=~o,function Ti(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Bo(e,t){const r=Io(e,t);if(r>=0)return e[1|r]}function Io(e,t){return function no(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&B!==de){if(Ce(o))return!1;g=!0}}}}else{if(!g&&!Ce(o)&&!Ce(A))return!1;if(g&&Ce(A))continue;g=!1,o=A|1&o}}return Ce(o)||g}function Ce(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!Ce(g)&&(t+=wo(d,a),a=""),o=g,d=d||!Ce(o);r++}return""!==a&&(t+=wo(d,a)),t}function _s(e){return Nn(()=>{var t;const r=La(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ms.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ls.Emulated,styles:e.styles||Kr,_:null,schemas:e.schemas||null,tView:null,id:""};jo(o);const a=e.dependencies;return o.directiveDefs=ys(a,!1),o.pipeDefs=ys(a,!0),o.id=function Hr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Gs(e){return Rr(e)||ji(e)}function fa(e){return null!==e}function ul(e){return Nn(()=>({type:e.type,bootstrap:e.bootstrap||Kr,declarations:e.declarations||Kr,imports:e.imports||Kr,exports:e.exports||Kr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pa(e,t){if(null==e)return ko;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=us.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==us.None?[a,A]:a,t[g]=y):r[g]=a}return r}function $o(e){return Nn(()=>{const t=La(e);return jo(t),t})}function Jo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Rr(e){return e[Wn]||null}function ji(e){return e[Cr]||null}function zi(e){return e[ai]||null}function po(e){const t=Rr(e)||ji(e)||zi(e);return null!==t&&t.standalone}function bi(e,t){const r=e[li]||null;if(!r&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return r}function La(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ko,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Kr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pa(e.inputs,t),outputs:pa(e.outputs),debugInfo:null}}function jo(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function ys(e,t){if(!e)return null;const r=t?zi:Gs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(fa)}function dl(e){return{\u0275providers:e}}function Ws(...e){return{\u0275providers:Va(0,e),\u0275fromNgModule:!0}}function Va(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return wi(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&Es(a,d),r}function Es(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=pe(e)))return!1;let a=null,d=$e(e);const g=!d&&Rr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=$e(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const B of A)hl(B,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let B;o.add(a);try{wi(d.imports,Y=>{hl(Y,t,r,o)&&(B||(B=[]),B.push(Y))})}finally{}void 0!==B&&Es(B,t)}if(!y){const B=qr(a)||(()=>new a);t({provide:a,useFactory:B,deps:Kr},a),t({provide:Rs,useValue:a,multi:!0},a),t({provide:fo,useValue:()=>z(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const B=e;Ul(A,Y=>{t(Y,B)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Tr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=ur({provide:String,useValue:ur});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function Zo(e){return"function"==typeof e}const zl=new He(""),es={},Ru={};let Hl;function ts(){return void 0===Hl&&(Hl=new Hs),Hl}class Lo{}class Ns extends Lo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ks(t,g=>this.processProvider(g)),this.records.set(ka,$a(void 0,this)),a.has("environment")&&this.records.set(Lo,$a(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Rs,Kr,wt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=oe(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=W(void 0);try{return t()}finally{sr(r),W(o)}}get(t,r=zt,o=wt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mi))return t[mi](this);o=et(o);const d=sr(this),g=W(void 0);try{if(!(o&wt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const B=function _a(e){return"function"==typeof e||"object"==typeof e&&e instanceof He}(t)&&pr(t);A=B&&this.injectableDefInScope(B)?$a(Ui(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&wt.Self?ts():this.parent).get(t,r=o&wt.Optional&&r===zt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Vn]=y[Vn]||[]).unshift(cr(t)),d)throw y;return function rn(e,t,r,o){const a=e[Vn];throw t[P]&&a.unshift(t[P]),e.message=function cn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=cr(t);if(Array.isArray(t))a=t.map(cr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):cr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(j,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Vn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{W(g),sr(d)}}resolveInjectorInitializers(){const t=oe(null),r=sr(this),o=W(void 0);try{const d=this.get(fo,Kr,wt.Self);for(const g of d)g()}finally{sr(r),W(o),oe(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(cr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=Zo(t=pe(t))?t:pe(t&&t.provide);const o=function Ua(e){return jl(e)?$a(void 0,e.useValue):$a(ma(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=$a(void 0,es,!0),a.factory=()=>St(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=oe(null);try{return r.value===es&&(r.value=Ru,r.value=r.factory()),"object"==typeof r.value&&r.value&&function va(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{oe(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=pe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Ui(e){const t=pr(e),r=null!==t?t.factory:qr(e);if(null!==r)return r;if(e instanceof He)throw new nt(204,!1);if(e instanceof Function)return function ga(e){if(e.length>0)throw new nt(204,!1);const r=function ee(e){return e&&(e[M]||e[te])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function ma(e,t,r){let o;if(Zo(e)){const a=pe(e);return qr(a)||Ui(a)}if(jl(e))o=()=>pe(e.useValue);else if(function Os(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...St(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>z(pe(e.useExisting));else{const a=pe(e&&(e.useClass||e.provide));if(!function zo(e){return!!e.deps}(e))return qr(a)||Ui(a);o=()=>new a(...St(e.deps))}return o}function $a(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ks(e,t){for(const r of e)Array.isArray(r)?Ks(r,t):r&&Tr(r)?Ks(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Ns&&e.assertNotDestroyed();const o=sr(e),a=W(void 0);try{return t()}finally{sr(o),W(a)}}function Gl(){return void 0!==le()||null!=function ot(){return Ee}()}function ya(e){if(!Gl())throw new nt(-203,!1)}const vi=0,Mn=1,Xn=2,Di=3,qi=4,Si=5,Qi=6,Ho=7,_i=8,Ki=9,ks=10,Br=11,Xs=12,vc=13,fl=14,Gi=15,Co=16,Cs=17,Go=18,qs=19,_c=20,Mi=21,Qs=22,cs=23,Gr=25,Ea=1,Wo=7,Ia=9,Xi=10;var Mu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Mu||{});function di(e){return Array.isArray(e)&&"object"==typeof e[Ea]}function Do(e){return Array.isArray(e)&&!0===e[Ea]}function Wl(e){return!!(4&e.flags)}function rs(e){return e.componentOffset>-1}function Ys(e){return!(1&~e.flags)}function ds(e){return!!e.template}function Kl(e){return!!(512&e[Xn])}class $i{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function yi(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Zi(){return Js}function Js(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ga),Ha}function Ha(){const e=hs(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===ko)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ga(e,t,r,o,a){const d=this.declaredInputs[o],g=hs(e)||function Ta(e,t){return e[Fs]=t}(e,{previous:ko,current:null}),y=g.current||(g.current={}),A=g.previous,B=A[d];y[d]=new $i(B&&B.currentValue,r,A===ko),yi(e,t,a,r)}Zi.ngInherit=!0;const Fs="__ngSimpleChanges__";function hs(e){return e[Fs]||null}const Ds=function(e,t,r){},ng="svg";let xu=!1;function Pi(e){for(;Array.isArray(e);)e=e[vi];return e}function Ka(e,t){return Pi(t[e])}function is(e,t){return Pi(t[e.index])}function Ql(e,t){return e.data[t]}function fs(e,t){return e[t]}function Ro(e,t){const r=t[e];return di(r)?r:r[vi]}function Ic(e){return!(128&~e[Xn])}function Ts(e,t){return null==t?null:e[t]}function Cc(e){e[Cs]=0}function Sd(e){1024&e[Xn]||(e[Xn]|=1024,Ic(e)&&Ls(e))}function Yl(e){var t;return!!(9216&e[Xn]||null!==(t=e[cs])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Ls(e);else if(64&e[Xn])if(function ba(){return xu}())e[Xn]|=1024,Ls(e);else{var r;null===(r=e[ks].changeDetectionScheduler)||void 0===r||r.notify()}}function Ls(e){var t;null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify();let r=Zs(e);for(;null!==r&&!(8192&r[Xn])&&(r[Xn]|=8192,Ic(r));)r=Zs(r)}function Xa(e,t){if(!(256&~e[Xn]))throw new nt(911,!1);null===e[Mi]&&(e[Mi]=[]),e[Mi].push(t)}function Zs(e){const t=e[Di];return Do(t)?t[Di]:t}const gr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wa(){return gr.bindingsEnabled}function Zl(){return null!==gr.skipHydrationRootTNode}function an(){return gr.lFrame.lView}function Ei(){return gr.lFrame.tView}function Md(e){return gr.lFrame.contextLView=e,e[_i]}function bc(e){return gr.lFrame.contextLView=null,e}function Vi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return gr.lFrame.currentTNode}function na(e,t){const r=gr.lFrame;r.currentTNode=e,r.isParent=t}function Nu(){return gr.lFrame.isParent}function ku(){gr.lFrame.isParent=!1}function go(){const e=gr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bs(){return gr.lFrame.bindingIndex++}function oa(e){const t=gr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=gr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){gr.lFrame.currentDirectiveIndex=e}function Nd(){return gr.lFrame.currentQueryIndex}function Rc(e){gr.lFrame.currentQueryIndex=e}function Mc(e){const t=e[Mn];return 2===t.type?t.declTNode:1===t.type?e[Si]:null}function Jh(e,t,r){if(r&wt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&wt.Host||(a=Mc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=gr.lFrame=Lu();return o.currentTNode=t,o.lView=e,!0}function Sa(e){const t=Lu(),r=e[Mn];gr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Lu(){const e=gr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function kd(){const e=gr.lFrame;return gr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Pc=kd;function Vu(){const e=kd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mo(){return gr.lFrame.selectedIndex}function Ra(e){gr.lFrame.selectedIndex=e}function Fi(){const e=gr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){gr.lFrame.currentNamespace=ng}let Uu=!0;function $u(){return Uu}function Vs(e){Uu=e}function ju(e,t){for(let B=t.directiveStart,Y=t.directiveEnd;B=o)break}else t[A]<0&&(e[Cs]+=65536),(y>14>16&&(3&e[Xn])===t&&(e[Xn]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Ma(e){return 32767&e}function Dl(e,t){let r=function Fc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let Hu=!0;function eu(e){const t=Hu;return Hu=e,t}const lf=255,Bd=5;let Lc=0;const ws={};function Gu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Mn];o.firstCreatePass&&(e.injectorIndex=t.length,Mo(o.data,e),Mo(t,null),Mo(o.blueprint,null));const a=Qa(e,t),d=e.injectorIndex;if(Cl(a)){const g=Ma(a),y=Dl(a,t),A=y[Mn].data;for(let B=0;B<8;B++)t[d+B]=y[g+B]|A[g+B]}return t[d+8]=a,d}function Mo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Ja(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Tl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Lr)&&(o=r[Lr]),null==o&&(o=r[Lr]=Lc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&wt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&wt.Optional)return g;oi()}finally{Pc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,B=o&wt.Host?t[Gi][Si]:null;for((-1===y||o&wt.SkipSelf)&&(A=-1===y?Qa(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Mn],y=Ma(A),t=Dl(A,t)):y=-1);-1!==y;){const Y=t[Mn];if(Uc(d,y,Y.data)){const de=lg(y,t,r,g,o,B);if(de!==ws)return de}A=t[y+8],A!==Il&&nu(o,t[Mn].data[y+8]===B)&&Uc(d,y,t)?(g=Y,y=Ma(A),t=Dl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Mn],y=g.data[e+8],Y=jd(y,g,r,null==o?rs(y)&&Hu:o!=g&&!!(3&y.type),a&wt.Host&&d===y);return null!==Y?bl(t,g,Y,y):ws}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,Ge=a?y+Y:e.directiveEnd;for(let ft=o?y:y+Y;ft=A&&Ft.type===r)return ft}if(a){const ft=g[A];if(ft&&ds(ft)&&ft.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function Ci(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Gn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Kn(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const B=g.injectImpl?W(g.injectImpl):null;Jh(e,o,wt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const de=Js(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,de),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,de)}var A,B,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(B=r.preOrderHooks)&&void 0!==B?B:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==B&&W(B),eu(y),g.resolving=!1,Pc()}}return a}function Uc(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[ei]||Wu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[ei]||Wu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Wu(e){return rt(e)?()=>{const t=Wu(pe(e));return t&&t()}:qr(e)}function Ja(e){const t=e[Mn],r=t.type;return 2===r?t.declTNode:1===r?e[Si]:null}function $c(e){return function Vc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=zt,e.NULL=new Hs,e.\u0275prov=fr({token:e,providedIn:"any",factory:()=>z(ka)}),e.__NG_ELEMENT_ID__=-1,t})();function zc(e){return e.ngOriginalError}class Za{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&zc(t);for(;r&&zc(r);)r=zc(r);return r||null}}const Gd=new He("",{providedIn:"root",factory:()=>Oe(Za).handleError.bind(void 0)});let qu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends qu{constructor(t){super(),this._lView=t}onDestroy(t){return Xa(this._lView,t),()=>function Jl(e,t){if(null===e[Mi])return;const r=e[Mi].indexOf(t);-1!==r&&e[Mi].splice(r,1)}(this._lView,t)}}function hg(){return new If(an())}function Yu(){return la(Vi(),an())}function la(e,t){return new Ju(is(e,t))}let Ju=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Yu,t})();function iu(e){return e instanceof Ju?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Bs=class pv extends On.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Oe(qu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=oe(null);try{super.next(t)}finally{oe(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,B;const de=t;a=null===(y=de.next)||void 0===y?void 0:y.bind(de),d=null===(A=de.error)||void 0===A?void 0:A.bind(de),g=null===(B=de.complete)||void 0===B?void 0:B.bind(de)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof Qn.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Zu{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Bs}constructor(t=!1){this._emitDistinctChangesOnly=t,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;const r=Zu.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function jr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new He(""),eh=new He("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new He("",{providedIn:"root",factory:()=>{var e;return(null===(e=lu().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Dv=()=>null;function oh(e,t,r=!1){return Dv(e,t,r)}const Ng=new He("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Qc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,tr.trustedTypes))try{Lf=tr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Vf(){if(void 0===uh&&(uh=null,tr.trustedTypes))try{uh=tr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}function Bf(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jn})`}}class Uf extends du{getTypeName(){return"HTML"}}class Ii extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const r=function vo(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Jn})`)}return r===t}function nl(e){return new Uf(e)}function Py(e){return new Ii(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Qc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const ro=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(ro,dh(Bg,hu("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")),dh(Ny,hu("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")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("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"),hu("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")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=oc(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!ro.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function oc(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Yc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Qc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Qc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var sc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(sc||{});function pu(e){const t=Pa();return t?Bf(t.sanitize(sc.HTML,e)||""):uo(e,"HTML")?Bf(Rl(e)):$g(lu(),Kn(e))}function fh(e){const t=Pa();return t?t.sanitize(sc.STYLE,e)||"":uo(e,"Style")?Rl(e):Kn(e)}function Jc(e){const t=Pa();return t?t.sanitize(sc.URL,e)||"":uo(e,"URL")?Rl(e):Bi(Kn(e))}function jg(e){const t=Pa();if(t)return Fg(t.sanitize(sc.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:Jc}(t,r)(e)}function Pa(){const e=an();return e&&e[ks].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function ca(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Do(o)?d=o:di(o)&&(g=!0,o=o[vi]);const y=Pi(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[Wo];d!==Pi(r)&&vh(t,e,o,d,a);for(let y=Xi;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[ks].changeDetectionScheduler)||void 0===r||r.notify(1),xa(e,t,t[Br],2,null,null)}function Gv(e,t){const r=e[Ia],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Xi)return;const r=Xi+t,o=e[r];if(o){const a=o[Co];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][qi]=o[qi]);const d=ki(e,Xi+t);!function qy(e,t){Hv(e,t),t[vi]=null,t[Si]=null}(o[Mn],o);const g=d[Go];null!==g&&g.detachView(d[Mn]),o[Di]=null,o[qi]=null,o[Xn]&=-129}return o}function Zg(e,t){if(!(256&t[Xn])){const r=t[Br];r.destroyNode&&xa(e,t,r,3,null,null),function gu(e){let t=e[Xs];if(!t)return em(e[Mn],e);for(;t;){let r=null;if(di(t))r=t[Xs];else{const o=t[Xi];o&&(r=o)}if(!r){for(;t&&!t[qi]&&t!==e;)di(t)&&em(t[Mn],t),t=t[Di];null===t&&(t=e),di(t)&&em(t[Mn],t),r=t&&t[qi]}t=r}}(t)}}function em(e,t){if(256&t[Xn])return;const r=oe(null);try{t[Xn]&=-129,t[Xn]|=256,t[cs]&&mt(t[cs]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[Ho]=null);const a=t[Mi];if(null!==a){t[Mi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ls.None||d===ls.Emulated)return null}return is(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?is(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[Br],y=Kv(o.parent||t[Si],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AGr&&im(e,t,Gr,!1),Ds(g?2:0,a),r(o,a)}finally{Ra(d),Ds(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=oe(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,B=us.None;Array.isArray(y)?(A=y[0],B=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,B):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Us(e,t,r,o,a,d,g,y){const A=is(t,r);let Y,B=t.inputs;!y&&null!=B&&(Y=B[o])?(i_(e,r,Y,o,a),rs(t)&&function wI(e,t){const r=Ro(t,e);16&r[Xn]||(r[Xn]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(wa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ti),a)}function Ol(e,t,r,o,a,d){const g=is(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?Kn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Br],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][qi]=t),o{Ls(e.lView)},consumerOnSignalRead(){this.lView[cs]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[ks],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(B){throw t&&um(e,B),B}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[Xn];if(!(256&~d))return;null===(a=t[ks].inlineEffectRunner)||void 0===a||a.flush(),Sa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[cs])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=It(A));try{Cc(t),function wc(e){return gr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const B=!(3&~d);if(B){const Ge=e.preOrderCheckHooks;null!==Ge&&xc(t,Ge,null)}else{const Ge=e.preOrderHooks;null!==Ge&&sa(t,Ge,0,null),aa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[Xn]&Mu.HasTransplantedViews))continue;const r=t[Ia];for(let o=0;o-1&&(qf(t,o),ki(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Mn],this._lView)}onDestroy(t){Xa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[Xn]&=-129}reattach(){ml(this._lView),this._lView[Xn]|=128}detectChanges(){this._lView[Xn]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Mn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Vi(),an())}function fm(e,t){return 4&e.type?new YI(t,e,la(e,t)):null}let gm=()=>null;function _o(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Dh(e){const t=Error(`No component factory found for ${cr(e)}.`);return t.ngComponent=e,t}(t)}}let dc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=an(),r=Ro(Vi().index,e);return(di(r)?r:e)[Br]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function Oa(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof tr.requestAnimationFrame;let t=tr[e?"requestAnimationFrame":"setTimeout"],r=tr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function os(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,Th(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Dm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Ko(e),Th(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Th(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ko(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Th(e)}class Tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var _u=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(_u||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&ya();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Oe(ps);if(!function rl(e){return"browser"===(null!=e?e:Oe(ps)).get(eh)}(d))return bm;Oa("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:_u.MixedReadWrite,B=()=>{y.unregister(de),Y()},Y=d.get(qu).onDestroy(B),de=lo(d,()=>new dp(A,()=>{B(),e()}));return y.register(de),{destroy:B}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Oe(bo),this.errorHandler=Oe(Za,{optional:!0}),null===(o=Oe(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[_u.EarlyRead]:new Set,[_u.Write]:new Set,[_u.MixedReadWrite]:new Set,[_u.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new e}),t})();function il(e){return!!bi(e)}function Eu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(Zt,Bl,xn,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Vi(),an())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return la(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qa(this._hostTNode,this._hostLView);if(Cl(t)){const r=Dl(t,this._hostLView),o=Ma(t);return new eo(r[Mn].data[o+8],r)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=_o(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const B=t&&!function Qt(e){return"function"==typeof e}(t);let Y;if(B)Y=r;else{const xn=r||{};Y=xn.index,o=xn.injector,a=xn.projectableNodes,d=xn.environmentInjector||xn.ngModuleRef}const de=B?t:new Rh(Rr(t)),Ge=o||this.parentInjector;if(!d&&null==de.ngModule){const un=(B?Ge:this.parentInjector).get(Lo,null);un&&(d=un)}const ft=Rr(null!==(g=de.componentType)&&void 0!==g?g:{}),Ft=_o(this._lContainer,null!==(y=null==ft?void 0:ft.id)&&void 0!==y?y:null),Zt=null!==(A=null==Ft?void 0:Ft.firstChild)&&void 0!==A?A:null,bn=de.create(Ge,a,Zt,d);return this.insertImpl(bn.hostView,Y,Ih(this._hostTNode,Ft)),bn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Ac(e){return Do(e[Di])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Di],B=new E_(A,A[Si],A[Di]);B.detach(B.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Ni(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ki(vp(this._lContainer),r),Zg(o[Mn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ki(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Do(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Au(r,t,e,o),new E_(r,e,t)}let Au=function Pm(e,t,r,o){if(e[Wo])return;let a;a=8&r.type?Pi(o):function Ph(e,t){const r=e[Br],o=r.createComment(""),a=is(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Wo]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const B=d[y+1],Y=t[-A];for(let de=Xi;de(Ye(t),t.value);return r[ue]=t,r}(e),o=r[ue];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>ve(o,a),r.update=a=>function Fe(e,t){Dt()||ht(),ve(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[ue];if(void 0===e.readonlyFn){const t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Du(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(ds(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,B=a.contentQueries;if(A&&Sp(e,A),B&&$s(e,B),k_(e,a),Pr(e.outputs,a.outputs),ds(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Ao(a.hostAttrs,r=Ao(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===ko?{}:e===Kr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function $s(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Wi(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class so{}class xi{}function ss(e,t){return new Tu(e,null!=t?t:null,[])}class Tu extends so{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=bi(t);this._bootstrapComponents=ca(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...o],cr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class js extends xi{constructor(t){super(),this.moduleType=t}create(t){return new Tu(this.moduleType,t,[])}}class Mp extends so{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new Ns([...t.providers,{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],t.parent||ts(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nr.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bu(e,t,r){return e[t]=r}function Po(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=Po(e,t,r);return Po(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=an(),B=Ei(),Y=e+Gr,de=B.firstCreatePass?function gb(e,t,r,o,a,d,g,y,A){const B=t.consts,Y=uc(t,e,4,g||null,Ts(B,y));t_(t,r,Y,Ts(B,A)),ju(t,Y);const de=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B,null);return null!==t.queries&&(t.queries.template(t,Y),de.queries=t.queries.embeddedTView(Y)),Y}(Y,B,A,t,r,o,a,d,g):B.data[Y];na(de,!1);const Ge=uA(B,A,de,e);$u()&&tm(B,A,Ge,de),to(Ge,A);const ft=E0(Ge,A,Ge,de);return A[Y]=ft,am(A,ft),function I_(e,t,r){return xh(e,t,r)}(ft,de,A),Ys(de)&&yh(B,A,de),null!=g&&ad(A,de,y),xp}let uA=function cA(e,t,r,o){return Vs(!0),t[Br].createComment("")};function aE(e,t,r,o){const a=an();return Po(a,bs(),t)&&(Ei(),Ol(Fi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return Po(e,bs(),r)?t+Kn(r)+o:ti}function $p(e,t,r,o,a,d){const y=$h(e,function ia(){return gr.lFrame.bindingIndex}(),r,a);return oa(2),y?t+Kn(r)+o+Kn(a)+d:ti}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const B=e[g+1];tw(e[g],t)&&(y=!0,e[g+1]=o?cE(B):lE(B)),g=o?Ad(B):zh(B)}y&&(e[r+1]=o?lE(a):cE(a))}function tw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Io(e,t)>=0}function dE(e,t,r){const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=an(),d=Ei(),g=oa(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function cw(e,t,r,o){const a=function Fu(e){const t=gr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function dw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function hw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function fw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(B=!0)):Y=r,a)if(0!==A){const Ge=Ad(e[y+1]);e[o+1]=K_(Ge,y),0!==Ge&&(e[Ge+1]=uE(e[Ge+1],o)),e[y+1]=function Yb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;B&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function ew(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Io(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ti&&Po(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,B=A[y+1],Y=function Jb(e){return!(1&~e)}(B)?JA(A,t,r,a,zh(B),g):void 0;X_(Y)||(X_(d)||function Qb(e){return!(2&~e)}(B)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,Ka(mo(),r),a,d))}(d,d.data[mo()],a,a[Br],e,a[g+1]=function vw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],B=Array.isArray(A),Y=B?A[1]:A,de=null===Y;let Ge=r[a+1];Ge===ti&&(Ge=de?Kr:void 0);let ft=de?Bo(Ge,o):Y===o?Ge:void 0;if(B&&!X_(ft)&&(ft=Bo(A,o)),X_(ft)&&(y=ft,g))return y;const Ft=e[a+1];a=g?Ad(Ft):zh(Ft)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Bo(A,o))}return y}function X_(e){return void 0!==e}class Sw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){Oa("NgControlFlow");const o=an(),a=bs(),d=_E(o,Gr+e);if(Po(o,a,t)){const y=oe(null);try{if(dm(d,0),-1!==t){const A=yE(o[Mn],Gr+t),B=_o(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:B}),0,Ih(A,B))}}finally{oe(y)}}else{const y=o_(d,0);void 0!==y&&(y[_i]=r)}}class Mw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Xi}}function iC(e,t){return t}class xw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,B,Y,de,Ge){Oa("NgControlFlow");const ft=void 0!==A,Ft=an(),Zt=y?g.bind(Ft[Gi][_i]):g,bn=new xw(ft,Zt);Ft[Gr+e]=bn,xp(e+1,t,r,o,a,d),ft&&xp(e+2,A,B,Y,de,Ge)}class Ow extends Sw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xi}at(t){return this.getLView(t)[_i].$implicit}attach(t,r){const o=r[Qi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Nw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=_o(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Mw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Mn],t)}updateValue(t,r){this.getLView(t)[_i].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Ge)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=bs(),A=0===g.length;if(Po(o,y,A)){const B=r+2,Y=_E(o,B);if(A){const de=yE(a,B),Ge=_o(Y,de.tView.ssrId);rp(Y,np(o,de,void 0,{dehydratedView:Ge}),0,Ih(de,Ge))}else dm(Y,0)}}}finally{oe(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=an(),d=Ei(),g=Gr+e,y=a[Br],A=d.firstCreatePass?function Fw(e,t,r,o,a,d){const g=t.consts,A=uc(t,e,2,o,Ts(g,a));return t_(t,r,A,Ts(g,d)),null!==A.attrs&&Eu(A,A.attrs,!1),null!==A.mergedAttrs&&Eu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],B=aC(d,a,A,y,t,e);a[g]=B;const Y=Ys(A);return na(A,!0),s0(y,B,A),!function Km(e){return!(32&~e.flags)}(A)&&$u()&&tm(d,a,B,A),0===function Dc(){return gr.lFrame.elementDepthCount}()&&to(B,a),function Tc(){gr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Vi();Nu()?ku():(e=e.parent,na(e,!1));const t=e;(function _l(e){return gr.skipHydrationRootTNode===e})(t)&&function qa(){gr.skipHydrationRootTNode=null}(),function ea(){gr.lFrame.elementDepthCount--}();const r=Ei();return r.firstCreatePass&&(ju(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function zu(e){return!!(8&e.flags)}(t)&&hE(r,t,an(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,an(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Vs(!0),xl(o,a,function Fd(){return gr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=an(),a=Ei(),d=e+Gr,g=a.firstCreatePass?function Bw(e,t,r,o,a){const d=t.consts,g=Ts(d,o),y=uc(t,e,8,"ng-container",g);return null!==g&&Eu(y,g,!0),t_(t,r,y,Ts(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];na(g,!0);const y=lC(a,o,g,e);return o[d]=y,$u()&&tm(a,o,y,g),to(y,o),Ys(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Vi();const t=Ei();return Nu()?ku():(e=e.parent,na(e,!1)),t.firstCreatePass&&(ju(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Vs(!0),rd(t[Br],""));function uC(){return an()}const Hh=void 0;var zw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Hw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return zw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=tr.ng&&tr.ng.common&&tr.ng.common.locales&&tr.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function TE(e,t,r,o){const a=an(),d=Ei(),g=Vi();return bE(d,a,a[Br],g,e,t,o),TE}function bE(e,t,r,o,a,d,g){const y=Ys(o),B=e.firstCreatePass&&C0(e),Y=t[_i],de=A0(t);let Ge=!0;if(3&o.type||g){const Zt=is(o,t),bn=g?g(Zt):Zt,xn=de.length,un=g?si=>g(Pi(si[o.index])):o.index;let Wr=null;if(!g&&y&&(Wr=function US(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==Wr)(Wr.__ngLastListenerFn__||Wr).__ngNextListenerFn__=d,Wr.__ngLastListenerFn__=d,Ge=!1;else{d=jC(o,t,Y,d,!1);const si=r.listen(bn,a,d);de.push(d,si),B&&B.push(a,un,xn,xn+1)}}else d=jC(o,t,Y,d,!1);const ft=o.outputs;let Ft;if(Ge&&null!==ft&&(Ft=ft[a])){const Zt=Ft.length;if(Zt)for(let bn=0;bn-1?Ro(e.index,t):t);let A=$C(t,r,o,g),B=d.__ngNextListenerFn__;for(;B;)A=$C(t,r,B,g)&&A,B=B.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Bu(e){return(gr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,gr.lFrame.contextLView))[_i]}(e)}function $S(e,t){let r=null;const o=function _n(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Vs(!0),function Pl(e,t){return e.createText(t)}(t[Br],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=an(),a=Up(o,e,t,r);return a!==ti&&mu(o,mo(),a),iy}function RE(e,t,r,o,a){const d=an(),g=$p(d,e,t,r,o,a);return g!==ti&&mu(d,mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),ME}function AD(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=an(),o=Ei(),a=Vi();return bE(o,r,r[Br],a,e,t),PE}function xE(e,t,r,o,a){if(e=pe(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const ft=new Al(B,a,sd),Ft=NE(A,t,a?Y:Y+Ge,de);-1===Ft?(Tl(Gu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(ft),g.push(ft)):(r[Ft]=ft,g[Ft]=ft)}else{const ft=NE(A,t,Y+Ge,de),Ft=NE(A,t,Y,Y+Ge),bn=Ft>=0&&r[Ft];if(a&&!bn||!a&&!(ft>=0&&r[ft])){Tl(Gu(y,g),d,A);const xn=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,CD(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,B);!a&&bn&&(r[Ft].providerFactory=xn),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(xn),g.push(xn)}else OE(d,e,ft>-1?ft:Ft,CD(r[a?Ft:ft],B,!a&&o));!a&&o&&bn&&r[Ft].componentProviders++}}}function OE(e,t,r,o){const a=Zo(t),d=function As(e){return!!e.useClass}(t);if(a||d){const A=(d?pe(t.useClass):t).prototype.ngOnDestroy;if(A){const B=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=B.indexOf(r);-1===Y?B.push(r,[o,A]):B[Y+1].push(o,A)}else B.push(r,A)}}}function CD(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Ei();if(o.firstCreatePass){const a=ds(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Va(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=fr({token:e,providedIn:"environment",factory:()=>new e(z(Lo))}),t})();function TD(e){Oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function wD(e,t,r){const o=go()+e,a=an();return a[o]===ti?bu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ti?void 0:r}function OD(e,t){const r=Ei();let o;const a=e+Gr;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=qr(o.type)),A=W(sd);try{const B=eu(!1),Y=g();return eu(B),function GS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,an(),a,Y),Y}finally{W(A)}}function ND(e,t,r){const o=e+Gr,a=an(),d=fs(a,o);return ov(a,o)?function SD(e,t,r,o,a,d){const g=t+r;return Po(e,g,a)?bu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,go(),t,d.transform,r,d):d.transform(r)}function kD(e,t,r,o){const a=e+Gr,d=an(),g=fs(d,a);return ov(d,a)?function RD(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?bu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,go(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Mn].data[t].pure}class YD{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new YD("17.3.10");let JD=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const nT=new He(""),rT=new He("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.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:()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(z(bo),z(iT),z(rT))},e.\u0275prov=fr({token:e,factory:e.\u0275fac}),t})(),iT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function oT(e){return!!e&&"function"==typeof e.subscribe}const sT=new He("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Oe(sT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(oT(g)){const y=new Promise((A,B)=>{g.subscribe({complete:A,error:B})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new He("");function uT(e,t){return Array.isArray(t)?t.reduce(uT,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Oe(Gd),this.afterRenderEffectManager=Oe(ud),this.externalTestViews=new Set,this.beforeRender=new On.B,this.afterTick=new On.B,this.componentTypes=[],this.components=[],this.isStable=Oe(Pp).hasPendingTasks.pipe((0,vr.T)(o=>!o)),this._injector=Oe(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&po(o),new nt(405,!1);let y;y=d?o:this._injector.get(dc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(so),Y=y.create(ps.NULL,[],a||y.selector,A),de=Y.location.nativeElement,Ge=Y.injector.get(nT,null);return null==Ge||Ge.registerApplication(de),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==Ge||Ge.unregisterApplication(de)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,oe(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[Xn]|=1024):o=64&e[Xn]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class D1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let T1=(()=>{var e;class t{compileModuleSync(o){return new js(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=ca(bi(o).declarations).reduce((y,A)=>{const B=Rr(A);return B&&y.push(new Rh(B)),y},[]);return new D1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Oe(bo),this.applicationRef=Oe(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Oe(bo),t=Oe(Za);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new Qn.yU,this.initialized=!1,this.zone=Oe(bo),this.pendingTasks=Oe(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new He("",{providedIn:"root",factory:()=>Oe(uy,wt.Optional|wt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new He("",{providedIn:"root",factory:()=>"USD"}),KE=new He("");let fT=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Tm:"zone.js"===e?new bo(t):e}(null==a?void 0:a.ngZone,function hT(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Tu(e,t,r)}(o.moduleType,this.injector,function dT(e){return[{provide:bo,useFactory:e},{provide:fo,multi:!0,useFactory:()=>{const t=Oe(S1,{optional:!0});return()=>t.initialize()}},{provide:fo,multi:!0,useFactory:()=>{const t=Oe(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(Za,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:B=>{y.handleError(B)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function lT(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=uT({},a);return function w1(e,t,r){const o=new js(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(z(ps))},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Dd=null;const pT=new He("");function gT(e,t,r=[]){const o=`Platform: ${t}`,a=new He(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(pT,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Dd&&!Dd.get(pT,!1))throw new nt(400,!1);(function aT(){!function we(e){on=e}(()=>{throw new nt(600,!1)})})(),Dd=e;const t=e.get(fT);(function vT(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function mT(e=[],t){return ps.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Dd=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Dd)||void 0===t?void 0:t.get(fT))&&void 0!==e?e:null}function V1(){}let yT=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(rs(e)&&!r){const o=Ro(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Gi],t):null}(Vi(),an(),!(16&~e))}class CT{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DT),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DT),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DT{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TT(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wT(){return new ZE([new CT])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||wT()),deps:[[t,new lr,new Fn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:wT}),t})();function ST(){return new eI([new bT])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ST()),deps:[[t,new lr,new Fn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:ST}),t})();const J1=gT(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(z(Cd))},e.\u0275mod=ul({type:e}),e.\u0275inj=gi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=oe(null);try{return e()}finally{oe(t)}}const xM=new He("",{providedIn:"root",factory:()=>Oe(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Oe(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function Sn(e,t,r){const o=Object.create(Kt);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>Rt(o),run:()=>{if(null===o.fn)return;if(function Je(){return xe}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Et(o))return;o.hasRun=!0;const A=It(o);try{o.cleanupFn(),o.cleanupFn=qe,o.fn(a)}finally{Vt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(mt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=qe)}(o),[ue]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(Za,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function QT(e,t){var r,o;Oa("NgSignals"),(null==t||!t.injector)&&ya();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Oe(ps),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(qu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(yT,null,{optional:!0});var A,B;return y&&8&y._lView[Xn]?(null!==(B=(A=y._lView)[Qs])&&void 0!==B?B:A[Qs]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=Rr(e),o=t.elementInjector||ts();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=Rr(e);if(!t)return null;const r=new Rh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Tn,gt,C)=>{"use strict";C.d(gt,{MW:()=>Ze,Wp:()=>Rt,XU:()=>xe,gL:()=>U});var h=C(2214),c=C(4438),Z=C(5407);class xe{constructor(Qe){return Qe}}class U{constructor(){return(0,h.Dk)()}}const Ke=new c.nKC("angularfire2._apps"),Je={provide:xe,useFactory:function oe(Ae){return Ae&&1===Ae.length?Ae[0]:new xe((0,h.Sx)())},deps:[[new c.Xx1,Ke]]},Se={provide:U,deps:[[new c.Xx1,Ke]]};function De(Ae){return(Qe,ge)=>{const Be=ge.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,Be.toString());const ke=Qe.runOutsideAngular(()=>Ae(ge));return new xe(ke)}}function Ze(Ae,...Qe){return(0,c.EmA)([Je,Se,{provide:Ke,useFactory:De(Ae),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Qe]}])}const Rt=(0,Z.S3)(h.Wp,!0)},8737:(Tn,gt,C)=>{"use strict";C.d(gt,{Nj:()=>Qa,DF:()=>Tl,eJ:()=>Wu,xI:()=>ug,_q:()=>bl,x9:()=>Qu,kQ:()=>Uc});var h=C(5407),c=C(4438),Z=C(7440),xe=C(2214),U=C(467),ue=C(7852),oe=C(1076),Ke=C(8041),Je=C(1635),Se=C(1362);const Vt=function Rt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Et=new oe.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Ae=new Ke.Vy("@firebase/auth");function ge(I,...f){Ae.logLevel<=Ke.$b.ERROR&&Ae.error(`Auth (${ue.MF}): ${I}`,...f)}function Be(I,...f){throw mn(I,...f)}function ke(I,...f){return mn(I,...f)}function Pe(I,f,v){const S=Object.assign(Object.assign({},Vt()),{[f]:v});return new oe.FA("auth","Firebase",S).create(f,{appName:I.name})}function _t(I){return Pe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function mn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Et.create(I,...f)}function vt(I,f,...v){if(!I)throw mn(f,...v)}function tt(I){const f="INTERNAL ASSERTION FAILED: "+I;throw ge(f),new Error(f)}function on(I,f){I||tt(f)}function ht(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function H(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class se{constructor(f,v){this.shortDelay=f,this.longDelay=v,on(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function we(){return"http:"===H()||"https:"===H()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ve(I,f){on(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Fe{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void tt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void tt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void tt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const it={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},sn=new se(3e4,6e4);function Sn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function qe(I,f,v,S){return Kt.apply(this,arguments)}function Kt(){return(Kt=(0,U.A)(function*(I,f,v,S,J={}){return En(I,J,(0,U.A)(function*(){let be={},bt={};S&&("GET"===f?bt=S:be={body:JSON.stringify(S)});const Xt=(0,oe.Am)(Object.assign({key:I.config.apiKey},bt)).slice(1),Dn=yield I._getAdditionalHeaders();return Dn["Content-Type"]="application/json",I.languageCode&&(Dn["X-Firebase-Locale"]=I.languageCode),Fe.fetch()(vr(I,I.config.apiHost,v,Xt),Object.assign({method:f,headers:Dn,referrerPolicy:"no-referrer"},be))}))})).apply(this,arguments)}function En(I,f,v){return On.apply(this,arguments)}function On(){return(On=(0,U.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},it),f);try{const J=new Jn(I),be=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const bt=yield be.json();if("needConfirmation"in bt)throw nt(I,"account-exists-with-different-credential",bt);if(be.ok&&!("errorMessage"in bt))return bt;{const Xt=be.ok?bt.errorMessage:bt.error.message,[Dn,jn]=Xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw nt(I,"credential-already-in-use",bt);if("EMAIL_EXISTS"===Dn)throw nt(I,"email-already-in-use",bt);if("USER_DISABLED"===Dn)throw nt(I,"user-disabled",bt);const _r=S[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if(jn)throw Pe(I,_r,jn);Be(I,_r)}}catch(J){if(J instanceof oe.g)throw J;Be(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function Qn(I,f,v,S){return nr.apply(this,arguments)}function nr(){return(nr=(0,U.A)(function*(I,f,v,S,J={}){const be=yield qe(I,f,v,S,J);return"mfaPendingCredential"in be&&Be(I,"multi-factor-auth-required",{_serverResponse:be}),be})).apply(this,arguments)}function vr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?ve(I.config,J):`${I.config.apiScheme}://${J}`}function rr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Jn{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(ke(this.auth,"network-request-failed")),sn.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=ke(I,f,S);return J.customData._tokenResponse=v,J}function Ht(I){return void 0!==I&&void 0!==I.enterprise}class fn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return rr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Pn(I,f){return Nn.apply(this,arguments)}function Nn(){return(Nn=(0,U.A)(function*(I,f){return qe(I,"GET","/v2/recaptchaConfig",Sn(I,f))})).apply(this,arguments)}function en(){return(en=(0,U.A)(function*(I,f){return qe(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Nr(I,f){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,U.A)(function*(I,f){return qe(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Dr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function mr(){return(mr=(0,U.A)(function*(I,f=!1){const v=(0,oe.Ku)(I),S=yield v.getIdToken(f),J=Pr(S);vt(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const be="object"==typeof J.firebase?J.firebase:void 0,bt=null==be?void 0:be.sign_in_provider;return{claims:J,token:S,authTime:Dr(ur(J.auth_time)),issuedAtTime:Dr(ur(J.iat)),expirationTime:Dr(ur(J.exp)),signInProvider:bt||null,signInSecondFactor:(null==be?void 0:be.sign_in_second_factor)||null}})).apply(this,arguments)}function ur(I){return 1e3*Number(I)}function Pr(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return ge("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,oe.u)(v);return J?JSON.parse(J):(ge("Failed to decode base64 JWT payload"),null)}catch(J){return ge("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function cr(I){const f=Pr(I);return vt(f,"internal-error"),vt(typeof f.exp<"u","internal-error"),vt(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function kr(I,f){return ii.apply(this,arguments)}function ii(){return(ii=(0,U.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof oe.g&&function Ai({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Qr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,U.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,U.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class pe{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dr(this.lastLoginAt),this.creationTime=Dr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,U.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield kr(I,Nr(v,{idToken:S}));vt(null==J?void 0:J.users.length,v,"internal-error");const be=J.users[0];I._notifyReloadListener(be);const bt=null!==(f=be.providerUserInfo)&&void 0!==f&&f.length?ze(be.providerUserInfo):[],Xt=function ye(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,bt),_r=!!I.isAnonymous&&!(I.email&&be.passwordHash||null!=Xt&&Xt.length),hi={uid:be.localId,displayName:be.displayName||null,photoURL:be.photoUrl||null,email:be.email||null,emailVerified:be.emailVerified||!1,phoneNumber:be.phoneNumber||null,tenantId:be.tenantId||null,providerData:Xt,metadata:new pe(be.createdAt,be.lastLoginAt),isAnonymous:_r};Object.assign(I,hi)})).apply(this,arguments)}function ce(){return(ce=(0,U.A)(function*(I){const f=(0,oe.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function ze(I){return I.map(f=>{var{providerId:v}=f,S=(0,Je.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function ie(){return(ie=(0,U.A)(function*(I,f){const v=yield En(I,{},(0,U.A)(function*(){const S=(0,oe.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:be}=I.config,bt=vr(I,J,"/v1/token",`key=${be}`),Xt=yield I._getAdditionalHeaders();return Xt["Content-Type"]="application/x-www-form-urlencoded",Fe.fetch()(bt,{method:"POST",headers:Xt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function lt(){return(lt=(0,U.A)(function*(I,f){return qe(I,"POST","/v2/accounts:revokeToken",Sn(I,f))})).apply(this,arguments)}class Wt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){vt(f.idToken,"internal-error"),vt(typeof f.idToken<"u","internal-error"),vt(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):cr(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){vt(0!==f.length,"internal-error");const v=cr(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,U.A)(function*(){return v||!S.accessToken||S.isExpired?(vt(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,U.A)(function*(){const{accessToken:J,refreshToken:be,expiresIn:bt}=yield function Lt(I,f){return ie.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,be,Number(bt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:be}=v,bt=new Wt;return S&&(vt("string"==typeof S,"internal-error",{appName:f}),bt.refreshToken=S),J&&(vt("string"==typeof J,"internal-error",{appName:f}),bt.accessToken=J),be&&(vt("number"==typeof be,"internal-error",{appName:f}),bt.expirationTime=be),bt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Wt,this.toJSON())}_performRefresh(){return tt("not implemented")}}function tn(I,f){vt("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class vn{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,be=(0,Je.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=be.displayName||null,this.email=be.email||null,this.emailVerified=be.emailVerified||!1,this.phoneNumber=be.phoneNumber||null,this.photoURL=be.photoURL||null,this.isAnonymous=be.isAnonymous||!1,this.tenantId=be.tenantId||null,this.providerData=be.providerData?[...be.providerData]:[],this.metadata=new pe(be.createdAt||void 0,be.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,U.A)(function*(){const S=yield kr(v,v.stsTokenManager.getToken(v.auth,f));return vt(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function Jr(I){return mr.apply(this,arguments)}(this,f)}reload(){return function ut(I){return ce.apply(this,arguments)}(this)}_assign(f){this!==f&&(vt(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new vn(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){vt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,U.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,U.A)(function*(){if((0,ue.xZ)(f.auth.app))return Promise.reject(_t(f.auth));const v=yield f.getIdToken();return yield kr(f,function gn(I,f){return en.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,be,bt,Xt,Dn,jn,_r;const hi=null!==(S=v.displayName)&&void 0!==S?S:void 0,Vo=null!==(J=v.email)&&void 0!==J?J:void 0,to=null!==(be=v.phoneNumber)&&void 0!==be?be:void 0,ua=null!==(bt=v.photoURL)&&void 0!==bt?bt:void 0,Xd=null!==(Xt=v.tenantId)&&void 0!==Xt?Xt:void 0,su=null!==(Dn=v._redirectEventId)&&void 0!==Dn?Dn:void 0,qd=null!==(jn=v.createdAt)&&void 0!==jn?jn:void 0,ec=null!==(_r=v.lastLoginAt)&&void 0!==_r?_r:void 0,{uid:tc,emailVerified:nc,isAnonymous:Df,providerData:au,stsTokenManager:Tf}=v;vt(tc&&Tf,f,"internal-error");const Qd=Wt.fromJSON(this.name,Tf);vt("string"==typeof tc,f,"internal-error"),tn(hi,f.name),tn(Vo,f.name),vt("boolean"==typeof nc,f,"internal-error"),vt("boolean"==typeof Df,f,"internal-error"),tn(to,f.name),tn(ua,f.name),tn(Xd,f.name),tn(su,f.name),tn(qd,f.name),tn(ec,f.name);const Yd=new vn({uid:tc,auth:f,email:Vo,emailVerified:nc,displayName:hi,isAnonymous:Df,photoURL:ua,phoneNumber:to,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:ec});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,U.A)(function*(){const J=new Wt;J.updateFromServerResponse(v);const be=new vn({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield rt(be),be})()}static _fromGetAccountInfoResponse(f,v,S){return(0,U.A)(function*(){const J=v.users[0];vt(void 0!==J.localId,"internal-error");const be=void 0!==J.providerUserInfo?ze(J.providerUserInfo):[],bt=!(J.email&&J.passwordHash||null!=be&&be.length),Xt=new Wt;Xt.updateFromIdToken(S);const Dn=new vn({uid:J.localId,auth:f,stsTokenManager:Xt,isAnonymous:bt}),jn={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:be,metadata:new pe(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=be&&be.length)};return Object.assign(Dn,jn),Dn})()}}const Yn=new Map;function dn(I){on(I instanceof Function,"Expected a class definition");let f=Yn.get(I);return f?(on(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,Yn.set(I,f),f)}const ir=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,U.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,U.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,U.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,U.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function Ar(I,f,v){return`firebase:${I}:${f}:${v}`}class dr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:be}=this.auth;this.fullUserKey=Ar(this.userKey,J.apiKey,be),this.fullPersistenceKey=Ar("persistence",J.apiKey,be),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,U.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?vn._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,U.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,U.A)(function*(){if(!v.length)return new dr(dn(ir),f,S);const J=(yield Promise.all(v.map(function(){var jn=(0,U.A)(function*(_r){if(yield _r._isAvailable())return _r});return function(_r){return jn.apply(this,arguments)}}()))).filter(jn=>jn);let be=J[0]||dn(ir);const bt=Ar(S,f.config.apiKey,f.name);let Xt=null;for(const jn of v)try{const _r=yield jn._get(bt);if(_r){const hi=vn._fromJSON(f,_r);jn!==be&&(Xt=hi),be=jn;break}}catch{}const Dn=J.filter(jn=>jn._shouldAllowMigration);return be._shouldAllowMigration&&Dn.length?(be=Dn[0],Xt&&(yield be._set(bt,Xt.toJSON())),yield Promise.all(v.map(function(){var jn=(0,U.A)(function*(_r){if(_r!==be)try{yield _r._remove(bt)}catch{}});return function(_r){return jn.apply(this,arguments)}}())),new dr(be,f,S)):new dr(be,f,S)})()}}function $r(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(gi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(Zr(f))return"Firefox";if(f.includes("silk/"))return"Silk";if($t(f))return"Blackberry";if(ne(f))return"Webos";if(fr(f))return"Safari";if((f.includes("chrome/")||Ri(f))&&!f.includes("edge/"))return"Chrome";if(pr(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function Zr(I=(0,oe.ZQ)()){return/firefox\//i.test(I)}function fr(I=(0,oe.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function Ri(I=(0,oe.ZQ)()){return/crios\//i.test(I)}function gi(I=(0,oe.ZQ)()){return/iemobile/i.test(I)}function pr(I=(0,oe.ZQ)()){return/android/i.test(I)}function $t(I=(0,oe.ZQ)()){return/blackberry/i.test(I)}function ne(I=(0,oe.ZQ)()){return/webos/i.test(I)}function ee(I=(0,oe.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function te(I=(0,oe.ZQ)()){return ee(I)||pr(I)||ne(I)||$t(I)||/windows phone/i.test(I)||gi(I)}function He(I,f=[]){let v;switch(I){case"Browser":v=$r((0,oe.ZQ)());break;case"Worker":v=`${$r((0,oe.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${ue.MF}/${S}`}class Tt{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=be=>new Promise((bt,Xt)=>{try{bt(f(be))}catch(Dn){Xt(Dn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,U.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const be of S)try{be()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function ln(){return(ln=(0,U.A)(function*(I,f={}){return qe(I,"GET","/v2/passwordPolicy",Sn(I,f))})).apply(this,arguments)}class $n{constructor(f){var v,S,J,be;const bt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=bt.minPasswordLength)&&void 0!==v?v:6,bt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=bt.maxPasswordLength),void 0!==bt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=bt.containsLowercaseCharacter),void 0!==bt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=bt.containsUppercaseCharacter),void 0!==bt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=bt.containsNumericCharacter),void 0!==bt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=bt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(be=f.forceUpgradeOnSignin)&&void 0!==be&&be,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,be,bt,Xt;const Dn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Dn),this.validatePasswordCharacterOptions(f,Dn),Dn.isValid&&(Dn.isValid=null===(v=Dn.meetsMinPasswordLength)||void 0===v||v),Dn.isValid&&(Dn.isValid=null===(S=Dn.meetsMaxPasswordLength)||void 0===S||S),Dn.isValid&&(Dn.isValid=null===(J=Dn.containsLowercaseLetter)||void 0===J||J),Dn.isValid&&(Dn.isValid=null===(be=Dn.containsUppercaseLetter)||void 0===be||be),Dn.isValid&&(Dn.isValid=null===(bt=Dn.containsNumericCharacter)||void 0===bt||bt),Dn.isValid&&(Dn.isValid=null===(Xt=Dn.containsNonAlphanumericCharacter)||void 0===Xt||Xt),Dn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,be){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=be))}}class xr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Fr(this),this.idTokenSubscription=new Fr(this),this.beforeStateQueue=new Tt(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Et,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,U.A)(function*(){var J,be;if(!S._deleted&&(S.persistenceManager=yield dr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(be=S.currentUser)||void 0===be?void 0:be.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,U.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,U.A)(function*(){try{const S=yield Nr(v,{idToken:f}),J=yield vn._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,U.A)(function*(){var S;if((0,ue.xZ)(v.app)){const Xt=v.app.settings.authIdToken;return Xt?new Promise(Dn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Xt).then(Dn,Dn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let be=J,bt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Xt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Dn=null==be?void 0:be._redirectEventId,jn=yield v.tryRedirectSignIn(f);(!Xt||Xt===Dn)&&null!=jn&&jn.user&&(be=jn.user,bt=!0)}if(!be)return v.directlySetCurrentUser(null);if(!be._redirectEventId){if(bt)try{yield v.beforeStateQueue.runMiddleware(be)}catch(Xt){be=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Xt))}return be?v.reloadAndSetCurrentUserOrClear(be):v.directlySetCurrentUser(null)}return vt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===be._redirectEventId?v.directlySetCurrentUser(be):v.reloadAndSetCurrentUserOrClear(be)})()}tryRedirectSignIn(f){var v=this;return(0,U.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,U.A)(function*(){try{yield rt(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function fe(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,U.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,U.A)(function*(){if((0,ue.xZ)(v.app))return Promise.reject(_t(v));const S=f?(0,oe.Ku)(f):null;return S&&vt(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,U.A)(function*(){if(!S._deleted)return f&&vt(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,U.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,U.A)(function*(){return(0,ue.xZ)(f.app)?Promise.reject(_t(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,ue.xZ)(this.app)?Promise.reject(_t(this)):this.queue((0,U.A)(function*(){yield v.assertedPersistence.setPersistence(dn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,U.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,U.A)(function*(){const v=yield function Jt(I){return ln.apply(this,arguments)}(f),S=new $n(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new oe.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,U.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function dt(I,f){return lt.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,U.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,U.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&dn(f)||v._popupRedirectResolver;vt(S,v,"argument-error"),v.redirectPersistenceManager=yield dr.create(v,[dn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,U.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,U.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,U.A)(function*(){if(f===v.currentUser)return v.queue((0,U.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const be="function"==typeof v?v:v.next.bind(v);let bt=!1;const Xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(vt(Xt,this,"internal-error"),Xt.then(()=>{bt||be(this.currentUser)}),"function"==typeof v){const Dn=f.addObserver(v,S,J);return()=>{bt=!0,Dn()}}{const Dn=f.addObserver(v);return()=>{bt=!0,Dn()}}}directlySetCurrentUser(f){var v=this;return(0,U.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return vt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=He(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,U.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const be=yield f._getAppCheckToken();return be&&(S["X-Firebase-AppCheck"]=be),S})()}_getAppCheckToken(){var f=this;return(0,U.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Qe(I,...f){Ae.logLevel<=Ke.$b.WARN&&Ae.warn(`Auth (${ue.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function kn(I){return(0,oe.Ku)(I)}class Fr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,oe.tD)(v=>this.observer=v)}get next(){return vt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Or={loadJS:()=>(0,U.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Tr(I){return Or.loadJS(I)}function li(I){return`__${I}${Math.floor(1e6*Math.random())}`}class mi{constructor(f){this.type="recaptcha-enterprise",this.auth=kn(f)}verify(f="verify",v=!1){var S=this;return(0,U.A)(function*(){function be(){return be=(0,U.A)(function*(Xt){if(!v){if(null==Xt.tenantId&&null!=Xt._agentRecaptchaConfig)return Xt._agentRecaptchaConfig.siteKey;if(null!=Xt.tenantId&&void 0!==Xt._tenantRecaptchaConfigs[Xt.tenantId])return Xt._tenantRecaptchaConfigs[Xt.tenantId].siteKey}return new Promise(function(){var Dn=(0,U.A)(function*(jn,_r){Pn(Xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(hi=>{if(void 0!==hi.recaptchaKey){const Vo=new fn(hi);return null==Xt.tenantId?Xt._agentRecaptchaConfig=Vo:Xt._tenantRecaptchaConfigs[Xt.tenantId]=Vo,jn(Vo.siteKey)}_r(new Error("recaptcha Enterprise site key undefined"))}).catch(hi=>{_r(hi)})});return function(jn,_r){return Dn.apply(this,arguments)}}())}),be.apply(this,arguments)}function bt(Xt,Dn,jn){const _r=window.grecaptcha;Ht(_r)?_r.enterprise.ready(()=>{_r.enterprise.execute(Xt,{action:f}).then(hi=>{Dn(hi)}).catch(()=>{Dn("NO_RECAPTCHA")})}):jn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Xt,Dn)=>{(function J(Xt){return be.apply(this,arguments)})(S.auth).then(jn=>{if(!v&&Ht(window.grecaptcha))bt(jn,Xt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));let _r=function Cr(){return Or.recaptchaEnterpriseScript}();0!==_r.length&&(_r+=jn),Tr(_r).then(()=>{bt(jn,Xt,Dn)}).catch(hi=>{Dn(hi)})}}).catch(jn=>{Dn(jn)})})})()}}function Kn(I,f,v){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,U.A)(function*(I,f,v,S=!1){const J=new mi(I);let be;try{be=yield J.verify(v)}catch{be=yield J.verify(v,!0)}const bt=Object.assign({},f);return Object.assign(bt,S?{captchaResp:be}:{captchaResponse:be}),Object.assign(bt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(bt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),bt})).apply(this,arguments)}function ao(I,f,v,S){return ui.apply(this,arguments)}function ui(){return ui=(0,U.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const be=yield Kn(I,f,v,"getOobCode"===v);return S(I,be)}return S(I,f).catch(function(){var be=(0,U.A)(function*(bt){if("auth/missing-recaptcha-token"===bt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Xt=yield Kn(I,f,v,"getOobCode"===v);return S(I,Xt)}return Promise.reject(bt)});return function(bt){return be.apply(this,arguments)}}())}),ui.apply(this,arguments)}function he(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function W(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Le{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return tt("not implemented")}_getIdTokenResponse(f){return tt("not implemented")}_linkToIdToken(f,v){return tt("not implemented")}_getReauthenticationResolver(f){return tt("not implemented")}}function w(I,f){return j.apply(this,arguments)}function j(){return(j=(0,U.A)(function*(I,f){return qe(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ee(I,f){return ot.apply(this,arguments)}function ot(){return(ot=(0,U.A)(function*(I,f){return Qn(I,"POST","/v1/accounts:signInWithPassword",Sn(I,f))})).apply(this,arguments)}function yn(){return(yn=(0,U.A)(function*(I,f){return Qn(I,"POST","/v1/accounts:signInWithEmailLink",Sn(I,f))})).apply(this,arguments)}function zn(){return(zn=(0,U.A)(function*(I,f){return Qn(I,"POST","/v1/accounts:signInWithEmailLink",Sn(I,f))})).apply(this,arguments)}class lr extends Le{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new lr(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new lr(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,U.A)(function*(){switch(v.signInMethod){case"password":return ao(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ee);case"emailLink":return function cn(I,f){return yn.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:Be(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,U.A)(function*(){switch(S.signInMethod){case"password":return ao(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Fn(I,f){return zn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:Be(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Bn(I,f){return qr.apply(this,arguments)}function qr(){return(qr=(0,U.A)(function*(I,f){return Qn(I,"POST","/v1/accounts:signInWithIdp",Sn(I,f))})).apply(this,arguments)}class no{constructor(f){var v,S,J,be,bt,Xt;const Dn=(0,oe.I9)((0,oe.hp)(f)),jn=null!==(v=Dn.apiKey)&&void 0!==v?v:null,_r=null!==(S=Dn.oobCode)&&void 0!==S?S:null,hi=function Io(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Dn.mode)&&void 0!==J?J:null);vt(jn&&_r&&hi,"argument-error"),this.apiKey=jn,this.operation=hi,this.code=_r,this.continueUrl=null!==(be=Dn.continueUrl)&&void 0!==be?be:null,this.languageCode=null!==(bt=Dn.languageCode)&&void 0!==bt?bt:null,this.tenantId=null!==(Xt=Dn.tenantId)&&void 0!==Xt?Xt:null}static parseLink(f){const v=function Ss(I){const f=(0,oe.I9)((0,oe.hp)(I)).link,v=f?(0,oe.I9)((0,oe.hp)(f)).deep_link_id:null,S=(0,oe.I9)((0,oe.hp)(I)).deep_link_id;return(S?(0,oe.I9)((0,oe.hp)(S)).link:null)||S||v||f||I}(f);try{return new no(v)}catch{return null}}}let Kr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return lr._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=no.parseLink(S);return vt(J,"argument-error"),lr._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class fo{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class ka extends fo{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function Ao(I,f){return Fo.apply(this,arguments)}function Fo(){return(Fo=(0,U.A)(function*(I,f){return Qn(I,"POST","/v1/accounts:signUp",Sn(I,f))})).apply(this,arguments)}class io{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,U.A)(function*(){const be=yield vn._fromIdTokenResponse(f,S,J),bt=ha(S);return new io({user:be,providerId:bt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,U.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=ha(S);return new io({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function ha(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class N extends oe.g{constructor(f,v,S,J){var be;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,N.prototype),this.customData={appName:f.name,tenantId:null!==(be=f.tenantId)&&void 0!==be?be:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new N(f,v,S,J)}}function Ce(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(be=>{throw"auth/multi-factor-auth-required"===be.code?N._fromErrorAndOperation(I,be,f,S):be})}function wr(){return(wr=(0,U.A)(function*(I,f,v=!1){const S=yield kr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return io._forOperation(I,"link",S)})).apply(this,arguments)}function Yo(){return(Yo=(0,U.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,ue.xZ)(S.app))return Promise.reject(_t(S));const J="reauthenticate";try{const be=yield kr(I,Ce(S,J,f,I),v);vt(be.idToken,S,"internal-error");const bt=Pr(be.idToken);vt(bt,S,"internal-error");const{sub:Xt}=bt;return vt(I.uid===Xt,S,"user-mismatch"),io._forOperation(I,J,be)}catch(be){throw"auth/user-not-found"===(null==be?void 0:be.code)&&Be(S,"user-mismatch"),be}})).apply(this,arguments)}function Fa(I,f){return _s.apply(this,arguments)}function _s(){return(_s=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(_t(I));const S="signIn",J=yield Ce(I,S,f),be=yield io._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(be.user)),be})).apply(this,arguments)}function fa(){return(fa=(0,U.A)(function*(I,f){return Fa(kn(I),f)})).apply(this,arguments)}function cl(I){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,U.A)(function*(I){const f=kn(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function Os(I,f,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,U.A)(function*(I,f,v){if((0,ue.xZ)(I.app))return Promise.reject(_t(I));const S=kn(I),bt=yield ao(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ao).catch(Dn=>{throw"auth/password-does-not-meet-requirements"===Dn.code&&cl(I),Dn}),Xt=yield io._fromIdTokenResponse(S,"signIn",bt);return yield S._updateCurrentUser(Xt.user),Xt})).apply(this,arguments)}function As(I,f,v){return(0,ue.xZ)(I.app)?Promise.reject(_t(I)):function Gs(I,f){return fa.apply(this,arguments)}((0,oe.Ku)(I),Kr.credential(f,v)).catch(function(){var S=(0,U.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function Hi(I,f,v,S){return(0,oe.Ku)(I).onIdTokenChanged(f,v,S)}const qs="__sak";class _c{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(qs,"1"),this.storage.removeItem(qs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ea=(()=>{class I extends _c{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Mi(){const I=(0,oe.ZQ)();return fr(I)||ee(I)}()&&function Te(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=te(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),be=this.localCache[S];J!==be&&v(S,be,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Xt,Dn,jn)=>{this.notifyListeners(Xt,jn)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Xt=this.storage.getItem(J);if(v.newValue!==Xt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const be=()=>{const Xt=this.storage.getItem(J);!S&&this.localCache[J]===Xt||this.notifyListeners(J,Xt)},bt=this.storage.getItem(J);!function x(){return(0,oe.lT)()&&10===document.documentMode}()||bt===v.newValue||v.newValue===v.oldValue?be():setTimeout(be,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,be=this;return(0,U.A)(function*(){yield J().call(be,v,S),be.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,U.A)(function*(){const be=yield S().call(J,v);return J.localCache[v]=JSON.stringify(be),be})()}_remove(v){var S=()=>super._remove,J=this;return(0,U.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),Wo=(()=>{class I extends _c{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Ia=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(be=>be.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,U.A)(function*(){const J=v,{eventId:be,eventType:bt,data:Xt}=J.data,Dn=S.handlersMap[bt];if(null==Dn||!Dn.size)return;J.ports[0].postMessage({status:"ack",eventId:be,eventType:bt});const jn=Array.from(Dn).map(function(){var hi=(0,U.A)(function*(Vo){return Vo(J.origin,Xt)});return function(Vo){return hi.apply(this,arguments)}}()),_r=yield function pl(I){return Promise.all(I.map(function(){var f=(0,U.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}(jn);J.ports[0].postMessage({status:"done",eventId:be,eventType:bt,response:_r})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function Xi(I="",f=10){let v="";for(let S=0;S{const _r=Xi("",20);be.port1.start();const hi=setTimeout(()=>{jn(new Error("unsupported_event"))},S);Xt={messageChannel:be,onMessage(Vo){const to=Vo;if(to.data.eventId===_r)switch(to.data.status){case"ack":clearTimeout(hi),bt=setTimeout(()=>{jn(new Error("timeout"))},3e3);break;case"done":clearTimeout(bt),Dn(to.data.response);break;default:clearTimeout(hi),clearTimeout(bt),jn(new Error("invalid_response"))}}},J.handlers.add(Xt),be.port1.addEventListener("message",Xt.onMessage),J.target.postMessage({eventType:f,eventId:_r,data:v},[be.port2])}).finally(()=>{Xt&&J.removeMessageHandler(Xt)})})()}}function di(){return window}function Wl(){return typeof di().WorkerGlobalScope<"u"&&"function"==typeof di().importScripts}function Ys(){return(Ys=(0,U.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",Aa="firebaseLocalStorage",Pu="fbase_key";class Ca{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(I,f){return I.transaction([Aa],f?"readwrite":"readonly").objectStore(Aa)}function Td(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(Aa,{keyPath:Pu})}catch(J){v(J)}}),I.addEventListener("success",(0,U.A)(function*(){const S=I.result;S.objectStoreNames.contains(Aa)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new Ca(I).toPromise()}(),f(yield Td()))}))})}function Da(I,f,v){return za.apply(this,arguments)}function za(){return(za=(0,U.A)(function*(I,f,v){const S=ja(I,!0).put({[Pu]:f,value:v});return new Ca(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,U.A)(function*(I,f){const v=ja(I,!1).get(f),S=yield new Ca(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=ja(I,!0).delete(f);return new Ca(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,U.A)(function*(){return v.db||(v.db=yield Td()),v.db})()}_withRetries(v){var S=this;return(0,U.A)(function*(){let J=0;for(;;)try{const be=yield S._openDb();return yield v(be)}catch(be){if(J++>3)throw be;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,U.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,U.A)(function*(){v.receiver=Ia._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,U.A)(function*(J,be){return{keyProcessed:(yield v._poll()).includes(be.key)}});return function(J,be){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,U.A)(function*(J,be){return["keyChanged"]});return function(J,be){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,U.A)(function*(){var S,J;if(v.activeServiceWorker=yield function rs(){return Ys.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Mu(v.activeServiceWorker);const be=yield v.sender._send("ping",{},800);be&&null!==(S=be[0])&&void 0!==S&&S.fulfilled&&null!==(J=be[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,U.A)(function*(){if(S.sender&&S.activeServiceWorker&&function ds(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,U.A)(function*(){try{if(!indexedDB)return!1;const v=yield Td();return yield Da(v,qs,"1"),yield E(v,qs),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,U.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,U.A)(function*(){return J._withPendingWrite((0,U.A)(function*(){return yield J._withRetries(be=>Da(be,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,U.A)(function*(){const J=yield S._withRetries(be=>function Kh(I,f){return bd.apply(this,arguments)}(be,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,U.A)(function*(){return S._withPendingWrite((0,U.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,U.A)(function*(){const S=yield v._withRetries(bt=>{const Xt=ja(bt,!1).getAll();return new Ca(Xt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],be=new Set;if(0!==S.length)for(const{fbase_key:bt,value:Xt}of S)be.add(bt),JSON.stringify(v.localCache[bt])!==JSON.stringify(Xt)&&(v.notifyListeners(bt,Xt),J.push(bt));for(const bt of Object.keys(v.localCache))v.localCache[bt]&&!be.has(bt)&&(v.notifyListeners(bt,null),J.push(bt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,U.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();li("rcb"),new se(3e4,6e4);class Ro extends Le{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Bn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Bn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Bn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return Fa(I.auth,new Ro(I),I.bypassAuthState)}function Ic(I){const{auth:f,user:v}=I;return vt(v,f,"internal-error"),function So(I,f){return Yo.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)}function Ac(I){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,U.A)(function*(I){const{auth:f,user:v}=I;return vt(v,f,"internal-error"),function qn(I,f){return wr.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)})).apply(this,arguments)}class Cc{constructor(f,v,S,J,be=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=be,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,U.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(be){f.reject(be)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,U.A)(function*(){const{urlResponse:S,sessionId:J,postBody:be,tenantId:bt,error:Xt,type:Dn}=f;if(Xt)return void v.reject(Xt);const jn={auth:v.auth,requestUri:S,sessionId:J,tenantId:bt||void 0,postBody:be||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Dn)(jn))}catch(_r){v.reject(_r)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Ac;case"reauthViaPopup":case"reauthViaRedirect":return Ic;default:Be(this.auth,"internal-error")}}resolve(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new se(2e3,1e4);const gr="pendingRedirect",vl=new Map;class Rd extends Cc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,U.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const be=(yield function Dc(I,f){return Tc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(be)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,U.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,U.A)(function*(){})()}cleanUp(){}}function Tc(){return(Tc=(0,U.A)(function*(I,f){const v=function yl(I){return Ar(gr,I.config.apiKey,I.name)}(f),S=function qh(I){return dn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function ku(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(_t(I));const S=kn(I),J=function fs(I,f){return f?dn(f):(vt(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),bt=yield new Rd(S,J,v).execute();return bt&&!v&&(delete bt.user._redirectEventId,yield S._persistUserIfCurrent(bt.user),yield S._setRedirectUser(null,f)),bt})).apply(this,arguments)}class ia{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function oa(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return bs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!bs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(ke(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(wc(f))}saveEventToCache(f){this.cachedEventUids.add(wc(f)),this.lastProcessedEventTime=Date.now()}}function wc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function bs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Sc(){return(Sc=(0,U.A)(function*(I,f={}){return qe(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,To=/^https?/;function Fu(){return Fu=(0,U.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Sc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}Be(I,"unauthorized-domain")}),Fu.apply(this,arguments)}function Nd(I){const f=ht(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const bt=new URL(I);return""===bt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&bt.hostname===S}if(!To.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Rc=new se(3e4,6e4);function Mc(){const I=di().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,be;function bt(){Mc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Mc(),v(ke(I,"network-request-failed"))},timeout:Rc.get()})}if(null!==(J=null===(S=di().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(be=di().gapi)||void 0===be||!be.load){const Xt=li("iframefcb");return di()[Xt]=()=>{gapi.load?bt():v(ke(I,"network-request-failed"))},Tr(`${function ai(){return Or.gapiScript}()}?onload=${Xt}`).catch(Dn=>v(Dn))}bt()}}).catch(f=>{throw Sa=null,f})}(I),Sa}(I),v=di().gapi;return vt(v,I,"internal-error"),f.open({where:document.body,url:mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vu,dontclear:!0},S=>new Promise(function(){var J=(0,U.A)(function*(be,bt){yield S.restyle({setHideOnLeave:!1});const Xt=ke(I,"network-request-failed"),Dn=di().setTimeout(()=>{bt(Xt)},Zh.get());function jn(){di().clearTimeout(Dn),be(S)}S.ping(jn).then(jn,()=>{bt(Xt)})});return function(be,bt){return J.apply(this,arguments)}}()))}),Fi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Uu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",ju="emulator/auth/handler",xc=encodeURIComponent("fac");function sa(I,f,v,S,J,be){return aa.apply(this,arguments)}function aa(){return(aa=(0,U.A)(function*(I,f,v,S,J,be){vt(I.config.authDomain,I,"auth-domain-config-required"),vt(I.config.apiKey,I,"invalid-api-key");const bt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:ue.MF,eventId:J};if(f instanceof fo){f.setDefaultLanguage(I.languageCode),bt.providerId=f.providerId||"",(0,oe.Im)(f.getCustomParameters())||(bt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[_r,hi]of Object.entries(be||{}))bt[_r]=hi}if(f instanceof ka){const _r=f.getScopes().filter(hi=>""!==hi);_r.length>0&&(bt.scopes=_r.join(","))}I.tenantId&&(bt.tid=I.tenantId);const Xt=bt;for(const _r of Object.keys(Xt))void 0===Xt[_r]&&delete Xt[_r];const Dn=yield I._getAppCheckToken(),jn=Dn?`#${xc}=${encodeURIComponent(Dn)}`:"";return`${function Oc({config:I}){return I.emulator?ve(I,ju):`https://${I.authDomain}/${ag}`}(I)}?${(0,oe.Am)(Xt).slice(1)}${jn}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Wo,this._completeRedirectFn=ku,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var be=this;return(0,U.A)(function*(){var bt;on(null===(bt=be.eventManagers[f._key()])||void 0===bt?void 0:bt.manager,"_initialize() not called before _openPopup()");const Xt=yield sa(f,v,S,ht(),J);return function $u(I,f,v,S=500,J=600){const be=Math.max((window.screen.availHeight-J)/2,0).toString(),bt=Math.max((window.screen.availWidth-S)/2,0).toString();let Xt="";const Dn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:be,left:bt}),jn=(0,oe.ZQ)().toLowerCase();v&&(Xt=Ri(jn)?"_blank":v),Zr(jn)&&(f=f||"http://localhost",Dn.scrollbars="yes");const _r=Object.entries(Dn).reduce((Vo,[to,ua])=>`${Vo}${to}=${ua},`,"");if(function M(I=(0,oe.ZQ)()){var f;return ee(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}(jn)&&"_self"!==Xt)return function Vs(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Xt),new Uu(null);const hi=window.open(f||"",Xt,_r);vt(hi,I,"popup-blocked");try{hi.focus()}catch{}return new Uu(hi)}(f,Xt,Xi())})()}_openRedirect(f,v,S,J){var be=this;return(0,U.A)(function*(){return yield be._originValidation(f),function Do(I){di().location.href=I}(yield sa(f,v,S,ht(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:be}=this.eventManagers[v];return J?Promise.resolve(J):(on(be,"If manager is not set, promise should be"),be)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,U.A)(function*(){const S=yield function Ra(I){return Fi.apply(this,arguments)}(f),J=new ia(f);return S.register("authEvent",be=>(vt(null==be?void 0:be.authEvent,f,"invalid-auth-event"),{status:J.onEvent(be.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var be;const bt=null===(be=null==J?void 0:J[0])||void 0===be?void 0:be[El];void 0!==bt&&v(!!bt),Be(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return Fu.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return te()||fr()||ee()}};var Vd="@firebase/auth";class Ma{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,U.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){vt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,oe.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,U.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const be=null==S?void 0:S.token;af!==be&&(af=be,yield fetch(I,{method:be?"POST":"DELETE",headers:be?{Authorization:`Bearer ${be}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,ue.Sx)()){const f=(0,ue.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function No(I,f){const v=(0,ue.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),be=v.getOptions();if((0,oe.bD)(be,null!=f?f:{}))return J;Be(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ea,Wo]}),S=(0,oe.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const be=new URL(S,location.origin);if(location.origin===be.origin){const bt=lf(be.toString());(function vi(I,f,v){(0,oe.Ku)(I).beforeAuthStateChanged(f,v)})(v,bt,()=>bt(v.currentUser)),Hi(v,Xt=>bt(Xt))}}const J=(0,oe.Tj)("auth");return J&&function wt(I,f,v){const S=kn(I);vt(S._canInitEmulator,S,"emulator-config-failed"),vt(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),be=he(f),{host:bt,port:Xt}=function le(I){const f=he(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const be=J[1];return{host:be,port:W(S.substr(be.length+1))}}{const[be,bt]=S.split(":");return{host:be,port:W(bt)}}}(f);S.config.emulator={url:`${be}//${bt}${null===Xt?"":`:${Xt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:bt,port:Xt,protocol:be.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function Ue(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function zr(I){Or=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const be=ke("internal-error");be.customData=J,v(be)},S.type="text/javascript",S.charset="UTF-8",function Lc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Dl(I){(0,ue.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),be=f.getProvider("app-check-internal"),{apiKey:bt,authDomain:Xt}=S.options;vt(bt&&!bt.includes(":"),"invalid-api-key",{appName:S.name});const Dn={apiKey:bt,authDomain:Xt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:He(I)},jn=new xr(S,J,be,Dn);return function oi(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(dn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}(jn,v),jn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,ue.om)(new Se.uA("auth-internal",f=>{const v=kn(f.getProvider("auth").getImmediate());return new Ma(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,ue.KO)(Vd,"1.7.4",function Fc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,ue.KO)(Vd,"1.7.4","esm2017")}("Browser");var ws=C(1985);function Gu(I){return new ws.c(function(f){return{unsubscribe:Hi(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Qa{constructor(f){return f}}class Tl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Qa(S)}}const cf={provide:Tl,deps:[[new c.Xx1,tu]]},lg={provide:Qa,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Qa(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,xe.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const Uc=(0,h.S3)(Gu,!0),Wu=(0,h.S3)(Os,!0),ug=(0,h.S3)(Bd,!0),Qu=(0,h.S3)(As,!0)},4262:(Tn,gt,C)=>{"use strict";C.d(gt,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var Ze,Xe,h=C(5407),c=C(4438),Z=C(7440),xe=C(8737),U=C(2214),ue=C(467),oe=C(7852),Ke=C(1362),Je=C(8041),Se=C(1076),De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ye={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Ot,at,Ct){Ct||(Ct=0);var kt=Array(16);if("string"==typeof at)for(var Bt=0;16>Bt;++Bt)kt[Bt]=at.charCodeAt(Ct++)|at.charCodeAt(Ct++)<<8|at.charCodeAt(Ct++)<<16|at.charCodeAt(Ct++)<<24;else for(Bt=0;16>Bt;++Bt)kt[Bt]=at[Ct++]|at[Ct++]<<8|at[Ct++]<<16|at[Ct++]<<24;var qt=Ot.g[3],yt=(at=Ot.g[0])+(qt^(Ct=Ot.g[1])&((Bt=Ot.g[2])^qt))+kt[0]+3614090360&4294967295;yt=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=(Ct=(Bt=(qt=(at=Ct+(yt<<7&4294967295|yt>>>25))+((yt=qt+(Bt^at&(Ct^Bt))+kt[1]+3905402710&4294967295)<<12&4294967295|yt>>>20))+((yt=Bt+(Ct^qt&(at^Ct))+kt[2]+606105819&4294967295)<<17&4294967295|yt>>>15))+((yt=Ct+(at^Bt&(qt^at))+kt[3]+3250441966&4294967295)<<22&4294967295|yt>>>10))+((yt=at+(qt^Ct&(Bt^qt))+kt[4]+4118548399&4294967295)<<7&4294967295|yt>>>25))+((yt=qt+(Bt^at&(Ct^Bt))+kt[5]+1200080426&4294967295)<<12&4294967295|yt>>>20))+((yt=Bt+(Ct^qt&(at^Ct))+kt[6]+2821735955&4294967295)<<17&4294967295|yt>>>15))+((yt=Ct+(at^Bt&(qt^at))+kt[7]+4249261313&4294967295)<<22&4294967295|yt>>>10))+((yt=at+(qt^Ct&(Bt^qt))+kt[8]+1770035416&4294967295)<<7&4294967295|yt>>>25))+((yt=qt+(Bt^at&(Ct^Bt))+kt[9]+2336552879&4294967295)<<12&4294967295|yt>>>20))+((yt=Bt+(Ct^qt&(at^Ct))+kt[10]+4294925233&4294967295)<<17&4294967295|yt>>>15))+((yt=Ct+(at^Bt&(qt^at))+kt[11]+2304563134&4294967295)<<22&4294967295|yt>>>10))+((yt=at+(qt^Ct&(Bt^qt))+kt[12]+1804603682&4294967295)<<7&4294967295|yt>>>25))+((yt=qt+(Bt^at&(Ct^Bt))+kt[13]+4254626195&4294967295)<<12&4294967295|yt>>>20))+((yt=Bt+(Ct^qt&(at^Ct))+kt[14]+2792965006&4294967295)<<17&4294967295|yt>>>15))+((yt=Ct+(at^Bt&(qt^at))+kt[15]+1236535329&4294967295)<<22&4294967295|yt>>>10))+((yt=at+(Bt^qt&(Ct^Bt))+kt[1]+4129170786&4294967295)<<5&4294967295|yt>>>27))+((yt=qt+(Ct^Bt&(at^Ct))+kt[6]+3225465664&4294967295)<<9&4294967295|yt>>>23))+((yt=Bt+(at^Ct&(qt^at))+kt[11]+643717713&4294967295)<<14&4294967295|yt>>>18))+((yt=Ct+(qt^at&(Bt^qt))+kt[0]+3921069994&4294967295)<<20&4294967295|yt>>>12))+((yt=at+(Bt^qt&(Ct^Bt))+kt[5]+3593408605&4294967295)<<5&4294967295|yt>>>27))+((yt=qt+(Ct^Bt&(at^Ct))+kt[10]+38016083&4294967295)<<9&4294967295|yt>>>23))+((yt=Bt+(at^Ct&(qt^at))+kt[15]+3634488961&4294967295)<<14&4294967295|yt>>>18))+((yt=Ct+(qt^at&(Bt^qt))+kt[4]+3889429448&4294967295)<<20&4294967295|yt>>>12))+((yt=at+(Bt^qt&(Ct^Bt))+kt[9]+568446438&4294967295)<<5&4294967295|yt>>>27))+((yt=qt+(Ct^Bt&(at^Ct))+kt[14]+3275163606&4294967295)<<9&4294967295|yt>>>23))+((yt=Bt+(at^Ct&(qt^at))+kt[3]+4107603335&4294967295)<<14&4294967295|yt>>>18))+((yt=Ct+(qt^at&(Bt^qt))+kt[8]+1163531501&4294967295)<<20&4294967295|yt>>>12))+((yt=at+(Bt^qt&(Ct^Bt))+kt[13]+2850285829&4294967295)<<5&4294967295|yt>>>27))+((yt=qt+(Ct^Bt&(at^Ct))+kt[2]+4243563512&4294967295)<<9&4294967295|yt>>>23))+((yt=Bt+(at^Ct&(qt^at))+kt[7]+1735328473&4294967295)<<14&4294967295|yt>>>18))+((yt=Ct+(qt^at&(Bt^qt))+kt[12]+2368359562&4294967295)<<20&4294967295|yt>>>12))+((yt=at+(Ct^Bt^qt)+kt[5]+4294588738&4294967295)<<4&4294967295|yt>>>28))+((yt=qt+(at^Ct^Bt)+kt[8]+2272392833&4294967295)<<11&4294967295|yt>>>21))+((yt=Bt+(qt^at^Ct)+kt[11]+1839030562&4294967295)<<16&4294967295|yt>>>16))+((yt=Ct+(Bt^qt^at)+kt[14]+4259657740&4294967295)<<23&4294967295|yt>>>9))+((yt=at+(Ct^Bt^qt)+kt[1]+2763975236&4294967295)<<4&4294967295|yt>>>28))+((yt=qt+(at^Ct^Bt)+kt[4]+1272893353&4294967295)<<11&4294967295|yt>>>21))+((yt=Bt+(qt^at^Ct)+kt[7]+4139469664&4294967295)<<16&4294967295|yt>>>16))+((yt=Ct+(Bt^qt^at)+kt[10]+3200236656&4294967295)<<23&4294967295|yt>>>9))+((yt=at+(Ct^Bt^qt)+kt[13]+681279174&4294967295)<<4&4294967295|yt>>>28))+((yt=qt+(at^Ct^Bt)+kt[0]+3936430074&4294967295)<<11&4294967295|yt>>>21))+((yt=Bt+(qt^at^Ct)+kt[3]+3572445317&4294967295)<<16&4294967295|yt>>>16))+((yt=Ct+(Bt^qt^at)+kt[6]+76029189&4294967295)<<23&4294967295|yt>>>9))+((yt=at+(Ct^Bt^qt)+kt[9]+3654602809&4294967295)<<4&4294967295|yt>>>28))+((yt=qt+(at^Ct^Bt)+kt[12]+3873151461&4294967295)<<11&4294967295|yt>>>21))+((yt=Bt+(qt^at^Ct)+kt[15]+530742520&4294967295)<<16&4294967295|yt>>>16))+((yt=Ct+(Bt^qt^at)+kt[2]+3299628645&4294967295)<<23&4294967295|yt>>>9))+((yt=at+(Bt^(Ct|~qt))+kt[0]+4096336452&4294967295)<<6&4294967295|yt>>>26))+((yt=qt+(Ct^(at|~Bt))+kt[7]+1126891415&4294967295)<<10&4294967295|yt>>>22))+((yt=Bt+(at^(qt|~Ct))+kt[14]+2878612391&4294967295)<<15&4294967295|yt>>>17))+((yt=Ct+(qt^(Bt|~at))+kt[5]+4237533241&4294967295)<<21&4294967295|yt>>>11))+((yt=at+(Bt^(Ct|~qt))+kt[12]+1700485571&4294967295)<<6&4294967295|yt>>>26))+((yt=qt+(Ct^(at|~Bt))+kt[3]+2399980690&4294967295)<<10&4294967295|yt>>>22))+((yt=Bt+(at^(qt|~Ct))+kt[10]+4293915773&4294967295)<<15&4294967295|yt>>>17))+((yt=Ct+(qt^(Bt|~at))+kt[1]+2240044497&4294967295)<<21&4294967295|yt>>>11))+((yt=at+(Bt^(Ct|~qt))+kt[8]+1873313359&4294967295)<<6&4294967295|yt>>>26))+((yt=qt+(Ct^(at|~Bt))+kt[15]+4264355552&4294967295)<<10&4294967295|yt>>>22))+((yt=Bt+(at^(qt|~Ct))+kt[6]+2734768916&4294967295)<<15&4294967295|yt>>>17))+((yt=Ct+(qt^(Bt|~at))+kt[13]+1309151649&4294967295)<<21&4294967295|yt>>>11))+((qt=(at=Ct+((yt=at+(Bt^(Ct|~qt))+kt[4]+4149444226&4294967295)<<6&4294967295|yt>>>26))+((yt=qt+(Ct^(at|~Bt))+kt[11]+3174756917&4294967295)<<10&4294967295|yt>>>22))^((Bt=qt+((yt=Bt+(at^(qt|~Ct))+kt[2]+718787259&4294967295)<<15&4294967295|yt>>>17))|~at))+kt[9]+3951481745&4294967295,Ot.g[0]=Ot.g[0]+at&4294967295,Ot.g[1]=Ot.g[1]+(Bt+(yt<<21&4294967295|yt>>>11))&4294967295,Ot.g[2]=Ot.g[2]+Bt&4294967295,Ot.g[3]=Ot.g[3]+qt&4294967295}function _(Ot,at){this.h=at;for(var Ct=[],kt=!0,Bt=Ot.length-1;0<=Bt;Bt--){var qt=0|Ot[Bt];kt&&qt==at||(Ct[Bt]=qt,kt=!1)}this.g=Ct}(function n(Ot,at){function Ct(){}Ct.prototype=at.prototype,Ot.D=at.prototype,Ot.prototype=new Ct,Ot.prototype.constructor=Ot,Ot.C=function(kt,Bt,qt){for(var yt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);Ot[0]=128;for(var at=1;atat;++at)for(var kt=0;32>kt;kt+=8)Ot[Ct++]=this.g[at]>>>kt&255;return Ot};var R={};function k(Ot){return-128<=Ot&&128>Ot?function p(Ot,at){var Ct=R;return Object.prototype.hasOwnProperty.call(Ct,Ot)?Ct[Ot]:Ct[Ot]=at(Ot)}(Ot,function(at){return new _([0|at],0>at?-1:0)}):new _([0|Ot],0>Ot?-1:0)}function q(Ot){if(isNaN(Ot)||!isFinite(Ot))return je;if(0>Ot)return Rn(q(-Ot));for(var at=[],Ct=1,kt=0;Ot>=Ct;kt++)at[kt]=Ot/Ct|0,Ct*=4294967296;return new _(at,0)}var je=k(0),pt=k(1),Gt=k(16777216);function An(Ot){if(0!=Ot.h)return!1;for(var at=0;at>>16,Ot[at]&=65535,at++}function yr(Ot,at){this.g=Ot,this.h=at}function Yr(Ot,at){if(An(at))throw Error("division by zero");if(An(Ot))return new yr(je,je);if(Ln(Ot))return at=Yr(Rn(Ot),at),new yr(Rn(at.g),Rn(at.h));if(Ln(at))return at=Yr(Ot,Rn(at)),new yr(Rn(at.g),at.h);if(30=kt.l(Ot);)Ct=Li(Ct),kt=Li(kt);var Bt=fi(Ct,1),qt=fi(kt,1);for(kt=fi(kt,2),Ct=fi(Ct,2);!An(kt);){var yt=qt.add(kt);0>=yt.l(Ot)&&(Bt=Bt.add(Ct),qt=yt),kt=fi(kt,1),Ct=fi(Ct,1)}return at=hr(Ot,Bt.j(at)),new yr(Bt,at)}for(Bt=je;0<=Ot.l(at);){for(Ct=Math.max(1,Math.floor(Ot.m()/at.m())),kt=48>=(kt=Math.ceil(Math.log(Ct)/Math.LN2))?1:Math.pow(2,kt-48),yt=(qt=q(Ct)).j(at);Ln(yt)||0>>31;return new _(Ct,Ot.h)}function fi(Ot,at){var Ct=at>>5;at%=32;for(var kt=Ot.g.length-Ct,Bt=[],qt=0;qt>>at|Ot.i(qt+Ct+1)<<32-at:Ot.i(qt+Ct);return new _(Bt,Ot.h)}(l=_.prototype).m=function(){if(Ln(this))return-Rn(this).m();for(var Ot=0,at=1,Ct=0;Ct(Ot=Ot||10)||36>>0).toString(Ot);if(An(Ct=Bt))return qt+kt;for(;6>qt.length;)qt="0"+qt;kt=qt+kt}},l.i=function(Ot){return 0>Ot?0:Ot>>16)+(this.i(Bt)>>>16)+(Ot.i(Bt)>>>16);kt=yt>>>16,Ct[Bt]=(yt&=65535)<<16|(qt&=65535)}return new _(Ct,-2147483648&Ct[Ct.length-1]?-1:0)},l.j=function(Ot){if(An(this)||An(Ot))return je;if(Ln(this))return Ln(Ot)?Rn(this).j(Rn(Ot)):Rn(Rn(this).j(Ot));if(Ln(Ot))return Rn(this.j(Rn(Ot)));if(0>this.l(Gt)&&0>Ot.l(Gt))return q(this.m()*Ot.m());for(var at=this.g.length+Ot.g.length,Ct=[],kt=0;kt<2*at;kt++)Ct[kt]=0;for(kt=0;kt>>16,yt=65535&this.i(kt),Nl=Ot.i(Bt)>>>16,cc=65535&Ot.i(Bt);Ct[2*kt+2*Bt]+=yt*cc,Mr(Ct,2*kt+2*Bt),Ct[2*kt+2*Bt+1]+=qt*cc,Mr(Ct,2*kt+2*Bt+1),Ct[2*kt+2*Bt+1]+=yt*Nl,Mr(Ct,2*kt+2*Bt+1),Ct[2*kt+2*Bt+2]+=qt*Nl,Mr(Ct,2*kt+2*Bt+2)}for(kt=0;kt(at=at||10)||36qt?(qt=q(Math.pow(at,qt)),kt=kt.j(qt).add(q(yt))):kt=(kt=kt.j(Ct)).add(q(yt))}return kt},Ze=Ye.Integer=_}).apply(typeof De<"u"?De:typeof self<"u"?self:typeof window<"u"?window:{});var Rt,It,Vt,Et,mt,Ae,Qe,ge,Be,ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ct&&ct];for(var V=0;V{throw m},0)}function yt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var cc=new class hr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Me=cc.get();Me.set(V,Q),this.h?this.h.next=Me:this.g=Me,this.h=Me}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=yt();){try{m.h.call(m.g)}catch(Q){qt(Q)}var V=cc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function vu(){this.s=this.s,this.C=this.C}function _o(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}vu.prototype.s=!1,vu.prototype.ma=function(){this.s||(this.s=!0,this.N())},vu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},_o.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(_o.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Me=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Li){e:{try{Yr(V.nodeName);var jt=!0;break e}catch{}jt=!1}jt||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Me?(this.clientX=void 0!==Me.clientX?Me.clientX:Me.pageX,this.clientY=void 0!==Me.clientY?Me.clientY:Me.pageY,this.screenX=Me.screenX||0,this.screenY=Me.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}An(Ch,_o);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Dh="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Me,jt){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Me,this.ha=jt,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function dc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var nn,Me=m.g[Q],jt=Array.prototype.indexOf.call(Me,V,void 0);(nn=0<=jt)&&Array.prototype.splice.call(Me,jt,1),nn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Me){for(var jt=0;jt>>0);function Cm(m){return"function"==typeof m?m:(m[Th]||(m[Th]=function(V){return m.handleEvent(V)}),m[Th])}function os(){vu.call(this),this.i=new dc(this),this.M=this,this.F=null}function Ko(m,V){var Q,Me=m.F;if(Me)for(Q=[];Me;Me=Me.F)Q.push(Me);if(m=m.M,Me=V.type||V,"string"==typeof V)V=new _o(V,m);else if(V instanceof _o)V.target=V.target||m;else{var jt=V;kt(V=new _o(Me,m),jt)}if(jt=!0,Q)for(var nn=Q.length-1;0<=nn;nn--){var Hn=V.g=Q[nn];jt=bh(Hn,Me,!0,V)&&jt}if(jt=bh(Hn=V.g=m,Me,!0,V)&&jt,jt=bh(Hn,Me,!1,V)&&jt,Q)for(nn=0;nn{m.g=null,m.i&&(m.i=!1,Tm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}An(os,vu),os.prototype[Dh]=!0,os.prototype.removeEventListener=function(m,V,Q,Me){Em(this,m,V,Q,Me)},os.prototype.N=function(){if(os.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Me=0;MeMe.length)){var jt=Me[1];if(Array.isArray(jt)&&!(1>jt.length)){var nn=jt[0];if("noop"!=nn&&"stop"!=nn&&"close"!=nn)for(var Hn=1;HnV.length?Mm:(V=V.slice(Me,Me+Q),m.C=Me+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(pt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Au(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Me=Q.Da.g.parse(V)}catch{Me=null}if(Array.isArray(Me)&&3==Me.length){var jt=Me;if(0==jt[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3jt[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(pt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Du(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Mr(V))for(jt=Q.Da.g.parse(V),V=0;Vgs)&&(3!=gs||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=gs||7==V||fc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Me=R_(this.g);m="";var jt=Me.length,nn=4==Cu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Au(this),Ph(this);var Hn="";break t}this.h.i=new R.TextDecoder}for(V=0;V=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return Ln(m.i)}function D_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Me){var jt=Me.toLowerCase();Me!=jt&&(Vm(this,Me),Bm(this,jt,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function Yi(m,V,Q){m.i.set(V,Q)}function Nh(m){return Yi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}pc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Dp(this)),this.g&&(this.readyState=3,Dp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Dp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),An(yo,os);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,Ko(m,"complete"),Ko(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Cu(m)||2!=m.Z()))if(m.u&&4==Cu(m))Dm(m.Ea,0,m);else if(Ko(m,"readystatechange"),4==Cu(m)){m.h=!1;try{const Hn=m.Z();e:switch(Hn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Me;if(Me=0===Hn){var jt=String(m.D).match(T_)[1]||null;!jt&&R.self&&R.self.location&&(jt=R.self.location.protocol.slice(0,-1)),Me=!aA.test(jt?jt.toLowerCase():"")}Q=Me}if(Q)Ko(m,"complete"),Ko(m,"success");else{m.m=6;try{var nn=2{}:null;m.g=null,m.v=null,V||Ko(m,"ready");try{Q.onreadystatechange=Me}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Cu(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new Eu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0xi)nn=Math.max(0,jt[so].g-100),Wi=!1;else try{sA(ss,Hn,"req"+xi+"_")}catch{Me&&Me(ss)}}if(Wi){Me=Hn.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Me}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(pt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Iu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=ol(m.qa);Yi(V,"RID","rpc"),Yi(V,"SID",m.K),Yi(V,"AID",m.T),Yi(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&Yi(V,"TO",m.ja),Yi(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Tp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(ol(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Me=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Me=1}if(0!=m.G)if(V.o)if(1==Me){Q=V.m?V.m.length:0,V=Date.now()-V.F;var jt=m.B;Ko(Me=hp(),new hd(Me,Q)),zm(m)}else Hm(m);else if(3==(jt=V.s)||0==jt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(pt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Me&&Gm(m)))switch(Q&&0{Me.abort(),mc(0,0,!1,V)},1e4);fetch(m,{signal:Me.signal}).then(nn=>{clearTimeout(jt),mc(0,0,!!nn.ok,V)}).catch(()=>{clearTimeout(jt),mc(0,0,!1,V)})}(Me.toString(),Q)}else co(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Rn(m.ka,V),Rn(m.ka,m.i),m.h.i.length=0,Ln(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Me=Q instanceof pc?ol(Q):new pc(Q);if(""!=Me.g)V&&(Me.g=V+"."+Me.g),md(Me,Me.s);else{var jt=R.location;Me=jt.protocol,V=V?V+"."+jt.hostname:jt.hostname,jt=+jt.port;var nn=new pc(null);Me&&gd(nn,Me),V&&(nn.g=V),jt&&md(nn,jt),Q&&(nn.l=Q),Me=nn}return V=m.ya,(Q=m.D)&&V&&Yi(Me,Q,V),Yi(Me,"VER",m.la),Lh(m,Me),Me}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new yo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function $s(m,V){os.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Mr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Mr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){il.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=yo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Me){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=pt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(nn){return void z0(this,nn)}if(m=Q||"",Q=new Map(this.headers),Me)if(Object.getPrototypeOf(Me)===Object.prototype)for(var jt in Me)Q.set(jt,Me[jt]);else{if("function"!=typeof Me.keys||"function"!=typeof Me.get)throw Error("Unknown input type for opt_headers: "+String(Me));for(const nn of Me.keys())Q.set(nn,Me.get(nn))}Me=Array.from(Q.keys()).find(nn=>"content-type"==nn.toLowerCase()),jt=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Me||jt||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[nn,Hn]of Q)this.g.setRequestHeader(nn,Hn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(nn){z0(this,nn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,Ko(this,"complete"),Ko(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),yo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(pt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,co(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),co(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),co(2)):(this.j.info("Failed to ping google.com"),co(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new $s(m,V)},An($s,os),$s.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},$s.prototype.close=function(){P_(this.g)},$s.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},$s.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,$s.aa.N.call(this)},An(L_,il),An(V_,cd),An(Ed,Uh),Ed.prototype.ua=function(){Ko(this.g,"a")},Ed.prototype.ta=function(m){Ko(this.g,new L_(m))},Ed.prototype.sa=function(m){Ko(this.g,new V_)},Ed.prototype.ra=function(){Ko(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,$s.prototype.send=$s.prototype.o,$s.prototype.open=$s.prototype.m,$s.prototype.close=$s.prototype.close,Be=Dt.createWebChannelTransport=function(){return new Sp},ge=Dt.getStatEventTarget=function(){return hp()},Qe=Dt.Event=yu,Ae=Dt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,mt=Dt.ErrorCode=gp,g_.COMPLETE="complete",Et=Dt.EventType=g_,ud.EventType=hc,hc.OPEN="a",hc.CLOSE="b",hc.ERROR="c",hc.MESSAGE="d",os.prototype.listen=os.prototype.K,Vt=Dt.WebChannel=ud,It=Dt.FetchXmlHttpFactory=Ap,yo.prototype.listenOnce=yo.prototype.L,yo.prototype.getLastError=yo.prototype.Ka,yo.prototype.getLastErrorCode=yo.prototype.Ba,yo.prototype.getStatus=yo.prototype.Z,yo.prototype.getResponseJson=yo.prototype.Oa,yo.prototype.getResponseText=yo.prototype.oa,yo.prototype.send=yo.prototype.ea,yo.prototype.setWithCredentials=yo.prototype.Ha,Rt=Dt.XhrIo=yo}).apply(typeof ct<"u"?ct:typeof self<"u"?self:typeof window<"u"?window:{});const ke="@firebase/firestore";class Pe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Pe.UNAUTHENTICATED=new Pe(null),Pe.GOOGLE_CREDENTIALS=new Pe("google-credentials-uid"),Pe.FIRST_PARTY=new Pe("first-party-uid"),Pe.MOCK_USER=new Pe("mock-user");let _t="10.12.1";const Pt=new Je.Vy("@firebase/firestore");function mn(){return Pt.logLevel}function tt(l,...n){if(Pt.logLevel<=Je.$b.DEBUG){const i=n.map(we);Pt.debug(`Firestore (${_t}): ${l}`,...i)}}function on(l,...n){if(Pt.logLevel<=Je.$b.ERROR){const i=n.map(we);Pt.error(`Firestore (${_t}): ${l}`,...i)}}function ht(l,...n){if(Pt.logLevel<=Je.$b.WARN){const i=n.map(we);Pt.warn(`Firestore (${_t}): ${l}`,...i)}}function we(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function H(l="Unexpected state"){const n=`FIRESTORE (${_t}) INTERNAL ASSERTION FAILED: `+l;throw on(n),new Error(n)}function X(l,n){l||H()}function se(l,n){return l}const ve={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Fe extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class it{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class sn{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class Sn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(Pe.UNAUTHENTICATED))}shutdown(){}}class qe{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Kt{constructor(n){this.t=n,this.currentUser=Pe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new it;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new it,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,ue.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new it)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new sn(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new Pe(n)}}class En{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=Pe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class On{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new En(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(Pe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Qn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class nr{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,tt("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new Qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function rr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Nt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class fn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Fe(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Fe(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Fe(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Fe(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return fn.fromMillis(Date.now())}static fromDate(n){return fn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new fn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class pn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new pn(n)}static min(){return new pn(new fn(0,0))}static max(){return new pn(new fn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Sr{constructor(n,i,s){void 0===i?i=0:i>n.length&&H(),void 0===s?s=n.length-i:s>n.length-i&&H(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Sr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Sr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Pn extends Sr{construct(n,i,s){return new Pn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Fe(ve.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Pn(i)}static emptyPath(){return new Pn([])}}const Nn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class gn extends Sr{construct(n,i,s){return new gn(n,i,s)}static isValidIdentifier(n){return Nn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),gn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new gn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Fe(ve.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Pn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Pn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new en(new Pn(n.slice()))}}class Pr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Pr(pn.min(),en.empty(),-1)}static max(){return new Pr(pn.max(),en.empty(),-1)}}function cr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=en.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const kr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Ai(l){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,ue.A)(function*(l){if(l.code!==ve.FAILED_PRECONDITION||l.message!==kr)throw l;tt("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class pe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&H(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new pe((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof pe?i:pe.resolve(i)}catch(i){return pe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.reject(i)}static resolve(n){return new pe((i,s)=>{i(n)})}static reject(n){return new pe((i,s)=>{s(n)})}static waitFor(n){return new pe((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=pe.resolve(!1);for(const s of n)i=i.next(u=>u?pe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new pe((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=_e,++R,R===p&&s(_)},_e=>u(_e))}})}static doWhile(n,i){return new pe((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function ze(l){return"IndexedDbTransactionError"===l.name}let vn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Yn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function Cr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function ai(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ei(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Lr{constructor(n,i){this.comparator=n,this.root=i||Kn.EMPTY}insert(n,i){return new Lr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Kn.BLACK,null,null))}remove(n){return new Lr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Kn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new mi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new mi(this.root,n,this.comparator,!1)}getReverseIterator(){return new mi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new mi(this.root,n,this.comparator,!0)}}class mi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Kn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:Kn.RED,this.left=null!=u?u:Kn.EMPTY,this.right=null!=p?p:Kn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new Kn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Kn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Kn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Kn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Kn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw H();const n=this.left.check();if(n!==this.right.check())throw H();return n+(this.isRed()?0:1)}}Kn.EMPTY=null,Kn.RED=!0,Kn.BLACK=!1,Kn.EMPTY=new class{constructor(){this.size=0}get key(){throw H()}get value(){throw H()}get color(){throw H()}get left(){throw H()}get right(){throw H()}copy(n,i,s,u,p){return this}insert(n,i,s){return new Kn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Gn{constructor(n){this.comparator=n,this.data=new Lr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ao(this.data.getIterator())}getIteratorFrom(n){return new ao(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Gn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Gn(this.comparator);return i.data=n,i}}class ao{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ci{constructor(n){this.fields=n,n.sort(gn.comparator)}static empty(){return new Ci([])}unionWith(n){let i=new Gn(gn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Ci(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Nt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Eo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class oi{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Eo("Invalid base64 string: "+p):p}}(n);return new oi(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nre(i,n))}function Ee(l,n){if(l===n)return 0;const i=j(l),s=j(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=le(p.integerValue||p.doubleValue),k=le(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return ot(l.timestampValue,n.timestampValue);case 4:return ot(st(l),st(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=W(p),k=W(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=rn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=rn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function cn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Bn{constructor(n){this.value=n}static empty(){return new Bn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=rn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());Yt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return re(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Bn(rn(this.value))}}function qr(l){const n=[];return ai(l.fields,(i,s)=>{const u=new gn([i]);if(Yt(s)){const p=qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new Ci(n)}class jr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new jr(n,0,pn.min(),pn.min(),pn.min(),Bn.empty(),0)}static newFoundDocument(n,i,s,u){return new jr(n,1,i,pn.min(),s,u,0)}static newNoDocument(n,i){return new jr(n,2,i,pn.min(),pn.min(),Bn.empty(),0)}static newUnknownDocument(n,i){return new jr(n,3,i,pn.min(),pn.min(),Bn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(pn.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Bn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Bn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=pn.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof jr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new jr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class br{constructor(n,i){this.position=n,this.inclusive=i}}function wi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return H()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ti extends as{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Ti(n,i)}matches(n){return Qo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Qo(l){return"and"===l.op}function Bo(l){return function Io(l){for(const n of l.filters)if(n instanceof Ti)return!1;return!0}(l)&&Qo(l)}function Ss(l){if(l instanceof Ur)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Bo(l))return l.filters.map(n=>Ss(n)).join(",");{const n=l.filters.map(i=>Ss(i)).join(",");return`${l.op}(${n})`}}function no(l,n){return l instanceof Ur?(s=l,(u=n)instanceof Ur&&s.op===u.op&&s.field.isEqual(u.field)&&re(s.value,u.value)):l instanceof Ti?function(s,u){return u instanceof Ti&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&no(_,u.filters[R]),!0)}(l,n):void H();var s,u}function Kr(l){return l instanceof Ur?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Ti?function(i){return i.op.toString()+" {"+i.getFilters().map(Kr).join(" ,")+"}"}(l):"Filter";var i}class fo extends Ur{constructor(n,i,s){super(n,i,s),this.key=en.fromName(s.referenceValue)}matches(n){const i=en.comparator(n.key,this.key);return this.matchesComparison(i)}}class ka extends Ur{constructor(n,i){super(n,"in",i),this.keys=Hs(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Rs extends Ur{constructor(n,i){super(n,"not-in",i),this.keys=Hs(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Hs(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>en.fromName(s.referenceValue))}class Ms extends Ur{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return et(i)&&P(i.arrayValue,this.value)}}class ls extends Ur{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class us extends Ur{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Uo extends Ur{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!et(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class vs{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ps(l,n=null,i=[],s=[],u=null,p=null,_=null){return new vs(l,n,i,s,u,p,_)}function xs(l){const n=se(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>Ss(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),Yn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Ao(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Gn(gn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new ki(p,s))}),i.has(gn.keyField().canonicalString())||n.ce.push(new ki(gn.keyField(),s))}return n.ce}function qn(l){const n=se(l);return n.le||(n.le=function oo(l,n){if("F"===l.limitType)return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ki(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new br(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new br(l.startAt.position,l.startAt.inclusive):null;return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,_n(l))),n.le}function So(l,n,i){return new K(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Yo(l,n){return Ao(qn(l),qn(n))&&l.limitType===n.limitType}function Fa(l){return`${xs(qn(l))}|lt:${l.limitType}`}function _s(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Kr(u)).join(", ")}]`),Yn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(qn(l))}; limitType=${l.limitType})`}function Gs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):en.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of _n(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,_n(s),u)||s.endAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,_n(s),u)));var s,u}function ul(l){return(n,i)=>{let s=!1;for(const u of _n(l)){const p=pa(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function pa(l,n,i){const s=l.field.isKeyField()?en.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ee(k,q):H()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return H()}}class $o{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return ei(this.inner)}size(){return this.innerSize}}const Jo=new Lr(en.comparator);function Rr(){return Jo}const ji=new Lr(en.comparator);function zi(...l){let n=ji;for(const i of l)n=n.insert(i.key,i);return n}function po(l){let n=ji;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function bi(){return jo()}function La(){return jo()}function jo(){return new $o(l=>l.toString(),(l,n)=>l.isEqual(n))}const ys=new Lr(en.comparator),cl=new Gn(en.comparator);function Hr(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Gn(nt);function Va(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function Es(l){return{integerValue:""+l}}function hl(l,n){return function Cn(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?Es(n):Va(l,n)}class Ba{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&Ue(p)&&(p=Le(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):function(u,p){const _=jl(u,p),R=Ru(_)+Ru(u.Pe);return Oe(_)&&Oe(u.Pe)?Es(R):Va(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):i}function jl(l,n){return l instanceof es?Oe(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Ba{}class Os extends Ba{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>re(u,s))||i.push(s);return{arrayValue:{values:i}}}class As extends Ba{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!re(u,s));return{arrayValue:{values:i}}}class es extends Ba{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Ru(l){return le(l.integerValue||l.doubleValue)}function Hl(l){return et(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Ns{constructor(n,i){this.version=n,this.transformResults=i}}class Ui{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ui}static exists(n){return new Ui(void 0,n)}static updateTime(n){return new Ui(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ga(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Ua{}function ma(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new $(l.key,Ui.none()):new Ks(l.key,l.data,Ui.none());{const i=l.data,s=Bn.empty();let u=new Gn(gn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new Ci(u.toArray()),Ui.none())}}function $a(l,n,i){l instanceof Ks?function(u,p,_){const R=u.value.clone(),k=ya(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!ga(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=ya(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zo(l,n,i,s){return l instanceof Ks?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=p.value.clone(),_e=D(p.fieldTransforms,k,_);return q.setAll(_e),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=D(p.fieldTransforms,k,_),_e=_.data;return _e.setAll(Gl(p)),_e.setAll(q),_.convertToFoundDocument(_.version,_e).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(je=>je.field))}(l,n,i,s):(R=i,ga(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function va(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Bn.empty()),i.set(s.field,p))}return i||null}function _a(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Nt(s,u,(p,_)=>function Lo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof Os&&u instanceof Os||s instanceof As&&u instanceof As?Nt(s.elements,u.elements,re):s instanceof es&&u instanceof es?re(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ks extends Ua{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Ua{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function ya(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=ma(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(pn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Hr())}isEqual(n){return this.batchId===n.batchId&&Nt(this.mutations,n.mutations,(i,s)=>_a(i,s))&&Nt(this.baseMutations,n.baseMutations,(i,s)=>_a(i,s))}}class Ie{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return ys}();const p=n.mutations;for(let _=0;_=8)throw new Di(`Invalid padding: ${i}`);if(s<0)throw new Di(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Di(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Di(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ze.fromNumber(s)));return 1===u.compare(Hi)&&(u=new Ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=vi(n),[s,u]=Mn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Hr(),i=Hr(),s=Hr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:H()}}),new Si(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Xs()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class ks{constructor(n){this.Le=n,this.Be=new Map,this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:H()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(Fo(p))if(0===s){const _=new en(p.path);this.Ue(i,_,jr.newNoDocument(_,pn.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=W(s).toUint8Array()}catch(k){if(k instanceof Eo)return ht("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new Xn(_,u,p)}catch(k){return ht(k instanceof Di?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&Fo(R.target)){const k=new en(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,jr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Hr();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new qi(n,i,this.Qe,this.ke,s);return this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new Ki,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Gn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||tt("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new Ki),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Br(){return new Lr(en.comparator)}function Xs(){return new Lr(en.comparator)}const vc={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Gi={and:"AND",or:"OR"};class Co{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function Cs(l,n){return l.useProto3Json||Yn(n)?n:{value:n}}function Go(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function qs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function _c(l,n){return Go(l,n.toTimestamp())}function Mi(l){return X(!!l),pn.fromTimestamp(function(i){const s=he(i);return new fn(s.seconds,s.nanos)}(l))}function Qs(l,n){return cs(l,n).canonicalString()}function cs(l,n){const i=(u=l,new Pn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Gr(l){const n=Pn.fromString(l);return X(E(n)),n}function Ea(l,n){return Qs(l.databaseId,n.path)}function ns(l,n){const i=Gr(n);if(i.get(1)!==l.databaseId.projectId)throw new Fe(ve.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Fe(ve.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new en(Xi(i))}function Wo(l,n){return Qs(l.databaseId,n)}function Ia(l){return new Pn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Xi(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Mu(l,n,i){return{name:Ea(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[Wo(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=Wo(l,u);const p=function(q){if(0!==q.length)return Kh(Ti.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(_e=>{return{field:Da((pt=_e).field),direction:ja(pt.dir)};var pt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=Cs(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function Aa(l){let n=function pl(l){const n=Gr(l);return 4===n.length?Pn.emptyPath():Xi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const _e=i.from[0];_e.allDescendants?u=_e.collectionId:n=n.child(_e.collectionId)}let p=[];i.where&&(p=function(je){const pt=Ca(je);return pt instanceof Ti&&Bo(pt)?pt.getFilters():[pt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(pt=>{return new ki(za((An=pt).field),function(Rn){switch(Rn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(An.direction));var An}));let R=null;i.limit&&(R=function(je){let pt;return pt="object"==typeof je?je.value:je,Yn(pt)?null:pt}(i.limit));let k=null;var je;i.startAt&&(k=new br((je=i.startAt).values||[],!!je.before));let q=null;return i.endAt&&(q=function(je){return new br(je.values||[],!je.before)}(i.endAt)),function N(l,n,i,s,u,p,_,R){return new K(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function Ca(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=za(i.unaryFilter.field);return Ur.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=za(i.unaryFilter.field);return Ur.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=za(i.unaryFilter.field);return Ur.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=za(i.unaryFilter.field);return Ur.create(_,"!=",{nullValue:"NULL_VALUE"});default:return H()}}(l):void 0!==l.fieldFilter?Ur.create(za((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return H()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Ti.create(i.compositeFilter.filters.map(s=>Ca(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return H()}}(i.compositeFilter.op))}(l):H();var i}function ja(l){return vc[l]}function tg(l){return fl[l]}function Td(l){return Gi[l]}function Da(l){return{fieldPath:l.canonicalString()}}function za(l){return gn.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Ur?function(i){if("=="===i.op){if(At(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NAN"}};if(St(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(At(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NAN"}};if(St(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Da(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Ti?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Td(i.op),filters:s}}}(l):H()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=pn.min(),_=pn.min(),R=oi.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class O{constructor(n){this.ct=n}}function Vr(l){const n=Aa({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?So(n,n.limit,"L"):n}class Ta{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(le(n.integerValue));else if("doubleValue"in n){const s=le(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=he(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(W(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?cn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):H()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),en.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ta.bt=new Ta;class Ts{constructor(){this._n=new Cc}addToCollectionParentIndex(n,i){return this._n.add(i),pe.resolve()}getCollectionParents(n,i){return pe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return pe.resolve()}deleteFieldIndex(n,i){return pe.resolve()}deleteAllFieldIndexes(n){return pe.resolve()}createTargetIndexes(n,i){return pe.resolve()}getDocumentsMatchingTarget(n,i){return pe.resolve(null)}getIndexType(n,i){return pe.resolve(0)}getFieldIndexes(n,i){return pe.resolve([])}getNextCollectionGroupToUpdate(n){return pe.resolve(null)}getMinOffset(n,i){return pe.resolve(Pr.min())}getMinOffsetFromCollectionGroup(n,i){return pe.resolve(Pr.min())}updateCollectionGroup(n,i,s){return pe.resolve()}updateIndexEntries(n,i){return pe.resolve()}}class Cc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Gn(Pn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Gn(Pn.comparator)).toArray()}}new Uint8Array(0);class gr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new gr(n,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}gr.DEFAULT_COLLECTION_PERCENTILE=10,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gr.DEFAULT=new gr(41943040,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gr.DISABLED=new gr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class na{constructor(){this.changes=new $o(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,jr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?pe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class bs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class oa{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zo(s.mutation,u,Ci.empty(),fn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Hr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Hr()){const u=bi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=zi();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=bi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Hr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=Rr();const _=jo(),R=jo();return i.forEach((k,q)=>{const _e=s.get(q.key);u.has(q.key)&&(void 0===_e||_e.mutation instanceof lo)?p=p.insert(q.key,q):void 0!==_e?(_.set(q.key,_e.mutation.getFieldMask()),zo(_e.mutation,q,_e.mutation.getFieldMask(),fn.now())):_.set(q.key,Ci.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,_e)=>_.set(q,_e)),i.forEach((q,_e)=>{var je;return R.set(q,new bs(_e,null!==(je=_.get(q))&&void 0!==je?je:null))}),R))}recalculateAndSaveOverlays(n,i){const s=jo();let u=new Lr((_,R)=>_-R),p=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let _e=s.get(k)||Ci.empty();_e=R.applyToLocalView(q,_e),s.set(k,_e);const je=(u.get(R.batchId)||Hr()).add(k);u=u.insert(R.batchId,je)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,_e=k.value,je=La();_e.forEach(pt=>{if(!p.has(pt)){const Gt=ma(i.get(pt),s.get(pt));null!==Gt&&je.set(pt,Gt),p=p.add(pt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,je))}return pe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return en.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Ne(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):pe.resolve(bi());let R=-1,k=p;return _.next(q=>pe.forEach(q,(_e,je)=>(R{k=k.insert(_e,pt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,Hr())).next(_e=>({batchId:R,changes:po(_e)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new en(i)).next(s=>{let u=zi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=zi();return this.indexManager.getCollectionParents(n,p).next(R=>pe.forEach(R,k=>{const q=(je=i,pt=k.child(p),new K(pt,null,je.explicitOrderBy.slice(),je.filters.slice(),je.limit,je.limitType,je.startAt,je.endAt));var je,pt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(_e=>{_e.forEach((je,pt)=>{_=_.insert(je,pt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const _e=q.getKey();null===_.get(_e)&&(_=_.insert(_e,jr.newInvalidDocument(_e)))});let R=zi();return _.forEach((k,q)=>{const _e=p.get(k);void 0!==_e&&zo(_e.mutation,q,Ci.empty(),fn.now()),Gs(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return pe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Mi(u.createTime)}),pe.resolve();var u}getNamedQuery(n,i){return pe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Vr(u.bundledQuery),readTime:Mi(u.readTime)}),pe.resolve();var u}}class Sc{constructor(){this.overlays=new Lr(en.comparator),this.hr=new Map}getOverlay(n,i){return pe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=bi();return pe.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),pe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),pe.resolve()}getOverlaysForCollection(n,i,s){const u=bi(),p=i.length+1,_=new en(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return pe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Lr((q,_e)=>q-_e);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let _e=p.get(q.largestBatchId);null===_e&&(_e=bi(),p=p.insert(q.largestBatchId,_e)),_e.set(q.getKey(),q)}}const R=bi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,_e)=>R.set(q,_e)),!(R.size()>=u)););return pe.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new We(i,s));let p=this.hr.get(i);void 0===p&&(p=Hr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Gn(To.Ir),this.Tr=new Gn(To.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new To(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new To(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new en(new Pn([])),s=new To(i,n),u=new To(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new en(new Pn([])),s=new To(i,n),u=new To(i,n+1);let p=Hr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new To(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class To{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return en.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||en.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Gn(To.Ir)}checkEmpty(n){return pe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new To(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return pe.resolve(_)}lookupMutationBatch(n,i){return pe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return pe.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return pe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return pe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new To(i,0),u=new To(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),pe.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Gn(nt);return i.forEach(u=>{const p=new To(u,0),_=new To(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),pe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;en.isDocumentKey(p)||(p=p.child(""));const _=new To(new en(p),0);let R=new Gn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),pe.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return pe.forEach(i.mutations,u=>{const p=new To(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new To(i,0),u=this.wr.firstAfterOrEqual(s);return pe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return pe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Fu{constructor(n){this.vr=n,this.docs=new Lr(en.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return pe.resolve(s?s.document.mutableCopy():jr.newInvalidDocument(i))}getEntries(n,i){let s=Rr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():jr.newInvalidDocument(u))}),pe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=Rr();const _=i.path,R=new en(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:_e}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||cr(new Pr((l=_e).readTime,l.key,-1),s)<=0||(u.has(_e.key)||Gs(i,_e))&&(p=p.insert(_e.key,_e.mutableCopy()))}var l;return pe.resolve(p)}getAllFromCollectionGroup(n,i,s,u){H()}Fr(n,i){return pe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return pe.resolve(this.size)}}class Nd extends na{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),pe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Rc{constructor(n){this.persistence=n,this.Mr=new $o(i=>xs(i),Ao),this.lastRemoteSnapshotVersion=pn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),pe.resolve()}getLastRemoteSnapshotVersion(n){return pe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return pe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),pe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),pe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,pe.resolve()}updateTargetData(n,i){return this.qn(i),pe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,pe.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),pe.waitFor(p).next(()=>u)}getTargetCount(n){return pe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return pe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),pe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),pe.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),pe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return pe.resolve(s)}containsKey(n,i){return pe.resolve(this.Nr.containsKey(i))}}class Mc{constructor(n,i){this.Br={},this.overlays={},this.kr=new vn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Rc(this),this.indexManager=new Ts,this.remoteDocumentCache=new Fu(s=>this.referenceDelegate.Kr(s)),this.serializer=new O(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Sc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){tt("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return pe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends ii{constructor(n){super(),this.currentSequenceNumber=n}}class Sa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new Sa(n)}get Jr(){if(this.jr)return this.jr;throw H()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),pe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),pe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),pe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return pe.forEach(this.Jr,s=>{const u=en.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,pn.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return pe.or([()=>pe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Fi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Hr(),u=Hr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Fi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function ut(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(mn()<=Je.$b.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_s(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,qn(i))):pe.resolve())}ji(n,i){if(G(i))return pe.resolve(null);let s=qn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=So(i,null,"F"),s=qn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Hr(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,So(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(pn.min())?pe.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?pe.resolve(null):(mn()<=Je.$b.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_s(i)),this.es(n,_,i,function mr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=pn.fromTimestamp(1e9===s?new fn(i+1,0):new fn(i,s));return new Pr(u,en.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Gn(ul(n));return i.forEach((u,p)=>{Gs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return mn()<=Je.$b.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_s(i)),this.zi.getDocumentsMatchingQuery(n,i,Pr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Lr(nt),this.rs=new $o(p=>xs(p),Ao),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new oa(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Uu.apply(this,arguments)}function Uu(){return(Uu=(0,ue.A)(function*(l,n){const i=se(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=Hr();for(const q of u){_.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}for(const q of p){R.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Vs(l){const n=se(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function xc(l,n){const i=se(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function aa(l,n,i){return Oc.apply(this,arguments)}function Oc(){return(Oc=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!ze(_))throw _;tt("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=se(l);let u=pn.min(),p=Hr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,_e){const je=se(k),pt=je.rs.get(_e);return void 0!==pt?pe.resolve(je.ns.get(pt)):je.Qr.getTargetData(q,_e)}(s,_,qn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:pn.min(),i?p:Hr())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||pn.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function fa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class Hu{constructor(){this.activeTargetIds=function Ws(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new Hu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new Hu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){tt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){tt("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Lc=null;function ws(){return null===Lc?Lc=268435456+Math.round(2147483648*Math.random()):Lc++,"0x"+Lc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Gu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Mo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=ws(),k=this.vo(i,s.toUriEncodedString());tt("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(_e=>(tt("RestConnection",`Received RPC '${i}' ${R}: `,_e),_e),_e=>{throw ht("RestConnection",`RPC '${i}' ${R} failed with error: `,_e,"url: ",k,"request:",u),_e})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+_t,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=ws();return new Promise((_,R)=>{const k=new Rt;k.setWithCredentials(!0),k.listenOnce(Et.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case mt.NO_ERROR:const _e=k.getResponseJson();tt(Mo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(_e)),_(_e);break;case mt.TIMEOUT:tt(Mo,`RPC '${n}' ${p} timed out`),R(new Fe(ve.DEADLINE_EXCEEDED,"Request time out"));break;case mt.HTTP_ERROR:const je=k.getStatus();if(tt(Mo,`RPC '${n}' ${p} failed with status:`,je,"response text:",k.getResponseText()),je>0){let pt=k.getResponseJson();Array.isArray(pt)&&(pt=pt[0]);const Gt=null==pt?void 0:pt.error;if(Gt&&Gt.status&&Gt.message){const An=function(Rn){const hr=Rn.toLowerCase().replace(/_/g,"-");return Object.values(ve).indexOf(hr)>=0?hr:ve.UNKNOWN}(Gt.status);R(new Fe(An,Gt.message))}else R(new Fe(ve.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Fe(ve.UNAVAILABLE,"Connection failed."));break;default:H()}}finally{tt(Mo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);tt(Mo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=ws(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Be(),R=ge(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new It({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const _e=p.join("");tt(Mo,`Creating RPC '${n}' stream ${u}: ${_e}`,k);const je=_.createWebChannel(_e,k);let pt=!1,Gt=!1;const An=new Gu({lo:Rn=>{Gt?tt(Mo,`Not sending because RPC '${n}' stream ${u} is closed:`,Rn):(pt||(tt(Mo,`Opening RPC '${n}' stream ${u} transport.`),je.open(),pt=!0),tt(Mo,`RPC '${n}' stream ${u} sending:`,Rn),je.send(Rn))},ho:()=>je.close()}),Ln=(Rn,hr,Mr)=>{Rn.listen(hr,yr=>{try{Mr(yr)}catch(Yr){setTimeout(()=>{throw Yr},0)}})};return Ln(je,Vt.EventType.OPEN,()=>{Gt||(tt(Mo,`RPC '${n}' stream ${u} transport opened.`),An.mo())}),Ln(je,Vt.EventType.CLOSE,()=>{Gt||(Gt=!0,tt(Mo,`RPC '${n}' stream ${u} transport closed`),An.po())}),Ln(je,Vt.EventType.ERROR,Rn=>{Gt||(Gt=!0,ht(Mo,`RPC '${n}' stream ${u} transport errored:`,Rn),An.po(new Fe(ve.UNAVAILABLE,"The operation could not be completed")))}),Ln(je,Vt.EventType.MESSAGE,Rn=>{var hr;if(!Gt){const Mr=Rn.data[0];X(!!Mr);const Yr=Mr.error||(null===(hr=Mr[0])||void 0===hr?void 0:hr.error);if(Yr){tt(Mo,`RPC '${n}' stream ${u} received error:`,Yr);const Li=Yr.status;let fi=function(Ct){const kt=ar[Ct];if(void 0!==kt)return Xr(kt)}(Li),Ot=Yr.message;void 0===fi&&(fi=ve.INTERNAL,Ot="Unknown error status: "+Li+" with message "+Yr.message),Gt=!0,An.po(new Fe(fi,Ot)),je.close()}else tt(Mo,`RPC '${n}' stream ${u} received:`,Mr),An.yo(Mr)}}),Ln(R,Qe.STAT_EVENT,Rn=>{Rn.stat===Ae.PROXY?tt(Mo,`RPC '${n}' stream ${u} detected buffering proxy`):Rn.stat===Ae.NOPROXY&&tt(Mo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{An.fo()},0),An}}function Tl(){return typeof document<"u"?document:null}function Vc(l){return new Co(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&tt("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,ue.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,ue.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,ue.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ve.RESOURCE_EXHAUSTED?(on(i.toString()),on("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ve.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Fe(ve.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,ue.A)(function*(){n.state=0,n.start()}))}c_(n){return tt("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(tt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:H(),u=n.targetChange.targetIds||[],p=function(q,_e){return q.useProto3Json?(X(void 0===_e||"string"==typeof _e),oi.fromBase64String(_e||"")):(X(void 0===_e||_e instanceof Buffer||_e instanceof Uint8Array),oi.fromUint8Array(_e||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const _e=void 0===q.code?ve.UNKNOWN:Xr(q.code);return new Fe(_e,q.message||"")}(_);i=new _i(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ns(l,s.document.name),p=Mi(s.document.updateTime),_=s.document.createTime?Mi(s.document.createTime):pn.min(),R=new Bn({mapValue:{fields:s.document.fields}}),k=jr.newFoundDocument(u,p,_,R);i=new Qi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ns(l,s.document),p=s.readTime?Mi(s.readTime):pn.min(),_=jr.newNoDocument(u,p);i=new Qi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ns(l,s.document);i=new Qi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return H();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new wn(u,p);i=new Ho(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return pn.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?pn.min():_.readTime?Mi(_.readTime):pn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ia(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=Fo(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=qs(p,_.resumeToken);const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(pn.min())>0){R.readTime=Go(p,_.snapshotVersion.toTimestamp());const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Pu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return H()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ia(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function ds(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Mi(u.updateTime?u.updateTime:p);return _.isEqual(pn.min())&&(_=Mi(p)),new Ns(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Mi(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ia(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function rs(l,n){let i;if(n instanceof Ks)i={update:Mu(l,n.key,n.value)};else if(n instanceof $)i={delete:Ea(l,n.key)};else if(n instanceof lo)i={update:Mu(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Ve))return H();i={verify:Ea(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof Os)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof As)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof es)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw H()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:_c(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:H()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Fe(ve.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,cs(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Fe(ve.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,cs(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Fe(ve.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(on(i),this.y_=!1):tt("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,ue.A)(function*(){var k;Ja(_)&&(tt("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,ue.A)(function*(_e){const je=se(_e);je.M_.add(4),yield nu(je),je.N_.set("Unknown"),je.M_.delete(4),yield Bc(je)}),function q(_e){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Bc(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,ue.A)(function*(l){if(Ja(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,ue.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Ya(l,n){const i=se(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Wu(i):Qu(i).Xo()&&df(i,n))}function eo(l,n){const i=se(l),s=Qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Ja(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(pn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Qu(l).P_(n)}function hf(l,n){l.L_.xe(n),Qu(l).I_(n)}function Wu(l){l.L_=new ks({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Qu(l).start(),l.N_.w_()}function ff(l){return Ja(l)&&!Qu(l).Zo()&&l.F_.size>0}function Ja(l){return 0===se(l).M_.size}function $c(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,ue.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Ku.apply(this,arguments)}function Ku(){return(Ku=(0,ue.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,ue.A)(function*(l,n){$c(l),ff(l)?(l.N_.D_(n),Wu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,ue.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof _i&&2===n.state&&n.cause)try{yield(s=(0,ue.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){tt("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield jc(l,s)}else if(n instanceof Qi?l.L_.Ke(n):n instanceof Ho?l.L_.He(n):l.L_.We(n),!i.isEqual(pn.min()))try{const s=yield Vs(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const _e=p.F_.get(q);_e&&p.F_.set(q,_e.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const _e=p.F_.get(k);if(!_e)return;p.F_.set(k,_e.withResumeToken(oi.EMPTY_BYTE_STRING,_e.snapshotVersion)),hf(p,k);const je=new b(_e.target,k,q,_e.sequenceNumber);df(p,je)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){tt("RemoteStore","Failed to raise snapshot:",s),yield jc(l,s)}var s}),mf.apply(this,arguments)}function jc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,ue.A)(function*(l,n,i){if(!ze(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Vs(l.localStore)),l.asyncQueue.enqueueRetryable((0,ue.A)(function*(){tt("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Bc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>jc(l,i,n))}function Xu(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,ue.A)(function*(l){const n=se(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield xc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield jc(n,u)}Ef(n)&&ps(n)})).apply(this,arguments)}function vy(l){return Ja(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return Ja(l)&&!ru(l).Zo()&&l.v_.length>0}function ps(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,ue.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return zc.apply(this,arguments)}function zc(){return(zc=(0,ue.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Za(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,ue.A)(function*(l,n,i){const s=l.v_.shift(),u=Ie.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Xu(l)})).apply(this,arguments)}function qu(l,n){return If.apply(this,arguments)}function If(){return If=(0,ue.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,ue.A)(function*(u,p){if(function pi(l){switch(l){default:return H();case ve.CANCELLED:case ve.UNKNOWN:case ve.DEADLINE_EXCEEDED:case ve.RESOURCE_EXHAUSTED:case ve.INTERNAL:case ve.UNAVAILABLE:case ve.UNAUTHENTICATED:return!1;case ve.INVALID_ARGUMENT:case ve.NOT_FOUND:case ve.ALREADY_EXISTS:case ve.PERMISSION_DENIED:case ve.FAILED_PRECONDITION:case ve.ABORTED:case ve.OUT_OF_RANGE:case ve.UNIMPLEMENTED:case ve.DATA_LOSS:return!0}}(R=p.code)&&R!==ve.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Xu(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&ps(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,ue.A)(function*(l,n){const i=se(l);i.asyncQueue.verifyOperationInProgress(),tt("RemoteStore","RemoteStore received new credentials");const s=Ja(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Bc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,ue.A)(function*(l,n){const i=se(l);n?(i.M_.delete(2),yield Bc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Qu(l){return l.B_||(l.B_=function(i,s,u){const p=se(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.B_.t_(),ff(l)?Wu(l):l.N_.set("Unknown")):(yield l.B_.stop(),$c(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=se(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:qu.bind(null,l),R_:yy.bind(null,l),A_:Za.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.k_.t_(),yield Xu(l)):(yield l.k_.stop(),l.v_.length>0&&(tt("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new it,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Fe(ve.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Yu(l,n){if(on("AsyncQueue",`${n}: ${l}`),ze(l))return new Fe(ve.UNAVAILABLE,`${n}: ${l}`);throw l}class la{constructor(n){this.comparator=n?(i,s)=>n(i,s)||en.comparator(i.key,s.key):(i,s)=>en.comparator(i.key,s.key),this.keyedMap=zi(),this.sortedSet=new Lr(this.comparator)}static emptySet(n){return new la(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof la)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new la;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Ju{constructor(){this.q_=new Lr(en.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):H():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,la.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Yo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new $o(n=>Fa(n),Yo),this.onlineState="Unknown",this.z_=new Set}}function Bs(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,ue.A)(function*(l,n){const i=se(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Yu(_,`Initialization of query '${_s(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Zu(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,ue.A)(function*(l,n){const i=se(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=se(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=se(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Xt{constructor(n){this.key=n}}class Dn{constructor(n){this.key=n}}class jn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Hr(),this.mutatedKeys=Hr(),this.Ia=ul(n),this.Ta=new la(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Ju,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((_e,je)=>{const pt=u.get(_e),Gt=Gs(this.query,je)?je:null,An=!!pt&&this.mutatedKeys.has(pt.key),Ln=!!Gt&&(Gt.hasLocalMutations||this.mutatedKeys.has(Gt.key)&&Gt.hasCommittedMutations);let Rn=!1;pt&&Gt?pt.data.isEqual(Gt.data)?An!==Ln&&(s.track({type:3,doc:Gt}),Rn=!0):this.Ra(pt,Gt)||(s.track({type:2,doc:Gt}),Rn=!0,(k&&this.Ia(Gt,k)>0||q&&this.Ia(Gt,q)<0)&&(R=!0)):!pt&&Gt?(s.track({type:0,doc:Gt}),Rn=!0):pt&&!Gt&&(s.track({type:1,doc:pt}),Rn=!0,(k||q)&&(R=!0)),Rn&&(Gt?(_=_.add(Gt),p=Ln?p.add(_e):p.delete(_e)):(_=_.delete(_e),p=p.delete(_e)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const _e="F"===this.query.limitType?_.last():_.first();_=_.delete(_e.key),p=p.delete(_e.key),s.track({type:1,doc:_e})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((_e,je)=>function(Gt,An){const Ln=Rn=>{switch(Rn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return H()}};return Ln(Gt)-Ln(An)}(_e.type,je.type)||this.Ia(_e.doc,je.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Ju,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=Hr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Dn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Xt(s))}),i}pa(n){this.la=n.hs,this.Pa=Hr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class _r{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class hi{constructor(n){this.key=n,this.wa=!1}}class Vo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new $o(R=>Fa(R),Yo),this.Da=new Map,this.Ca=new Set,this.va=new Lr(en.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function to(l,n){return ua.apply(this,arguments)}function ua(){return(ua=(0,ue.A)(function*(l,n,i=!0){const s=rc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,ue.A)(function*(l,n){const i=rc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return ec.apply(this,arguments)}function ec(){return(ec=(0,ue.A)(function*(l,n,i,s){const u=yield function sa(l,n){const i=se(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,pe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,qn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function tc(l,n,i,s,u){return nc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Ya(l.remoteStore,u),R})).apply(this,arguments)}function nc(){return nc=(0,ue.A)(function*(l,n,i,s,u){l.Ba=(je,pt,Gt)=>{return(An=(0,ue.A)(function*(Rn,hr,Mr,yr){let Yr=hr.view.da(Mr);Yr.Xi&&(Yr=yield El(Rn.localStore,hr.query,!1).then(({documents:at})=>hr.view.da(at,Yr)));const Li=yr&&yr.targetChanges.get(hr.targetId),fi=yr&&null!=yr.targetMismatches.get(hr.targetId),Ot=hr.view.applyChanges(Yr,Rn.isPrimaryClient,Li,fi);return Cg(Rn,hr.targetId,Ot.fa),Ot.snapshot}),function Ln(Rn,hr,Mr,yr){return An.apply(this,arguments)})(l,je,pt,Gt);var An};const p=yield El(l.localStore,n,!0),_=new jn(n,p.hs),R=_.da(p.documents),k=Si.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const _e=new _r(n,i,_);return l.ba.set(n,_e),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),nc.apply(this,arguments)}function Df(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Yo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield aa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&eo(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Ai))):(Zd(s,u.targetId),yield aa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Tf(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,ue.A)(function*(l,n){const i=se(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),eo(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,ue.A)(function*(l,n,i){const s=function Hc(l){const n=se(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=se(_),q=fn.now(),_e=R.reduce((Gt,An)=>Gt.add(An.key),Hr());let je,pt;return k.persistence.runTransaction("Locally write mutations","readwrite",Gt=>{let An=Rr(),Ln=Hr();return k.os.getEntries(Gt,_e).next(Rn=>{An=Rn,An.forEach((hr,Mr)=>{Mr.isValidDocument()||(Ln=Ln.add(hr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Gt,An)).next(Rn=>{je=Rn;const hr=[];for(const Mr of R){const yr=va(Mr,je.get(Mr.key).overlayedDocument);null!=yr&&hr.push(new lo(Mr.key,yr,qr(yr.value.mapValue),Ui.exists(!0)))}return k.mutationQueue.addMutationBatch(Gt,q,hr,R)}).next(Rn=>{pt=Rn;const hr=Rn.applyToLocalDocumentSet(je,Ln);return k.documentOverlayCache.saveOverlays(Gt,Rn.batchId,hr)})}).then(()=>({batchId:pt.batchId,changes:po(je)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Lr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Xu(s.remoteStore)}catch(u){const p=Yu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,ue.A)(function*(l,n){const i=se(l);try{const s=yield function ag(l,n){const i=se(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((_e,je)=>{const pt=u.get(je);if(!pt)return;R.push(i.Qr.removeMatchingKeys(p,_e.removedDocuments,je).next(()=>i.Qr.addMatchingKeys(p,_e.addedDocuments,je)));let Gt=pt.withSequenceNumber(p.currentSequenceNumber);var Ln,Rn,hr;null!==n.targetMismatches.get(je)?Gt=Gt.withResumeToken(oi.EMPTY_BYTE_STRING,pn.min()).withLastLimboFreeSnapshotVersion(pn.min()):_e.resumeToken.approximateByteSize()>0&&(Gt=Gt.withResumeToken(_e.resumeToken,s)),u=u.insert(je,Gt),Rn=Gt,hr=_e,(0===(Ln=pt).resumeToken.approximateByteSize()||Rn.snapshotVersion.toMicroseconds()-Ln.snapshotVersion.toMicroseconds()>=3e8||hr.addedDocuments.size+hr.modifiedDocuments.size+hr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Gt))});let k=Rr(),q=Hr();if(n.documentUpdates.forEach(_e=>{n.resolvedLimboDocuments.has(_e)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,_e))}),R.push(function ju(l,n,i){let s=Hr(),u=Hr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=Rr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(pn.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):tt("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(_e=>{k=_e.cs,q=_e.ls})),!s.isEqual(pn.min())){const _e=i.Qr.getLastRemoteSnapshotVersion(p).next(je=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(_e)}return pe.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Ai(s)}})).apply(this,arguments)}function _g(l,n,i){const s=se(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=se(_);k.onlineState=R;let q=!1;k.queries.forEach((_e,je)=>{for(const pt of je.U_)pt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,ue.A)(function*(l,n,i){const s=se(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Lr(en.comparator);_=_.insert(p,jr.newNoDocument(p,pn.min()));const R=Hr().add(p),k=new qi(pn.min(),new Map,new Lr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield aa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Ai)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,ue.A)(function*(l,n){const i=se(l),s=n.batch.batchId;try{const u=yield function $u(l,n){const i=se(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,_e){const je=q.batch,pt=je.keys();let Gt=pe.resolve();return pt.forEach(An=>{Gt=Gt.next(()=>_e.getEntry(k,An)).next(Ln=>{const Rn=q.docVersions.get(An);X(null!==Rn),Ln.version.compareTo(Rn)<0&&(je.applyToRemoteDocument(Ln,q),Ln.isValidDocument()&&(Ln.setReadTime(q.commitVersion),_e.addEntry(Ln)))})}),Gt.next(()=>R.mutationQueue.removeMutationBatch(k,je))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=Hr();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,ue.A)(function*(l,n,i){const s=se(l);try{const u=yield function(_,R){const k=se(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let _e;return k.mutationQueue.lookupMutationBatch(q,R).next(je=>(X(null!==je),_e=je.keys(),k.mutationQueue.removeMutationBatch(q,je))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,_e,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,_e)).next(()=>k.localDocuments.getDocuments(q,_e))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=se(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(eo(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Xt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Dn?(tt("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):H()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(tt("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const _e=Fi.Ki(k.targetId,q);p.push(_e)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,ue.A)(function*(q,_e){const je=se(q);try{yield je.persistence.runTransaction("notifyLocalViewChanges","readwrite",pt=>pe.forEach(_e,Gt=>pe.forEach(Gt.qi,An=>je.persistence.referenceDelegate.addReference(pt,Gt.targetId,An)).next(()=>pe.forEach(Gt.Qi,An=>je.persistence.referenceDelegate.removeReference(pt,Gt.targetId,An)))))}catch(pt){if(!ze(pt))throw pt;tt("LocalStore","Failed to update sequence numbers: "+pt)}for(const pt of _e){const Gt=pt.targetId;if(!pt.fromCache){const An=je.ns.get(Gt),Rn=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);je.ns=je.ns.insert(Gt,Rn)}}}),function k(q,_e){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Dg(l,n){return Tg.apply(this,arguments)}function Tg(){return(Tg=(0,ue.A)(function*(l,n){const i=se(l);if(!i.currentUser.isEqual(n)){tt("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Fe(ve.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=se(l),s=i.Fa.get(n);if(s&&s.wa)return Hr().add(s.key);{let u=Hr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function rc(l){const n=se(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class el{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,ue.A)(function*(){i.serializer=Vc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Mc(Sa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class tl{initialize(n,i){var s=this;return(0,ue.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Dg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Vc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,_e){const je=new Vo(u,p,_,R,k,q);return _e&&(je.La=!0),je}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;yield(s=(0,ue.A)(function*(p){const _=se(p);tt("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Kc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):on("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=Pe.UNAUTHENTICATED,this.clientId=Jn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,ue.A)(function*(R){tt("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(tt("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Fe(ve.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new it;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ue.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Yu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),tt("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,ue.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function ic(l){return kf.apply(this,arguments)}(l);tt("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,ue.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){tt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Tv(l){return"FirebaseError"===l.name?l.code===ve.FAILED_PRECONDITION||l.code===ve.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;ht("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new el)}}else tt("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new el);return l._offlineComponents})).apply(this,arguments)}function Xc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,ue.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(tt("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(tt("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new tl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,ue.A)(function*(l){const n=yield Xc(l),i=n.eventManager;return i.onListen=to.bind(null,n.syncEngine),i.onUnlisten=Df.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Tf.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Fe(ve.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!en.isDocumentKey(l))throw new Fe(ve.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(en.isDocumentKey(l))throw new Fe(ve.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":H()}function Ii(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Fe(ve.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Fe(ve.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Fe(ve.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Fe(ve.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Fe(ve.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Fe(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Fe(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Fe(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Fe(ve.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Fe(ve.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new Sn;switch(s.type){case"firstParty":return new On(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Fe(ve.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(tt("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class uo{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new uo(this.firestore,n,this._query)}}class vo{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new nl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new vo(this.firestore,n,this._key)}}class nl extends uo{constructor(n,i,s){super(n,i,Ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new vo(this.firestore,null,new en(n))}withConverter(n){return new nl(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Pn.fromString(n,...i);return du(s),new nl(l,null,s)}{if(!(l instanceof vo||l instanceof nl))throw new Fe(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Pn.fromString(n,...i));return du(s),new nl(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=Jn.newId()),Bf("doc","path",n),l instanceof ch){const s=Pn.fromString(n,...i);return Fg(s),new vo(l,null,new en(s))}{if(!(l instanceof vo||l instanceof nl))throw new Fe(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Pn.fromString(n,...i));return Fg(s),new vo(l.firestore,l instanceof nl?l.converter:null,new en(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Tl();i&&tt("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Tl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Tl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new it;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,ue.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!ze(i))throw i;tt("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,on("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&H()}verifyOperationInProgress(){}du(){var n=this;return(0,ue.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class Bi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,oe.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,oe.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Ii(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&ht("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=Pe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Fe(ve.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new Pe(q)}l._authCredentials=new qe(new sn(R,k))}}(u,...p)}return u}function ro(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new zt(l._databaseId,k,l._persistenceKey,(_e=u).host,_e.ssl,_e.experimentalForceLongPolling,_e.experimentalAutoDetectLongPolling,uh(_e.experimentalLongPollingOptions),_e.useFetchStreams));var k,_e;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class oc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new oc(oi.fromBase64String(n))}catch(i){throw new Fe(ve.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new oc(oi.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Fe(ve.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Fe(ve.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ks(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw H()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(je.field))}else k=null,q=_.fieldTransforms;return new $f(new Bn(R),k,q)}class Jc extends Yc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Jc}}function Pa(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Yc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=Pa(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=fn.fromDate(s);return{timestampValue:Go(u.serializer,p)}}if(s instanceof fn){const p=new fn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Go(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof oc)return{bytesValue:qs(u.serializer,s._byteString)};if(s instanceof vo){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:Qs(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return ei(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):ai(l,(s,u)=>{const p=Pa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof fn||l instanceof Ug||l instanceof oc||l instanceof vo||l instanceof Yc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Fe(ve.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new vo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(j(n)){case 0:return null;case 1:return n.booleanValue;case 2:return le(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(W(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw H()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return ai(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(le(n.latitude),le(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Le(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(st(n));default:return null}}convertTimestamp(n){const i=he(n);return new fn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Pn.fromString(n);X(E(s));const u=new In(s.get(1),s.get(3)),p=new en(s.popFirst(5));return u.isEqual(i)||on(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class lc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends lc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Fe(ve.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,_e=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),_e=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:_e}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return H()}}function Hv(l){l=Ii(l,vo);const n=Ii(l.firestore,Bi);return function lh(l,n,i={}){const s=new it;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Zu(p,je));const Gt=pt.docs.has(R);!Gt&&pt.fromCache?q.reject(new Fe(ve.UNAVAILABLE,"Failed to get document because the client is offline.")):Gt&&pt.fromCache&&k&&"server"===k.source?q.reject(new Fe(ve.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(Ce(R.path),_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(ro(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new gu(l);return new lc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class gu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new oc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new vo(this.firestore,null,i)}}function Gv(l){l=Ii(l,uo);const n=Ii(l.firestore,Bi),i=ro(n),s=new gu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Fe(ve.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new it;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Zu(p,je)),pt.fromCache&&"server"===k.source?q.reject(new Fe(ve.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(R,_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Ii(l,vo);const s=Ii(l.firestore,Bi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(pu(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ui.none())])}function Qy(l,n,i,...s){l=Ii(l,vo);const u=Ii(l.firestore,Bi),p=pu(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Fe(ve.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let pt=0;pt=0;--pt)if(!Uv(q,R[pt])){const Gt=R[pt];let An=k[pt];An=(0,Se.Ku)(An);const Ln=_.Su(Gt);if(An instanceof Jc)q.push(Gt);else{const Rn=Pa(An,Ln);null!=Rn&&(q.push(Gt),_e.set(Gt,Rn))}}const je=new Ci(q);return new $g(_e,je,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Bn.empty();ai(s,(k,q)=>{const _e=Gf(n,k,i);q=(0,Se.Ku)(q);const je=u.Su(_e);if(q instanceof Jc)p.push(_e);else{const pt=Pa(q,je);null!=pt&&(p.push(_e),_.set(_e,pt))}});const R=new Ci(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Ui.exists(!0))])}function Yy(l){return od(Ii(l.firestore,Bi),[new $(l._key,Ui.none())])}function od(l,n){return function(s,u){const p=new it;return s.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return Xc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(ro(l),n)}!function(n,i=!0){_t=oe.MF,(0,oe.om)(new Ke.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new Bi(new Kt(s.getProvider("auth-internal")),new nr(s.getProvider("app-check-internal")),function(q,_e){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Fe(ve.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new In(q.options.projectId,_e)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,oe.KO)(ke,"4.6.3",n),(0,oe.KO)(ke,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,U.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,xe.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},9032:(Tn,gt,C)=>{"use strict";C.d(gt,{L9:()=>cr,oc:()=>Lt,v_:()=>ze,cw:()=>ye});var h=C(5407),c=C(4438),Z=C(7440),xe=C(2214),U=C(467),ue=C(7852),oe=C(1362),Ke=C(1076),Je=C(1635),Se="@firebase/vertexai-preview",De="0.0.2";const Ye="vertexAI",Ze="us-central1",Dt=De,Rt="gl-js";class It{constructor(dt,lt,Wt,tn){var vn;this.app=dt,this.options=tn;const Yn=null==Wt?void 0:Wt.getImmediate({optional:!0}),dn=null==lt?void 0:lt.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Yn||null,this.location=(null===(vn=this.options)||void 0===vn?void 0:vn.location)||Ze}_delete(){return Promise.resolve()}}const Et=new Ke.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var mt=function(ie){return ie.GENERATE_CONTENT="generateContent",ie.STREAM_GENERATE_CONTENT="streamGenerateContent",ie.COUNT_TOKENS="countTokens",ie}(mt||{});class Ae{constructor(dt,lt,Wt,tn,vn){this.model=dt,this.task=lt,this.apiSettings=Wt,this.stream=tn,this.requestOptions=vn}toString(){var dt;let tn=`${(null===(dt=this.requestOptions)||void 0===dt?void 0:dt.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return tn+=`/projects/${this.apiSettings.project}`,tn+=`/locations/${this.apiSettings.location}`,tn+=`/${this.model}`,tn+=`:${this.task}`,this.stream&&(tn+="?alt=sse"),tn}get fullModelString(){let dt=`projects/${this.apiSettings.project}`;return dt+=`/locations/${this.apiSettings.location}`,dt+=`/${this.model}`,dt}}function ge(ie){return Be.apply(this,arguments)}function Be(){return(Be=(0,U.A)(function*(ie){const dt=new Headers;if(dt.append("Content-Type","application/json"),dt.append("x-goog-api-client",function Qe(){const ie=[];return ie.push(`${Rt}/${Dt}`),ie.push(`fire/${Dt}`),ie.join(" ")}()),dt.append("x-goog-api-key",ie.apiSettings.apiKey),ie.apiSettings.getAppCheckToken){const lt=yield ie.apiSettings.getAppCheckToken();lt&&!lt.error&&dt.append("X-Firebase-AppCheck",lt.token)}if(ie.apiSettings.getAuthToken){const lt=yield ie.apiSettings.getAuthToken();lt&&dt.append("Authorization",`Firebase ${lt.accessToken}`)}return dt})).apply(this,arguments)}function Pe(){return(Pe=(0,U.A)(function*(ie,dt,lt,Wt,tn,vn){const Yn=new Ae(ie,dt,lt,Wt,vn);return{url:Yn.toString(),fetchOptions:Object.assign(Object.assign({},mn(vn)),{method:"POST",headers:yield ge(Yn),body:tn})}})).apply(this,arguments)}function _t(ie,dt,lt,Wt,tn,vn){return Pt.apply(this,arguments)}function Pt(){return Pt=(0,U.A)(function*(ie,dt,lt,Wt,tn,vn){const Yn=new Ae(ie,dt,lt,Wt,vn);let dn;try{const Cn=yield function ke(ie,dt,lt,Wt,tn,vn){return Pe.apply(this,arguments)}(ie,dt,lt,Wt,tn,vn);if(dn=yield fetch(Cn.url,Cn.fetchOptions),!dn.ok){let ir="";try{const Ar=yield dn.json();ir=Ar.error.message,Ar.error.details&&(ir+=` ${JSON.stringify(Ar.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${ir}`)}}catch(Cn){const ir=Cn,Ar=Et.create("fetch-error",{url:Yn.toString(),message:ir.message});throw Ar.stack=ir.stack,Ar}return dn}),Pt.apply(this,arguments)}function mn(ie){const dt={};if(null!=ie&&ie.timeout&&(null==ie?void 0:ie.timeout)>=0){const lt=new AbortController,Wt=lt.signal;setTimeout(()=>lt.abort(),ie.timeout),dt.signal=Wt}return dt}const vt=["user","model","function","system"];var fe=function(ie){return ie.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ie.STOP="STOP",ie.MAX_TOKENS="MAX_TOKENS",ie.SAFETY="SAFETY",ie.RECITATION="RECITATION",ie.OTHER="OTHER",ie}(fe||{});function Fe(ie){return ie.text=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),qe(ie.candidates[0]))throw Et.create("response-error",{message:`${Kt(ie)}`,response:ie});return function it(ie){var dt,lt,Wt,tn;const vn=[];if(null!==(lt=null===(dt=ie.candidates)||void 0===dt?void 0:dt[0].content)&&void 0!==lt&<.parts)for(const Yn of null===(tn=null===(Wt=ie.candidates)||void 0===Wt?void 0:Wt[0].content)||void 0===tn?void 0:tn.parts)Yn.text&&vn.push(Yn.text);return vn.length>0?vn.join(""):""}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Text not available. ${Kt(ie)}`,response:ie});return""},ie.functionCalls=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),qe(ie.candidates[0]))throw Et.create("response-error",{message:`${Kt(ie)}`,response:ie});return function sn(ie){var dt,lt,Wt,tn;const vn=[];if(null!==(lt=null===(dt=ie.candidates)||void 0===dt?void 0:dt[0].content)&&void 0!==lt&<.parts)for(const Yn of null===(tn=null===(Wt=ie.candidates)||void 0===Wt?void 0:Wt[0].content)||void 0===tn?void 0:tn.parts)Yn.functionCall&&vn.push(Yn.functionCall);if(vn.length>0)return vn}(ie)}if(ie.promptFeedback)throw Et.create("response-error",{message:`Function call not available. ${Kt(ie)}`,response:ie})},ie}const Sn=[fe.RECITATION,fe.SAFETY];function qe(ie){return!!ie.finishReason&&Sn.includes(ie.finishReason)}function Kt(ie){var dt,lt,Wt;let tn="";if(ie.candidates&&0!==ie.candidates.length||!ie.promptFeedback){if(null!==(Wt=ie.candidates)&&void 0!==Wt&&Wt[0]){const vn=ie.candidates[0];qe(vn)&&(tn+=`Candidate was blocked due to ${vn.finishReason}`,vn.finishMessage&&(tn+=`: ${vn.finishMessage}`))}}else tn+="Response was blocked",!(null===(dt=ie.promptFeedback)||void 0===dt)&&dt.blockReason&&(tn+=` due to ${ie.promptFeedback.blockReason}`),null!==(lt=ie.promptFeedback)&&void 0!==lt&<.blockReasonMessage&&(tn+=`: ${ie.promptFeedback.blockReasonMessage}`);return tn}const En=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function Qn(ie){return nr.apply(this,arguments)}function nr(){return(nr=(0,U.A)(function*(ie){const dt=[],lt=ie.getReader();for(;;){const{done:Wt,value:tn}=yield lt.read();if(Wt)return Fe(Jn(dt));dt.push(tn)}})).apply(this,arguments)}function vr(ie){return(0,Je.AQ)(this,arguments,function*(){const lt=ie.getReader();for(;;){const{value:Wt,done:tn}=yield(0,Je.N3)(lt.read());if(tn)break;yield yield(0,Je.N3)(Fe(Wt))}})}function Jn(ie){const dt=ie[ie.length-1],lt={promptFeedback:null==dt?void 0:dt.promptFeedback};for(const Wt of ie)if(Wt.candidates)for(const tn of Wt.candidates){const vn=tn.index;if(lt.candidates||(lt.candidates=[]),lt.candidates[vn]||(lt.candidates[vn]={index:tn.index}),lt.candidates[vn].citationMetadata=tn.citationMetadata,lt.candidates[vn].finishReason=tn.finishReason,lt.candidates[vn].finishMessage=tn.finishMessage,lt.candidates[vn].safetyRatings=tn.safetyRatings,tn.content&&tn.content.parts){lt.candidates[vn].content||(lt.candidates[vn].content={role:tn.content.role||"user",parts:[]});const Yn={};for(const dn of tn.content.parts)dn.text&&(Yn.text=dn.text),dn.functionCall&&(Yn.functionCall=dn.functionCall),0===Object.keys(Yn).length&&(Yn.text=""),lt.candidates[vn].content.parts.push(Yn)}}return lt}function nt(ie,dt,lt,Wt){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,U.A)(function*(ie,dt,lt,Wt){return function On(ie){const lt=function rr(ie){const dt=ie.getReader();return new ReadableStream({start(Wt){let tn="";return function vn(){return dt.read().then(({value:Yn,done:dn})=>{if(dn)return tn.trim()?void Wt.error(Et.create("parse-failed",{message:"Failed to parse stream"})):void Wt.close();tn+=Yn;let ir,Cn=tn.match(En);for(;Cn;){try{ir=JSON.parse(Cn[1])}catch{return void Wt.error(Et.create("parse-failed",{message:`Error parsing JSON response: "${Cn[1]}"`}))}Wt.enqueue(ir),tn=tn.substring(Cn[0].length),Cn=tn.match(En)}return vn()})}()}})}(ie.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Wt,tn]=lt.tee();return{stream:vr(Wt),response:Qn(tn)}}(yield _t(dt,mt.STREAM_GENERATE_CONTENT,ie,!0,JSON.stringify(lt),Wt))})).apply(this,arguments)}function Ht(ie,dt,lt,Wt){return fn.apply(this,arguments)}function fn(){return(fn=(0,U.A)(function*(ie,dt,lt,Wt){return{response:Fe(yield(yield _t(dt,mt.GENERATE_CONTENT,ie,!1,JSON.stringify(lt),Wt)).json())}})).apply(this,arguments)}function pn(ie){if(null!=ie){if("string"==typeof ie)return{role:"system",parts:[{text:ie}]};if(ie.text)return{role:"system",parts:[ie]};if(ie.parts)return ie.role?ie:{role:"system",parts:ie.parts}}}function Sr(ie){let dt=[];if("string"==typeof ie)dt=[{text:ie}];else for(const lt of ie)dt.push("string"==typeof lt?{text:lt}:lt);return function Pn(ie){const dt={role:"user",parts:[]},lt={role:"function",parts:[]};let Wt=!1,tn=!1;for(const vn of ie)"functionResponse"in vn?(lt.parts.push(vn),tn=!0):(dt.parts.push(vn),Wt=!0);if(Wt&&tn)throw Et.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Wt&&!tn)throw Et.create("invalid-content",{message:"No content is provided for sending chat message."});return Wt?dt:lt}(dt)}function Nn(ie){let dt;return dt=ie.contents?ie:{contents:[Sr(ie)]},ie.systemInstruction&&(dt.systemInstruction=pn(ie.systemInstruction)),dt}const gn=["text","inlineData","functionCall","functionResponse"],en={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},Er={user:["model"],function:["model"],model:["user","function"],system:[]},Nr="SILENT_ERROR";class Zn{constructor(dt,lt,Wt,tn){this.model=lt,this.params=Wt,this.requestOptions=tn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=dt,null!=Wt&&Wt.history&&(function Ir(ie){let dt=null;for(const lt of ie){const{role:Wt,parts:tn}=lt;if(!dt&&"user"!==Wt)throw Et.create("invalid-content",{message:`First content should be with role 'user', got ${Wt}`});if(!vt.includes(Wt))throw Et.create("invalid-content",{message:`Each item should include role field. Got ${Wt} but valid roles are: ${JSON.stringify(vt)}`});if(!Array.isArray(tn))throw Et.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===tn.length)throw Et.create("invalid-content",{message:"Each Content should have at least one part"});const vn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of tn)for(const Cn of gn)Cn in dn&&(vn[Cn]+=1);const Yn=en[Wt];for(const dn of gn)if(!Yn.includes(dn)&&vn[dn]>0)throw Et.create("invalid-content",{message:`Content with role '${Wt}' can't contain '${dn}' part`});if(dt&&!Er[Wt].includes(dt.role))throw Et.create("invalid-content",{message:`Content with role '${Wt}' can't follow '${dt.role}'. Valid previous roles: ${JSON.stringify(Er)}`});dt=lt}}(Wt.history),this._history=Wt.history)}getHistory(){var dt=this;return(0,U.A)(function*(){return yield dt._sendPromise,dt._history})()}sendMessage(dt){var lt=this;return(0,U.A)(function*(){var Wt,tn,vn,Yn,dn;yield lt._sendPromise;const Cn=Sr(dt),ir={safetySettings:null===(Wt=lt.params)||void 0===Wt?void 0:Wt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(vn=lt.params)||void 0===vn?void 0:vn.tools,toolConfig:null===(Yn=lt.params)||void 0===Yn?void 0:Yn.toolConfig,systemInstruction:null===(dn=lt.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...lt._history,Cn]};let Ar={};return lt._sendPromise=lt._sendPromise.then(()=>Ht(lt._apiSettings,lt.model,ir,lt.requestOptions)).then(dr=>{var $r,Zr;if(dr.response.candidates&&dr.response.candidates.length>0){lt._history.push(Cn);const fr={parts:(null===($r=dr.response.candidates)||void 0===$r?void 0:$r[0].content.parts)||[],role:(null===(Zr=dr.response.candidates)||void 0===Zr?void 0:Zr[0].content.role)||"model"};lt._history.push(fr)}else{const fr=Kt(dr.response);fr&&console.warn(`sendMessage() was unsuccessful. ${fr}. Inspect response object for details.`)}Ar=dr}),yield lt._sendPromise,Ar})()}sendMessageStream(dt){var lt=this;return(0,U.A)(function*(){var Wt,tn,vn,Yn,dn;yield lt._sendPromise;const Cn=Sr(dt),ir={safetySettings:null===(Wt=lt.params)||void 0===Wt?void 0:Wt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(vn=lt.params)||void 0===vn?void 0:vn.tools,toolConfig:null===(Yn=lt.params)||void 0===Yn?void 0:Yn.toolConfig,systemInstruction:null===(dn=lt.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...lt._history,Cn]},Ar=nt(lt._apiSettings,lt.model,ir,lt.requestOptions);return lt._sendPromise=lt._sendPromise.then(()=>Ar).catch(dr=>{throw new Error(Nr)}).then(dr=>dr.response).then(dr=>{if(dr.candidates&&dr.candidates.length>0){lt._history.push(Cn);const $r=Object.assign({},dr.candidates[0].content);$r.role||($r.role="model"),lt._history.push($r)}else{const $r=Kt(dr);$r&&console.warn(`sendMessageStream() was unsuccessful. ${$r}. Inspect response object for details.`)}}).catch(dr=>{dr.message!==Nr&&console.error(dr)}),Ar})()}}function tr(){return(tr=(0,U.A)(function*(ie,dt,lt,Wt){return(yield _t(dt,mt.COUNT_TOKENS,ie,!1,JSON.stringify(lt),Wt)).json()})).apply(this,arguments)}class Jr{constructor(dt,lt,Wt){var tn,vn,Yn,dn;if(null===(vn=null===(tn=dt.app)||void 0===tn?void 0:tn.options)||void 0===vn||!vn.apiKey)throw Et.create("no-api-key");if(null===(dn=null===(Yn=dt.app)||void 0===Yn?void 0:Yn.options)||void 0===dn||!dn.projectId)throw Et.create("no-project-id");this._apiSettings={apiKey:dt.app.options.apiKey,project:dt.app.options.projectId,location:dt.location},dt.appCheck&&(this._apiSettings.getAppCheckToken=()=>dt.appCheck.getToken()),dt.auth&&(this._apiSettings.getAuthToken=()=>dt.auth.getToken()),this.model=lt.model.includes("/")?lt.model.startsWith("models/")?`publishers/google/${lt.model}`:lt.model:`publishers/google/models/${lt.model}`,this.generationConfig=lt.generationConfig||{},this.safetySettings=lt.safetySettings||[],this.tools=lt.tools,this.toolConfig=lt.toolConfig,this.systemInstruction=pn(lt.systemInstruction),this.requestOptions=Wt||{}}generateContent(dt){var lt=this;return(0,U.A)(function*(){const Wt=Nn(dt);return Ht(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Wt),lt.requestOptions)})()}generateContentStream(dt){var lt=this;return(0,U.A)(function*(){const Wt=Nn(dt);return nt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Wt),lt.requestOptions)})()}startChat(dt){return new Zn(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},dt),this.requestOptions)}countTokens(dt){var lt=this;return(0,U.A)(function*(){const Wt=Nn(dt);return function Dr(ie,dt,lt,Wt){return tr.apply(this,arguments)}(lt._apiSettings,lt.model,Wt)})()}}function mr(ie=(0,ue.Sx)(),dt){return ie=(0,Ke.Ku)(ie),(0,ue.j6)(ie,Ye).getImmediate({identifier:(null==dt?void 0:dt.location)||Ze})}function ur(ie,dt,lt){if(!dt.model)throw Et.create("no-model");return new Jr(ie,dt,lt)}!function Pr(){(0,ue.om)(new oe.uA(Ye,(ie,{instanceIdentifier:dt})=>{const lt=ie.getProvider("app").getImmediate(),Wt=ie.getProvider("auth-internal"),tn=ie.getProvider("app-check-internal");return new It(lt,Wt,tn,{location:dt})},"PUBLIC").setMultipleInstances(!0)),(0,ue.KO)(Se,De),(0,ue.KO)(Se,De,"esm2017")}();class cr{constructor(dt){return dt}}const kr="vertexai",Qr=new c.nKC("angularfire2.vertexai-instances");function rt(ie){return(dt,lt)=>{const Wt=dt.runOutsideAngular(()=>ie(lt));return new cr(Wt)}}const Mt={provide:class ii{constructor(){return(0,h.CA)(kr)}},deps:[[new c.Xx1,Qr]]},ut={provide:cr,useFactory:function pe(ie,dt){const lt=(0,h.lR)(kr,ie,dt);return lt&&new cr(lt)},deps:[[new c.Xx1,Qr],Z.XU]};function ye(ie,...dt){return(0,xe.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([ut,Mt,{provide:Qr,useFactory:rt(ie),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...dt]}])}const ze=(0,h.S3)(mr,!0),Lt=(0,h.S3)(ur,!0)},5407:(Tn,gt,C)=>{"use strict";C.d(gt,{xv:()=>ct,u0:()=>ge,Jv:()=>Vt,CA:()=>It,lR:()=>Rt,S3:()=>on});var h=C(9842),c=C(4438),Z=C(2214),xe=C(6780),ue=C(9687);const Ke=new class oe extends ue.q{}(class U extends xe.R{constructor(we,H){super(we,H),this.scheduler=we,this.work=H}schedule(we,H=0){return H>0?super.schedule(we,H):(this.delay=H,this.state=we,this.scheduler.flush(this),this)}execute(we,H){return H>0||this.closed?super.execute(we,H):this._execute(we,H)}requestAsyncId(we,H,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(we,H,X):(we.flush(this),0)}});var Se=C(3236),De=C(1985),Ye=C(8141),Ze=C(6745),Xe=C(941);const ct=new c.RxE("ANGULARFIRE2_VERSION");function Rt(ht,we,H){if(we){if(1===we.length)return we[0];const se=we.filter(ve=>ve.app===H);if(1===se.length)return se[0]}return H.container.getProvider(ht).getImmediate({optional:!0})}const It=(ht,we)=>{const H=we?[we]:(0,Z.Dk)(),X=[];return H.forEach(fe=>{fe.container.getProvider(ht).instances.forEach(ve=>{X.includes(ve)||X.push(ve)})}),X};class Vt{constructor(){return It(Et)}}const Et="app-check";function mt(){}class Ae{constructor(we,H=Ke){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=we,this.delegate=H}now(){return this.delegate.now()}schedule(we,H,X){const fe=this.zone;return this.delegate.schedule(function(ve){fe.runGuarded(()=>{we.apply(this,[ve])})},H,X)}}class Qe{constructor(we){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=we}call(we,H){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)),H.pipe((0,Ye.M)({next:X,complete:X,error:X})).subscribe(we).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ge=(()=>{var ht;class we{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Ae(Zone.current)),this.insideAngular=X.run(()=>new Ae(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return ht=we,(0,h.A)(we,"\u0275fac",function(X){return new(X||ht)(c.KVO(c.SKi))}),(0,h.A)(we,"\u0275prov",c.jDH({token:ht,factory:ht.\u0275fac,providedIn:"root"})),we})();function Be(){const ht=globalThis.\u0275AngularFireScheduler;if(!ht)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return ht}function Pe(ht){return Be().ngZone.run(()=>ht())}function mn(ht){return function vt(ht){return function(H){return(H=H.lift(new Qe(ht.ngZone))).pipe((0,Ze._)(ht.outsideAngular),(0,Xe.Q)(ht.insideAngular))}}(Be())(ht)}const tt=(ht,we)=>function(){const X=arguments;return we&&setTimeout(()=>{"scheduled"===we.state&&we.invoke()},10),Pe(()=>ht.apply(void 0,X))},on=(ht,we)=>function(){let H;const X=arguments;for(let se=0;seZone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)))),X[se]=tt(X[se],H));const fe=function ke(ht){return Be().ngZone.runOutsideAngular(()=>ht())}(()=>ht.apply(this,X));if(!we){if(fe instanceof De.c){const se=Be();return fe.pipe((0,Ze._)(se.outsideAngular),(0,Xe.Q)(se.insideAngular))}return Pe(()=>fe)}return fe instanceof De.c?fe.pipe(mn):fe instanceof Promise?Pe(()=>new Promise((se,ve)=>fe.then(Fe=>Pe(()=>se(Fe)),Fe=>Pe(()=>ve(Fe))))):"function"==typeof fe&&H?function(){return setTimeout(()=>{H&&"scheduled"===H.state&&H.invoke()},10),fe.apply(this,arguments)}:Pe(()=>fe)}},4341:(Tn,gt,C)=>{"use strict";C.d(gt,{YN:()=>ha,zX:()=>ki,VZ:()=>as,cz:()=>ge,kq:()=>ct,vO:()=>Ht,BC:()=>Pn,vS:()=>wt});var h=C(4438),c=C(177),Z=C(8455),xe=C(1985),U=C(3073),ue=C(8750),oe=C(9326),Ke=C(4360),Je=C(6450),Se=C(8496),Ye=C(6354);let Ze=(()=>{var K;class N{constructor(G,Ne){this._renderer=G,this._elementRef=Ne,this.onChange=_n=>{},this.onTouched=()=>{}}setProperty(G,Ne){this._renderer.setProperty(this._elementRef.nativeElement,G,Ne)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT))},K.\u0275dir=h.FsC({type:K}),N})(),Xe=(()=>{var K;class N extends Ze{}return(K=N).\u0275fac=(()=>{let Ce;return function(Ne){return(Ce||(Ce=h.xGo(K)))(Ne||K)}})(),K.\u0275dir=h.FsC({type:K,features:[h.Vt3]}),N})();const ct=new h.nKC(""),It={provide:ct,useExisting:(0,h.Rfq)(()=>mt),multi:!0},Et=new h.nKC("");let mt=(()=>{var K;class N extends Ze{constructor(G,Ne,_n){super(G,Ne),this._compositionMode=_n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Vt(){const K=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(K.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Et,8))},K.\u0275dir=h.FsC({type:K,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(G,Ne){1&G&&h.bIt("input",function(qn){return Ne._handleInput(qn.target.value)})("blur",function(){return Ne.onTouched()})("compositionstart",function(){return Ne._compositionStart()})("compositionend",function(qn){return Ne._compositionEnd(qn.target.value)})},features:[h.Jv_([It]),h.Vt3]}),N})();function Ae(K){return null==K||("string"==typeof K||Array.isArray(K))&&0===K.length}const ge=new h.nKC(""),Be=new h.nKC("");function H(K){return null}function X(K){return null!=K}function fe(K){return(0,h.jNT)(K)?(0,Z.H)(K):K}function se(K){let N={};return K.forEach(Ce=>{N=null!=Ce?{...N,...Ce}:N}),0===Object.keys(N).length?null:N}function ve(K,N){return N.map(Ce=>Ce(K))}function it(K){return K.map(N=>function Fe(K){return!K.validate}(N)?N:Ce=>N.validate(Ce))}function Sn(K){return null!=K?function sn(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return se(ve(Ce,N))}}(it(K)):null}function Kt(K){return null!=K?function qe(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ce){return function De(...K){const N=(0,oe.ms)(K),{args:Ce,keys:G}=(0,U.D)(K),Ne=new xe.c(_n=>{const{length:qn}=Ce;if(!qn)return void _n.complete();const wr=new Array(qn);let oo=qn,wo=qn;for(let So=0;So{Yo||(Yo=!0,wo--),wr[So]=Fa},()=>oo--,void 0,()=>{(!oo||!Yo)&&(wo||_n.next(G?(0,Se.e)(G,wr):wr),_n.complete())}))}});return N?Ne.pipe((0,Je.I)(N)):Ne}(ve(Ce,N).map(fe)).pipe((0,Ye.T)(se))}}(it(K)):null}function En(K,N){return null===K?[N]:Array.isArray(K)?[...K,N]:[K,N]}function nr(K){return K?Array.isArray(K)?K:[K]:[]}function vr(K,N){return Array.isArray(K)?K.includes(N):K===N}function rr(K,N){const Ce=nr(N);return nr(K).forEach(Ne=>{vr(Ce,Ne)||Ce.push(Ne)}),Ce}function Jn(K,N){return nr(N).filter(Ce=>!vr(K,Ce))}class nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(N){this._rawValidators=N||[],this._composedValidatorFn=Sn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=Kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,Ce){return!!this.control&&this.control.hasError(N,Ce)}getError(N,Ce){return this.control?this.control.getError(N,Ce):null}}class Nt extends nt{get formDirective(){return null}get path(){return null}}class Ht extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fn{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Pn=(()=>{var K;class N extends fn{constructor(G){super(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Ht,2))},K.\u0275dir=h.FsC({type:K,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,Ne){2&G&&h.AVh("ng-untouched",Ne.isUntouched)("ng-touched",Ne.isTouched)("ng-pristine",Ne.isPristine)("ng-dirty",Ne.isDirty)("ng-valid",Ne.isValid)("ng-invalid",Ne.isInvalid)("ng-pending",Ne.isPending)},features:[h.Vt3]}),N})();const pe="VALID",rt="INVALID",Mt="PENDING",ut="DISABLED";function ie(K){return null!=K&&!Array.isArray(K)&&"object"==typeof K}class Wt{constructor(N,Ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(Ce)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===pe}get invalid(){return this.status===rt}get pending(){return this.status==Mt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(rr(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(Jn(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(Jn(N,this._rawAsyncValidators))}hasValidator(N){return vr(this._rawValidators,N)}hasAsyncValidator(N){return vr(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ce=>{Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ce=>{Ce.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Mt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=ut,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const Ce=this._parentMarkedDirty(N.onlySelf);this.status=pe,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:Ce}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pe||this.status===Mt)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(Ce=>Ce._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:pe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ce=fe(this.asyncValidator(this));this._asyncValidationSubscription=Ce.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,Ce={}){this.errors=N,this._updateControlsErrors(!1!==Ce.emitEvent)}get(N){let Ce=N;return null==Ce||(Array.isArray(Ce)||(Ce=Ce.split(".")),0===Ce.length)?null:Ce.reduce((G,Ne)=>G&&G._find(Ne),this)}getError(N,Ce){const G=Ce?this.get(Ce):this;return G&&G.errors?G.errors[N]:null}hasError(N,Ce){return!!this.getError(N,Ce)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(rt)?rt:pe}_anyControlsHaveStatus(N){return this._anyControls(Ce=>Ce.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){ie(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function ye(K){return Array.isArray(K)?Sn(K):K||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Lt(K){return Array.isArray(K)?Kt(K):K||null}(this._rawAsyncValidators)}}const Ar=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dr}),dr="always";function Zr(K,N,Ce=dr){var G,Ne;(function pr(K,N){const Ce=function On(K){return K._rawValidators}(K);null!==N.validator?K.setValidators(En(Ce,N.validator)):"function"==typeof Ce&&K.setValidators([Ce]);const G=function Qn(K){return K._rawAsyncValidators}(K);null!==N.asyncValidator?K.setAsyncValidators(En(G,N.asyncValidator)):"function"==typeof G&&K.setAsyncValidators([G]);const Ne=()=>K.updateValueAndValidity();Ri(N._rawValidators,Ne),Ri(N._rawAsyncValidators,Ne)})(K,N),N.valueAccessor.writeValue(K.value),(K.disabled||"always"===Ce)&&(null===(G=(Ne=N.valueAccessor).setDisabledState)||void 0===G||G.call(Ne,K.disabled)),function ne(K,N){N.valueAccessor.registerOnChange(Ce=>{K._pendingValue=Ce,K._pendingChange=!0,K._pendingDirty=!0,"change"===K.updateOn&&$e(K,N)})}(K,N),function M(K,N){const Ce=(G,Ne)=>{N.valueAccessor.writeValue(G),Ne&&N.viewToModelUpdate(G)};K.registerOnChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnChange(Ce)})}(K,N),function ee(K,N){N.valueAccessor.registerOnTouched(()=>{K._pendingTouched=!0,"blur"===K.updateOn&&K._pendingChange&&$e(K,N),"submit"!==K.updateOn&&K.markAsTouched()})}(K,N),function gi(K,N){if(N.valueAccessor.setDisabledState){const Ce=G=>{N.valueAccessor.setDisabledState(G)};K.registerOnDisabledChange(Ce),N._registerOnDestroy(()=>{K._unregisterOnDisabledChange(Ce)})}}(K,N)}function Ri(K,N){K.forEach(Ce=>{Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(N)})}function $e(K,N){K._pendingDirty&&K.markAsDirty(),K.setValue(K._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(K._pendingValue),K._pendingChange=!1}function Cr(K,N){const Ce=K.indexOf(N);Ce>-1&&K.splice(Ce,1)}function ai(K){return"object"==typeof K&&null!==K&&2===Object.keys(K).length&&"value"in K&&"disabled"in K}Promise.resolve();const li=class extends Wt{constructor(N=null,Ce,G){super(function ce(K){return(ie(K)?K.validators:K)||null}(Ce),function ze(K,N){return(ie(N)?N.asyncValidators:K)||null}(G,Ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(Ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(Ce)&&(Ce.nonNullable||Ce.initialValueIsDefault)&&(this.defaultValue=ai(N)?N.value:N)}setValue(N,Ce={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==Ce.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==Ce.emitViewToModelChange)),this.updateValueAndValidity(Ce)}patchValue(N,Ce={}){this.setValue(N,Ce)}reset(N=this.defaultValue,Ce={}){this._applyFormState(N),this.markAsPristine(Ce),this.markAsUntouched(Ce),this.setValue(this.value,Ce),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){Cr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){Cr(this._onDisabledChange,N)}_forEachChild(N){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(N){ai(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},No={provide:Ht,useExisting:(0,h.Rfq)(()=>wt)},oi=Promise.resolve();let wt=(()=>{var K;class N extends Ht{constructor(G,Ne,_n,qn,wr,oo){super(),this._changeDetectorRef=wr,this.callSetDisabledState=oo,this.control=new li,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=G,this._setValidators(Ne),this._setAsyncValidators(_n),this.valueAccessor=function kn(K,N){if(!N)return null;let Ce,G,Ne;return Array.isArray(N),N.forEach(_n=>{_n.constructor===mt?Ce=_n:function $n(K){return Object.getPrototypeOf(K.constructor)===Xe}(_n)?G=_n:Ne=_n}),Ne||G||Ce||null}(0,qn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const Ne=G.name.previousValue;this.formDirective.removeControl({name:Ne,path:this._getPath(Ne)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function or(K,N){if(!K.hasOwnProperty("model"))return!1;const Ce=K.model;return!!Ce.isFirstChange()||!Object.is(N,Ce.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zr(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()}_updateValue(G){oi.then(()=>{var Ne;this.control.setValue(G,{emitViewToModelChange:!1}),null===(Ne=this._changeDetectorRef)||void 0===Ne||Ne.markForCheck()})}_updateDisabled(G){const Ne=G.isDisabled.currentValue,_n=0!==Ne&&(0,h.L39)(Ne);oi.then(()=>{var qn;_n&&!this.control.disabled?this.control.disable():!_n&&this.control.disabled&&this.control.enable(),null===(qn=this._changeDetectorRef)||void 0===qn||qn.markForCheck()})}_getPath(G){return this._parent?function $r(K,N){return[...N.path,K]}(G,this._parent):[G]}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Nt,9),h.rXU(ge,10),h.rXU(Be,10),h.rXU(ct,10),h.rXU(h.gRc,8),h.rXU(Ar,8))},K.\u0275dir=h.FsC({type:K,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([No]),h.Vt3,h.OA$]}),N})();function br(K){return"number"==typeof K?K:parseFloat(K)}let wi=(()=>{var K;class N{constructor(){this._validator=H}ngOnChanges(G){if(this.inputName in G){const Ne=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(Ne),this._validator=this._enabled?this.createValidator(Ne):H,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275dir=h.FsC({type:K,features:[h.OA$]}),N})();const Ni={provide:ge,useExisting:(0,h.Rfq)(()=>ki),multi:!0};let ki=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>br(G),this.createValidator=G=>function Pt(K){return N=>{if(Ae(N.value)||Ae(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce>K?{max:{max:K,actual:N.value}}:null}}(G)}}return(K=N).\u0275fac=(()=>{let Ce;return function(Ne){return(Ce||(Ce=h.xGo(K)))(Ne||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,Ne){2&G&&h.BMQ("max",Ne._enabled?Ne.max:null)},inputs:{max:"max"},features:[h.Jv_([Ni]),h.Vt3]}),N})();const ho={provide:ge,useExisting:(0,h.Rfq)(()=>as),multi:!0};let as=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>br(G),this.createValidator=G=>function _t(K){return N=>{if(Ae(N.value)||Ae(K))return null;const Ce=parseFloat(N.value);return!isNaN(Ce)&&Ce{let Ce;return function(Ne){return(Ce||(Ce=h.xGo(K)))(Ne||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,Ne){2&G&&h.BMQ("min",Ne._enabled?Ne.min:null)},inputs:{min:"min"},features:[h.Jv_([ho]),h.Vt3]}),N})(),ls=(()=>{var K;class N{}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({}),N})(),ha=(()=>{var K;class N{static withConfig(G){var Ne;return{ngModule:N,providers:[{provide:Ar,useValue:null!==(Ne=G.callSetDisabledState)&&void 0!==Ne?Ne:dr}]}}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({imports:[ls]}),N})()},345:(Tn,gt,C)=>{"use strict";C.d(gt,{Bb:()=>nr,hE:()=>Jn,sG:()=>Kt,up:()=>Dr});var h=C(4438),c=C(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class xe extends Z{static makeCurrent(){(0,c.ZD)(new xe)}onAndCancel(rt,Mt,ut){return rt.addEventListener(Mt,ut),()=>{rt.removeEventListener(Mt,ut)}}dispatchEvent(rt,Mt){rt.dispatchEvent(Mt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Mt){return(Mt=Mt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Mt){return"window"===Mt?window:"document"===Mt?rt:"body"===Mt?rt.body:null}getBaseHref(rt){const Mt=function ue(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Mt?null:function oe(pe){return new URL(pe,document.baseURI).pathname}(Mt)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let U=null,Je=(()=>{var pe;class rt{build(){return new XMLHttpRequest}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const Se=new h.nKC("");let De=(()=>{var pe;class rt{constructor(ut,ce){this._zone=ce,this._eventNameToPlugin=new Map,ut.forEach(ye=>{ye.manager=this}),this._plugins=ut.slice().reverse()}addEventListener(ut,ce,ye){return this._findPluginFor(ce).addEventListener(ut,ce,ye)}getZone(){return this._zone}_findPluginFor(ut){let ce=this._eventNameToPlugin.get(ut);if(ce)return ce;if(ce=this._plugins.find(ze=>ze.supports(ut)),!ce)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(ut,ce),ce}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Se),h.KVO(h.SKi))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class Ye{constructor(rt){this._doc=rt}}const Ze="ng-app-id";let Xe=(()=>{var pe;class rt{constructor(ut,ce,ye,ze={}){this.doc=ut,this.appId=ce,this.nonce=ye,this.platformId=ze,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(ze),this.resetHostNodes()}addStyles(ut){for(const ce of ut)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ut){for(const ce of ut)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ut=this.styleNodesInDOM;ut&&(ut.forEach(ce=>ce.remove()),ut.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ut){this.hostNodes.add(ut);for(const ce of this.getAllStyles())this.addStyleToHost(ut,ce)}removeHost(ut){this.hostNodes.delete(ut)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ut){for(const ce of this.hostNodes)this.addStyleToHost(ce,ut)}onStyleRemoved(ut){var ce;const ye=this.styleRef;null===(ce=ye.get(ut))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(ze=>ze.remove()),ye.delete(ut)}collectServerRenderedStyles(){var ut;const ce=null===(ut=this.doc.head)||void 0===ut?void 0:ut.querySelectorAll(`style[${Ze}="${this.appId}"]`);if(null!=ce&&ce.length){const ye=new Map;return ce.forEach(ze=>{null!=ze.textContent&&ye.set(ze.textContent,ze)}),ye}return null}changeUsageCount(ut,ce){const ye=this.styleRef;if(ye.has(ut)){const ze=ye.get(ut);return ze.usage+=ce,ze.usage}return ye.set(ut,{usage:ce,elements:[]}),ce}getStyleElement(ut,ce){const ye=this.styleNodesInDOM,ze=null==ye?void 0:ye.get(ce);if((null==ze?void 0:ze.parentNode)===ut)return ye.delete(ce),ze.removeAttribute(Ze),ze;{const Lt=this.doc.createElement("style");return this.nonce&&Lt.setAttribute("nonce",this.nonce),Lt.textContent=ce,this.platformIsServer&&Lt.setAttribute(Ze,this.appId),ut.appendChild(Lt),Lt}}addStyleToHost(ut,ce){var ye;const ze=this.getStyleElement(ut,ce),Lt=this.styleRef,ie=null===(ye=Lt.get(ce))||void 0===ye?void 0:ye.elements;ie?ie.push(ze):Lt.set(ce,{elements:[ze],usage:1})}resetHostNodes(){const ut=this.hostNodes;ut.clear(),ut.add(this.doc.head)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const ct={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Dt=/%COMP%/g,mt=new h.nKC("",{providedIn:"root",factory:()=>!0});function ge(pe,rt){return rt.map(Mt=>Mt.replace(Dt,pe))}let Be=(()=>{var pe;class rt{constructor(ut,ce,ye,ze,Lt,ie,dt,lt=null){this.eventManager=ut,this.sharedStylesHost=ce,this.appId=ye,this.removeStylesOnCompDestroy=ze,this.doc=Lt,this.platformId=ie,this.ngZone=dt,this.nonce=lt,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ie),this.defaultRenderer=new ke(ut,Lt,dt,this.platformIsServer)}createRenderer(ut,ce){if(!ut||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===h.gXe.ShadowDom&&(ce={...ce,encapsulation:h.gXe.Emulated});const ye=this.getOrCreateRenderer(ut,ce);return ye instanceof tt?ye.applyToHost(ut):ye instanceof vt&&ye.applyStyles(),ye}getOrCreateRenderer(ut,ce){const ye=this.rendererByCompId;let ze=ye.get(ce.id);if(!ze){const Lt=this.doc,ie=this.ngZone,dt=this.eventManager,lt=this.sharedStylesHost,Wt=this.removeStylesOnCompDestroy,tn=this.platformIsServer;switch(ce.encapsulation){case h.gXe.Emulated:ze=new tt(dt,lt,ce,this.appId,Wt,Lt,ie,tn);break;case h.gXe.ShadowDom:return new mn(dt,lt,ut,ce,Lt,ie,this.nonce,tn);default:ze=new vt(dt,lt,ce,Wt,Lt,ie,tn)}ye.set(ce.id,ze)}return ze}ngOnDestroy(){this.rendererByCompId.clear()}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(De),h.KVO(Xe),h.KVO(h.sZ2),h.KVO(mt),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class ke{constructor(rt,Mt,ut,ce){this.eventManager=rt,this.doc=Mt,this.ngZone=ut,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Mt){return Mt?this.doc.createElementNS(ct[Mt]||Mt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Mt){(Pt(rt)?rt.content:rt).appendChild(Mt)}insertBefore(rt,Mt,ut){rt&&(Pt(rt)?rt.content:rt).insertBefore(Mt,ut)}removeChild(rt,Mt){rt&&rt.removeChild(Mt)}selectRootElement(rt,Mt){let ut="string"==typeof rt?this.doc.querySelector(rt):rt;if(!ut)throw new h.wOt(-5104,!1);return Mt||(ut.textContent=""),ut}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Mt,ut,ce){if(ce){Mt=ce+":"+Mt;const ye=ct[ce];ye?rt.setAttributeNS(ye,Mt,ut):rt.setAttribute(Mt,ut)}else rt.setAttribute(Mt,ut)}removeAttribute(rt,Mt,ut){if(ut){const ce=ct[ut];ce?rt.removeAttributeNS(ce,Mt):rt.removeAttribute(`${ut}:${Mt}`)}else rt.removeAttribute(Mt)}addClass(rt,Mt){rt.classList.add(Mt)}removeClass(rt,Mt){rt.classList.remove(Mt)}setStyle(rt,Mt,ut,ce){ce&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Mt,ut,ce&h.czy.Important?"important":""):rt.style[Mt]=ut}removeStyle(rt,Mt,ut){ut&h.czy.DashCase?rt.style.removeProperty(Mt):rt.style[Mt]=""}setProperty(rt,Mt,ut){null!=rt&&(rt[Mt]=ut)}setValue(rt,Mt){rt.nodeValue=Mt}listen(rt,Mt,ut){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Mt}`);return this.eventManager.addEventListener(rt,Mt,this.decoratePreventDefault(ut))}decoratePreventDefault(rt){return Mt=>{if("__ngUnwrap__"===Mt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Mt)):rt(Mt))&&Mt.preventDefault()}}}function Pt(pe){return"TEMPLATE"===pe.tagName&&void 0!==pe.content}class mn extends ke{constructor(rt,Mt,ut,ce,ye,ze,Lt,ie){super(rt,ye,ze,ie),this.sharedStylesHost=Mt,this.hostEl=ut,this.shadowRoot=ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dt=ge(ce.id,ce.styles);for(const lt of dt){const Wt=document.createElement("style");Lt&&Wt.setAttribute("nonce",Lt),Wt.textContent=lt,this.shadowRoot.appendChild(Wt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Mt){return super.appendChild(this.nodeOrShadowRoot(rt),Mt)}insertBefore(rt,Mt,ut){return super.insertBefore(this.nodeOrShadowRoot(rt),Mt,ut)}removeChild(rt,Mt){return super.removeChild(this.nodeOrShadowRoot(rt),Mt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class vt extends ke{constructor(rt,Mt,ut,ce,ye,ze,Lt,ie){super(rt,ye,ze,Lt),this.sharedStylesHost=Mt,this.removeStylesOnCompDestroy=ce,this.styles=ie?ge(ie,ut.styles):ut.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends vt{constructor(rt,Mt,ut,ce,ye,ze,Lt,ie){const dt=ce+"-"+ut.id;super(rt,Mt,ut,ye,ze,Lt,ie,dt),this.contentAttr=function Ae(pe){return"_ngcontent-%COMP%".replace(Dt,pe)}(dt),this.hostAttr=function Qe(pe){return"_nghost-%COMP%".replace(Dt,pe)}(dt)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Mt){const ut=super.createElement(rt,Mt);return super.setAttribute(ut,this.contentAttr,""),ut}}let on=(()=>{var pe;class rt extends Ye{constructor(ut){super(ut)}supports(ut){return!0}addEventListener(ut,ce,ye){return ut.addEventListener(ce,ye,!1),()=>this.removeEventListener(ut,ce,ye)}removeEventListener(ut,ce,ye){return ut.removeEventListener(ce,ye)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const ht=["alt","control","meta","shift"],we={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},H={alt:pe=>pe.altKey,control:pe=>pe.ctrlKey,meta:pe=>pe.metaKey,shift:pe=>pe.shiftKey};let X=(()=>{var pe;class rt extends Ye{constructor(ut){super(ut)}supports(ut){return null!=rt.parseEventName(ut)}addEventListener(ut,ce,ye){const ze=rt.parseEventName(ce),Lt=rt.eventCallback(ze.fullKey,ye,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ut,ze.domEventName,Lt))}static parseEventName(ut){const ce=ut.toLowerCase().split("."),ye=ce.shift();if(0===ce.length||"keydown"!==ye&&"keyup"!==ye)return null;const ze=rt._normalizeKey(ce.pop());let Lt="",ie=ce.indexOf("code");if(ie>-1&&(ce.splice(ie,1),Lt="code."),ht.forEach(lt=>{const Wt=ce.indexOf(lt);Wt>-1&&(ce.splice(Wt,1),Lt+=lt+".")}),Lt+=ze,0!=ce.length||0===ze.length)return null;const dt={};return dt.domEventName=ye,dt.fullKey=Lt,dt}static matchEventFullKeyCode(ut,ce){let ye=we[ut.key]||ut.key,ze="";return ce.indexOf("code.")>-1&&(ye=ut.code,ze="code."),!(null==ye||!ye)&&(ye=ye.toLowerCase()," "===ye?ye="space":"."===ye&&(ye="dot"),ht.forEach(Lt=>{Lt!==ye&&(0,H[Lt])(ut)&&(ze+=Lt+".")}),ze+=ye,ze===ce)}static eventCallback(ut,ce,ye){return ze=>{rt.matchEventFullKeyCode(ze,ut)&&ye.runGuarded(()=>ce(ze))}}static _normalizeKey(ut){return"esc"===ut?"escape":ut}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const Kt=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function it(){xe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function Sn(){return(0,h.TL$)(document),document},deps:[]}]),En=new h.nKC(""),On=[{provide:h.e01,useClass:class Ke{addToWindow(rt){h.JZv.getAngularTestability=(ut,ce=!0)=>{const ye=rt.findTestabilityInTree(ut,ce);if(null==ye)throw new h.wOt(5103,!1);return ye},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(ut=>{const ce=h.JZv.getAllAngularTestabilities();let ye=ce.length;const ze=function(){ye--,0==ye&&ut()};ce.forEach(Lt=>{Lt.whenStable(ze)})})}findTestabilityInTree(rt,Mt,ut){if(null==Mt)return null;const ce=rt.getTestability(Mt);return null!=ce?ce:ut?(0,c.QT)().isShadowRoot(Mt)?this.findTestabilityInTree(rt,Mt.host,!0):this.findTestabilityInTree(rt,Mt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],Qn=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function sn(){return new h.zcH},deps:[]},{provide:Se,useClass:on,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},Be,Xe,De,{provide:h._9s,useExisting:Be},{provide:c.N0,useClass:Je,deps:[]},[]];let nr=(()=>{var pe;class rt{constructor(ut){}static withServerTransition(ut){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:ut.appId}]}}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(En,12))},pe.\u0275mod=h.$C({type:pe}),pe.\u0275inj=h.G2t({providers:[...Qn,...On],imports:[c.MD,h.Hbi]}),rt})(),Jn=(()=>{var pe;class rt{constructor(ut){this._doc=ut}getTitle(){return this._doc.title}setTitle(ut){this._doc.title=ut||""}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})(),Dr=(()=>{var pe;class rt{}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:function(ut){let ce=null;return ce=ut?new(ut||pe):h.KVO(tr),ce},providedIn:"root"}),rt})(),tr=(()=>{var pe;class rt extends Dr{constructor(ut){super(),this._doc=ut}sanitize(ut,ce){if(null==ce)return null;switch(ut){case h.WPN.NONE:return ce;case h.WPN.HTML:return(0,h.ZF7)(ce,"HTML")?(0,h.rcV)(ce):(0,h.h9k)(this._doc,String(ce)).toString();case h.WPN.STYLE:return(0,h.ZF7)(ce,"Style")?(0,h.rcV)(ce):ce;case h.WPN.SCRIPT:if((0,h.ZF7)(ce,"Script"))return(0,h.rcV)(ce);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(ce,"URL")?(0,h.rcV)(ce):(0,h.$MX)(String(ce));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(ce,"ResourceURL"))return(0,h.rcV)(ce);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(ut){return(0,h.Kcf)(ut)}bypassSecurityTrustStyle(ut){return(0,h.cWb)(ut)}bypassSecurityTrustScript(ut){return(0,h.UyX)(ut)}bypassSecurityTrustUrl(ut){return(0,h.osQ)(ut)}bypassSecurityTrustResourceUrl(ut){return(0,h.e5t)(ut)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})()},7650:(Tn,gt,C)=>{"use strict";C.d(gt,{nX:()=>Ee,Zp:()=>Le,wF:()=>zr,Z:()=>Or,Xk:()=>Kt,Kp:()=>Ki,b:()=>wn,Ix:()=>Xn,Wk:()=>Si,iI:()=>ds,Sd:()=>ur});var h=C(467),c=C(4438),Z=C(4402),xe=C(8455),U=C(7673),ue=C(4412),oe=C(4572),Ke=C(9350),Je=C(8793),Se=C(1985),De=C(8750);function Ye(E){return new Se.c(b=>{(0,De.Tg)(E()).subscribe(b)})}var Ze=C(1203),Xe=C(8071);function ct(E,b){const O=(0,Xe.T)(E)?E:()=>E,T=L=>L.error(O());return new Se.c(b?L=>b.schedule(T,0,L):T)}var Dt=C(983),Rt=C(8359),It=C(9974),Vt=C(4360);function Et(){return(0,It.N)((E,b)=>{let O=null;E._refCount++;const T=(0,Vt._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(O=null);const L=E._connection,ae=O;O=null,L&&(!ae||L===ae)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(T),T.closed||(O=E.connect())})}class mt extends Se.c{constructor(b,O){super(),this.source=b,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,It.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new Rt.yU;const O=this.getSubject();b.add(this.source.subscribe((0,Vt._)(O,void 0,()=>{this._teardown(),O.complete()},T=>{this._teardown(),O.error(T)},()=>this._teardown()))),b.closed&&(this._connection=null,b=Rt.yU.EMPTY)}return b}refCount(){return Et()(this)}}var Ae=C(1413),Qe=C(177),ge=C(6354),Be=C(5558),ke=C(6697),Pe=C(9172),_t=C(5964),Pt=C(1397),mn=C(1594),vt=C(274),tt=C(8141);function on(E){return(0,It.N)((b,O)=>{let ae,T=null,L=!1;T=b.subscribe((0,Vt._)(O,void 0,void 0,Re=>{ae=(0,De.Tg)(E(Re,on(E)(b))),T?(T.unsubscribe(),T=null,ae.subscribe(O)):L=!0})),L&&(T.unsubscribe(),T=null,ae.subscribe(O))})}var H=C(9901);function X(E){return E<=0?()=>Dt.w:(0,It.N)((b,O)=>{let T=[];b.subscribe((0,Vt._)(O,L=>{T.push(L),E{for(const L of T)O.next(L);O.complete()},void 0,()=>{T=null}))})}var fe=C(3774),se=C(3669),Fe=C(3703),it=C(980),sn=C(6977),Sn=C(6365),qe=C(345);const Kt="primary",En=Symbol("RouteTitle");class On{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O[0]:O}return null}getAll(b){if(this.has(b)){const O=this.params[b];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function Qn(E){return new On(E)}function nr(E,b,O){const T=O.path.split("/");if(T.length>E.length||"full"===O.pathMatch&&(b.hasChildren()||T.lengthT[ae]===L)}return E===b}function Nt(E){return E.length>0?E[E.length-1]:null}function Ht(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,xe.H)(Promise.resolve(E)):(0,U.of)(E)}const fn={exact:function Nn(E,b,O){if(!Jr(E.segments,b.segments)||!Ir(E.segments,b.segments,O)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const T in b.children)if(!E.children[T]||!Nn(E.children[T],b.children[T],O))return!1;return!0},subset:en},pn={exact:function Pn(E,b){return rr(E,b)},subset:function gn(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(O=>nt(E[O],b[O]))},ignored:()=>!0};function Sr(E,b,O){return fn[O.paths](E.root,b.root,O.matrixParams)&&pn[O.queryParams](E.queryParams,b.queryParams)&&!("exact"===O.fragment&&E.fragment!==b.fragment)}function en(E,b,O){return Er(E,b,b.segments,O)}function Er(E,b,O,T){if(E.segments.length>O.length){const L=E.segments.slice(0,O.length);return!(!Jr(L,O)||b.hasChildren()||!Ir(L,O,T))}if(E.segments.length===O.length){if(!Jr(E.segments,O)||!Ir(E.segments,O,T))return!1;for(const L in b.children)if(!E.children[L]||!en(E.children[L],b.children[L],T))return!1;return!0}{const L=O.slice(0,E.segments.length),ae=O.slice(E.segments.length);return!!(Jr(E.segments,L)&&Ir(E.segments,L,T)&&E.children[Kt])&&Er(E.children[Kt],b,ae,T)}}function Ir(E,b,O){return b.every((T,L)=>pn[O](E[L].parameters,T.parameters))}class Nr{constructor(b=new Zn([],{}),O={},T=null){this.root=b,this.queryParams=O,this.fragment=T}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=Qn(this.queryParams)),this._queryParamMap}toString(){return cr.serialize(this)}}class Zn{constructor(b,O){this.segments=b,this.children=O,this.parent=null,Object.values(O).forEach(T=>T.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class Dr{constructor(b,O){this.path=b,this.parameters=O}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=Qn(this.parameters)),this._parameterMap}toString(){return ce(this)}}function Jr(E,b){return E.length===b.length&&E.every((O,T)=>O.path===b[T].path)}let ur=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Pr,providedIn:"root"}),b})();class Pr{parse(b){const O=new dn(b);return new Nr(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(b){const O=`/${ii(b.root,!0)}`,T=function ze(E){const b=Object.entries(E).map(([O,T])=>Array.isArray(T)?T.map(L=>`${Qr(O)}=${Qr(L)}`).join("&"):`${Qr(O)}=${Qr(T)}`).filter(O=>O);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${O}${T}${"string"==typeof b.fragment?`#${function pe(E){return encodeURI(E)}(b.fragment)}`:""}`}}const cr=new Pr;function kr(E){return E.segments.map(b=>ce(b)).join("/")}function ii(E,b){if(!E.hasChildren())return kr(E);if(b){const O=E.children[Kt]?ii(E.children[Kt],!1):"",T=[];return Object.entries(E.children).forEach(([L,ae])=>{L!==Kt&&T.push(`${L}:${ii(ae,!1)}`)}),T.length>0?`${O}(${T.join("//")})`:O}{const O=function mr(E,b){let O=[];return Object.entries(E.children).forEach(([T,L])=>{T===Kt&&(O=O.concat(b(L,T)))}),Object.entries(E.children).forEach(([T,L])=>{T!==Kt&&(O=O.concat(b(L,T)))}),O}(E,(T,L)=>L===Kt?[ii(E.children[Kt],!1)]:[`${L}:${ii(T,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Kt]?`${kr(E)}/${O[0]}`:`${kr(E)}/(${O.join("//")})`}}function Ai(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(E){return Ai(E).replace(/%3B/gi,";")}function rt(E){return Ai(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(E){return decodeURIComponent(E)}function ut(E){return Mt(E.replace(/\+/g,"%20"))}function ce(E){return`${rt(E.path)}${function ye(E){return Object.entries(E).map(([b,O])=>`;${rt(b)}=${rt(O)}`).join("")}(E.parameters)}`}const Lt=/^[^\/()?;#]+/;function ie(E){const b=E.match(Lt);return b?b[0]:""}const dt=/^[^\/()?;=#]+/,Wt=/^[^=?&#]+/,vn=/^[^&#]+/;class dn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zn([],{}):new Zn([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let T={};return this.peekStartsWith("(")&&(T=this.parseParens(!1)),(b.length>0||Object.keys(O).length>0)&&(T[Kt]=new Zn(b,O)),T}parseSegment(){const b=ie(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Dr(Mt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const O=function lt(E){const b=E.match(dt);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const L=ie(this.remaining);L&&(T=L,this.capture(T))}b[Mt(O)]=Mt(T)}parseQueryParam(b){const O=function tn(E){const b=E.match(Wt);return b?b[0]:""}(this.remaining);if(!O)return;this.capture(O);let T="";if(this.consumeOptional("=")){const Re=function Yn(E){const b=E.match(vn);return b?b[0]:""}(this.remaining);Re&&(T=Re,this.capture(T))}const L=ut(O),ae=ut(T);if(b.hasOwnProperty(L)){let Re=b[L];Array.isArray(Re)||(Re=[Re],b[L]=Re),Re.push(ae)}else b[L]=ae}parseParens(b){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const T=ie(this.remaining),L=this.remaining[T.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let ae;T.indexOf(":")>-1?(ae=T.slice(0,T.indexOf(":")),this.capture(ae),this.capture(":")):b&&(ae=Kt);const Re=this.parseChildren();O[ae]=1===Object.keys(Re).length?Re[Kt]:new Zn([],Re),this.consumeOptional("//")}return O}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function Cn(E){return E.segments.length>0?new Zn([],{[Kt]:E}):E}function ir(E){const b={};for(const[T,L]of Object.entries(E.children)){const ae=ir(L);if(T===Kt&&0===ae.segments.length&&ae.hasChildren())for(const[Re,xt]of Object.entries(ae.children))b[Re]=xt;else(ae.segments.length>0||ae.hasChildren())&&(b[T]=ae)}return function Ar(E){if(1===E.numberOfChildren&&E.children[Kt]){const b=E.children[Kt];return new Zn(E.segments.concat(b.segments),b.children)}return E}(new Zn(E.segments,b))}function dr(E){return E instanceof Nr}function Zr(E){var b;let O;const ae=Cn(function T(Re){const xt={};for(const Ut of Re.children){const Un=T(Ut);xt[Ut.outlet]=Un}const hn=new Zn(Re.url,xt);return Re===E&&(O=hn),hn}(E.root));return null!==(b=O)&&void 0!==b?b:ae}function fr(E,b,O,T){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return pr(L,L,L,O,T);const ae=function ee(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ne(!0,0,E);let b=0,O=!1;const T=E.reduce((L,ae,Re)=>{if("object"==typeof ae&&null!=ae){if(ae.outlets){const xt={};return Object.entries(ae.outlets).forEach(([hn,Ut])=>{xt[hn]="string"==typeof Ut?Ut.split("/"):Ut}),[...L,{outlets:xt}]}if(ae.segmentPath)return[...L,ae.segmentPath]}return"string"!=typeof ae?[...L,ae]:0===Re?(ae.split("/").forEach((xt,hn)=>{0==hn&&"."===xt||(0==hn&&""===xt?O=!0:".."===xt?b++:""!=xt&&L.push(xt))}),L):[...L,ae]},[]);return new ne(O,b,T)}(b);if(ae.toRoot())return pr(L,L,new Zn([],{}),O,T);const Re=function M(E,b,O){if(E.isAbsolute)return new $e(b,!0,0);if(!O)return new $e(b,!1,NaN);if(null===O.parent)return new $e(O,!0,0);const T=Ri(E.commands[0])?0:1;return function x(E,b,O){let T=E,L=b,ae=O;for(;ae>L;){if(ae-=L,T=T.parent,!T)throw new c.wOt(4005,!1);L=T.segments.length}return new $e(T,!1,L-ae)}(O,O.segments.length-1+T,E.numberOfDoubleDots)}(ae,L,E),xt=Re.processChildren?He(Re.segmentGroup,Re.index,ae.commands):Te(Re.segmentGroup,Re.index,ae.commands);return pr(L,Re.segmentGroup,xt,O,T)}function Ri(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function gi(E){return"object"==typeof E&&null!=E&&E.outlets}function pr(E,b,O,T,L){let Re,ae={};T&&Object.entries(T).forEach(([hn,Ut])=>{ae[hn]=Array.isArray(Ut)?Ut.map(Un=>`${Un}`):`${Ut}`}),Re=E===b?O:$t(E,b,O);const xt=Cn(ir(Re));return new Nr(xt,ae,L)}function $t(E,b,O){const T={};return Object.entries(E.children).forEach(([L,ae])=>{T[L]=ae===b?O:$t(ae,b,O)}),new Zn(E.segments,T)}class ne{constructor(b,O,T){if(this.isAbsolute=b,this.numberOfDoubleDots=O,this.commands=T,b&&T.length>0&&Ri(T[0]))throw new c.wOt(4003,!1);const L=T.find(gi);if(L&&L!==Nt(T))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $e{constructor(b,O,T){this.segmentGroup=b,this.processChildren=O,this.index=T}}function Te(E,b,O){var T;if(null!==(T=E)&&void 0!==T||(E=new Zn([],{})),0===E.segments.length&&E.hasChildren())return He(E,b,O);const L=function Tt(E,b,O){let T=0,L=b;const ae={match:!1,pathIndex:0,commandIndex:0};for(;L=O.length)return ae;const Re=E.segments[L],xt=O[T];if(gi(xt))break;const hn=`${xt}`,Ut=T0&&void 0===hn)break;if(hn&&Ut&&"object"==typeof Ut&&void 0===Ut.outlets){if(!$n(hn,Ut,Re))return ae;T+=2}else{if(!$n(hn,{},Re))return ae;T++}L++}return{match:!0,pathIndex:L,commandIndex:T}}(E,b,O),ae=O.slice(L.commandIndex);if(L.match&&L.pathIndexae!==Kt)&&E.children[Kt]&&1===E.numberOfChildren&&0===E.children[Kt].segments.length){const ae=He(E.children[Kt],b,O);return new Zn(E.segments,ae.children)}return Object.entries(T).forEach(([ae,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(L[ae]=Te(E.children[ae],b,Re))}),Object.entries(E.children).forEach(([ae,Re])=>{void 0===T[ae]&&(L[ae]=Re)}),new Zn(E.segments,L)}}function Jt(E,b,O){const T=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof T&&(T=[T]),null!==T&&(b[O]=Jt(new Zn([],{}),0,T))}),b}function or(E){const b={};return Object.entries(E).forEach(([O,T])=>b[O]=`${T}`),b}function $n(E,b,O){return E==O.path&&rr(b,O.parameters)}const xr="imperative";var kn=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(kn||{});class Fr{constructor(b,O){this.id=b,this.url=O}}class Or extends Fr{constructor(b,O,T="imperative",L=null){super(b,O),this.type=kn.NavigationStart,this.navigationTrigger=T,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends Fr{constructor(b,O,T){super(b,O),this.urlAfterRedirects=T,this.type=kn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Tr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Tr||{}),Wn=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(Wn||{});class Cr extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=kn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Fr{constructor(b,O,T,L){super(b,O),this.reason=T,this.code=L,this.type=kn.NavigationSkipped}}class li extends Fr{constructor(b,O,T,L){super(b,O),this.error=T,this.target=L,this.type=kn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ei extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=kn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=kn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends Fr{constructor(b,O,T,L,ae){super(b,O),this.urlAfterRedirects=T,this.state=L,this.shouldActivate=ae,this.type=kn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=kn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends Fr{constructor(b,O,T,L){super(b,O),this.urlAfterRedirects=T,this.state=L,this.type=kn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao{constructor(b){this.route=b,this.type=kn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ui{constructor(b){this.route=b,this.type=kn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(b){this.snapshot=b,this.type=kn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(b){this.snapshot=b,this.type=kn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class No{constructor(b){this.snapshot=b,this.type=kn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(b){this.snapshot=b,this.type=kn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wt{constructor(b,O,T){this.routerEvent=b,this.position=O,this.anchor=T,this.type=kn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}class le{constructor(b){this.url=b}}class Ue{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Le,this.attachRef=null}}let Le=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(T,L){const ae=this.getOrCreateContext(T);ae.outlet=L,this.contexts.set(T,ae)}onChildOutletDestroyed(T){const L=this.getContext(T);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const T=this.contexts;return this.contexts=new Map,T}onOutletReAttached(T){this.contexts=T}getOrCreateContext(T){let L=this.getContext(T);return L||(L=new Ue,this.contexts.set(T,L)),L}getContext(T){return this.contexts.get(T)||null}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class st{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const O=this.pathFromRoot(b);return O.length>1?O[O.length-2]:null}children(b){const O=zt(b,this._root);return O?O.children.map(T=>T.value):[]}firstChild(b){const O=zt(b,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(b){const O=In(b,this._root);return O.length<2?[]:O[O.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return In(b,this._root).map(O=>O.value)}}function zt(E,b){if(E===b.value)return b;for(const O of b.children){const T=zt(E,O);if(T)return T}return null}function In(E,b){if(E===b.value)return[b];for(const O of b.children){const T=In(E,O);if(T.length)return T.unshift(b),T}return[]}class Vn{constructor(b,O){this.value=b,this.children=O}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(O=>b[O.value.outlet]=O),b}class j extends st{constructor(b,O){super(b),this.snapshot=O,z(this,b)}toString(){return this.snapshot.toString()}}function re(E){const b=function P(E){const ae=new sr([],{},{},"",{},Kt,E,null,{});return new ni("",new Vn(ae,[]))}(E),O=new ue.t([new Dr("",{})]),T=new ue.t({}),L=new ue.t({}),ae=new ue.t({}),Re=new ue.t(""),xt=new Ee(O,T,ae,Re,L,Kt,E,b.root);return xt.snapshot=b.root,new j(new Vn(xt,[]),b)}class Ee{constructor(b,O,T,L,ae,Re,xt,hn){var Ut,Un;this.urlSubject=b,this.paramsSubject=O,this.queryParamsSubject=T,this.fragmentSubject=L,this.dataSubject=ae,this.outlet=Re,this.component=xt,this._futureSnapshot=hn,this.title=null!==(Ut=null===(Un=this.dataSubject)||void 0===Un?void 0:Un.pipe((0,ge.T)(Vr=>Vr[En])))&&void 0!==Ut?Ut:(0,U.of)(void 0),this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,ge.T)(O=>Qn(O)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,ge.T)(O=>Qn(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ot(E,b,O="emptyOnly"){var T;let L;const{routeConfig:ae}=E;var Re;return L=null===b||"always"!==O&&""!==(null==ae?void 0:ae.path)&&(b.component||null!==(T=b.routeConfig)&&void 0!==T&&T.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(Re=E._resolvedData)&&void 0!==Re?Re:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==ae?void 0:ae.data,...E._resolvedData}},ae&&St(ae)&&(L.resolve[En]=ae.title),L}class sr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[En]}constructor(b,O,T,L,ae,Re,xt,hn,Ut){this.url=b,this.params=O,this.queryParams=T,this.fragment=L,this.data=ae,this.outlet=Re,this.component=xt,this.routeConfig=hn,this._resolve=Ut}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=Qn(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=Qn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(T=>T.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends st{constructor(b,O){super(O),this.url=b,z(this,O)}toString(){return me(this._root)}}function z(E,b){b.value._routerState=E,b.children.forEach(O=>z(E,O))}function me(E){const b=E.children.length>0?` { ${E.children.map(me).join(", ")} } `:"";return`${E.value}${b}`}function Oe(E){if(E.snapshot){const b=E.snapshot,O=E._futureSnapshot;E.snapshot=O,rr(b.queryParams,O.queryParams)||E.queryParamsSubject.next(O.queryParams),b.fragment!==O.fragment&&E.fragmentSubject.next(O.fragment),rr(b.params,O.params)||E.paramsSubject.next(O.params),function vr(E,b){if(E.length!==b.length)return!1;for(let O=0;Orr(O.parameters,b[T].parameters))}(E.url,b.url);return O&&!(!E.parent!=!b.parent)&&(!E.parent||et(E.parent,b.parent))}function St(E){return"string"==typeof E.title||null===E.title}let At=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=Kt,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Le),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(rn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(T){if(T.name){const{firstChange:L,previousValue:ae}=T.name;if(L)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){var T;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(T=this.inputBinder)||void 0===T||T.unsubscribeFromRouteData(this)}isTrackedInParentContexts(T){var L;return(null===(L=this.parentContexts.getContext(T))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const T=this.parentContexts.getContext(this.name);null!=T&&T.route&&(T.attachRef?this.attach(T.attachRef,T.route):this.activateWith(T.route,T.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const T=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(T.instance),T}attach(T,L){var ae;this.activated=T,this._activatedRoute=L,this.location.insert(T.hostView),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(T.instance)}deactivate(){if(this.activated){const T=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(T)}}activateWith(T,L){var ae;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=T;const Re=this.location,hn=T.snapshot.component,Ut=this.parentContexts.getOrCreateContext(this.name).children,Un=new Yt(T,Ut,Re.injector);this.activated=Re.createComponent(hn,{index:Re.length,injector:Un,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class Yt{__ngOutletInjector(b){return new Yt(this.route,this.childContexts,b)}constructor(b,O,T){this.route=b,this.childContexts=O,this.parent=T}get(b,O){return b===Ee?this.route:b===Le?this.childContexts:this.parent.get(b,O)}}const rn=new c.nKC("");let cn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(T){this.unsubscribeFromRouteData(T),this.subscribeToRouteData(T)}unsubscribeFromRouteData(T){var L;null===(L=this.outletDataSubscriptions.get(T))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(T)}subscribeToRouteData(T){const{activatedRoute:L}=T,ae=(0,oe.z)([L.queryParams,L.params,L.data]).pipe((0,Be.n)(([Re,xt,hn],Ut)=>(hn={...Re,...xt,...hn},0===Ut?(0,U.of)(hn):Promise.resolve(hn)))).subscribe(Re=>{if(!T.isActivated||!T.activatedComponentRef||T.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(T);const xt=(0,c.HJs)(L.component);if(xt)for(const{templateName:hn}of xt.inputs)T.activatedComponentRef.setInput(hn,Re[hn]);else this.unsubscribeFromRouteData(T)});this.outletDataSubscriptions.set(T,ae)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Fn(E,b,O){if(O&&E.shouldReuseRoute(b.value,O.value.snapshot)){const T=O.value;T._futureSnapshot=b.value;const L=function zn(E,b,O){return b.children.map(T=>{for(const L of O.children)if(E.shouldReuseRoute(T.value,L.value.snapshot))return Fn(E,T,L);return Fn(E,T)})}(E,b,O);return new Vn(T,L)}{if(E.shouldAttach(b.value)){const ae=E.retrieve(b.value);if(null!==ae){const Re=ae.route;return Re.value._futureSnapshot=b.value,Re.children=b.children.map(xt=>Fn(E,xt)),Re}}const T=function lr(E){return new Ee(new ue.t(E.url),new ue.t(E.params),new ue.t(E.queryParams),new ue.t(E.fragment),new ue.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(ae=>Fn(E,ae));return new Vn(T,L)}}const Bn="ngNavigationCancelingError";function qr(E,b){const{redirectTo:O,navigationBehaviorOptions:T}=dr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=jr(!1,Tr.Redirect);return L.url=O,L.navigationBehaviorOptions=T,L}function jr(E,b){const O=new Error(`NavigationCancelingError: ${E||""}`);return O[Bn]=!0,O.cancellationCode=b,O}function wi(E){return!!E&&E[Bn]}let Ni=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(T,L){1&T&&c.nrm(0,"router-outlet")},dependencies:[At],encapsulation:2}),b})();function Ss(E){const b=E.children&&E.children.map(Ss),O=b?{...E,children:b}:{...E};return!O.component&&!O.loadComponent&&(b||O.loadChildren)&&O.outlet&&O.outlet!==Kt&&(O.component=Ni),O}function no(E){return E.outlet||Kt}function Kr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const T=O.routeConfig;if(null!=T&&T._loadedInjector)return T._loadedInjector;if(null!=T&&T._injector)return T._injector}return null}class Rs{constructor(b,O,T,L,ae){this.routeReuseStrategy=b,this.futureState=O,this.currState=T,this.forwardEvent=L,this.inputBindingEnabled=ae}activate(b){const O=this.futureState._root,T=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,T,b),Oe(this.futureState.root),this.activateChildRoutes(O,T,b)}deactivateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{const Re=ae.value.outlet;this.deactivateRoutes(ae,L[Re],T),delete L[Re]}),Object.values(L).forEach(ae=>{this.deactivateRouteAndItsChildren(ae,T)})}deactivateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(L===ae)if(L.component){const Re=T.getContext(L.outlet);Re&&this.deactivateChildRoutes(b,O,Re.children)}else this.deactivateChildRoutes(b,O,T);else ae&&this.deactivateRouteAndItsChildren(O,T)}deactivateRouteAndItsChildren(b,O){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,O):this.deactivateRouteAndOutlet(b,O)}detachAndStoreRouteSubtree(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);if(T&&T.outlet){const Re=T.outlet.detach(),xt=T.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:Re,route:b,contexts:xt})}}deactivateRouteAndOutlet(b,O){const T=O.getContext(b.value.outlet),L=T&&b.value.component?T.children:O,ae=w(b);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);T&&(T.outlet&&(T.outlet.deactivate(),T.children.onOutletDeactivated()),T.attachRef=null,T.route=null)}activateChildRoutes(b,O,T){const L=w(O);b.children.forEach(ae=>{this.activateRoutes(ae,L[ae.value.outlet],T),this.forwardEvent(new oi(ae.value.snapshot))}),b.children.length&&this.forwardEvent(new Eo(b.value.snapshot))}activateRoutes(b,O,T){const L=b.value,ae=O?O.value:null;if(Oe(L),L===ae)if(L.component){const Re=T.getOrCreateContext(L.outlet);this.activateChildRoutes(b,O,Re.children)}else this.activateChildRoutes(b,O,T);else if(L.component){const Re=T.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const xt=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Re.children.onOutletReAttached(xt.contexts),Re.attachRef=xt.componentRef,Re.route=xt.route.value,Re.outlet&&Re.outlet.attach(xt.componentRef,xt.route.value),Oe(xt.route.value),this.activateChildRoutes(b,null,Re.children)}else{const xt=Kr(L.snapshot);Re.attachRef=null,Re.route=L,Re.injector=xt,Re.outlet&&Re.outlet.activateWith(L,Re.injector),this.activateChildRoutes(b,null,Re.children)}}else this.activateChildRoutes(b,null,T)}}class Hs{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Ms{constructor(b,O){this.component=b,this.route=O}}function ls(E,b,O){const T=E._root;return vs(T,b?b._root:null,O,[T.value])}function Uo(E,b){const O=Symbol(),T=b.get(E,O);return T===O?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:T}function vs(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=w(b);return E.children.forEach(Re=>{(function Ps(E,b,O,T,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=E.value,Re=b?b.value:null,xt=O?O.getContext(E.value.outlet):null;if(Re&&ae.routeConfig===Re.routeConfig){const hn=function xs(E,b,O){if("function"==typeof O)return O(E,b);switch(O){case"pathParamsChange":return!Jr(E.url,b.url);case"pathParamsOrQueryParamsChange":return!Jr(E.url,b.url)||!rr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!et(E,b)||!rr(E.queryParams,b.queryParams);default:return!et(E,b)}}(Re,ae,ae.routeConfig.runGuardsAndResolvers);hn?L.canActivateChecks.push(new Hs(T)):(ae.data=Re.data,ae._resolvedData=Re._resolvedData),vs(E,b,ae.component?xt?xt.children:null:O,T,L),hn&&xt&&xt.outlet&&xt.outlet.isActivated&&L.canDeactivateChecks.push(new Ms(xt.outlet.component,Re))}else Re&&Ao(b,xt,L),L.canActivateChecks.push(new Hs(T)),vs(E,null,ae.component?xt?xt.children:null:O,T,L)})(Re,ae[Re.value.outlet],O,T.concat([Re.value]),L),delete ae[Re.value.outlet]}),Object.entries(ae).forEach(([Re,xt])=>Ao(xt,O.getContext(Re),L)),L}function Ao(E,b,O){const T=w(E),L=E.value;Object.entries(T).forEach(([ae,Re])=>{Ao(Re,L.component?b?b.children.getContext(ae):null:b,O)}),O.canDeactivateChecks.push(new Ms(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function Fo(E){return"function"==typeof E}function G(E){return E instanceof Ke.G||"EmptyError"===(null==E?void 0:E.name)}const Ne=Symbol("INITIAL_VALUE");function _n(){return(0,Be.n)(E=>(0,oe.z)(E.map(b=>b.pipe((0,ke.s)(1),(0,Pe.Z)(Ne)))).pipe((0,ge.T)(b=>{for(const O of b)if(!0!==O){if(O===Ne)return Ne;if(!1===O||O instanceof Nr)return O}return!0}),(0,_t.p)(b=>b!==Ne),(0,ke.s)(1)))}function fa(E){return(0,Ze.F)((0,tt.M)(b=>{if(dr(b))throw qr(0,b)}),(0,ge.T)(b=>!0===b))}class pa{constructor(b){this.segmentGroup=b||null}}class $o extends Error{constructor(b){super(),this.urlTree=b}}function Jo(E){return ct(new pa(E))}class po{constructor(b,O){this.urlSerializer=b,this.urlTree=O}lineralizeSegments(b,O){let T=[],L=O.root;for(;;){if(T=T.concat(L.segments),0===L.numberOfChildren)return(0,U.of)(T);if(L.numberOfChildren>1||!L.children[Kt])return ct(new c.wOt(4e3,!1));L=L.children[Kt]}}applyRedirectCommands(b,O,T){const L=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),b,T);if(O.startsWith("/"))throw new $o(L);return L}applyRedirectCreateUrlTree(b,O,T,L){const ae=this.createSegmentGroup(b,O.root,T,L);return new Nr(ae,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(b,O){const T={};return Object.entries(b).forEach(([L,ae])=>{if("string"==typeof ae&&ae.startsWith(":")){const xt=ae.substring(1);T[L]=O[xt]}else T[L]=ae}),T}createSegmentGroup(b,O,T,L){const ae=this.createSegments(b,O.segments,T,L);let Re={};return Object.entries(O.children).forEach(([xt,hn])=>{Re[xt]=this.createSegmentGroup(b,hn,T,L)}),new Zn(ae,Re)}createSegments(b,O,T,L){return O.map(ae=>ae.path.startsWith(":")?this.findPosParam(b,ae,L):this.findOrReturn(ae,T))}findPosParam(b,O,T){const L=T[O.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,O){let T=0;for(const L of O){if(L.path===b.path)return O.splice(T),L;T++}return b}}const bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(E,b,O,T,L){const ae=jo(E,b,O);return ae.matched?(T=function ki(E,b){var O;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(O=E._injector)&&void 0!==O?O:b}(b,T),function ul(E,b,O,T){const L=b.canMatch;if(!L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const xt=Uo(Re,E);return Ht(function Ce(E){return E&&Fo(E.canMatch)}(xt)?xt.canMatch(b,O):(0,c.N4e)(E,()=>xt(b,O)))});return(0,U.of)(ae).pipe(_n(),fa())}(T,b,O).pipe((0,ge.T)(Re=>!0===Re?ae:{...bi}))):(0,U.of)(ae)}function jo(E,b,O){var T,L;if("**"===b.path)return function ys(E){return{matched:!0,parameters:E.length>0?Nt(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(O);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||O.length>0)?{...bi}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Re=(b.matcher||nr)(O,E,b);if(!Re)return{...bi};const xt={};Object.entries(null!==(T=Re.posParams)&&void 0!==T?T:{}).forEach(([Ut,Un])=>{xt[Ut]=Un.path});const hn=Re.consumed.length>0?{...xt,...Re.consumed[Re.consumed.length-1].parameters}:xt;return{matched:!0,consumedSegments:Re.consumed,remainingSegments:O.slice(Re.consumed.length),parameters:hn,positionalParamSegments:null!==(L=Re.posParams)&&void 0!==L?L:{}}}function cl(E,b,O,T){return O.length>0&&function Ws(E,b,O){return O.some(T=>Es(E,b,T)&&no(T)!==Kt)}(E,O,T)?{segmentGroup:new Zn(b,dl(T,new Zn(O,E.children))),slicedSegments:[]}:0===O.length&&function Va(E,b,O){return O.some(T=>Es(E,b,T))}(E,O,T)?{segmentGroup:new Zn(E.segments,Hr(E,O,T,E.children)),slicedSegments:O}:{segmentGroup:new Zn(E.segments,E.children),slicedSegments:O}}function Hr(E,b,O,T){const L={};for(const ae of O)if(Es(E,b,ae)&&!T[no(ae)]){const Re=new Zn([],{});L[no(ae)]=Re}return{...T,...L}}function dl(E,b){const O={};O[Kt]=b;for(const T of E)if(""===T.path&&no(T)!==Kt){const L=new Zn([],{});O[no(T)]=L}return O}function Es(E,b,O){return(!(E.hasChildren()||b.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ul{}class Is{constructor(b,O,T,L,ae,Re,xt){this.injector=b,this.configLoader=O,this.rootComponentType=T,this.config=L,this.urlTree=ae,this.paramsInheritanceStrategy=Re,this.urlSerializer=xt,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,ge.T)(O=>{const T=new sr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Kt,this.rootComponentType,null,{}),L=new Vn(T,O),ae=new ni("",L),Re=function $r(E,b,O=null,T=null){return fr(Zr(E),b,O,T)}(T,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,ae.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(ae._root,null),{state:ae,tree:Re}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,Kt).pipe(on(T=>{if(T instanceof $o)return this.urlTree=T.urlTree,this.match(T.urlTree.root);throw T instanceof pa?this.noMatchError(T):T}))}inheritParamsAndData(b,O){const T=b.value,L=ot(T,O,this.paramsInheritanceStrategy);T.params=Object.freeze(L.params),T.data=Object.freeze(L.data),b.children.forEach(ae=>this.inheritParamsAndData(ae,T))}processSegmentGroup(b,O,T,L){return 0===T.segments.length&&T.hasChildren()?this.processChildren(b,O,T):this.processSegment(b,O,T,T.segments,L,!0).pipe((0,ge.T)(ae=>ae instanceof Vn?[ae]:[]))}processChildren(b,O,T){const L=[];for(const ae of Object.keys(T.children))"primary"===ae?L.unshift(ae):L.push(ae);return(0,xe.H)(L).pipe((0,vt.H)(ae=>{const Re=T.children[ae],xt=function ko(E,b){const O=E.filter(T=>no(T)===b);return O.push(...E.filter(T=>no(T)!==b)),O}(O,ae);return this.processSegmentGroup(b,xt,Re,ae)}),function we(E,b){return(0,It.N)(function ht(E,b,O,T,L){return(ae,Re)=>{let xt=O,hn=b,Ut=0;ae.subscribe((0,Vt._)(Re,Un=>{const Vr=Ut++;hn=xt?E(hn,Un,Vr):(xt=!0,Un),T&&Re.next(hn)},L&&(()=>{xt&&Re.next(hn),Re.complete()})))}}(E,b,arguments.length>=2,!0))}((ae,Re)=>(ae.push(...Re),ae)),(0,H.U)(null),function ve(E,b){const O=arguments.length>=2;return T=>T.pipe(E?(0,_t.p)((L,ae)=>E(L,ae,T)):se.D,X(1),O?(0,H.U)(b):(0,fe.v)(()=>new Ke.G))}(),(0,Pt.Z)(ae=>{if(null===ae)return Jo(T);const Re=As(ae);return function Os(E){E.sort((b,O)=>b.value.outlet===Kt?-1:O.value.outlet===Kt?1:b.value.outlet.localeCompare(O.value.outlet))}(Re),(0,U.of)(Re)}))}processSegment(b,O,T,L,ae,Re){return(0,xe.H)(O).pipe((0,vt.H)(xt=>{var hn;return this.processSegmentAgainstRoute(null!==(hn=xt._injector)&&void 0!==hn?hn:b,O,xt,T,L,ae,Re).pipe(on(Ut=>{if(Ut instanceof pa)return(0,U.of)(null);throw Ut}))}),(0,mn.$)(xt=>!!xt),on(xt=>{if(G(xt))return function Ba(E,b,O){return 0===b.length&&!E.children[O]}(T,L,ae)?(0,U.of)(new Ul):Jo(T);throw xt}))}processSegmentAgainstRoute(b,O,T,L,ae,Re,xt){return function hl(E,b,O,T){return!!(no(E)===T||T!==Kt&&Es(b,O,E))&&jo(b,E,O).matched}(T,L,ae,Re)?void 0===T.redirectTo?this.matchSegmentAgainstRoute(b,L,T,ae,Re):this.allowRedirects&&xt?this.expandSegmentAgainstRouteUsingRedirect(b,L,O,T,ae,Re):Jo(L):Jo(L)}expandSegmentAgainstRouteUsingRedirect(b,O,T,L,ae,Re){const{matched:xt,consumedSegments:hn,positionalParamSegments:Ut,remainingSegments:Un}=jo(O,L,ae);if(!xt)return Jo(O);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Vr=this.applyRedirects.applyRedirectCommands(hn,L.redirectTo,Ut);return this.applyRedirects.lineralizeSegments(L,Vr).pipe((0,Pt.Z)($i=>this.processSegment(b,T,O,$i.concat(Un),Re,!1)))}matchSegmentAgainstRoute(b,O,T,L,ae){const Re=La(O,T,L,b);return"**"===T.path&&(O.children={}),Re.pipe((0,Be.n)(xt=>{var hn;return xt.matched?(b=null!==(hn=T._injector)&&void 0!==hn?hn:b,this.getChildConfig(b,T,L).pipe((0,Be.n)(({routes:Ut})=>{var Un,Vr,$i;const yi=null!==(Un=T._loadedInjector)&&void 0!==Un?Un:b,{consumedSegments:Zi,remainingSegments:Js,parameters:Ha}=xt,Ga=new sr(Zi,Ha,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function es(E){return E.data||{}}(T),no(T),null!==(Vr=null!==($i=T.component)&&void 0!==$i?$i:T._loadedComponent)&&void 0!==Vr?Vr:null,T,function Ru(E){return E.resolve||{}}(T)),{segmentGroup:Fs,slicedSegments:hs}=cl(O,Zi,Js,Ut);if(0===hs.length&&Fs.hasChildren())return this.processChildren(yi,Ut,Fs).pipe((0,ge.T)(Wa=>null===Wa?null:new Vn(Ga,Wa)));if(0===Ut.length&&0===hs.length)return(0,U.of)(new Vn(Ga,[]));const Ta=no(T)===ae;return this.processSegment(yi,Ut,Fs,hs,Ta?Kt:ae,!0).pipe((0,ge.T)(Wa=>new Vn(Ga,Wa instanceof Vn?[Wa]:[])))}))):Jo(O)}))}getChildConfig(b,O,T){return O.children?(0,U.of)({routes:O.children,injector:b}):O.loadChildren?void 0!==O._loadedRoutes?(0,U.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Gs(E,b,O,T){const L=b.canLoad;if(void 0===L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const xt=Uo(Re,E);return Ht(function ha(E){return E&&Fo(E.canLoad)}(xt)?xt.canLoad(b,O):(0,c.N4e)(E,()=>xt(b,O)))});return(0,U.of)(ae).pipe(_n(),fa())}(b,O,T).pipe((0,Pt.Z)(L=>L?this.configLoader.loadChildren(b,O).pipe((0,tt.M)(ae=>{O._loadedRoutes=ae.routes,O._loadedInjector=ae.injector})):function zi(E){return ct(jr(!1,Tr.GuardRejected))}())):(0,U.of)({routes:[],injector:b})}}function Zo(E){const b=E.value.routeConfig;return b&&""===b.path}function As(E){const b=[],O=new Set;for(const T of E){if(!Zo(T)){b.push(T);continue}const L=b.find(ae=>T.value.routeConfig===ae.value.routeConfig);void 0!==L?(L.children.push(...T.children),O.add(L)):b.push(T)}for(const T of O){const L=As(T.children);b.push(new Vn(T.value,L))}return b.filter(T=>!O.has(T))}function Lo(E){const b=E.children.map(O=>Lo(O)).flat();return[E,...b]}function Ua(E){return(0,Be.n)(b=>{const O=E(b);return O?(0,xe.H)(O).pipe((0,ge.T)(()=>b)):(0,U.of)(b)})}let ma=(()=>{var E;class b{buildTitle(T){let L,ae=T.root;for(;void 0!==ae;){var Re;L=null!==(Re=this.getResolvedTitleForRoute(ae))&&void 0!==Re?Re:L,ae=ae.children.find(xt=>xt.outlet===Kt)}return L}getResolvedTitleForRoute(T){return T.data[En]}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)($a),providedIn:"root"}),b})(),$a=(()=>{var E;class b extends ma{constructor(T){super(),this.title=T}updateTitle(T){const L=this.buildTitle(T);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(qe.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const zo=new c.nKC("",{providedIn:"root",factory:()=>({})}),va=new c.nKC("");let _a=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(T){if(this.componentLoaders.get(T))return this.componentLoaders.get(T);if(T._loadedComponent)return(0,U.of)(T._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(T);const L=Ht(T.loadComponent()).pipe((0,ge.T)(Gl),(0,tt.M)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Re}),(0,it.j)(()=>{this.componentLoaders.delete(T)})),ae=new mt(L,()=>new Ae.B).pipe(Et());return this.componentLoaders.set(T,ae),ae}loadChildren(T,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,U.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const Re=function Ks(E,b,O,T){return Ht(E.loadChildren()).pipe((0,ge.T)(Gl),(0,Pt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,U.of)(L):(0,xe.H)(b.compileModuleAsync(L))),(0,ge.T)(L=>{T&&T(E);let ae,Re,xt=!1;return Array.isArray(L)?(Re=L,!0):(ae=L.create(O).injector,Re=ae.get(va,[],{optional:!0,self:!0}).flat()),{routes:Re.map(Ss),injector:ae}}))}(L,this.compiler,T,this.onLoadEndListener).pipe((0,it.j)(()=>{this.childrenLoaders.delete(L)})),xt=new mt(Re,()=>new Ae.B).pipe(Et());return this.childrenLoaders.set(L,xt),xt}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function lo(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ya=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(D),providedIn:"root"}),b})(),D=(()=>{var E;class b{shouldProcessUrl(T){return!0}extract(T){return T}merge(T,L){return T}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const $=new c.nKC(""),Ve=new c.nKC("");function F(E,b,O){const T=E.get(Ve),L=E.get(Qe.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||T.skipNextTransition)return T.skipNextTransition=!1,new Promise(Ut=>setTimeout(Ut));let ae;const Re=new Promise(Ut=>{ae=Ut}),xt=L.startViewTransition(()=>(ae(),function Ie(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:hn}=T;return hn&&(0,c.N4e)(E,()=>hn({transition:xt,from:b,to:O})),Re})}let We=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ae.B,this.transitionAbortSubject=new Ae.B,this.configLoader=(0,c.WQX)(_a),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(ur),this.rootContexts=(0,c.WQX)(Le),this.location=(0,c.WQX)(Qe.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(rn,{optional:!0}),this.titleStrategy=(0,c.WQX)(ma),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ya),this.createViewTransition=(0,c.WQX)($,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,U.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new ui(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new ao(ae))}complete(){var T;null===(T=this.transitions)||void 0===T||T.complete()}handleNavigationRequest(T){var L;const ae=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...T,id:ae})}setupNavigations(T,L,ae){return this.transitions=new ue.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,_t.p)(Re=>0!==Re.id),(0,ge.T)(Re=>({...Re,extractedUrl:this.urlHandlingStrategy.extract(Re.rawUrl)})),(0,Be.n)(Re=>{let xt=!1,hn=!1;return(0,U.of)(Re).pipe((0,Be.n)(Ut=>{var Un;if(this.navigationId>Re.id)return this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),Dt.w;this.currentTransition=Re,this.currentNavigation={id:Ut.id,initialUrl:Ut.rawUrl,extractedUrl:Ut.extractedUrl,trigger:Ut.source,extras:Ut.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Vr=!T.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(Un=Ut.extras.onSameUrlNavigation)&&void 0!==Un?Un:T.onSameUrlNavigation;if(!Vr&&"reload"!==$i){const yi="";return this.events.next(new ai(Ut.id,this.urlSerializer.serialize(Ut.rawUrl),yi,Wn.IgnoredSameUrlNavigation)),Ut.resolve(null),Dt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Ut.rawUrl))return(0,U.of)(Ut).pipe((0,Be.n)(yi=>{var Zi,Js;const Ha=null===(Zi=this.transitions)||void 0===Zi?void 0:Zi.getValue();return this.events.next(new Or(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),Ha!==(null===(Js=this.transitions)||void 0===Js?void 0:Js.getValue())?Dt.w:Promise.resolve(yi)}),function Hl(E,b,O,T,L,ae){return(0,Pt.Z)(Re=>function $l(E,b,O,T,L,ae,Re="emptyOnly"){return new Is(E,b,O,T,L,Re,ae).recognize()}(E,b,O,T,Re.extractedUrl,L,ae).pipe((0,ge.T)(({state:xt,tree:hn})=>({...Re,targetSnapshot:xt,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,T.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,tt.M)(yi=>{Re.targetSnapshot=yi.targetSnapshot,Re.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const Zi=new ei(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(Zi)}));if(Vr&&this.urlHandlingStrategy.shouldProcessUrl(Ut.currentRawUrl)){const{id:yi,extractedUrl:Zi,source:Js,restoredState:Ha,extras:Ga}=Ut,Fs=new Or(yi,this.urlSerializer.serialize(Zi),Js,Ha);this.events.next(Fs);const hs=re(this.rootComponentType).snapshot;return this.currentTransition=Re={...Ut,targetSnapshot:hs,urlAfterRedirects:Zi,extras:{...Ga,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,U.of)(Re)}{const yi="";return this.events.next(new ai(Ut.id,this.urlSerializer.serialize(Ut.extractedUrl),yi,Wn.IgnoredByUrlHandlingStrategy)),Ut.resolve(null),Dt.w}}),(0,tt.M)(Ut=>{const Un=new Lr(Ut.id,this.urlSerializer.serialize(Ut.extractedUrl),this.urlSerializer.serialize(Ut.urlAfterRedirects),Ut.targetSnapshot);this.events.next(Un)}),(0,ge.T)(Ut=>(this.currentTransition=Re={...Ut,guards:ls(Ut.targetSnapshot,Ut.currentSnapshot,this.rootContexts)},Re)),function qn(E,b){return(0,Pt.Z)(O=>{const{targetSnapshot:T,currentSnapshot:L,guards:{canActivateChecks:ae,canDeactivateChecks:Re}}=O;return 0===Re.length&&0===ae.length?(0,U.of)({...O,guardsResult:!0}):function wr(E,b,O,T){return(0,xe.H)(E).pipe((0,Pt.Z)(L=>function _s(E,b,O,T,L){const ae=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!ae||0===ae.length)return(0,U.of)(!0);const Re=ae.map(xt=>{var hn;const Ut=null!==(hn=Kr(b))&&void 0!==hn?hn:L,Un=Uo(xt,Ut);return Ht(function N(E){return E&&Fo(E.canDeactivate)}(Un)?Un.canDeactivate(E,b,O,T):(0,c.N4e)(Ut,()=>Un(E,b,O,T))).pipe((0,mn.$)())});return(0,U.of)(Re).pipe(_n())}(L.component,L.route,O,b,T)),(0,mn.$)(L=>!0!==L,!0))}(Re,T,L,E).pipe((0,Pt.Z)(xt=>xt&&function io(E){return"boolean"==typeof E}(xt)?function oo(E,b,O,T){return(0,xe.H)(b).pipe((0,vt.H)(L=>(0,Je.x)(function So(E,b){return null!==E&&b&&b(new Ci(E)),(0,U.of)(!0)}(L.route.parent,T),function wo(E,b){return null!==E&&b&&b(new No(E)),(0,U.of)(!0)}(L.route,T),function Fa(E,b,O){const T=b[b.length-1],ae=b.slice(0,b.length-1).reverse().map(Re=>function us(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(Re)).filter(Re=>null!==Re).map(Re=>Ye(()=>{const xt=Re.guards.map(hn=>{var Ut;const Un=null!==(Ut=Kr(Re.node))&&void 0!==Ut?Ut:O,Vr=Uo(hn,Un);return Ht(function K(E){return E&&Fo(E.canActivateChild)}(Vr)?Vr.canActivateChild(T,E):(0,c.N4e)(Un,()=>Vr(T,E))).pipe((0,mn.$)())});return(0,U.of)(xt).pipe(_n())}));return(0,U.of)(ae).pipe(_n())}(E,L.path,O),function Yo(E,b,O){const T=b.routeConfig?b.routeConfig.canActivate:null;if(!T||0===T.length)return(0,U.of)(!0);const L=T.map(ae=>Ye(()=>{var Re;const xt=null!==(Re=Kr(b))&&void 0!==Re?Re:O,hn=Uo(ae,xt);return Ht(function ll(E){return E&&Fo(E.canActivate)}(hn)?hn.canActivate(b,E):(0,c.N4e)(xt,()=>hn(b,E))).pipe((0,mn.$)())}));return(0,U.of)(L).pipe(_n())}(E,L.route,O))),(0,mn.$)(L=>!0!==L,!0))}(T,ae,E,b):(0,U.of)(xt)),(0,ge.T)(xt=>({...O,guardsResult:xt})))})}(this.environmentInjector,Ut=>this.events.next(Ut)),(0,tt.M)(Ut=>{if(Re.guardsResult=Ut.guardsResult,dr(Ut.guardsResult))throw qr(0,Ut.guardsResult);const Un=new mi(Ut.id,this.urlSerializer.serialize(Ut.extractedUrl),this.urlSerializer.serialize(Ut.urlAfterRedirects),Ut.targetSnapshot,!!Ut.guardsResult);this.events.next(Un)}),(0,_t.p)(Ut=>!!Ut.guardsResult||(this.cancelNavigationTransition(Ut,"",Tr.GuardRejected),!1)),Ua(Ut=>{if(Ut.guards.canActivateChecks.length)return(0,U.of)(Ut).pipe((0,tt.M)(Un=>{const Vr=new Kn(Un.id,this.urlSerializer.serialize(Un.extractedUrl),this.urlSerializer.serialize(Un.urlAfterRedirects),Un.targetSnapshot);this.events.next(Vr)}),(0,Be.n)(Un=>{let Vr=!1;return(0,U.of)(Un).pipe(function ts(E,b){return(0,Pt.Z)(O=>{const{targetSnapshot:T,guards:{canActivateChecks:L}}=O;if(!L.length)return(0,U.of)(O);const ae=new Set(L.map(hn=>hn.route)),Re=new Set;for(const hn of ae)if(!Re.has(hn))for(const Ut of Lo(hn))Re.add(Ut);let xt=0;return(0,xe.H)(Re).pipe((0,vt.H)(hn=>ae.has(hn)?function Ns(E,b,O,T){const L=E.routeConfig,ae=E._resolve;return void 0!==(null==L?void 0:L.title)&&!St(L)&&(ae[En]=L.title),function Ui(E,b,O,T){const L=Jn(E);if(0===L.length)return(0,U.of)({});const ae={};return(0,xe.H)(L).pipe((0,Pt.Z)(Re=>function ga(E,b,O,T){var L;const ae=null!==(L=Kr(b))&&void 0!==L?L:T,Re=Uo(E,ae);return Ht(Re.resolve?Re.resolve(b,O):(0,c.N4e)(ae,()=>Re(b,O)))}(E[Re],b,O,T).pipe((0,mn.$)(),(0,tt.M)(xt=>{ae[Re]=xt}))),X(1),(0,Fe.u)(ae),on(Re=>G(Re)?Dt.w:ct(Re)))}(ae,E,b,T).pipe((0,ge.T)(Re=>(E._resolvedData=Re,E.data=ot(E,E.parent,O).resolve,null)))}(hn,T,E,b):(hn.data=ot(hn,hn.parent,E).resolve,(0,U.of)(void 0))),(0,tt.M)(()=>xt++),X(1),(0,Pt.Z)(hn=>xt===Re.size?(0,U.of)(O):Dt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,tt.M)({next:()=>Vr=!0,complete:()=>{Vr||this.cancelNavigationTransition(Un,"",Tr.NoDataFromResolver)}}))}),(0,tt.M)(Un=>{const Vr=new Gn(Un.id,this.urlSerializer.serialize(Un.extractedUrl),this.urlSerializer.serialize(Un.urlAfterRedirects),Un.targetSnapshot);this.events.next(Vr)}))}),Ua(Ut=>{const Un=Vr=>{var $i;const yi=[];null!==($i=Vr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!Vr.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Vr.routeConfig).pipe((0,tt.M)(Zi=>{Vr.component=Zi}),(0,ge.T)(()=>{})));for(const Zi of Vr.children)yi.push(...Un(Zi));return yi};return(0,oe.z)(Un(Ut.targetSnapshot.root)).pipe((0,H.U)(null),(0,ke.s)(1))}),Ua(()=>this.afterPreactivation()),(0,Be.n)(()=>{var Ut;const{currentSnapshot:Un,targetSnapshot:Vr}=Re,$i=null===(Ut=this.createViewTransition)||void 0===Ut?void 0:Ut.call(this,this.environmentInjector,Un.root,Vr.root);return $i?(0,xe.H)($i).pipe((0,ge.T)(()=>Re)):(0,U.of)(Re)}),(0,ge.T)(Ut=>{const Un=function yn(E,b,O){const T=Fn(E,b._root,O?O._root:void 0);return new j(T,b)}(T.routeReuseStrategy,Ut.targetSnapshot,Ut.currentRouterState);return this.currentTransition=Re={...Ut,targetRouterState:Un},this.currentNavigation.targetRouterState=Un,Re}),(0,tt.M)(()=>{this.events.next(new he)}),((E,b,O,T)=>(0,ge.T)(L=>(new Rs(b,L.targetRouterState,L.currentRouterState,O,T).activate(E),L)))(this.rootContexts,T.routeReuseStrategy,Ut=>this.events.next(Ut),this.inputBindingEnabled),(0,ke.s)(1),(0,tt.M)({next:Ut=>{var Un;xt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(Ut.id,this.urlSerializer.serialize(Ut.extractedUrl),this.urlSerializer.serialize(Ut.urlAfterRedirects))),null===(Un=this.titleStrategy)||void 0===Un||Un.updateTitle(Ut.targetRouterState.snapshot),Ut.resolve(!0)},complete:()=>{xt=!0}}),(0,sn.Q)(this.transitionAbortSubject.pipe((0,tt.M)(Ut=>{throw Ut}))),(0,it.j)(()=>{var Ut;!xt&&!hn&&this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),(null===(Ut=this.currentTransition)||void 0===Ut?void 0:Ut.id)===Re.id&&(this.currentNavigation=null,this.currentTransition=null)}),on(Ut=>{if(hn=!0,wi(Ut))this.events.next(new Cr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Ut.message,Ut.cancellationCode)),function br(E){return wi(E)&&dr(E.url)}(Ut)?this.events.next(new le(Ut.url)):Re.resolve(!1);else{var Un;this.events.next(new li(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Ut,null!==(Un=Re.targetSnapshot)&&void 0!==Un?Un:void 0));try{Re.resolve(T.errorHandler(Ut))}catch(Vr){this.options.resolveNavigationPromiseOnError?Re.resolve(!1):Re.reject(Vr)}}return Dt.w}))}))}cancelNavigationTransition(T,L,ae){const Re=new Cr(T.id,this.urlSerializer.serialize(T.extractedUrl),L,ae);this.events.next(Re),T.resolve(!1)}isUpdatingInternalState(){var T,L;return(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var T,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(T=this.currentTransition)||void 0===T?void 0:T.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Qt(E){return E!==xr}let wn=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(er),providedIn:"root"}),b})();class ar{shouldDetach(b){return!1}store(b,O){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,O){return b.routeConfig===O.routeConfig}}let er=(()=>{var E;class b extends ar{}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),pi=(()=>{var E;class b{}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Xr),providedIn:"root"}),b})(),Xr=(()=>{var E;class b extends pi{constructor(){super(...arguments),this.location=(0,c.WQX)(Qe.aZ),this.urlSerializer=(0,c.WQX)(ur),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Nr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=re(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var T,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(T=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==T?T:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(T){return this.location.subscribe(L=>{"popstate"===L.type&&T(L.url,L.state)})}handleRouterEvent(T,L){if(T instanceof Or)this.stateMemento=this.createStateMemento();else if(T instanceof ai)this.rawUrlTree=L.initialUrl;else if(T instanceof ei){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const ae=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(ae,L)}}else T instanceof he?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):T instanceof Cr&&(T.code===Tr.GuardRejected||T.code===Tr.NoDataFromResolver)?this.restoreHistory(L):T instanceof li?this.restoreHistory(L,!0):T instanceof zr&&(this.lastSuccessfulId=T.id,this.currentPageId=this.browserPageId)}setBrowserUrl(T,L){const ae=this.urlSerializer.serialize(T);if(this.location.isCurrentPathEqualTo(ae)||L.extras.replaceUrl){const xt={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(ae,"",xt)}else{const Re={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(ae,"",Re)}}restoreHistory(T,L=!1){if("computed"===this.canceledNavigationResolution){const Re=this.currentPageId-this.browserPageId;0!==Re?this.location.historyGo(Re):this.currentUrlTree===T.finalUrl&&0===Re&&(this.resetState(T),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(T),this.resetUrlToCurrentUrlTree())}resetState(T){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=T.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(T,L){return"computed"===this.canceledNavigationResolution?{navigationId:T,\u0275routerPageId:L}:{navigationId:T}}}return(E=b).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var ci=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(ci||{});function ri(E,b){E.events.pipe((0,_t.p)(O=>O instanceof zr||O instanceof Cr||O instanceof li||O instanceof ai),(0,ge.T)(O=>O instanceof zr||O instanceof ai?ci.COMPLETE:O instanceof Cr&&(O.code===Tr.Redirect||O.code===Tr.SupersededByNewNavigation)?ci.REDIRECTING:ci.FAILED),(0,_t.p)(O=>O!==ci.REDIRECTING),(0,ke.s)(1)).subscribe(()=>{b()})}function Hi(E){throw E}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xn=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var T,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(pi),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(We),this.urlSerializer=(0,c.WQX)(ur),this.location=(0,c.WQX)(Qe.aZ),this.urlHandlingStrategy=(0,c.WQX)(ya),this._events=new Ae.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(wn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(T=null===(L=(0,c.WQX)(va,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==T?T:[],this.componentInputBindingEnabled=!!(0,c.WQX)(rn,{optional:!0}),this.eventsSubscription=new Rt.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:ae=>{this.console.warn(ae)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const T=this.navigationTransitions.events.subscribe(L=>{try{const ae=this.navigationTransitions.currentTransition,Re=this.navigationTransitions.currentNavigation;if(null!==ae&&null!==Re)if(this.stateManager.handleRouterEvent(L,Re),L instanceof Cr&&L.code!==Tr.Redirect&&L.code!==Tr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof zr)this.navigated=!0;else if(L instanceof le){const xt=this.urlHandlingStrategy.merge(L.url,ae.currentRawUrl),hn={info:ae.extras.info,skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(ae.source)};this.scheduleNavigation(xt,xr,null,hn,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}(function qi(E){return!(E instanceof he||E instanceof le)})(L)&&this._events.next(L)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(T)}resetRootComponentType(T){this.routerState.root.component=T,this.navigationTransitions.rootComponentType=T}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var T;null!==(T=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==T||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,ae)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",ae)},0)}))}navigateToSyncWithBrowser(T,L,ae){const Re={replaceUrl:!0},xt=null!=ae&&ae.navigationId?ae:null;if(ae){const Ut={...ae};delete Ut.navigationId,delete Ut.\u0275routerPageId,0!==Object.keys(Ut).length&&(Re.state=Ut)}const hn=this.parseUrl(T);this.scheduleNavigation(hn,L,xt,Re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(T){this.config=T.map(Ss),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(T,L={}){const{relativeTo:ae,queryParams:Re,fragment:xt,queryParamsHandling:hn,preserveFragment:Ut}=L,Un=Ut?this.currentUrlTree.fragment:xt;let $i,Vr=null;switch(hn){case"merge":Vr={...this.currentUrlTree.queryParams,...Re};break;case"preserve":Vr=this.currentUrlTree.queryParams;break;default:Vr=Re||null}null!==Vr&&(Vr=this.removeEmptyProps(Vr));try{$i=Zr(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof T[0]||!T[0].startsWith("/"))&&(T=[]),$i=this.currentUrlTree.root}return fr($i,T,Vr,null!=Un?Un:null)}navigateByUrl(T,L={skipLocationChange:!1}){const ae=dr(T)?T:this.parseUrl(T),Re=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Re,xr,null,L)}navigate(T,L={skipLocationChange:!1}){return function Di(E){for(let b=0;b(null!=Re&&(L[ae]=Re),L),{})}scheduleNavigation(T,L,ae,Re,xt){if(this.disposed)return Promise.resolve(!1);let hn,Ut,Un;xt?(hn=xt.resolve,Ut=xt.reject,Un=xt.promise):Un=new Promise(($i,yi)=>{hn=$i,Ut=yi});const Vr=this.pendingTasks.add();return ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:T,extras:Re,resolve:hn,reject:Ut,promise:Un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Un.catch($i=>Promise.reject($i))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Si=(()=>{var E;class b{constructor(T,L,ae,Re,xt,hn){var Ut;this.router=T,this.route=L,this.tabIndexAttribute=ae,this.renderer=Re,this.el=xt,this.locationStrategy=hn,this.href=null,this.commands=null,this.onChanges=new Ae.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Un=null===(Ut=xt.nativeElement.tagName)||void 0===Ut?void 0:Ut.toLowerCase();this.isAnchorElement="a"===Un||"area"===Un,this.isAnchorElement?this.subscription=T.events.subscribe(Vr=>{Vr instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(T){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",T)}ngOnChanges(T){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(T){null!=T?(this.commands=Array.isArray(T)?T:[T],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(T,L,ae,Re,xt){const hn=this.urlTree;return!!(null===hn||this.isAnchorElement&&(0!==T||L||ae||Re||xt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(hn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var T;null===(T=this.subscription)||void 0===T||T.unsubscribe()}updateHref(){var T;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(T=this.locationStrategy)||void 0===T?void 0:T.prepareExternalUrl(this.router.serializeUrl(L)):null;const ae=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(T,L){const ae=this.renderer,Re=this.el.nativeElement;null!==L?ae.setAttribute(Re,T,L):ae.removeAttribute(Re,T)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(E=b).\u0275fac=function(T){return new(T||E)(c.rXU(Xn),c.rXU(Ee),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Qe.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(T,L){1&T&&c.bIt("click",function(Re){return L.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&T&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class _i{}let Ki=(()=>{var E;class b{preload(T,L){return L().pipe(on(()=>(0,U.of)(null)))}}return(E=b).\u0275fac=function(T){return new(T||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Br=(()=>{var E;class b{constructor(T,L,ae,Re,xt){this.router=T,this.injector=ae,this.preloadingStrategy=Re,this.loader=xt}setUpPreloading(){this.subscription=this.router.events.pipe((0,_t.p)(T=>T instanceof zr),(0,vt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(T,L){const ae=[];for(const Ut of L){var Re,xt;Ut.providers&&!Ut._injector&&(Ut._injector=(0,c.Ol2)(Ut.providers,T,`Route: ${Ut.path}`));const Un=null!==(Re=Ut._injector)&&void 0!==Re?Re:T,Vr=null!==(xt=Ut._loadedInjector)&&void 0!==xt?xt:Un;var hn;(Ut.loadChildren&&!Ut._loadedRoutes&&void 0===Ut.canLoad||Ut.loadComponent&&!Ut._loadedComponent)&&ae.push(this.preloadConfig(Un,Ut)),(Ut.children||Ut._loadedRoutes)&&ae.push(this.processRoutes(Vr,null!==(hn=Ut.children)&&void 0!==hn?hn:Ut._loadedRoutes))}return(0,xe.H)(ae).pipe((0,Sn.U)())}preloadConfig(T,L){return this.preloadingStrategy.preload(L,()=>{let ae;ae=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(T,L):(0,U.of)(null);const Re=ae.pipe((0,Pt.Z)(xt=>{var hn;return null===xt?(0,U.of)(void 0):(L._loadedRoutes=xt.routes,L._loadedInjector=xt.injector,this.processRoutes(null!==(hn=xt.injector)&&void 0!==hn?hn:T,xt.routes))}));if(L.loadComponent&&!L._loadedComponent){const xt=this.loader.loadComponent(L);return(0,xe.H)([Re,xt]).pipe((0,Sn.U)())}return Re})}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(Xn),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(_i),c.KVO(_a))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const Xs=new c.nKC("");let vc=(()=>{var E;class b{constructor(T,L,ae,Re,xt={}){this.urlSerializer=T,this.transitions=L,this.viewportScroller=ae,this.zone=Re,this.options=xt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),xt.scrollPositionRestoration||(xt.scrollPositionRestoration="disabled"),xt.anchorScrolling||(xt.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof Or?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=T.navigationTrigger,this.restoredId=T.restoredState?T.restoredState.navigationId:0):T instanceof zr?(this.lastId=T.id,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.urlAfterRedirects).fragment)):T instanceof ai&&T.code===Wn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(T,this.urlSerializer.parse(T.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(T=>{T instanceof wt&&(T.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(T.position):T.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(T.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(T,L){var ae=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(Re=>{setTimeout(()=>{Re()}),(0,c.mal)(()=>{Re()},{injector:ae.environmentInjector})}),ae.zone.run(()=>{ae.transitions.events.next(new wt(T,"popstate"===ae.lastSource?ae.store[ae.restoredId]:null,L))})}))}ngOnDestroy(){var T,L;null===(T=this.routerEventsSubscription)||void 0===T||T.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(T){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Co(E,b){return{\u0275kind:E,\u0275providers:b}}function Mi(){const E=(0,c.WQX)(c.zZn);return b=>{var O,T;const L=E.get(c.o8S);if(b!==L.components[0])return;const ae=E.get(Xn),Re=E.get(Qs);1===E.get(cs)&&ae.initialNavigation(),null===(O=E.get(Wo,null,c.$GK.Optional))||void 0===O||O.setUpPreloading(),null===(T=E.get(Xs,null,c.$GK.Optional))||void 0===T||T.init(),ae.resetRootComponentType(L.componentTypes[0]),Re.closed||(Re.next(),Re.complete(),Re.unsubscribe())}}const Qs=new c.nKC("",{factory:()=>new Ae.B}),cs=new c.nKC("",{providedIn:"root",factory:()=>1}),Wo=new c.nKC("");function pl(E){return Co(0,[{provide:Wo,useExisting:Br},{provide:_i,useExisting:E}])}function Do(E){return Co(9,[{provide:$,useValue:F},{provide:Ve,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const rs=new c.nKC("ROUTER_FORROOT_GUARD"),Ys=[Qe.aZ,{provide:ur,useClass:Pr},Xn,Le,{provide:Ee,useFactory:function Gi(E){return E.routerState.root},deps:[Xn]},_a,[]];let ds=(()=>{var E;class b{constructor(T){}static forRoot(T,L){return{ngModule:b,providers:[Ys,[],{provide:va,multi:!0,useValue:T},{provide:rs,useFactory:Aa,deps:[[Xn,new c.Xx1,new c.kdw]]},{provide:zo,useValue:L||{}},null!=L&&L.useHash?{provide:Qe.hb,useClass:Qe.fw}:{provide:Qe.hb,useClass:Qe.Sm},{provide:Xs,useFactory:()=>{const E=(0,c.WQX)(Qe.Xr),b=(0,c.WQX)(c.SKi),O=(0,c.WQX)(zo),T=(0,c.WQX)(We),L=(0,c.WQX)(ur);return O.scrollOffset&&E.setOffset(O.scrollOffset),new vc(L,T,E,b,O)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Pu(L):[],null!=L&&L.bindToComponentInputs?Co(8,[cn,{provide:rn,useExisting:cn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Do().\u0275providers:[],[{provide:Ca,useFactory:Mi},{provide:c.iLQ,multi:!0,useExisting:Ca}]]}}static forChild(T){return{ngModule:b,providers:[{provide:va,multi:!0,useValue:T}]}}}return(E=b).\u0275fac=function(T){return new(T||E)(c.KVO(rs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function Aa(E){return"guarded"}function Pu(E){return["disabled"===E.initialNavigation?Co(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(Xn);return()=>{b.setUpLocationChangeListener()}}},{provide:cs,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Co(2,[{provide:cs,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const O=b.get(Qe.hj,Promise.resolve());return()=>O.then(()=>new Promise(T=>{const L=b.get(Xn),ae=b.get(Qs);ri(L,()=>{T(!0)}),b.get(We).afterPreactivation=()=>(T(!0),ae.closed?(0,U.of)(void 0):ae),L.initialNavigation()}))}}]).\u0275providers:[]]}const Ca=new c.nKC("")},7852:(Tn,gt,C)=>{"use strict";C.d(gt,{MF:()=>Ai,j6:()=>Dr,xZ:()=>mr,om:()=>Zn,Sx:()=>rt,Dk:()=>Mt,Wp:()=>Qr,KO:()=>ye});var h=C(467),c=C(1362),Z=C(8041),xe=C(1076);const U=($t,ne)=>ne.some(ee=>$t instanceof ee);let ue,oe;const Se=new WeakMap,De=new WeakMap,Ye=new WeakMap,Ze=new WeakMap,Xe=new WeakMap;let Rt={get($t,ne,ee){if($t instanceof IDBTransaction){if("done"===ne)return De.get($t);if("objectStoreNames"===ne)return $t.objectStoreNames||Ye.get($t);if("store"===ne)return ee.objectStoreNames[1]?void 0:ee.objectStore(ee.objectStoreNames[0])}return mt($t[ne])},set:($t,ne,ee)=>($t[ne]=ee,!0),has:($t,ne)=>$t instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in $t};function Et($t){return"function"==typeof $t?function Vt($t){return $t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return oe||(oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes($t)?function(...ne){return $t.apply(Ae(this),ne),mt(Se.get(this))}:function(...ne){return mt($t.apply(Ae(this),ne))}:function(ne,...ee){const $e=$t.call(Ae(this),ne,...ee);return Ye.set($e,ne.sort?ne.sort():[ne]),mt($e)}}($t):($t instanceof IDBTransaction&&function Dt($t){if(De.has($t))return;const ne=new Promise((ee,$e)=>{const M=()=>{$t.removeEventListener("complete",x),$t.removeEventListener("error",te),$t.removeEventListener("abort",te)},x=()=>{ee(),M()},te=()=>{$e($t.error||new DOMException("AbortError","AbortError")),M()};$t.addEventListener("complete",x),$t.addEventListener("error",te),$t.addEventListener("abort",te)});De.set($t,ne)}($t),U($t,function Ke(){return ue||(ue=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy($t,Rt):$t)}function mt($t){if($t instanceof IDBRequest)return function ct($t){const ne=new Promise((ee,$e)=>{const M=()=>{$t.removeEventListener("success",x),$t.removeEventListener("error",te)},x=()=>{ee(mt($t.result)),M()},te=()=>{$e($t.error),M()};$t.addEventListener("success",x),$t.addEventListener("error",te)});return ne.then(ee=>{ee instanceof IDBCursor&&Se.set(ee,$t)}).catch(()=>{}),Xe.set(ne,$t),ne}($t);if(Ze.has($t))return Ze.get($t);const ne=Et($t);return ne!==$t&&(Ze.set($t,ne),Xe.set(ne,$t)),ne}const Ae=$t=>Xe.get($t),Be=["get","getKey","getAll","getAllKeys","count"],ke=["put","add","delete","clear"],Pe=new Map;function _t($t,ne){if(!($t instanceof IDBDatabase)||ne in $t||"string"!=typeof ne)return;if(Pe.get(ne))return Pe.get(ne);const ee=ne.replace(/FromIndex$/,""),$e=ne!==ee,M=ke.includes(ee);if(!(ee in($e?IDBIndex:IDBObjectStore).prototype)||!M&&!Be.includes(ee))return;const x=function(){var te=(0,h.A)(function*(Te,...He){const Tt=this.transaction(Te,M?"readwrite":"readonly");let Jt=Tt.store;return $e&&(Jt=Jt.index(He.shift())),(yield Promise.all([Jt[ee](...He),M&&Tt.done]))[0]});return function(He){return te.apply(this,arguments)}}();return Pe.set(ne,x),x}!function It($t){Rt=$t(Rt)}($t=>({...$t,get:(ne,ee,$e)=>_t(ne,ee)||$t.get(ne,ee,$e),has:(ne,ee)=>!!_t(ne,ee)||$t.has(ne,ee)}));class Pt{constructor(ne){this.container=ne}getPlatformInfoString(){return this.container.getProviders().map(ee=>{if(function mn($t){const ne=$t.getComponent();return"VERSION"===(null==ne?void 0:ne.type)}(ee)){const $e=ee.getImmediate();return`${$e.library}/${$e.version}`}return null}).filter(ee=>ee).join(" ")}}const vt="@firebase/app",on=new Z.Vy("@firebase/app"),Pn="[DEFAULT]",Nn={[vt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},gn=new Map,en=new Map,Er=new Map;function Ir($t,ne){try{$t.container.addComponent(ne)}catch(ee){on.debug(`Component ${ne.name} failed to register with FirebaseApp ${$t.name}`,ee)}}function Zn($t){const ne=$t.name;if(Er.has(ne))return on.debug(`There were multiple attempts to register component ${ne}.`),!1;Er.set(ne,$t);for(const ee of gn.values())Ir(ee,$t);for(const ee of en.values())Ir(ee,$t);return!0}function Dr($t,ne){const ee=$t.container.getProvider("heartbeat").getImmediate({optional:!0});return ee&&ee.triggerHeartbeat(),$t.container.getProvider(ne)}function mr($t){return void 0!==$t.settings}const cr=new xe.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class kr{constructor(ne,ee,$e){this._isDeleted=!1,this._options=Object.assign({},ne),this._config=Object.assign({},ee),this._name=ee.name,this._automaticDataCollectionEnabled=ee.automaticDataCollectionEnabled,this._container=$e,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ne){this.checkDestroyed(),this._automaticDataCollectionEnabled=ne}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ne){this._isDeleted=ne}checkDestroyed(){if(this.isDeleted)throw cr.create("app-deleted",{appName:this._name})}}const Ai="10.12.2";function Qr($t,ne={}){let ee=$t;"object"!=typeof ne&&(ne={name:ne});const $e=Object.assign({name:Pn,automaticDataCollectionEnabled:!1},ne),M=$e.name;if("string"!=typeof M||!M)throw cr.create("bad-app-name",{appName:String(M)});if(ee||(ee=(0,xe.T9)()),!ee)throw cr.create("no-options");const x=gn.get(M);if(x){if((0,xe.bD)(ee,x.options)&&(0,xe.bD)($e,x.config))return x;throw cr.create("duplicate-app",{appName:M})}const te=new c.h1(M);for(const He of Er.values())te.addComponent(He);const Te=new kr(ee,$e,te);return gn.set(M,Te),Te}function rt($t=Pn){const ne=gn.get($t);if(!ne&&$t===Pn&&(0,xe.T9)())return Qr();if(!ne)throw cr.create("no-app",{appName:$t});return ne}function Mt(){return Array.from(gn.values())}function ye($t,ne,ee){var $e;let M=null!==($e=Nn[$t])&&void 0!==$e?$e:$t;ee&&(M+=`-${ee}`);const x=M.match(/\s|\//),te=ne.match(/\s|\//);if(x||te){const Te=[`Unable to register library "${M}" with version "${ne}":`];return x&&Te.push(`library name "${M}" contains illegal characters (whitespace or "/")`),x&&te&&Te.push("and"),te&&Te.push(`version name "${ne}" contains illegal characters (whitespace or "/")`),void on.warn(Te.join(" "))}Zn(new c.uA(`${M}-version`,()=>({library:M,version:ne}),"VERSION"))}const ie="firebase-heartbeat-database",dt=1,lt="firebase-heartbeat-store";let Wt=null;function tn(){return Wt||(Wt=function Qe($t,ne,{blocked:ee,upgrade:$e,blocking:M,terminated:x}={}){const te=indexedDB.open($t,ne),Te=mt(te);return $e&&te.addEventListener("upgradeneeded",He=>{$e(mt(te.result),He.oldVersion,He.newVersion,mt(te.transaction),He)}),ee&&te.addEventListener("blocked",He=>ee(He.oldVersion,He.newVersion,He)),Te.then(He=>{x&&He.addEventListener("close",()=>x()),M&&He.addEventListener("versionchange",Tt=>M(Tt.oldVersion,Tt.newVersion,Tt))}).catch(()=>{}),Te}(ie,dt,{upgrade:($t,ne)=>{if(0===ne)try{$t.createObjectStore(lt)}catch(ee){console.warn(ee)}}}).catch($t=>{throw cr.create("idb-open",{originalErrorMessage:$t.message})})),Wt}function Yn(){return(Yn=(0,h.A)(function*($t){try{const ee=(yield tn()).transaction(lt),$e=yield ee.objectStore(lt).get(ir($t));return yield ee.done,$e}catch(ne){if(ne instanceof xe.g)on.warn(ne.message);else{const ee=cr.create("idb-get",{originalErrorMessage:null==ne?void 0:ne.message});on.warn(ee.message)}}})).apply(this,arguments)}function dn($t,ne){return Cn.apply(this,arguments)}function Cn(){return(Cn=(0,h.A)(function*($t,ne){try{const $e=(yield tn()).transaction(lt,"readwrite");yield $e.objectStore(lt).put(ne,ir($t)),yield $e.done}catch(ee){if(ee instanceof xe.g)on.warn(ee.message);else{const $e=cr.create("idb-set",{originalErrorMessage:null==ee?void 0:ee.message});on.warn($e.message)}}})).apply(this,arguments)}function ir($t){return`${$t.name}!${$t.options.appId}`}class $r{constructor(ne){this.container=ne,this._heartbeatsCache=null;const ee=this.container.getProvider("app").getImmediate();this._storage=new Ri(ee),this._heartbeatsCachePromise=this._storage.read().then($e=>(this._heartbeatsCache=$e,$e))}triggerHeartbeat(){var ne=this;return(0,h.A)(function*(){var ee,$e;const x=ne.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),te=Zr();if((null!=(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||(ne._heartbeatsCache=yield ne._heartbeatsCachePromise,null!=(null===($e=ne._heartbeatsCache)||void 0===$e?void 0:$e.heartbeats)))&&ne._heartbeatsCache.lastSentHeartbeatDate!==te&&!ne._heartbeatsCache.heartbeats.some(Te=>Te.date===te))return ne._heartbeatsCache.heartbeats.push({date:te,agent:x}),ne._heartbeatsCache.heartbeats=ne._heartbeatsCache.heartbeats.filter(Te=>{const He=new Date(Te.date).valueOf();return Date.now()-He<=2592e6}),ne._storage.overwrite(ne._heartbeatsCache)})()}getHeartbeatsHeader(){var ne=this;return(0,h.A)(function*(){var ee;if(null===ne._heartbeatsCache&&(yield ne._heartbeatsCachePromise),null==(null===(ee=ne._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||0===ne._heartbeatsCache.heartbeats.length)return"";const $e=Zr(),{heartbeatsToSend:M,unsentEntries:x}=function fr($t,ne=1024){const ee=[];let $e=$t.slice();for(const M of $t){const x=ee.find(te=>te.agent===M.agent);if(x){if(x.dates.push(M.date),gi(ee)>ne){x.dates.pop();break}}else if(ee.push({agent:M.agent,dates:[M.date]}),gi(ee)>ne){ee.pop();break}$e=$e.slice(1)}return{heartbeatsToSend:ee,unsentEntries:$e}}(ne._heartbeatsCache.heartbeats),te=(0,xe.Uj)(JSON.stringify({version:2,heartbeats:M}));return ne._heartbeatsCache.lastSentHeartbeatDate=$e,x.length>0?(ne._heartbeatsCache.heartbeats=x,yield ne._storage.overwrite(ne._heartbeatsCache)):(ne._heartbeatsCache.heartbeats=[],ne._storage.overwrite(ne._heartbeatsCache)),te})()}}function Zr(){return(new Date).toISOString().substring(0,10)}class Ri{constructor(ne){this.app=ne,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,xe.zW)()&&(0,xe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ne=this;return(0,h.A)(function*(){if(yield ne._canUseIndexedDBPromise){const $e=yield function vn($t){return Yn.apply(this,arguments)}(ne.app);return null!=$e&&$e.heartbeats?$e:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ne){var ee=this;return(0,h.A)(function*(){var $e;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return dn(ee.app,{lastSentHeartbeatDate:null!==($e=ne.lastSentHeartbeatDate)&&void 0!==$e?$e:x.lastSentHeartbeatDate,heartbeats:ne.heartbeats})}})()}add(ne){var ee=this;return(0,h.A)(function*(){var $e;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return dn(ee.app,{lastSentHeartbeatDate:null!==($e=ne.lastSentHeartbeatDate)&&void 0!==$e?$e:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...ne.heartbeats]})}})()}}function gi($t){return(0,xe.Uj)(JSON.stringify({version:2,heartbeats:$t})).length}!function pr($t){Zn(new c.uA("platform-logger",ne=>new Pt(ne),"PRIVATE")),Zn(new c.uA("heartbeat",ne=>new $r(ne),"PRIVATE")),ye(vt,"0.10.5",$t),ye(vt,"0.10.5","esm2017"),ye("fire-js","")}("")},1362:(Tn,gt,C)=>{"use strict";C.d(gt,{h1:()=>Ke,uA:()=>Z});var h=C(467),c=C(1076);class Z{constructor(Se,De,Ye){this.name=Se,this.instanceFactory=De,this.type=Ye,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const xe="[DEFAULT]";class U{constructor(Se,De){this.name=Se,this.container=De,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const De=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(De)){const Ye=new c.cY;if(this.instancesDeferred.set(De,Ye),this.isInitialized(De)||this.shouldAutoInitialize())try{const Ze=this.getOrInitializeService({instanceIdentifier:De});Ze&&Ye.resolve(Ze)}catch{}}return this.instancesDeferred.get(De).promise}getImmediate(Se){var De;const Ye=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),Ze=null!==(De=null==Se?void 0:Se.optional)&&void 0!==De&&De;if(!this.isInitialized(Ye)&&!this.shouldAutoInitialize()){if(Ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Ye})}catch(Xe){if(Ze)return null;throw Xe}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function oe(Je){return"EAGER"===Je.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:xe})}catch{}for(const[De,Ye]of this.instancesDeferred.entries()){const Ze=this.normalizeInstanceIdentifier(De);try{const Xe=this.getOrInitializeService({instanceIdentifier:Ze});Ye.resolve(Xe)}catch{}}}}clearInstance(Se=xe){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const De=Array.from(Se.instances.values());yield Promise.all([...De.filter(Ye=>"INTERNAL"in Ye).map(Ye=>Ye.INTERNAL.delete()),...De.filter(Ye=>"_delete"in Ye).map(Ye=>Ye._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=xe){return this.instances.has(Se)}getOptions(Se=xe){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:De={}}=Se,Ye=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(Ye))throw Error(`${this.name}(${Ye}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ze=this.getOrInitializeService({instanceIdentifier:Ye,options:De});for(const[Xe,ct]of this.instancesDeferred.entries())Ye===this.normalizeInstanceIdentifier(Xe)&&ct.resolve(Ze);return Ze}onInit(Se,De){var Ye;const Ze=this.normalizeInstanceIdentifier(De),Xe=null!==(Ye=this.onInitCallbacks.get(Ze))&&void 0!==Ye?Ye:new Set;Xe.add(Se),this.onInitCallbacks.set(Ze,Xe);const ct=this.instances.get(Ze);return ct&&Se(ct,Ze),()=>{Xe.delete(Se)}}invokeOnInitCallbacks(Se,De){const Ye=this.onInitCallbacks.get(De);if(Ye)for(const Ze of Ye)try{Ze(Se,De)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:De={}}){let Ye=this.instances.get(Se);if(!Ye&&this.component&&(Ye=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=Se,Je===xe?void 0:Je),options:De}),this.instances.set(Se,Ye),this.instancesOptions.set(Se,De),this.invokeOnInitCallbacks(Ye,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,Ye)}catch{}var Je;return Ye||null}normalizeInstanceIdentifier(Se=xe){return this.component?this.component.multipleInstances?Se:xe:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ke{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const De=this.getProvider(Se.name);if(De.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);De.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const De=new U(Se,this);return this.providers.set(Se,De),De}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,gt,C)=>{"use strict";C.d(gt,{$b:()=>c,Vy:()=>oe});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},xe=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ue=(Se,De,...Ye)=>{if(De{"use strict";C.d(gt,{Yq:()=>nt,TS:()=>nr,sR:()=>vr,el:()=>tn,Sb:()=>mr,QE:()=>ir,CF:()=>Dr,Rg:()=>ye,p4:()=>Ar,jM:()=>pr,_t:()=>ve,q9:()=>Kt,Kb:()=>$t,CE:()=>vn,pF:()=>Yn,fL:()=>$r,YV:()=>dt,er:()=>dr,z3:()=>Zr});var h=C(467),c=C(9842),Z=C(4438),xe=C(7650),U=C(177),ue=C(5531),oe=C(4442);var Pt=C(1413),mn=C(3726),vt=C(4412),tt=C(4572),on=C(7673),ht=C(1635),we=C(5964),H=C(5558),X=C(3294),fe=C(4341);const se=["tabsInner"];class ve{constructor(ee){(0,c.A)(this,"menuController",void 0),this.menuController=ee}open(ee){return this.menuController.open(ee)}close(ee){return this.menuController.close(ee)}toggle(ee){return this.menuController.toggle(ee)}enable(ee,$e){return this.menuController.enable(ee,$e)}swipeGesture(ee,$e){return this.menuController.swipeGesture(ee,$e)}isOpen(ee){return this.menuController.isOpen(ee)}isEnabled(ee){return this.menuController.isEnabled(ee)}get(ee){return this.menuController.get(ee)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(ee,$e){return this.menuController.registerAnimation(ee,$e)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(ee,$e){return this.menuController._createAnimation(ee,$e)}_register(ee){return this.menuController._register(ee)}_unregister(ee){return this.menuController._unregister(ee)}_setOpen(ee,$e,M){return this.menuController._setOpen(ee,$e,M)}}let sn=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new Pt.B),(0,c.A)(this,"keyboardDidShow",new Pt.B),(0,c.A)(this,"keyboardDidHide",new Pt.B),(0,c.A)(this,"pause",new Pt.B),(0,c.A)(this,"resume",new Pt.B),(0,c.A)(this,"resize",new Pt.B),this.doc=M,x.run(()=>{var te;let Te;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(He,Tt){return this.subscribe(Jt=>Jt.register(He,ln=>x.run(()=>Tt(ln))))},qe(this.pause,M,"pause",x),qe(this.resume,M,"resume",x),qe(this.backButton,M,"ionBackButton",x),qe(this.resize,this.win,"resize",x),qe(this.keyboardDidShow,this.win,"ionKeyboardDidShow",x),qe(this.keyboardDidHide,this.win,"ionKeyboardDidHide",x),this._readyPromise=new Promise(He=>{Te=He}),null!==(te=this.win)&&void 0!==te&&te.cordova?M.addEventListener("deviceready",()=>{Te("cordova")},{once:!0}):Te("dom")})}is(M){return(0,ue.a)(this.win,M)}platforms(){return(0,ue.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return Sn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,x;return null===(M=(x=this.win).matchMedia)||void 0===M?void 0:M.call(x,"(orientation: portrait)").matches}testUserAgent(M){const x=this.win.navigator;return!!(null!=x&&x.userAgent&&x.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(U.qQ),Z.KVO(Z.SKi))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const Sn=(ne,ee)=>{ee=ee.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+ee+"=([^&#]*)").exec(ne);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},qe=(ne,ee,$e,M)=>{ee&&ee.addEventListener($e,x=>{M.run(()=>{ne.next(null!=x?x.detail:void 0)})})};let Kt=(()=>{var ne;class ee{constructor(M,x,te,Te){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",On),(0,c.A)(this,"animated",Qn),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=x,this.serializer=te,this.router=Te,Te&&Te.events.subscribe(He=>{if(He instanceof xe.Z){const Tt=He.restoredState?He.restoredState.navigationId:He.id;this.guessDirection=this.guessAnimation=Tt{this.pop(),He()})}navigateForward(M,x={}){return this.setDirection("forward",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateBack(M,x={}){return this.setDirection("back",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateRoot(M,x={}){return this.setDirection("root",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let x=M.topOutlet;for(;x;){if(yield x.pop())return!0;x=x.parentOutlet}return!1})()}setDirection(M,x,te,Te){this.direction=M,this.animated=En(M,x,te),this.animationBuilder=Te}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let x,M="root";const te=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,x=this.guessAnimation):(x=this.animated,M=this.direction),this.direction=On,this.animated=Qn,this.animationBuilder=void 0,{direction:M,animation:x,animationBuilder:te}}navigate(M,x){if(Array.isArray(M))return this.router.navigate(M,x);{const te=this.serializer.parse(M.toString());return void 0!==x.queryParams&&(te.queryParams={...x.queryParams}),void 0!==x.fragment&&(te.fragment=x.fragment),this.router.navigateByUrl(te,x)}}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.KVO(sn),Z.KVO(U.aZ),Z.KVO(xe.Sd),Z.KVO(xe.Ix,8))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const En=(ne,ee,$e)=>{if(!1!==ee){if(void 0!==$e)return $e;if("forward"===ne||"back"===ne)return ne;if("root"===ne&&!0===ee)return"forward"}},On="auto",Qn=void 0;let nr=(()=>{var ne;class ee{get(M,x){const te=rr();return te?te.get(M,x):null}getBoolean(M,x){const te=rr();return!!te&&te.getBoolean(M,x)}getNumber(M,x){const te=rr();return te?te.getNumber(M,x):0}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})),ee})();const vr=new Z.nKC("USERCONFIG"),rr=()=>{if(typeof window<"u"){const ne=window.Ionic;if(null!=ne&&ne.config)return ne.config}return null};class Jn{constructor(ee={}){(0,c.A)(this,"data",void 0),this.data=ee,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(ee){return this.data[ee]}}let nt=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(vr))}create(M,x,te){var Te;return new Nt(M,x,this.applicationRef,this.zone,te,null!==(Te=this.config.useSetInputAPI)&&void 0!==Te&&Te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();class Nt{constructor(ee,$e,M,x,te,Te){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=ee,this.injector=$e,this.applicationRef=M,this.zone=x,this.elementReferenceKey=te,this.enableSignalsSupport=Te}attachViewToDom(ee,$e,M,x){return this.zone.run(()=>new Promise(te=>{const Te={...M};void 0!==this.elementReferenceKey&&(Te[this.elementReferenceKey]=ee),te(Ht(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,ee,$e,Te,x,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(ee,$e){return this.zone.run(()=>new Promise(M=>{const x=this.elRefMap.get($e);if(x){x.destroy(),this.elRefMap.delete($e);const te=this.elEventsMap.get($e);te&&(te(),this.elEventsMap.delete($e))}M()}))}}const Ht=(ne,ee,$e,M,x,te,Te,He,Tt,Jt,ln,or)=>{const $n=Z.zZn.create({providers:Pn(Tt),parent:$e}),xr=(0,Z.a0P)(He,{environmentInjector:ee,elementInjector:$n}),kn=xr.instance,Fr=xr.location.nativeElement;if(Tt)if(ln&&void 0!==kn[ln]&&console.error(`[Ionic Error]: ${ln} is a reserved property when using ${Te.tagName.toLowerCase()}. Rename or remove the "${ln}" property from ${He.name}.`),!0===or&&void 0!==xr.setInput){const{modal:zr,popover:Tr,...Wn}=Tt;for(const Cr in Wn)xr.setInput(Cr,Wn[Cr]);void 0!==zr&&Object.assign(kn,{modal:zr}),void 0!==Tr&&Object.assign(kn,{popover:Tr})}else Object.assign(kn,Tt);if(Jt)for(const zr of Jt)Fr.classList.add(zr);const Or=pn(ne,kn,Fr);return Te.appendChild(Fr),M.attachView(xr.hostView),x.set(Fr,xr),te.set(Fr,Or),Fr},fn=[oe.L,oe.a,oe.b,oe.c,oe.d],pn=(ne,ee,$e)=>ne.run(()=>{const M=fn.filter(x=>"function"==typeof ee[x]).map(x=>{const te=Te=>ee[x](Te.detail);return $e.addEventListener(x,te),()=>$e.removeEventListener(x,te)});return()=>M.forEach(x=>x())}),Sr=new Z.nKC("NavParamsToken"),Pn=ne=>[{provide:Sr,useValue:ne},{provide:Jn,useFactory:Nn,deps:[Sr]}],Nn=ne=>new Jn(ne),gn=(ne,ee)=>{const $e=ne.prototype;ee.forEach(M=>{Object.defineProperty($e,M,{get(){return this.el[M]},set(x){this.z.runOutsideAngular(()=>this.el[M]=x)}})})},en=(ne,ee)=>{const $e=ne.prototype;ee.forEach(M=>{$e[M]=function(){const x=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,x))}})},Er=(ne,ee,$e)=>{$e.forEach(M=>ne[M]=(0,mn.R)(ee,M))};function Ir(ne){return function($e){const{defineCustomElementFn:M,inputs:x,methods:te}=ne;return void 0!==M&&M(),x&&gn($e,x),te&&en($e,te),$e}}const Nr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let Dr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-popover"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ne);return ee=(0,ht.Cg)([Ir({inputs:Nr,methods:Zn})],ee),ee})();const tr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let mr=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=te,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-modal"]],contentQueries:function(M,x,te){if(1&M&&Z.wni(te,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ne);return ee=(0,ht.Cg)([Ir({inputs:tr,methods:Jr})],ee),ee})();const Pr=(ne,ee)=>((ne=ne.filter($e=>$e.stackId!==ee.stackId)).push(ee),ne),ii=(ne,ee)=>{const $e=ne.createUrlTree(["."],{relativeTo:ee});return ne.serializeUrl($e)},Ai=(ne,ee)=>!ee||ne.stackId!==ee.stackId,Qr=(ne,ee)=>{if(!ne)return;const $e=pe(ee);for(let M=0;M<$e.length;M++){if(M>=ne.length)return $e[M];if($e[M]!==ne[M])return}},pe=ne=>ne.split("/").map(ee=>ee.trim()).filter(ee=>""!==ee),rt=ne=>{ne&&(ne.ref.destroy(),ne.unlistenEvents())};class Mt{constructor(ee,$e,M,x,te,Te){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=$e,this.router=M,this.navCtrl=x,this.zone=te,this.location=Te,this.tabsPrefix=void 0!==ee?pe(ee):void 0}createView(ee,$e){var M;const x=ii(this.router,$e),te=null==ee||null===(M=ee.location)||void 0===M?void 0:M.nativeElement,Te=pn(this.zone,ee.instance,te);return{id:this.nextId++,stackId:Qr(this.tabsPrefix,x),unlistenEvents:Te,element:te,ref:ee,url:x}}getExistingView(ee){const $e=ii(this.router,ee),M=this.views.find(x=>x.url===$e);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(ee){var $e,M;const x=this.navCtrl.consumeTransition();let{direction:te,animation:Te,animationBuilder:He}=x;const Tt=this.activeView,Jt=Ai(ee,Tt);Jt&&(te="back",Te=void 0);const ln=this.views.slice();let or;const $n=this.router;$n.getCurrentNavigation?or=$n.getCurrentNavigation():null!==($e=$n.navigations)&&void 0!==$e&&$e.value&&(or=$n.navigations.value),null!==(M=or)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const xr=this.views.includes(ee),kn=this.insertView(ee,te);xr||ee.ref.changeDetectorRef.detectChanges();const Fr=ee.animationBuilder;return void 0===He&&"back"===te&&!Jt&&void 0!==Fr&&(He=Fr),Tt&&(Tt.animationBuilder=He),this.zone.runOutsideAngular(()=>this.wait(()=>(Tt&&Tt.ref.changeDetectorRef.detach(),ee.ref.changeDetectorRef.reattach(),this.transition(ee,Tt,Te,this.canGoBack(1),!1,He).then(()=>ut(ee,kn,ln,this.location,this.zone)).then(()=>({enteringView:ee,direction:te,animation:Te,tabSwitch:Jt})))))}canGoBack(ee,$e=this.getActiveStackId()){return this.getStack($e).length>ee}pop(ee,$e=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack($e);if(M.length<=ee)return Promise.resolve(!1);const x=M[M.length-ee-1];let te=x.url;const Te=x.savedData;if(Te){var He;const Jt=Te.get("primary");null!=Jt&&null!==(He=Jt.route)&&void 0!==He&&null!==(He=He._routerState)&&void 0!==He&&He.snapshot.url&&(te=Jt.route._routerState.snapshot.url)}const{animationBuilder:Tt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(te,{...x.savedExtras,animation:Tt}).then(()=>!0)})}startBackTransition(){const ee=this.activeView;if(ee){const $e=this.getStack(ee.stackId),M=$e[$e.length-2],x=M.animationBuilder;return this.wait(()=>this.transition(M,ee,"back",this.canGoBack(2),!0,x))}return Promise.resolve()}endBackTransition(ee){ee?(this.skipTransition=!0,this.pop(1)):this.activeView&&ce(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ee){const $e=this.getStack(ee);return $e.length>0?$e[$e.length-1]:void 0}getRootUrl(ee){const $e=this.getStack(ee);return $e.length>0?$e[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(rt),this.activeView=void 0,this.views=[]}getStack(ee){return this.views.filter($e=>$e.stackId===ee)}insertView(ee,$e){return this.activeView=ee,this.views=((ne,ee,$e)=>"root"===$e?Pr(ne,ee):"forward"===$e?((ne,ee)=>(ne.indexOf(ee)>=0?ne=ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):ne.push(ee),ne))(ne,ee):((ne,ee)=>ne.indexOf(ee)>=0?ne.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):Pr(ne,ee))(ne,ee))(this.views,ee,$e),this.views.slice()}transition(ee,$e,M,x,te,Te){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if($e===ee)return Promise.resolve(!1);const He=ee?ee.element:void 0,Tt=$e?$e.element:void 0,Jt=this.containerEl;return He&&He!==Tt&&(He.classList.add("ion-page"),He.classList.add("ion-page-invisible"),Jt.commit)?Jt.commit(He,Tt,{duration:void 0===M?0:void 0,direction:M,showGoBack:x,progressAnimation:te,animationBuilder:Te}):Promise.resolve(!1)}wait(ee){var $e=this;return(0,h.A)(function*(){void 0!==$e.runningTask&&(yield $e.runningTask,$e.runningTask=void 0);const M=$e.runningTask=ee();return M.finally(()=>$e.runningTask=void 0),M})()}}const ut=(ne,ee,$e,M,x)=>"function"==typeof requestAnimationFrame?new Promise(te=>{requestAnimationFrame(()=>{ce(ne,ee,$e,M,x),te()})}):Promise.resolve(),ce=(ne,ee,$e,M,x)=>{x.run(()=>$e.filter(te=>!ee.includes(te)).forEach(rt)),ee.forEach(te=>{const He=M.path().split("?")[0].split("#")[0];if(te!==ne&&te.url!==He){const Tt=te.element;Tt.setAttribute("aria-hidden","true"),Tt.classList.add("ion-page-hidden"),te.ref.changeDetectorRef.detach()}})};let ye=(()=>{var ne;class ee{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:x=>this.stackCtrl.endBackTransition(x)}:void 0}constructor(M,x,te,Te,He,Tt,Jt,ln){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new vt.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",xe.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(xe.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(nr)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(Kt)),this.parentOutlet=ln,this.nativeEl=Te.nativeElement,this.name=M||xe.Xk,this.tabsPrefix="true"===x?ii(He,Jt):void 0,this.stackCtrl=new Mt(this.tabsPrefix,this.nativeEl,He,this.navCtrl,Tt,te),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ne,ee)=>{ne.componentOnReady?ne.componentOnReady().then($e=>ee($e)):(ne=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne)})(()=>ee(ne))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,x){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const x=this.getContext();this.activatedView.savedData=new Map(x.children.contexts);const te=this.activatedView.savedData.get("primary");if(te&&x.route&&(te.route={...x.route}),this.activatedView.savedExtras={},x.route){const Te=x.route.snapshot;this.activatedView.savedExtras.queryParams=Te.queryParams,this.activatedView.savedExtras.fragment=Te.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,x){var te;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let Te,He=this.stackCtrl.getExistingView(M);if(He){Te=this.activated=He.ref;const ln=He.savedData;ln&&(this.getContext().children.contexts=ln),this.updateActivatedRouteProxy(Te.instance,M)}else{var Tt;const ln=M._futureSnapshot,or=this.parentContexts.getOrCreateContext(this.name).children,$n=new vt.t(null),xr=this.createActivatedRouteProxy($n,M),kn=new ze(xr,or,this.location.injector),Fr=null!==(Tt=ln.routeConfig.component)&&void 0!==Tt?Tt:ln.component;Te=this.activated=this.outletContent.createComponent(Fr,{index:this.outletContent.length,injector:kn,environmentInjector:null!=x?x:this.environmentInjector}),$n.next(Te.instance),He=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(Te.instance,xr),this.currentActivatedRoute$.next({component:Te.instance,activatedRoute:M})}null===(te=this.inputBinder)||void 0===te||te.bindActivatedRouteToOutletComponent(this),this.activatedView=He,this.navCtrl.setTopOutlet(this);const Jt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:He,tabSwitch:Ai(He,Jt)}),this.stackCtrl.setActive(He).then(ln=>{this.activateEvents.emit(Te.instance),this.stackDidChange.emit(ln)})}canGoBack(M=1,x){return this.stackCtrl.canGoBack(M,x)}pop(M=1,x){return this.stackCtrl.pop(M,x)}getLastUrl(M){const x=this.stackCtrl.getLastUrl(M);return x?x.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,x){const te=new xe.nX;return te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,te._paramMap=this.proxyObservable(M,"paramMap"),te._queryParamMap=this.proxyObservable(M,"queryParamMap"),te.url=this.proxyObservable(M,"url"),te.params=this.proxyObservable(M,"params"),te.queryParams=this.proxyObservable(M,"queryParams"),te.fragment=this.proxyObservable(M,"fragment"),te.data=this.proxyObservable(M,"data"),te}proxyObservable(M,x){return M.pipe((0,we.p)(te=>!!te),(0,H.n)(te=>this.currentActivatedRoute$.pipe((0,we.p)(Te=>null!==Te&&Te.component===te),(0,H.n)(Te=>Te&&Te.activatedRoute[x]),(0,X.F)())))}updateActivatedRouteProxy(M,x){const te=this.proxyMap.get(M);if(!te)throw new Error("Could not find activated route proxy for view");te._futureSnapshot=x._futureSnapshot,te._routerState=x._routerState,te.snapshot=x.snapshot,te.outlet=x.outlet,te.component=x.component,this.currentActivatedRoute$.next({component:M,activatedRoute:x})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU(U.aZ),Z.rXU(Z.aKT),Z.rXU(xe.Ix),Z.rXU(Z.SKi),Z.rXU(xe.nX),Z.rXU(ne,12))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),ee})();class ze{constructor(ee,$e,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=ee,this.childContexts=$e,this.parent=M}get(ee,$e){return ee===xe.nX?this.route:ee===xe.Zp?this.childContexts:this.parent.get(ee,$e)}}const Lt=new Z.nKC("");let ie=(()=>{var ne;class ee{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var x;null===(x=this.outletDataSubscriptions.get(M))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:x}=M,te=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,H.n)(([Te,He,Tt],Jt)=>(Tt={...Te,...He,...Tt},0===Jt?(0,on.of)(Tt):Promise.resolve(Tt)))).subscribe(Te=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(M);const He=(0,Z.HJs)(x.component);if(He)for(const{templateName:Tt}of He.inputs)M.activatedComponentRef.setInput(Tt,Te[Tt]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,te)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:ne,factory:ne.\u0275fac})),ee})();const dt=()=>({provide:Lt,useFactory:lt,deps:[xe.Ix]});function lt(ne){return null!=ne&&ne.componentInputBindingEnabled?new ie:null}const Wt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let tn=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,He,Tt){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=x,this.config=te,this.r=Te,this.z=He,Tt.detach(),this.el=this.r.nativeElement}onClick(M){var x;const te=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(x=this.routerOutlet)&&void 0!==x&&x.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=te&&(this.navCtrl.navigateBack(te,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(ye,8),Z.rXU(Kt),Z.rXU(nr),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ne);return ee=(0,ht.Cg)([Ir({inputs:Wt})],ee),ee})(),vn=(()=>{var ne;class ee{constructor(M,x,te,Te,He){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=He}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(Kt),Z.rXU(Z.aKT),Z.rXU(xe.Ix),Z.rXU(xe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})(),Yn=(()=>{var ne;class ee{constructor(M,x,te,Te,He){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=x,this.elementRef=te,this.router=Te,this.routerLink=He}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(U.hb),Z.rXU(Kt),Z.rXU(Z.aKT),Z.rXU(xe.Ix),Z.rXU(xe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(){return x.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})();const dn=["animated","animation","root","rootParams","swipeGesture"],Cn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let ir=(()=>{var ne;let ee=((0,c.A)(ne=class{constructor(M,x,te,Te,He,Tt){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=He,Tt.detach(),this.el=M.nativeElement,M.nativeElement.delegate=Te.create(x,te),Er(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ne,"\u0275dir",Z.FsC({type:ne,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ne);return ee=(0,ht.Cg)([Ir({inputs:dn,methods:Cn})],ee),ee})(),Ar=(()=>{var ne;class ee{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&this.ionTabsWillChange.emit({tab:te})}onStackDidChange({enteringView:M,tabSwitch:x}){const te=M.stackId;x&&void 0!==te&&(this.tabBar&&(this.tabBar.selectedTab=te),this.ionTabsDidChange.emit({tab:te}))}select(M){const x="string"==typeof M,te=x?M:M.detail.tab,Te=this.outlet.getActiveStackId()===te,He=`${this.outlet.tabsPrefix}/${te}`;if(x||M.stopPropagation(),Te){const Tt=this.outlet.getActiveStackId(),Jt=this.outlet.getLastRouteView(Tt);if((null==Jt?void 0:Jt.url)===He)return;const ln=this.outlet.getRootView(te);return this.navCtrl.navigateRoot(He,{...ln&&He===ln.url&&ln.savedExtras,animated:!0,animationDirection:"back"})}{const Tt=this.outlet.getLastRouteView(te);return this.navCtrl.navigateRoot((null==Tt?void 0:Tt.url)||He,{...null==Tt?void 0:Tt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const x=M.el.getAttribute("slot");x!==this.tabBarSlot&&(this.tabBarSlot=x,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(Kt))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,selectors:[["ion-tabs"]],viewQuery:function(M,x){if(1&M&&Z.GBs(se,7,Z.aKT),2&M){let te;Z.mGM(te=Z.lsd())&&(x.tabsInner=te.first)}},hostBindings:function(M,x){1&M&&Z.bIt("ionTabButtonClick",function(Te){return x.select(Te)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),ee})();const dr=ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne);let $r=(()=>{var ne;class ee{constructor(M,x){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=x}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,Zr(this.elementRef)}handleValueChange(M,x){M===this.elementRef.nativeElement&&(x!==this.lastValue&&(this.lastValue=x,this.onChange(x)),Zr(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),Zr(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(fe.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>Zr(this.elementRef)));const x=M.control;x&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Te=>{if(typeof x[Te]<"u"){const He=x[Te].bind(x);x[Te]=(...Tt)=>{He(...Tt),Zr(this.elementRef)}}})}}return ne=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||ne)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:ne,hostBindings:function(M,x){1&M&&Z.bIt("ionBlur",function(Te){return x._handleBlurEvent(Te.target)})}})),ee})();const Zr=ne=>{dr(()=>{const ee=ne.nativeElement,$e=null!=ee.value&&ee.value.toString().length>0,M=fr(ee);Ri(ee,M);const x=ee.closest("ion-item");x&&Ri(x,$e?[...M,"item-has-value"]:M)})},fr=ne=>{const ee=ne.classList,$e=[];for(let M=0;M{const $e=ne.classList;$e.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),$e.add(...ee)},gi=(ne,ee)=>ne.substring(0,ee.length)===ee;class pr{shouldDetach(ee){return!1}shouldAttach(ee){return!1}store(ee,$e){}retrieve(ee){return null}shouldReuseRoute(ee,$e){if(ee.routeConfig!==$e.routeConfig)return!1;const M=ee.params,x=$e.params,te=Object.keys(M),Te=Object.keys(x);if(te.length!==Te.length)return!1;for(const He of te)if(x[He]!==M[He])return!1;return!0}}class $t{constructor(ee){(0,c.A)(this,"ctrl",void 0),this.ctrl=ee}create(ee){return this.ctrl.create(ee||{})}dismiss(ee,$e,M){return this.ctrl.dismiss(ee,$e,M)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,gt,C)=>{"use strict";C.d(gt,{hG:()=>Ci,hB:()=>ht,U1:()=>En,mC:()=>On,Jm:()=>Jn,QW:()=>nt,b_:()=>Nt,I9:()=>Ht,ME:()=>fn,HW:()=>pn,tN:()=>Sr,eY:()=>Pn,ZB:()=>Nn,hU:()=>gn,W9:()=>en,Q8:()=>Nr,M0:()=>tr,lO:()=>Jr,eU:()=>mr,iq:()=>ur,$w:()=>ii,uz:()=>Qr,Dg:()=>pe,he:()=>ye,nf:()=>ze,oS:()=>dt,MC:()=>lt,cA:()=>Wt,Sb:()=>Lr,To:()=>fr,Ki:()=>Ri,Rg:()=>Tr,ln:()=>ne,Gp:()=>$e,eP:()=>M,Nm:()=>x,Ip:()=>te,HP:()=>Tt,nc:()=>$n,BC:()=>kn,ai:()=>zr,bv:()=>Vn,Xi:()=>wt,_t:()=>he,N7:()=>li,oY:()=>ei,Je:()=>H,Gw:()=>X});var h=C(9842),c=C(4438),Z=C(4341),xe=C(2872),U=C(1635),ue=C(3726),oe=C(177),Ke=C(7650),Xe=(C(9986),C(2725),C(8454),C(3314),C(8607),C(3664)),ct=C(464),Dt=C(5465),Rt=C(6002),Vt=(C(8476),C(9672));C(1970),C(6411);var ge=C(467);const Be=Xe.i,ke=function(){var w=(0,ge.A)(function*(j,re){if(!(typeof window>"u"))return yield Be(),(0,Vt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),re)});return function(re,P){return w.apply(this,arguments)}}(),Pe=["*"],_t=["outletContent"];function tt(w,j){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const re=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",re.template)}}let ht=(()=>{var w;class j extends xe.fL{constructor(P,Ee){super(P,Ee)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,xe.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionChange",function(sr){return Ee._handleIonChange(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),H=(()=>{var w;class j extends xe.fL{constructor(P,Ee){super(P,Ee)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionChange",function(sr){return Ee._handleChangeEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})(),X=(()=>{var w;class j extends xe.fL{constructor(P,Ee){super(P,Ee)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionInput",function(sr){return Ee._handleInputEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),j})();const fe=(w,j)=>{const re=w.prototype;j.forEach(P=>{Object.defineProperty(re,P,{get(){return this.el[P]},set(Ee){this.z.runOutsideAngular(()=>this.el[P]=Ee)},configurable:!0})})},se=(w,j)=>{const re=w.prototype;j.forEach(P=>{re[P]=function(){const Ee=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ee))}})},ve=(w,j,re)=>{re.forEach(P=>w[P]=(0,ue.R)(j,P))};function it(w){return function(re){const{defineCustomElementFn:P,inputs:Ee,methods:ot}=w;return void 0!==P&&P(),Ee&&fe(re,Ee),ot&&se(re,ot),re}}let En=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({})],j),j})(),On=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({})],j),j})(),Jn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],j),j})(),nt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["collapse"]})],j),j})(),Nt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),Ht=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["mode"]})],j),j})(),fn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode","translucent"]})],j),j})(),pn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode"]})],j),j})(),Sr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode"]})],j),j})(),Pn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],j),j})(),Nn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","disabled","mode","outline"]})],j),j})(),gn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],j),j})(),en=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],j),j})(),Nr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],j),j})(),tr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["collapse","mode","translucent"]})],j),j})(),Jr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["fixed"]})],j),j})(),mr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["collapse","mode","translucent"]})],j),j})(),ur=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],j),j})(),ii=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],j),j})(),Qr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),pe=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode","sticky"]})],j),j})(),ye=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode","position"]})],j),j})(),ze=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],j),j})(),dt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],j),j})(),lt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["autoHide","color","disabled","menu","mode","type"]})],j),j})(),Wt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["autoHide","menu"]})],j),j})(),fr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],j),j})(),Ri=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],j),j})(),ne=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({})],j),j})(),$e=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],j),j})(),M=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["disabled","layout","mode","type","value"]})],j),j})(),x=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],j),j})(),te=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["disabled","value"]})],j),j})(),Tt=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["contentId","disabled","when"]})],j),j})(),$n=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],j),j})(),kn=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","size"]})],j),j})(),zr=(()=>{var w;let j=((0,h.A)(w=class{constructor(P,Ee,ot){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=ot,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Pe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return j=(0,U.Cg)([it({inputs:["color","mode"]})],j),j})(),Tr=(()=>{var w;class j extends xe.Rg{constructor(P,Ee,ot,sr,ni,z,me,Oe){super(P,Ee,ot,sr,ni,z,me,Oe),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Oe}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(oe.aZ),c.rXU(c.aKT),c.rXU(Ke.Ix),c.rXU(c.SKi),c.rXU(Ke.nX),c.rXU(w,12))}),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ee){if(1&P&&c.GBs(_t,7,c.c1b),2&P){let ot;c.mGM(ot=c.lsd())&&(Ee.outletContent=ot.first)}},features:[c.Vt3],ngContentSelectors:Pe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ee){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),j})(),li=(()=>{var w;class j extends xe.CE{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(w)))(Ee||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),j})(),ei=(()=>{var w;class j extends xe.pF{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(w)))(Ee||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),j})(),Lr=(()=>{var w;class j extends xe.Sb{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(w)))(Ee||w)}})()),(0,h.A)(j,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ee){1&P&&c.DNE(0,tt,2,1,"div",0),2&P&&c.Y8G("ngIf",Ee.isCmpOpen||Ee.keepContentsMounted)},dependencies:[oe.bT,oe.T3],encapsulation:2,changeDetection:0})),j})();const Kn={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Gn),multi:!0};let Gn=(()=>{var w;class j extends Z.zX{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(w)))(Ee||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("max",Ee._enabled?Ee.max:null)},features:[c.Jv_([Kn]),c.Vt3]})),j})();const ao={provide:Z.cz,useExisting:(0,c.Rfq)(()=>ui),multi:!0};let ui=(()=>{var w;class j extends Z.VZ{}return w=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(w)))(Ee||w)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("min",Ee._enabled?Ee.min:null)},features:[c.Jv_([ao]),c.Vt3]})),j})(),Ci=(()=>{var w;class j extends xe.Kb{constructor(){super(Rt.a)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),wt=(()=>{var w;class j extends xe.Kb{constructor(){super(Rt.l)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),he=(()=>{var w;class j extends xe._t{constructor(){super(Dt.m)}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),j})(),le=(()=>{var w;class j extends xe.Kb{constructor(){super(Rt.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(xe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),j})();class Ue extends xe.Kb{constructor(){super(Rt.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(xe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(j){return super.create({...j,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const st=(w,j,re)=>()=>{const P=j.defaultView;if(P&&typeof window<"u"){(0,ct.s)({...w,_zoneGate:ot=>re.run(ot)});const Ee="__zone_symbol__addEventListener"in j.body?"__zone_symbol__addEventListener":"addEventListener";return function Qe(){var w=[];if(typeof window<"u"){var j=window;(!j.customElements||j.Element&&(!j.Element.prototype.closest||!j.Element.prototype.matches||!j.Element.prototype.remove||!j.Element.prototype.getRootNode))&&w.push(C.e(7278).then(C.t.bind(C,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||j.NodeList&&!j.NodeList.prototype.forEach||!j.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(C.e(9329).then(C.t.bind(C,7783,23)))}return Promise.all(w)}().then(()=>ke(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:xe.er,jmp:ot=>re.runOutsideAngular(ot),ael(ot,sr,ni,z){ot[Ee](sr,ni,z)},rel(ot,sr,ni,z){ot.removeEventListener(sr,ni,z)}}))}};let Vn=(()=>{var w;class j{static forRoot(P={}){return{ngModule:j,providers:[{provide:xe.sR,useValue:P},{provide:c.hnV,useFactory:st,multi:!0,deps:[xe.sR,oe.qQ,c.SKi]},xe.Yq,(0,xe.YV)()]}}}return w=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(j,"\u0275mod",c.$C({type:w})),(0,h.A)(j,"\u0275inj",c.G2t({providers:[le,Ue],imports:[oe.MD]})),j})()},2214:(Tn,gt,C)=>{"use strict";C.d(gt,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=C(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Tn,gt,C)=>{"use strict";C.d(gt,{$P:()=>Rt,sN:()=>Et,eS:()=>It});var h=C(467),c=C(4438),Z=C(2771),xe=C(8359),U=C(1413),ue=C(3236),oe=C(1985),Ke=C(9974),Je=C(4360),Se=C(8750),Ye=C(1584);var Xe=C(5558);class ct{constructor(){this.subject=new Z.m(1),this.subscriptions=new xe.yU}doFilter(Ae){this.subject.next(Ae)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Ae,Qe){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Ae]){const Be=ge[Ae].currentValue;null!=Be&&Qe(Be)}}))}has(Ae,Qe){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Ae]&&Qe(ge[Ae].currentValue)}))}notFirst(Ae,Qe){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Ae]&&!ge[Ae].isFirstChange()&&Qe(ge[Ae].currentValue)}))}notFirstAndEmpty(Ae,Qe){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Ae]&&!ge[Ae].isFirstChange()){const Be=ge[Ae].currentValue;null!=Be&&Qe(Be)}}))}}const Dt=new c.nKC("NGX_ECHARTS_CONFIG");let Rt=(()=>{var mt;class Ae{constructor(ge,Be,ke){this.el=Be,this.ngZone=ke,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new U.B,this.changeFilter=new ct,this.resizeObFired=!1,this.echarts=ge.echarts,this.theme=ge.theme||null}ngOnChanges(ge){this.changeFilter.doFilter(ge)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Ze(mt,Ae=ue.E,Qe){const ge=(0,Ye.O)(mt,Ae);return function De(mt,Ae){return(0,Ke.N)((Qe,ge)=>{const{leading:Be=!0,trailing:ke=!1}=null!=Ae?Ae:{};let Pe=!1,_t=null,Pt=null,mn=!1;const vt=()=>{null==Pt||Pt.unsubscribe(),Pt=null,ke&&(ht(),mn&&ge.complete())},tt=()=>{Pt=null,mn&&ge.complete()},on=we=>Pt=(0,Se.Tg)(mt(we)).subscribe((0,Je._)(ge,vt,tt)),ht=()=>{if(Pe){Pe=!1;const we=_t;_t=null,ge.next(we),!mn&&on(we)}};Qe.subscribe((0,Je._)(ge,we=>{Pe=!0,_t=we,(!Pt||Pt.closed)&&(Be?ht():on(we))},()=>{mn=!0,(!(ke&&Pe&&Pt)||Pt.closed)&&ge.complete()}))})}(()=>ge,Qe)}(100,ue.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(ge=>{for(const Be of ge)Be.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",ge=>this.onOptionsChange(ge)),this.changeFilter.notFirstAndEmpty("merge",ge=>this.setOption(ge)),this.changeFilter.has("loading",ge=>this.toggleLoading(!!ge)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(ge){this.chart?ge?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(Be=>ge?Be.showLoading(this.loadingType,this.loadingOpts):Be.hideLoading())}setOption(ge,Be){if(this.chart)try{this.chart.setOption(ge,Be)}catch(ke){console.error(ke),this.optionsError.emit(ke)}}refreshChart(){var ge=this;return(0,h.A)(function*(){ge.dispose(),yield ge.initChart()})()}createChart(){const ge=this.el.nativeElement;if(window&&window.getComputedStyle){const Be=window.getComputedStyle(ge,null).getPropertyValue("height");(!Be||"0px"===Be)&&(!ge.style.height||"0px"===ge.style.height)&&(ge.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:ke})=>ke(ge,this.theme,this.initOpts)))}initChart(){var ge=this;return(0,h.A)(function*(){yield ge.onOptionsChange(ge.options),ge.merge&&ge.chart&&ge.setOption(ge.merge)})()}onOptionsChange(ge){var Be=this;return(0,h.A)(function*(){ge&&(Be.chart||(Be.chart=yield Be.createChart(),Be.chart$.next(Be.chart),Be.chartInit.emit(Be.chart)),Be.setOption(Be.options,!0))})()}createLazyEvent(ge){return this.chartInit.pipe((0,Xe.n)(Be=>new oe.c(ke=>(Be.on(ge,Pe=>this.ngZone.run(()=>ke.next(Pe))),()=>{this.chart&&(this.chart.isDisposed()||Be.off(ge))}))))}}return(mt=Ae).\u0275fac=function(ge){return new(ge||mt)(c.rXU(Dt),c.rXU(c.aKT),c.rXU(c.SKi))},mt.\u0275dir=c.FsC({type:mt,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Ae})();const It=(mt={})=>({provide:Dt,useFactory:()=>({...mt,echarts:()=>C.e(9697).then(C.bind(C,9697))})}),Vt=mt=>({provide:Dt,useValue:mt});let Et=(()=>{var mt;class Ae{static forRoot(ge){return{ngModule:Ae,providers:[Vt(ge)]}}static forChild(){return{ngModule:Ae}}}return(mt=Ae).\u0275fac=function(ge){return new(ge||mt)},mt.\u0275mod=c.$C({type:mt}),mt.\u0275inj=c.G2t({}),Ae})()},7616:(Tn,gt,C)=>{"use strict";C.d(gt,{E:()=>Ae,n:()=>Qe});var h=C(4438),c=C(177);const Z=["flamegraph-node",""];function xe(ge,Be){if(1&ge){const ke=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const _t=h.eBV(ke).$implicit,Pt=h.XpG();return h.Njj(Pt.frameClick.emit(_t.original))})("mouseOverZoneless",function(){const _t=h.eBV(ke).$implicit,Pt=h.XpG();return h.Njj(Pt.frameMouseEnter.emit(_t.original))})("mouseLeaveZoneless",function(){const _t=h.eBV(ke).$implicit,Pt=h.XpG();return h.Njj(Pt.frameMouseLeave.emit(_t.original))})("zoom",function(){const _t=h.eBV(ke).$implicit,Pt=h.XpG();return h.Njj(Pt.zoom.emit(_t))}),h.k0s()()()()}if(2&ge){const ke=Be.$implicit,Pe=h.XpG();h.xc7("position","absolute")("transform","translate("+Pe.getLeft(ke)+"px,"+Pe.getTop(ke)+"px)")("height",Pe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===Pe.minimumBarSize||Pe.getWidth(ke)>Pe.minimumBarSize)),h.R7$(),h.xc7("width",Pe.getWidth(ke),"px"),h.R7$(),h.SpI(" ",ke.label," "),h.R7$(),h.xc7("transform","scaleX("+Pe.getWidth(ke)/Pe.width+")")("height",Pe.levelHeight,"px"),h.R7$(2),h.Y8G("height",Pe.levelHeight)("navigable",ke.navigable)("color",ke.color)}}function U(ge,Be){if(1&ge){const ke=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(_t){h.eBV(ke);const Pt=h.XpG();return h.Njj(Pt.frameClick.emit(_t))})("frameMouseEnter",function(_t){h.eBV(ke);const Pt=h.XpG();return h.Njj(Pt.onFrameMouseEnter(_t))})("frameMouseLeave",function(_t){h.eBV(ke);const Pt=h.XpG();return h.Njj(Pt.onFrameMouseLeave(_t))})("zoom",function(_t){h.eBV(ke);const Pt=h.XpG();return h.Njj(Pt.onZoom(_t))}),h.k0s()}if(2&ge){const ke=h.XpG();h.xc7("height",ke.depth*ke.levelHeight,"px")("width",ke.width,"px"),h.Y8G("layout",ke.siblingLayout)("data",ke.entries)("depth",ke.depth)("levelHeight",ke.levelHeight)("width",ke.width)("minimumBarSize",ke.minimumBarSize)}}const ue=ge=>ge.reduce((Be,ke)=>Math.max(Be,ke.value,ue(ke.children||[])),-1/0),oe=([ge,Be],ke)=>ge+(Be-ge)*ke,Ke=(ge,Be,ke,Pe,_t=null,Pt=0,mn=1,vt=0)=>{const tt=[];let on=0;ge.forEach(we=>{on+=we.value});const ht=[];return ge.forEach(we=>{var H,X,fe;let se=mn/ge.length;"relative"===Be&&(se=we.value/on*mn||0);const ve=Math.min(we.value/ke,1),Fe=we.color||`hsl(${null!==(H=oe(Pe.hue,ve))&&void 0!==H?H:0}, ${null!==(X=oe(Pe.saturation,ve))&&void 0!==X?X:80}%, ${null!==(fe=oe(Pe.lightness,ve))&&void 0!==fe?fe:0}%)`,sn={label:we.label,value:we.value,siblings:ht,color:Fe,widthRatio:se,originalWidthRatio:se,originalLeftRatio:Pt,leftRatio:Pt,navigable:!1,rowNumber:vt,original:we,children:[],parent:_t};_t&&_t.children.push(sn);const Sn=Ke(we.children||[],Be,ke,Pe,sn,Pt,se,vt+1);ht.push(sn),tt.push(sn,...Sn),Pt+=se}),tt},Je=ge=>{if(!ge||!ge.length)return 0;let Be=0;for(const ke of ge)Be=Math.max(1+Je(ke.children),Be);return Be},Ye=(ge,Be)=>{Be.widthRatio=0,Be.leftRatio=ge,Be.children.forEach(ke=>Ye(ge,ke))},Ze=ge=>{const Be=ge.siblings.indexOf(ge);for(let ke=0;ke{let _t=0;ge.forEach(Pt=>{_t+=Pt.value}),ge.forEach(Pt=>{let mn=Pt.value/_t*Pe;"equal"===Be&&(mn=Pe/ge.length),Pt.widthRatio=mn,Pt.leftRatio=ke,ct(Pt.children,Be,ke,mn),ke+=mn})},Dt=ge=>{ge.navigable=!1,ge.leftRatio=ge.originalLeftRatio,ge.widthRatio=ge.originalWidthRatio,ge.children.forEach(Dt)},It={hue:[50,0],saturation:[80,80],lightness:[55,60]};let Vt=(()=>{class ge{constructor(ke,Pe,_t){this._ngZone=ke,this._element=Pe,this._renderer=_t,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",ke=>this.mouseOverZoneless.emit(ke)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",ke=>this.mouseLeaveZoneless.emit(ke))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return ge.\u0275fac=function(ke){return new(ke||ge)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(ke,Pe){1&ke&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return Pe.zoom.emit()}),h.k0s()),2&ke&&(h.AVh("ngx-fg-navigable",Pe.navigable),h.BMQ("height",Pe.height)("fill",Pe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ge})(),Et=(()=>{class ge{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(ke){this.entries=ke}get height(){return this.levelHeight*this.depth}getTop(ke){return ke.rowNumber*this.levelHeight}getLeft(ke){return ke.leftRatio*this.width}getWidth(ke){return ke.widthRatio*this.width||0}}return ge.\u0275fac=function(ke){return new(ke||ge)},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(ke,Pe){1&ke&&(h.j41(0,"div",0),h.DNE(1,xe,6,18,"div",1),h.k0s()),2&ke&&(h.AVh("ngx-fg-grayscale",Pe.selectedData&&Pe.selectedData.length),h.R7$(),h.Y8G("ngForOf",Pe.entries))},dependencies:[c.Sq,Vt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ge})();const mt=typeof ResizeObserver<"u";let Ae=(()=>{class ge{constructor(ke,Pe,_t){this._el=ke,this.cdr=Pe,this._ngZone=_t,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(ke){var Pe,_t;this._data=ke.data,this._colors=null!==(Pe=ke.color)&&void 0!==Pe?Pe:It,this.minimumBarSize=null!==(_t=ke.minimumBarSize)&&void 0!==_t?_t:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var ke;const Pe=null===(ke=this._el.nativeElement)||void 0===ke?void 0:ke.parentElement;Pe&&null===this.width&&mt&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(Pe))}ngOnDestroy(){var ke;const Pe=null===(ke=this._el.nativeElement)||void 0===ke?void 0:ke.parentElement;Pe&&this._resizeObserver&&mt&&this._resizeObserver.unobserve(Pe)}_onParentResize(){var ke;const Pe=null===(ke=this._el.nativeElement)||void 0===ke?void 0:ke.parentElement;Pe&&(this.width=Pe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:ke,saturation:Pe,lightness:_t}=this._colors,Pt={hue:Array.isArray(ke)?ke:[ke,ke],saturation:Array.isArray(Pe)?Pe:[Pe,Pe],lightness:Array.isArray(_t)?_t:[_t,_t]};this.entries=Ke(this._data,this.siblingLayout,ue(this._data),Pt),this.depth=Je(this._data)}onZoom(ke){ke.navigable&&Dt(ke),((ge,Be)=>{let ke=ge;for(;ke;)ke.widthRatio=1,ke.leftRatio=0,Ze(ke),ke=ke.parent,ke&&(ke.navigable=!0);ct(ge.children,Be)})(ke,this.siblingLayout)}onFrameMouseEnter(ke){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(ke))}onFrameMouseLeave(ke){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(ke))}}return ge.\u0275fac=function(ke){return new(ke||ge)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(ke,Pe){2&ke&&h.BMQ("style",Pe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(ke,Pe){1&ke&&h.DNE(0,U,1,10,"ngx-flamegraph-graph",0),2&ke&&h.Y8G("ngIf",null!==Pe.width)},dependencies:[c.bT,Et],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),ge})(),Qe=(()=>{class ge{}return ge.\u0275fac=function(ke){return new(ke||ge)},ge.\u0275mod=h.$C({type:ge}),ge.\u0275inj=h.G2t({imports:[c.MD]}),ge})()},9549:(Tn,gt,C)=>{"use strict";C.d(gt,{NN:()=>ao,y2:()=>No});var h=C(467),c=C(177),Z=C(4438),xe=C(1413),U=C(7786),ue=C(7673),oe=C(1584),Ke=C(5558),Je=C(3703),Se=C(3294),De=C(2771),Ye=C(8750),Ze=C(7707),Xe=C(9974);function Dt(wt,he,...le){if(!0===he)return void wt();if(!1===he)return;const W=new Ze.Ms({next:()=>{W.unsubscribe(),wt()}});return(0,Ye.Tg)(he(...le)).subscribe(W)}var It=C(9172),Vt=C(6354),Et=C(6977);function ge(wt,he,le){if("function"==typeof wt?wt===he:wt.has(he))return arguments.length<3?he:le;throw new TypeError("Private element is not present on this object")}C(1594);var Be=C(9842);let Pe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function _t(wt){Pe=wt}const Pt=/[&<>"']/,mn=new RegExp(Pt.source,"g"),vt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tt=new RegExp(vt.source,"g"),on={"&":"&","<":"<",">":">",'"':""","'":"'"},ht=wt=>on[wt];function we(wt,he){if(he){if(Pt.test(wt))return wt.replace(mn,ht)}else if(vt.test(wt))return wt.replace(tt,ht);return wt}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,fe=/(^|[^\[])\^/g;function se(wt,he){let le="string"==typeof wt?wt:wt.source;he=he||"";const W={replace:(Ue,Le)=>{let st="string"==typeof Le?Le:Le.source;return st=st.replace(fe,"$1"),le=le.replace(Ue,st),W},getRegex:()=>new RegExp(le,he)};return W}function ve(wt){try{wt=encodeURI(wt).replace(/%25/g,"%")}catch{return null}return wt}const Fe={exec:()=>null};function it(wt,he){const W=wt.replace(/\|/g,(Le,st,zt)=>{let In=!1,Vn=st;for(;--Vn>=0&&"\\"===zt[Vn];)In=!In;return In?"|":" |"}).split(/ \|/);let Ue=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),he)if(W.length>he)W.splice(he);else for(;W.length0)return{type:"space",raw:le[0]}}code(he){const le=this.rules.block.code.exec(he);if(le){const W=le[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:le[0],codeBlockStyle:"indented",text:this.options.pedantic?W:sn(W,"\n")}}}fences(he){const le=this.rules.block.fences.exec(he);if(le){const W=le[0],Ue=function Kt(wt,he){const le=wt.match(/^(\s+)(?:```)/);if(null===le)return he;const W=le[1];return he.split("\n").map(Ue=>{const Le=Ue.match(/^\s+/);if(null===Le)return Ue;const[st]=Le;return st.length>=W.length?Ue.slice(W.length):Ue}).join("\n")}(W,le[3]||"");return{type:"code",raw:W,lang:le[2]?le[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):le[2],text:Ue}}}heading(he){const le=this.rules.block.heading.exec(he);if(le){let W=le[2].trim();if(/#$/.test(W)){const Ue=sn(W,"#");(this.options.pedantic||!Ue||/ $/.test(Ue))&&(W=Ue.trim())}return{type:"heading",raw:le[0],depth:le[1].length,text:W,tokens:this.lexer.inline(W)}}}hr(he){const le=this.rules.block.hr.exec(he);if(le)return{type:"hr",raw:le[0]}}blockquote(he){const le=this.rules.block.blockquote.exec(he);if(le){let W=le[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");W=sn(W.replace(/^ *>[ \t]?/gm,""),"\n");const Ue=this.lexer.state.top;this.lexer.state.top=!0;const Le=this.lexer.blockTokens(W);return this.lexer.state.top=Ue,{type:"blockquote",raw:le[0],tokens:Le,text:W}}}list(he){let le=this.rules.block.list.exec(he);if(le){let W=le[1].trim();const Ue=W.length>1,Le={type:"list",raw:"",ordered:Ue,start:Ue?+W.slice(0,-1):"",loose:!1,items:[]};W=Ue?`\\d{1,9}\\${W.slice(-1)}`:`\\${W}`,this.options.pedantic&&(W=Ue?W:"[*+-]");const st=new RegExp(`^( {0,3}${W})((?:[\t ][^\\n]*)?(?:\\n|$))`);let zt="",In="",Vn=!1;for(;he;){let w=!1;if(!(le=st.exec(he))||this.rules.block.hr.test(he))break;zt=le[0],he=he.substring(zt.length);let j=le[2].split("\n",1)[0].replace(/^\t+/,ni=>" ".repeat(3*ni.length)),re=he.split("\n",1)[0],P=0;this.options.pedantic?(P=2,In=j.trimStart()):(P=le[2].search(/[^ ]/),P=P>4?1:P,In=j.slice(P),P+=le[1].length);let Ee=!1;if(!j&&/^ *$/.test(re)&&(zt+=re+"\n",he=he.substring(re.length+1),w=!0),!w){const ni=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Oe=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;he;){const et=he.split("\n",1)[0];if(re=et,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),me.test(re)||Oe.test(re)||ni.test(re)||z.test(he))break;if(re.search(/[^ ]/)>=P||!re.trim())In+="\n"+re.slice(P);else{if(Ee||j.search(/[^ ]/)>=4||me.test(j)||Oe.test(j)||z.test(j))break;In+="\n"+re}!Ee&&!re.trim()&&(Ee=!0),zt+=et+"\n",he=he.substring(et.length+1),j=re.slice(P)}}Le.loose||(Vn?Le.loose=!0:/\n *\n *$/.test(zt)&&(Vn=!0));let sr,ot=null;this.options.gfm&&(ot=/^\[[ xX]\] /.exec(In),ot&&(sr="[ ] "!==ot[0],In=In.replace(/^\[[ xX]\] +/,""))),Le.items.push({type:"list_item",raw:zt,task:!!ot,checked:sr,loose:!1,text:In,tokens:[]}),Le.raw+=zt}Le.items[Le.items.length-1].raw=zt.trimEnd(),Le.items[Le.items.length-1].text=In.trimEnd(),Le.raw=Le.raw.trimEnd();for(let w=0;w"space"===P.type),re=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));Le.loose=re}if(Le.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Le=le[3]?le[3].substring(1,le[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):le[3];return{type:"def",tag:W,raw:le[0],href:Ue,title:Le}}}table(he){const le=this.rules.block.table.exec(he);if(!le||!/[:|]/.test(le[2]))return;const W=it(le[1]),Ue=le[2].replace(/^\||\| *$/g,"").split("|"),Le=le[3]&&le[3].trim()?le[3].replace(/\n[ \t]*$/,"").split("\n"):[],st={type:"table",raw:le[0],header:[],align:[],rows:[]};if(W.length===Ue.length){for(const zt of Ue)/^ *-+: *$/.test(zt)?st.align.push("right"):/^ *:-+: *$/.test(zt)?st.align.push("center"):/^ *:-+ *$/.test(zt)?st.align.push("left"):st.align.push(null);for(const zt of W)st.header.push({text:zt,tokens:this.lexer.inline(zt)});for(const zt of Le)st.rows.push(it(zt,st.header.length).map(In=>({text:In,tokens:this.lexer.inline(In)})));return st}}lheading(he){const le=this.rules.block.lheading.exec(he);if(le)return{type:"heading",raw:le[0],depth:"="===le[2].charAt(0)?1:2,text:le[1],tokens:this.lexer.inline(le[1])}}paragraph(he){const le=this.rules.block.paragraph.exec(he);if(le){const W="\n"===le[1].charAt(le[1].length-1)?le[1].slice(0,-1):le[1];return{type:"paragraph",raw:le[0],text:W,tokens:this.lexer.inline(W)}}}text(he){const le=this.rules.block.text.exec(he);if(le)return{type:"text",raw:le[0],text:le[0],tokens:this.lexer.inline(le[0])}}escape(he){const le=this.rules.inline.escape.exec(he);if(le)return{type:"escape",raw:le[0],text:we(le[1])}}tag(he){const le=this.rules.inline.tag.exec(he);if(le)return!this.lexer.state.inLink&&/^/i.test(le[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:le[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:le[0]}}link(he){const le=this.rules.inline.link.exec(he);if(le){const W=le[2].trim();if(!this.options.pedantic&&/^$/.test(W))return;const st=sn(W.slice(0,-1),"\\");if((W.length-st.length)%2==0)return}else{const st=function Sn(wt,he){if(-1===wt.indexOf(he[1]))return-1;let le=0;for(let W=0;W-1){const In=(0===le[0].indexOf("!")?5:4)+le[1].length+st;le[2]=le[2].substring(0,st),le[0]=le[0].substring(0,In).trim(),le[3]=""}}let Ue=le[2],Le="";if(this.options.pedantic){const st=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ue);st&&(Ue=st[1],Le=st[3])}else Le=le[3]?le[3].slice(1,-1):"";return Ue=Ue.trim(),/^$/.test(W)?Ue.slice(1):Ue.slice(1,-1)),qe(le,{href:Ue&&Ue.replace(this.rules.inline.anyPunctuation,"$1"),title:Le&&Le.replace(this.rules.inline.anyPunctuation,"$1")},le[0],this.lexer)}}reflink(he,le){let W;if((W=this.rules.inline.reflink.exec(he))||(W=this.rules.inline.nolink.exec(he))){const Le=le[(W[2]||W[1]).replace(/\s+/g," ").toLowerCase()];if(!Le){const st=W[0].charAt(0);return{type:"text",raw:st,text:st}}return qe(W,Le,W[0],this.lexer)}}emStrong(he,le,W=""){let Ue=this.rules.inline.emStrongLDelim.exec(he);if(!(!Ue||Ue[3]&&W.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!Ue[1]&&!Ue[2]||!W||this.rules.inline.punctuation.exec(W))){const st=[...Ue[0]].length-1;let zt,In,Vn=st,w=0;const j="*"===Ue[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(j.lastIndex=0,le=le.slice(-1*he.length+st);null!=(Ue=j.exec(le));){if(zt=Ue[1]||Ue[2]||Ue[3]||Ue[4]||Ue[5]||Ue[6],!zt)continue;if(In=[...zt].length,Ue[3]||Ue[4]){Vn+=In;continue}if((Ue[5]||Ue[6])&&st%3&&!((st+In)%3)){w+=In;continue}if(Vn-=In,Vn>0)continue;In=Math.min(In,In+Vn+w);const re=[...Ue[0]][0].length,P=he.slice(0,st+Ue.index+re+In);if(Math.min(st,In)%2){const ot=P.slice(1,-1);return{type:"em",raw:P,text:ot,tokens:this.lexer.inlineTokens(ot)}}const Ee=P.slice(2,-2);return{type:"strong",raw:P,text:Ee,tokens:this.lexer.inlineTokens(Ee)}}}}codespan(he){const le=this.rules.inline.code.exec(he);if(le){let W=le[2].replace(/\n/g," ");const Ue=/[^ ]/.test(W),Le=/^ /.test(W)&&/ $/.test(W);return Ue&&Le&&(W=W.substring(1,W.length-1)),W=we(W,!0),{type:"codespan",raw:le[0],text:W}}}br(he){const le=this.rules.inline.br.exec(he);if(le)return{type:"br",raw:le[0]}}del(he){const le=this.rules.inline.del.exec(he);if(le)return{type:"del",raw:le[0],text:le[2],tokens:this.lexer.inlineTokens(le[2])}}autolink(he){const le=this.rules.inline.autolink.exec(he);if(le){let W,Ue;return"@"===le[2]?(W=we(le[1]),Ue="mailto:"+W):(W=we(le[1]),Ue=W),{type:"link",raw:le[0],text:W,href:Ue,tokens:[{type:"text",raw:W,text:W}]}}}url(he){let le;if(le=this.rules.inline.url.exec(he)){let Le,st;if("@"===le[2])Le=we(le[0]),st="mailto:"+Le;else{let zt;do{var W,Ue;zt=le[0],le[0]=null!==(W=null===(Ue=this.rules.inline._backpedal.exec(le[0]))||void 0===Ue?void 0:Ue[0])&&void 0!==W?W:""}while(zt!==le[0]);Le=we(le[0]),st="www."===le[1]?"http://"+le[0]:le[0]}return{type:"link",raw:le[0],text:Le,href:st,tokens:[{type:"text",raw:Le,text:Le}]}}}inlineText(he){const le=this.rules.inline.text.exec(he);if(le){let W;return W=this.lexer.state.inRawBlock?le[0]:we(le[0]),{type:"text",raw:le[0],text:W}}}}const vr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jn=/(?:[*+-]|\d{1,9}[.)])/,nt=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Jn).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Nt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,fn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,pn=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",fn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sr=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jn).getRegex(),Pn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Nn=/|$))/,gn=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Nn).replace("tag",Pn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),en=se(Nt).replace("hr",vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex(),Ir={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",en).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:pn,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:vr,html:gn,lheading:nt,list:Sr,newline:/^(?: *(?:\n|$))+/,paragraph:en,table:Fe,text:/^[^\n]+/},Nr=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex(),Zn={...Ir,table:Nr,paragraph:se(Nt).replace("hr",vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Pn).getRegex()},Dr={...Ir,html:se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Nn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Nt).replace("hr",vr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},tr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mr=/^( {2,}|\\)\n(?!\s*$)/,Pr="\\p{P}\\p{S}",cr=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Pr).getRegex(),ii=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pr).getRegex(),Ai=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pr).getRegex(),Qr=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pr).getRegex(),pe=se(/\\([punct])/,"gu").replace(/punct/g,Pr).getRegex(),rt=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Mt=se(Nn).replace("(?:--\x3e|$)","--\x3e").getRegex(),ut=se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Mt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ye=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ze=se(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",fn).getRegex(),Lt=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",fn).getRegex(),dt={_backpedal:Fe,anyPunctuation:pe,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:mr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Fe,emStrongLDelim:ii,emStrongRDelimAst:Ai,emStrongRDelimUnd:Qr,escape:tr,link:ye,nolink:Lt,punctuation:cr,reflink:ze,reflinkSearch:se("reflink|nolink(?!\\()","g").replace("reflink",ze).replace("nolink",Lt).getRegex(),tag:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\In+" ".repeat(Vn.length));he;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(zt=>!!(W=zt.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.space(he)){he=he.substring(W.raw.length),1===W.raw.length&&le.length>0?le[le.length-1].raw+="\n":le.push(W);continue}if(W=this.tokenizer.code(he)){he=he.substring(W.raw.length),Ue=le[le.length-1],!Ue||"paragraph"!==Ue.type&&"text"!==Ue.type?le.push(W):(Ue.raw+="\n"+W.raw,Ue.text+="\n"+W.text,this.inlineQueue[this.inlineQueue.length-1].src=Ue.text);continue}if(W=this.tokenizer.fences(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.heading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.hr(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.blockquote(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.list(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.html(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.def(he)){he=he.substring(W.raw.length),Ue=le[le.length-1],!Ue||"paragraph"!==Ue.type&&"text"!==Ue.type?this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title}):(Ue.raw+="\n"+W.raw,Ue.text+="\n"+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=Ue.text);continue}if(W=this.tokenizer.table(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.lheading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(Le=he,this.options.extensions&&this.options.extensions.startBlock){let zt=1/0;const In=he.slice(1);let Vn;this.options.extensions.startBlock.forEach(w=>{Vn=w.call({lexer:this},In),"number"==typeof Vn&&Vn>=0&&(zt=Math.min(zt,Vn))}),zt<1/0&&zt>=0&&(Le=he.substring(0,zt+1))}if(this.state.top&&(W=this.tokenizer.paragraph(Le))){Ue=le[le.length-1],st&&"paragraph"===Ue.type?(Ue.raw+="\n"+W.raw,Ue.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ue.text):le.push(W),st=Le.length!==he.length,he=he.substring(W.raw.length);continue}if(W=this.tokenizer.text(he)){he=he.substring(W.raw.length),Ue=le[le.length-1],Ue&&"text"===Ue.type?(Ue.raw+="\n"+W.raw,Ue.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ue.text):le.push(W);continue}if(he){const zt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(zt);break}throw new Error(zt)}}return this.state.top=!0,le}inline(he,le=[]){return this.inlineQueue.push({src:he,tokens:le}),le}inlineTokens(he,le=[]){let W,Ue,Le,zt,In,Vn,st=he;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(zt=this.tokenizer.rules.inline.reflinkSearch.exec(st));)w.includes(zt[0].slice(zt[0].lastIndexOf("[")+1,-1))&&(st=st.slice(0,zt.index)+"["+"a".repeat(zt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(zt=this.tokenizer.rules.inline.blockSkip.exec(st));)st=st.slice(0,zt.index)+"["+"a".repeat(zt[0].length-2)+"]"+st.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(zt=this.tokenizer.rules.inline.anyPunctuation.exec(st));)st=st.slice(0,zt.index)+"++"+st.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;he;)if(In||(Vn=""),In=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(W=w.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.escape(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.tag(he)){he=he.substring(W.raw.length),Ue=le[le.length-1],Ue&&"text"===W.type&&"text"===Ue.type?(Ue.raw+=W.raw,Ue.text+=W.text):le.push(W);continue}if(W=this.tokenizer.link(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(W.raw.length),Ue=le[le.length-1],Ue&&"text"===W.type&&"text"===Ue.type?(Ue.raw+=W.raw,Ue.text+=W.text):le.push(W);continue}if(W=this.tokenizer.emStrong(he,st,Vn)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.codespan(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.br(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.del(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.autolink(he)){he=he.substring(W.raw.length),le.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(he))){he=he.substring(W.raw.length),le.push(W);continue}if(Le=he,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const j=he.slice(1);let re;this.options.extensions.startInline.forEach(P=>{re=P.call({lexer:this},j),"number"==typeof re&&re>=0&&(w=Math.min(w,re))}),w<1/0&&w>=0&&(Le=he.substring(0,w+1))}if(W=this.tokenizer.inlineText(Le)){he=he.substring(W.raw.length),"_"!==W.raw.slice(-1)&&(Vn=W.raw.slice(-1)),In=!0,Ue=le[le.length-1],Ue&&"text"===Ue.type?(Ue.raw+=W.raw,Ue.text+=W.text):le.push(W);continue}if(he){const w="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return le}}class Cn{constructor(he){(0,Be.A)(this,"options",void 0),this.options=he||Pe}code(he,le,W){var Ue;const Le=null===(Ue=(le||"").match(/^\S*/))||void 0===Ue?void 0:Ue[0];return he=he.replace(/\n$/,"")+"\n",Le?'
'+(W?he:we(he,!0))+"
\n":"
"+(W?he:we(he,!0))+"
\n"}blockquote(he){return`
\n${he}
\n`}html(he,le){return he}heading(he,le,W){return`${he}\n`}hr(){return"
\n"}list(he,le,W){const Ue=le?"ol":"ul";return"<"+Ue+(le&&1!==W?' start="'+W+'"':"")+">\n"+he+"\n"}listitem(he,le,W){return`
  • ${he}
  • \n`}checkbox(he){return"'}paragraph(he){return`

    ${he}

    \n`}table(he,le){return le&&(le=`${le}`),"\n\n"+he+"\n"+le+"
    \n"}tablerow(he){return`\n${he}\n`}tablecell(he,le){const W=le.header?"th":"td";return(le.align?`<${W} align="${le.align}">`:`<${W}>`)+he+`\n`}strong(he){return`${he}`}em(he){return`${he}`}codespan(he){return`${he}`}br(){return"
    "}del(he){return`${he}`}link(he,le,W){const Ue=ve(he);if(null===Ue)return W;let Le='
    ",Le}image(he,le,W){const Ue=ve(he);if(null===Ue)return W;let Le=`${W}"colon"===(le=le.toLowerCase())?":":"#"===le.charAt(0)?"x"===le.charAt(1)?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""));continue}case"code":W+=this.renderer.code(Le.text,Le.lang,!!Le.escaped);continue;case"table":{const st=Le;let zt="",In="";for(let w=0;w0&&"paragraph"===re.tokens[0].type?(re.tokens[0].text=sr+" "+re.tokens[0].text,re.tokens[0].tokens&&re.tokens[0].tokens.length>0&&"text"===re.tokens[0].tokens[0].type&&(re.tokens[0].tokens[0].text=sr+" "+re.tokens[0].tokens[0].text)):re.tokens.unshift({type:"text",text:sr+" "}):ot+=sr+" "}ot+=this.parse(re.tokens,Vn),w+=this.renderer.listitem(ot,Ee,!!P)}W+=this.renderer.list(w,zt,In);continue}case"html":W+=this.renderer.html(Le.text,Le.block);continue;case"paragraph":W+=this.renderer.paragraph(this.parseInline(Le.tokens));continue;case"text":{let st=Le,zt=st.tokens?this.parseInline(st.tokens):st.text;for(;Ue+1{const Ue={...W},Le={...this.defaults,...Ue};!0===this.defaults.async&&!1===Ue.async&&(Le.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Le.async=!0);const st=ge($r,this,Ri).call(this,!!Le.silent,!!Le.async);if(typeof le>"u"||null===le)return st(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof le)return st(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected"));if(Le.hooks&&(Le.hooks.options=Le),Le.async)return Promise.resolve(Le.hooks?Le.hooks.preprocess(le):le).then(zt=>wt(zt,Le)).then(zt=>Le.hooks?Le.hooks.processAllTokens(zt):zt).then(zt=>Le.walkTokens?Promise.all(this.walkTokens(zt,Le.walkTokens)).then(()=>zt):zt).then(zt=>he(zt,Le)).then(zt=>Le.hooks?Le.hooks.postprocess(zt):zt).catch(st);try{Le.hooks&&(le=Le.hooks.preprocess(le));let zt=wt(le,Le);Le.hooks&&(zt=Le.hooks.processAllTokens(zt)),Le.walkTokens&&this.walkTokens(zt,Le.walkTokens);let In=he(zt,Le);return Le.hooks&&(In=Le.hooks.postprocess(In)),In}catch(zt){return st(zt)}}}function Ri(wt,he){return le=>{if(le.message+="\nPlease report this to https://github.com/markedjs/marked.",wt){const W="

    An error occurred:

    "+we(le.message+"",!0)+"
    ";return he?Promise.resolve(W):W}if(he)return Promise.reject(le);throw le}}const gi=new class Zr{constructor(...he){(function Qe(wt,he){(function Ae(wt,he){if(he.has(wt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(wt,he),he.add(wt)})(this,$r),(0,Be.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,Be.A)(this,"options",this.setOptions),(0,Be.A)(this,"parse",ge($r,this,fr).call(this,dn.lex,Ar.parse)),(0,Be.A)(this,"parseInline",ge($r,this,fr).call(this,dn.lexInline,Ar.parseInline)),(0,Be.A)(this,"Parser",Ar),(0,Be.A)(this,"Renderer",Cn),(0,Be.A)(this,"TextRenderer",ir),(0,Be.A)(this,"Lexer",dn),(0,Be.A)(this,"Tokenizer",En),(0,Be.A)(this,"Hooks",dr),this.use(...he)}walkTokens(he,le){let W=[];for(const Le of he)switch(W=W.concat(le.call(this,Le)),Le.type){case"table":{const st=Le;for(const zt of st.header)W=W.concat(this.walkTokens(zt.tokens,le));for(const zt of st.rows)for(const In of zt)W=W.concat(this.walkTokens(In.tokens,le));break}case"list":W=W.concat(this.walkTokens(Le.items,le));break;default:{var Ue;const st=Le;null!==(Ue=this.defaults.extensions)&&void 0!==Ue&&null!==(Ue=Ue.childTokens)&&void 0!==Ue&&Ue[st.type]?this.defaults.extensions.childTokens[st.type].forEach(zt=>{const In=st[zt].flat(1/0);W=W.concat(this.walkTokens(In,le))}):st.tokens&&(W=W.concat(this.walkTokens(st.tokens,le)))}}return W}use(...he){const le=this.defaults.extensions||{renderers:{},childTokens:{}};return he.forEach(W=>{const Ue={...W};if(Ue.async=this.defaults.async||Ue.async||!1,W.extensions&&(W.extensions.forEach(Le=>{if(!Le.name)throw new Error("extension name required");if("renderer"in Le){const st=le.renderers[Le.name];le.renderers[Le.name]=st?function(...zt){let In=Le.renderer.apply(this,zt);return!1===In&&(In=st.apply(this,zt)),In}:Le.renderer}if("tokenizer"in Le){if(!Le.level||"block"!==Le.level&&"inline"!==Le.level)throw new Error("extension level must be 'block' or 'inline'");const st=le[Le.level];st?st.unshift(Le.tokenizer):le[Le.level]=[Le.tokenizer],Le.start&&("block"===Le.level?le.startBlock?le.startBlock.push(Le.start):le.startBlock=[Le.start]:"inline"===Le.level&&(le.startInline?le.startInline.push(Le.start):le.startInline=[Le.start]))}"childTokens"in Le&&Le.childTokens&&(le.childTokens[Le.name]=Le.childTokens)}),Ue.extensions=le),W.renderer){const Le=this.defaults.renderer||new Cn(this.defaults);for(const st in W.renderer){if(!(st in Le))throw new Error(`renderer '${st}' does not exist`);if("options"===st)continue;const In=W.renderer[st],Vn=Le[st];Le[st]=(...w)=>{let j=In.apply(Le,w);return!1===j&&(j=Vn.apply(Le,w)),j||""}}Ue.renderer=Le}if(W.tokenizer){const Le=this.defaults.tokenizer||new En(this.defaults);for(const st in W.tokenizer){if(!(st in Le))throw new Error(`tokenizer '${st}' does not exist`);if(["options","rules","lexer"].includes(st))continue;const In=W.tokenizer[st],Vn=Le[st];Le[st]=(...w)=>{let j=In.apply(Le,w);return!1===j&&(j=Vn.apply(Le,w)),j}}Ue.tokenizer=Le}if(W.hooks){const Le=this.defaults.hooks||new dr;for(const st in W.hooks){if(!(st in Le))throw new Error(`hook '${st}' does not exist`);if("options"===st)continue;const In=W.hooks[st],Vn=Le[st];Le[st]=dr.passThroughHooks.has(st)?w=>{if(this.defaults.async)return Promise.resolve(In.call(Le,w)).then(re=>Vn.call(Le,re));const j=In.call(Le,w);return Vn.call(Le,j)}:(...w)=>{let j=In.apply(Le,w);return!1===j&&(j=Vn.apply(Le,w)),j}}Ue.hooks=Le}if(W.walkTokens){const Le=this.defaults.walkTokens,st=W.walkTokens;Ue.walkTokens=function(zt){let In=[];return In.push(st.call(this,zt)),Le&&(In=In.concat(Le.call(this,zt))),In}}this.defaults={...this.defaults,...Ue}}),this}setOptions(he){return this.defaults={...this.defaults,...he},this}lexer(he,le){return dn.lex(he,null!=le?le:this.defaults)}parser(he,le){return Ar.parse(he,null!=le?le:this.defaults)}};function pr(wt,he){return gi.parse(wt,he)}pr.options=pr.setOptions=function(wt){return gi.setOptions(wt),_t(pr.defaults=gi.defaults),pr},pr.getDefaults=function ke(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pr.defaults=Pe,pr.use=function(...wt){return gi.use(...wt),_t(pr.defaults=gi.defaults),pr},pr.walkTokens=function(wt,he){return gi.walkTokens(wt,he)},pr.parseInline=gi.parseInline,pr.Parser=Ar,pr.parser=Ar.parse,pr.Renderer=Cn,pr.TextRenderer=ir,pr.Lexer=dn,pr.lexer=dn.lex,pr.Tokenizer=En,pr.Hooks=dr,pr.parse=pr;var He=C(1626),Tt=C(345);const Jt=["*"];let $n=(()=>{var wt;class he{constructor(){this._buttonClick$=new xe.B,this.copied$=this._buttonClick$.pipe((0,Ke.n)(()=>(0,U.h)((0,ue.of)(!0),(0,oe.O)(3e3).pipe((0,Je.u)(!1)))),(0,Se.F)(),function Rt(wt,he,le){let W,Ue=!1;return wt&&"object"==typeof wt?({bufferSize:W=1/0,windowTime:he=1/0,refCount:Ue=!1,scheduler:le}=wt):W=null!=wt?wt:1/0,function ct(wt={}){const{connector:he=(()=>new xe.B),resetOnError:le=!0,resetOnComplete:W=!0,resetOnRefCountZero:Ue=!0}=wt;return Le=>{let st,zt,In,Vn=0,w=!1,j=!1;const re=()=>{null==zt||zt.unsubscribe(),zt=void 0},P=()=>{re(),st=In=void 0,w=j=!1},Ee=()=>{const ot=st;P(),null==ot||ot.unsubscribe()};return(0,Xe.N)((ot,sr)=>{Vn++,!j&&!w&&re();const ni=In=null!=In?In:he();sr.add(()=>{Vn--,0===Vn&&!j&&!w&&(zt=Dt(Ee,Ue))}),ni.subscribe(sr),!st&&Vn>0&&(st=new Ze.Ms({next:z=>ni.next(z),error:z=>{j=!0,re(),zt=Dt(P,le,z),ni.error(z)},complete:()=>{w=!0,re(),zt=Dt(P,W),ni.complete()}}),(0,Ye.Tg)(ot).subscribe(st))})(Le)}}({connector:()=>new De.m(W,he,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Ue})}(1)),this.copiedText$=this.copied$.pipe((0,It.Z)(!1),(0,Vt.T)(W=>W?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(wt=he).\u0275fac=function(W){return new(W||wt)},wt.\u0275cmp=Z.VBU({type:wt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(W,Ue){1&W&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return Ue.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&W&&(Z.AVh("copied",Z.bMT(1,3,Ue.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,Ue.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),he})();const xr=new Z.nKC("CLIPBOARD_OPTIONS");var Or=function(wt){return wt.CommandLine="command-line",wt.LineHighlight="line-highlight",wt.LineNumbers="line-numbers",wt}(Or||{});const zr=new Z.nKC("MARKED_EXTENSIONS"),Tr=new Z.nKC("MARKED_OPTIONS"),mi=new Z.nKC("SECURITY_CONTEXT");let Gn=(()=>{var wt;class he{get options(){return this._options}set options(W){this._options={...this.DEFAULT_MARKED_OPTIONS,...W}}get renderer(){return this.options.renderer}set renderer(W){this.options.renderer=W}constructor(W,Ue,Le,st,zt,In,Vn){this.clipboardOptions=W,this.extensions=Ue,this.platform=st,this.securityContext=zt,this.http=In,this.sanitizer=Vn,this.DEFAULT_MARKED_OPTIONS={renderer:new Cn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new xe.B,this.reload$=this._reload$.asObservable(),this.options=Le}parse(W,Ue=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Le,inline:st,emoji:zt,mermaid:In,disableSanitizer:Vn}=Ue,w={...this.options,...Ue.markedOptions},j=w.renderer||this.renderer||new Cn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(j)),In&&(this.renderer=this.extendsRendererForMermaid(j));const re=this.trimIndentation(W),P=Le?this.decodeHtml(re):re,Ee=zt?this.parseEmoji(P):P,ot=this.parseMarked(Ee,w,st);return(Vn?ot:this.sanitizer.sanitize(this.securityContext,ot))||""}render(W,Ue=this.DEFAULT_RENDER_OPTIONS,Le){const{clipboard:st,clipboardOptions:zt,katex:In,katexOptions:Vn,mermaid:w,mermaidOptions:j}=Ue;In&&this.renderKatex(W,{...this.DEFAULT_KATEX_OPTIONS,...Vn}),w&&this.renderMermaid(W,{...this.DEFAULT_MERMAID_OPTIONS,...j}),st&&this.renderClipboard(W,Le,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...zt}),this.highlight(W)}reload(){this._reload$.next()}getSource(W){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(W,{responseType:"text"}).pipe((0,Vt.T)(Ue=>this.handleExtension(W,Ue)))}highlight(W){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;W||(W=document);const Ue=W.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(Ue,Le=>Le.classList.add("language-none")),Prism.highlightAllUnder(W)}decodeHtml(W){if(!(0,c.UE)(this.platform))return W;const Ue=document.createElement("textarea");return Ue.innerHTML=W,Ue.value}extendsRendererForExtensions(W){var Ue;const Le=W;return!0===Le.\u0275NgxMarkdownRendererExtendedForExtensions||((null===(Ue=this.extensions)||void 0===Ue?void 0:Ue.length)>0&&pr.use(...this.extensions),Le.\u0275NgxMarkdownRendererExtendedForExtensions=!0),W}extendsRendererForMermaid(W){const Ue=W;if(!0===Ue.\u0275NgxMarkdownRendererExtendedForMermaid)return W;const Le=W.code;return W.code=function(st,zt,In){return"mermaid"===zt?`
    ${st}
    `:Le.call(this,st,zt,In)},Ue.\u0275NgxMarkdownRendererExtendedForMermaid=!0,W}handleExtension(W,Ue){const Le=W.lastIndexOf("://"),st=Le>-1?W.substring(Le+4):W,zt=st.lastIndexOf("/"),In=zt>-1?st.substring(zt+1).split("?")[0]:"",Vn=In.lastIndexOf("."),w=Vn>-1?In.substring(Vn+1):"";return w&&"md"!==w?"```"+w+"\n"+Ue+"\n```":Ue}parseMarked(W,Ue,Le=!1){if(Ue.renderer){const st={...Ue.renderer};delete st.\u0275NgxMarkdownRendererExtendedForExtensions,delete st.\u0275NgxMarkdownRendererExtendedForMermaid,delete Ue.renderer,pr.use({renderer:st})}return Le?pr.parseInline(W,Ue):pr.parse(W,Ue)}parseEmoji(W){if(!(0,c.UE)(this.platform))return W;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(W)}renderKatex(W,Ue){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(W,Ue)}}renderClipboard(W,Ue,Le){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!Ue)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:st,buttonTemplate:zt}=Le,In=W.querySelectorAll("pre");for(let Vn=0;Vnre.classList.add("hover"),j.onmouseleave=()=>re.classList.remove("hover"),st){const ot=Ue.createComponent(st);P=ot.hostView,ot.changeDetectorRef.markForCheck()}else if(zt)P=Ue.createEmbeddedView(zt);else{const ot=Ue.createComponent($n);P=ot.hostView,ot.changeDetectorRef.markForCheck()}P.rootNodes.forEach(ot=>{re.appendChild(ot),Ee=new ClipboardJS(ot,{text:()=>w.innerText})}),P.onDestroy(()=>Ee.destroy())}}renderMermaid(W,Ue=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Le=W.querySelectorAll(".mermaid");0!==Le.length&&(mermaid.initialize(Ue),mermaid.run({nodes:Le}))}trimIndentation(W){if(!W)return"";let Ue;return W.split("\n").map(Le=>{let st=Ue;return Le.length>0&&(st=isNaN(st)?Le.search(/\S|$/):Math.min(Le.search(/\S|$/),st)),isNaN(Ue)&&(Ue=st),st?Le.substring(st):Le}).join("\n")}}return(wt=he).\u0275fac=function(W){return new(W||wt)(Z.KVO(xr,8),Z.KVO(zr,8),Z.KVO(Tr,8),Z.KVO(Z.Agw),Z.KVO(mi),Z.KVO(He.Qq,8),Z.KVO(Tt.up))},wt.\u0275prov=Z.jDH({token:wt,factory:wt.\u0275fac}),he})(),ao=(()=>{var wt;class he{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(W){this._disableSanitizer=this.coerceBooleanProperty(W)}get inline(){return this._inline}set inline(W){this._inline=this.coerceBooleanProperty(W)}get clipboard(){return this._clipboard}set clipboard(W){this._clipboard=this.coerceBooleanProperty(W)}get emoji(){return this._emoji}set emoji(W){this._emoji=this.coerceBooleanProperty(W)}get katex(){return this._katex}set katex(W){this._katex=this.coerceBooleanProperty(W)}get mermaid(){return this._mermaid}set mermaid(W){this._mermaid=this.coerceBooleanProperty(W)}get lineHighlight(){return this._lineHighlight}set lineHighlight(W){this._lineHighlight=this.coerceBooleanProperty(W)}get lineNumbers(){return this._lineNumbers}set lineNumbers(W){this._lineNumbers=this.coerceBooleanProperty(W)}get commandLine(){return this._commandLine}set commandLine(W){this._commandLine=this.coerceBooleanProperty(W)}constructor(W,Ue,Le){this.element=W,this.markdownService=Ue,this.viewContainerRef=Le,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new xe.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Et.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(W,Ue=!1){var Le=this;return(0,h.A)(function*(){const st={decodeHtml:Ue,inline:Le.inline,emoji:Le.emoji,mermaid:Le.mermaid,disableSanitizer:Le.disableSanitizer},zt={clipboard:Le.clipboard,clipboardOptions:{buttonComponent:Le.clipboardButtonComponent,buttonTemplate:Le.clipboardButtonTemplate},katex:Le.katex,katexOptions:Le.katexOptions,mermaid:Le.mermaid,mermaidOptions:Le.mermaidOptions},In=yield Le.markdownService.parse(W,st);Le.element.nativeElement.innerHTML=In,Le.handlePlugins(),Le.markdownService.render(Le.element.nativeElement,zt,Le.viewContainerRef),Le.ready.emit()})()}coerceBooleanProperty(W){return null!=W&&"false"!=`${String(W)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:W=>{this.render(W).then(()=>{this.load.emit(W)})},error:W=>this.error.emit(W)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Or.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Or.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(W,Ue){const Le=W.querySelectorAll("pre");for(let st=0;st{const In=Ue[zt];if(In){const Vn=this.toLispCase(zt);Le.item(st).setAttribute(Vn,In.toString())}})}toLispCase(W){const Ue=W.match(/([A-Z])/g);if(!Ue)return W;let Le=W.toString();for(let st=0,zt=Ue.length;st{var wt;class he{static forRoot(W){return{ngModule:he,providers:[Ci(W)]}}static forChild(){return{ngModule:he}}}return(wt=he).\u0275fac=function(W){return new(W||wt)},wt.\u0275mod=Z.$C({type:wt}),wt.\u0275inj=Z.G2t({imports:[c.MD]}),he})();var oi;!function(wt){let he;var Ue;let le,W;(Ue=he=wt.SecurityLevel||(wt.SecurityLevel={})).Strict="strict",Ue.Loose="loose",Ue.Antiscript="antiscript",Ue.Sandbox="sandbox",function(Ue){Ue.Base="base",Ue.Forest="forest",Ue.Dark="dark",Ue.Default="default",Ue.Neutral="neutral"}(le=wt.Theme||(wt.Theme={})),function(Ue){Ue[Ue.Debug=1]="Debug",Ue[Ue.Info=2]="Info",Ue[Ue.Warn=3]="Warn",Ue[Ue.Error=4]="Error",Ue[Ue.Fatal=5]="Fatal"}(W=wt.LogLevel||(wt.LogLevel={}))}(oi||(oi={}))},467:(Tn,gt,C)=>{"use strict";function h(Z,xe,U,ue,oe,Ke,Je){try{var Se=Z[Ke](Je),De=Se.value}catch(Ye){return void U(Ye)}Se.done?xe(De):Promise.resolve(De).then(ue,oe)}function c(Z){return function(){var xe=this,U=arguments;return new Promise(function(ue,oe){var Ke=Z.apply(xe,U);function Je(De){h(Ke,ue,oe,Je,Se,"next",De)}function Se(De){h(Ke,ue,oe,Je,Se,"throw",De)}Je(void 0)})}}C.d(gt,{A:()=>c})},9842:(Tn,gt,C)=>{"use strict";function h(U){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ue){return typeof ue}:function(ue){return ue&&"function"==typeof Symbol&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue})(U)}function xe(U,ue,oe){return(ue=function Z(U){var ue=function c(U,ue){if("object"!=h(U)||!U)return U;var oe=U[Symbol.toPrimitive];if(void 0!==oe){var Ke=oe.call(U,ue||"default");if("object"!=h(Ke))return Ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ue?String:Number)(U)}(U,"string");return"symbol"==h(ue)?ue:String(ue)}(ue))in U?Object.defineProperty(U,ue,{value:oe,enumerable:!0,configurable:!0,writable:!0}):U[ue]=oe,U}C.d(gt,{A:()=>xe})},1635:(Tn,gt,C)=>{"use strict";function xe(H,X){var fe={};for(var se in H)Object.prototype.hasOwnProperty.call(H,se)&&X.indexOf(se)<0&&(fe[se]=H[se]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(H);ve=0;sn--)(it=H[sn])&&(Fe=(ve<3?it(Fe):ve>3?it(X,fe,Fe):it(X,fe))||Fe);return ve>3&&Fe&&Object.defineProperty(X,fe,Fe),Fe}function Ye(H,X,fe,se){return new(fe||(fe=Promise))(function(Fe,it){function sn(Kt){try{qe(se.next(Kt))}catch(En){it(En)}}function Sn(Kt){try{qe(se.throw(Kt))}catch(En){it(En)}}function qe(Kt){Kt.done?Fe(Kt.value):function ve(Fe){return Fe instanceof fe?Fe:new fe(function(it){it(Fe)})}(Kt.value).then(sn,Sn)}qe((se=se.apply(H,X||[])).next())})}function mt(H){return this instanceof mt?(this.v=H,this):new mt(H)}function Ae(H,X,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=fe.apply(H,X||[]),Fe=[];return ve={},it("next"),it("throw"),it("return"),ve[Symbol.asyncIterator]=function(){return this},ve;function it(On){se[On]&&(ve[On]=function(Qn){return new Promise(function(nr,vr){Fe.push([On,Qn,nr,vr])>1||sn(On,Qn)})})}function sn(On,Qn){try{!function Sn(On){On.value instanceof mt?Promise.resolve(On.value.v).then(qe,Kt):En(Fe[0][2],On)}(se[On](Qn))}catch(nr){En(Fe[0][3],nr)}}function qe(On){sn("next",On)}function Kt(On){sn("throw",On)}function En(On,Qn){On(Qn),Fe.shift(),Fe.length&&sn(Fe[0][0],Fe[0][1])}}function ge(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,X=H[Symbol.asyncIterator];return X?X.call(H):(H=function Dt(H){var X="function"==typeof Symbol&&Symbol.iterator,fe=X&&H[X],se=0;if(fe)return fe.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&se>=H.length&&(H=void 0),{value:H&&H[se++],done:!H}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),fe={},se("next"),se("throw"),se("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function se(Fe){fe[Fe]=H[Fe]&&function(it){return new Promise(function(sn,Sn){!function ve(Fe,it,sn,Sn){Promise.resolve(Sn).then(function(qe){Fe({value:qe,done:sn})},it)}(sn,Sn,(it=H[Fe](it)).done,it.value)})}}}C.d(gt,{AQ:()=>Ae,Cg:()=>U,N3:()=>mt,Tt:()=>xe,sH:()=>Ye,xN:()=>ge}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/main.fbf9b0eda3a2e1a7.js b/www/main.fbf9b0eda3a2e1a7.js new file mode 100644 index 0000000..5ab01b8 --- /dev/null +++ b/www/main.fbf9b0eda3a2e1a7.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Pn,Et,C)=>{"use strict";C.d(Et,{Am:()=>En,FA:()=>Ve,Fy:()=>_e,I9:()=>Fr,Im:()=>dr,Ku:()=>pt,T9:()=>It,Tj:()=>zt,Uj:()=>tt,XA:()=>Te,ZQ:()=>$e,bD:()=>Lt,cY:()=>Ze,eX:()=>X,g:()=>Ee,hp:()=>Vn,jZ:()=>Le,lT:()=>st,lV:()=>Cn,nr:()=>Re,sr:()=>kt,tD:()=>In,u:()=>Se,yU:()=>Tt,zW:()=>G});const ke=function(de){const Ie=[];let Ge=0;for(let $t=0;$t>6|192,Ie[Ge++]=63&le|128):55296==(64512&le)&&$t+1>18|240,Ie[Ge++]=le>>12&63|128,Ie[Ge++]=le>>6&63|128,Ie[Ge++]=63&le|128):(Ie[Ge++]=le>>12|224,Ie[Ge++]=le>>6&63|128,Ie[Ge++]=63&le|128)}return Ie},he={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(de,Ie){if(!Array.isArray(de))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Ge=Ie?this.byteToCharMapWebSafe_:this.byteToCharMap_,$t=[];for(let le=0;le>6,hr=63&Tn;sn||(hr=64,ft||(wn=64)),$t.push(Ge[gt>>2],Ge[(3>)<<4|Qt>>4],Ge[wn],Ge[hr])}return $t.join("")},encodeString(de,Ie){return this.HAS_NATIVE_SUPPORT&&!Ie?btoa(de):this.encodeByteArray(ke(de),Ie)},decodeString(de,Ie){return this.HAS_NATIVE_SUPPORT&&!Ie?atob(de):function(de){const Ie=[];let Ge=0,$t=0;for(;Ge191&&le<224){const gt=de[Ge++];Ie[$t++]=String.fromCharCode((31&le)<<6|63>)}else if(le>239&&le<365){const sn=((7&le)<<18|(63&de[Ge++])<<12|(63&de[Ge++])<<6|63&de[Ge++])-65536;Ie[$t++]=String.fromCharCode(55296+(sn>>10)),Ie[$t++]=String.fromCharCode(56320+(1023&sn))}else{const gt=de[Ge++],ft=de[Ge++];Ie[$t++]=String.fromCharCode((15&le)<<12|(63>)<<6|63&ft)}}return Ie.join("")}(this.decodeStringToByteArray(de,Ie))},decodeStringToByteArray(de,Ie){this.init_();const Ge=Ie?this.charToByteMapWebSafe_:this.charToByteMap_,$t=[];for(let le=0;le>4),64!==Tn&&($t.push(Qt<<4&240|Tn>>2),64!==dn&&$t.push(Tn<<6&192|dn))}return $t},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let de=0;de=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(de)]=de,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(de)]=de)}}};class ae extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const tt=function(de){return function(de){const Ie=ke(de);return he.encodeByteArray(Ie,!0)}(de).replace(/\./g,"")},Se=function(de){try{return he.decodeString(de,!0)}catch(Ie){console.error("base64Decode failed: ",Ie)}return null},Dt=()=>{try{return function Ye(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const de=process.env.__FIREBASE_DEFAULTS__;return de?JSON.parse(de):void 0})()||(()=>{if(typeof document>"u")return;let de;try{de=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Ie=de&&Se(de[1]);return Ie&&JSON.parse(Ie)})()}catch(de){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${de}`)}},zt=de=>{var Ie,Ge;return null===(Ge=null===(Ie=Dt())||void 0===Ie?void 0:Ie.emulatorHosts)||void 0===Ge?void 0:Ge[de]},Tt=de=>{const Ie=zt(de);if(!Ie)return;const Ge=Ie.lastIndexOf(":");if(Ge<=0||Ge+1===Ie.length)throw new Error(`Invalid host ${Ie} with no separate hostname and port!`);const $t=parseInt(Ie.substring(Ge+1),10);return"["===Ie[0]?[Ie.substring(1,Ge-1),$t]:[Ie.substring(0,Ge),$t]},It=()=>{var de;return null===(de=Dt())||void 0===de?void 0:de.config},Te=de=>{var Ie;return null===(Ie=Dt())||void 0===Ie?void 0:Ie[`_${de}`]};class Ze{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Ie,Ge)=>{this.resolve=Ie,this.reject=Ge})}wrapCallback(Ie){return(Ge,$t)=>{Ge?this.reject(Ge):this.resolve($t),"function"==typeof Ie&&(this.promise.catch(()=>{}),1===Ie.length?Ie(Ge):Ie(Ge,$t))}}}function _e(de,Ie){if(de.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const $t=Ie||"demo-project",le=de.iat||0,gt=de.sub||de.user_id;if(!gt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const ft=Object.assign({iss:`https://securetoken.google.com/${$t}`,aud:$t,iat:le,exp:le+3600,auth_time:le,sub:gt,user_id:gt,firebase:{sign_in_provider:"custom",identities:{}}},de);return[tt(JSON.stringify({alg:"none",type:"JWT"})),tt(JSON.stringify(ft)),""].join(".")}function $e(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Le(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test($e())}function kt(){const de="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof de&&void 0!==de.id}function Cn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function st(){const de=$e();return de.indexOf("MSIE ")>=0||de.indexOf("Trident/")>=0}function Re(){return!function Oe(){var de;const Ie=null===(de=Dt())||void 0===de?void 0:de.forceEnvironment;if("node"===Ie)return!0;if("browser"===Ie)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function G(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((de,Ie)=>{try{let Ge=!0;const $t="validate-browser-context-for-indexeddb-analytics-module",le=self.indexedDB.open($t);le.onsuccess=()=>{le.result.close(),Ge||self.indexedDB.deleteDatabase($t),de(!0)},le.onupgradeneeded=()=>{Ge=!1},le.onerror=()=>{var gt;Ie((null===(gt=le.error)||void 0===gt?void 0:gt.message)||"")}}catch(Ge){Ie(Ge)}})}class Ee extends Error{constructor(Ie,Ge,$t){super(Ge),this.code=Ie,this.customData=$t,this.name="FirebaseError",Object.setPrototypeOf(this,Ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ve.prototype.create)}}class Ve{constructor(Ie,Ge,$t){this.service=Ie,this.serviceName=Ge,this.errors=$t}create(Ie,...Ge){const $t=Ge[0]||{},le=`${this.service}/${Ie}`,gt=this.errors[Ie],ft=gt?function ut(de,Ie){return de.replace(fn,(Ge,$t)=>{const le=Ie[$t];return null!=le?String(le):`<${$t}?>`})}(gt,$t):"Error";return new Ee(le,`${this.serviceName}: ${ft} (${le}).`,$t)}}const fn=/\{\$([^}]+)}/g;function dr(de){for(const Ie in de)if(Object.prototype.hasOwnProperty.call(de,Ie))return!1;return!0}function Lt(de,Ie){if(de===Ie)return!0;const Ge=Object.keys(de),$t=Object.keys(Ie);for(const le of Ge){if(!$t.includes(le))return!1;const gt=de[le],ft=Ie[le];if(Xt(gt)&&Xt(ft)){if(!Lt(gt,ft))return!1}else if(gt!==ft)return!1}for(const le of $t)if(!Ge.includes(le))return!1;return!0}function Xt(de){return null!==de&&"object"==typeof de}function En(de){const Ie=[];for(const[Ge,$t]of Object.entries(de))Array.isArray($t)?$t.forEach(le=>{Ie.push(encodeURIComponent(Ge)+"="+encodeURIComponent(le))}):Ie.push(encodeURIComponent(Ge)+"="+encodeURIComponent($t));return Ie.length?"&"+Ie.join("&"):""}function Fr(de){const Ie={};return de.replace(/^\?/,"").split("&").forEach($t=>{if($t){const[le,gt]=$t.split("=");Ie[decodeURIComponent(le)]=decodeURIComponent(gt)}}),Ie}function Vn(de){const Ie=de.indexOf("?");if(!Ie)return"";const Ge=de.indexOf("#",Ie);return de.substring(Ie,Ge>0?Ge:void 0)}function In(de,Ie){const Ge=new on(de,Ie);return Ge.subscribe.bind(Ge)}class on{constructor(Ie,Ge){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Ge,this.task.then(()=>{Ie(this)}).catch($t=>{this.error($t)})}next(Ie){this.forEachObserver(Ge=>{Ge.next(Ie)})}error(Ie){this.forEachObserver(Ge=>{Ge.error(Ie)}),this.close(Ie)}complete(){this.forEachObserver(Ie=>{Ie.complete()}),this.close()}subscribe(Ie,Ge,$t){let le;if(void 0===Ie&&void 0===Ge&&void 0===$t)throw new Error("Missing Observer.");le=function br(de,Ie){if("object"!=typeof de||null===de)return!1;for(const Ge of Ie)if(Ge in de&&"function"==typeof de[Ge])return!0;return!1}(Ie,["next","error","complete"])?Ie:{next:Ie,error:Ge,complete:$t},void 0===le.next&&(le.next=Vr),void 0===le.error&&(le.error=Vr),void 0===le.complete&&(le.complete=Vr);const gt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?le.error(this.finalError):le.complete()}catch{}}),this.observers.push(le),gt}unsubscribeOne(Ie){void 0===this.observers||void 0===this.observers[Ie]||(delete this.observers[Ie],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Ie){if(!this.finalized)for(let Ge=0;Ge{if(void 0!==this.observers&&void 0!==this.observers[Ie])try{Ge(this.observers[Ie])}catch($t){typeof console<"u"&&console.error&&console.error($t)}})}close(Ie){this.finalized||(this.finalized=!0,void 0!==Ie&&(this.finalError=Ie),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Vr(){}function pt(de){return de&&de._delegate?de._delegate:de}},4442:(Pn,Et,C)=>{"use strict";C.d(Et,{L:()=>$,a:()=>he,b:()=>ae,c:()=>Xe,d:()=>tt,g:()=>vt}),C(5531);const $="ionViewWillEnter",he="ionViewDidEnter",ae="ionViewWillLeave",Xe="ionViewDidLeave",tt="ionViewWillUnload",vt=Re=>Re.classList.contains("ion-page")?Re:Re.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Re},5531:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>Se,c:()=>c,g:()=>tt});class h{constructor(){this.m=new Map}reset(Re){this.m=new Map(Object.entries(Re))}get(Re,G){const X=this.m.get(Re);return void 0!==X?X:G}getBoolean(Re,G=!1){const X=this.m.get(Re);return void 0===X?G:"string"==typeof X?"true"===X:!!X}getNumber(Re,G){const X=parseFloat(this.m.get(Re));return isNaN(X)?void 0!==G?G:NaN:X}set(Re,G){this.m.set(Re,G)}}const c=new h,tt=vt=>be(vt),Se=(vt,Re)=>("string"==typeof vt&&(Re=vt,vt=void 0),tt(vt).includes(Re)),be=(vt=window)=>{if(typeof vt>"u")return[];vt.Ionic=vt.Ionic||{};let Re=vt.Ionic.platforms;return null==Re&&(Re=vt.Ionic.platforms=et(vt),Re.forEach(G=>vt.document.documentElement.classList.add(`plt-${G}`))),Re},et=vt=>{const Re=c.get("platform");return Object.keys(Cn).filter(G=>{const X=null==Re?void 0:Re[G];return"function"==typeof X?X(vt):Cn[G](vt)})},Ye=vt=>!!(Ct(vt,/iPad/i)||Ct(vt,/Macintosh/i)&&It(vt)),xt=vt=>Ct(vt,/android|sink/i),It=vt=>kt(vt,"(any-pointer:coarse)"),Ze=vt=>_e(vt)||$e(vt),_e=vt=>!!(vt.cordova||vt.phonegap||vt.PhoneGap),$e=vt=>{const Re=vt.Capacitor;return!(null==Re||!Re.isNative)},Ct=(vt,Re)=>Re.test(vt.navigator.userAgent),kt=(vt,Re)=>{var G;return null===(G=vt.matchMedia)||void 0===G?void 0:G.call(vt,Re).matches},Cn={ipad:Ye,iphone:vt=>Ct(vt,/iPhone/i),ios:vt=>Ct(vt,/iPhone|iPod/i)||Ye(vt),android:xt,phablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return X>390&&X<520&&ce>620&&ce<800},tablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return Ye(vt)||(vt=>xt(vt)&&!Ct(vt,/mobile/i))(vt)||X>460&&X<820&&ce>780&&ce<1400},cordova:_e,capacitor:$e,electron:vt=>Ct(vt,/electron/i),pwa:vt=>{var Re;return!!(null!==(Re=vt.matchMedia)&&void 0!==Re&&Re.call(vt,"(display-mode: standalone)").matches||vt.navigator.standalone)},mobile:It,mobileweb:vt=>It(vt)&&!Ze(vt),desktop:vt=>!It(vt),hybrid:Ze}},9986:(Pn,Et,C)=>{"use strict";C.d(Et,{c:()=>he});var h=C(8476);let c;const ke=(ae,Xe,tt)=>{const Se=Xe.startsWith("animation")?(ae=>(void 0===c&&(c=void 0===ae.style.animationName&&void 0!==ae.style.webkitAnimationName?"-webkit-":""),c))(ae):"";ae.style.setProperty(Se+Xe,tt)},$=(ae=[],Xe)=>{if(void 0!==Xe){const tt=Array.isArray(Xe)?Xe:[Xe];return[...ae,...tt]}return ae},he=ae=>{let Xe,tt,Se,be,et,it,Dt,Le,Oe,Ct,st,Ye=[],at=[],mt=[],xt=!1,zt={},Tt=[],It=[],Te={},Ze=0,_e=!1,$e=!1,kt=!0,Cn=!1,At=!0,cn=!1;const vt=ae,Re=[],G=[],X=[],ce=[],ue=[],Ee=[],Ve=[],ut=[],fn=[],xn=[],un=[],Je="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Sn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Je,kn=()=>un,dr=(O,re)=>{const we=re.findIndex(We=>We.c===O);we>-1&&re.splice(we,1)},Lt=(O,re)=>((null!=re&&re.oneTimeCallback?G:Re).push({c:O,o:re}),st),yn=()=>{Sn&&(un.forEach(O=>{O.cancel()}),un.length=0)},En=()=>{Ee.forEach(O=>{null!=O&&O.parentNode&&O.parentNode.removeChild(O)}),Ee.length=0},Tr=()=>void 0!==et?et:Dt?Dt.getFill():"both",yr=()=>void 0!==Le?Le:void 0!==it?it:Dt?Dt.getDirection():"normal",Br=()=>_e?"linear":void 0!==Se?Se:Dt?Dt.getEasing():"linear",ar=()=>$e?0:void 0!==Oe?Oe:void 0!==tt?tt:Dt?Dt.getDuration():0,Lr=()=>void 0!==be?be:Dt?Dt.getIterations():1,li=()=>void 0!==Ct?Ct:void 0!==Xe?Xe:Dt?Dt.getDelay():0,sn=()=>{0!==Ze&&(Ze--,0===Ze&&((()=>{fn.forEach(St=>St()),xn.forEach(St=>St());const O=kt?1:0,re=Tt,we=It,We=Te;ce.forEach(St=>{const nn=St.classList;re.forEach(rn=>nn.add(rn)),we.forEach(rn=>nn.remove(rn));for(const rn in We)We.hasOwnProperty(rn)&&ke(St,rn,We[rn])}),Oe=void 0,Le=void 0,Ct=void 0,Re.forEach(St=>St.c(O,st)),G.forEach(St=>St.c(O,st)),G.length=0,At=!0,kt&&(Cn=!0),kt=!0})(),Dt&&Dt.animationFinish()))},Xn=()=>{(()=>{Ve.forEach(We=>We()),ut.forEach(We=>We());const O=at,re=mt,we=zt;ce.forEach(We=>{const St=We.classList;O.forEach(nn=>St.add(nn)),re.forEach(nn=>St.remove(nn));for(const nn in we)we.hasOwnProperty(nn)&&ke(We,nn,we[nn])})})(),Ye.length>0&&Sn&&(ce.forEach(O=>{const re=O.animate(Ye,{id:vt,delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()});re.pause(),un.push(re)}),un.length>0&&(un[0].onfinish=()=>{sn()})),xt=!0},dn=O=>{O=Math.min(Math.max(O,0),.9999),Sn&&un.forEach(re=>{re.currentTime=re.effect.getComputedTiming().delay+ar()*O,re.pause()})},wn=O=>{un.forEach(re=>{re.effect.updateTiming({delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()})}),void 0!==O&&dn(O)},hr=(O=!1,re=!0,we)=>(O&&ue.forEach(We=>{We.update(O,re,we)}),Sn&&wn(we),st),oi=()=>{xt&&(Sn?un.forEach(O=>{O.pause()}):ce.forEach(O=>{ke(O,"animation-play-state","paused")}),cn=!0)},Gt=O=>new Promise(re=>{null!=O&&O.sync&&($e=!0,Lt(()=>$e=!1,{oneTimeCallback:!0})),xt||Xn(),Cn&&(Sn&&(dn(0),wn()),Cn=!1),At&&(Ze=ue.length+1,At=!1);const we=()=>{dr(We,G),re()},We=()=>{dr(we,X),re()};Lt(We,{oneTimeCallback:!0}),((O,re)=>{X.push({c:O,o:{oneTimeCallback:!0}})})(we),ue.forEach(St=>{St.play()}),Sn?(un.forEach(O=>{O.play()}),(0===Ye.length||0===ce.length)&&sn()):sn(),cn=!1}),te=(O,re)=>{const we=Ye[0];return void 0===we||void 0!==we.offset&&0!==we.offset?Ye=[{offset:0,[O]:re},...Ye]:we[O]=re,st};return st={parentAnimation:Dt,elements:ce,childAnimations:ue,id:vt,animationFinish:sn,from:te,to:(O,re)=>{const we=Ye[Ye.length-1];return void 0===we||void 0!==we.offset&&1!==we.offset?Ye=[...Ye,{offset:1,[O]:re}]:we[O]=re,st},fromTo:(O,re,we)=>te(O,re).to(O,we),parent:O=>(Dt=O,st),play:Gt,pause:()=>(ue.forEach(O=>{O.pause()}),oi(),st),stop:()=>{ue.forEach(O=>{O.stop()}),xt&&(yn(),xt=!1),_e=!1,$e=!1,At=!0,Le=void 0,Oe=void 0,Ct=void 0,Ze=0,Cn=!1,kt=!0,cn=!1,X.forEach(O=>O.c(0,st)),X.length=0},destroy:O=>(ue.forEach(re=>{re.destroy(O)}),(O=>{yn(),O&&En()})(O),ce.length=0,ue.length=0,Ye.length=0,Re.length=0,G.length=0,xt=!1,At=!0,st),keyframes:O=>{const re=Ye!==O;return Ye=O,re&&(O=>{Sn&&kn().forEach(re=>{const we=re.effect;if(we.setKeyframes)we.setKeyframes(O);else{const We=new KeyframeEffect(we.target,O,we.getTiming());re.effect=We}})})(Ye),st},addAnimation:O=>{if(null!=O)if(Array.isArray(O))for(const re of O)re.parent(st),ue.push(re);else O.parent(st),ue.push(O);return st},addElement:O=>{if(null!=O)if(1===O.nodeType)ce.push(O);else if(O.length>=0)for(let re=0;re(et=O,hr(!0),st),direction:O=>(it=O,hr(!0),st),iterations:O=>(be=O,hr(!0),st),duration:O=>(!Sn&&0===O&&(O=1),tt=O,hr(!0),st),easing:O=>(Se=O,hr(!0),st),delay:O=>(Xe=O,hr(!0),st),getWebAnimations:kn,getKeyframes:()=>Ye,getFill:Tr,getDirection:yr,getDelay:li,getIterations:Lr,getEasing:Br,getDuration:ar,afterAddRead:O=>(fn.push(O),st),afterAddWrite:O=>(xn.push(O),st),afterClearStyles:(O=[])=>{for(const re of O)Te[re]="";return st},afterStyles:(O={})=>(Te=O,st),afterRemoveClass:O=>(It=$(It,O),st),afterAddClass:O=>(Tt=$(Tt,O),st),beforeAddRead:O=>(Ve.push(O),st),beforeAddWrite:O=>(ut.push(O),st),beforeClearStyles:(O=[])=>{for(const re of O)zt[re]="";return st},beforeStyles:(O={})=>(zt=O,st),beforeRemoveClass:O=>(mt=$(mt,O),st),beforeAddClass:O=>(at=$(at,O),st),onFinish:Lt,isRunning:()=>0!==Ze&&!cn,progressStart:(O=!1,re)=>(ue.forEach(we=>{we.progressStart(O,re)}),oi(),_e=O,xt||Xn(),hr(!1,!0,re),st),progressStep:O=>(ue.forEach(re=>{re.progressStep(O)}),dn(O),st),progressEnd:(O,re,we)=>(_e=!1,ue.forEach(We=>{We.progressEnd(O,re,we)}),void 0!==we&&(Oe=we),Cn=!1,kt=!0,0===O?(Le="reverse"===yr()?"normal":"reverse","reverse"===Le&&(kt=!1),Sn?(hr(),dn(1-re)):(Ct=(1-re)*ar()*-1,hr(!1,!1))):1===O&&(Sn?(hr(),dn(re)):(Ct=re*ar()*-1,hr(!1,!1))),void 0!==O&&!Dt&&Gt(),st)}}},464:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Se,a:()=>h,s:()=>Xe});const h=be=>{try{if(be instanceof ae)return be.value;if(!ke()||"string"!=typeof be||""===be)return be;if(be.includes("onload="))return"";const et=document.createDocumentFragment(),it=document.createElement("div");et.appendChild(it),it.innerHTML=be,he.forEach(xt=>{const Dt=et.querySelectorAll(xt);for(let zt=Dt.length-1;zt>=0;zt--){const Tt=Dt[zt];Tt.parentNode?Tt.parentNode.removeChild(Tt):et.removeChild(Tt);const It=Z(Tt);for(let Te=0;Te{if(be.nodeType&&1!==be.nodeType)return;if(typeof NamedNodeMap<"u"&&!(be.attributes instanceof NamedNodeMap))return void be.remove();for(let it=be.attributes.length-1;it>=0;it--){const Ye=be.attributes.item(it),at=Ye.name;if(!$.includes(at.toLowerCase())){be.removeAttribute(at);continue}const mt=Ye.value,xt=be[at];(null!=mt&&mt.toLowerCase().includes("javascript:")||null!=xt&&xt.toLowerCase().includes("javascript:"))&&be.removeAttribute(at)}const et=Z(be);for(let it=0;itnull!=be.children?be.children:be.childNodes,ke=()=>{var be;const et=window,it=null===(be=null==et?void 0:et.Ionic)||void 0===be?void 0:be.config;return!it||(it.get?it.get("sanitizerEnabled",!0):!0===it.sanitizerEnabled||void 0===it.sanitizerEnabled)},$=["class","id","href","src","name","slot"],he=["script","style","iframe","meta","link","object","embed"];class ae{constructor(et){this.value=et}}const Xe=be=>{const et=window,it=et.Ionic;if(!it||!it.config||"Object"===it.config.constructor.name)return et.Ionic=et.Ionic||{},et.Ionic.config=Object.assign(Object.assign({},et.Ionic.config),be),et.Ionic.config},Se=!1},8621:(Pn,Et,C)=>{"use strict";C.d(Et,{C:()=>$,a:()=>Z,d:()=>ke});var h=C(467),c=C(4920);const Z=function(){var he=(0,h.A)(function*(ae,Xe,tt,Se,be,et){var it;if(ae)return ae.attachViewToDom(Xe,tt,be,Se);if(!(et||"string"==typeof tt||tt instanceof HTMLElement))throw new Error("framework delegate is missing");const Ye="string"==typeof tt?null===(it=Xe.ownerDocument)||void 0===it?void 0:it.createElement(tt):tt;return Se&&Se.forEach(at=>Ye.classList.add(at)),be&&Object.assign(Ye,be),Xe.appendChild(Ye),yield new Promise(at=>(0,c.c)(Ye,at)),Ye});return function(Xe,tt,Se,be,et,it){return he.apply(this,arguments)}}(),ke=(he,ae)=>{if(ae){if(he)return he.removeViewFromDom(ae.parentElement,ae);ae.remove()}return Promise.resolve()},$=()=>{let he,ae;return{attachViewToDom:function(){var Se=(0,h.A)(function*(be,et,it={},Ye=[]){var at,mt;let xt;if(he=be,et){const zt="string"==typeof et?null===(at=he.ownerDocument)||void 0===at?void 0:at.createElement(et):et;Ye.forEach(Tt=>zt.classList.add(Tt)),Object.assign(zt,it),he.appendChild(zt),xt=zt,yield new Promise(Tt=>(0,c.c)(zt,Tt))}else if(he.children.length>0&&("ION-MODAL"===he.tagName||"ION-POPOVER"===he.tagName)&&!(xt=he.children[0]).classList.contains("ion-delegate-host")){const Tt=null===(mt=he.ownerDocument)||void 0===mt?void 0:mt.createElement("div");Tt.classList.add("ion-delegate-host"),Ye.forEach(It=>Tt.classList.add(It)),Tt.append(...he.children),he.appendChild(Tt),xt=Tt}const Dt=document.querySelector("ion-app")||document.body;return ae=document.createComment("ionic teleport"),he.parentNode.insertBefore(ae,he),Dt.appendChild(he),null!=xt?xt:he});return function(et,it){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(he&&ae&&(ae.parentNode.insertBefore(he,ae),ae.remove()),Promise.resolve())}}},1970:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>ke,G:()=>$});class c{constructor(ae,Xe,tt,Se,be){this.id=Xe,this.name=tt,this.disableScroll=be,this.priority=1e6*Se+Xe,this.ctrl=ae}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const ae=this.ctrl.capture(this.name,this.id,this.priority);return ae&&this.disableScroll&&this.ctrl.disableScroll(this.id),ae}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(ae,Xe,tt,Se){this.id=Xe,this.disable=tt,this.disableScroll=Se,this.ctrl=ae}block(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.disableGesture(ae,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.enableGesture(ae,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const ke="backdrop-no-scroll",$=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(ae){var Xe;return new c(this,this.newID(),ae.name,null!==(Xe=ae.priority)&&void 0!==Xe?Xe:0,!!ae.disableScroll)}createBlocker(ae={}){return new Z(this,this.newID(),ae.disable,!!ae.disableScroll)}start(ae,Xe,tt){return this.canStart(ae)?(this.requestedStart.set(Xe,tt),!0):(this.requestedStart.delete(Xe),!1)}capture(ae,Xe,tt){if(!this.start(ae,Xe,tt))return!1;const Se=this.requestedStart;let be=-1e4;if(Se.forEach(et=>{be=Math.max(be,et)}),be===tt){this.capturedId=Xe,Se.clear();const et=new CustomEvent("ionGestureCaptured",{detail:{gestureName:ae}});return document.dispatchEvent(et),!0}return Se.delete(Xe),!1}release(ae){this.requestedStart.delete(ae),this.capturedId===ae&&(this.capturedId=void 0)}disableGesture(ae,Xe){let tt=this.disabledGestures.get(ae);void 0===tt&&(tt=new Set,this.disabledGestures.set(ae,tt)),tt.add(Xe)}enableGesture(ae,Xe){const tt=this.disabledGestures.get(ae);void 0!==tt&&tt.delete(Xe)}disableScroll(ae){this.disabledScroll.add(ae),1===this.disabledScroll.size&&document.body.classList.add(ke)}enableScroll(ae){this.disabledScroll.delete(ae),0===this.disabledScroll.size&&document.body.classList.remove(ke)}canStart(ae){return!(void 0!==this.capturedId||this.isDisabled(ae))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(ae){const Xe=this.disabledGestures.get(ae);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{MENU_BACK_BUTTON_PRIORITY:()=>tt,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>he,shouldUseCloseWatcher:()=>$,startHardwareBackButton:()=>ae});var h=C(467),c=C(8476),Z=C(3664);C(9672);const $=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,he=()=>{document.addEventListener("backbutton",()=>{})},ae=()=>{const Se=document;let be=!1;const et=()=>{if(be)return;let it=0,Ye=[];const at=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(Dt,zt){Ye.push({priority:Dt,handler:zt,id:it++})}}});Se.dispatchEvent(at);const mt=function(){var Dt=(0,h.A)(function*(zt){try{if(null!=zt&&zt.handler){const Tt=zt.handler(xt);null!=Tt&&(yield Tt)}}catch(Tt){console.error(Tt)}});return function(Tt){return Dt.apply(this,arguments)}}(),xt=()=>{if(Ye.length>0){let Dt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Ye.forEach(zt=>{zt.priority>=Dt.priority&&(Dt=zt)}),be=!0,Ye=Ye.filter(zt=>zt.id!==Dt.id),mt(Dt).then(()=>be=!1)}};xt()};if($()){let it;const Ye=()=>{null==it||it.destroy(),it=new c.w.CloseWatcher,it.onclose=()=>{et(),Ye()}};Ye()}else Se.addEventListener("backbutton",et)},Xe=100,tt=99},4920:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>Xe,b:()=>tt,c:()=>Z,d:()=>Ye,e:()=>zt,f:()=>it,g:()=>Se,h:()=>$,i:()=>ae,j:()=>at,k:()=>ke,l:()=>et,m:()=>mt,n:()=>Dt,o:()=>Tt,p:()=>xt,r:()=>be,s:()=>It,t:()=>h});const h=(Te,Ze=0)=>new Promise(_e=>{c(Te,Ze,_e)}),c=(Te,Ze=0,_e)=>{let $e,Le;const Oe={passive:!0},kt=()=>{$e&&$e()},Cn=At=>{(void 0===At||Te===At.target)&&(kt(),_e(At))};return Te&&(Te.addEventListener("webkitTransitionEnd",Cn,Oe),Te.addEventListener("transitionend",Cn,Oe),Le=setTimeout(Cn,Ze+500),$e=()=>{void 0!==Le&&(clearTimeout(Le),Le=void 0),Te.removeEventListener("webkitTransitionEnd",Cn,Oe),Te.removeEventListener("transitionend",Cn,Oe)}),kt},Z=(Te,Ze)=>{Te.componentOnReady?Te.componentOnReady().then(_e=>Ze(_e)):be(()=>Ze(Te))},ke=Te=>void 0!==Te.componentOnReady,$=(Te,Ze=[])=>{const _e={};return Ze.forEach($e=>{Te.hasAttribute($e)&&(null!==Te.getAttribute($e)&&(_e[$e]=Te.getAttribute($e)),Te.removeAttribute($e))}),_e},he=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],ae=(Te,Ze)=>{let _e=he;return Ze&&Ze.length>0&&(_e=_e.filter($e=>!Ze.includes($e))),$(Te,_e)},Xe=(Te,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_ael");if(kt)return kt(Te,Ze,_e,$e);if(Ct._ael)return Ct._ael(Te,Ze,_e,$e)}}return Te.addEventListener(Ze,_e,$e)},tt=(Te,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_rel");if(kt)return kt(Te,Ze,_e,$e);if(Ct._rel)return Ct._rel(Te,Ze,_e,$e)}}return Te.removeEventListener(Ze,_e,$e)},Se=(Te,Ze=Te)=>Te.shadowRoot||Ze,be=Te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Te):"function"==typeof requestAnimationFrame?requestAnimationFrame(Te):setTimeout(Te),et=Te=>!!Te.shadowRoot&&!!Te.attachShadow,it=Te=>{if(Te.focus(),Te.classList.contains("ion-focusable")){const Ze=Te.closest("ion-app");Ze&&Ze.setFocus([Te])}},Ye=(Te,Ze,_e,$e,Le)=>{if(Te||et(Ze)){let Oe=Ze.querySelector("input.aux-input");Oe||(Oe=Ze.ownerDocument.createElement("input"),Oe.type="hidden",Oe.classList.add("aux-input"),Ze.appendChild(Oe)),Oe.disabled=Le,Oe.name=_e,Oe.value=$e||""}},at=(Te,Ze,_e)=>Math.max(Te,Math.min(Ze,_e)),mt=(Te,Ze)=>{if(!Te){const _e="ASSERT: "+Ze;throw console.error(_e),new Error(_e)}},xt=Te=>{if(Te){const Ze=Te.changedTouches;if(Ze&&Ze.length>0){const _e=Ze[0];return{x:_e.clientX,y:_e.clientY}}if(void 0!==Te.pageX)return{x:Te.pageX,y:Te.pageY}}return{x:0,y:0}},Dt=Te=>{const Ze="rtl"===document.dir;switch(Te){case"start":return Ze;case"end":return!Ze;default:throw new Error(`"${Te}" is not a valid value for [side]. Use "start" or "end" instead.`)}},zt=(Te,Ze)=>{const _e=Te._original||Te;return{_original:Te,emit:Tt(_e.emit.bind(_e),Ze)}},Tt=(Te,Ze=0)=>{let _e;return(...$e)=>{clearTimeout(_e),_e=setTimeout(Te,Ze,...$e)}},It=(Te,Ze)=>{if(null!=Te||(Te={}),null!=Ze||(Ze={}),Te===Ze)return!0;const _e=Object.keys(Te);if(_e.length!==Object.keys(Ze).length)return!1;for(const $e of _e)if(!($e in Ze)||Te[$e]!==Ze[$e])return!1;return!0}},5465:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>it});var h=C(467),c=C(8476),Z=C(6411),ke=C(4929),$=C(4920),he=C(3664),ae=C(9986);const Xe=Ye=>(0,ae.c)().duration(Ye?400:300),tt=Ye=>{let at,mt;const xt=Ye.width+8,Dt=(0,ae.c)(),zt=(0,ae.c)();Ye.isEndSide?(at=xt+"px",mt="0px"):(at=-xt+"px",mt="0px"),Dt.addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${at})`,`translateX(${mt})`);const It="ios"===(0,he.b)(Ye),Te=It?.2:.25;return zt.addElement(Ye.backdropEl).fromTo("opacity",.01,Te),Xe(It).addAnimation([Dt,zt])},Se=Ye=>{let at,mt;const xt=(0,he.b)(Ye),Dt=Ye.width;Ye.isEndSide?(at=-Dt+"px",mt=Dt+"px"):(at=Dt+"px",mt=-Dt+"px");const zt=(0,ae.c)().addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${mt})`,"translateX(0px)"),Tt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${at})`),It=(0,ae.c)().addElement(Ye.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===xt).addAnimation([zt,Tt,It])},be=Ye=>{const at=(0,he.b)(Ye),mt=Ye.width*(Ye.isEndSide?-1:1)+"px",xt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${mt})`);return Xe("ios"===at).addAnimation(xt)},it=(()=>{const Ye=new Map,at=[],mt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.open()});return function(ue){return X.apply(this,arguments)}}(),xt=function(){var X=(0,h.A)(function*(ce){const ue=yield void 0!==ce?Ze(ce,!0):_e();return void 0!==ue&&ue.close()});return function(ue){return X.apply(this,arguments)}}(),Dt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.toggle()});return function(ue){return X.apply(this,arguments)}}(),zt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.disabled=!ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),Tt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.swipeGesture=ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),It=function(){var X=(0,h.A)(function*(ce){if(null!=ce){const ue=yield Ze(ce);return void 0!==ue&&ue.isOpen()}return void 0!==(yield _e())});return function(ue){return X.apply(this,arguments)}}(),Te=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce);return!!ue&&!ue.disabled});return function(ue){return X.apply(this,arguments)}}(),Ze=function(){var X=(0,h.A)(function*(ce,ue=!1){if(yield G(),"start"===ce||"end"===ce){const Ve=at.filter(fn=>fn.side===ce&&!fn.disabled);if(Ve.length>=1)return Ve.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${Ve.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ve.map(fn=>fn.el)),Ve[0].el;const ut=at.filter(fn=>fn.side===ce);if(ut.length>=1)return ut.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${ut.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,ut.map(fn=>fn.el)),ut[0].el}else if(null!=ce)return Re(Ve=>Ve.menuId===ce);return Re(Ve=>!Ve.disabled)||(at.length>0?at[0].el:void 0)});return function(ue){return X.apply(this,arguments)}}(),_e=function(){var X=(0,h.A)(function*(){return yield G(),st()});return function(){return X.apply(this,arguments)}}(),$e=function(){var X=(0,h.A)(function*(){return yield G(),cn()});return function(){return X.apply(this,arguments)}}(),Le=function(){var X=(0,h.A)(function*(){return yield G(),vt()});return function(){return X.apply(this,arguments)}}(),Oe=(X,ce)=>{Ye.set(X,ce)},Cn=function(){var X=(0,h.A)(function*(ce,ue,Ee){if(vt())return!1;if(ue){const Ve=yield _e();Ve&&ce.el!==Ve&&(yield Ve.setOpen(!1,!1))}return ce._setOpen(ue,Ee)});return function(ue,Ee,Ve){return X.apply(this,arguments)}}(),st=()=>Re(X=>X._isOpen),cn=()=>at.map(X=>X.el),vt=()=>at.some(X=>X.isAnimating),Re=X=>{const ce=at.find(X);if(void 0!==ce)return ce.el},G=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(ce=>(0,$.c)(X,ce))));return Oe("reveal",be),Oe("push",Se),Oe("overlay",tt),null==c.d||c.d.addEventListener("ionBackButton",X=>{const ce=st();ce&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>ce.close())}),{registerAnimation:Oe,get:Ze,getMenus:$e,getOpen:_e,isEnabled:Te,swipeGesture:Tt,isAnimating:Le,isOpen:It,enable:zt,toggle:Dt,close:xt,open:mt,_getOpenSync:st,_createAnimation:(X,ce)=>{const ue=Ye.get(X);if(!ue)throw new Error("animation not registered");return ue(ce)},_register:X=>{at.indexOf(X)<0&&at.push(X)},_unregister:X=>{const ce=at.indexOf(X);ce>-1&&at.splice(ce,1)},_setOpen:Cn}})()},8607:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>tt});var h=C(1970);const c=(it,Ye,at,mt)=>{const xt=Z(it)?{capture:!!mt.capture,passive:!!mt.passive}:!!mt.capture;let Dt,zt;return it.__zone_symbol__addEventListener?(Dt="__zone_symbol__addEventListener",zt="__zone_symbol__removeEventListener"):(Dt="addEventListener",zt="removeEventListener"),it[Dt](Ye,at,xt),()=>{it[zt](Ye,at,xt)}},Z=it=>{if(void 0===ke)try{const Ye=Object.defineProperty({},"passive",{get:()=>{ke=!0}});it.addEventListener("optsTest",()=>{},Ye)}catch{ke=!1}return!!ke};let ke;const ae=it=>it instanceof Document?it:it.ownerDocument,tt=it=>{let Ye=!1,at=!1,mt=!0,xt=!1;const Dt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},it),zt=Dt.canStart,Tt=Dt.onWillStart,It=Dt.onStart,Te=Dt.onEnd,Ze=Dt.notCaptured,_e=Dt.onMove,$e=Dt.threshold,Le=Dt.passive,Oe=Dt.blurOnStart,Ct={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},kt=((it,Ye,at)=>{const mt=at*(Math.PI/180),xt="x"===it,Dt=Math.cos(mt),zt=Ye*Ye;let Tt=0,It=0,Te=!1,Ze=0;return{start(_e,$e){Tt=_e,It=$e,Ze=0,Te=!0},detect(_e,$e){if(!Te)return!1;const Le=_e-Tt,Oe=$e-It,Ct=Le*Le+Oe*Oe;if(CtDt?1:Cn<-Dt?-1:0,Te=!1,!0},isGesture:()=>0!==Ze,getDirection:()=>Ze}})(Dt.direction,Dt.threshold,Dt.maxAngle),Cn=h.G.createGesture({name:it.gestureName,priority:it.gesturePriority,disableScroll:it.disableScroll}),cn=()=>{Ye&&(xt=!1,_e&&_e(Ct))},vt=()=>!!Cn.capture()&&(Ye=!0,mt=!1,Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime,Tt?Tt(Ct).then(G):G(),!0),G=()=>{Oe&&(()=>{if(typeof document<"u"){const Ve=document.activeElement;null!=Ve&&Ve.blur&&Ve.blur()}})(),It&&It(Ct),mt=!0},X=()=>{Ye=!1,at=!1,xt=!1,mt=!0,Cn.release()},ce=Ve=>{const ut=Ye,fn=mt;if(X(),fn){if(Se(Ct,Ve),ut)return void(Te&&Te(Ct));Ze&&Ze(Ct)}},ue=((it,Ye,at,mt,xt)=>{let Dt,zt,Tt,It,Te,Ze,_e,$e=0;const Le=Re=>{$e=Date.now()+2e3,Ye(Re)&&(!zt&&at&&(zt=c(it,"touchmove",at,xt)),Tt||(Tt=c(Re.target,"touchend",Ct,xt)),It||(It=c(Re.target,"touchcancel",Ct,xt)))},Oe=Re=>{$e>Date.now()||Ye(Re)&&(!Ze&&at&&(Ze=c(ae(it),"mousemove",at,xt)),_e||(_e=c(ae(it),"mouseup",kt,xt)))},Ct=Re=>{Cn(),mt&&mt(Re)},kt=Re=>{At(),mt&&mt(Re)},Cn=()=>{zt&&zt(),Tt&&Tt(),It&&It(),zt=Tt=It=void 0},At=()=>{Ze&&Ze(),_e&&_e(),Ze=_e=void 0},st=()=>{Cn(),At()},cn=(Re=!0)=>{Re?(Dt||(Dt=c(it,"touchstart",Le,xt)),Te||(Te=c(it,"mousedown",Oe,xt))):(Dt&&Dt(),Te&&Te(),Dt=Te=void 0,st())};return{enable:cn,stop:st,destroy:()=>{cn(!1),mt=at=Ye=void 0}}})(Dt.el,Ve=>{const ut=et(Ve);return!(at||!mt||(be(Ve,Ct),Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime=ut,Ct.velocityX=Ct.velocityY=Ct.deltaX=Ct.deltaY=0,Ct.event=Ve,zt&&!1===zt(Ct))||(Cn.release(),!Cn.start()))&&(at=!0,0===$e?vt():(kt.start(Ct.startX,Ct.startY),!0))},Ve=>{Ye?!xt&&mt&&(xt=!0,Se(Ct,Ve),requestAnimationFrame(cn)):(Se(Ct,Ve),kt.detect(Ct.currentX,Ct.currentY)&&(!kt.isGesture()||!vt())&&Ee())},ce,{capture:!1,passive:Le}),Ee=()=>{X(),ue.stop(),Ze&&Ze(Ct)};return{enable(Ve=!0){Ve||(Ye&&ce(void 0),X()),ue.enable(Ve)},destroy(){Cn.destroy(),ue.destroy()}}},Se=(it,Ye)=>{if(!Ye)return;const at=it.currentX,mt=it.currentY,xt=it.currentTime;be(Ye,it);const Dt=it.currentX,zt=it.currentY,It=(it.currentTime=et(Ye))-xt;if(It>0&&It<100){const Ze=(zt-mt)/It;it.velocityX=(Dt-at)/It*.7+.3*it.velocityX,it.velocityY=.7*Ze+.3*it.velocityY}it.deltaX=Dt-it.startX,it.deltaY=zt-it.startY,it.event=Ye},be=(it,Ye)=>{let at=0,mt=0;if(it){const xt=it.changedTouches;if(xt&&xt.length>0){const Dt=xt[0];at=Dt.clientX,mt=Dt.clientY}else void 0!==it.pageX&&(at=it.pageX,mt=it.pageY)}Ye.currentX=at,Ye.currentY=mt},et=it=>it.timeStamp||Date.now()},9672:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>he,a:()=>je,b:()=>Nr,c:()=>fn,d:()=>Sn,e:()=>vr,f:()=>vt,g:()=>xn,h:()=>st,i:()=>Je,j:()=>hr,k:()=>ae,r:()=>tr,w:()=>ai});var h=C(467);var ke=Object.defineProperty,he={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ae=W=>{const ye=new URL(W,K.$resourcesUrl$);return ye.origin!==Pt.location.origin?ye.href:ye.pathname},Xe={},et=W=>"object"==(W=typeof W)||"function"===W;function it(W){var ye,Fe,ot;return null!=(ot=null==(Fe=null==(ye=W.head)?void 0:ye.querySelector('meta[name="csp-nonce"]'))?void 0:Fe.getAttribute("content"))?ot:void 0}((W,ye)=>{for(var Fe in ye)ke(W,Fe,{get:ye[Fe],enumerable:!0})})({},{err:()=>mt,map:()=>xt,ok:()=>at,unwrap:()=>Dt,unwrapErr:()=>zt});var at=W=>({isOk:!0,isErr:!1,value:W}),mt=W=>({isOk:!1,isErr:!0,value:W});function xt(W,ye){if(W.isOk){const Fe=ye(W.value);return Fe instanceof Promise?Fe.then(ot=>at(ot)):at(Fe)}if(W.isErr)return mt(W.value);throw"should never get here"}var Dt=W=>{if(W.isOk)return W.value;throw W.value},zt=W=>{if(W.isErr)return W.value;throw W.value},Le="s-id",Oe="sty-id",Cn="slot-fb{display:contents}slot-fb[hidden]{display:none}",At="http://www.w3.org/1999/xlink",st=(W,ye,...Fe)=>{let ot=null,Ot=null,wt=null,en=!1,pn=!1;const vn=[],bn=Yn=>{for(let _r=0;_rYn[_r]).join(" "))}}if("function"==typeof W)return W(null===ye?{}:ye,vn,G);const Gn=cn(W,null);return Gn.$attrs$=ye,vn.length>0&&(Gn.$children$=vn),Gn.$key$=Ot,Gn.$name$=wt,Gn},cn=(W,ye)=>({$flags$:0,$tag$:W,$text$:ye,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),vt={},G={forEach:(W,ye)=>W.map(X).forEach(ye),map:(W,ye)=>W.map(X).map(ye).map(ce)},X=W=>({vattrs:W.$attrs$,vchildren:W.$children$,vkey:W.$key$,vname:W.$name$,vtag:W.$tag$,vtext:W.$text$}),ce=W=>{if("function"==typeof W.vtag){const Fe={...W.vattrs};return W.vkey&&(Fe.key=W.vkey),W.vname&&(Fe.name=W.vname),st(W.vtag,Fe,...W.vchildren||[])}const ye=cn(W.vtag,W.vtext);return ye.$attrs$=W.vattrs,ye.$children$=W.vchildren,ye.$key$=W.vkey,ye.$name$=W.vname,ye},Ee=(W,ye,Fe,ot,Ot,wt,en)=>{let pn,vn,bn,Gn;if(1===wt.nodeType){for(pn=wt.getAttribute("c-id"),pn&&(vn=pn.split("."),(vn[0]===en||"0"===vn[0])&&(bn={$flags$:0,$hostId$:vn[0],$nodeId$:vn[1],$depth$:vn[2],$index$:vn[3],$tag$:wt.tagName.toLowerCase(),$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ye.push(bn),wt.removeAttribute("c-id"),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,W=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))),Gn=wt.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.childNodes[Gn],en);if(wt.shadowRoot)for(Gn=wt.shadowRoot.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.shadowRoot.childNodes[Gn],en)}else if(8===wt.nodeType)vn=wt.nodeValue.split("."),(vn[1]===en||"0"===vn[1])&&(pn=vn[0],bn={$flags$:0,$hostId$:vn[1],$nodeId$:vn[2],$depth$:vn[3],$index$:vn[4],$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===pn?(bn.$elm$=wt.nextSibling,bn.$elm$&&3===bn.$elm$.nodeType&&(bn.$text$=bn.$elm$.textContent,ye.push(bn),wt.remove(),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))):bn.$hostId$===en&&("s"===pn?(bn.$tag$="slot",wt["s-sn"]=vn[5]?bn.$name$=vn[5]:"",wt["s-sr"]=!0,ot&&(bn.$elm$=ge.createElement(bn.$tag$),bn.$name$&&bn.$elm$.setAttribute("name",bn.$name$),wt.parentNode.insertBefore(bn.$elm$,wt),wt.remove(),"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$)),Fe.push(bn),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn):"r"===pn&&(ot?wt.remove():(Ot["s-cr"]=wt,wt["s-cn"]=!0))));else if(W&&"style"===W.$tag$){const Yn=cn(null,wt.textContent);Yn.$elm$=wt,Yn.$index$="0",W.$children$=[Yn]}},Ve=(W,ye)=>{if(1===W.nodeType){let Fe=0;for(;Feui.push(W),xn=W=>_i(W).$modeName$,Je=W=>_i(W).$hostElement$,Sn=(W,ye,Fe)=>{const ot=Je(W);return{emit:Ot=>kn(ot,ye,{bubbles:!!(4&Fe),composed:!!(2&Fe),cancelable:!!(1&Fe),detail:Ot})}},kn=(W,ye,Fe)=>{const ot=K.ce(ye,Fe);return W.dispatchEvent(ot),ot},On=new WeakMap,or=(W,ye,Fe)=>{let ot=bo.get(W);Dn&&Fe?(ot=ot||new CSSStyleSheet,"string"==typeof ot?ot=ye:ot.replaceSync(ye)):ot=ye,bo.set(W,ot)},gr=(W,ye,Fe)=>{var ot;const Ot=dr(ye,Fe),wt=bo.get(Ot);if(W=11===W.nodeType?W:ge,wt)if("string"==typeof wt){let pn,en=On.get(W=W.head||W);if(en||On.set(W,en=new Set),!en.has(Ot)){if(W.host&&(pn=W.querySelector(`[${Oe}="${Ot}"]`)))pn.innerHTML=wt;else{pn=ge.createElement("style"),pn.innerHTML=wt;const vn=null!=(ot=K.$nonce$)?ot:it(ge);null!=vn&&pn.setAttribute("nonce",vn),W.insertBefore(pn,W.querySelector("link"))}4&ye.$flags$&&(pn.innerHTML+=Cn),en&&en.add(Ot)}}else W.adoptedStyleSheets.includes(wt)||(W.adoptedStyleSheets=[...W.adoptedStyleSheets,wt]);return Ot},dr=(W,ye)=>"sc-"+(ye&&32&W.$flags$?W.$tagName$+"-"+ye:W.$tagName$),nt=W=>W.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Lt=(W,ye,Fe,ot,Ot,wt)=>{if(Fe!==ot){let en=mo(W,ye),pn=ye.toLowerCase();if("class"===ye){const vn=W.classList,bn=yn(Fe),Gn=yn(ot);vn.remove(...bn.filter(Yn=>Yn&&!Gn.includes(Yn))),vn.add(...Gn.filter(Yn=>Yn&&!bn.includes(Yn)))}else if("style"===ye){for(const vn in Fe)(!ot||null==ot[vn])&&(vn.includes("-")?W.style.removeProperty(vn):W.style[vn]="");for(const vn in ot)(!Fe||ot[vn]!==Fe[vn])&&(vn.includes("-")?W.style.setProperty(vn,ot[vn]):W.style[vn]=ot[vn])}else if("key"!==ye)if("ref"===ye)ot&&ot(W);else if(en||"o"!==ye[0]||"n"!==ye[1]){const vn=et(ot);if((en||vn&&null!==ot)&&!Ot)try{if(W.tagName.includes("-"))W[ye]=ot;else{const Gn=null==ot?"":ot;"list"===ye?en=!1:(null==Fe||W[ye]!=Gn)&&(W[ye]=Gn)}}catch{}let bn=!1;pn!==(pn=pn.replace(/^xlink\:?/,""))&&(ye=pn,bn=!0),null==ot||!1===ot?(!1!==ot||""===W.getAttribute(ye))&&(bn?W.removeAttributeNS(At,ye):W.removeAttribute(ye)):(!en||4&wt||Ot)&&!vn&&(ot=!0===ot?"":ot,bn?W.setAttributeNS(At,ye,ot):W.setAttribute(ye,ot))}else if(ye="-"===ye[2]?ye.slice(3):mo(Pt,pn)?pn.slice(2):pn[2]+ye.slice(3),Fe||ot){const vn=ye.endsWith(En);ye=ye.replace(Fr,""),Fe&&K.rel(W,ye,Fe,vn),ot&&K.ael(W,ye,ot,vn)}}},Xt=/\s/,yn=W=>W?W.split(Xt):[],En="Capture",Fr=new RegExp(En+"$"),Vn=(W,ye,Fe)=>{const ot=11===ye.$elm$.nodeType&&ye.$elm$.host?ye.$elm$.host:ye.$elm$,Ot=W&&W.$attrs$||Xe,wt=ye.$attrs$||Xe;for(const en of $n(Object.keys(Ot)))en in wt||Lt(ot,en,Ot[en],void 0,Fe,ye.$flags$);for(const en of $n(Object.keys(wt)))Lt(ot,en,Ot[en],wt[en],Fe,ye.$flags$)};function $n(W){return W.includes("ref")?[...W.filter(ye=>"ref"!==ye),"ref"]:W}var In,on,mr,br=!1,Vr=!1,rr=!1,Mr=!1,sr=(W,ye,Fe,ot)=>{var Ot;const wt=ye.$children$[Fe];let pn,vn,bn,en=0;if(br||(rr=!0,"slot"===wt.$tag$&&(In&&ot.classList.add(In+"-s"),wt.$flags$|=wt.$children$?2:1)),null!==wt.$text$)pn=wt.$elm$=ge.createTextNode(wt.$text$);else if(1&wt.$flags$)pn=wt.$elm$=ge.createTextNode("");else{if(Mr||(Mr="svg"===wt.$tag$),pn=wt.$elm$=ge.createElementNS(Mr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&wt.$flags$?"slot-fb":wt.$tag$),Mr&&"foreignObject"===wt.$tag$&&(Mr=!1),Vn(null,wt,Mr),(W=>null!=W)(In)&&pn["s-si"]!==In&&pn.classList.add(pn["s-si"]=In),wt.$children$)for(en=0;en{K.$flags$|=1;const ye=W.closest(mr.toLowerCase());if(null!=ye){const Fe=Array.from(ye.childNodes).find(Ot=>Ot["s-cr"]),ot=Array.from(W.childNodes);for(const Ot of Fe?ot.reverse():ot)null!=Ot["s-sh"]&&(Ie(ye,Ot,null!=Fe?Fe:null),Ot["s-sh"]=void 0,rr=!0)}K.$flags$&=-2},Tr=(W,ye)=>{K.$flags$|=1;const Fe=Array.from(W.childNodes);if(W["s-sr"]){let ot=W;for(;ot=ot.nextSibling;)ot&&ot["s-sn"]===W["s-sn"]&&ot["s-sh"]===mr&&Fe.push(ot)}for(let ot=Fe.length-1;ot>=0;ot--){const Ot=Fe[ot];Ot["s-hn"]!==mr&&Ot["s-ol"]&&(Ie(Di(Ot),Ot,li(Ot)),Ot["s-ol"].remove(),Ot["s-ol"]=void 0,Ot["s-sh"]=void 0,rr=!0),ye&&Tr(Ot,ye)}K.$flags$&=-2},yr=(W,ye,Fe,ot,Ot,wt)=>{let pn,en=W["s-cr"]&&W["s-cr"].parentNode||W;for(en.shadowRoot&&en.tagName===mr&&(en=en.shadowRoot);Ot<=wt;++Ot)ot[Ot]&&(pn=sr(null,Fe,Ot,W),pn&&(ot[Ot].$elm$=pn,Ie(en,pn,li(ye))))},Br=(W,ye,Fe)=>{for(let ot=ye;ot<=Fe;++ot){const Ot=W[ot];if(Ot){const wt=Ot.$elm$;de(Ot),wt&&(Vr=!0,wt["s-ol"]?wt["s-ol"].remove():Tr(wt,!0),wt.remove())}}},Lr=(W,ye,Fe=!1)=>W.$tag$===ye.$tag$&&("slot"===W.$tag$?W.$name$===ye.$name$:!!Fe||W.$key$===ye.$key$),li=W=>W&&W["s-ol"]||W,Di=W=>(W["s-ol"]?W["s-ol"]:W).parentNode,Zr=(W,ye,Fe=!1)=>{const ot=ye.$elm$=W.$elm$,Ot=W.$children$,wt=ye.$children$,en=ye.$tag$,pn=ye.$text$;let vn;null===pn?(Mr="svg"===en||"foreignObject"!==en&&Mr,"slot"!==en||br?Vn(W,ye,Mr):W.$name$!==ye.$name$&&(ye.$elm$["s-sn"]=ye.$name$||"",ii(ye.$elm$.parentElement)),null!==Ot&&null!==wt?((W,ye,Fe,ot,Ot=!1)=>{let Wr,kr,wt=0,en=0,pn=0,vn=0,bn=ye.length-1,Gn=ye[0],Yn=ye[bn],_r=ot.length-1,Kn=ot[0],Qr=ot[_r];for(;wt<=bn&&en<=_r;)if(null==Gn)Gn=ye[++wt];else if(null==Yn)Yn=ye[--bn];else if(null==Kn)Kn=ot[++en];else if(null==Qr)Qr=ot[--_r];else if(Lr(Gn,Kn,Ot))Zr(Gn,Kn,Ot),Gn=ye[++wt],Kn=ot[++en];else if(Lr(Yn,Qr,Ot))Zr(Yn,Qr,Ot),Yn=ye[--bn],Qr=ot[--_r];else if(Lr(Gn,Qr,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Gn.$elm$.parentNode,!1),Zr(Gn,Qr,Ot),Ie(W,Gn.$elm$,Yn.$elm$.nextSibling),Gn=ye[++wt],Qr=ot[--_r];else if(Lr(Yn,Kn,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Yn.$elm$.parentNode,!1),Zr(Yn,Kn,Ot),Ie(W,Yn.$elm$,Gn.$elm$),Yn=ye[--bn],Kn=ot[++en];else{for(pn=-1,vn=wt;vn<=bn;++vn)if(ye[vn]&&null!==ye[vn].$key$&&ye[vn].$key$===Kn.$key$){pn=vn;break}pn>=0?(kr=ye[pn],kr.$tag$!==Kn.$tag$?Wr=sr(ye&&ye[en],Fe,pn,W):(Zr(kr,Kn,Ot),ye[pn]=void 0,Wr=kr.$elm$),Kn=ot[++en]):(Wr=sr(ye&&ye[en],Fe,en,W),Kn=ot[++en]),Wr&&Ie(Di(Gn.$elm$),Wr,li(Gn.$elm$))}wt>bn?yr(W,null==ot[_r+1]?null:ot[_r+1].$elm$,Fe,ot,en,_r):en>_r&&Br(ye,wt,bn)})(ot,Ot,ye,wt,Fe):null!==wt?(null!==W.$text$&&(ot.textContent=""),yr(ot,null,ye,wt,0,wt.length-1)):null!==Ot&&Br(Ot,0,Ot.length-1),Mr&&"svg"===en&&(Mr=!1)):(vn=ot["s-cr"])?vn.parentNode.textContent=pn:W.$text$!==pn&&(ot.data=pn)},ve=W=>{const ye=W.childNodes;for(const Fe of ye)if(1===Fe.nodeType){if(Fe["s-sr"]){const ot=Fe["s-sn"];Fe.hidden=!1;for(const Ot of ye)if(Ot!==Fe)if(Ot["s-hn"]!==Fe["s-hn"]||""!==ot){if(1===Ot.nodeType&&(ot===Ot.getAttribute("slot")||ot===Ot["s-sn"])||3===Ot.nodeType&&ot===Ot["s-sn"]){Fe.hidden=!0;break}}else if(1===Ot.nodeType||3===Ot.nodeType&&""!==Ot.textContent.trim()){Fe.hidden=!0;break}}ve(Fe)}},rt=[],Nt=W=>{let ye,Fe,ot;for(const Ot of W.childNodes){if(Ot["s-sr"]&&(ye=Ot["s-cr"])&&ye.parentNode){Fe=ye.parentNode.childNodes;const wt=Ot["s-sn"];for(ot=Fe.length-1;ot>=0;ot--)if(ye=Fe[ot],!(ye["s-cn"]||ye["s-nr"]||ye["s-hn"]===Ot["s-hn"]||ye["s-sh"]&&ye["s-sh"]===Ot["s-hn"]))if(pt(ye,wt)){let en=rt.find(pn=>pn.$nodeToRelocate$===ye);Vr=!0,ye["s-sn"]=ye["s-sn"]||wt,en?(en.$nodeToRelocate$["s-sh"]=Ot["s-hn"],en.$slotRefNode$=Ot):(ye["s-sh"]=Ot["s-hn"],rt.push({$slotRefNode$:Ot,$nodeToRelocate$:ye})),ye["s-sr"]&&rt.map(pn=>{pt(pn.$nodeToRelocate$,ye["s-sn"])&&(en=rt.find(vn=>vn.$nodeToRelocate$===ye),en&&!pn.$slotRefNode$&&(pn.$slotRefNode$=en.$slotRefNode$))})}else rt.some(en=>en.$nodeToRelocate$===ye)||rt.push({$nodeToRelocate$:ye})}1===Ot.nodeType&&Nt(Ot)}},pt=(W,ye)=>1===W.nodeType?null===W.getAttribute("slot")&&""===ye||W.getAttribute("slot")===ye:W["s-sn"]===ye||""===ye,de=W=>{W.$attrs$&&W.$attrs$.ref&&W.$attrs$.ref(null),W.$children$&&W.$children$.map(de)},Ie=(W,ye,Fe)=>{const ot=null==W?void 0:W.insertBefore(ye,Fe);return $t(ye,W),ot},Ge=W=>W?W["s-rsc"]||W["s-si"]||W["s-sc"]||Ge(W.parentElement):void 0,$t=(W,ye)=>{var Fe,ot,Ot;if(W&&ye){const wt=W["s-rsc"],en=Ge(ye);wt&&null!=(Fe=W.classList)&&Fe.contains(wt)&&W.classList.remove(wt),en&&(W["s-rsc"]=en,(null==(ot=W.classList)||!ot.contains(en))&&(null==(Ot=W.classList)||Ot.add(en)))}},gt=(W,ye)=>{ye&&!W.$onRenderResolve$&&ye["s-p"]&&ye["s-p"].push(new Promise(Fe=>W.$onRenderResolve$=Fe))},ft=(W,ye)=>{if(W.$flags$|=16,!(4&W.$flags$))return gt(W,W.$ancestorComponent$),ai(()=>Qt(W,ye));W.$flags$|=512},Qt=(W,ye)=>{const ot=W.$lazyInstance$;let Ot;return ye&&(W.$flags$|=256,W.$queuedListeners$&&(W.$queuedListeners$.map(([wt,en])=>fr(ot,wt,en)),W.$queuedListeners$=void 0),Ot=fr(ot,"componentWillLoad")),Ot=sn(Ot,()=>fr(ot,"componentWillRender")),sn(Ot,()=>Xn(W,ot,ye))},sn=(W,ye)=>Tn(W)?W.then(ye):ye(),Tn=W=>W instanceof Promise||W&&W.then&&"function"==typeof W.then,Xn=function(){var W=(0,h.A)(function*(ye,Fe,ot){var Ot;const wt=ye.$hostElement$,pn=wt["s-rc"];ot&&(W=>{const ye=W.$cmpMeta$,Fe=W.$hostElement$,ot=ye.$flags$,wt=gr(Fe.shadowRoot?Fe.shadowRoot:Fe.getRootNode(),ye,W.$modeName$);10&ot&&(Fe["s-sc"]=wt,Fe.classList.add(wt+"-h"),2&ot&&Fe.classList.add(wt+"-s"))})(ye);dn(ye,Fe,wt,ot),pn&&(pn.map(bn=>bn()),wt["s-rc"]=void 0);{const bn=null!=(Ot=wt["s-p"])?Ot:[],Gn=()=>wn(ye);0===bn.length?Gn():(Promise.all(bn).then(Gn),ye.$flags$|=4,bn.length=0)}});return function(Fe,ot,Ot){return W.apply(this,arguments)}}(),dn=(W,ye,Fe,ot)=>{try{ye=ye.render&&ye.render(),W.$flags$&=-17,W.$flags$|=2,((W,ye,Fe=!1)=>{var ot,Ot,wt,en,pn;const vn=W.$hostElement$,bn=W.$cmpMeta$,Gn=W.$vnode$||cn(null,null),Yn=(W=>W&&W.$tag$===vt)(ye)?ye:st(null,null,ye);if(mr=vn.tagName,bn.$attrsToReflect$&&(Yn.$attrs$=Yn.$attrs$||{},bn.$attrsToReflect$.map(([_r,Kn])=>Yn.$attrs$[Kn]=vn[_r])),Fe&&Yn.$attrs$)for(const _r of Object.keys(Yn.$attrs$))vn.hasAttribute(_r)&&!["key","ref","style","class"].includes(_r)&&(Yn.$attrs$[_r]=vn[_r]);if(Yn.$tag$=null,Yn.$flags$|=4,W.$vnode$=Yn,Yn.$elm$=Gn.$elm$=vn.shadowRoot||vn,In=vn["s-sc"],br=!!(1&bn.$flags$),on=vn["s-cr"],Vr=!1,Zr(Gn,Yn,Fe),K.$flags$|=1,rr){Nt(Yn.$elm$);for(const _r of rt){const Kn=_r.$nodeToRelocate$;if(!Kn["s-ol"]){const Qr=ge.createTextNode("");Qr["s-nr"]=Kn,Ie(Kn.parentNode,Kn["s-ol"]=Qr,Kn)}}for(const _r of rt){const Kn=_r.$nodeToRelocate$,Qr=_r.$slotRefNode$;if(Qr){const Wr=Qr.parentNode;let kr=Qr.nextSibling;if(kr&&1===kr.nodeType){let ki=null==(ot=Kn["s-ol"])?void 0:ot.previousSibling;for(;ki;){let Fi=null!=(Ot=ki["s-nr"])?Ot:null;if(Fi&&Fi["s-sn"]===Kn["s-sn"]&&Wr===Fi.parentNode){for(Fi=Fi.nextSibling;Fi===Kn||null!=Fi&&Fi["s-sr"];)Fi=null==Fi?void 0:Fi.nextSibling;if(!Fi||!Fi["s-nr"]){kr=Fi;break}}ki=ki.previousSibling}}(!kr&&Wr!==Kn.parentNode||Kn.nextSibling!==kr)&&Kn!==kr&&(Ie(Wr,Kn,kr),1===Kn.nodeType&&(Kn.hidden=null!=(wt=Kn["s-ih"])&&wt)),Kn&&"function"==typeof Qr["s-rf"]&&Qr["s-rf"](Kn)}else 1===Kn.nodeType&&(Fe&&(Kn["s-ih"]=null!=(en=Kn.hidden)&&en),Kn.hidden=!0)}}if(Vr&&ve(Yn.$elm$),K.$flags$&=-2,rt.length=0,2&bn.$flags$)for(const _r of Yn.$elm$.childNodes)_r["s-hn"]!==mr&&!_r["s-sh"]&&(Fe&&null==_r["s-ih"]&&(_r["s-ih"]=null!=(pn=_r.hidden)&&pn),_r.hidden=!0);on=void 0})(W,ye,ot)}catch(Ot){fi(Ot,W.$hostElement$)}return null},wn=W=>{const Fe=W.$hostElement$,Ot=W.$lazyInstance$,wt=W.$ancestorComponent$;fr(Ot,"componentDidRender"),64&W.$flags$?fr(Ot,"componentDidUpdate"):(W.$flags$|=64,Ur(Fe),fr(Ot,"componentDidLoad"),W.$onReadyResolve$(Fe),wt||wr()),W.$onInstanceResolve$(Fe),W.$onRenderResolve$&&(W.$onRenderResolve$(),W.$onRenderResolve$=void 0),512&W.$flags$&&dt(()=>ft(W,!1)),W.$flags$&=-517},hr=W=>{{const ye=_i(W),Fe=ye.$hostElement$.isConnected;return Fe&&2==(18&ye.$flags$)&&ft(ye,!1),Fe}},wr=W=>{Ur(ge.documentElement),dt(()=>kn(Pt,"appload",{detail:{namespace:"ionic"}}))},fr=(W,ye,Fe)=>{if(W&&W[ye])try{return W[ye](Fe)}catch(ot){fi(ot)}},Ur=W=>W.classList.add("hydrated"),xi=(W,ye,Fe)=>{var ot;const Ot=W.prototype;if(ye.$members$){W.watchers&&(ye.$watchers$=W.watchers);const wt=Object.entries(ye.$members$);if(wt.map(([en,[pn]])=>{31&pn||2&Fe&&32&pn?Object.defineProperty(Ot,en,{get(){return((W,ye)=>_i(this).$instanceValues$.get(ye))(0,en)},set(vn){((W,ye,Fe,ot)=>{const Ot=_i(W);if(!Ot)throw new Error(`Couldn't find host element for "${ot.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const wt=Ot.$hostElement$,en=Ot.$instanceValues$.get(ye),pn=Ot.$flags$,vn=Ot.$lazyInstance$;Fe=((W,ye)=>null==W||et(W)?W:4&ye?"false"!==W&&(""===W||!!W):2&ye?parseFloat(W):1&ye?String(W):W)(Fe,ot.$members$[ye][0]);const bn=Number.isNaN(en)&&Number.isNaN(Fe);if((!(8&pn)||void 0===en)&&Fe!==en&&!bn&&(Ot.$instanceValues$.set(ye,Fe),vn)){if(ot.$watchers$&&128&pn){const Yn=ot.$watchers$[ye];Yn&&Yn.map(_r=>{try{vn[_r](Fe,en,ye)}catch(Kn){fi(Kn,wt)}})}2==(18&pn)&&ft(Ot,!1)}})(this,en,vn,ye)},configurable:!0,enumerable:!0}):1&Fe&&64&pn&&Object.defineProperty(Ot,en,{value(...vn){var bn;const Gn=_i(this);return null==(bn=null==Gn?void 0:Gn.$onInstancePromise$)?void 0:bn.then(()=>{var Yn;return null==(Yn=Gn.$lazyInstance$)?void 0:Yn[en](...vn)})}})}),1&Fe){const en=new Map;Ot.attributeChangedCallback=function(pn,vn,bn){K.jmp(()=>{var Gn;const Yn=en.get(pn);if(this.hasOwnProperty(Yn))bn=this[Yn],delete this[Yn];else{if(Ot.hasOwnProperty(Yn)&&"number"==typeof this[Yn]&&this[Yn]==bn)return;if(null==Yn){const _r=_i(this),Kn=null==_r?void 0:_r.$flags$;if(Kn&&!(8&Kn)&&128&Kn&&bn!==vn){const Qr=_r.$lazyInstance$,Wr=null==(Gn=ye.$watchers$)?void 0:Gn[pn];null==Wr||Wr.forEach(kr=>{null!=Qr[kr]&&Qr[kr].call(Qr,bn,vn,pn)})}return}}this[Yn]=(null!==bn||"boolean"!=typeof this[Yn])&&bn})},W.observedAttributes=Array.from(new Set([...Object.keys(null!=(ot=ye.$watchers$)?ot:{}),...wt.filter(([pn,vn])=>15&vn[0]).map(([pn,vn])=>{var bn;const Gn=vn[1]||pn;return en.set(Gn,pn),512&vn[0]&&(null==(bn=ye.$attrsToReflect$)||bn.push([pn,Gn])),Gn})]))}}return W},vi=function(){var W=(0,h.A)(function*(ye,Fe,ot,Ot){let wt;if(!(32&Fe.$flags$)){if(Fe.$flags$|=32,ot.$lazyBundleId$){if(wt=vo(ot),wt.then){const Gn=()=>{};wt=yield wt,Gn()}wt.isProxied||(ot.$watchers$=wt.watchers,xi(wt,ot,2),wt.isProxied=!0);const bn=()=>{};Fe.$flags$|=8;try{new wt(Fe)}catch(Gn){fi(Gn)}Fe.$flags$&=-9,Fe.$flags$|=128,bn(),Ar(Fe.$lazyInstance$)}else wt=ye.constructor,customElements.whenDefined(ot.$tagName$).then(()=>Fe.$flags$|=128);if(wt.style){let bn=wt.style;"string"!=typeof bn&&(bn=bn[Fe.$modeName$=(W=>ui.map(ye=>ye(W)).find(ye=>!!ye))(ye)]);const Gn=dr(ot,Fe.$modeName$);if(!bo.has(Gn)){const Yn=()=>{};or(Gn,bn,!!(1&ot.$flags$)),Yn()}}}const en=Fe.$ancestorComponent$,pn=()=>ft(Fe,!0);en&&en["s-rc"]?en["s-rc"].push(pn):pn()});return function(Fe,ot,Ot,wt){return W.apply(this,arguments)}}(),Ar=W=>{fr(W,"connectedCallback")},ie=W=>{const ye=W["s-cr"]=ge.createComment("");ye["s-cn"]=!0,Ie(W,ye,W.firstChild)},te=W=>{fr(W,"disconnectedCallback")},ze=function(){var W=(0,h.A)(function*(ye){if(!(1&K.$flags$)){const Fe=_i(ye);Fe.$rmListeners$&&(Fe.$rmListeners$.map(ot=>ot()),Fe.$rmListeners$=void 0),null!=Fe&&Fe.$lazyInstance$?te(Fe.$lazyInstance$):null!=Fe&&Fe.$onReadyPromise$&&Fe.$onReadyPromise$.then(()=>te(Fe.$lazyInstance$))}});return function(Fe){return W.apply(this,arguments)}}(),O=W=>{const ye=W.cloneNode;W.cloneNode=function(Fe){const ot=this,Ot=ot.shadowRoot&&Be,wt=ye.call(ot,!!Ot&&Fe);if(!Ot&&Fe){let pn,vn,en=0;const bn=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;en!ot.childNodes[en][Gn]),pn&&(wt.__appendChild?wt.__appendChild(pn.cloneNode(!0)):wt.appendChild(pn.cloneNode(!0))),vn&&wt.appendChild(ot.childNodes[en].cloneNode(!0))}return wt}},re=W=>{W.__appendChild=W.appendChild,W.appendChild=function(ye){const Fe=ye["s-sn"]=zr(ye),ot=$r(this.childNodes,Fe,this.tagName);if(ot){const Ot=Pr(ot,Fe),wt=Ot[Ot.length-1],en=Ie(wt.parentNode,ye,wt.nextSibling);return ve(this),en}return this.__appendChild(ye)}},we=W=>{W.__removeChild=W.removeChild,W.removeChild=function(ye){if(ye&&typeof ye["s-sn"]<"u"){const Fe=$r(this.childNodes,ye["s-sn"],this.tagName);if(Fe){const Ot=Pr(Fe,ye["s-sn"]).find(wt=>wt===ye);if(Ot)return Ot.remove(),void ve(this)}}return this.__removeChild(ye)}},We=W=>{const ye=W.prepend;W.prepend=function(...Fe){Fe.forEach(ot=>{"string"==typeof ot&&(ot=this.ownerDocument.createTextNode(ot));const Ot=ot["s-sn"]=zr(ot),wt=$r(this.childNodes,Ot,this.tagName);if(wt){const en=document.createTextNode("");en["s-nr"]=ot,wt["s-cr"].parentNode.__appendChild(en),ot["s-ol"]=en;const vn=Pr(wt,Ot)[0];return Ie(vn.parentNode,ot,vn.nextSibling)}return 1===ot.nodeType&&ot.getAttribute("slot")&&(ot.hidden=!0),ye.call(this,ot)})}},St=W=>{W.append=function(...ye){ye.forEach(Fe=>{"string"==typeof Fe&&(Fe=this.ownerDocument.createTextNode(Fe)),this.appendChild(Fe)})}},nn=W=>{const ye=W.insertAdjacentHTML;W.insertAdjacentHTML=function(Fe,ot){if("afterbegin"!==Fe&&"beforeend"!==Fe)return ye.call(this,Fe,ot);const Ot=this.ownerDocument.createElement("_");let wt;if(Ot.innerHTML=ot,"afterbegin"===Fe)for(;wt=Ot.firstChild;)this.prepend(wt);else if("beforeend"===Fe)for(;wt=Ot.firstChild;)this.append(wt)}},rn=W=>{W.insertAdjacentText=function(ye,Fe){this.insertAdjacentHTML(ye,Fe)}},pr=W=>{const ye=W.insertAdjacentElement;W.insertAdjacentElement=function(Fe,ot){return"afterbegin"!==Fe&&"beforeend"!==Fe?ye.call(this,Fe,ot):"afterbegin"===Fe?(this.prepend(ot),ot):("beforeend"===Fe&&this.append(ot),ot)}},qn=W=>{const ye=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(W,"__textContent",ye),Object.defineProperty(W,"textContent",{get(){return" "+jn(this.childNodes).map(Ot=>{var wt,en;const pn=[];let vn=Ot.nextSibling;for(;vn&&vn["s-sn"]===Ot["s-sn"];)(3===vn.nodeType||1===vn.nodeType)&&pn.push(null!=(en=null==(wt=vn.textContent)?void 0:wt.trim())?en:""),vn=vn.nextSibling;return pn.filter(bn=>""!==bn).join(" ")}).filter(Ot=>""!==Ot).join(" ")+" "},set(Fe){jn(this.childNodes).forEach(Ot=>{let wt=Ot.nextSibling;for(;wt&&wt["s-sn"]===Ot["s-sn"];){const en=wt;wt=wt.nextSibling,en.remove()}if(""===Ot["s-sn"]){const en=this.ownerDocument.createTextNode(Fe);en["s-sn"]="",Ie(Ot.parentElement,en,Ot.nextSibling)}else Ot.remove()})}})},Sr=(W,ye)=>{class Fe extends Array{item(Ot){return this[Ot]}}if(8&ye.$flags$){const ot=W.__lookupGetter__("childNodes");Object.defineProperty(W,"children",{get(){return this.childNodes.map(Ot=>1===Ot.nodeType)}}),Object.defineProperty(W,"childElementCount",{get:()=>W.children.length}),Object.defineProperty(W,"childNodes",{get(){const Ot=ot.call(this);if(!(1&K.$flags$)&&2&_i(this).$flags$){const wt=new Fe;for(let en=0;en{const ye=[];for(const Fe of Array.from(W))Fe["s-sr"]&&ye.push(Fe),ye.push(...jn(Fe.childNodes));return ye},zr=W=>W["s-sn"]||1===W.nodeType&&W.getAttribute("slot")||"",$r=(W,ye,Fe)=>{let Ot,ot=0;for(;ot{const Fe=[W];for(;(W=W.nextSibling)&&W["s-sn"]===ye;)Fe.push(W);return Fe},Nr=(W,ye={})=>{var Fe;const Ot=[],wt=ye.exclude||[],en=Pt.customElements,pn=ge.head,vn=pn.querySelector("meta[charset]"),bn=ge.createElement("style"),Gn=[],Yn=ge.querySelectorAll(`[${Oe}]`);let _r,Kn=!0,Qr=0;for(Object.assign(K,ye),K.$resourcesUrl$=new URL(ye.resourcesUrl||"./",ge.baseURI).href,K.$flags$|=2;Qr{kr[1].map(ki=>{var Fi;const Bi={$flags$:ki[0],$tagName$:ki[1],$members$:ki[2],$listeners$:ki[3]};4&Bi.$flags$&&(Wr=!0),Bi.$members$=ki[2],Bi.$listeners$=ki[3],Bi.$attrsToReflect$=[],Bi.$watchers$=null!=(Fi=ki[4])?Fi:{};const yo=Bi.$tagName$,Jo=class extends HTMLElement{constructor(Kr){super(Kr),Zn(Kr=this,Bi),1&Bi.$flags$&&Kr.attachShadow({mode:"open",delegatesFocus:!!(16&Bi.$flags$)})}connectedCallback(){_r&&(clearTimeout(_r),_r=null),Kn?Gn.push(this):K.jmp(()=>(W=>{if(!(1&K.$flags$)){const ye=_i(W),Fe=ye.$cmpMeta$,ot=()=>{};if(1&ye.$flags$)er(W,ye,Fe.$listeners$),null!=ye&&ye.$lazyInstance$?Ar(ye.$lazyInstance$):null!=ye&&ye.$onReadyPromise$&&ye.$onReadyPromise$.then(()=>Ar(ye.$lazyInstance$));else{let Ot;if(ye.$flags$|=1,Ot=W.getAttribute(Le),Ot){if(1&Fe.$flags$){const wt=gr(W.shadowRoot,Fe,W.getAttribute("s-mode"));W.classList.remove(wt+"-h",wt+"-s")}((W,ye,Fe,ot)=>{const wt=W.shadowRoot,en=[],vn=wt?[]:null,bn=ot.$vnode$=cn(ye,null);K.$orgLocNodes$||Ve(ge.body,K.$orgLocNodes$=new Map),W[Le]=Fe,W.removeAttribute(Le),Ee(bn,en,[],vn,W,W,Fe),en.map(Gn=>{const Yn=Gn.$hostId$+"."+Gn.$nodeId$,_r=K.$orgLocNodes$.get(Yn),Kn=Gn.$elm$;_r&&Be&&""===_r["s-en"]&&_r.parentNode.insertBefore(Kn,_r.nextSibling),wt||(Kn["s-hn"]=ye,_r&&(Kn["s-ol"]=_r,Kn["s-ol"]["s-nr"]=Kn)),K.$orgLocNodes$.delete(Yn)}),wt&&vn.map(Gn=>{Gn&&wt.appendChild(Gn)})})(W,Fe.$tagName$,Ot,ye)}Ot||12&Fe.$flags$&&ie(W);{let wt=W;for(;wt=wt.parentNode||wt.host;)if(1===wt.nodeType&&wt.hasAttribute("s-id")&&wt["s-p"]||wt["s-p"]){gt(ye,ye.$ancestorComponent$=wt);break}}Fe.$members$&&Object.entries(Fe.$members$).map(([wt,[en]])=>{if(31&en&&W.hasOwnProperty(wt)){const pn=W[wt];delete W[wt],W[wt]=pn}}),vi(W,ye,Fe)}ot()}})(this))}disconnectedCallback(){K.jmp(()=>ze(this))}componentOnReady(){return _i(this).$onReadyPromise$}};2&Bi.$flags$&&((W,ye)=>{O(W),re(W),St(W),We(W),pr(W),nn(W),rn(W),qn(W),Sr(W,ye),we(W)})(Jo.prototype,Bi),Bi.$lazyBundleId$=kr[0],!wt.includes(yo)&&!en.get(yo)&&(Ot.push(yo),en.define(yo,xi(Jo,Bi,1)))})}),Ot.length>0&&(Wr&&(bn.textContent+=Cn),bn.textContent+=Ot+"{visibility:hidden}.hydrated{visibility:inherit}",bn.innerHTML.length)){bn.setAttribute("data-styles","");const kr=null!=(Fe=K.$nonce$)?Fe:it(ge);null!=kr&&bn.setAttribute("nonce",kr),pn.insertBefore(bn,vn?vn.nextSibling:pn.firstChild)}Kn=!1,Gn.length?Gn.map(kr=>kr.connectedCallback()):K.jmp(()=>_r=setTimeout(wr,30))},er=(W,ye,Fe,ot)=>{Fe&&Fe.map(([Ot,wt,en])=>{const pn=di(W,Ot),vn=Rr(ye,en),bn=hi(Ot);K.ael(pn,wt,vn,bn),(ye.$rmListeners$=ye.$rmListeners$||[]).push(()=>K.rel(pn,wt,vn,bn))})},Rr=(W,ye)=>Fe=>{try{256&W.$flags$?W.$lazyInstance$[ye](Fe):(W.$queuedListeners$=W.$queuedListeners$||[]).push([ye,Fe])}catch(ot){fi(ot)}},di=(W,ye)=>4&ye?ge:8&ye?Pt:16&ye?ge.body:W,hi=W=>ct?{passive:!!(1&W),capture:!!(2&W)}:!!(2&W),Hr=new WeakMap,_i=W=>Hr.get(W),tr=(W,ye)=>Hr.set(ye.$lazyInstance$=W,ye),Zn=(W,ye)=>{const Fe={$flags$:0,$hostElement$:W,$cmpMeta$:ye,$instanceValues$:new Map};return Fe.$onInstancePromise$=new Promise(ot=>Fe.$onInstanceResolve$=ot),Fe.$onReadyPromise$=new Promise(ot=>Fe.$onReadyResolve$=ot),W["s-p"]=[],W["s-rc"]=[],er(W,Fe,ye.$listeners$),Hr.set(W,Fe)},mo=(W,ye)=>ye in W,fi=(W,ye)=>(0,console.error)(W,ye),yi=new Map,vo=(W,ye,Fe)=>{const ot=W.$tagName$.replace(/-/g,"_"),Ot=W.$lazyBundleId$,wt=yi.get(Ot);return wt?wt[ot]:C(8996)(`./${Ot}.entry.js`).then(en=>(yi.set(Ot,en),en[ot]),fi)},bo=new Map,ui=[],Pt=typeof window<"u"?window:{},ge=Pt.document||{head:{}},K={$flags$:0,$resourcesUrl$:"",jmp:W=>W(),raf:W=>requestAnimationFrame(W),ael:(W,ye,Fe,ot)=>W.addEventListener(ye,Fe,ot),rel:(W,ye,Fe,ot)=>W.removeEventListener(ye,Fe,ot),ce:(W,ye)=>new CustomEvent(W,ye)},je=W=>{Object.assign(K,W)},Be=!0,ct=(()=>{let W=!1;try{ge.addEventListener("e",null,Object.defineProperty({},"passive",{get(){W=!0}}))}catch{}return W})(),Dn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Hn=!1,w=[],H=[],oe=(W,ye)=>Fe=>{W.push(Fe),Hn||(Hn=!0,ye&&4&K.$flags$?dt(Ce):K.raf(Ce))},P=W=>{for(let ye=0;ye{P(w),P(H),(Hn=w.length>0)&&K.raf(Ce)},dt=W=>Promise.resolve(void 0).then(W),vr=oe(w,!1),ai=oe(H,!0)},2725:(Pn,Et,C)=>{"use strict";C.d(Et,{b:()=>Xe,c:()=>tt,d:()=>Se,e:()=>st,g:()=>Re,l:()=>Cn,s:()=>cn,t:()=>Dt,w:()=>At});var h=C(467),c=C(3664),Z=C(9672),ke=C(4929),$=C(4920);const Xe="ionViewWillLeave",tt="ionViewDidLeave",Se="ionViewWillUnload",be=G=>{G.tabIndex=-1,G.focus()},et=G=>null!==G.offsetParent,Ye="ion-last-focus",xt_saveViewFocus=ce=>{if(c.c.get("focusManagerPriority",!1)){const Ee=document.activeElement;null!==Ee&&null!=ce&&ce.contains(Ee)&&Ee.setAttribute(Ye,"true")}},xt_setViewFocus=ce=>{const ue=c.c.get("focusManagerPriority",!1);if(Array.isArray(ue)&&!ce.contains(document.activeElement)){const Ee=ce.querySelector(`[${Ye}]`);if(Ee&&et(Ee))return void be(Ee);for(const Ve of ue)switch(Ve){case"content":const ut=ce.querySelector('main, [role="main"]');if(ut&&et(ut))return void be(ut);break;case"heading":const fn=ce.querySelector('h1, [role="heading"][aria-level="1"]');if(fn&&et(fn))return void be(fn);break;case"banner":const xn=ce.querySelector('header, [role="banner"]');if(xn&&et(xn))return void be(xn);break;default:(0,ke.p)(`Unrecognized focus manager priority value ${Ve}`)}be(ce)}},Dt=G=>new Promise((X,ce)=>{(0,Z.w)(()=>{zt(G),Tt(G).then(ue=>{ue.animation&&ue.animation.destroy(),It(G),X(ue)},ue=>{It(G),ce(ue)})})}),zt=G=>{const X=G.enteringEl,ce=G.leavingEl;xt_saveViewFocus(ce),vt(X,ce,G.direction),G.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),cn(X,!1),X.style.setProperty("pointer-events","none"),ce&&(cn(ce,!1),ce.style.setProperty("pointer-events","none"))},Tt=function(){var G=(0,h.A)(function*(X){const ce=yield Te(X);return ce&&Z.B.isBrowser?Ze(ce,X):_e(X)});return function(ce){return G.apply(this,arguments)}}(),It=G=>{const X=G.enteringEl,ce=G.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==ce&&(ce.classList.remove("ion-page-invisible"),ce.style.removeProperty("pointer-events")),xt_setViewFocus(X)},Te=function(){var G=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(C.bind(C,8454))).iosTransitionAnimation:(yield Promise.resolve().then(C.bind(C,3314))).mdTransitionAnimation:void 0});return function(ce){return G.apply(this,arguments)}}(),Ze=function(){var G=(0,h.A)(function*(X,ce){yield $e(ce,!0);const ue=X(ce.baseEl,ce);Ct(ce.enteringEl,ce.leavingEl);const Ee=yield Oe(ue,ce);return ce.progressCallback&&ce.progressCallback(void 0),Ee&&kt(ce.enteringEl,ce.leavingEl),{hasCompleted:Ee,animation:ue}});return function(ce,ue){return G.apply(this,arguments)}}(),_e=function(){var G=(0,h.A)(function*(X){const ce=X.enteringEl,ue=X.leavingEl,Ee=c.c.get("focusManagerPriority",!1);return yield $e(X,Ee),Ct(ce,ue),kt(ce,ue),{hasCompleted:!0}});return function(ce){return G.apply(this,arguments)}}(),$e=function(){var G=(0,h.A)(function*(X,ce){(void 0!==X.deepWait?X.deepWait:ce)&&(yield Promise.all([st(X.enteringEl),st(X.leavingEl)])),yield Le(X.viewIsReady,X.enteringEl)});return function(ce,ue){return G.apply(this,arguments)}}(),Le=function(){var G=(0,h.A)(function*(X,ce){X&&(yield X(ce))});return function(ce,ue){return G.apply(this,arguments)}}(),Oe=(G,X)=>{const ce=X.progressCallback,ue=new Promise(Ee=>{G.onFinish(Ve=>Ee(1===Ve))});return ce?(G.progressStart(!0),ce(G)):G.play(),ue},Ct=(G,X)=>{Cn(X,Xe),Cn(G,"ionViewWillEnter")},kt=(G,X)=>{Cn(G,"ionViewDidEnter"),Cn(X,tt)},Cn=(G,X)=>{if(G){const ce=new CustomEvent(X,{bubbles:!1,cancelable:!1});G.dispatchEvent(ce)}},At=()=>new Promise(G=>(0,$.r)(()=>(0,$.r)(()=>G()))),st=function(){var G=(0,h.A)(function*(X){const ce=X;if(ce){if(null!=ce.componentOnReady){if(null!=(yield ce.componentOnReady()))return}else if(null!=ce.__registerHost)return void(yield new Promise(Ee=>(0,$.r)(Ee)));yield Promise.all(Array.from(ce.children).map(st))}});return function(ce){return G.apply(this,arguments)}}(),cn=(G,X)=>{X?(G.setAttribute("aria-hidden","true"),G.classList.add("ion-page-hidden")):(G.hidden=!1,G.removeAttribute("aria-hidden"),G.classList.remove("ion-page-hidden"))},vt=(G,X,ce)=>{void 0!==G&&(G.style.zIndex="back"===ce?"99":"101"),void 0!==X&&(X.style.zIndex="100")},Re=G=>G.classList.contains("ion-page")?G:G.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||G},4929:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>c,b:()=>Z,p:()=>h});const h=(ke,...$)=>console.warn(`[Ionic Warning]: ${ke}`,...$),c=(ke,...$)=>console.error(`[Ionic Error]: ${ke}`,...$),Z=(ke,...$)=>console.error(`<${ke.tagName.toLowerCase()}> must be used inside ${$.join(" or ")}.`)},8476:(Pn,Et,C)=>{"use strict";C.d(Et,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>be,b:()=>cn,c:()=>Z,i:()=>vt});var h=C(9672);class c{constructor(){this.m=new Map}reset(G){this.m=new Map(Object.entries(G))}get(G,X){const ce=this.m.get(G);return void 0!==ce?ce:X}getBoolean(G,X=!1){const ce=this.m.get(G);return void 0===ce?X:"string"==typeof ce?"true"===ce:!!ce}getNumber(G,X){const ce=parseFloat(this.m.get(G));return isNaN(ce)?void 0!==X?X:NaN:ce}set(G,X){this.m.set(G,X)}}const Z=new c,tt="ionic-persist-config",be=(Re,G)=>("string"==typeof Re&&(G=Re,Re=void 0),(Re=>et(Re))(Re).includes(G)),et=(Re=window)=>{if(typeof Re>"u")return[];Re.Ionic=Re.Ionic||{};let G=Re.Ionic.platforms;return null==G&&(G=Re.Ionic.platforms=it(Re),G.forEach(X=>Re.document.documentElement.classList.add(`plt-${X}`))),G},it=Re=>{const G=Z.get("platform");return Object.keys(At).filter(X=>{const ce=null==G?void 0:G[X];return"function"==typeof ce?ce(Re):At[X](Re)})},at=Re=>!!(kt(Re,/iPad/i)||kt(Re,/Macintosh/i)&&Te(Re)),Dt=Re=>kt(Re,/android|sink/i),Te=Re=>Cn(Re,"(any-pointer:coarse)"),_e=Re=>$e(Re)||Le(Re),$e=Re=>!!(Re.cordova||Re.phonegap||Re.PhoneGap),Le=Re=>{const G=Re.Capacitor;return!(null==G||!G.isNative)},kt=(Re,G)=>G.test(Re.navigator.userAgent),Cn=(Re,G)=>{var X;return null===(X=Re.matchMedia)||void 0===X?void 0:X.call(Re,G).matches},At={ipad:at,iphone:Re=>kt(Re,/iPhone/i),ios:Re=>kt(Re,/iPhone|iPod/i)||at(Re),android:Dt,phablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return ce>390&&ce<520&&ue>620&&ue<800},tablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return at(Re)||(Re=>Dt(Re)&&!kt(Re,/mobile/i))(Re)||ce>460&&ce<820&&ue>780&&ue<1400},cordova:$e,capacitor:Le,electron:Re=>kt(Re,/electron/i),pwa:Re=>{var G;return!!(null!==(G=Re.matchMedia)&&void 0!==G&&G.call(Re,"(display-mode: standalone)").matches||Re.navigator.standalone)},mobile:Te,mobileweb:Re=>Te(Re)&&!_e(Re),desktop:Re=>!Te(Re),hybrid:_e};let st;const cn=Re=>Re&&(0,h.g)(Re)||st,vt=(Re={})=>{if(typeof window>"u")return;const G=window.document,X=window,ce=X.Ionic=X.Ionic||{},ue={};Re._ael&&(ue.ael=Re._ael),Re._rel&&(ue.rel=Re._rel),Re._ce&&(ue.ce=Re._ce),(0,h.a)(ue);const Ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Re=>{try{const G=Re.sessionStorage.getItem(tt);return null!==G?JSON.parse(G):{}}catch{return{}}})(X)),{persistConfig:!1}),ce.config),(Re=>{const G={};return Re.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,ce])=>{try{return[decodeURIComponent(X),decodeURIComponent(ce)]}catch{return["",""]}}).filter(([X])=>((Re,G)=>Re.substr(0,G.length)===G)(X,"ionic:")).map(([X,ce])=>[X.slice(6),ce]).forEach(([X,ce])=>{G[X]=ce}),G})(X)),Re);Z.reset(Ee),Z.getBoolean("persistConfig")&&((Re,G)=>{try{Re.sessionStorage.setItem(tt,JSON.stringify(G))}catch{return}})(X,Ee),et(X),ce.config=Z,ce.mode=st=Z.get("mode",G.documentElement.getAttribute("mode")||(be(X,"ios")?"ios":"md")),Z.set("mode",st),G.documentElement.setAttribute("mode",st),G.documentElement.classList.add(st),Z.getBoolean("_testing")&&Z.set("animated",!1);const Ve=fn=>{var xn;return null===(xn=fn.tagName)||void 0===xn?void 0:xn.startsWith("ION-")},ut=fn=>["ios","md"].includes(fn);(0,h.c)(fn=>{for(;fn;){const xn=fn.mode||fn.getAttribute("mode");if(xn){if(ut(xn))return xn;Ve(fn)&&console.warn('Invalid ionic mode: "'+xn+'", expected: "ios" or "md"')}fn=fn.parentElement}return st})}},8454:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{iosTransitionAnimation:()=>Ye,shadow:()=>Xe});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const ae=mt=>document.querySelector(`${mt}.ion-cloned-element`),Xe=mt=>mt.shadowRoot||mt,tt=mt=>{const xt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs"),Dt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=xt){const zt=xt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=zt?zt.querySelector(Dt):null}return mt.querySelector(Dt)},Se=(mt,xt)=>{const Dt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs");let zt=[];if(null!=Dt){const Tt=Dt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Tt&&(zt=Tt.querySelectorAll("ion-buttons"))}else zt=mt.querySelectorAll("ion-buttons");for(const Tt of zt){const It=Tt.closest("ion-header"),Te=It&&!It.classList.contains("header-collapse-condense-inactive"),Ze=Tt.querySelector("ion-back-button"),_e=Tt.classList.contains("buttons-collapse");if(null!==Ze&&("start"===Tt.slot||""===Tt.slot)&&(_e&&Te&&xt||!_e))return Ze}return null},et=(mt,xt,Dt,zt,Tt,It,Te,Ze,_e)=>{var $e,Le;const Oe=xt?`calc(100% - ${Tt.right+4}px)`:Tt.left-4+"px",Ct=xt?"right":"left",kt=xt?"left":"right",Cn=xt?"right":"left";let At=1,st=1,cn=`scale(${st})`;const vt="scale(1)";if(It&&Te){const Xt=(null===($e=It.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=Ze.textContent)||void 0===Le?void 0:Le.trim());At=_e.width/Te.width,st=(_e.height-at)/Te.height,cn=Xt?`scale(${At}, ${st})`:`scale(${st})`}const G=Xe(zt).querySelector("ion-icon").getBoundingClientRect(),X=xt?G.width/2-(G.right-Tt.right)+"px":Tt.left-G.width/2+"px",ce=xt?`-${window.innerWidth-Tt.right}px`:`${Tt.left}px`,ue=`${_e.top}px`,Ee=`${Tt.top}px`,fn=Dt?[{offset:0,transform:`translate3d(${ce}, ${Ee}, 0)`},{offset:1,transform:`translate3d(${X}, ${ue}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${ue}, 0)`},{offset:1,transform:`translate3d(${ce}, ${Ee}, 0)`}],Je=Dt?[{offset:0,opacity:1,transform:vt},{offset:1,opacity:0,transform:cn}]:[{offset:0,opacity:0,transform:cn},{offset:1,opacity:1,transform:vt}],On=Dt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],or=(0,h.c)(),gr=(0,h.c)(),cr=(0,h.c)(),dr=ae("ion-back-button"),nt=Xe(dr).querySelector(".button-text"),Lt=Xe(dr).querySelector("ion-icon");dr.text=zt.text,dr.mode=zt.mode,dr.icon=zt.icon,dr.color=zt.color,dr.disabled=zt.disabled,dr.style.setProperty("display","block"),dr.style.setProperty("position","fixed"),gr.addElement(Lt),or.addElement(nt),cr.addElement(dr),cr.beforeStyles({position:"absolute",top:"0px",[Cn]:"0px"}).beforeAddWrite(()=>{zt.style.setProperty("display","none"),dr.style.setProperty(Ct,Oe)}).afterAddWrite(()=>{zt.style.setProperty("display",""),dr.style.setProperty("display","none"),dr.style.removeProperty(Ct)}).keyframes(fn),or.beforeStyles({"transform-origin":`${Ct} top`}).keyframes(Je),gr.beforeStyles({"transform-origin":`${kt} center`}).keyframes(On),mt.addAnimation([or,gr,cr])},it=(mt,xt,Dt,zt,Tt,It,Te,Ze,_e)=>{var $e,Le;const Oe=xt?"right":"left",Ct=xt?`calc(100% - ${Tt.right}px)`:`${Tt.left}px`,Cn=`${Tt.top}px`;let st=xt?`-${window.innerWidth-Te.right-8}px`:`${Te.x+8}px`,cn=.5;const vt="scale(1)";let Re=`scale(${cn})`;if(Ze&&_e){st=xt?`-${window.innerWidth-_e.right-8}px`:_e.x-8+"px";const xn=(null===($e=Ze.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=zt.textContent)||void 0===Le?void 0:Le.trim());cn=_e.height/(It.height-at),Re=xn?`scale(${_e.width/It.width}, ${cn})`:`scale(${cn})`}const ce=Te.top+Te.height/2-Tt.height*cn/2+"px",Ve=Dt?[{offset:0,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Cn}, 0) ${vt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Cn}, 0) ${vt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`}],ut=ae("ion-title"),fn=(0,h.c)();ut.innerText=zt.innerText,ut.size=zt.size,ut.color=zt.color,fn.addElement(ut),fn.beforeStyles({"transform-origin":`${Oe} top`,height:`${Tt.height}px`,display:"",position:"relative",[Oe]:Ct}).beforeAddWrite(()=>{zt.style.setProperty("opacity","0")}).afterAddWrite(()=>{zt.style.setProperty("opacity",""),ut.style.setProperty("display","none")}).keyframes(Ve),mt.addAnimation(fn)},Ye=(mt,xt)=>{var Dt;try{const zt="cubic-bezier(0.32,0.72,0,1)",Tt="opacity",It="transform",Te="0%",_e="rtl"===mt.ownerDocument.dir,$e=_e?"-99.5%":"99.5%",Le=_e?"33%":"-33%",Oe=xt.enteringEl,Ct=xt.leavingEl,kt="back"===xt.direction,Cn=Oe.querySelector(":scope > ion-content"),At=Oe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),st=Oe.querySelectorAll(":scope > ion-header > ion-toolbar"),cn=(0,h.c)(),vt=(0,h.c)();if(cn.addElement(Oe).duration((null!==(Dt=xt.duration)&&void 0!==Dt?Dt:0)||540).easing(xt.easing||zt).fill("both").beforeRemoveClass("ion-page-invisible"),Ct&&null!=mt){const ce=(0,h.c)();ce.addElement(mt),cn.addAnimation(ce)}if(Cn||0!==st.length||0!==At.length?(vt.addElement(Cn),vt.addElement(At)):vt.addElement(Oe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(vt),kt?vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Le})`,`translateX(${Te})`).fromTo(Tt,.8,1):vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${$e})`,`translateX(${Te})`),Cn){const ce=Xe(Cn).querySelector(".transition-effect");if(ce){const ue=ce.querySelector(".transition-cover"),Ee=ce.querySelector(".transition-shadow"),Ve=(0,h.c)(),ut=(0,h.c)(),fn=(0,h.c)();Ve.addElement(ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ut.addElement(ue).beforeClearStyles([Tt]).fromTo(Tt,0,.1),fn.addElement(Ee).beforeClearStyles([Tt]).fromTo(Tt,.03,.7),Ve.addAnimation([ut,fn]),vt.addAnimation([Ve])}}const Re=Oe.querySelector("ion-header.header-collapse-condense"),{forward:G,backward:X}=((mt,xt,Dt,zt,Tt)=>{const It=Se(zt,Dt),Te=tt(Tt),Ze=tt(zt),_e=Se(Tt,Dt),$e=null!==It&&null!==Te&&!Dt,Le=null!==Ze&&null!==_e&&Dt;if($e){const Oe=Te.getBoundingClientRect(),Ct=It.getBoundingClientRect(),kt=Xe(It).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Te).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Te,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,It,Ct,kt,Cn,Te,st)}else if(Le){const Oe=Ze.getBoundingClientRect(),Ct=_e.getBoundingClientRect(),kt=Xe(_e).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Ze).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Ze,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,_e,Ct,kt,Cn,Ze,st)}return{forward:$e,backward:Le}})(cn,_e,kt,Oe,Ct);if(st.forEach(ce=>{const ue=(0,h.c)();ue.addElement(ce),cn.addAnimation(ue);const Ee=(0,h.c)();Ee.addElement(ce.querySelector("ion-title"));const Ve=(0,h.c)(),ut=Array.from(ce.querySelectorAll("ion-buttons,[menuToggle]")),fn=ce.closest("ion-header"),xn=null==fn?void 0:fn.classList.contains("header-collapse-condense-inactive");let un;un=ut.filter(kt?or=>{const gr=or.classList.contains("buttons-collapse");return gr&&!xn||!gr}:or=>!or.classList.contains("buttons-collapse")),Ve.addElement(un);const Je=(0,h.c)();Je.addElement(ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Sn=(0,h.c)();Sn.addElement(Xe(ce).querySelector(".toolbar-background"));const kn=(0,h.c)(),On=ce.querySelector("ion-back-button");if(On&&kn.addElement(On),ue.addAnimation([Ee,Ve,Je,Sn,kn]),Ve.fromTo(Tt,.01,1),Je.fromTo(Tt,.01,1),kt)xn||Ee.fromTo("transform",`translateX(${Le})`,`translateX(${Te})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${Le})`,`translateX(${Te})`),kn.fromTo(Tt,.01,1);else if(Re||Ee.fromTo("transform",`translateX(${$e})`,`translateX(${Te})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${$e})`,`translateX(${Te})`),Sn.beforeClearStyles([Tt,"transform"]),(null==fn?void 0:fn.translucent)?Sn.fromTo("transform",_e?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Sn.fromTo(Tt,.01,"var(--opacity)"),G||kn.fromTo(Tt,.01,1),On&&!G){const gr=(0,h.c)();gr.addElement(Xe(On).querySelector(".button-text")).fromTo("transform",_e?"translateX(-100px)":"translateX(100px)","translateX(0px)"),ue.addAnimation(gr)}}),Ct){const ce=(0,h.c)(),ue=Ct.querySelector(":scope > ion-content"),Ee=Ct.querySelectorAll(":scope > ion-header > ion-toolbar"),Ve=Ct.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(ue||0!==Ee.length||0!==Ve.length?(ce.addElement(ue),ce.addElement(Ve)):ce.addElement(Ct.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(ce),kt){ce.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)");const ut=(0,c.g)(Ct);cn.afterAddWrite(()=>{"normal"===cn.getDirection()&&ut.style.setProperty("display","none")})}else ce.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).fromTo(Tt,1,.8);if(ue){const ut=Xe(ue).querySelector(".transition-effect");if(ut){const fn=ut.querySelector(".transition-cover"),xn=ut.querySelector(".transition-shadow"),un=(0,h.c)(),Je=(0,h.c)(),Sn=(0,h.c)();un.addElement(ut).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Je.addElement(fn).beforeClearStyles([Tt]).fromTo(Tt,.1,0),Sn.addElement(xn).beforeClearStyles([Tt]).fromTo(Tt,.7,.03),un.addAnimation([Je,Sn]),ce.addAnimation([un])}}Ee.forEach(ut=>{const fn=(0,h.c)();fn.addElement(ut);const xn=(0,h.c)();xn.addElement(ut.querySelector("ion-title"));const un=(0,h.c)(),Je=ut.querySelectorAll("ion-buttons,[menuToggle]"),Sn=ut.closest("ion-header"),kn=null==Sn?void 0:Sn.classList.contains("header-collapse-condense-inactive"),On=Array.from(Je).filter(Lt=>{const Xt=Lt.classList.contains("buttons-collapse");return Xt&&!kn||!Xt});un.addElement(On);const or=(0,h.c)(),gr=ut.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");gr.length>0&&or.addElement(gr);const cr=(0,h.c)();cr.addElement(Xe(ut).querySelector(".toolbar-background"));const dr=(0,h.c)(),nt=ut.querySelector("ion-back-button");if(nt&&dr.addElement(nt),fn.addAnimation([xn,un,or,dr,cr]),cn.addAnimation(fn),dr.fromTo(Tt,.99,0),un.fromTo(Tt,.99,0),or.fromTo(Tt,.99,0),kt){if(kn||xn.fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)").fromTo(Tt,.99,0),or.fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)"),cr.beforeClearStyles([Tt,"transform"]),(null==Sn?void 0:Sn.translucent)?cr.fromTo("transform","translateX(0px)",_e?"translateX(-100%)":"translateX(100%)"):cr.fromTo(Tt,"var(--opacity)",0),nt&&!X){const Xt=(0,h.c)();Xt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Te})`,`translateX(${(_e?-124:124)+"px"})`),fn.addAnimation(Xt)}}else kn||xn.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).fromTo(Tt,.99,0).afterClearStyles([It,Tt]),or.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).afterClearStyles([It,Tt]),dr.afterClearStyles([Tt]),xn.afterClearStyles([Tt]),un.afterClearStyles([Tt])})}return cn}catch(zt){throw zt}},at=10},3314:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{mdTransitionAnimation:()=>he});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const he=(ae,Xe)=>{var tt,Se,be;const Ye="back"===Xe.direction,mt=Xe.leavingEl,xt=(0,c.g)(Xe.enteringEl),Dt=xt.querySelector("ion-toolbar"),zt=(0,h.c)();if(zt.addElement(xt).fill("both").beforeRemoveClass("ion-page-invisible"),Ye?zt.duration((null!==(tt=Xe.duration)&&void 0!==tt?tt:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):zt.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),Dt){const Tt=(0,h.c)();Tt.addElement(Dt),zt.addAnimation(Tt)}if(mt&&Ye){zt.duration((null!==(be=Xe.duration)&&void 0!==be?be:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Tt=(0,h.c)();Tt.addElement((0,c.g)(mt)).onFinish(It=>{1===It&&Tt.elements.length>0&&Tt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),zt.addAnimation(Tt)}return zt}},6002:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>Je,F:()=>dr,G:()=>Sn,O:()=>kn,a:()=>xt,b:()=>Dt,c:()=>Te,d:()=>On,e:()=>or,f:()=>G,g:()=>ce,h:()=>Ve,i:()=>fn,j:()=>_e,k:()=>$e,l:()=>zt,m:()=>Tt,n:()=>Se,o:()=>vt,q:()=>be,s:()=>un});var h=C(467),c=C(8476),Z=C(4920),ke=C(6411),$=C(3664),he=C(8621),ae=C(1970),Xe=C(4929);const tt='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Lt)=>{const Xt=nt.querySelector(tt);et(Xt,null!=Lt?Lt:nt)},be=(nt,Lt)=>{const Xt=Array.from(nt.querySelectorAll(tt));et(Xt.length>0?Xt[Xt.length-1]:null,null!=Lt?Lt:nt)},et=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()};let it=0,Ye=0;const at=new WeakMap,mt=nt=>({create:Lt=>Le(nt,Lt),dismiss:(Lt,Xt,yn)=>At(document,Lt,Xt,nt,yn),getTop:()=>(0,h.A)(function*(){return vt(document,nt)})()}),xt=mt("ion-alert"),Dt=mt("ion-action-sheet"),zt=mt("ion-loading"),Tt=mt("ion-modal"),Te=mt("ion-popover"),_e=nt=>{typeof document<"u"&&Cn(document);const Lt=it++;nt.overlayIndex=Lt},$e=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++Ye),nt.id),Le=(nt,Lt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const Xt=document.createElement(nt);return Xt.classList.add("overlay-hidden"),Object.assign(Xt,Object.assign(Object.assign({},Lt),{hasController:!0})),ue(document).appendChild(Xt),new Promise(yn=>(0,Z.c)(Xt,yn))}):Promise.resolve(),Ct=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()},Cn=nt=>{0===it&&(it=1,nt.addEventListener("focus",Lt=>{((nt,Lt)=>{const Xt=vt(Lt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),yn=nt.target;Xt&&yn&&!Xt.classList.contains(dr)&&(Xt.shadowRoot?(()=>{if(Xt.contains(yn))Xt.lastFocus=yn;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=Xt.lastFocus;Se(Xt),Vn===Lt.activeElement&&be(Xt),Xt.lastFocus=Lt.activeElement}})():(()=>{if(Xt===yn)Xt.lastFocus=void 0;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=(0,Z.g)(Xt);if(!Vn.contains(yn))return;const $n=Vn.querySelector(".ion-overlay-wrapper");if(!$n)return;if($n.contains(yn)||yn===Vn.querySelector("ion-backdrop"))Xt.lastFocus=yn;else{const In=Xt.lastFocus;Se($n,Xt),In===Lt.activeElement&&be($n,Xt),Xt.lastFocus=Lt.activeElement}}})())})(Lt,nt)},!0),nt.addEventListener("ionBackButton",Lt=>{const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Lt.detail.register(ke.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Xt.dismiss(void 0,Je)})}),(0,ke.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Lt=>{if("Escape"===Lt.key){const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Xt.dismiss(void 0,Je)}}))},At=(nt,Lt,Xt,yn,En)=>{const Fr=vt(nt,yn,En);return Fr?Fr.dismiss(Lt,Xt):Promise.reject("overlay does not exist")},cn=(nt,Lt)=>((nt,Lt)=>(void 0===Lt&&(Lt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Lt)).filter(Xt=>Xt.overlayIndex>0)))(nt,Lt).filter(Xt=>!(nt=>nt.classList.contains("overlay-hidden"))(Xt)),vt=(nt,Lt,Xt)=>{const yn=cn(nt,Lt);return void 0===Xt?yn[yn.length-1]:yn.find(En=>En.id===Xt)},Re=(nt=!1)=>{const Xt=ue(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Xt&&(nt?Xt.setAttribute("aria-hidden","true"):Xt.removeAttribute("aria-hidden"))},G=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr){var Vn,$n;if(Lt.presented)return;Re(!0),document.body.classList.add(ae.B),gr(Lt.el),Lt.presented=!0,Lt.willPresent.emit(),null===(Vn=Lt.willPresentShorthand)||void 0===Vn||Vn.emit();const In=(0,$.b)(Lt),on=Lt.enterAnimation?Lt.enterAnimation:$.c.get(Xt,"ios"===In?yn:En);(yield Ee(Lt,on,Lt.el,Fr))&&(Lt.didPresent.emit(),null===($n=Lt.didPresentShorthand)||void 0===$n||$n.emit()),"ION-TOAST"!==Lt.el.tagName&&X(Lt.el),Lt.keyboardClose&&(null===document.activeElement||!Lt.el.contains(document.activeElement))&&Lt.el.focus(),Lt.el.removeAttribute("aria-hidden")});return function(Xt,yn,En,Fr,Vn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Lt){let Xt=document.activeElement;if(!Xt)return;const yn=null==Xt?void 0:Xt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||Xt),yield Lt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Xt.focus()});return function(Xt){return nt.apply(this,arguments)}}(),ce=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr,Vn,$n){var In,on;if(!Lt.presented)return!1;void 0!==c.d&&1===cn(c.d).length&&(Re(!1),document.body.classList.remove(ae.B)),Lt.presented=!1;try{Lt.el.style.setProperty("pointer-events","none"),Lt.willDismiss.emit({data:Xt,role:yn}),null===(In=Lt.willDismissShorthand)||void 0===In||In.emit({data:Xt,role:yn});const br=(0,$.b)(Lt),Vr=Lt.leaveAnimation?Lt.leaveAnimation:$.c.get(En,"ios"===br?Fr:Vn);yn!==Sn&&(yield Ee(Lt,Vr,Lt.el,$n)),Lt.didDismiss.emit({data:Xt,role:yn}),null===(on=Lt.didDismissShorthand)||void 0===on||on.emit({data:Xt,role:yn}),(at.get(Lt)||[]).forEach(Mr=>Mr.destroy()),at.delete(Lt),Lt.el.classList.add("overlay-hidden"),Lt.el.style.removeProperty("pointer-events"),void 0!==Lt.el.lastFocus&&(Lt.el.lastFocus=void 0)}catch(br){console.error(br)}return Lt.el.remove(),cr(),!0});return function(Xt,yn,En,Fr,Vn,$n,In){return nt.apply(this,arguments)}}(),ue=nt=>nt.querySelector("ion-app")||nt.body,Ee=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En){yn.classList.remove("overlay-hidden");const Vn=Xt(Lt.el,En);(!Lt.animated||!$.c.getBoolean("animated",!0))&&Vn.duration(0),Lt.keyboardClose&&Vn.beforeAddWrite(()=>{const In=yn.ownerDocument.activeElement;null!=In&&In.matches("input,ion-input, ion-textarea")&&In.blur()});const $n=at.get(Lt)||[];return at.set(Lt,[...$n,Vn]),yield Vn.play(),!0});return function(Xt,yn,En,Fr){return nt.apply(this,arguments)}}(),Ve=(nt,Lt)=>{let Xt;const yn=new Promise(En=>Xt=En);return ut(nt,Lt,En=>{Xt(En.detail)}),yn},ut=(nt,Lt,Xt)=>{const yn=En=>{(0,Z.b)(nt,Lt,yn),Xt(En)};(0,Z.a)(nt,Lt,yn)},fn=nt=>"cancel"===nt||nt===Je,xn=nt=>nt(),un=(nt,Lt)=>{if("function"==typeof nt)return $.c.get("_zoneGate",xn)(()=>{try{return nt(Lt)}catch(yn){throw yn}})},Je="backdrop",Sn="gesture",kn=39,On=nt=>{let Xt,Lt=!1;const yn=(0,he.C)(),En=($n=!1)=>{if(Xt&&!$n)return{delegate:Xt,inline:Lt};const{el:In,hasController:on,delegate:mr}=nt;return Lt=null!==In.parentNode&&!on,Xt=Lt?mr||yn:mr,{inline:Lt,delegate:Xt}};return{attachViewToDom:function(){var $n=(0,h.A)(function*(In){const{delegate:on}=En(!0);if(on)return yield on.attachViewToDom(nt.el,In);const{hasController:mr}=nt;if(mr&&void 0!==In)throw new Error("framework delegate is missing");return null});return function(on){return $n.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:$n}=En();$n&&void 0!==nt.el&&$n.removeViewFromDom(nt.el.parentElement,nt.el)}}},or=()=>{let nt;const Lt=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(yn,En)=>{Lt();const Fr=void 0!==En?document.getElementById(En):null;Fr?nt=(($n,In)=>{const on=()=>{In.present()};return $n.addEventListener("click",on),()=>{$n.removeEventListener("click",on)}})(Fr,yn):(0,Xe.p)(`A trigger element with the ID "${En}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,yn)},removeClickListener:Lt}},gr=nt=>{var Lt;if(void 0===c.d)return;const Xt=cn(c.d);for(let yn=Xt.length-1;yn>=0;yn--){const En=Xt[yn],Fr=null!==(Lt=Xt[yn+1])&&void 0!==Lt?Lt:nt;(Fr.hasAttribute("aria-hidden")||"ION-TOAST"!==Fr.tagName)&&En.setAttribute("aria-hidden","true")}},cr=()=>{if(void 0===c.d)return;const nt=cn(c.d);for(let Lt=nt.length-1;Lt>=0;Lt--){const Xt=nt[Lt];if(Xt.removeAttribute("aria-hidden"),"ION-TOAST"!==Xt.tagName)break}},dr="ion-disable-focus-trap"},63:(Pn,Et,C)=>{"use strict";var h=C(345),c=C(4438),Z=C(7650),ke=C(2872),$=C(7863),he=C(177);function ae(Je,Sn){if(1&Je){const kn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(kn);const or=c.XpG().$implicit,gr=c.XpG();return c.Njj(gr.navigate(or))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&Je){const kn=c.XpG().$implicit;c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function Xe(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.name)}}function tt(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.orgName)}}function Se(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit;c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function be(Je,Sn){if(1&Je&&c.DNE(0,Xe,6,4,"ion-item",9)(1,tt,6,4)(2,Se,4,3),2&Je){const kn=c.XpG().$implicit;c.vxM(0,"Settings"===kn.title?0:"My Team"===kn.title?1:2)}}function et(Je,Sn){if(1&Je&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,ae,4,2,"ion-item")(2,be,3,1),c.k0s()),2&Je){const kn=Sn.$implicit;c.R7$(),c.vxM(1,kn.params?1:2)}}let it=(()=>{var Je;class Sn{constructor(On,or){this.router=On,this.menuController=or,this.user={},this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(On=>{On instanceof Z.wF&&(On.urlAfterRedirects.includes("/login")||On.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))}),this.getUser()}navigate(On){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([On.url],{queryParams:On.params||{}})})}getUser(){const On=JSON.parse(localStorage.getItem("user"));this.user=On}}return(Je=Sn).\u0275fac=function(On){return new(On||Je)(c.rXU(Z.Ix),c.rXU($._t))},Je.\u0275cmp=c.VBU({type:Je,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(On,or){1&On&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,et,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&On&&(c.R7$(9),c.Y8G("ngForOf",or.menuItems))},dependencies:[he.Sq,$.U1,$.ZB,$.W9,$.eU,$.iq,$.uz,$.he,$.nf,$.oS,$.cA,$.HP,$.BC,$.ai,$.Rg,$.N7,Z.Wk]}),Sn})();var Ye=C(9842),at=C(8737),mt=C(1203),xt=C(6354),Dt=C(6697);C(2214);const Tt=(0,xt.T)(Je=>!!Je);let It=(()=>{var Je;class Sn{constructor(On,or){(0,Ye.A)(this,"router",void 0),(0,Ye.A)(this,"auth",void 0),(0,Ye.A)(this,"canActivate",(gr,cr)=>{const dr=gr.data.authGuardPipe||(()=>Tt);return(0,at.kQ)(this.auth).pipe((0,Dt.s)(1),dr(gr,cr),(0,xt.T)(nt=>"boolean"==typeof nt?nt:Array.isArray(nt)?this.router.createUrlTree(nt):this.router.parseUrl(nt)))}),this.router=On,this.auth=or}}return Je=Sn,(0,Ye.A)(Sn,"\u0275fac",function(On){return new(On||Je)(c.KVO(Z.Ix),c.KVO(at.Nj))}),(0,Ye.A)(Sn,"\u0275prov",c.jDH({token:Je,factory:Je.\u0275fac,providedIn:"any"})),Sn})();const Te=Je=>({canActivate:[It],data:{authGuardPipe:Je}}),At=()=>{return Je=[""],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn||Je));var Je},st=()=>{return Je=["home"],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn&&Je||!0));var Je},cn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([C.e(2076),C.e(2757)]).then(C.bind(C,2757)).then(Je=>Je.HomePageModule),...Te(At)},{path:"register",loadChildren:()=>C.e(5995).then(C.bind(C,5995)).then(Je=>Je.RegisterPageModule),...Te(st)},{path:"login",loadChildren:()=>C.e(6536).then(C.bind(C,6536)).then(Je=>Je.LoginPageModule),...Te(st)},{path:"myteam",loadChildren:()=>Promise.all([C.e(2076),C.e(461)]).then(C.bind(C,461)).then(Je=>Je.MyteamPageModule),...Te(At)},{path:"model-product",loadChildren:()=>Promise.all([C.e(2076),C.e(4914)]).then(C.bind(C,4914)).then(Je=>Je.ModelProductPageModule),...Te(At)},{path:"new-product",loadChildren:()=>Promise.all([C.e(2076),C.e(3646)]).then(C.bind(C,3646)).then(Je=>Je.NewProductPageModule),...Te(At)},{path:"view-product",loadChildren:()=>Promise.all([C.e(2076),C.e(1313)]).then(C.bind(C,1313)).then(Je=>Je.ViewProductPageModule),...Te(At)},{path:"show-map",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(9070)]).then(C.bind(C,9070)).then(Je=>Je.ShowMapPageModule),...Te(At)},{path:"latency-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9456)]).then(C.bind(C,9456)).then(Je=>Je.LatencyTestPageModule),...Te(At)},{path:"latency-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8886)]).then(C.bind(C,8886)).then(Je=>Je.LatencyChooserPageModule),...Te(At)},{path:"latency-results",loadChildren:()=>Promise.all([C.e(2076),C.e(8984)]).then(C.bind(C,8984)).then(Je=>Je.LatencyResultsPageModule),...Te(At)},{path:"graph-latency",loadChildren:()=>Promise.all([C.e(2076),C.e(6975)]).then(C.bind(C,6975)).then(Je=>Je.GraphPageModule),...Te(At)},{path:"trace-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4839)]).then(C.bind(C,4839)).then(Je=>Je.TraceChooserPageModule),...Te(At)},{path:"trace-test",loadChildren:()=>Promise.all([C.e(2076),C.e(3451)]).then(C.bind(C,3451)).then(Je=>Je.TraceTestPageModule),...Te(At)},{path:"trace-results",loadChildren:()=>Promise.all([C.e(2076),C.e(7762)]).then(C.bind(C,7762)).then(Je=>Je.TraceResultsPageModule),...Te(At)},{path:"show-map-trace",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(8566)]).then(C.bind(C,8566)).then(Je=>Je.ShowMapTracePageModule),...Te(At)},{path:"graph-data-for",loadChildren:()=>C.e(1081).then(C.bind(C,1081)).then(Je=>Je.GraphDataForPageModule),...Te(At)},{path:"graph-trace",loadChildren:()=>Promise.all([C.e(2076),C.e(6303)]).then(C.bind(C,6303)).then(Je=>Je.GraphTracePageModule),...Te(At)},{path:"ai",loadChildren:()=>C.e(4348).then(C.bind(C,4348)).then(Je=>Je.AiPageModule),...Te(At)},{path:"flame-graph",loadChildren:()=>Promise.all([C.e(2076),C.e(5054)]).then(C.bind(C,5054)).then(Je=>Je.FlameGraphPageModule),...Te(At)},{path:"flame-graph-for",loadChildren:()=>Promise.all([C.e(2076),C.e(5399)]).then(C.bind(C,5399)).then(Je=>Je.FlameGraphForPageModule),...Te(At)},{path:"flame-graph-date",loadChildren:()=>Promise.all([C.e(2076),C.e(6480)]).then(C.bind(C,6480)).then(Je=>Je.FlameGraphDatePageModule),...Te(At)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([C.e(2076),C.e(3100)]).then(C.bind(C,3100)).then(Je=>Je.FlameGraphComparePageModule),...Te(At)},{path:"software-testing",loadChildren:()=>Promise.all([C.e(2076),C.e(1015)]).then(C.bind(C,1015)).then(Je=>Je.SoftwareTestingPageModule),...Te(At)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8711)]).then(C.bind(C,8711)).then(Je=>Je.SoftwareTestingChooserPageModule),...Te(At)},{path:"create-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1143)]).then(C.bind(C,1143)).then(Je=>Je.CreateSystemTestPageModule),...Te(At)},{path:"execute-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1010)]).then(C.bind(C,1010)).then(Je=>Je.ExecuteSystemTestPageModule),...Te(At)},{path:"board",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(3728)]).then(C.bind(C,3728)).then(Je=>Je.BoardPageModule),...Te(At)},{path:"view-history-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9546)]).then(C.bind(C,9546)).then(Je=>Je.ViewHistorySystemTestPageModule),...Te(At)},{path:"view-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(7056)]).then(C.bind(C,7056)).then(Je=>Je.ViewSystemTestPageModule),...Te(At)},{path:"create-unit-test",loadChildren:()=>Promise.all([C.e(2076),C.e(6695)]).then(C.bind(C,6695)).then(Je=>Je.CreateUnitTestPageModule),...Te(At)},{path:"settings",loadChildren:()=>Promise.all([C.e(2076),C.e(5371)]).then(C.bind(C,5371)).then(Je=>Je.SettingsPageModule),...Te(At)},{path:"create-integration-test",loadChildren:()=>Promise.all([C.e(2076),C.e(2494)]).then(C.bind(C,2494)).then(Je=>Je.CreateIntegrationTestPageModule),...Te(At)},{path:"load-test-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4163)]).then(C.bind(C,4163)).then(Je=>Je.LoadTestChooserPageModule),...Te(At)},{path:"load-test",loadChildren:()=>Promise.all([C.e(9878),C.e(4559)]).then(C.bind(C,4559)).then(Je=>Je.LoadTestPageModule),...Te(At)},{path:"load-test-history",loadChildren:()=>Promise.all([C.e(9878),C.e(4304)]).then(C.bind(C,4304)).then(Je=>Je.LoadTestHistoryPageModule),...Te(At)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(1133)]).then(C.bind(C,1133)).then(Je=>Je.IncidentManagerChooserPageModule),...Te(At)},{path:"incident-manager",loadChildren:()=>Promise.all([C.e(2076),C.e(3675)]).then(C.bind(C,3675)).then(Je=>Je.IncidentManagerPageModule)},{path:"new-incident",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(8839)]).then(C.bind(C,8839)).then(Je=>Je.NewIncidentPageModule)},{path:"incident-details",loadChildren:()=>Promise.all([C.e(2076),C.e(7907)]).then(C.bind(C,7907)).then(Je=>Je.IncidentDetailsPageModule)}];let vt=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je}),Je.\u0275inj=c.G2t({imports:[Z.iI.forRoot(cn,{preloadingStrategy:Z.Kp}),Z.iI]}),Sn})();var Re=C(7440),G=C(4262);const X_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var ce=C(1626),ue=C(2820),Ee=C(9032),Ve=C(7616),ut=C(9549),fn=C(2107);let xn=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je,bootstrap:[it]}),Je.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:ke.jM},(0,Re.MW)(()=>(0,Re.Wp)(X_firebase)),(0,G.hV)(()=>(0,G.aU)()),(0,at._q)(()=>(0,at.xI)()),(0,Ee.cw)(()=>(0,Ee.v_)()),(0,fn.Xm)(()=>(0,fn.c7)()),ce.q1,(0,ue.eS)()],imports:[h.Bb,$.bv.forRoot(),vt,ce.q1,ue.sN.forRoot({echarts:()=>C.e(9697).then(C.bind(C,9697))}),Ve.n,ut.y2.forRoot()]}),Sn})();(0,c.SmG)(),h.sG().bootstrapModule(xn).catch(Je=>console.log(Je))},4412:(Pn,Et,C)=>{"use strict";C.d(Et,{t:()=>c});var h=C(1413);class c extends h.B{constructor(ke){super(),this._value=ke}get value(){return this.getValue()}_subscribe(ke){const $=super._subscribe(ke);return!$.closed&&ke.next(this._value),$}getValue(){const{hasError:ke,thrownError:$,_value:he}=this;if(ke)throw $;return this._throwIfClosed(),he}next(ke){super.next(this._value=ke)}}},1985:(Pn,Et,C)=>{"use strict";C.d(Et,{c:()=>Xe});var h=C(7707),c=C(8359),Z=C(3494),ke=C(1203),$=C(1026),he=C(8071),ae=C(9786);let Xe=(()=>{class et{constructor(Ye){Ye&&(this._subscribe=Ye)}lift(Ye){const at=new et;return at.source=this,at.operator=Ye,at}subscribe(Ye,at,mt){const xt=function be(et){return et&&et instanceof h.vU||function Se(et){return et&&(0,he.T)(et.next)&&(0,he.T)(et.error)&&(0,he.T)(et.complete)}(et)&&(0,c.Uv)(et)}(Ye)?Ye:new h.Ms(Ye,at,mt);return(0,ae.Y)(()=>{const{operator:Dt,source:zt}=this;xt.add(Dt?Dt.call(xt,zt):zt?this._subscribe(xt):this._trySubscribe(xt))}),xt}_trySubscribe(Ye){try{return this._subscribe(Ye)}catch(at){Ye.error(at)}}forEach(Ye,at){return new(at=tt(at))((mt,xt)=>{const Dt=new h.Ms({next:zt=>{try{Ye(zt)}catch(Tt){xt(Tt),Dt.unsubscribe()}},error:xt,complete:mt});this.subscribe(Dt)})}_subscribe(Ye){var at;return null===(at=this.source)||void 0===at?void 0:at.subscribe(Ye)}[Z.s](){return this}pipe(...Ye){return(0,ke.m)(Ye)(this)}toPromise(Ye){return new(Ye=tt(Ye))((at,mt)=>{let xt;this.subscribe(Dt=>xt=Dt,Dt=>mt(Dt),()=>at(xt))})}}return et.create=it=>new et(it),et})();function tt(et){var it;return null!==(it=null!=et?et:$.$.Promise)&&void 0!==it?it:Promise}},2771:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>Z});var h=C(1413),c=C(6129);class Z extends h.B{constructor($=1/0,he=1/0,ae=c.U){super(),this._bufferSize=$,this._windowTime=he,this._timestampProvider=ae,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=he===1/0,this._bufferSize=Math.max(1,$),this._windowTime=Math.max(1,he)}next($){const{isStopped:he,_buffer:ae,_infiniteTimeWindow:Xe,_timestampProvider:tt,_windowTime:Se}=this;he||(ae.push($),!Xe&&ae.push(tt.now()+Se)),this._trimBuffer(),super.next($)}_subscribe($){this._throwIfClosed(),this._trimBuffer();const he=this._innerSubscribe($),{_infiniteTimeWindow:ae,_buffer:Xe}=this,tt=Xe.slice();for(let Se=0;Se{"use strict";C.d(Et,{B:()=>ae});var h=C(1985),c=C(8359);const ke=(0,C(1853).L)(tt=>function(){tt(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var $=C(7908),he=C(9786);let ae=(()=>{class tt extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(be){const et=new Xe(this,this);return et.operator=be,et}_throwIfClosed(){if(this.closed)throw new ke}next(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const et of this.currentObservers)et.next(be)}})}error(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=be;const{observers:et}=this;for(;et.length;)et.shift().error(be)}})}complete(){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:be}=this;for(;be.length;)be.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var be;return(null===(be=this.observers)||void 0===be?void 0:be.length)>0}_trySubscribe(be){return this._throwIfClosed(),super._trySubscribe(be)}_subscribe(be){return this._throwIfClosed(),this._checkFinalizedStatuses(be),this._innerSubscribe(be)}_innerSubscribe(be){const{hasError:et,isStopped:it,observers:Ye}=this;return et||it?c.Kn:(this.currentObservers=null,Ye.push(be),new c.yU(()=>{this.currentObservers=null,(0,$.o)(Ye,be)}))}_checkFinalizedStatuses(be){const{hasError:et,thrownError:it,isStopped:Ye}=this;et?be.error(it):Ye&&be.complete()}asObservable(){const be=new h.c;return be.source=this,be}}return tt.create=(Se,be)=>new Xe(Se,be),tt})();class Xe extends ae{constructor(Se,be){super(),this.destination=Se,this.source=be}next(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.next)||void 0===et||et.call(be,Se)}error(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.error)||void 0===et||et.call(be,Se)}complete(){var Se,be;null===(be=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===be||be.call(Se)}_subscribe(Se){var be,et;return null!==(et=null===(be=this.source)||void 0===be?void 0:be.subscribe(Se))&&void 0!==et?et:c.Kn}}},7707:(Pn,Et,C)=>{"use strict";C.d(Et,{Ms:()=>mt,vU:()=>et});var h=C(8071),c=C(8359),Z=C(1026),ke=C(5334),$=C(5343);const he=tt("C",void 0,void 0);function tt(It,Te,Ze){return{kind:It,value:Te,error:Ze}}var Se=C(9270),be=C(9786);class et extends c.yU{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,c.Uv)(Te)&&Te.add(this)):this.destination=Tt}static create(Te,Ze,_e){return new mt(Te,Ze,_e)}next(Te){this.isStopped?zt(function Xe(It){return tt("N",It,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?zt(function ae(It){return tt("E",void 0,It)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?zt(he,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const it=Function.prototype.bind;function Ye(It,Te){return it.call(It,Te)}class at{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Ze}=this;if(Ze.next)try{Ze.next(Te)}catch(_e){xt(_e)}}error(Te){const{partialObserver:Ze}=this;if(Ze.error)try{Ze.error(Te)}catch(_e){xt(_e)}else xt(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Ze){xt(Ze)}}}class mt extends et{constructor(Te,Ze,_e){let $e;if(super(),(0,h.T)(Te)||!Te)$e={next:null!=Te?Te:void 0,error:null!=Ze?Ze:void 0,complete:null!=_e?_e:void 0};else{let Le;this&&Z.$.useDeprecatedNextContext?(Le=Object.create(Te),Le.unsubscribe=()=>this.unsubscribe(),$e={next:Te.next&&Ye(Te.next,Le),error:Te.error&&Ye(Te.error,Le),complete:Te.complete&&Ye(Te.complete,Le)}):$e=Te}this.destination=new at($e)}}function xt(It){Z.$.useDeprecatedSynchronousErrorHandling?(0,be.l)(It):(0,ke.m)(It)}function zt(It,Te){const{onStoppedNotification:Ze}=Z.$;Ze&&Se.f.setTimeout(()=>Ze(It,Te))}const Tt={closed:!0,next:$.l,error:function Dt(It){throw It},complete:$.l}},8359:(Pn,Et,C)=>{"use strict";C.d(Et,{Kn:()=>he,yU:()=>$,Uv:()=>ae});var h=C(8071);const Z=(0,C(1853).L)(tt=>function(be){tt(this),this.message=be?`${be.length} errors occurred during unsubscription:\n${be.map((et,it)=>`${it+1}) ${et.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=be});var ke=C(7908);class ${constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:be}=this;if(be)if(this._parentage=null,Array.isArray(be))for(const Ye of be)Ye.remove(this);else be.remove(this);const{initialTeardown:et}=this;if((0,h.T)(et))try{et()}catch(Ye){Se=Ye instanceof Z?Ye.errors:[Ye]}const{_finalizers:it}=this;if(it){this._finalizers=null;for(const Ye of it)try{Xe(Ye)}catch(at){Se=null!=Se?Se:[],at instanceof Z?Se=[...Se,...at.errors]:Se.push(at)}}if(Se)throw new Z(Se)}}add(Se){var be;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof $){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(be=this._finalizers)&&void 0!==be?be:[]).push(Se)}}_hasParent(Se){const{_parentage:be}=this;return be===Se||Array.isArray(be)&&be.includes(Se)}_addParent(Se){const{_parentage:be}=this;this._parentage=Array.isArray(be)?(be.push(Se),be):be?[be,Se]:Se}_removeParent(Se){const{_parentage:be}=this;be===Se?this._parentage=null:Array.isArray(be)&&(0,ke.o)(be,Se)}remove(Se){const{_finalizers:be}=this;be&&(0,ke.o)(be,Se),Se instanceof $&&Se._removeParent(this)}}$.EMPTY=(()=>{const tt=new $;return tt.closed=!0,tt})();const he=$.EMPTY;function ae(tt){return tt instanceof $||tt&&"closed"in tt&&(0,h.T)(tt.remove)&&(0,h.T)(tt.add)&&(0,h.T)(tt.unsubscribe)}function Xe(tt){(0,h.T)(tt)?tt():tt.unsubscribe()}},1026:(Pn,Et,C)=>{"use strict";C.d(Et,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Pn,Et,C)=>{"use strict";C.d(Et,{z:()=>Se});var h=C(1985),c=C(3073),Z=C(8455),ke=C(3669),$=C(6450),he=C(9326),ae=C(8496),Xe=C(4360),tt=C(5225);function Se(...it){const Ye=(0,he.lI)(it),at=(0,he.ms)(it),{args:mt,keys:xt}=(0,c.D)(it);if(0===mt.length)return(0,Z.H)([],Ye);const Dt=new h.c(function be(it,Ye,at=ke.D){return mt=>{et(Ye,()=>{const{length:xt}=it,Dt=new Array(xt);let zt=xt,Tt=xt;for(let It=0;It{const Te=(0,Z.H)(it[It],Ye);let Ze=!1;Te.subscribe((0,Xe._)(mt,_e=>{Dt[It]=_e,Ze||(Ze=!0,Tt--),Tt||mt.next(at(Dt.slice()))},()=>{--zt||mt.complete()}))},mt)},mt)}}(mt,Ye,xt?zt=>(0,ae.e)(xt,zt):ke.D));return at?Dt.pipe((0,$.I)(at)):Dt}function et(it,Ye,at){it?(0,tt.N)(at,it,Ye):Ye()}},8793:(Pn,Et,C)=>{"use strict";C.d(Et,{x:()=>$});var h=C(6365),Z=C(9326),ke=C(8455);function $(...he){return function c(){return(0,h.U)(1)}()((0,ke.H)(he,(0,Z.lI)(he)))}},983:(Pn,Et,C)=>{"use strict";C.d(Et,{w:()=>c});const c=new(C(1985).c)($=>$.complete())},8455:(Pn,Et,C)=>{"use strict";C.d(Et,{H:()=>Te});var h=C(8750),c=C(941),Z=C(6745),he=C(1985),Xe=C(4761),tt=C(8071),Se=C(5225);function et(Ze,_e){if(!Ze)throw new Error("Iterable cannot be null");return new he.c($e=>{(0,Se.N)($e,_e,()=>{const Le=Ze[Symbol.asyncIterator]();(0,Se.N)($e,_e,()=>{Le.next().then(Oe=>{Oe.done?$e.complete():$e.next(Oe.value)})},0,!0)})})}var it=C(5055),Ye=C(9858),at=C(7441),mt=C(5397),xt=C(7953),Dt=C(591),zt=C(5196);function Te(Ze,_e){return _e?function It(Ze,_e){if(null!=Ze){if((0,it.l)(Ze))return function ke(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,at.X)(Ze))return function ae(Ze,_e){return new he.c($e=>{let Le=0;return _e.schedule(function(){Le===Ze.length?$e.complete():($e.next(Ze[Le++]),$e.closed||this.schedule())})})}(Ze,_e);if((0,Ye.y)(Ze))return function $(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,xt.T)(Ze))return et(Ze,_e);if((0,mt.x)(Ze))return function be(Ze,_e){return new he.c($e=>{let Le;return(0,Se.N)($e,_e,()=>{Le=Ze[Xe.l](),(0,Se.N)($e,_e,()=>{let Oe,Ct;try{({value:Oe,done:Ct}=Le.next())}catch(kt){return void $e.error(kt)}Ct?$e.complete():$e.next(Oe)},0,!0)}),()=>(0,tt.T)(null==Le?void 0:Le.return)&&Le.return()})}(Ze,_e);if((0,zt.U)(Ze))return function Tt(Ze,_e){return et((0,zt.C)(Ze),_e)}(Ze,_e)}throw(0,Dt.L)(Ze)}(Ze,_e):(0,h.Tg)(Ze)}},3726:(Pn,Et,C)=>{"use strict";C.d(Et,{R:()=>Se});var h=C(8750),c=C(1985),Z=C(1397),ke=C(7441),$=C(8071),he=C(6450);const ae=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],tt=["on","off"];function Se(at,mt,xt,Dt){if((0,$.T)(xt)&&(Dt=xt,xt=void 0),Dt)return Se(at,mt,xt).pipe((0,he.I)(Dt));const[zt,Tt]=function Ye(at){return(0,$.T)(at.addEventListener)&&(0,$.T)(at.removeEventListener)}(at)?Xe.map(It=>Te=>at[It](mt,Te,xt)):function et(at){return(0,$.T)(at.addListener)&&(0,$.T)(at.removeListener)}(at)?ae.map(be(at,mt)):function it(at){return(0,$.T)(at.on)&&(0,$.T)(at.off)}(at)?tt.map(be(at,mt)):[];if(!zt&&(0,ke.X)(at))return(0,Z.Z)(It=>Se(It,mt,xt))((0,h.Tg)(at));if(!zt)throw new TypeError("Invalid event target");return new c.c(It=>{const Te=(...Ze)=>It.next(1Tt(Te)})}function be(at,mt){return xt=>Dt=>at[xt](mt,Dt)}},8750:(Pn,Et,C)=>{"use strict";C.d(Et,{Tg:()=>it});var h=C(1635),c=C(7441),Z=C(9858),ke=C(1985),$=C(5055),he=C(7953),ae=C(591),Xe=C(5397),tt=C(5196),Se=C(8071),be=C(5334),et=C(3494);function it(It){if(It instanceof ke.c)return It;if(null!=It){if((0,$.l)(It))return function Ye(It){return new ke.c(Te=>{const Ze=It[et.s]();if((0,Se.T)(Ze.subscribe))return Ze.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(It);if((0,c.X)(It))return function at(It){return new ke.c(Te=>{for(let Ze=0;Ze{It.then(Ze=>{Te.closed||(Te.next(Ze),Te.complete())},Ze=>Te.error(Ze)).then(null,be.m)})}(It);if((0,he.T)(It))return Dt(It);if((0,Xe.x)(It))return function xt(It){return new ke.c(Te=>{for(const Ze of It)if(Te.next(Ze),Te.closed)return;Te.complete()})}(It);if((0,tt.U)(It))return function zt(It){return Dt((0,tt.C)(It))}(It)}throw(0,ae.L)(It)}function Dt(It){return new ke.c(Te=>{(function Tt(It,Te){var Ze,_e,$e,Le;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ze=(0,h.xN)(It);!(_e=yield Ze.next()).done;)if(Te.next(_e.value),Te.closed)return}catch(Oe){$e={error:Oe}}finally{try{_e&&!_e.done&&(Le=Ze.return)&&(yield Le.call(Ze))}finally{if($e)throw $e.error}}Te.complete()})})(It,Te).catch(Ze=>Te.error(Ze))})}},7786:(Pn,Et,C)=>{"use strict";C.d(Et,{h:()=>he});var h=C(6365),c=C(8750),Z=C(983),ke=C(9326),$=C(8455);function he(...ae){const Xe=(0,ke.lI)(ae),tt=(0,ke.R0)(ae,1/0),Se=ae;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(tt)((0,$.H)(Se,Xe)):Z.w}},7673:(Pn,Et,C)=>{"use strict";C.d(Et,{of:()=>Z});var h=C(9326),c=C(8455);function Z(...ke){const $=(0,h.lI)(ke);return(0,c.H)(ke,$)}},1584:(Pn,Et,C)=>{"use strict";C.d(Et,{O:()=>$});var h=C(1985),c=C(3236),Z=C(9470);function $(he=0,ae,Xe=c.b){let tt=-1;return null!=ae&&((0,Z.m)(ae)?Xe=ae:tt=ae),new h.c(Se=>{let be=function ke(he){return he instanceof Date&&!isNaN(he)}(he)?+he-Xe.now():he;be<0&&(be=0);let et=0;return Xe.schedule(function(){Se.closed||(Se.next(et++),0<=tt?this.schedule(void 0,tt):Se.complete())},be)})}},4360:(Pn,Et,C)=>{"use strict";C.d(Et,{_:()=>c});var h=C(7707);function c(ke,$,he,ae,Xe){return new Z(ke,$,he,ae,Xe)}class Z extends h.vU{constructor($,he,ae,Xe,tt,Se){super($),this.onFinalize=tt,this.shouldUnsubscribe=Se,this._next=he?function(be){try{he(be)}catch(et){$.error(et)}}:super._next,this._error=Xe?function(be){try{Xe(be)}catch(et){$.error(et)}finally{this.unsubscribe()}}:super._error,this._complete=ae?function(){try{ae()}catch(be){$.error(be)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var $;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:he}=this;super.unsubscribe(),!he&&(null===($=this.onFinalize)||void 0===$||$.call(this))}}}},274:(Pn,Et,C)=>{"use strict";C.d(Et,{H:()=>Z});var h=C(1397),c=C(8071);function Z(ke,$){return(0,c.T)($)?(0,h.Z)(ke,$,1):(0,h.Z)(ke,1)}},9901:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>Z});var h=C(9974),c=C(4360);function Z(ke){return(0,h.N)(($,he)=>{let ae=!1;$.subscribe((0,c._)(he,Xe=>{ae=!0,he.next(Xe)},()=>{ae||he.next(ke),he.complete()}))})}},3294:(Pn,Et,C)=>{"use strict";C.d(Et,{F:()=>ke});var h=C(3669),c=C(9974),Z=C(4360);function ke(he,ae=h.D){return he=null!=he?he:$,(0,c.N)((Xe,tt)=>{let Se,be=!0;Xe.subscribe((0,Z._)(tt,et=>{const it=ae(et);(be||!he(Se,it))&&(be=!1,Se=it,tt.next(et))}))})}function $(he,ae){return he===ae}},5964:(Pn,Et,C)=>{"use strict";C.d(Et,{p:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>ke.call($,tt,Xe++)&&ae.next(tt)))})}},980:(Pn,Et,C)=>{"use strict";C.d(Et,{j:()=>c});var h=C(9974);function c(Z){return(0,h.N)((ke,$)=>{try{ke.subscribe($)}finally{$.add(Z)}})}},1594:(Pn,Et,C)=>{"use strict";C.d(Et,{$:()=>ae});var h=C(9350),c=C(5964),Z=C(6697),ke=C(9901),$=C(3774),he=C(3669);function ae(Xe,tt){const Se=arguments.length>=2;return be=>be.pipe(Xe?(0,c.p)((et,it)=>Xe(et,it,be)):he.D,(0,Z.s)(1),Se?(0,ke.U)(tt):(0,$.v)(()=>new h.G))}},6354:(Pn,Et,C)=>{"use strict";C.d(Et,{T:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>{ae.next(ke.call($,tt,Xe++))}))})}},3703:(Pn,Et,C)=>{"use strict";C.d(Et,{u:()=>c});var h=C(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>Z});var h=C(1397),c=C(3669);function Z(ke=1/0){return(0,h.Z)(c.D,ke)}},1397:(Pn,Et,C)=>{"use strict";C.d(Et,{Z:()=>Xe});var h=C(6354),c=C(8750),Z=C(9974),ke=C(5225),$=C(4360),ae=C(8071);function Xe(tt,Se,be=1/0){return(0,ae.T)(Se)?Xe((et,it)=>(0,h.T)((Ye,at)=>Se(et,Ye,it,at))((0,c.Tg)(tt(et,it))),be):("number"==typeof Se&&(be=Se),(0,Z.N)((et,it)=>function he(tt,Se,be,et,it,Ye,at,mt){const xt=[];let Dt=0,zt=0,Tt=!1;const It=()=>{Tt&&!xt.length&&!Dt&&Se.complete()},Te=_e=>Dt{Ye&&Se.next(_e),Dt++;let $e=!1;(0,c.Tg)(be(_e,zt++)).subscribe((0,$._)(Se,Le=>{null==it||it(Le),Ye?Te(Le):Se.next(Le)},()=>{$e=!0},void 0,()=>{if($e)try{for(Dt--;xt.length&&DtZe(Le)):Ze(Le)}It()}catch(Le){Se.error(Le)}}))};return tt.subscribe((0,$._)(Se,Te,()=>{Tt=!0,It()})),()=>{null==mt||mt()}}(et,it,tt,be)))}},941:(Pn,Et,C)=>{"use strict";C.d(Et,{Q:()=>ke});var h=C(5225),c=C(9974),Z=C(4360);function ke($,he=0){return(0,c.N)((ae,Xe)=>{ae.subscribe((0,Z._)(Xe,tt=>(0,h.N)(Xe,$,()=>Xe.next(tt),he),()=>(0,h.N)(Xe,$,()=>Xe.complete(),he),tt=>(0,h.N)(Xe,$,()=>Xe.error(tt),he)))})}},9172:(Pn,Et,C)=>{"use strict";C.d(Et,{Z:()=>ke});var h=C(8793),c=C(9326),Z=C(9974);function ke(...$){const he=(0,c.lI)($);return(0,Z.N)((ae,Xe)=>{(he?(0,h.x)($,ae,he):(0,h.x)($,ae)).subscribe(Xe)})}},6745:(Pn,Et,C)=>{"use strict";C.d(Et,{_:()=>c});var h=C(9974);function c(Z,ke=0){return(0,h.N)(($,he)=>{he.add(Z.schedule(()=>$.subscribe(he),ke))})}},5558:(Pn,Et,C)=>{"use strict";C.d(Et,{n:()=>ke});var h=C(8750),c=C(9974),Z=C(4360);function ke($,he){return(0,c.N)((ae,Xe)=>{let tt=null,Se=0,be=!1;const et=()=>be&&!tt&&Xe.complete();ae.subscribe((0,Z._)(Xe,it=>{null==tt||tt.unsubscribe();let Ye=0;const at=Se++;(0,h.Tg)($(it,at)).subscribe(tt=(0,Z._)(Xe,mt=>Xe.next(he?he(it,mt,at,Ye++):mt),()=>{tt=null,et()}))},()=>{be=!0,et()}))})}},6697:(Pn,Et,C)=>{"use strict";C.d(Et,{s:()=>ke});var h=C(983),c=C(9974),Z=C(4360);function ke($){return $<=0?()=>h.w:(0,c.N)((he,ae)=>{let Xe=0;he.subscribe((0,Z._)(ae,tt=>{++Xe<=$&&(ae.next(tt),$<=Xe&&ae.complete())}))})}},6977:(Pn,Et,C)=>{"use strict";C.d(Et,{Q:()=>$});var h=C(9974),c=C(4360),Z=C(8750),ke=C(5343);function $(he){return(0,h.N)((ae,Xe)=>{(0,Z.Tg)(he).subscribe((0,c._)(Xe,()=>Xe.complete(),ke.l)),!Xe.closed&&ae.subscribe(Xe)})}},8141:(Pn,Et,C)=>{"use strict";C.d(Et,{M:()=>$});var h=C(8071),c=C(9974),Z=C(4360),ke=C(3669);function $(he,ae,Xe){const tt=(0,h.T)(he)||ae||Xe?{next:he,error:ae,complete:Xe}:he;return tt?(0,c.N)((Se,be)=>{var et;null===(et=tt.subscribe)||void 0===et||et.call(tt);let it=!0;Se.subscribe((0,Z._)(be,Ye=>{var at;null===(at=tt.next)||void 0===at||at.call(tt,Ye),be.next(Ye)},()=>{var Ye;it=!1,null===(Ye=tt.complete)||void 0===Ye||Ye.call(tt),be.complete()},Ye=>{var at;it=!1,null===(at=tt.error)||void 0===at||at.call(tt,Ye),be.error(Ye)},()=>{var Ye,at;it&&(null===(Ye=tt.unsubscribe)||void 0===Ye||Ye.call(tt)),null===(at=tt.finalize)||void 0===at||at.call(tt)}))}):ke.D}},3774:(Pn,Et,C)=>{"use strict";C.d(Et,{v:()=>ke});var h=C(9350),c=C(9974),Z=C(4360);function ke(he=$){return(0,c.N)((ae,Xe)=>{let tt=!1;ae.subscribe((0,Z._)(Xe,Se=>{tt=!0,Xe.next(Se)},()=>tt?Xe.complete():Xe.error(he())))})}function $(){return new h.G}},6780:(Pn,Et,C)=>{"use strict";C.d(Et,{R:()=>$});var h=C(8359);class c extends h.yU{constructor(ae,Xe){super()}schedule(ae,Xe=0){return this}}const Z={setInterval(he,ae,...Xe){const{delegate:tt}=Z;return null!=tt&&tt.setInterval?tt.setInterval(he,ae,...Xe):setInterval(he,ae,...Xe)},clearInterval(he){const{delegate:ae}=Z;return((null==ae?void 0:ae.clearInterval)||clearInterval)(he)},delegate:void 0};var ke=C(7908);class $ extends c{constructor(ae,Xe){super(ae,Xe),this.scheduler=ae,this.work=Xe,this.pending=!1}schedule(ae,Xe=0){var tt;if(this.closed)return this;this.state=ae;const Se=this.id,be=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(be,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(tt=this.id)&&void 0!==tt?tt:this.requestAsyncId(be,this.id,Xe),this}requestAsyncId(ae,Xe,tt=0){return Z.setInterval(ae.flush.bind(ae,this),tt)}recycleAsyncId(ae,Xe,tt=0){if(null!=tt&&this.delay===tt&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(ae,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const tt=this._execute(ae,Xe);if(tt)return tt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ae,Xe){let Se,tt=!1;try{this.work(ae)}catch(be){tt=!0,Se=be||new Error("Scheduled action threw falsy error")}if(tt)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:ae,scheduler:Xe}=this,{actions:tt}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ke.o)(tt,this),null!=ae&&(this.id=this.recycleAsyncId(Xe,ae,null)),this.delay=null,super.unsubscribe()}}}},9687:(Pn,Et,C)=>{"use strict";C.d(Et,{q:()=>Z});var h=C(6129);class c{constructor($,he=c.now){this.schedulerActionCtor=$,this.now=he}schedule($,he=0,ae){return new this.schedulerActionCtor(this,$).schedule(ae,he)}}c.now=h.U.now;class Z extends c{constructor($,he=c.now){super($,he),this.actions=[],this._active=!1}flush($){const{actions:he}=this;if(this._active)return void he.push($);let ae;this._active=!0;do{if(ae=$.execute($.state,$.delay))break}while($=he.shift());if(this._active=!1,ae){for(;$=he.shift();)$.unsubscribe();throw ae}}}},3236:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Z,b:()=>ke});var h=C(6780);const Z=new(C(9687).q)(h.R),ke=Z},6129:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Pn,Et,C)=>{"use strict";C.d(Et,{f:()=>h});const h={setTimeout(c,Z,...ke){const{delegate:$}=h;return null!=$&&$.setTimeout?$.setTimeout(c,Z,...ke):setTimeout(c,Z,...ke)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Pn,Et,C)=>{"use strict";C.d(Et,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Pn,Et,C)=>{"use strict";C.d(Et,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Pn,Et,C)=>{"use strict";C.d(Et,{G:()=>c});const c=(0,C(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Pn,Et,C)=>{"use strict";C.d(Et,{R0:()=>he,lI:()=>$,ms:()=>ke});var h=C(8071),c=C(9470);function Z(ae){return ae[ae.length-1]}function ke(ae){return(0,h.T)(Z(ae))?ae.pop():void 0}function $(ae){return(0,c.m)(Z(ae))?ae.pop():void 0}function he(ae,Xe){return"number"==typeof Z(ae)?ae.pop():Xe}},3073:(Pn,Et,C)=>{"use strict";C.d(Et,{D:()=>$});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:ke}=Object;function $(ae){if(1===ae.length){const Xe=ae[0];if(h(Xe))return{args:Xe,keys:null};if(function he(ae){return ae&&"object"==typeof ae&&c(ae)===Z}(Xe)){const tt=ke(Xe);return{args:tt.map(Se=>Xe[Se]),keys:tt}}}return{args:ae,keys:null}}},7908:(Pn,Et,C)=>{"use strict";function h(c,Z){if(c){const ke=c.indexOf(Z);0<=ke&&c.splice(ke,1)}}C.d(Et,{o:()=>h})},1853:(Pn,Et,C)=>{"use strict";function h(c){const ke=c($=>{Error.call($),$.stack=(new Error).stack});return ke.prototype=Object.create(Error.prototype),ke.prototype.constructor=ke,ke}C.d(Et,{L:()=>h})},8496:(Pn,Et,C)=>{"use strict";function h(c,Z){return c.reduce((ke,$,he)=>(ke[$]=Z[he],ke),{})}C.d(Et,{e:()=>h})},9786:(Pn,Et,C)=>{"use strict";C.d(Et,{Y:()=>Z,l:()=>ke});var h=C(1026);let c=null;function Z($){if(h.$.useDeprecatedSynchronousErrorHandling){const he=!c;if(he&&(c={errorThrown:!1,error:null}),$(),he){const{errorThrown:ae,error:Xe}=c;if(c=null,ae)throw Xe}}else $()}function ke($){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=$)}},5225:(Pn,Et,C)=>{"use strict";function h(c,Z,ke,$=0,he=!1){const ae=Z.schedule(function(){ke(),he?c.add(this.schedule(null,$)):this.unsubscribe()},$);if(c.add(ae),!he)return ae}C.d(Et,{N:()=>h})},3669:(Pn,Et,C)=>{"use strict";function h(c){return c}C.d(Et,{D:()=>h})},7441:(Pn,Et,C)=>{"use strict";C.d(Et,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Pn,Et,C)=>{"use strict";C.d(Et,{T:()=>c});var h=C(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Pn,Et,C)=>{"use strict";function h(c){return"function"==typeof c}C.d(Et,{T:()=>h})},5055:(Pn,Et,C)=>{"use strict";C.d(Et,{l:()=>Z});var h=C(3494),c=C(8071);function Z(ke){return(0,c.T)(ke[h.s])}},5397:(Pn,Et,C)=>{"use strict";C.d(Et,{x:()=>Z});var h=C(4761),c=C(8071);function Z(ke){return(0,c.T)(null==ke?void 0:ke[h.l])}},4402:(Pn,Et,C)=>{"use strict";C.d(Et,{A:()=>Z});var h=C(1985),c=C(8071);function Z(ke){return!!ke&&(ke instanceof h.c||(0,c.T)(ke.lift)&&(0,c.T)(ke.subscribe))}},9858:(Pn,Et,C)=>{"use strict";C.d(Et,{y:()=>c});var h=C(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Pn,Et,C)=>{"use strict";C.d(Et,{C:()=>Z,U:()=>ke});var h=C(1635),c=C(8071);function Z($){return(0,h.AQ)(this,arguments,function*(){const ae=$.getReader();try{for(;;){const{value:Xe,done:tt}=yield(0,h.N3)(ae.read());if(tt)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{ae.releaseLock()}})}function ke($){return(0,c.T)(null==$?void 0:$.getReader)}},9470:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>c});var h=C(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Pn,Et,C)=>{"use strict";C.d(Et,{N:()=>Z,S:()=>c});var h=C(8071);function c(ke){return(0,h.T)(null==ke?void 0:ke.lift)}function Z(ke){return $=>{if(c($))return $.lift(function(he){try{return ke(he,this)}catch(ae){this.error(ae)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Pn,Et,C)=>{"use strict";C.d(Et,{I:()=>ke});var h=C(6354);const{isArray:c}=Array;function ke($){return(0,h.T)(he=>function Z($,he){return c(he)?$(...he):$(he)}($,he))}},5343:(Pn,Et,C)=>{"use strict";function h(){}C.d(Et,{l:()=>h})},1203:(Pn,Et,C)=>{"use strict";C.d(Et,{F:()=>c,m:()=>Z});var h=C(3669);function c(...ke){return Z(ke)}function Z(ke){return 0===ke.length?h.D:1===ke.length?ke[0]:function(he){return ke.reduce((ae,Xe)=>Xe(ae),he)}}},5334:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>Z});var h=C(1026),c=C(9270);function Z(ke){c.f.setTimeout(()=>{const{onUnhandledError:$}=h.$;if(!$)throw ke;$(ke)})}},591:(Pn,Et,C)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Et,{L:()=>h})},8996:(Pn,Et,C)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!C.o(h,Z))return Promise.resolve().then(()=>{var he=new Error("Cannot find module '"+Z+"'");throw he.code="MODULE_NOT_FOUND",he});var ke=h[Z],$=ke[0];return Promise.all(ke.slice(1).map(C.e)).then(()=>C($))}c.keys=()=>Object.keys(h),c.id=8996,Pn.exports=c},177:(Pn,Et,C)=>{"use strict";C.d(Et,{AJ:()=>en,Jj:()=>Pt,MD:()=>wt,N0:()=>Bi,QT:()=>Z,QX:()=>vr,Sm:()=>mt,Sq:()=>pr,T3:()=>Zn,UE:()=>Gn,VF:()=>$,Vy:()=>Yn,Xr:()=>Wr,ZD:()=>ke,_b:()=>O,aZ:()=>Dt,bT:()=>jn,fw:()=>xt,hb:()=>Ye,hj:()=>tt,qQ:()=>ae});var h=C(4438);let c=null;function Z(){return c}function ke(T){var j;null!==(j=c)&&void 0!==j||(c=T)}class ${}const ae=new h.nKC("");let Xe=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),j})();const tt=new h.nKC("");let Se=(()=>{var T;class j extends Xe{constructor(){super(),this._doc=(0,h.WQX)(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("popstate",F,!1),()=>De.removeEventListener("popstate",F)}onHashChange(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("hashchange",F,!1),()=>De.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,De,Qe){this._history.pushState(F,De,Qe)}replaceState(F,De,Qe){this._history.replaceState(F,De,Qe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>new T,providedIn:"platform"}),j})();function be(T,j){if(0==T.length)return j;if(0==j.length)return T;let Ue=0;return T.endsWith("/")&&Ue++,j.startsWith("/")&&Ue++,2==Ue?T+j.substring(1):1==Ue?T+j:T+"/"+j}function et(T){const j=T.match(/#|\?|$/),Ue=j&&j.index||T.length;return T.slice(0,Ue-("/"===T[Ue-1]?1:0))+T.slice(Ue)}function it(T){return T&&"?"!==T[0]?"?"+T:T}let Ye=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(mt),providedIn:"root"}),j})();const at=new h.nKC("");let mt=(()=>{var T;class j extends Ye{constructor(F,De){var Qe,tn,Fn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Qe=null!==(tn=null!=De?De:this._platformLocation.getBaseHrefFromDOM())&&void 0!==tn?tn:null===(Fn=(0,h.WQX)(ae).location)||void 0===Fn?void 0:Fn.origin)&&void 0!==Qe?Qe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return be(this._baseHref,F)}path(F=!1){const De=this._platformLocation.pathname+it(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&F?`${De}${Qe}`:De}pushState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),j})(),xt=(()=>{var T;class j extends Ye{constructor(F,De){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=De&&(this._baseHref=De)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var De;const Qe=null!==(De=this._platformLocation.hash)&&void 0!==De?De:"#";return Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(F){const De=be(this._baseHref,F);return De.length>0?"#"+De:De}pushState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac}),j})(),Dt=(()=>{var T;class j{constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const De=this._locationStrategy.getBaseHref();this._basePath=function Te(T){if(new RegExp("^(https?:)?//").test(T)){const[,Ue]=T.split(/\/\/[^\/]+/);return Ue}return T}(et(It(De))),this._locationStrategy.onPopState(Qe=>{this._subject.emit({url:this.path(!0),pop:!0,state:Qe.state,type:Qe.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,De=""){return this.path()==this.normalize(F+it(De))}normalize(F){return j.stripTrailingSlash(function Tt(T,j){if(!T||!j.startsWith(T))return j;const Ue=j.substring(T.length);return""===Ue||["/",";","?","#"].includes(Ue[0])?Ue:j}(this._basePath,It(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,De="",Qe=null){this._locationStrategy.pushState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}replaceState(F,De="",Qe=null){this._locationStrategy.replaceState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._locationStrategy).historyGo)||void 0===De||De.call(Qe,F)}onUrlChange(F){var De;return this._urlChangeListeners.push(F),null!==(De=this._urlChangeSubscription)&&void 0!==De||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(F);var tn;this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(null===(tn=this._urlChangeSubscription)||void 0===tn||tn.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",De){this._urlChangeListeners.forEach(Qe=>Qe(F,De))}subscribe(F,De,Qe){return this._subject.subscribe({next:F,error:De,complete:Qe})}}return(T=j).normalizeQueryParams=it,T.joinWithSlash=be,T.stripTrailingSlash=et,T.\u0275fac=function(F){return new(F||T)(h.KVO(Ye))},T.\u0275prov=h.jDH({token:T,factory:()=>function zt(){return new Dt((0,h.KVO)(Ye))}(),providedIn:"root"}),j})();function It(T){return T.replace(/\/index.html$/,"")}var _e=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(_e||{});const kt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ve(T,j){const Ue=(0,h.H5H)(T),F=Ue[h.KH2.NumberSymbols][j];if(typeof F>"u"){if(j===kt.CurrencyDecimal)return Ue[h.KH2.NumberSymbols][kt.Decimal];if(j===kt.CurrencyGroup)return Ue[h.KH2.NumberSymbols][kt.Group]}return F}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Gt(T){const j=parseInt(T);if(isNaN(j))throw new Error("Invalid integer literal when parsing "+T);return j}function O(T,j){j=encodeURIComponent(j);for(const Ue of T.split(";")){const F=Ue.indexOf("="),[De,Qe]=-1==F?[Ue,""]:[Ue.slice(0,F),Ue.slice(F+1)];if(De.trim()===j)return decodeURIComponent(Qe)}return null}class rn{constructor(j,Ue,F,De){this.$implicit=j,this.ngForOf=Ue,this.index=F,this.count=De}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pr=(()=>{var T;class j{set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,De,Qe){this._viewContainer=F,this._template=De,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const De=this._viewContainer;F.forEachOperation((Qe,tn,Fn)=>{if(null==Qe.previousIndex)De.createEmbeddedView(this._template,new rn(Qe.item,this._ngForOf,-1,-1),null===Fn?void 0:Fn);else if(null==Fn)De.remove(null===tn?void 0:tn);else if(null!==tn){const Er=De.get(tn);De.move(Er,Fn),qn(Er,Qe)}});for(let Qe=0,tn=De.length;Qe{qn(De.get(Qe.currentIndex),Qe)})}static ngTemplateContextGuard(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function qn(T,j){T.context.$implicit=j.item}let jn=(()=>{var T;class j{constructor(F,De){this._viewContainer=F,this._context=new zr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=De}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){$r("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){$r("ngIfElse",F),this._elseTemplateRef=F,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(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class zr{constructor(){this.$implicit=null,this.ngIf=null}}function $r(T,j){if(j&&!j.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,h.Tbb)(j)}'.`)}let Zn=(()=>{var T;class j{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var De;const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const tn=this._createContextForwardProxy();this._viewRef=Qe.createEmbeddedView(this.ngTemplateOutlet,tn,{injector:null!==(De=this.ngTemplateOutletInjector)&&void 0!==De?De:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,De,Qe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,De,Qe),get:(F,De,Qe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,De,Qe)}})}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),j})();function fi(T,j){return new h.wOt(2100,!1)}class yi{createSubscription(j,Ue){return(0,h.O8t)(()=>j.subscribe({next:Ue,error:F=>{throw F}}))}dispose(j){(0,h.O8t)(()=>j.unsubscribe())}}class vo{createSubscription(j,Ue){return j.then(Ue,F=>{throw F})}dispose(j){}}const bo=new vo,ui=new yi;let Pt=(()=>{var T;class j{constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,De=>this._updateLatestValue(F,De))}_selectStrategy(F){if((0,h.jNT)(F))return bo;if((0,h.zjR)(F))return ui;throw fi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,De){var Qe;F===this._obj&&(this._latestValue=De,this.markForCheckOnValueUpdate)&&(null===(Qe=this._ref)||void 0===Qe||Qe.markForCheck())}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.gRc,16))},T.\u0275pipe=h.EJ8({name:"async",type:T,pure:!1,standalone:!0}),j})(),vr=(()=>{var T;class j{constructor(F){this._locale=F}transform(F,De,Qe){if(!function ye(T){return!(null==T||""===T||T!=T)}(F))return null;Qe||(Qe=this._locale);try{return function oi(T,j,Ue){return function wr(T,j,Ue,F,De,Qe,tn=!1){let Fn="",Er=!1;if(isFinite(T)){let ur=function vi(T){let F,De,Qe,tn,Fn,j=Math.abs(T)+"",Ue=0;for((De=j.indexOf("."))>-1&&(j=j.replace(".","")),(Qe=j.search(/e/i))>0?(De<0&&(De=Qe),De+=+j.slice(Qe+1),j=j.substring(0,Qe)):De<0&&(De=j.length),Qe=0;"0"===j.charAt(Qe);Qe++);if(Qe===(Fn=j.length))F=[0],De=1;else{for(Fn--;"0"===j.charAt(Fn);)Fn--;for(De-=Qe,F=[],tn=0;Qe<=Fn;Qe++,tn++)F[tn]=Number(j.charAt(Qe))}return De>22&&(F=F.splice(0,21),Ue=De-1,De=1),{digits:F,exponent:Ue,integerLen:De}}(T);tn&&(ur=function xi(T){if(0===T.digits[0])return T;const j=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===j?T.digits.push(0,0):1===j&&T.digits.push(0),T.integerLen+=2),T}(ur));let bi=j.minInt,ri=j.minFrac,Ii=j.maxFrac;if(Qe){const Ni=Qe.match(gt);if(null===Ni)throw new Error(`${Qe} is not a valid digit info`);const lo=Ni[1],Vi=Ni[3],uo=Ni[5];null!=lo&&(bi=Gt(lo)),null!=Vi&&(ri=Gt(Vi)),null!=uo?Ii=Gt(uo):null!=Vi&&ri>Ii&&(Ii=ri)}!function Ar(T,j,Ue){if(j>Ue)throw new Error(`The minimum number of digits after fraction (${j}) is higher than the maximum (${Ue}).`);let F=T.digits,De=F.length-T.integerLen;const Qe=Math.min(Math.max(j,De),Ue);let tn=Qe+T.integerLen,Fn=F[tn];if(tn>0){F.splice(Math.max(T.integerLen,tn));for(let ri=tn;ri=5)if(tn-1<0){for(let ri=0;ri>tn;ri--)F.unshift(0),T.integerLen++;F.unshift(1),T.integerLen++}else F[tn-1]++;for(;De=ur?to.pop():Er=!1),Ii>=10?1:0},0);bi&&(F.unshift(bi),T.integerLen++)}(ur,ri,Ii);let gi=ur.digits,to=ur.integerLen;const wi=ur.exponent;let Bn=[];for(Er=gi.every(Ni=>!Ni);to0?Bn=gi.splice(to,gi.length):(Bn=gi,gi=[0]);const ir=[];for(gi.length>=j.lgSize&&ir.unshift(gi.splice(-j.lgSize,gi.length).join(""));gi.length>j.gSize;)ir.unshift(gi.splice(-j.gSize,gi.length).join(""));gi.length&&ir.unshift(gi.join("")),Fn=ir.join(Ve(Ue,F)),Bn.length&&(Fn+=Ve(Ue,De)+Bn.join("")),wi&&(Fn+=Ve(Ue,kt.Exponential)+"+"+wi)}else Fn=Ve(Ue,kt.Infinity);return Fn=T<0&&!Er?j.negPre+Fn+j.negSuf:j.posPre+Fn+j.posSuf,Fn}(T,function Ir(T,j="-"){const Ue={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=T.split(";"),De=F[0],Qe=F[1],tn=-1!==De.indexOf(".")?De.split("."):[De.substring(0,De.lastIndexOf("0")+1),De.substring(De.lastIndexOf("0")+1)],Fn=tn[0],Er=tn[1]||"";Ue.posPre=Fn.substring(0,Fn.indexOf("#"));for(let bi=0;bi{var T;class j{}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275mod=h.$C({type:T}),T.\u0275inj=h.G2t({}),j})();const en="browser",pn="server";function Gn(T){return T===en}function Yn(T){return T===pn}let Wr=(()=>{var T;class j{}return(T=j).\u0275prov=(0,h.jDH)({token:T,providedIn:"root",factory:()=>Gn((0,h.WQX)(h.Agw))?new kr((0,h.WQX)(ae),window):new Fi}),j})();class kr{constructor(j,Ue){this.document=j,this.window=Ue,this.offset=()=>[0,0]}setOffset(j){this.offset=Array.isArray(j)?()=>j:j}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(j){this.window.scrollTo(j[0],j[1])}scrollToAnchor(j){const Ue=function ki(T,j){const Ue=T.getElementById(j)||T.getElementsByName(j)[0];if(Ue)return Ue;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const F=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let De=F.currentNode;for(;De;){const Qe=De.shadowRoot;if(Qe){const tn=Qe.getElementById(j)||Qe.querySelector(`[name="${j}"]`);if(tn)return tn}De=F.nextNode()}}return null}(this.document,j);Ue&&(this.scrollToElement(Ue),Ue.focus())}setHistoryScrollRestoration(j){this.window.history.scrollRestoration=j}scrollToElement(j){const Ue=j.getBoundingClientRect(),F=Ue.left+this.window.pageXOffset,De=Ue.top+this.window.pageYOffset,Qe=this.offset();this.window.scrollTo(F-Qe[0],De-Qe[1])}}class Fi{setOffset(j){}getScrollPosition(){return[0,0]}scrollToPosition(j){}scrollToAnchor(j){}setHistoryScrollRestoration(j){}}class Bi{}},1626:(Pn,Et,C)=>{"use strict";C.d(Et,{Qq:()=>ce,q1:()=>Tn}),C(467);var c=C(4438),Z=C(7673),ke=C(1985),$=C(8455),he=C(274),ae=C(5964),Xe=C(6354),tt=C(980),Se=C(5558),be=C(177);class et{}class it{}class Ye{constructor(O){this.normalizedNames=new Map,this.lazyUpdate=null,O?"string"==typeof O?this.lazyInit=()=>{this.headers=new Map,O.split("\n").forEach(re=>{const we=re.indexOf(":");if(we>0){const We=re.slice(0,we),St=We.toLowerCase(),nn=re.slice(we+1).trim();this.maybeSetNormalizedName(We,St),this.headers.has(St)?this.headers.get(St).push(nn):this.headers.set(St,[nn])}})}:typeof Headers<"u"&&O instanceof Headers?(this.headers=new Map,O.forEach((re,we)=>{this.setHeaderEntries(we,re)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(O).forEach(([re,we])=>{this.setHeaderEntries(re,we)})}:this.headers=new Map}has(O){return this.init(),this.headers.has(O.toLowerCase())}get(O){this.init();const re=this.headers.get(O.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(O){return this.init(),this.headers.get(O.toLowerCase())||null}append(O,re){return this.clone({name:O,value:re,op:"a"})}set(O,re){return this.clone({name:O,value:re,op:"s"})}delete(O,re){return this.clone({name:O,value:re,op:"d"})}maybeSetNormalizedName(O,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,O)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(O=>this.applyUpdate(O)),this.lazyUpdate=null))}copyFrom(O){O.init(),Array.from(O.headers.keys()).forEach(re=>{this.headers.set(re,O.headers.get(re)),this.normalizedNames.set(re,O.normalizedNames.get(re))})}clone(O){const re=new Ye;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([O]),re}applyUpdate(O){const re=O.name.toLowerCase();switch(O.op){case"a":case"s":let we=O.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(O.name,re);const We=("a"===O.op?this.headers.get(re):void 0)||[];We.push(...we),this.headers.set(re,We);break;case"d":const St=O.value;if(St){let nn=this.headers.get(re);if(!nn)return;nn=nn.filter(rn=>-1===St.indexOf(rn)),0===nn.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,nn)}else this.headers.delete(re),this.normalizedNames.delete(re)}}setHeaderEntries(O,re){const we=(Array.isArray(re)?re:[re]).map(St=>St.toString()),We=O.toLowerCase();this.headers.set(We,we),this.maybeSetNormalizedName(O,We)}forEach(O){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>O(this.normalizedNames.get(re),this.headers.get(re)))}}class mt{encodeKey(O){return Tt(O)}encodeValue(O){return Tt(O)}decodeKey(O){return decodeURIComponent(O)}decodeValue(O){return decodeURIComponent(O)}}const Dt=/%(\d[a-f0-9])/gi,zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Tt(M){return encodeURIComponent(M).replace(Dt,(O,re)=>{var we;return null!==(we=zt[re])&&void 0!==we?we:O})}function It(M){return`${M}`}class Te{constructor(O={}){if(this.updates=null,this.cloneFrom=null,this.encoder=O.encoder||new mt,O.fromString){if(O.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xt(M,O){const re=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(We=>{const St=We.indexOf("="),[nn,rn]=-1==St?[O.decodeKey(We),""]:[O.decodeKey(We.slice(0,St)),O.decodeValue(We.slice(St+1))],pr=re.get(nn)||[];pr.push(rn),re.set(nn,pr)}),re}(O.fromString,this.encoder)}else O.fromObject?(this.map=new Map,Object.keys(O.fromObject).forEach(re=>{const we=O.fromObject[re],We=Array.isArray(we)?we.map(It):[It(we)];this.map.set(re,We)})):this.map=null}has(O){return this.init(),this.map.has(O)}get(O){this.init();const re=this.map.get(O);return re?re[0]:null}getAll(O){return this.init(),this.map.get(O)||null}keys(){return this.init(),Array.from(this.map.keys())}append(O,re){return this.clone({param:O,value:re,op:"a"})}appendAll(O){const re=[];return Object.keys(O).forEach(we=>{const We=O[we];Array.isArray(We)?We.forEach(St=>{re.push({param:we,value:St,op:"a"})}):re.push({param:we,value:We,op:"a"})}),this.clone(re)}set(O,re){return this.clone({param:O,value:re,op:"s"})}delete(O,re){return this.clone({param:O,value:re,op:"d"})}toString(){return this.init(),this.keys().map(O=>{const re=this.encoder.encodeKey(O);return this.map.get(O).map(we=>re+"="+this.encoder.encodeValue(we)).join("&")}).filter(O=>""!==O).join("&")}clone(O){const re=new Te({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(O),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(O=>this.map.set(O,this.cloneFrom.map.get(O))),this.updates.forEach(O=>{switch(O.op){case"a":case"s":const re=("a"===O.op?this.map.get(O.param):void 0)||[];re.push(It(O.value)),this.map.set(O.param,re);break;case"d":if(void 0===O.value){this.map.delete(O.param);break}{let we=this.map.get(O.param)||[];const We=we.indexOf(It(O.value));-1!==We&&we.splice(We,1),we.length>0?this.map.set(O.param,we):this.map.delete(O.param)}}}),this.cloneFrom=this.updates=null)}}class _e{constructor(){this.map=new Map}set(O,re){return this.map.set(O,re),this}get(O){return this.map.has(O)||this.map.set(O,O.defaultValue()),this.map.get(O)}delete(O){return this.map.delete(O),this}has(O){return this.map.has(O)}keys(){return this.map.keys()}}function Le(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function Oe(M){return typeof Blob<"u"&&M instanceof Blob}function Ct(M){return typeof FormData<"u"&&M instanceof FormData}class Cn{constructor(O,re,we,We){var St,nn;let rn;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=O.toUpperCase(),function $e(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||We?(this.body=void 0!==we?we:null,rn=We):rn=we,rn&&(this.reportProgress=!!rn.reportProgress,this.withCredentials=!!rn.withCredentials,rn.responseType&&(this.responseType=rn.responseType),rn.headers&&(this.headers=rn.headers),rn.context&&(this.context=rn.context),rn.params&&(this.params=rn.params),this.transferCache=rn.transferCache),null!==(St=this.headers)&&void 0!==St||(this.headers=new Ye),null!==(nn=this.context)&&void 0!==nn||(this.context=new _e),this.params){const pr=this.params.toString();if(0===pr.length)this.urlWithParams=re;else{const qn=re.indexOf("?");this.urlWithParams=re+(-1===qn?"?":qner.set(Rr,O.setHeaders[Rr]),$r)),O.setParams&&(Pr=Object.keys(O.setParams).reduce((er,Rr)=>er.set(Rr,O.setParams[Rr]),Pr)),new Cn(nn,rn,Sr,{params:Pr,headers:$r,context:Nr,reportProgress:zr,responseType:pr,withCredentials:jn,transferCache:qn})}}var At=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(At||{});class st{constructor(O,re=G.Ok,we="OK"){this.headers=O.headers||new Ye,this.status=void 0!==O.status?O.status:re,this.statusText=O.statusText||we,this.url=O.url||null,this.ok=this.status>=200&&this.status<300}}class cn extends st{constructor(O={}){super(O),this.type=At.ResponseHeader}clone(O={}){return new cn({headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class vt extends st{constructor(O={}){super(O),this.type=At.Response,this.body=void 0!==O.body?O.body:null}clone(O={}){return new vt({body:void 0!==O.body?O.body:this.body,headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class Re extends st{constructor(O){super(O,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${O.url||"(unknown url)"}`:`Http failure response for ${O.url||"(unknown url)"}: ${O.status} ${O.statusText}`,this.error=O.error||null}}var G=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(G||{});function X(M,O){return{body:O,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let ce=(()=>{var M;class O{constructor(we){this.handler=we}request(we,We,St={}){let nn;if(we instanceof Cn)nn=we;else{let qn,Sr;qn=St.headers instanceof Ye?St.headers:new Ye(St.headers),St.params&&(Sr=St.params instanceof Te?St.params:new Te({fromObject:St.params})),nn=new Cn(we,We,void 0!==St.body?St.body:null,{headers:qn,context:St.context,params:Sr,reportProgress:St.reportProgress,responseType:St.responseType||"json",withCredentials:St.withCredentials,transferCache:St.transferCache})}const rn=(0,Z.of)(nn).pipe((0,he.H)(qn=>this.handler.handle(qn)));if(we instanceof Cn||"events"===St.observe)return rn;const pr=rn.pipe((0,ae.p)(qn=>qn instanceof vt));switch(St.observe||"body"){case"body":switch(nn.responseType){case"arraybuffer":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qn.body}));case"blob":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof Blob))throw new Error("Response is not a Blob.");return qn.body}));case"text":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&"string"!=typeof qn.body)throw new Error("Response is not a string.");return qn.body}));default:return pr.pipe((0,Xe.T)(qn=>qn.body))}case"response":return pr;default:throw new Error(`Unreachable: unhandled observe type ${St.observe}}`)}}delete(we,We={}){return this.request("DELETE",we,We)}get(we,We={}){return this.request("GET",we,We)}head(we,We={}){return this.request("HEAD",we,We)}jsonp(we,We){return this.request("JSONP",we,{params:(new Te).append(We,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(we,We={}){return this.request("OPTIONS",we,We)}patch(we,We,St={}){return this.request("PATCH",we,X(St,We))}post(we,We,St={}){return this.request("POST",we,X(St,We))}put(we,We,St={}){return this.request("PUT",we,X(St,We))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(et))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Je(M,O){return O(M)}function Sn(M,O){return(re,we)=>O.intercept(re,{handle:We=>M(We,we)})}const On=new c.nKC(""),or=new c.nKC(""),gr=new c.nKC(""),cr=new c.nKC("");function dr(){let M=null;return(O,re)=>{var we;null===M&&(M=(null!==(we=(0,c.WQX)(On,{optional:!0}))&&void 0!==we?we:[]).reduceRight(Sn,Je));const We=(0,c.WQX)(c.TgB),St=We.add();return M(O,re).pipe((0,tt.j)(()=>We.remove(St)))}}let Xt=(()=>{var M;class O extends et{constructor(we,We){super(),this.backend=we,this.injector=We,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const St=(0,c.WQX)(cr,{optional:!0});this.backend=null!=St?St:we}handle(we){if(null===this.chain){const St=Array.from(new Set([...this.injector.get(or),...this.injector.get(gr,[])]));this.chain=St.reduceRight((nn,rn)=>function kn(M,O,re){return(we,We)=>(0,c.N4e)(re,()=>O(we,St=>M(St,We)))}(nn,rn,this.injector),Je)}const We=this.pendingTasks.add();return this.chain(we,St=>this.backend.handle(St)).pipe((0,tt.j)(()=>this.pendingTasks.remove(We)))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(it),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Mr=/^\)\]\}',?\n/;let ii=(()=>{var M;class O{constructor(we){this.xhrFactory=we}handle(we){if("JSONP"===we.method)throw new c.wOt(-2800,!1);const We=this.xhrFactory;return(We.\u0275loadImpl?(0,$.H)(We.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new ke.c(nn=>{const rn=We.build();if(rn.open(we.method,we.urlWithParams),we.withCredentials&&(rn.withCredentials=!0),we.headers.forEach((er,Rr)=>rn.setRequestHeader(er,Rr.join(","))),we.headers.has("Accept")||rn.setRequestHeader("Accept","application/json, text/plain, */*"),!we.headers.has("Content-Type")){const er=we.detectContentTypeHeader();null!==er&&rn.setRequestHeader("Content-Type",er)}if(we.responseType){const er=we.responseType.toLowerCase();rn.responseType="json"!==er?er:"text"}const pr=we.serializeBody();let qn=null;const Sr=()=>{if(null!==qn)return qn;const er=rn.statusText||"OK",Rr=new Ye(rn.getAllResponseHeaders()),di=function sr(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(rn)||we.url;return qn=new cn({headers:Rr,status:rn.status,statusText:er,url:di}),qn},jn=()=>{let{headers:er,status:Rr,statusText:di,url:hi}=Sr(),Yr=null;Rr!==G.NoContent&&(Yr=typeof rn.response>"u"?rn.responseText:rn.response),0===Rr&&(Rr=Yr?G.Ok:0);let Hr=Rr>=200&&Rr<300;if("json"===we.responseType&&"string"==typeof Yr){const _i=Yr;Yr=Yr.replace(Mr,"");try{Yr=""!==Yr?JSON.parse(Yr):null}catch(tr){Yr=_i,Hr&&(Hr=!1,Yr={error:tr,text:Yr})}}Hr?(nn.next(new vt({body:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0})),nn.complete()):nn.error(new Re({error:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0}))},zr=er=>{const{url:Rr}=Sr(),di=new Re({error:er,status:rn.status||0,statusText:rn.statusText||"Unknown Error",url:Rr||void 0});nn.error(di)};let $r=!1;const Pr=er=>{$r||(nn.next(Sr()),$r=!0);let Rr={type:At.DownloadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),"text"===we.responseType&&rn.responseText&&(Rr.partialText=rn.responseText),nn.next(Rr)},Nr=er=>{let Rr={type:At.UploadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),nn.next(Rr)};return rn.addEventListener("load",jn),rn.addEventListener("error",zr),rn.addEventListener("timeout",zr),rn.addEventListener("abort",zr),we.reportProgress&&(rn.addEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.addEventListener("progress",Nr)),rn.send(pr),nn.next({type:At.Sent}),()=>{rn.removeEventListener("error",zr),rn.removeEventListener("abort",zr),rn.removeEventListener("load",jn),rn.removeEventListener("timeout",zr),we.reportProgress&&(rn.removeEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.removeEventListener("progress",Nr)),rn.readyState!==rn.DONE&&rn.abort()}})))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Tr=new c.nKC(""),Br=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class li{}let Di=(()=>{var M;class O{constructor(we,We,St){this.doc=we,this.platform=We,this.cookieName=St,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const we=this.doc.cookie||"";return we!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,be._b)(we,this.cookieName),this.lastCookieString=we),this.lastToken}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.qQ),c.KVO(c.Agw),c.KVO(Br))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Zr(M,O){const re=M.url.toLowerCase();if(!(0,c.WQX)(Tr)||"GET"===M.method||"HEAD"===M.method||re.startsWith("http://")||re.startsWith("https://"))return O(M);const we=(0,c.WQX)(li).getToken(),We=(0,c.WQX)(Lr);return null!=we&&!M.headers.has(We)&&(M=M.clone({headers:M.headers.set(We,we)})),O(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Nt(M,O){return{\u0275kind:M,\u0275providers:O}}function pt(...M){const O=[ce,ii,Xt,{provide:et,useExisting:Xt},{provide:it,useExisting:ii},{provide:or,useValue:Zr,multi:!0},{provide:Tr,useValue:!0},{provide:li,useClass:Di}];for(const re of M)O.push(...re.\u0275providers);return(0,c.EmA)(O)}const Ie=new c.nKC("");let Tn=(()=>{var M;class O{}return(M=O).\u0275fac=function(we){return new(we||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[pt(Nt(rt.LegacyInterceptors,[{provide:Ie,useFactory:dr},{provide:or,useExisting:Ie,multi:!0}]))]}),O})()},4438:(Pn,Et,C)=>{"use strict";C.d(Et,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>aD,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>ED,Ql9:()=>D1,Ocv:()=>O1,Z63:()=>Ao,aKT:()=>Ju,uvJ:()=>Qo,zcH:()=>tl,bkB:()=>Ks,$GK:()=>Pt,nKC:()=>We,zZn:()=>Ts,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>ji,Vns:()=>Io,SKi:()=>Bo,Xx1:()=>Gn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Zu,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>sc,kdw:()=>_r,C4Q:()=>ap,NYb:()=>_1,giA:()=>oD,xvI:()=>WR,RxE:()=>JT,c1b:()=>pd,gXe:()=>Zo,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>_s,oH4:()=>mD,QZP:()=>YD,SmG:()=>V1,Rfq:()=>Zr,WQX:()=>Fe,Hps:()=>Lm,QuC:()=>So,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>Co,vPA:()=>_d,O8t:()=>PM,H3F:()=>ZT,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>rD,e01:()=>iD,lNU:()=>dr,h9k:()=>$g,$MX:()=>qi,ZF7:()=>To,Kcf:()=>il,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Lt,mq5:()=>hC,JZv:()=>sr,LfX:()=>Gt,plB:()=>sl,jNT:()=>zE,zjR:()=>sD,TL$:()=>Dg,Tbb:()=>ar,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>ls,GFd:()=>ro,OA$:()=>fo,Jv_:()=>DT,aNF:()=>bT,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eT,VBU:()=>Ki,FsC:()=>Eo,jDH:()=>Ir,G2t:()=>vi,$C:()=>cs,EJ8:()=>ko,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>W,kS0:()=>jc,QTQ:()=>l0,bIt:()=>DE,lsd:()=>rT,qSk:()=>ef,XpG:()=>zC,nI1:()=>NT,bMT:()=>kT,i5U:()=>FT,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>ST,mGM:()=>nT,sdS:()=>iT,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>wc,eBV:()=>Md,npT:()=>pu,$dS:()=>fh,B4B:()=>ac,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>pT,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>CT,mxI:()=>PE,R50:()=>ME,GBs:()=>tT}),C(467);let Z=null,ke=!1,$=1;const he=Symbol("SIGNAL");function ae(e){const t=Z;return Z=e,t}const be={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 et(e){if(ke)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;$e(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Tt(e){$e(e);for(let t=0;t0}function $e(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function Le(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let cn=function st(){throw new Error};function vt(){cn()}let G=null;function Ee(e,t){mt()||vt(),e.equal(e.value,t)||(e.value=t,function fn(e){var t;e.version++,function it(){$++}(),at(e),null===(t=G)||void 0===t||t()}(e))}const ut={...be,equal:function c(e,t){return Object.is(e,t)},value:void 0};const un=()=>{},Je={...be,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:un};var kn=C(1413),On=C(8359),or=C(4412),gr=C(6354);const dr="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Lt(t,r)),this.code=t}}function Lt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function $n(e){return{toString:e}.toString()}const on="__parameters__";function rr(e,t,r){return $n(()=>{const o=function Vr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,U,Y){const me=A.hasOwnProperty(on)?A[on]:Object.defineProperty(A,on,{value:[]})[on];for(;me.length<=Y;)me.push(null);return(me[Y]=me[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const sr=globalThis;function yr(e){for(let t in e)if(e[t]===yr)return t;throw Error("Could not find renamed property on target object.")}function Br(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function ar(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ar).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Lr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Di=yr({__forward_ref__:yr});function Zr(e){return e.__forward_ref__=Zr,e.toString=function(){return ar(this())},e}function ve(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Di)&&e.__forward_ref__===Zr}function Ir(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vi(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ar(e){return ie(e,M)||ie(e,re)}function Gt(e){return null!==Ar(e)}function ie(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(O)||e.hasOwnProperty(we))?e[O]:null}const M=yr({\u0275prov:yr}),O=yr({\u0275inj:yr}),re=yr({ngInjectableDef:yr}),we=yr({ngInjectorDef:yr});class We{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Ir({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Nr(e){return e&&!!e.\u0275providers}const er=yr({\u0275cmp:yr}),Rr=yr({\u0275dir:yr}),di=yr({\u0275pipe:yr}),hi=yr({\u0275mod:yr}),Yr=yr({\u0275fac:yr}),Hr=yr({__NG_ELEMENT_ID__:yr}),_i=yr({__NG_ENV_ID__:yr});function tr(e){return"string"==typeof e?e:null==e?"":String(e)}function ui(e,t){throw new nt(-201,!1)}var Pt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Pt||{});let ge;function fe(){return ge}function K(e){const t=ge;return ge=e,t}function je(e,t,r){const o=Ar(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&Pt.Optional?null:void 0!==t?t:void ui()}const Kt={},Dn="__NG_DI_FLAG__",Hn="ngTempTokenPath",H=/\n/gm,P="__source";let Ce;function vr(e){const t=Ce;return Ce=e,t}function ai(e,t=Pt.Default){if(void 0===Ce)throw new nt(-203,!1);return null===Ce?je(e,void 0,t):Ce.get(e,t&Pt.Optional?null:void 0,t)}function W(e,t=Pt.Default){return(fe()||ai)(ve(e),t)}function Fe(e,t=Pt.Default){return W(e,ot(t))}function ot(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ot(e){const t=[];for(let r=0;rArray.isArray(r)?ki(r,t):t(r))}function Fi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function so(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function Oi(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ho(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&U!==me){if(se(o))return!1;g=!0}}}}else{if(!g&&!se(o)&&!se(A))return!1;if(g&&se(A))continue;g=!1,o=A|1&o}}return se(o)||g}function se(e){return!(1&e)}function z(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!se(g)&&(t+=Hi(d,a),a=""),o=g,d=d||!se(o);r++}return""!==a&&(t+=Hi(d,a)),t}function Ki(e){return $n(()=>{var t;const r=Ba(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||Zo.Emulated,styles:e.styles||Jr,_:null,schemas:e.schemas||null,tView:null,id:""};es(o);const a=e.dependencies;return o.directiveDefs=Ps(a,!1),o.pipeDefs=Ps(a,!0),o.id=function ei(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Qi(e){return jr(e)||Zi(e)}function qo(e){return null!==e}function cs(e){return $n(()=>({type:e.type,bootstrap:e.bootstrap||Jr,declarations:e.declarations||Jr,imports:e.imports||Jr,exports:e.exports||Jr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ys(e,t){if(null==e)return Uo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=ls.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==ls.None?[a,A]:a,t[g]=y):r[g]=a}return r}function Eo(e){return $n(()=>{const t=Ba(e);return es(t),t})}function ko(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jr(e){return e[er]||null}function Zi(e){return e[Rr]||null}function eo(e){return e[di]||null}function So(e){const t=jr(e)||Zi(e)||eo(e);return null!==t&&t.standalone}function Li(e,t){const r=e[hi]||null;if(!r&&!0===t)throw new Error(`Type ${ar(e)} does not have '\u0275mod' property.`);return r}function Ba(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Uo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Jr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ys(e.inputs,t),outputs:ys(e.outputs),debugInfo:null}}function es(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function Ps(e,t){if(!e)return null;const r=t?eo:Qi;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(qo)}function dl(e){return{\u0275providers:e}}function Zs(...e){return{\u0275providers:Ua(0,e),\u0275fromNgModule:!0}}function Ua(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return ki(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&xs(a,d),r}function xs(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=ve(e)))return!1;let a=null,d=ze(e);const g=!d&&jr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=ze(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const U of A)hl(U,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let U;o.add(a);try{ki(d.imports,Y=>{hl(Y,t,r,o)&&(U||(U=[]),U.push(Y))})}finally{}void 0!==U&&xs(U,t)}if(!y){const U=Qr(a)||(()=>new a);t({provide:a,useFactory:U,deps:Jr},a),t({provide:Ss,useValue:a,multi:!0},a),t({provide:Ao,useValue:()=>W(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const U=e;Ul(A,Y=>{t(Y,U)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Nr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=yr({provide:String,useValue:yr});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function ds(e){return"function"==typeof e}const zl=new We(""),hs={},Ru={};let Hl;function fs(){return void 0===Hl&&(Hl=new Us),Hl}class Qo{}class js extends Qo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ea(t,g=>this.processProvider(g)),this.records.set(Js,za(void 0,this)),a.has("environment")&&this.records.set(Qo,za(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Ss,Jr,Pt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ae(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ae(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=vr(this),o=K(void 0);try{return t()}finally{vr(r),K(o)}}get(t,r=Kt,o=Pt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(_i))return t[_i](this);o=ot(o);const d=vr(this),g=K(void 0);try{if(!(o&Pt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const U=function Aa(e){return"function"==typeof e||"object"==typeof e&&e instanceof We}(t)&&Ar(t);A=U&&this.injectableDefInScope(U)?za(Yi(t),hs):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&Pt.Self?fs():this.parent).get(t,r=o&Pt.Optional&&r===Kt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Hn]=y[Hn]||[]).unshift(ar(t)),d)throw y;return function pn(e,t,r,o){const a=e[Hn];throw t[P]&&a.unshift(t[P]),e.message=function vn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=ar(t);if(Array.isArray(t))a=t.map(ar).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):ar(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Hn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{K(g),vr(d)}}resolveInjectorInitializers(){const t=ae(null),r=vr(this),o=K(void 0);try{const d=this.get(Ao,Jr,Pt.Self);for(const g of d)g()}finally{vr(r),K(o),ae(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(ar(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=ds(t=ve(t))?t:ve(t&&t.provide);const o=function ja(e){return jl(e)?za(void 0,e.useValue):za(Ea(e),hs)}(t);if(!ds(t)&&!0===t.multi){let a=this.records.get(r);a||(a=za(void 0,hs,!0),a.factory=()=>Ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=ae(null);try{return r.value===hs&&(r.value=Ru,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Ia(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{ae(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=ve(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Yi(e){const t=Ar(e),r=null!==t?t.factory:Qr(e);if(null!==r)return r;if(e instanceof We)throw new nt(204,!1);if(e instanceof Function)return function ya(e){if(e.length>0)throw new nt(204,!1);const r=function te(e){return e&&(e[M]||e[re])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function Ea(e,t,r){let o;if(ds(e)){const a=ve(e);return Qr(a)||Yi(a)}if(jl(e))o=()=>ve(e.useValue);else if(function $s(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...Ot(e.deps||[]));else if(function Os(e){return!(!e||!e.useExisting)}(e))o=()=>W(ve(e.useExisting));else{const a=ve(e&&(e.useClass||e.provide));if(!function ts(e){return!!e.deps}(e))return Qr(a)||Yi(a);o=()=>new a(...Ot(e.deps))}return o}function za(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function ea(e,t){for(const r of e)Array.isArray(r)?ea(r,t):r&&Nr(r)?ea(r.\u0275providers,t):t(r)}function Co(e,t){e instanceof js&&e.assertNotDestroyed();const o=vr(e),a=K(void 0);try{return t()}finally{vr(o),K(a)}}function Gl(){return void 0!==fe()||null!=function dt(){return Ce}()}function Ca(e){if(!Gl())throw new nt(-203,!1)}const wi=0,Bn=1,ir=2,Ni=3,lo=4,Vi=5,uo=6,ns=7,Si=8,io=9,zs=10,qr=11,ta=12,_c=13,fl=14,no=15,Fo=16,ks=17,rs=18,na=19,yc=20,Ui=21,ra=22,Es=23,ti=25,Ta=1,is=7,Da=9,oo=10;var Mu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Mu||{});function Ai(e){return Array.isArray(e)&&"object"==typeof e[Ta]}function Lo(e){return Array.isArray(e)&&!0===e[Ta]}function Wl(e){return!!(4&e.flags)}function gs(e){return e.componentOffset>-1}function ia(e){return!(1&~e.flags)}function Is(e){return!!e.template}function Kl(e){return!!(512&e[ir])}class Ji{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Ri(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function fo(){return oa}function oa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ka),Wa}function Wa(){const e=As(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Uo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ka(e,t,r,o,a){const d=this.declaredInputs[o],g=As(e)||function Ra(e,t){return e[Hs]=t}(e,{previous:Uo,current:null}),y=g.current||(g.current={}),A=g.previous,U=A[d];y[d]=new Ji(U&&U.currentValue,r,A===Uo),Ri(e,t,a,r)}fo.ngInherit=!0;const Hs="__ngSimpleChanges__";function As(e){return e[Hs]||null}const Fs=function(e,t,r){},ng="svg";let xu=!1;function $i(e){for(;Array.isArray(e);)e=e[wi];return e}function qa(e,t){return $i(t[e])}function ms(e,t){return $i(t[e.index])}function Ql(e,t){return e.data[t]}function Cs(e,t){return e[t]}function $o(e,t){const r=t[e];return Ai(r)?r:r[wi]}function Ac(e){return!(128&~e[ir])}function Ls(e,t){return null==t?null:e[t]}function Tc(e){e[ks]=0}function Sd(e){1024&e[ir]||(e[ir]|=1024,Ac(e)&&Gs(e))}function Yl(e){var t;return!!(9216&e[ir]||null!==(t=e[Es])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Gs(e);else if(64&e[ir])if(function Ma(){return xu}())e[ir]|=1024,Gs(e);else{var r;null===(r=e[zs].changeDetectionScheduler)||void 0===r||r.notify()}}function Gs(e){var t;null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify();let r=sa(e);for(;null!==r&&!(8192&r[ir])&&(r[ir]|=8192,Ac(r));)r=sa(r)}function Qa(e,t){if(!(256&~e[ir]))throw new nt(911,!1);null===e[Ui]&&(e[Ui]=[]),e[Ui].push(t)}function sa(e){const t=e[Ni];return Lo(t)?t[Ni]:t}const Dr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pa(){return Dr.bindingsEnabled}function Zl(){return null!==Dr.skipHydrationRootTNode}function mn(){return Dr.lFrame.lView}function Mi(){return Dr.lFrame.tView}function Md(e){return Dr.lFrame.contextLView=e,e[Si]}function wc(e){return Dr.lFrame.contextLView=null,e}function Xi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return Dr.lFrame.currentTNode}function ua(e,t){const r=Dr.lFrame;r.currentTNode=e,r.isParent=t}function Nu(){return Dr.lFrame.isParent}function ku(){Dr.lFrame.isParent=!1}function Ro(){const e=Dr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vs(){return Dr.lFrame.bindingIndex++}function ha(e){const t=Dr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=Dr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){Dr.lFrame.currentDirectiveIndex=e}function Nd(){return Dr.lFrame.currentQueryIndex}function Mc(e){Dr.lFrame.currentQueryIndex=e}function Pc(e){const t=e[Bn];return 2===t.type?t.declTNode:1===t.type?e[Vi]:null}function Jh(e,t,r){if(r&Pt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&Pt.Host||(a=Pc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=Dr.lFrame=Lu();return o.currentTNode=t,o.lView=e,!0}function xa(e){const t=Lu(),r=e[Bn];Dr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Lu(){const e=Dr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function kd(){const e=Dr.lFrame;return Dr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xc=kd;function Vu(){const e=kd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Mo(){return Dr.lFrame.selectedIndex}function Oa(e){Dr.lFrame.selectedIndex=e}function Gi(){const e=Dr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){Dr.lFrame.currentNamespace=ng}let Uu=!0;function $u(){return Uu}function Ws(e){Uu=e}function ju(e,t){for(let U=t.directiveStart,Y=t.directiveEnd;U=o)break}else t[A]<0&&(e[ks]+=65536),(y>14>16&&(3&e[ir])===t&&(e[ir]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Na(e){return 32767&e}function Tl(e,t){let r=function Lc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let Hu=!0;function eu(e){const t=Hu;return Hu=e,t}const lf=255,Bd=5;let Vc=0;const Bs={};function Gu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Bn];o.firstCreatePass&&(e.injectorIndex=t.length,jo(o.data,e),jo(t,null),jo(o.blueprint,null));const a=Ja(e,t),d=e.injectorIndex;if(Cl(a)){const g=Na(a),y=Tl(a,t),A=y[Bn].data;for(let U=0;U<8;U++)t[d+U]=y[g+U]|A[g+U]}return t[d+8]=a,d}function jo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ja(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=el(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Dl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(o=r[Hr]),null==o&&(o=r[Hr]=Vc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&Pt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&Pt.Optional)return g;ui()}finally{xc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,U=o&Pt.Host?t[no][Vi]:null;for((-1===y||o&Pt.SkipSelf)&&(A=-1===y?Ja(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Bn],y=Na(A),t=Tl(A,t)):y=-1);-1!==y;){const Y=t[Bn];if($c(d,y,Y.data)){const me=lg(y,t,r,g,o,U);if(me!==Bs)return me}A=t[y+8],A!==Il&&nu(o,t[Bn].data[y+8]===U)&&$c(d,y,t)?(g=Y,y=Na(A),t=Tl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Bn],y=g.data[e+8],Y=jd(y,g,r,null==o?gs(y)&&Hu:o!=g&&!!(3&y.type),a&Pt.Host&&d===y);return null!==Y?bl(t,g,Y,y):Bs}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,Ke=a?y+Y:e.directiveEnd;for(let _t=o?y:y+Y;_t=A&&jt.type===r)return _t}if(a){const _t=g[A];if(_t&&Is(_t)&&_t.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function yi(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Zn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const U=g.injectImpl?K(g.injectImpl):null;Jh(e,o,Pt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const me=oa(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,me),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,me)}var A,U,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(U=r.preOrderHooks)&&void 0!==U?U:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==U&&K(U),eu(y),g.resolving=!1,xc()}}return a}function $c(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[Yr]||Wu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[Yr]||Wu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Wu(e){return rt(e)?()=>{const t=Wu(ve(e));return t&&t()}:Qr(e)}function el(e){const t=e[Bn],r=t.type;return 2===r?t.declTNode:1===r?e[Vi]:null}function jc(e){return function Bc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=Kt,e.NULL=new Us,e.\u0275prov=Ir({token:e,providedIn:"any",factory:()=>W(Js)}),e.__NG_ELEMENT_ID__=-1,t})();function Hc(e){return e.ngOriginalError}class tl{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Hc(t);for(;r&&Hc(r);)r=Hc(r);return r||null}}const Gd=new We("",{providedIn:"root",factory:()=>Fe(tl).handleError.bind(void 0)});let qu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends qu{constructor(t){super(),this._lView=t}onDestroy(t){return Qa(this._lView,t),()=>function Jl(e,t){if(null===e[Ui])return;const r=e[Ui].indexOf(t);-1!==r&&e[Ui].splice(r,1)}(this._lView,t)}}function hg(){return new If(mn())}function Yu(){return ga(Xi(),mn())}function ga(e,t){return new Ju(ms(e,t))}let Ju=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Yu,t})();function iu(e){return e instanceof Ju?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Ks=class pv extends kn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Fe(qu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=ae(null);try{super.next(t)}finally{ae(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,U;const me=t;a=null===(y=me.next)||void 0===y?void 0:y.bind(me),d=null===(A=me.error)||void 0===A?void 0:A.bind(me),g=null===(U=me.complete)||void 0===U?void 0:U.bind(me)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof On.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Zu{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Ks}constructor(t=!1){this._emitDistinctChangesOnly=t,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;const r=Zu.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function kr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Wr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new We(""),eh=new We("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new We("",{providedIn:"root",factory:()=>{var e;return(null===(e=lu().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Tv=()=>null;function oh(e,t,r=!1){return Tv(e,t,r)}const Ng=new We("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Yc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,sr.trustedTypes))try{Lf=sr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Vf(){if(void 0===uh&&(uh=null,sr.trustedTypes))try{uh=sr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}function Bf(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dr})`}}class Uf extends du{getTypeName(){return"HTML"}}class Pi extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function To(e,t){const r=function Po(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${dr})`)}return r===t}function il(e){return new Uf(e)}function Py(e){return new Pi(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Yc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Yc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const _o=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(_o,dh(Bg,hu("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")),dh(Ny,hu("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")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("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"),hu("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")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=oc(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!_o.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function oc(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Jc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Jc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Yc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Yc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var sc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(sc||{});function pu(e){const t=ka();return t?Bf(t.sanitize(sc.HTML,e)||""):To(e,"HTML")?Bf(Rl(e)):$g(lu(),tr(e))}function fh(e){const t=ka();return t?t.sanitize(sc.STYLE,e)||"":To(e,"Style")?Rl(e):tr(e)}function ac(e){const t=ka();return t?t.sanitize(sc.URL,e)||"":To(e,"URL")?Rl(e):qi(tr(e))}function jg(e){const t=ka();if(t)return Fg(t.sanitize(sc.RESOURCE_URL,e)||"");if(To(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:ac}(t,r)(e)}function ka(){const e=mn();return e&&e[zs].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function va(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Lo(o)?d=o:Ai(o)&&(g=!0,o=o[wi]);const y=$i(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[is];d!==$i(r)&&vh(t,e,o,d,a);for(let y=oo;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[zs].changeDetectionScheduler)||void 0===r||r.notify(1),Fa(e,t,t[qr],2,null,null)}function Gv(e,t){const r=e[Da],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=oo)return;const r=oo+t,o=e[r];if(o){const a=o[Fo];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][lo]=o[lo]);const d=Bi(e,oo+t);!function qy(e,t){Hv(e,t),t[wi]=null,t[Vi]=null}(o[Bn],o);const g=d[rs];null!==g&&g.detachView(d[Bn]),o[Ni]=null,o[lo]=null,o[ir]&=-129}return o}function Zg(e,t){if(!(256&t[ir])){const r=t[qr];r.destroyNode&&Fa(e,t,r,3,null,null),function gu(e){let t=e[ta];if(!t)return em(e[Bn],e);for(;t;){let r=null;if(Ai(t))r=t[ta];else{const o=t[oo];o&&(r=o)}if(!r){for(;t&&!t[lo]&&t!==e;)Ai(t)&&em(t[Bn],t),t=t[Ni];null===t&&(t=e),Ai(t)&&em(t[Bn],t),r=t&&t[lo]}t=r}}(t)}}function em(e,t){if(256&t[ir])return;const r=ae(null);try{t[ir]&=-129,t[ir]|=256,t[Es]&&It(t[Es]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[ns]=null);const a=t[Ui];if(null!==a){t[Ui]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===Zo.None||d===Zo.Emulated)return null}return ms(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?ms(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[qr],y=Kv(o.parent||t[Vi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;Ati&&im(e,t,ti,!1),Fs(g?2:0,a),r(o,a)}finally{Oa(d),Fs(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=ae(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,U=ls.None;Array.isArray(y)?(A=y[0],U=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,U):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Xs(e,t,r,o,a,d,g,y){const A=ms(t,r);let Y,U=t.inputs;!y&&null!=U&&(Y=U[o])?(i_(e,r,Y,o,a),gs(t)&&function wI(e,t){const r=$o(t,e);16&r[ir]||(r[ir]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(Pa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ci),a)}function Ol(e,t,r,o,a,d){const g=ms(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?tr(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[qr],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][lo]=t),o{Gs(e.lView)},consumerOnSignalRead(){this.lView[Es]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[zs],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(U){throw t&&um(e,U),U}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[ir];if(!(256&~d))return;null===(a=t[zs].inlineEffectRunner)||void 0===a||a.flush(),xa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[Es])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=Dt(A));try{Tc(t),function Sc(e){return Dr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const U=!(3&~d);if(U){const Ke=e.preOrderCheckHooks;null!==Ke&&Oc(t,Ke,null)}else{const Ke=e.preOrderHooks;null!==Ke&&fa(t,Ke,0,null),pa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[ir]&Mu.HasTransplantedViews))continue;const r=t[Da];for(let o=0;o-1&&(qf(t,o),Bi(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Bn],this._lView)}onDestroy(t){Qa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-129}reattach(){ml(this._lView),this._lView[ir]|=128}detectChanges(){this._lView[ir]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Bn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Xi(),mn())}function fm(e,t){return 4&e.type?new YI(t,e,ga(e,t)):null}let gm=()=>null;function xo(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Th(e){const t=Error(`No component factory found for ${ar(e)}.`);return t.ngComponent=e,t}(t)}}let hc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=mn(),r=$o(Xi().index,e);return(Ai(r)?r:e)[qr]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function La(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class Bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ks(!1),this.onMicrotaskEmpty=new Ks(!1),this.onStable=new Ks(!1),this.onError=new Ks(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof sr.requestAnimationFrame;let t=sr[e?"requestAnimationFrame":"setTimeout"],r=sr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function vs(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(sr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,os(e),e.isCheckStableRunning=!0,Dh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),os(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Tm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Tm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,os(e),Dh(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(Bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Dh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function os(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tm(e){e._nesting--,Dh(e)}class Dm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ks,this.onMicrotaskEmpty=new Ks,this.onStable=new Ks,this.onError=new Ks}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var _u=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(_u||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&Ca();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts);if(!function ol(e){return"browser"===(null!=e?e:Fe(Ts)).get(eh)}(d))return bm;La("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:_u.MixedReadWrite,U=()=>{y.unregister(me),Y()},Y=d.get(qu).onDestroy(U),me=Co(d,()=>new dp(A,()=>{U(),e()}));return y.register(me),{destroy:U}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Fe(Bo),this.errorHandler=Fe(tl,{optional:!0}),null===(o=Fe(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[_u.EarlyRead]:new Set,[_u.Write]:new Set,[_u.MixedReadWrite]:new Set,[_u.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new e}),t})();function sl(e){return!!Li(e)}function Eu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(ln,Bl,Un,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Xi(),mn())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new po(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ja(this._hostTNode,this._hostLView);if(Cl(t)){const r=Tl(t,this._hostLView),o=Na(t);return new po(r[Bn].data[o+8],r)}return new po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-oo}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=xo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const U=t&&!function tn(e){return"function"==typeof e}(t);let Y;if(U)Y=r;else{const Un=r||{};Y=Un.index,o=Un.injector,a=Un.projectableNodes,d=Un.environmentInjector||Un.ngModuleRef}const me=U?t:new Rh(jr(t)),Ke=o||this.parentInjector;if(!d&&null==me.ngModule){const _n=(U?Ke:this.parentInjector).get(Qo,null);_n&&(d=_n)}const _t=jr(null!==(g=me.componentType)&&void 0!==g?g:{}),jt=xo(this._lContainer,null!==(y=null==_t?void 0:_t.id)&&void 0!==y?y:null),ln=null!==(A=null==jt?void 0:jt.firstChild)&&void 0!==A?A:null,Nn=me.create(Ke,a,ln,d);return this.insertImpl(Nn.hostView,Y,Ih(this._hostTNode,jt)),Nn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Cc(e){return Lo(e[Ni])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Ni],U=new E_(A,A[Vi],A[Ni]);U.detach(U.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Fi(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(Bi(vp(this._lContainer),r),Zg(o[Bn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=Bi(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Lo(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Au(r,t,e,o),new E_(r,e,t)}let Au=function Pm(e,t,r,o){if(e[is])return;let a;a=8&r.type?$i(o):function Ph(e,t){const r=e[qr],o=r.createComment(""),a=ms(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[is]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const U=d[y+1],Y=t[-A];for(let me=oo;me(et(t),t.value);return r[he]=t,r}(e),o=r[he];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>Ee(o,a),r.update=a=>function Ve(e,t){mt()||vt(),Ee(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[he];if(void 0===e.readonlyFn){const t=()=>this();t[he]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Tu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(Is(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,U=a.contentQueries;if(A&&Sp(e,A),U&&qs(e,U),k_(e,a),Br(e.outputs,a.outputs),Is(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=ee(a.hostAttrs,r=ee(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===Uo?{}:e===Jr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function qs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ro(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class Io{}class ji{}function _s(e,t){return new Du(e,null!=t?t:null,[])}class Du extends Io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=Li(t);this._bootstrapComponents=va(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver},...o],ar(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Qs extends ji{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends Io{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new js([...t.providers,{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver}],t.parent||fs(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new or.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bu(e,t,r){return e[t]=r}function zo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=zo(e,t,r);return zo(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=mn(),U=Mi(),Y=e+ti,me=U.firstCreatePass?function mb(e,t,r,o,a,d,g,y,A){const U=t.consts,Y=cc(t,e,4,g||null,Ls(U,y));t_(t,r,Y,Ls(U,A)),ju(t,Y);const me=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,U,null);return null!==t.queries&&(t.queries.template(t,Y),me.queries=t.queries.embeddedTView(Y)),Y}(Y,U,A,t,r,o,a,d,g):U.data[Y];ua(me,!1);const Ke=uA(U,A,me,e);$u()&&tm(U,A,Ke,me),go(Ke,A);const _t=E0(Ke,A,Ke,me);return A[Y]=_t,am(A,_t),function I_(e,t,r){return xh(e,t,r)}(_t,me,A),ia(me)&&yh(U,A,me),null!=g&&ad(A,me,y),xp}let uA=function cA(e,t,r,o){return Ws(!0),t[qr].createComment("")};function aE(e,t,r,o){const a=mn();return zo(a,Vs(),t)&&(Mi(),Ol(Gi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return zo(e,Vs(),r)?t+tr(r)+o:ci}function $p(e,t,r,o,a,d){const y=$h(e,function da(){return Dr.lFrame.bindingIndex}(),r,a);return ha(2),y?t+tr(r)+o+tr(a)+d:ci}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const U=e[g+1];nw(e[g],t)&&(y=!0,e[g+1]=o?cE(U):lE(U)),g=o?Ad(U):zh(U)}y&&(e[r+1]=o?lE(a):cE(a))}function nw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function dE(e,t,r){const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=mn(),d=Mi(),g=ha(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[Mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function dw(e,t,r,o){const a=function Fu(e){const t=Dr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function hw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function fw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function pw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(U=!0)):Y=r,a)if(0!==A){const Ke=Ad(e[y+1]);e[o+1]=K_(Ke,y),0!==Ke&&(e[Ke+1]=uE(e[Ke+1],o)),e[y+1]=function Jb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;U&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function tw(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ci&&zo(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,U=A[y+1],Y=function Zb(e){return!(1&~e)}(U)?JA(A,t,r,a,zh(U),g):void 0;X_(Y)||(X_(d)||function Yb(e){return!(2&~e)}(U)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,qa(Mo(),r),a,d))}(d,d.data[Mo()],a,a[qr],e,a[g+1]=function _w(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ar(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],U=Array.isArray(A),Y=U?A[1]:A,me=null===Y;let Ke=r[a+1];Ke===ci&&(Ke=me?Jr:void 0);let _t=me?Ko(Ke,o):Y===o?Ke:void 0;if(U&&!X_(_t)&&(_t=Ko(A,o)),X_(_t)&&(y=_t,g))return y;const jt=e[a+1];a=g?Ad(jt):zh(jt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function X_(e){return void 0!==e}class Rw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){La("NgControlFlow");const o=mn(),a=Vs(),d=_E(o,ti+e);if(zo(o,a,t)){const y=ae(null);try{if(dm(d,0),-1!==t){const A=yE(o[Bn],ti+t),U=xo(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:U}),0,Ih(A,U))}}finally{ae(y)}}else{const y=o_(d,0);void 0!==y&&(y[Si]=r)}}class Pw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-oo}}function iC(e,t){return t}class Ow{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,U,Y,me,Ke){La("NgControlFlow");const _t=void 0!==A,jt=mn(),ln=y?g.bind(jt[no][Si]):g,Nn=new Ow(_t,ln);jt[ti+e]=Nn,xp(e+1,t,r,o,a,d),_t&&xp(e+2,A,U,Y,me,Ke)}class Nw extends Rw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-oo}at(t){return this.getLView(t)[Si].$implicit}attach(t,r){const o=r[uo];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function kw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=xo(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Pw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Bn],t)}updateValue(t,r){this.getLView(t)[Si].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Ke)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=Vs(),A=0===g.length;if(zo(o,y,A)){const U=r+2,Y=_E(o,U);if(A){const me=yE(a,U),Ke=xo(Y,me.tView.ssrId);rp(Y,np(o,me,void 0,{dehydratedView:Ke}),0,Ih(me,Ke))}else dm(Y,0)}}}finally{ae(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=mn(),d=Mi(),g=ti+e,y=a[qr],A=d.firstCreatePass?function Lw(e,t,r,o,a,d){const g=t.consts,A=cc(t,e,2,o,Ls(g,a));return t_(t,r,A,Ls(g,d)),null!==A.attrs&&Eu(A,A.attrs,!1),null!==A.mergedAttrs&&Eu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],U=aC(d,a,A,y,t,e);a[g]=U;const Y=ia(A);return ua(A,!0),s0(y,U,A),!function Km(e){return!(32&~e.flags)}(A)&&$u()&&tm(d,a,U,A),0===function Dc(){return Dr.lFrame.elementDepthCount}()&&go(U,a),function bc(){Dr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Xi();Nu()?ku():(e=e.parent,ua(e,!1));const t=e;(function _l(e){return Dr.skipHydrationRootTNode===e})(t)&&function Ya(){Dr.skipHydrationRootTNode=null}(),function aa(){Dr.lFrame.elementDepthCount--}();const r=Mi();return r.firstCreatePass&&(ju(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function zu(e){return!!(8&e.flags)}(t)&&hE(r,t,mn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,mn(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Ws(!0),xl(o,a,function Fd(){return Dr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=mn(),a=Mi(),d=e+ti,g=a.firstCreatePass?function Uw(e,t,r,o,a){const d=t.consts,g=Ls(d,o),y=cc(t,e,8,"ng-container",g);return null!==g&&Eu(y,g,!0),t_(t,r,y,Ls(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];ua(g,!0);const y=lC(a,o,g,e);return o[d]=y,$u()&&tm(a,o,y,g),go(y,o),ia(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Xi();const t=Mi();return Nu()?ku():(e=e.parent,ua(e,!1)),t.firstCreatePass&&(ju(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Ws(!0),rd(t[qr],""));function uC(){return mn()}const Hh=void 0;var Hw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Gw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return Hw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=sr.ng&&sr.ng.common&&sr.ng.common.locales&&sr.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function DE(e,t,r,o){const a=mn(),d=Mi(),g=Xi();return bE(d,a,a[qr],g,e,t,o),DE}function bE(e,t,r,o,a,d,g){const y=ia(o),U=e.firstCreatePass&&C0(e),Y=t[Si],me=A0(t);let Ke=!0;if(3&o.type||g){const ln=ms(o,t),Nn=g?g(ln):ln,Un=me.length,_n=g?mi=>g($i(mi[o.index])):o.index;let ni=null;if(!g&&y&&(ni=function $S(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==ni)(ni.__ngLastListenerFn__||ni).__ngNextListenerFn__=d,ni.__ngLastListenerFn__=d,Ke=!1;else{d=jC(o,t,Y,d,!1);const mi=r.listen(Nn,a,d);me.push(d,mi),U&&U.push(a,_n,Un,Un+1)}}else d=jC(o,t,Y,d,!1);const _t=o.outputs;let jt;if(Ke&&null!==_t&&(jt=_t[a])){const ln=jt.length;if(ln)for(let Nn=0;Nn-1?$o(e.index,t):t);let A=$C(t,r,o,g),U=d.__ngNextListenerFn__;for(;U;)A=$C(t,r,U,g)&&A,U=U.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Bu(e){return(Dr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,Dr.lFrame.contextLView))[Si]}(e)}function jS(e,t){let r=null;const o=function an(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ws(!0),function Pl(e,t){return e.createText(t)}(t[qr],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=mn(),a=Up(o,e,t,r);return a!==ci&&mu(o,Mo(),a),iy}function RE(e,t,r,o,a){const d=mn(),g=$p(d,e,t,r,o,a);return g!==ci&&mu(d,Mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),ME}function CT(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=mn(),o=Mi(),a=Xi();return bE(o,r,r[qr],a,e,t),PE}function xE(e,t,r,o,a){if(e=ve(e),Array.isArray(e))for(let d=0;d>20;if(ds(e)||!e.multi){const _t=new Al(U,a,sd),jt=NE(A,t,a?Y:Y+Ke,me);-1===jt?(Dl(Gu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(_t),g.push(_t)):(r[jt]=_t,g[jt]=_t)}else{const _t=NE(A,t,Y+Ke,me),jt=NE(A,t,Y,Y+Ke),Nn=jt>=0&&r[jt];if(a&&!Nn||!a&&!(_t>=0&&r[_t])){Dl(Gu(y,g),d,A);const Un=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,TT(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,U);!a&&Nn&&(r[jt].providerFactory=Un),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Un),g.push(Un)}else OE(d,e,_t>-1?_t:jt,TT(r[a?jt:_t],U,!a&&o));!a&&o&&Nn&&r[jt].componentProviders++}}}function OE(e,t,r,o){const a=ds(t),d=function Ns(e){return!!e.useClass}(t);if(a||d){const A=(d?ve(t.useClass):t).prototype.ngOnDestroy;if(A){const U=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=U.indexOf(r);-1===Y?U.push(r,[o,A]):U[Y+1].push(o,A)}else U.push(r,A)}}}function TT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Mi();if(o.firstCreatePass){const a=Is(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Ua(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Ir({token:e,providedIn:"environment",factory:()=>new e(W(Qo))}),t})();function bT(e){La("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function ST(e,t,r){const o=Ro()+e,a=mn();return a[o]===ci?bu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ci?void 0:r}function NT(e,t){const r=Mi();let o;const a=e+ti;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=Qr(o.type)),A=K(sd);try{const U=eu(!1),Y=g();return eu(U),function WS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,mn(),a,Y),Y}finally{K(A)}}function kT(e,t,r){const o=e+ti,a=mn(),d=Cs(a,o);return ov(a,o)?function RT(e,t,r,o,a,d){const g=t+r;return zo(e,g,a)?bu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,Ro(),t,d.transform,r,d):d.transform(r)}function FT(e,t,r,o){const a=e+ti,d=mn(),g=Cs(d,a);return ov(d,a)?function MT(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?bu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,Ro(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Bn].data[t].pure}class JT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new JT("17.3.10");let ZT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const rD=new We(""),iD=new We("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.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:()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Bo),W(oD),W(iD))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac}),t})(),oD=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function sD(e){return!!e&&"function"==typeof e.subscribe}const aD=new We("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Fe(aD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(sD(g)){const y=new Promise((A,U)=>{g.subscribe({complete:A,error:U})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new We("");function cD(e,t){return Array.isArray(t)?t.reduce(cD,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Fe(Gd),this.afterRenderEffectManager=Fe(ud),this.externalTestViews=new Set,this.beforeRender=new kn.B,this.afterTick=new kn.B,this.componentTypes=[],this.components=[],this.isStable=Fe(Pp).hasPendingTasks.pipe((0,gr.T)(o=>!o)),this._injector=Fe(Qo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&So(o),new nt(405,!1);let y;y=d?o:this._injector.get(hc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(Io),Y=y.create(Ts.NULL,[],a||y.selector,A),me=Y.location.nativeElement,Ke=Y.injector.get(rD,null);return null==Ke||Ke.registerApplication(me),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==Ke||Ke.unregisterApplication(me)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=ae(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,ae(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[ir]|=1024):o=64&e[ir]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class T1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let D1=(()=>{var e;class t{compileModuleSync(o){return new Qs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=va(Li(o).declarations).reduce((y,A)=>{const U=jr(A);return U&&y.push(new Rh(U)),y},[]);return new T1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Fe(Bo),this.applicationRef=Fe(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Fe(Bo),t=Fe(tl);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new On.yU,this.initialized=!1,this.zone=Fe(Bo),this.pendingTasks=Fe(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new We("",{providedIn:"root",factory:()=>Fe(uy,Pt.Optional|Pt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new We("",{providedIn:"root",factory:()=>"USD"}),KE=new We("");let pD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Dm:"zone.js"===e?new Bo(t):e}(null==a?void 0:a.ngZone,function fD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function hD(e){return[{provide:Bo,useFactory:e},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(S1,{optional:!0});return()=>t.initialize()}},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(tl,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:U=>{y.handleError(U)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function uD(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=cD({},a);return function w1(e,t,r){const o=new Qs(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Ts))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Td=null;const gD=new We("");function mD(e,t,r=[]){const o=`Platform: ${t}`,a=new We(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(gD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Td&&!Td.get(gD,!1))throw new nt(400,!1);(function lD(){!function Re(e){cn=e}(()=>{throw new nt(600,!1)})})(),Td=e;const t=e.get(pD);(function _D(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function vD(e=[],t){return Ts.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Td=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Td)||void 0===t?void 0:t.get(pD))&&void 0!==e?e:null}function V1(){}let ED=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(gs(e)&&!r){const o=$o(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[no],t):null}(Xi(),mn(),!(16&~e))}class TD{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bD(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function SD(){return new ZE([new TD])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||SD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:SD}),t})();function RD(){return new eI([new wD])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||RD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:RD}),t})();const J1=mD(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Cd))},e.\u0275mod=cs({type:e}),e.\u0275inj=vi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=ae(null);try{return e()}finally{ae(t)}}const xM=new We("",{providedIn:"root",factory:()=>Fe(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Fe(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function xn(e,t,r){const o=Object.create(Je);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>xt(o),run:()=>{if(null===o.fn)return;if(function tt(){return ke}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Tt(o))return;o.hasRun=!0;const A=Dt(o);try{o.cleanupFn(),o.cleanupFn=un,o.fn(a)}finally{zt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(It(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=un)}(o),[he]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(tl,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function YD(e,t){var r,o;La("NgSignals"),(null==t||!t.injector)&&Ca();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(qu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(ED,null,{optional:!0});var A,U;return y&&8&y._lView[ir]?(null!==(U=(A=y._lView)[ra])&&void 0!==U?U:A[ra]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=jr(e),o=t.elementInjector||fs();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=jr(e);if(!t)return null;const r=new Rh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Pn,Et,C)=>{"use strict";C.d(Et,{MW:()=>it,Wp:()=>xt,XU:()=>ke,gL:()=>$});var h=C(2214),c=C(4438),Z=C(5407);class ke{constructor(Ze){return Ze}}class ${constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),tt={provide:ke,useFactory:function ae(Te){return Te&&1===Te.length?Te[0]:new ke((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:$,deps:[[new c.Xx1,Xe]]};function be(Te){return(Ze,_e)=>{const $e=_e.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,$e.toString());const Le=Ze.runOutsideAngular(()=>Te(_e));return new ke(Le)}}function it(Te,...Ze){return(0,c.EmA)([tt,Se,{provide:Xe,useFactory:be(Te),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ze]}])}const xt=(0,Z.S3)(h.Wp,!0)},8737:(Pn,Et,C)=>{"use strict";C.d(Et,{Nj:()=>Ja,DF:()=>Dl,eJ:()=>Wu,xI:()=>ug,_q:()=>bl,x9:()=>Qu,kQ:()=>$c});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1076),Xe=C(8041),tt=C(1635),Se=C(1362);const zt=function xt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Tt=new ae.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Te=new Xe.Vy("@firebase/auth");function _e(I,...f){Te.logLevel<=Xe.$b.ERROR&&Te.error(`Auth (${he.MF}): ${I}`,...f)}function $e(I,...f){throw Cn(I,...f)}function Le(I,...f){return Cn(I,...f)}function Oe(I,f,v){const S=Object.assign(Object.assign({},zt()),{[f]:v});return new ae.FA("auth","Firebase",S).create(f,{appName:I.name})}function Ct(I){return Oe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Cn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Tt.create(I,...f)}function At(I,f,...v){if(!I)throw Cn(f,...v)}function st(I){const f="INTERNAL ASSERTION FAILED: "+I;throw _e(f),new Error(f)}function cn(I,f){I||st(f)}function vt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function G(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class ue{constructor(f,v){this.shortDelay=f,this.longDelay=v,cn(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,ae.jZ)()||(0,ae.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Re(){return"http:"===G()||"https:"===G()}()||(0,ae.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Ee(I,f){cn(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Ve{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void st("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void st("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void st("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const ut={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},fn=new ue(3e4,6e4);function xn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function un(I,f,v,S){return Je.apply(this,arguments)}function Je(){return(Je=(0,$.A)(function*(I,f,v,S,J={}){return Sn(I,J,(0,$.A)(function*(){let Me={},Mt={};S&&("GET"===f?Mt=S:Me={body:JSON.stringify(S)});const Jt=(0,ae.Am)(Object.assign({key:I.config.apiKey},Mt)).slice(1),Mn=yield I._getAdditionalHeaders();return Mn["Content-Type"]="application/json",I.languageCode&&(Mn["X-Firebase-Locale"]=I.languageCode),Ve.fetch()(gr(I,I.config.apiHost,v,Jt),Object.assign({method:f,headers:Mn,referrerPolicy:"no-referrer"},Me))}))})).apply(this,arguments)}function Sn(I,f,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,$.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},ut),f);try{const J=new dr(I),Me=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Mt=yield Me.json();if("needConfirmation"in Mt)throw nt(I,"account-exists-with-different-credential",Mt);if(Me.ok&&!("errorMessage"in Mt))return Mt;{const Jt=Me.ok?Mt.errorMessage:Mt.error.message,[Mn,Jn]=Jt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Mn)throw nt(I,"credential-already-in-use",Mt);if("EMAIL_EXISTS"===Mn)throw nt(I,"email-already-in-use",Mt);if("USER_DISABLED"===Mn)throw nt(I,"user-disabled",Mt);const xr=S[Mn]||Mn.toLowerCase().replace(/[_\s]+/g,"-");if(Jn)throw Oe(I,xr,Jn);$e(I,xr)}}catch(J){if(J instanceof ae.g)throw J;$e(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function On(I,f,v,S){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(I,f,v,S,J={}){const Me=yield un(I,f,v,S,J);return"mfaPendingCredential"in Me&&$e(I,"multi-factor-auth-required",{_serverResponse:Me}),Me})).apply(this,arguments)}function gr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?Ee(I.config,J):`${I.config.apiScheme}://${J}`}function cr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class dr{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(Le(this.auth,"network-request-failed")),fn.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=Le(I,f,S);return J.customData._tokenResponse=v,J}function Xt(I){return void 0!==I&&void 0!==I.enterprise}class yn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return cr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Vn(I,f){return $n.apply(this,arguments)}function $n(){return($n=(0,$.A)(function*(I,f){return un(I,"GET","/v2/recaptchaConfig",xn(I,f))})).apply(this,arguments)}function on(){return(on=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Vr(I,f){return rr.apply(this,arguments)}function rr(){return(rr=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Mr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function Tr(){return(Tr=(0,$.A)(function*(I,f=!1){const v=(0,ae.Ku)(I),S=yield v.getIdToken(f),J=Br(S);At(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const Me="object"==typeof J.firebase?J.firebase:void 0,Mt=null==Me?void 0:Me.sign_in_provider;return{claims:J,token:S,authTime:Mr(yr(J.auth_time)),issuedAtTime:Mr(yr(J.iat)),expirationTime:Mr(yr(J.exp)),signInProvider:Mt||null,signInSecondFactor:(null==Me?void 0:Me.sign_in_second_factor)||null}})).apply(this,arguments)}function yr(I){return 1e3*Number(I)}function Br(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return _e("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,ae.u)(v);return J?JSON.parse(J):(_e("Failed to decode base64 JWT payload"),null)}catch(J){return _e("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function ar(I){const f=Br(I);return At(f,"internal-error"),At(typeof f.exp<"u","internal-error"),At(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function Lr(I,f){return li.apply(this,arguments)}function li(){return(li=(0,$.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof ae.g&&function Di({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Zr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,$.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,$.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class ve{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Mr(this.lastLoginAt),this.creationTime=Mr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,$.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield Lr(I,Vr(v,{idToken:S}));At(null==J?void 0:J.users.length,v,"internal-error");const Me=J.users[0];I._notifyReloadListener(Me);const Mt=null!==(f=Me.providerUserInfo)&&void 0!==f&&f.length?Ge(Me.providerUserInfo):[],Jt=function Ie(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,Mt),xr=!!I.isAnonymous&&!(I.email&&Me.passwordHash||null!=Jt&&Jt.length),Ci={uid:Me.localId,displayName:Me.displayName||null,photoURL:Me.photoUrl||null,email:Me.email||null,emailVerified:Me.emailVerified||!1,phoneNumber:Me.phoneNumber||null,tenantId:Me.tenantId||null,providerData:Jt,metadata:new ve(Me.createdAt,Me.lastLoginAt),isAnonymous:xr};Object.assign(I,Ci)})).apply(this,arguments)}function de(){return(de=(0,$.A)(function*(I){const f=(0,ae.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function Ge(I){return I.map(f=>{var{providerId:v}=f,S=(0,tt.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function le(){return(le=(0,$.A)(function*(I,f){const v=yield Sn(I,{},(0,$.A)(function*(){const S=(0,ae.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:Me}=I.config,Mt=gr(I,J,"/v1/token",`key=${Me}`),Jt=yield I._getAdditionalHeaders();return Jt["Content-Type"]="application/x-www-form-urlencoded",Ve.fetch()(Mt,{method:"POST",headers:Jt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function ft(){return(ft=(0,$.A)(function*(I,f){return un(I,"POST","/v2/accounts:revokeToken",xn(I,f))})).apply(this,arguments)}class Qt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){At(f.idToken,"internal-error"),At(typeof f.idToken<"u","internal-error"),At(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):ar(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){At(0!==f.length,"internal-error");const v=ar(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,$.A)(function*(){return v||!S.accessToken||S.isExpired?(At(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,$.A)(function*(){const{accessToken:J,refreshToken:Me,expiresIn:Mt}=yield function $t(I,f){return le.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,Me,Number(Mt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:Me}=v,Mt=new Qt;return S&&(At("string"==typeof S,"internal-error",{appName:f}),Mt.refreshToken=S),J&&(At("string"==typeof J,"internal-error",{appName:f}),Mt.accessToken=J),Me&&(At("number"==typeof Me,"internal-error",{appName:f}),Mt.expirationTime=Me),Mt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Qt,this.toJSON())}_performRefresh(){return st("not implemented")}}function sn(I,f){At("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class Tn{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,Me=(0,tt.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=Me.displayName||null,this.email=Me.email||null,this.emailVerified=Me.emailVerified||!1,this.phoneNumber=Me.phoneNumber||null,this.photoURL=Me.photoURL||null,this.isAnonymous=Me.isAnonymous||!1,this.tenantId=Me.tenantId||null,this.providerData=Me.providerData?[...Me.providerData]:[],this.metadata=new ve(Me.createdAt||void 0,Me.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,$.A)(function*(){const S=yield Lr(v,v.stsTokenManager.getToken(v.auth,f));return At(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function ii(I){return Tr.apply(this,arguments)}(this,f)}reload(){return function pt(I){return de.apply(this,arguments)}(this)}_assign(f){this!==f&&(At(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new Tn(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){At(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,$.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,$.A)(function*(){if((0,he.xZ)(f.auth.app))return Promise.reject(Ct(f.auth));const v=yield f.getIdToken();return yield Lr(f,function In(I,f){return on.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,Me,Mt,Jt,Mn,Jn,xr;const Ci=null!==(S=v.displayName)&&void 0!==S?S:void 0,Yo=null!==(J=v.email)&&void 0!==J?J:void 0,go=null!==(Me=v.phoneNumber)&&void 0!==Me?Me:void 0,ma=null!==(Mt=v.photoURL)&&void 0!==Mt?Mt:void 0,Xd=null!==(Jt=v.tenantId)&&void 0!==Jt?Jt:void 0,su=null!==(Mn=v._redirectEventId)&&void 0!==Mn?Mn:void 0,qd=null!==(Jn=v.createdAt)&&void 0!==Jn?Jn:void 0,ec=null!==(xr=v.lastLoginAt)&&void 0!==xr?xr:void 0,{uid:tc,emailVerified:nc,isAnonymous:Tf,providerData:au,stsTokenManager:Df}=v;At(tc&&Df,f,"internal-error");const Qd=Qt.fromJSON(this.name,Df);At("string"==typeof tc,f,"internal-error"),sn(Ci,f.name),sn(Yo,f.name),At("boolean"==typeof nc,f,"internal-error"),At("boolean"==typeof Tf,f,"internal-error"),sn(go,f.name),sn(ma,f.name),sn(Xd,f.name),sn(su,f.name),sn(qd,f.name),sn(ec,f.name);const Yd=new Tn({uid:tc,auth:f,email:Yo,emailVerified:nc,displayName:Ci,isAnonymous:Tf,photoURL:ma,phoneNumber:go,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:ec});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,$.A)(function*(){const J=new Qt;J.updateFromServerResponse(v);const Me=new Tn({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield rt(Me),Me})()}static _fromGetAccountInfoResponse(f,v,S){return(0,$.A)(function*(){const J=v.users[0];At(void 0!==J.localId,"internal-error");const Me=void 0!==J.providerUserInfo?Ge(J.providerUserInfo):[],Mt=!(J.email&&J.passwordHash||null!=Me&&Me.length),Jt=new Qt;Jt.updateFromIdToken(S);const Mn=new Tn({uid:J.localId,auth:f,stsTokenManager:Jt,isAnonymous:Mt}),Jn={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:Me,metadata:new ve(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=Me&&Me.length)};return Object.assign(Mn,Jn),Mn})()}}const Xn=new Map;function dn(I){cn(I instanceof Function,"Expected a class definition");let f=Xn.get(I);return f?(cn(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,Xn.set(I,f),f)}const hr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,$.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,$.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,$.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,$.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function wr(I,f,v){return`firebase:${I}:${f}:${v}`}class fr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:Me}=this.auth;this.fullUserKey=wr(this.userKey,J.apiKey,Me),this.fullPersistenceKey=wr("persistence",J.apiKey,Me),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,$.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?Tn._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,$.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,$.A)(function*(){if(!v.length)return new fr(dn(hr),f,S);const J=(yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(yield xr._isAvailable())return xr});return function(xr){return Jn.apply(this,arguments)}}()))).filter(Jn=>Jn);let Me=J[0]||dn(hr);const Mt=wr(S,f.config.apiKey,f.name);let Jt=null;for(const Jn of v)try{const xr=yield Jn._get(Mt);if(xr){const Ci=Tn._fromJSON(f,xr);Jn!==Me&&(Jt=Ci),Me=Jn;break}}catch{}const Mn=J.filter(Jn=>Jn._shouldAllowMigration);return Me._shouldAllowMigration&&Mn.length?(Me=Mn[0],Jt&&(yield Me._set(Mt,Jt.toJSON())),yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(xr!==Me)try{yield xr._remove(Mt)}catch{}});return function(xr){return Jn.apply(this,arguments)}}())),new fr(Me,f,S)):new fr(Me,f,S)})()}}function Ur(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(vi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(oi(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Gt(f))return"Blackberry";if(ie(f))return"Webos";if(Ir(f))return"Safari";if((f.includes("chrome/")||xi(f))&&!f.includes("edge/"))return"Chrome";if(Ar(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function oi(I=(0,ae.ZQ)()){return/firefox\//i.test(I)}function Ir(I=(0,ae.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function xi(I=(0,ae.ZQ)()){return/crios\//i.test(I)}function vi(I=(0,ae.ZQ)()){return/iemobile/i.test(I)}function Ar(I=(0,ae.ZQ)()){return/android/i.test(I)}function Gt(I=(0,ae.ZQ)()){return/blackberry/i.test(I)}function ie(I=(0,ae.ZQ)()){return/webos/i.test(I)}function te(I=(0,ae.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function re(I=(0,ae.ZQ)()){return te(I)||Ar(I)||ie(I)||Gt(I)||/windows phone/i.test(I)||vi(I)}function We(I,f=[]){let v;switch(I){case"Browser":v=Ur((0,ae.ZQ)());break;case"Worker":v=`${Ur((0,ae.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${he.MF}/${S}`}class St{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=Me=>new Promise((Mt,Jt)=>{try{Mt(f(Me))}catch(Mn){Jt(Mn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,$.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const Me of S)try{Me()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function rn(){return(rn=(0,$.A)(function*(I,f={}){return un(I,"GET","/v2/passwordPolicy",xn(I,f))})).apply(this,arguments)}class qn{constructor(f){var v,S,J,Me;const Mt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Mt.minPasswordLength)&&void 0!==v?v:6,Mt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Mt.maxPasswordLength),void 0!==Mt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Mt.containsLowercaseCharacter),void 0!==Mt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Mt.containsUppercaseCharacter),void 0!==Mt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Mt.containsNumericCharacter),void 0!==Mt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Mt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(Me=f.forceUpgradeOnSignin)&&void 0!==Me&&Me,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,Me,Mt,Jt;const Mn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Mn),this.validatePasswordCharacterOptions(f,Mn),Mn.isValid&&(Mn.isValid=null===(v=Mn.meetsMinPasswordLength)||void 0===v||v),Mn.isValid&&(Mn.isValid=null===(S=Mn.meetsMaxPasswordLength)||void 0===S||S),Mn.isValid&&(Mn.isValid=null===(J=Mn.containsLowercaseLetter)||void 0===J||J),Mn.isValid&&(Mn.isValid=null===(Me=Mn.containsUppercaseLetter)||void 0===Me||Me),Mn.isValid&&(Mn.isValid=null===(Mt=Mn.containsNumericCharacter)||void 0===Mt||Mt),Mn.isValid&&(Mn.isValid=null===(Jt=Mn.containsNonAlphanumericCharacter)||void 0===Jt||Jt),Mn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,Me){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=Me))}}class Sr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new zr(this),this.idTokenSubscription=new zr(this),this.beforeStateQueue=new St(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Tt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,$.A)(function*(){var J,Me;if(!S._deleted&&(S.persistenceManager=yield fr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(Me=S.currentUser)||void 0===Me?void 0:Me.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,$.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,$.A)(function*(){try{const S=yield Vr(v,{idToken:f}),J=yield Tn._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,$.A)(function*(){var S;if((0,he.xZ)(v.app)){const Jt=v.app.settings.authIdToken;return Jt?new Promise(Mn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Jt).then(Mn,Mn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let Me=J,Mt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Jt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Mn=null==Me?void 0:Me._redirectEventId,Jn=yield v.tryRedirectSignIn(f);(!Jt||Jt===Mn)&&null!=Jn&&Jn.user&&(Me=Jn.user,Mt=!0)}if(!Me)return v.directlySetCurrentUser(null);if(!Me._redirectEventId){if(Mt)try{yield v.beforeStateQueue.runMiddleware(Me)}catch(Jt){Me=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Jt))}return Me?v.reloadAndSetCurrentUserOrClear(Me):v.directlySetCurrentUser(null)}return At(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===Me._redirectEventId?v.directlySetCurrentUser(Me):v.reloadAndSetCurrentUserOrClear(Me)})()}tryRedirectSignIn(f){var v=this;return(0,$.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,$.A)(function*(){try{yield rt(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function ce(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,$.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,$.A)(function*(){if((0,he.xZ)(v.app))return Promise.reject(Ct(v));const S=f?(0,ae.Ku)(f):null;return S&&At(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,$.A)(function*(){if(!S._deleted)return f&&At(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,$.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,$.A)(function*(){return(0,he.xZ)(f.app)?Promise.reject(Ct(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,he.xZ)(this.app)?Promise.reject(Ct(this)):this.queue((0,$.A)(function*(){yield v.assertedPersistence.setPersistence(dn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,$.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,$.A)(function*(){const v=yield function nn(I){return rn.apply(this,arguments)}(f),S=new qn(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new ae.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,$.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function gt(I,f){return ft.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,$.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,$.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&dn(f)||v._popupRedirectResolver;At(S,v,"argument-error"),v.redirectPersistenceManager=yield fr.create(v,[dn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,$.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,$.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,$.A)(function*(){if(f===v.currentUser)return v.queue((0,$.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const Me="function"==typeof v?v:v.next.bind(v);let Mt=!1;const Jt=this._isInitialized?Promise.resolve():this._initializationPromise;if(At(Jt,this,"internal-error"),Jt.then(()=>{Mt||Me(this.currentUser)}),"function"==typeof v){const Mn=f.addObserver(v,S,J);return()=>{Mt=!0,Mn()}}{const Mn=f.addObserver(v);return()=>{Mt=!0,Mn()}}}directlySetCurrentUser(f){var v=this;return(0,$.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return At(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=We(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,$.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const Me=yield f._getAppCheckToken();return Me&&(S["X-Firebase-AppCheck"]=Me),S})()}_getAppCheckToken(){var f=this;return(0,$.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Ze(I,...f){Te.logLevel<=Xe.$b.WARN&&Te.warn(`Auth (${he.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function jn(I){return(0,ae.Ku)(I)}class zr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,ae.tD)(v=>this.observer=v)}get next(){return At(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let $r={loadJS:()=>(0,$.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Nr(I){return $r.loadJS(I)}function hi(I){return`__${I}${Math.floor(1e6*Math.random())}`}class _i{constructor(f){this.type="recaptcha-enterprise",this.auth=jn(f)}verify(f="verify",v=!1){var S=this;return(0,$.A)(function*(){function Me(){return Me=(0,$.A)(function*(Jt){if(!v){if(null==Jt.tenantId&&null!=Jt._agentRecaptchaConfig)return Jt._agentRecaptchaConfig.siteKey;if(null!=Jt.tenantId&&void 0!==Jt._tenantRecaptchaConfigs[Jt.tenantId])return Jt._tenantRecaptchaConfigs[Jt.tenantId].siteKey}return new Promise(function(){var Mn=(0,$.A)(function*(Jn,xr){Vn(Jt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Ci=>{if(void 0!==Ci.recaptchaKey){const Yo=new yn(Ci);return null==Jt.tenantId?Jt._agentRecaptchaConfig=Yo:Jt._tenantRecaptchaConfigs[Jt.tenantId]=Yo,Jn(Yo.siteKey)}xr(new Error("recaptcha Enterprise site key undefined"))}).catch(Ci=>{xr(Ci)})});return function(Jn,xr){return Mn.apply(this,arguments)}}())}),Me.apply(this,arguments)}function Mt(Jt,Mn,Jn){const xr=window.grecaptcha;Xt(xr)?xr.enterprise.ready(()=>{xr.enterprise.execute(Jt,{action:f}).then(Ci=>{Mn(Ci)}).catch(()=>{Mn("NO_RECAPTCHA")})}):Jn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Jt,Mn)=>{(function J(Jt){return Me.apply(this,arguments)})(S.auth).then(Jn=>{if(!v&&Xt(window.grecaptcha))Mt(Jn,Jt,Mn);else{if(typeof window>"u")return void Mn(new Error("RecaptchaVerifier is only supported in browser"));let xr=function Rr(){return $r.recaptchaEnterpriseScript}();0!==xr.length&&(xr+=Jn),Nr(xr).then(()=>{Mt(Jn,Jt,Mn)}).catch(Ci=>{Mn(Ci)})}}).catch(Jn=>{Mn(Jn)})})})()}}function tr(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,$.A)(function*(I,f,v,S=!1){const J=new _i(I);let Me;try{Me=yield J.verify(v)}catch{Me=yield J.verify(v,!0)}const Mt=Object.assign({},f);return Object.assign(Mt,S?{captchaResp:Me}:{captchaResponse:Me}),Object.assign(Mt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Mt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Mt})).apply(this,arguments)}function mo(I,f,v,S){return fi.apply(this,arguments)}function fi(){return fi=(0,$.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const Me=yield tr(I,f,v,"getOobCode"===v);return S(I,Me)}return S(I,f).catch(function(){var Me=(0,$.A)(function*(Mt){if("auth/missing-recaptcha-token"===Mt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Jt=yield tr(I,f,v,"getOobCode"===v);return S(I,Jt)}return Promise.reject(Mt)});return function(Mt){return Me.apply(this,arguments)}}())}),fi.apply(this,arguments)}function ge(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function K(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Be{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return st("not implemented")}_getIdTokenResponse(f){return st("not implemented")}_linkToIdToken(f,v){return st("not implemented")}_getReauthenticationResolver(f){return st("not implemented")}}function w(I,f){return H.apply(this,arguments)}function H(){return(H=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ce(I,f){return dt.apply(this,arguments)}function dt(){return(dt=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithPassword",xn(I,f))})).apply(this,arguments)}function bn(){return(bn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}function Yn(){return(Yn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}class _r extends Be{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new _r(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new _r(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,$.A)(function*(){switch(v.signInMethod){case"password":return mo(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ce);case"emailLink":return function vn(I,f){return bn.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:$e(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,$.A)(function*(){switch(S.signInMethod){case"password":return mo(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Gn(I,f){return Yn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:$e(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Kn(I,f){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithIdp",xn(I,f))})).apply(this,arguments)}class ho{constructor(f){var v,S,J,Me,Mt,Jt;const Mn=(0,ae.I9)((0,ae.hp)(f)),Jn=null!==(v=Mn.apiKey)&&void 0!==v?v:null,xr=null!==(S=Mn.oobCode)&&void 0!==S?S:null,Ci=function wo(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Mn.mode)&&void 0!==J?J:null);At(Jn&&xr&&Ci,"argument-error"),this.apiKey=Jn,this.operation=Ci,this.code=xr,this.continueUrl=null!==(Me=Mn.continueUrl)&&void 0!==Me?Me:null,this.languageCode=null!==(Mt=Mn.languageCode)&&void 0!==Mt?Mt:null,this.tenantId=null!==(Jt=Mn.tenantId)&&void 0!==Jt?Jt:null}static parseLink(f){const v=function ws(I){const f=(0,ae.I9)((0,ae.hp)(I)).link,v=f?(0,ae.I9)((0,ae.hp)(f)).deep_link_id:null,S=(0,ae.I9)((0,ae.hp)(I)).deep_link_id;return(S?(0,ae.I9)((0,ae.hp)(S)).link:null)||S||v||f||I}(f);try{return new ho(v)}catch{return null}}}let Jr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return _r._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=ho.parseLink(S);return At(J,"argument-error"),_r._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class Ao{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class Js extends Ao{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function ee(I,f){return qe.apply(this,arguments)}function qe(){return(qe=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signUp",xn(I,f))})).apply(this,arguments)}class lt{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,$.A)(function*(){const Me=yield Tn._fromIdTokenResponse(f,S,J),Mt=Vt(S);return new lt({user:Me,providerId:Mt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,$.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=Vt(S);return new lt({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function Vt(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class x extends ae.g{constructor(f,v,S,J){var Me;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,x.prototype),this.customData={appName:f.name,tenantId:null!==(Me=f.tenantId)&&void 0!==Me?Me:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new x(f,v,S,J)}}function se(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(Me=>{throw"auth/multi-factor-auth-required"===Me.code?x._fromErrorAndOperation(I,Me,f,S):Me})}function lr(){return(lr=(0,$.A)(function*(I,f,v=!1){const S=yield Lr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return lt._forOperation(I,"link",S)})).apply(this,arguments)}function ao(){return(ao=(0,$.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,he.xZ)(S.app))return Promise.reject(Ct(S));const J="reauthenticate";try{const Me=yield Lr(I,se(S,J,f,I),v);At(Me.idToken,S,"internal-error");const Mt=Br(Me.idToken);At(Mt,S,"internal-error");const{sub:Jt}=Mt;return At(I.uid===Jt,S,"user-mismatch"),lt._forOperation(I,J,Me)}catch(Me){throw"auth/user-not-found"===(null==Me?void 0:Me.code)&&$e(S,"user-mismatch"),Me}})).apply(this,arguments)}function No(I,f){return Ki.apply(this,arguments)}function Ki(){return(Ki=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S="signIn",J=yield se(I,S,f),Me=yield lt._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(Me.user)),Me})).apply(this,arguments)}function qo(){return(qo=(0,$.A)(function*(I,f){return No(jn(I),f)})).apply(this,arguments)}function cl(I){return ei.apply(this,arguments)}function ei(){return(ei=(0,$.A)(function*(I){const f=jn(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function $s(I,f,v){return ds.apply(this,arguments)}function ds(){return(ds=(0,$.A)(function*(I,f,v){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),Mt=yield mo(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ee).catch(Mn=>{throw"auth/password-does-not-meet-requirements"===Mn.code&&cl(I),Mn}),Jt=yield lt._fromIdTokenResponse(S,"signIn",Mt);return yield S._updateCurrentUser(Jt.user),Jt})).apply(this,arguments)}function Ns(I,f,v){return(0,he.xZ)(I.app)?Promise.reject(Ct(I)):function Qi(I,f){return qo.apply(this,arguments)}((0,ae.Ku)(I),Jr.credential(f,v)).catch(function(){var S=(0,$.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function to(I,f,v,S){return(0,ae.Ku)(I).onIdTokenChanged(f,v,S)}const na="__sak";class yc{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(na,"1"),this.storage.removeItem(na),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ta=(()=>{class I extends yc{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Ui(){const I=(0,ae.ZQ)();return Ir(I)||te(I)}()&&function we(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=re(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),Me=this.localCache[S];J!==Me&&v(S,Me,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Jt,Mn,Jn)=>{this.notifyListeners(Jt,Jn)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Jt=this.storage.getItem(J);if(v.newValue!==Jt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const Me=()=>{const Jt=this.storage.getItem(J);!S&&this.localCache[J]===Jt||this.notifyListeners(J,Jt)},Mt=this.storage.getItem(J);!function O(){return(0,ae.lT)()&&10===document.documentMode}()||Mt===v.newValue||v.newValue===v.oldValue?Me():setTimeout(Me,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,Me=this;return(0,$.A)(function*(){yield J().call(Me,v,S),Me.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,$.A)(function*(){const Me=yield S().call(J,v);return J.localCache[v]=JSON.stringify(Me),Me})()}_remove(v){var S=()=>super._remove,J=this;return(0,$.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),is=(()=>{class I extends yc{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Da=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(Me=>Me.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,$.A)(function*(){const J=v,{eventId:Me,eventType:Mt,data:Jt}=J.data,Mn=S.handlersMap[Mt];if(null==Mn||!Mn.size)return;J.ports[0].postMessage({status:"ack",eventId:Me,eventType:Mt});const Jn=Array.from(Mn).map(function(){var Ci=(0,$.A)(function*(Yo){return Yo(J.origin,Jt)});return function(Yo){return Ci.apply(this,arguments)}}()),xr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,$.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}(Jn);J.ports[0].postMessage({status:"done",eventId:Me,eventType:Mt,response:xr})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function oo(I="",f=10){let v="";for(let S=0;S{const xr=oo("",20);Me.port1.start();const Ci=setTimeout(()=>{Jn(new Error("unsupported_event"))},S);Jt={messageChannel:Me,onMessage(Yo){const go=Yo;if(go.data.eventId===xr)switch(go.data.status){case"ack":clearTimeout(Ci),Mt=setTimeout(()=>{Jn(new Error("timeout"))},3e3);break;case"done":clearTimeout(Mt),Mn(go.data.response);break;default:clearTimeout(Ci),clearTimeout(Mt),Jn(new Error("invalid_response"))}}},J.handlers.add(Jt),Me.port1.addEventListener("message",Jt.onMessage),J.target.postMessage({eventType:f,eventId:xr,data:v},[Me.port2])}).finally(()=>{Jt&&J.removeMessageHandler(Jt)})})()}}function Ai(){return window}function Wl(){return typeof Ai().WorkerGlobalScope<"u"&&"function"==typeof Ai().importScripts}function ia(){return(ia=(0,$.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",ba="firebaseLocalStorage",Pu="fbase_key";class wa{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function Ha(I,f){return I.transaction([ba],f?"readwrite":"readonly").objectStore(ba)}function Dd(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(ba,{keyPath:Pu})}catch(J){v(J)}}),I.addEventListener("success",(0,$.A)(function*(){const S=I.result;S.objectStoreNames.contains(ba)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new wa(I).toPromise()}(),f(yield Dd()))}))})}function Sa(I,f,v){return Ga.apply(this,arguments)}function Ga(){return(Ga=(0,$.A)(function*(I,f,v){const S=Ha(I,!0).put({[Pu]:f,value:v});return new wa(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,$.A)(function*(I,f){const v=Ha(I,!1).get(f),S=yield new wa(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=Ha(I,!0).delete(f);return new wa(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,$.A)(function*(){return v.db||(v.db=yield Dd()),v.db})()}_withRetries(v){var S=this;return(0,$.A)(function*(){let J=0;for(;;)try{const Me=yield S._openDb();return yield v(Me)}catch(Me){if(J++>3)throw Me;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,$.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,$.A)(function*(){v.receiver=Da._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,$.A)(function*(J,Me){return{keyProcessed:(yield v._poll()).includes(Me.key)}});return function(J,Me){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,$.A)(function*(J,Me){return["keyChanged"]});return function(J,Me){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,$.A)(function*(){var S,J;if(v.activeServiceWorker=yield function gs(){return ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Mu(v.activeServiceWorker);const Me=yield v.sender._send("ping",{},800);Me&&null!==(S=Me[0])&&void 0!==S&&S.fulfilled&&null!==(J=Me[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,$.A)(function*(){if(S.sender&&S.activeServiceWorker&&function Is(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,$.A)(function*(){try{if(!indexedDB)return!1;const v=yield Dd();return yield Sa(v,na,"1"),yield E(v,na),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,$.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,$.A)(function*(){return J._withPendingWrite((0,$.A)(function*(){return yield J._withRetries(Me=>Sa(Me,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,$.A)(function*(){const J=yield S._withRetries(Me=>function Kh(I,f){return bd.apply(this,arguments)}(Me,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,$.A)(function*(){return S._withPendingWrite((0,$.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,$.A)(function*(){const S=yield v._withRetries(Mt=>{const Jt=Ha(Mt,!1).getAll();return new wa(Jt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],Me=new Set;if(0!==S.length)for(const{fbase_key:Mt,value:Jt}of S)Me.add(Mt),JSON.stringify(v.localCache[Mt])!==JSON.stringify(Jt)&&(v.notifyListeners(Mt,Jt),J.push(Mt));for(const Mt of Object.keys(v.localCache))v.localCache[Mt]&&!Me.has(Mt)&&(v.notifyListeners(Mt,null),J.push(Mt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,$.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();hi("rcb"),new ue(3e4,6e4);class $o extends Be{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Kn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Kn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Kn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return No(I.auth,new $o(I),I.bypassAuthState)}function Ac(I){const{auth:f,user:v}=I;return At(v,f,"internal-error"),function Ei(I,f){return ao.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)}function Cc(I){return Ls.apply(this,arguments)}function Ls(){return(Ls=(0,$.A)(function*(I){const{auth:f,user:v}=I;return At(v,f,"internal-error"),function zn(I,f){return lr.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)})).apply(this,arguments)}class Tc{constructor(f,v,S,J,Me=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=Me,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,$.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(Me){f.reject(Me)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,$.A)(function*(){const{urlResponse:S,sessionId:J,postBody:Me,tenantId:Mt,error:Jt,type:Mn}=f;if(Jt)return void v.reject(Jt);const Jn={auth:v.auth,requestUri:S,sessionId:J,tenantId:Mt||void 0,postBody:Me||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Mn)(Jn))}catch(xr){v.reject(xr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Cc;case"reauthViaPopup":case"reauthViaRedirect":return Ac;default:$e(this.auth,"internal-error")}}resolve(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new ue(2e3,1e4);const Dr="pendingRedirect",vl=new Map;class Rd extends Tc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,$.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const Me=(yield function Dc(I,f){return bc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(Me)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,$.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,$.A)(function*(){})()}cleanUp(){}}function bc(){return(bc=(0,$.A)(function*(I,f){const v=function yl(I){return wr(Dr,I.config.apiKey,I.name)}(f),S=function qh(I){return dn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function ku(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),J=function Cs(I,f){return f?dn(f):(At(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),Mt=yield new Rd(S,J,v).execute();return Mt&&!v&&(delete Mt.user._redirectEventId,yield S._persistUserIfCurrent(Mt.user),yield S._setRedirectUser(null,f)),Mt})).apply(this,arguments)}class da{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function ha(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Vs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!Vs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(Le(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Sc(f))}saveEventToCache(f){this.cachedEventUids.add(Sc(f)),this.lastProcessedEventTime=Date.now()}}function Sc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function Vs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Rc(){return(Rc=(0,$.A)(function*(I,f={}){return un(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Vo=/^https?/;function Fu(){return Fu=(0,$.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Rc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}$e(I,"unauthorized-domain")}),Fu.apply(this,arguments)}function Nd(I){const f=vt(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const Mt=new URL(I);return""===Mt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Mt.hostname===S}if(!Vo.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Mc=new ue(3e4,6e4);function Pc(){const I=Ai().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,Me;function Mt(){Pc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Pc(),v(Le(I,"network-request-failed"))},timeout:Mc.get()})}if(null!==(J=null===(S=Ai().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(Me=Ai().gapi)||void 0===Me||!Me.load){const Jt=hi("iframefcb");return Ai()[Jt]=()=>{gapi.load?Mt():v(Le(I,"network-request-failed"))},Nr(`${function di(){return $r.gapiScript}()}?onload=${Jt}`).catch(Mn=>v(Mn))}Mt()}}).catch(f=>{throw xa=null,f})}(I),xa}(I),v=Ai().gapi;return At(v,I,"internal-error"),f.open({where:document.body,url:Mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vu,dontclear:!0},S=>new Promise(function(){var J=(0,$.A)(function*(Me,Mt){yield S.restyle({setHideOnLeave:!1});const Jt=Le(I,"network-request-failed"),Mn=Ai().setTimeout(()=>{Mt(Jt)},Zh.get());function Jn(){Ai().clearTimeout(Mn),Me(S)}S.ping(Jn).then(Jn,()=>{Mt(Jt)})});return function(Me,Mt){return J.apply(this,arguments)}}()))}),Gi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Uu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",ju="emulator/auth/handler",Oc=encodeURIComponent("fac");function fa(I,f,v,S,J,Me){return pa.apply(this,arguments)}function pa(){return(pa=(0,$.A)(function*(I,f,v,S,J,Me){At(I.config.authDomain,I,"auth-domain-config-required"),At(I.config.apiKey,I,"invalid-api-key");const Mt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:he.MF,eventId:J};if(f instanceof Ao){f.setDefaultLanguage(I.languageCode),Mt.providerId=f.providerId||"",(0,ae.Im)(f.getCustomParameters())||(Mt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[xr,Ci]of Object.entries(Me||{}))Mt[xr]=Ci}if(f instanceof Js){const xr=f.getScopes().filter(Ci=>""!==Ci);xr.length>0&&(Mt.scopes=xr.join(","))}I.tenantId&&(Mt.tid=I.tenantId);const Jt=Mt;for(const xr of Object.keys(Jt))void 0===Jt[xr]&&delete Jt[xr];const Mn=yield I._getAppCheckToken(),Jn=Mn?`#${Oc}=${encodeURIComponent(Mn)}`:"";return`${function Nc({config:I}){return I.emulator?Ee(I,ju):`https://${I.authDomain}/${ag}`}(I)}?${(0,ae.Am)(Jt).slice(1)}${Jn}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=is,this._completeRedirectFn=ku,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var Me=this;return(0,$.A)(function*(){var Mt;cn(null===(Mt=Me.eventManagers[f._key()])||void 0===Mt?void 0:Mt.manager,"_initialize() not called before _openPopup()");const Jt=yield fa(f,v,S,vt(),J);return function $u(I,f,v,S=500,J=600){const Me=Math.max((window.screen.availHeight-J)/2,0).toString(),Mt=Math.max((window.screen.availWidth-S)/2,0).toString();let Jt="";const Mn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:Me,left:Mt}),Jn=(0,ae.ZQ)().toLowerCase();v&&(Jt=xi(Jn)?"_blank":v),oi(Jn)&&(f=f||"http://localhost",Mn.scrollbars="yes");const xr=Object.entries(Mn).reduce((Yo,[go,ma])=>`${Yo}${go}=${ma},`,"");if(function M(I=(0,ae.ZQ)()){var f;return te(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}(Jn)&&"_self"!==Jt)return function Ws(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Jt),new Uu(null);const Ci=window.open(f||"",Jt,xr);At(Ci,I,"popup-blocked");try{Ci.focus()}catch{}return new Uu(Ci)}(f,Jt,oo())})()}_openRedirect(f,v,S,J){var Me=this;return(0,$.A)(function*(){return yield Me._originValidation(f),function Lo(I){Ai().location.href=I}(yield fa(f,v,S,vt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:Me}=this.eventManagers[v];return J?Promise.resolve(J):(cn(Me,"If manager is not set, promise should be"),Me)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,$.A)(function*(){const S=yield function Oa(I){return Gi.apply(this,arguments)}(f),J=new da(f);return S.register("authEvent",Me=>(At(null==Me?void 0:Me.authEvent,f,"invalid-auth-event"),{status:J.onEvent(Me.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var Me;const Mt=null===(Me=null==J?void 0:J[0])||void 0===Me?void 0:Me[El];void 0!==Mt&&v(!!Mt),$e(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return Fu.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return re()||Ir()||te()}};var Vd="@firebase/auth";class Na{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,$.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){At(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,ae.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,$.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const Me=null==S?void 0:S.token;af!==Me&&(af=Me,yield fetch(I,{method:Me?"POST":"DELETE",headers:Me?{Authorization:`Bearer ${Me}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,he.Sx)()){const f=(0,he.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function bo(I,f){const v=(0,he.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),Me=v.getOptions();if((0,ae.bD)(Me,null!=f?f:{}))return J;$e(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ta,is]}),S=(0,ae.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const Me=new URL(S,location.origin);if(location.origin===Me.origin){const Mt=lf(Me.toString());(function wi(I,f,v){(0,ae.Ku)(I).beforeAuthStateChanged(f,v)})(v,Mt,()=>Mt(v.currentUser)),to(v,Jt=>Mt(Jt))}}const J=(0,ae.Tj)("auth");return J&&function Pt(I,f,v){const S=jn(I);At(S._canInitEmulator,S,"emulator-config-failed"),At(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),Me=ge(f),{host:Mt,port:Jt}=function fe(I){const f=ge(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const Me=J[1];return{host:Me,port:K(S.substr(Me.length+1))}}{const[Me,Mt]=S.split(":");return{host:Me,port:K(Mt)}}}(f);S.config.emulator={url:`${Me}//${Mt}${null===Jt?"":`:${Jt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:Mt,port:Jt,protocol:Me.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function je(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function Pr(I){$r=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const Me=Le("internal-error");Me.customData=J,v(Me)},S.type="text/javascript",S.charset="UTF-8",function Vc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Tl(I){(0,he.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),Me=f.getProvider("app-check-internal"),{apiKey:Mt,authDomain:Jt}=S.options;At(Mt&&!Mt.includes(":"),"invalid-api-key",{appName:S.name});const Mn={apiKey:Mt,authDomain:Jt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:We(I)},Jn=new Sr(S,J,Me,Mn);return function ui(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(dn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}(Jn,v),Jn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,he.om)(new Se.uA("auth-internal",f=>{const v=jn(f.getProvider("auth").getImmediate());return new Na(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,he.KO)(Vd,"1.7.4",function Lc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,he.KO)(Vd,"1.7.4","esm2017")}("Browser");var Bs=C(1985);function Gu(I){return new Bs.c(function(f){return{unsubscribe:to(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Ja{constructor(f){return f}}class Dl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Ja(S)}}const cf={provide:Dl,deps:[[new c.Xx1,tu]]},lg={provide:Ja,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Ja(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,ke.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const $c=(0,h.S3)(Gu,!0),Wu=(0,h.S3)($s,!0),ug=(0,h.S3)(Bd,!0),Qu=(0,h.S3)(Ns,!0)},4262:(Pn,Et,C)=>{"use strict";C.d(Et,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var it,Ye,h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1362),tt=C(8041),Se=C(1076),be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},et={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Bt,ht,Rt){Rt||(Rt=0);var Ut=Array(16);if("string"==typeof ht)for(var Ht=0;16>Ht;++Ht)Ut[Ht]=ht.charCodeAt(Rt++)|ht.charCodeAt(Rt++)<<8|ht.charCodeAt(Rt++)<<16|ht.charCodeAt(Rt++)<<24;else for(Ht=0;16>Ht;++Ht)Ut[Ht]=ht[Rt++]|ht[Rt++]<<8|ht[Rt++]<<16|ht[Rt++]<<24;var Zt=Bt.g[3],bt=(ht=Bt.g[0])+(Zt^(Rt=Bt.g[1])&((Ht=Bt.g[2])^Zt))+Ut[0]+3614090360&4294967295;bt=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=Rt+(bt<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[1]+3905402710&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[2]+606105819&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[3]+3250441966&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[4]+4118548399&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[5]+1200080426&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[6]+2821735955&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[7]+4249261313&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[8]+1770035416&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[9]+2336552879&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[10]+4294925233&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[11]+2304563134&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[12]+1804603682&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[13]+4254626195&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[14]+2792965006&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[15]+1236535329&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[1]+4129170786&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[6]+3225465664&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[11]+643717713&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[0]+3921069994&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[5]+3593408605&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[10]+38016083&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[15]+3634488961&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[4]+3889429448&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[9]+568446438&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[14]+3275163606&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[3]+4107603335&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[8]+1163531501&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[13]+2850285829&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[2]+4243563512&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[7]+1735328473&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[12]+2368359562&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Rt^Ht^Zt)+Ut[5]+4294588738&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[8]+2272392833&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[11]+1839030562&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[14]+4259657740&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[1]+2763975236&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[4]+1272893353&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[7]+4139469664&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[10]+3200236656&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[13]+681279174&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[0]+3936430074&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[3]+3572445317&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[6]+76029189&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[9]+3654602809&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[12]+3873151461&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[15]+530742520&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[2]+3299628645&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Ht^(Rt|~Zt))+Ut[0]+4096336452&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[7]+1126891415&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[14]+2878612391&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[5]+4237533241&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[12]+1700485571&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[3]+2399980690&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[10]+4293915773&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[1]+2240044497&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[8]+1873313359&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[15]+4264355552&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[6]+2734768916&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[13]+1309151649&4294967295)<<21&4294967295|bt>>>11))+((Zt=(ht=Rt+((bt=ht+(Ht^(Rt|~Zt))+Ut[4]+4149444226&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[11]+3174756917&4294967295)<<10&4294967295|bt>>>22))^((Ht=Zt+((bt=Ht+(ht^(Zt|~Rt))+Ut[2]+718787259&4294967295)<<15&4294967295|bt>>>17))|~ht))+Ut[9]+3951481745&4294967295,Bt.g[0]=Bt.g[0]+ht&4294967295,Bt.g[1]=Bt.g[1]+(Ht+(bt<<21&4294967295|bt>>>11))&4294967295,Bt.g[2]=Bt.g[2]+Ht&4294967295,Bt.g[3]=Bt.g[3]+Zt&4294967295}function _(Bt,ht){this.h=ht;for(var Rt=[],Ut=!0,Ht=Bt.length-1;0<=Ht;Ht--){var Zt=0|Bt[Ht];Ut&&Zt==ht||(Rt[Ht]=Zt,Ut=!1)}this.g=Rt}(function n(Bt,ht){function Rt(){}Rt.prototype=ht.prototype,Bt.D=ht.prototype,Bt.prototype=new Rt,Bt.prototype.constructor=Bt,Bt.C=function(Ut,Ht,Zt){for(var bt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);Bt[0]=128;for(var ht=1;htht;++ht)for(var Ut=0;32>Ut;Ut+=8)Bt[Rt++]=this.g[ht]>>>Ut&255;return Bt};var R={};function k(Bt){return-128<=Bt&&128>Bt?function p(Bt,ht){var Rt=R;return Object.prototype.hasOwnProperty.call(Rt,Bt)?Rt[Bt]:Rt[Bt]=ht(Bt)}(Bt,function(ht){return new _([0|ht],0>ht?-1:0)}):new _([0|Bt],0>Bt?-1:0)}function q(Bt){if(isNaN(Bt)||!isFinite(Bt))return He;if(0>Bt)return Ln(q(-Bt));for(var ht=[],Rt=1,Ut=0;Bt>=Rt;Ut++)ht[Ut]=Bt/Rt|0,Rt*=4294967296;return new _(ht,0)}var He=k(0),yt=k(1),Yt=k(16777216);function Rn(Bt){if(0!=Bt.h)return!1;for(var ht=0;ht>>16,Bt[ht]&=65535,ht++}function Or(Bt,ht){this.g=Bt,this.h=ht}function si(Bt,ht){if(Rn(ht))throw Error("division by zero");if(Rn(Bt))return new Or(He,He);if(Wn(Bt))return ht=si(Ln(Bt),ht),new Or(Ln(ht.g),Ln(ht.h));if(Wn(ht))return ht=si(Bt,Ln(ht)),new Or(Ln(ht.g),ht.h);if(30=Ut.l(Bt);)Rt=Wi(Rt),Ut=Wi(Ut);var Ht=Ti(Rt,1),Zt=Ti(Ut,1);for(Ut=Ti(Ut,2),Rt=Ti(Rt,2);!Rn(Ut);){var bt=Zt.add(Ut);0>=bt.l(Bt)&&(Ht=Ht.add(Rt),Zt=bt),Ut=Ti(Ut,1),Rt=Ti(Rt,1)}return ht=Cr(Bt,Ht.j(ht)),new Or(Ht,ht)}for(Ht=He;0<=Bt.l(ht);){for(Rt=Math.max(1,Math.floor(Bt.m()/ht.m())),Ut=48>=(Ut=Math.ceil(Math.log(Rt)/Math.LN2))?1:Math.pow(2,Ut-48),bt=(Zt=q(Rt)).j(ht);Wn(bt)||0>>31;return new _(Rt,Bt.h)}function Ti(Bt,ht){var Rt=ht>>5;ht%=32;for(var Ut=Bt.g.length-Rt,Ht=[],Zt=0;Zt>>ht|Bt.i(Zt+Rt+1)<<32-ht:Bt.i(Zt+Rt);return new _(Ht,Bt.h)}(l=_.prototype).m=function(){if(Wn(this))return-Ln(this).m();for(var Bt=0,ht=1,Rt=0;Rt(Bt=Bt||10)||36>>0).toString(Bt);if(Rn(Rt=Ht))return Zt+Ut;for(;6>Zt.length;)Zt="0"+Zt;Ut=Zt+Ut}},l.i=function(Bt){return 0>Bt?0:Bt>>16)+(this.i(Ht)>>>16)+(Bt.i(Ht)>>>16);Ut=bt>>>16,Rt[Ht]=(bt&=65535)<<16|(Zt&=65535)}return new _(Rt,-2147483648&Rt[Rt.length-1]?-1:0)},l.j=function(Bt){if(Rn(this)||Rn(Bt))return He;if(Wn(this))return Wn(Bt)?Ln(this).j(Ln(Bt)):Ln(Ln(this).j(Bt));if(Wn(Bt))return Ln(this.j(Ln(Bt)));if(0>this.l(Yt)&&0>Bt.l(Yt))return q(this.m()*Bt.m());for(var ht=this.g.length+Bt.g.length,Rt=[],Ut=0;Ut<2*ht;Ut++)Rt[Ut]=0;for(Ut=0;Ut>>16,bt=65535&this.i(Ut),Nl=Bt.i(Ht)>>>16,dc=65535&Bt.i(Ht);Rt[2*Ut+2*Ht]+=bt*dc,Gr(Rt,2*Ut+2*Ht),Rt[2*Ut+2*Ht+1]+=Zt*dc,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+1]+=bt*Nl,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+2]+=Zt*Nl,Gr(Rt,2*Ut+2*Ht+2)}for(Ut=0;Ut(ht=ht||10)||36Zt?(Zt=q(Math.pow(ht,Zt)),Ut=Ut.j(Zt).add(q(bt))):Ut=(Ut=Ut.j(Rt)).add(q(bt))}return Ut},it=et.Integer=_}).apply(typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{});var xt,Dt,zt,Tt,It,Te,Ze,_e,$e,at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof at&&at];for(var V=0;V{throw m},0)}function bt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var dc=new class Cr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Ne=dc.get();Ne.set(V,Q),this.h?this.h.next=Ne:this.g=Ne,this.h=Ne}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=bt();){try{m.h.call(m.g)}catch(Q){Zt(Q)}var V=dc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function vu(){this.s=this.s,this.C=this.C}function xo(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}vu.prototype.s=!1,vu.prototype.ma=function(){this.s||(this.s=!0,this.N())},vu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},xo.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(xo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Ne=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Wi){e:{try{si(V.nodeName);var qt=!0;break e}catch{}qt=!1}qt||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Ne?(this.clientX=void 0!==Ne.clientX?Ne.clientX:Ne.pageX,this.clientY=void 0!==Ne.clientY?Ne.clientY:Ne.pageY,this.screenX=Ne.screenX||0,this.screenY=Ne.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}Rn(Ch,xo);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Th="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Ne,qt){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Ne,this.ha=qt,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function hc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var hn,Ne=m.g[Q],qt=Array.prototype.indexOf.call(Ne,V,void 0);(hn=0<=qt)&&Array.prototype.splice.call(Ne,qt,1),hn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Ne){for(var qt=0;qt>>0);function Cm(m){return"function"==typeof m?m:(m[Dh]||(m[Dh]=function(V){return m.handleEvent(V)}),m[Dh])}function vs(){vu.call(this),this.i=new hc(this),this.M=this,this.F=null}function os(m,V){var Q,Ne=m.F;if(Ne)for(Q=[];Ne;Ne=Ne.F)Q.push(Ne);if(m=m.M,Ne=V.type||V,"string"==typeof V)V=new xo(V,m);else if(V instanceof xo)V.target=V.target||m;else{var qt=V;Ut(V=new xo(Ne,m),qt)}if(qt=!0,Q)for(var hn=Q.length-1;0<=hn;hn--){var nr=V.g=Q[hn];qt=bh(nr,Ne,!0,V)&&qt}if(qt=bh(nr=V.g=m,Ne,!0,V)&&qt,qt=bh(nr,Ne,!1,V)&&qt,Q)for(hn=0;hn{m.g=null,m.i&&(m.i=!1,Dm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}Rn(vs,vu),vs.prototype[Th]=!0,vs.prototype.removeEventListener=function(m,V,Q,Ne){Em(this,m,V,Q,Ne)},vs.prototype.N=function(){if(vs.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Ne=0;NeNe.length)){var qt=Ne[1];if(Array.isArray(qt)&&!(1>qt.length)){var hn=qt[0];if("noop"!=hn&&"stop"!=hn&&"close"!=hn)for(var nr=1;nrV.length?Mm:(V=V.slice(Ne,Ne+Q),m.C=Ne+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(yt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Au(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Ne=Q.Da.g.parse(V)}catch{Ne=null}if(Array.isArray(Ne)&&3==Ne.length){var qt=Ne;if(0==qt[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3qt[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(yt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Tu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Gr(V))for(qt=Q.Da.g.parse(V),V=0;VDs)&&(3!=Ds||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=Ds||7==V||pc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Ne=R_(this.g);m="";var qt=Ne.length,hn=4==Cu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Au(this),Ph(this);var nr="";break t}this.h.i=new R.TextDecoder}for(V=0;V=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return Wn(m.i)}function T_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Ne){var qt=Ne.toLowerCase();Ne!=qt&&(Vm(this,Ne),Bm(this,qt,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function co(m,V,Q){m.i.set(V,Q)}function Nh(m){return co(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}gc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Tp(this)),this.g&&(this.readyState=3,Tp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Tp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),Rn(Oo,vs);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,os(m,"complete"),os(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Cu(m)||2!=m.Z()))if(m.u&&4==Cu(m))Tm(m.Ea,0,m);else if(os(m,"readystatechange"),4==Cu(m)){m.h=!1;try{const nr=m.Z();e:switch(nr){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Ne;if(Ne=0===nr){var qt=String(m.D).match(D_)[1]||null;!qt&&R.self&&R.self.location&&(qt=R.self.location.protocol.slice(0,-1)),Ne=!aA.test(qt?qt.toLowerCase():"")}Q=Ne}if(Q)os(m,"complete"),os(m,"success");else{m.m=6;try{var hn=2{}:null;m.g=null,m.v=null,V||os(m,"ready");try{Q.onreadystatechange=Ne}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Cu(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new Eu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0ji)hn=Math.max(0,qt[Io].g-100),ro=!1;else try{sA(_s,nr,"req"+ji+"_")}catch{Ne&&Ne(_s)}}if(ro){Ne=nr.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Ne}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(yt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Iu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=al(m.qa);co(V,"RID","rpc"),co(V,"SID",m.K),co(V,"AID",m.T),co(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&co(V,"TO",m.ja),co(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Dp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(al(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Ne=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Ne=1}if(0!=m.G)if(V.o)if(1==Ne){Q=V.m?V.m.length:0,V=Date.now()-V.F;var qt=m.B;os(Ne=hp(),new hd(Ne,Q)),zm(m)}else Hm(m);else if(3==(qt=V.s)||0==qt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(yt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Ne&&Gm(m)))switch(Q&&0{Ne.abort(),vc(0,0,!1,V)},1e4);fetch(m,{signal:Ne.signal}).then(hn=>{clearTimeout(qt),vc(0,0,!!hn.ok,V)}).catch(()=>{clearTimeout(qt),vc(0,0,!1,V)})}(Ne.toString(),Q)}else Do(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Ln(m.ka,V),Ln(m.ka,m.i),m.h.i.length=0,Wn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Ne=Q instanceof gc?al(Q):new gc(Q);if(""!=Ne.g)V&&(Ne.g=V+"."+Ne.g),md(Ne,Ne.s);else{var qt=R.location;Ne=qt.protocol,V=V?V+"."+qt.hostname:qt.hostname,qt=+qt.port;var hn=new gc(null);Ne&&gd(hn,Ne),V&&(hn.g=V),qt&&md(hn,qt),Q&&(hn.l=Q),Ne=hn}return V=m.ya,(Q=m.D)&&V&&co(Ne,Q,V),co(Ne,"VER",m.la),Lh(m,Ne),Ne}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new Oo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function qs(m,V){vs.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Gr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Gr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){sl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=Oo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Ne){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=yt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(hn){return void z0(this,hn)}if(m=Q||"",Q=new Map(this.headers),Ne)if(Object.getPrototypeOf(Ne)===Object.prototype)for(var qt in Ne)Q.set(qt,Ne[qt]);else{if("function"!=typeof Ne.keys||"function"!=typeof Ne.get)throw Error("Unknown input type for opt_headers: "+String(Ne));for(const hn of Ne.keys())Q.set(hn,Ne.get(hn))}Ne=Array.from(Q.keys()).find(hn=>"content-type"==hn.toLowerCase()),qt=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Ne||qt||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[hn,nr]of Q)this.g.setRequestHeader(hn,nr);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(hn){z0(this,hn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,os(this,"complete"),os(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),Oo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(yt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Do(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),Do(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),Do(2)):(this.j.info("Failed to ping google.com"),Do(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new qs(m,V)},Rn(qs,vs),qs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},qs.prototype.close=function(){P_(this.g)},qs.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},qs.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,qs.aa.N.call(this)},Rn(L_,sl),Rn(V_,cd),Rn(Ed,Uh),Ed.prototype.ua=function(){os(this.g,"a")},Ed.prototype.ta=function(m){os(this.g,new L_(m))},Ed.prototype.sa=function(m){os(this.g,new V_)},Ed.prototype.ra=function(){os(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,qs.prototype.send=qs.prototype.o,qs.prototype.open=qs.prototype.m,qs.prototype.close=qs.prototype.close,$e=mt.createWebChannelTransport=function(){return new Sp},_e=mt.getStatEventTarget=function(){return hp()},Ze=mt.Event=yu,Te=mt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,It=mt.ErrorCode=gp,g_.COMPLETE="complete",Tt=mt.EventType=g_,ud.EventType=fc,fc.OPEN="a",fc.CLOSE="b",fc.ERROR="c",fc.MESSAGE="d",vs.prototype.listen=vs.prototype.K,zt=mt.WebChannel=ud,Dt=mt.FetchXmlHttpFactory=Ap,Oo.prototype.listenOnce=Oo.prototype.L,Oo.prototype.getLastError=Oo.prototype.Ka,Oo.prototype.getLastErrorCode=Oo.prototype.Ba,Oo.prototype.getStatus=Oo.prototype.Z,Oo.prototype.getResponseJson=Oo.prototype.Oa,Oo.prototype.getResponseText=Oo.prototype.oa,Oo.prototype.send=Oo.prototype.ea,Oo.prototype.setWithCredentials=Oo.prototype.Ha,xt=mt.XhrIo=Oo}).apply(typeof at<"u"?at:typeof self<"u"?self:typeof window<"u"?window:{});const Le="@firebase/firestore";class Oe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Oe.UNAUTHENTICATED=new Oe(null),Oe.GOOGLE_CREDENTIALS=new Oe("google-credentials-uid"),Oe.FIRST_PARTY=new Oe("first-party-uid"),Oe.MOCK_USER=new Oe("mock-user");let Ct="10.12.1";const kt=new tt.Vy("@firebase/firestore");function Cn(){return kt.logLevel}function st(l,...n){if(kt.logLevel<=tt.$b.DEBUG){const i=n.map(Re);kt.debug(`Firestore (${Ct}): ${l}`,...i)}}function cn(l,...n){if(kt.logLevel<=tt.$b.ERROR){const i=n.map(Re);kt.error(`Firestore (${Ct}): ${l}`,...i)}}function vt(l,...n){if(kt.logLevel<=tt.$b.WARN){const i=n.map(Re);kt.warn(`Firestore (${Ct}): ${l}`,...i)}}function Re(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function G(l="Unexpected state"){const n=`FIRESTORE (${Ct}) INTERNAL ASSERTION FAILED: `+l;throw cn(n),new Error(n)}function X(l,n){l||G()}function ue(l,n){return l}const Ee={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ve extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class ut{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class fn{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class xn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(Oe.UNAUTHENTICATED))}shutdown(){}}class un{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Je{constructor(n){this.t=n,this.currentUser=Oe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new ut;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new ut,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,he.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{st("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(st("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new ut)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(st("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new fn(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new Oe(n)}}class Sn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=Oe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class kn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Sn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(Oe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class On{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class or{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&st("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,st("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{st("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):st("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new On(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function cr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Lt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class yn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return yn.fromMillis(Date.now())}static fromDate(n){return yn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new yn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class En{constructor(n){this.timestamp=n}static fromTimestamp(n){return new En(n)}static min(){return new En(new yn(0,0))}static max(){return new En(new yn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Fr{constructor(n,i,s){void 0===i?i=0:i>n.length&&G(),void 0===s?s=n.length-i:s>n.length-i&&G(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Fr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Fr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Vn extends Fr{construct(n,i,s){return new Vn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Vn(i)}static emptyPath(){return new Vn([])}}const $n=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class In extends Fr{construct(n,i,s){return new In(n,i,s)}static isValidIdentifier(n){return $n.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),In.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new In(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Vn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Vn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new on(new Vn(n.slice()))}}class Br{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Br(En.min(),on.empty(),-1)}static max(){return new Br(En.max(),on.empty(),-1)}}function ar(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=on.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const Lr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class li{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Di(l){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,he.A)(function*(l){if(l.code!==Ee.FAILED_PRECONDITION||l.message!==Lr)throw l;st("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ve{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&G(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new ve((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof ve?i:ve.resolve(i)}catch(i){return ve.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.reject(i)}static resolve(n){return new ve((i,s)=>{i(n)})}static reject(n){return new ve((i,s)=>{s(n)})}static waitFor(n){return new ve((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=ve.resolve(!1);for(const s of n)i=i.next(u=>u?ve.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new ve((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=Ae,++R,R===p&&s(_)},Ae=>u(Ae))}})}static doWhile(n,i){return new ve((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function Ge(l){return"IndexedDbTransactionError"===l.name}let Tn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Xn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function Rr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function di(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function Yr(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Hr{constructor(n,i){this.comparator=n,this.root=i||tr.EMPTY}insert(n,i){return new Hr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,tr.BLACK,null,null))}remove(n){return new Hr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,tr.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new _i(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new _i(this.root,n,this.comparator,!1)}getReverseIterator(){return new _i(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new _i(this.root,n,this.comparator,!0)}}class _i{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class tr{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:tr.RED,this.left=null!=u?u:tr.EMPTY,this.right=null!=p?p:tr.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new tr(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return tr.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return tr.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,tr.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,tr.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw G();const n=this.left.check();if(n!==this.right.check())throw G();return n+(this.isRed()?0:1)}}tr.EMPTY=null,tr.RED=!0,tr.BLACK=!1,tr.EMPTY=new class{constructor(){this.size=0}get key(){throw G()}get value(){throw G()}get color(){throw G()}get left(){throw G()}get right(){throw G()}copy(n,i,s,u,p){return this}insert(n,i,s){return new tr(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Zn{constructor(n){this.comparator=n,this.data=new Hr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new mo(this.data.getIterator())}getIteratorFrom(n){return new mo(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Zn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Zn(this.comparator);return i.data=n,i}}class mo{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class yi{constructor(n){this.fields=n,n.sort(In.comparator)}static empty(){return new yi([])}unionWith(n){let i=new Zn(In.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new yi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Lt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class vo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ui{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new vo("Invalid base64 string: "+p):p}}(n);return new ui(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_noe(i,n))}function Ce(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=fe(p.integerValue||p.doubleValue),k=fe(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return dt(l.timestampValue,n.timestampValue);case 4:return dt(ct(l),ct(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=K(p),k=K(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=pn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=pn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function vn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Kn{constructor(n){this.value=n}static empty(){return new Kn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=pn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());en(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return oe(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Kn(pn(this.value))}}function Qr(l){const n=[];return di(l.fields,(i,s)=>{const u=new In([i]);if(en(s)){const p=Qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new yi(n)}class Wr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new Wr(n,0,En.min(),En.min(),En.min(),Kn.empty(),0)}static newFoundDocument(n,i,s,u){return new Wr(n,1,i,En.min(),s,u,0)}static newNoDocument(n,i){return new Wr(n,2,i,En.min(),En.min(),Kn.empty(),0)}static newUnknownDocument(n,i){return new Wr(n,3,i,En.min(),En.min(),Kn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(En.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Kn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Kn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=En.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Wr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Wr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class kr{constructor(n,i){this.position=n,this.inclusive=i}}function ki(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return G()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Oi extends Jo{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Oi(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function wo(l){for(const n of l.filters)if(n instanceof Oi)return!1;return!0}(l)&&Wo(l)}function ws(l){if(l instanceof Kr)return l.field.canonicalString()+l.op.toString()+vr(l.value);if(Ko(l))return l.filters.map(n=>ws(n)).join(",");{const n=l.filters.map(i=>ws(i)).join(",");return`${l.op}(${n})`}}function ho(l,n){return l instanceof Kr?(s=l,(u=n)instanceof Kr&&s.op===u.op&&s.field.isEqual(u.field)&&oe(s.value,u.value)):l instanceof Oi?function(s,u){return u instanceof Oi&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&ho(_,u.filters[R]),!0)}(l,n):void G();var s,u}function Jr(l){return l instanceof Kr?`${(i=l).field.canonicalString()} ${i.op} ${vr(i.value)}`:l instanceof Oi?function(i){return i.op.toString()+" {"+i.getFilters().map(Jr).join(" ,")+"}"}(l):"Filter";var i}class Ao extends Kr{constructor(n,i,s){super(n,i,s),this.key=on.fromName(s.referenceValue)}matches(n){const i=on.comparator(n.key,this.key);return this.matchesComparison(i)}}class Js extends Kr{constructor(n,i){super(n,"in",i),this.keys=Us(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Ss extends Kr{constructor(n,i){super(n,"not-in",i),this.keys=Us(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Us(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>on.fromName(s.referenceValue))}class Rs extends Kr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ot(i)&&P(i.arrayValue,this.value)}}class Zo extends Kr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class ls extends Kr{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Xo extends Kr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ot(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class us{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ms(l,n=null,i=[],s=[],u=null,p=null,_=null){return new us(l,n,i,s,u,p,_)}function ne(l){const n=ue(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>ws(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),Xn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>vr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>vr(s)).join(",")),n.ue=i}return n.ue}function ee(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Zn(In.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new Bi(p,s))}),i.has(In.keyField().canonicalString())||n.ce.push(new Bi(In.keyField(),s))}return n.ce}function zn(l){const n=ue(l);return n.le||(n.le=function pi(l,n){if("F"===l.limitType)return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new Bi(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new kr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new kr(l.startAt.position,l.startAt.inclusive):null;return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,an(l))),n.le}function Ei(l,n,i){return new B(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function ao(l,n){return ee(zn(l),zn(n))&&l.limitType===n.limitType}function No(l){return`${ne(zn(l))}|lt:${l.limitType}`}function Ki(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Jr(u)).join(", ")}]`),Xn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>vr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>vr(u)).join(",")),`Target(${s})`}(zn(l))}; limitType=${l.limitType})`}function Qi(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):on.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of an(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,an(s),u)||s.endAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,an(s),u)));var s,u}function cs(l){return(n,i)=>{let s=!1;for(const u of an(l)){const p=ys(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function ys(l,n,i){const s=l.field.isKeyField()?on.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ce(k,q):G()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return G()}}class Eo{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return Yr(this.inner)}size(){return this.innerSize}}const ko=new Hr(on.comparator);function jr(){return ko}const Zi=new Hr(on.comparator);function eo(...l){let n=Zi;for(const i of l)n=n.insert(i.key,i);return n}function So(l){let n=Zi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Li(){return es()}function Ba(){return es()}function es(){return new Eo(l=>l.toString(),(l,n)=>l.isEqual(n))}const Ps=new Hr(on.comparator),cl=new Zn(on.comparator);function ei(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Zn(nt);function Ua(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function xs(l){return{integerValue:""+l}}function hl(l,n){return function wn(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?xs(n):Ua(l,n)}class $a{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Os?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&je(p)&&(p=Be(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):function(u,p){const _=jl(u,p),R=Ru(_)+Ru(u.Pe);return Fe(_)&&Fe(u.Pe)?xs(R):Ua(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):i}function jl(l,n){return l instanceof hs?Fe(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Os extends $a{}class $s extends $a{constructor(n){super(),this.elements=n}}function ds(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>oe(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ns extends $a{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!oe(u,s));return{arrayValue:{values:i}}}class hs extends $a{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Ru(l){return fe(l.integerValue||l.doubleValue)}function Hl(l){return ot(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class js{constructor(n,i){this.version=n,this.transformResults=i}}class Yi{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Yi}static exists(n){return new Yi(void 0,n)}static updateTime(n){return new Yi(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ya(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class ja{}function Ea(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new j(l.key,Yi.none()):new ea(l.key,l.data,Yi.none());{const i=l.data,s=Kn.empty();let u=new Zn(In.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new Co(l.key,s,new yi(u.toArray()),Yi.none())}}function za(l,n,i){l instanceof ea?function(u,p,_){const R=u.value.clone(),k=Ca(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof Co?function(u,p,_){if(!ya(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=Ca(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function ts(l,n,i,s){return l instanceof ea?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=p.value.clone(),Ae=T(p.fieldTransforms,k,_);return q.setAll(Ae),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof Co?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=T(p.fieldTransforms,k,_),Ae=_.data;return Ae.setAll(Gl(p)),Ae.setAll(q),_.convertToFoundDocument(_.version,Ae).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(He=>He.field))}(l,n,i,s):(R=i,ya(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function Ia(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Kn.empty()),i.set(s.field,p))}return i||null}function Aa(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Lt(s,u,(p,_)=>function Qo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof $s&&u instanceof $s||s instanceof Ns&&u instanceof Ns?Lt(s.elements,u.elements,oe):s instanceof hs&&u instanceof hs?oe(s.Pe,u.Pe):s instanceof Os&&u instanceof Os);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class ea extends ja{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class Co extends ja{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Ca(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=Ea(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(En.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),ei())}isEqual(n){return this.batchId===n.batchId&&Lt(this.mutations,n.mutations,(i,s)=>Aa(i,s))&&Lt(this.baseMutations,n.baseMutations,(i,s)=>Aa(i,s))}}class De{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return Ps}();const p=n.mutations;for(let _=0;_=8)throw new Ni(`Invalid padding: ${i}`);if(s<0)throw new Ni(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Ni(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Ni(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=it.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(it.fromNumber(s)));return 1===u.compare(to)&&(u=new it([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=wi(n),[s,u]=Bn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=ei(),i=ei(),s=ei();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:G()}}),new Vi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=ta()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class zs{constructor(n){this.Le=n,this.Be=new Map,this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:G()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(qe(p))if(0===s){const _=new on(p.path);this.Ue(i,_,Wr.newNoDocument(_,En.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=K(s).toUint8Array()}catch(k){if(k instanceof vo)return vt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new ir(_,u,p)}catch(k){return vt(k instanceof Ni?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&qe(R.target)){const k=new on(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,Wr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=ei();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new lo(n,i,this.Qe,this.ke,s);return this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new io,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Zn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||st("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new io),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function qr(){return new Hr(on.comparator)}function ta(){return new Hr(on.comparator)}const _c={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},no={and:"AND",or:"OR"};class Fo{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ks(l,n){return l.useProto3Json||Xn(n)?n:{value:n}}function rs(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function na(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function yc(l,n){return rs(l,n.toTimestamp())}function Ui(l){return X(!!l),En.fromTimestamp(function(i){const s=ge(i);return new yn(s.seconds,s.nanos)}(l))}function ra(l,n){return Es(l,n).canonicalString()}function Es(l,n){const i=(u=l,new Vn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function ti(l){const n=Vn.fromString(l);return X(E(n)),n}function Ta(l,n){return ra(l.databaseId,n.path)}function ps(l,n){const i=ti(n);if(i.get(1)!==l.databaseId.projectId)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new on(oo(i))}function is(l,n){return ra(l.databaseId,n)}function Da(l){return new Vn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function oo(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Mu(l,n,i){return{name:Ta(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[is(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=is(l,u);const p=function(q){if(0!==q.length)return Kh(Oi.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(Ae=>{return{field:Sa((yt=Ae).field),direction:Ha(yt.dir)};var yt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=ks(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function ba(l){let n=function pl(l){const n=ti(l);return 4===n.length?Vn.emptyPath():oo(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const Ae=i.from[0];Ae.allDescendants?u=Ae.collectionId:n=n.child(Ae.collectionId)}let p=[];i.where&&(p=function(He){const yt=wa(He);return yt instanceof Oi&&Ko(yt)?yt.getFilters():[yt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(yt=>{return new Bi(Ga((Rn=yt).field),function(Ln){switch(Ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(Rn.direction));var Rn}));let R=null;i.limit&&(R=function(He){let yt;return yt="object"==typeof He?He.value:He,Xn(yt)?null:yt}(i.limit));let k=null;var He;i.startAt&&(k=new kr((He=i.startAt).values||[],!!He.before));let q=null;return i.endAt&&(q=function(He){return new kr(He.values||[],!He.before)}(i.endAt)),function x(l,n,i,s,u,p,_,R){return new B(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function wa(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Ga(i.unaryFilter.field);return Kr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Ga(i.unaryFilter.field);return Kr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=Ga(i.unaryFilter.field);return Kr.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Ga(i.unaryFilter.field);return Kr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return G()}}(l):void 0!==l.fieldFilter?Kr.create(Ga((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return G()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Oi.create(i.compositeFilter.filters.map(s=>wa(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return G()}}(i.compositeFilter.op))}(l):G();var i}function Ha(l){return _c[l]}function tg(l){return fl[l]}function Dd(l){return no[l]}function Sa(l){return{fieldPath:l.canonicalString()}}function Ga(l){return In.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Kr?function(i){if("=="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Sa(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Oi?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Dd(i.op),filters:s}}}(l):G()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=En.min(),_=En.min(),R=ui.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class N{constructor(n){this.ct=n}}function Xr(l){const n=ba({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?Ei(n,n.limit,"L"):n}class Ra{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(fe(n.integerValue));else if("doubleValue"in n){const s=fe(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=ge(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(K(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?vn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):G()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),on.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ra.bt=new Ra;class Ls{constructor(){this._n=new Tc}addToCollectionParentIndex(n,i){return this._n.add(i),ve.resolve()}getCollectionParents(n,i){return ve.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return ve.resolve()}deleteFieldIndex(n,i){return ve.resolve()}deleteAllFieldIndexes(n){return ve.resolve()}createTargetIndexes(n,i){return ve.resolve()}getDocumentsMatchingTarget(n,i){return ve.resolve(null)}getIndexType(n,i){return ve.resolve(0)}getFieldIndexes(n,i){return ve.resolve([])}getNextCollectionGroupToUpdate(n){return ve.resolve(null)}getMinOffset(n,i){return ve.resolve(Br.min())}getMinOffsetFromCollectionGroup(n,i){return ve.resolve(Br.min())}updateCollectionGroup(n,i,s){return ve.resolve()}updateIndexEntries(n,i){return ve.resolve()}}class Tc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Zn(Vn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Zn(Vn.comparator)).toArray()}}new Uint8Array(0);class Dr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Dr(n,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Dr.DEFAULT_COLLECTION_PERCENTILE=10,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Dr.DEFAULT=new Dr(41943040,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Dr.DISABLED=new Dr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class ua{constructor(){this.changes=new Eo(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,Wr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?ve.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Vs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class ha{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&ts(s.mutation,u,yi.empty(),yn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,ei()).next(()=>s))}getLocalViewOfDocuments(n,i,s=ei()){const u=Li();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=eo();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Li();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,ei()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=jr();const _=es(),R=es();return i.forEach((k,q)=>{const Ae=s.get(q.key);u.has(q.key)&&(void 0===Ae||Ae.mutation instanceof Co)?p=p.insert(q.key,q):void 0!==Ae?(_.set(q.key,Ae.mutation.getFieldMask()),ts(Ae.mutation,q,Ae.mutation.getFieldMask(),yn.now())):_.set(q.key,yi.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,Ae)=>_.set(q,Ae)),i.forEach((q,Ae)=>{var He;return R.set(q,new Vs(Ae,null!==(He=_.get(q))&&void 0!==He?He:null))}),R))}recalculateAndSaveOverlays(n,i){const s=es();let u=new Hr((_,R)=>_-R),p=ei();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let Ae=s.get(k)||yi.empty();Ae=R.applyToLocalView(q,Ae),s.set(k,Ae);const He=(u.get(R.batchId)||ei()).add(k);u=u.insert(R.batchId,He)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,Ae=k.value,He=Ba();Ae.forEach(yt=>{if(!p.has(yt)){const Yt=Ea(i.get(yt),s.get(yt));null!==Yt&&He.set(yt,Yt),p=p.add(yt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,He))}return ve.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return on.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Pe(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):ve.resolve(Li());let R=-1,k=p;return _.next(q=>ve.forEach(q,(Ae,He)=>(R{k=k.insert(Ae,yt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,ei())).next(Ae=>({batchId:R,changes:So(Ae)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new on(i)).next(s=>{let u=eo();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=eo();return this.indexManager.getCollectionParents(n,p).next(R=>ve.forEach(R,k=>{const q=(He=i,yt=k.child(p),new B(yt,null,He.explicitOrderBy.slice(),He.filters.slice(),He.limit,He.limitType,He.startAt,He.endAt));var He,yt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(Ae=>{Ae.forEach((He,yt)=>{_=_.insert(He,yt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const Ae=q.getKey();null===_.get(Ae)&&(_=_.insert(Ae,Wr.newInvalidDocument(Ae)))});let R=eo();return _.forEach((k,q)=>{const Ae=p.get(k);void 0!==Ae&&ts(Ae.mutation,q,yi.empty(),yn.now()),Qi(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return ve.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Ui(u.createTime)}),ve.resolve();var u}getNamedQuery(n,i){return ve.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Xr(u.bundledQuery),readTime:Ui(u.readTime)}),ve.resolve();var u}}class Rc{constructor(){this.overlays=new Hr(on.comparator),this.hr=new Map}getOverlay(n,i){return ve.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Li();return ve.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),ve.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),ve.resolve()}getOverlaysForCollection(n,i,s){const u=Li(),p=i.length+1,_=new on(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return ve.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Hr((q,Ae)=>q-Ae);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let Ae=p.get(q.largestBatchId);null===Ae&&(Ae=Li(),p=p.insert(q.largestBatchId,Ae)),Ae.set(q.getKey(),q)}}const R=Li(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,Ae)=>R.set(q,Ae)),!(R.size()>=u)););return ve.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Qe(i,s));let p=this.hr.get(i);void 0===p&&(p=ei(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Zn(Vo.Ir),this.Tr=new Zn(Vo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Vo(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Vo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1);let p=ei();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new Vo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Vo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return on.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||on.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Zn(Vo.Ir)}checkEmpty(n){return ve.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new Vo(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return ve.resolve(_)}lookupMutationBatch(n,i){return ve.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return ve.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return ve.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return ve.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Vo(i,0),u=new Vo(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),ve.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Zn(nt);return i.forEach(u=>{const p=new Vo(u,0),_=new Vo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),ve.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;on.isDocumentKey(p)||(p=p.child(""));const _=new Vo(new on(p),0);let R=new Zn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),ve.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return ve.forEach(i.mutations,u=>{const p=new Vo(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Vo(i,0),u=this.wr.firstAfterOrEqual(s);return ve.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return ve.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Fu{constructor(n){this.vr=n,this.docs=new Hr(on.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return ve.resolve(s?s.document.mutableCopy():Wr.newInvalidDocument(i))}getEntries(n,i){let s=jr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():Wr.newInvalidDocument(u))}),ve.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=jr();const _=i.path,R=new on(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:Ae}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||ar(new Br((l=Ae).readTime,l.key,-1),s)<=0||(u.has(Ae.key)||Qi(i,Ae))&&(p=p.insert(Ae.key,Ae.mutableCopy()))}var l;return ve.resolve(p)}getAllFromCollectionGroup(n,i,s,u){G()}Fr(n,i){return ve.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return ve.resolve(this.size)}}class Nd extends ua{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),ve.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Mc{constructor(n){this.persistence=n,this.Mr=new Eo(i=>ne(i),ee),this.lastRemoteSnapshotVersion=En.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),ve.resolve()}getLastRemoteSnapshotVersion(n){return ve.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return ve.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),ve.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),ve.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,ve.resolve()}updateTargetData(n,i){return this.qn(i),ve.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,ve.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),ve.waitFor(p).next(()=>u)}getTargetCount(n){return ve.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return ve.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),ve.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),ve.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),ve.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return ve.resolve(s)}containsKey(n,i){return ve.resolve(this.Nr.containsKey(i))}}class Pc{constructor(n,i){this.Br={},this.overlays={},this.kr=new Tn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Mc(this),this.indexManager=new Ls,this.remoteDocumentCache=new Fu(s=>this.referenceDelegate.Kr(s)),this.serializer=new N(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Rc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){st("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return ve.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends li{constructor(n){super(),this.currentSequenceNumber=n}}class xa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new xa(n)}get Jr(){if(this.jr)return this.jr;throw G()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),ve.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),ve.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),ve.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ve.forEach(this.Jr,s=>{const u=on.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,En.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return ve.or([()=>ve.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Gi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=ei(),u=ei();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Gi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function pt(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Cn()<=tt.$b.DEBUG&&st("QueryEngine","The SDK decides to create cache indexes for query:",Ki(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,zn(i))):ve.resolve())}ji(n,i){if(z(i))return ve.resolve(null);let s=zn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=Ei(i,null,"F"),s=zn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=ei(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,Ei(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return z(i)||u.isEqual(En.min())?ve.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?ve.resolve(null):(Cn()<=tt.$b.DEBUG&&st("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),Ki(i)),this.es(n,_,i,function Tr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=En.fromTimestamp(1e9===s?new yn(i+1,0):new yn(i,s));return new Br(u,on.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Zn(cs(n));return i.forEach((u,p)=>{Qi(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return Cn()<=tt.$b.DEBUG&&st("QueryEngine","Using full collection scan to execute query:",Ki(i)),this.zi.getDocumentsMatchingQuery(n,i,Br.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Hr(nt),this.rs=new Eo(p=>ne(p),ee),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new ha(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Uu.apply(this,arguments)}function Uu(){return(Uu=(0,he.A)(function*(l,n){const i=ue(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=ei();for(const q of u){_.push(q.batchId);for(const Ae of q.mutations)k=k.add(Ae.key)}for(const q of p){R.push(q.batchId);for(const Ae of q.mutations)k=k.add(Ae.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Ws(l){const n=ue(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Oc(l,n){const i=ue(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function pa(l,n,i){return Nc.apply(this,arguments)}function Nc(){return(Nc=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Ge(_))throw _;st("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=ue(l);let u=En.min(),p=ei();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,Ae){const He=ue(k),yt=He.rs.get(Ae);return void 0!==yt?ve.resolve(He.ns.get(yt)):He.Qr.getTargetData(q,Ae)}(s,_,zn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:En.min(),i?p:ei())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||En.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function qo(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class Hu{constructor(){this.activeTargetIds=function Zs(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new Hu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new Hu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){st("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){st("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Vc=null;function Bs(){return null===Vc?Vc=268435456+Math.round(2147483648*Math.random()):Vc++,"0x"+Vc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Gu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const jo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=Bs(),k=this.vo(i,s.toUriEncodedString());st("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(Ae=>(st("RestConnection",`Received RPC '${i}' ${R}: `,Ae),Ae),Ae=>{throw vt("RestConnection",`RPC '${i}' ${R} failed with error: `,Ae,"url: ",k,"request:",u),Ae})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Ct,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=Bs();return new Promise((_,R)=>{const k=new xt;k.setWithCredentials(!0),k.listenOnce(Tt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case It.NO_ERROR:const Ae=k.getResponseJson();st(jo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(Ae)),_(Ae);break;case It.TIMEOUT:st(jo,`RPC '${n}' ${p} timed out`),R(new Ve(Ee.DEADLINE_EXCEEDED,"Request time out"));break;case It.HTTP_ERROR:const He=k.getStatus();if(st(jo,`RPC '${n}' ${p} failed with status:`,He,"response text:",k.getResponseText()),He>0){let yt=k.getResponseJson();Array.isArray(yt)&&(yt=yt[0]);const Yt=null==yt?void 0:yt.error;if(Yt&&Yt.status&&Yt.message){const Rn=function(Ln){const Cr=Ln.toLowerCase().replace(/_/g,"-");return Object.values(Ee).indexOf(Cr)>=0?Cr:Ee.UNKNOWN}(Yt.status);R(new Ve(Rn,Yt.message))}else R(new Ve(Ee.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Ve(Ee.UNAVAILABLE,"Connection failed."));break;default:G()}}finally{st(jo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);st(jo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=Bs(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=$e(),R=_e(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new Dt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const Ae=p.join("");st(jo,`Creating RPC '${n}' stream ${u}: ${Ae}`,k);const He=_.createWebChannel(Ae,k);let yt=!1,Yt=!1;const Rn=new Gu({lo:Ln=>{Yt?st(jo,`Not sending because RPC '${n}' stream ${u} is closed:`,Ln):(yt||(st(jo,`Opening RPC '${n}' stream ${u} transport.`),He.open(),yt=!0),st(jo,`RPC '${n}' stream ${u} sending:`,Ln),He.send(Ln))},ho:()=>He.close()}),Wn=(Ln,Cr,Gr)=>{Ln.listen(Cr,Or=>{try{Gr(Or)}catch(si){setTimeout(()=>{throw si},0)}})};return Wn(He,zt.EventType.OPEN,()=>{Yt||(st(jo,`RPC '${n}' stream ${u} transport opened.`),Rn.mo())}),Wn(He,zt.EventType.CLOSE,()=>{Yt||(Yt=!0,st(jo,`RPC '${n}' stream ${u} transport closed`),Rn.po())}),Wn(He,zt.EventType.ERROR,Ln=>{Yt||(Yt=!0,vt(jo,`RPC '${n}' stream ${u} transport errored:`,Ln),Rn.po(new Ve(Ee.UNAVAILABLE,"The operation could not be completed")))}),Wn(He,zt.EventType.MESSAGE,Ln=>{var Cr;if(!Yt){const Gr=Ln.data[0];X(!!Gr);const si=Gr.error||(null===(Cr=Gr[0])||void 0===Cr?void 0:Cr.error);if(si){st(jo,`RPC '${n}' stream ${u} received error:`,si);const Wi=si.status;let Ti=function(Rt){const Ut=Er[Rt];if(void 0!==Ut)return ri(Ut)}(Wi),Bt=si.message;void 0===Ti&&(Ti=Ee.INTERNAL,Bt="Unknown error status: "+Wi+" with message "+si.message),Yt=!0,Rn.po(new Ve(Ti,Bt)),He.close()}else st(jo,`RPC '${n}' stream ${u} received:`,Gr),Rn.yo(Gr)}}),Wn(R,Ze.STAT_EVENT,Ln=>{Ln.stat===Te.PROXY?st(jo,`RPC '${n}' stream ${u} detected buffering proxy`):Ln.stat===Te.NOPROXY&&st(jo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{Rn.fo()},0),Rn}}function Dl(){return typeof document<"u"?document:null}function Bc(l){return new Fo(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&st("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,he.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,he.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,he.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===Ee.RESOURCE_EXHAUSTED?(cn(i.toString()),cn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===Ee.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Ve(Ee.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,he.A)(function*(){n.state=0,n.start()}))}c_(n){return st("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(st("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:G(),u=n.targetChange.targetIds||[],p=function(q,Ae){return q.useProto3Json?(X(void 0===Ae||"string"==typeof Ae),ui.fromBase64String(Ae||"")):(X(void 0===Ae||Ae instanceof Buffer||Ae instanceof Uint8Array),ui.fromUint8Array(Ae||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const Ae=void 0===q.code?Ee.UNKNOWN:ri(q.code);return new Ve(Ae,q.message||"")}(_);i=new Si(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ps(l,s.document.name),p=Ui(s.document.updateTime),_=s.document.createTime?Ui(s.document.createTime):En.min(),R=new Kn({mapValue:{fields:s.document.fields}}),k=Wr.newFoundDocument(u,p,_,R);i=new uo(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ps(l,s.document),p=s.readTime?Ui(s.readTime):En.min(),_=Wr.newNoDocument(u,p);i=new uo([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ps(l,s.document);i=new uo([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return G();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new Fn(u,p);i=new ns(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return En.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?En.min():_.readTime?Ui(_.readTime):En.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Da(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=qe(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=na(p,_.resumeToken);const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(En.min())>0){R.readTime=rs(p,_.snapshotVersion.toTimestamp());const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Pu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return G()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Da(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function Is(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Ui(u.updateTime?u.updateTime:p);return _.isEqual(En.min())&&(_=Ui(p)),new js(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Ui(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Da(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function gs(l,n){let i;if(n instanceof ea)i={update:Mu(l,n.key,n.value)};else if(n instanceof j)i={delete:Ta(l,n.key)};else if(n instanceof Co)i={update:Mu(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Ue))return G();i={verify:Ta(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Os)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof $s)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof Ns)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof hs)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw G()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:yc(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:G()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,Es(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Ve(Ee.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,Es(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Ve(Ee.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(cn(i),this.y_=!1):st("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,he.A)(function*(){var k;el(_)&&(st("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,he.A)(function*(Ae){const He=ue(Ae);He.M_.add(4),yield nu(He),He.N_.set("Unknown"),He.M_.delete(4),yield Uc(He)}),function q(Ae){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Uc(l){return $c.apply(this,arguments)}function $c(){return($c=(0,he.A)(function*(l){if(el(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,he.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Za(l,n){const i=ue(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Wu(i):Qu(i).Xo()&&df(i,n))}function po(l,n){const i=ue(l),s=Qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():el(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(En.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Qu(l).P_(n)}function hf(l,n){l.L_.xe(n),Qu(l).I_(n)}function Wu(l){l.L_=new zs({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Qu(l).start(),l.N_.w_()}function ff(l){return el(l)&&!Qu(l).Zo()&&l.F_.size>0}function el(l){return 0===ue(l).M_.size}function jc(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,he.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Ku.apply(this,arguments)}function Ku(){return(Ku=(0,he.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,he.A)(function*(l,n){jc(l),ff(l)?(l.N_.D_(n),Wu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,he.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Si&&2===n.state&&n.cause)try{yield(s=(0,he.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){st("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield zc(l,s)}else if(n instanceof uo?l.L_.Ke(n):n instanceof ns?l.L_.He(n):l.L_.We(n),!i.isEqual(En.min()))try{const s=yield Ws(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const Ae=p.F_.get(q);Ae&&p.F_.set(q,Ae.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const Ae=p.F_.get(k);if(!Ae)return;p.F_.set(k,Ae.withResumeToken(ui.EMPTY_BYTE_STRING,Ae.snapshotVersion)),hf(p,k);const He=new b(Ae.target,k,q,Ae.sequenceNumber);df(p,He)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){st("RemoteStore","Failed to raise snapshot:",s),yield zc(l,s)}var s}),mf.apply(this,arguments)}function zc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,he.A)(function*(l,n,i){if(!Ge(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Ws(l.localStore)),l.asyncQueue.enqueueRetryable((0,he.A)(function*(){st("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Uc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>zc(l,i,n))}function Xu(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,he.A)(function*(l){const n=ue(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield Oc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield zc(n,u)}Ef(n)&&Ts(n)})).apply(this,arguments)}function vy(l){return el(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return el(l)&&!ru(l).Zo()&&l.v_.length>0}function Ts(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,he.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return Hc.apply(this,arguments)}function Hc(){return(Hc=(0,he.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function tl(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,he.A)(function*(l,n,i){const s=l.v_.shift(),u=De.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Xu(l)})).apply(this,arguments)}function qu(l,n){return If.apply(this,arguments)}function If(){return If=(0,he.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,he.A)(function*(u,p){if(function bi(l){switch(l){default:return G();case Ee.CANCELLED:case Ee.UNKNOWN:case Ee.DEADLINE_EXCEEDED:case Ee.RESOURCE_EXHAUSTED:case Ee.INTERNAL:case Ee.UNAVAILABLE:case Ee.UNAUTHENTICATED:return!1;case Ee.INVALID_ARGUMENT:case Ee.NOT_FOUND:case Ee.ALREADY_EXISTS:case Ee.PERMISSION_DENIED:case Ee.FAILED_PRECONDITION:case Ee.ABORTED:case Ee.OUT_OF_RANGE:case Ee.UNIMPLEMENTED:case Ee.DATA_LOSS:return!0}}(R=p.code)&&R!==Ee.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Xu(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&Ts(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,he.A)(function*(l,n){const i=ue(l);i.asyncQueue.verifyOperationInProgress(),st("RemoteStore","RemoteStore received new credentials");const s=el(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Uc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,he.A)(function*(l,n){const i=ue(l);n?(i.M_.delete(2),yield Uc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Qu(l){return l.B_||(l.B_=function(i,s,u){const p=ue(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.B_.t_(),ff(l)?Wu(l):l.N_.set("Unknown")):(yield l.B_.stop(),jc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=ue(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:qu.bind(null,l),R_:yy.bind(null,l),A_:tl.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.k_.t_(),yield Xu(l)):(yield l.k_.stop(),l.v_.length>0&&(st("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new ut,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ve(Ee.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Yu(l,n){if(cn("AsyncQueue",`${n}: ${l}`),Ge(l))return new Ve(Ee.UNAVAILABLE,`${n}: ${l}`);throw l}class ga{constructor(n){this.comparator=n?(i,s)=>n(i,s)||on.comparator(i.key,s.key):(i,s)=>on.comparator(i.key,s.key),this.keyedMap=eo(),this.sortedSet=new Hr(this.comparator)}static emptySet(n){return new ga(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof ga)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new ga;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Ju{constructor(){this.q_=new Hr(on.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):G():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,ga.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&ao(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new Eo(n=>No(n),ao),this.onlineState="Unknown",this.z_=new Set}}function Ks(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,he.A)(function*(l,n){const i=ue(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Yu(_,`Initialization of query '${Ki(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Zu(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,he.A)(function*(l,n){const i=ue(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=ue(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=ue(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Jt{constructor(n){this.key=n}}class Mn{constructor(n){this.key=n}}class Jn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=ei(),this.mutatedKeys=ei(),this.Ia=cs(n),this.Ta=new ga(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Ju,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((Ae,He)=>{const yt=u.get(Ae),Yt=Qi(this.query,He)?He:null,Rn=!!yt&&this.mutatedKeys.has(yt.key),Wn=!!Yt&&(Yt.hasLocalMutations||this.mutatedKeys.has(Yt.key)&&Yt.hasCommittedMutations);let Ln=!1;yt&&Yt?yt.data.isEqual(Yt.data)?Rn!==Wn&&(s.track({type:3,doc:Yt}),Ln=!0):this.Ra(yt,Yt)||(s.track({type:2,doc:Yt}),Ln=!0,(k&&this.Ia(Yt,k)>0||q&&this.Ia(Yt,q)<0)&&(R=!0)):!yt&&Yt?(s.track({type:0,doc:Yt}),Ln=!0):yt&&!Yt&&(s.track({type:1,doc:yt}),Ln=!0,(k||q)&&(R=!0)),Ln&&(Yt?(_=_.add(Yt),p=Wn?p.add(Ae):p.delete(Ae)):(_=_.delete(Ae),p=p.delete(Ae)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const Ae="F"===this.query.limitType?_.last():_.first();_=_.delete(Ae.key),p=p.delete(Ae.key),s.track({type:1,doc:Ae})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((Ae,He)=>function(Yt,Rn){const Wn=Ln=>{switch(Ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return G()}};return Wn(Yt)-Wn(Rn)}(Ae.type,He.type)||this.Ia(Ae.doc,He.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Ju,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=ei(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Mn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Jt(s))}),i}pa(n){this.la=n.hs,this.Pa=ei();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class xr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class Ci{constructor(n){this.key=n,this.wa=!1}}class Yo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new Eo(R=>No(R),ao),this.Da=new Map,this.Ca=new Set,this.va=new Hr(on.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function go(l,n){return ma.apply(this,arguments)}function ma(){return(ma=(0,he.A)(function*(l,n,i=!0){const s=rc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,he.A)(function*(l,n){const i=rc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return ec.apply(this,arguments)}function ec(){return(ec=(0,he.A)(function*(l,n,i,s){const u=yield function fa(l,n){const i=ue(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,ve.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,zn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function tc(l,n,i,s,u){return nc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Za(l.remoteStore,u),R})).apply(this,arguments)}function nc(){return nc=(0,he.A)(function*(l,n,i,s,u){l.Ba=(He,yt,Yt)=>{return(Rn=(0,he.A)(function*(Ln,Cr,Gr,Or){let si=Cr.view.da(Gr);si.Xi&&(si=yield El(Ln.localStore,Cr.query,!1).then(({documents:ht})=>Cr.view.da(ht,si)));const Wi=Or&&Or.targetChanges.get(Cr.targetId),Ti=Or&&null!=Or.targetMismatches.get(Cr.targetId),Bt=Cr.view.applyChanges(si,Ln.isPrimaryClient,Wi,Ti);return Cg(Ln,Cr.targetId,Bt.fa),Bt.snapshot}),function Wn(Ln,Cr,Gr,Or){return Rn.apply(this,arguments)})(l,He,yt,Yt);var Rn};const p=yield El(l.localStore,n,!0),_=new Jn(n,p.hs),R=_.da(p.documents),k=Vi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const Ae=new xr(n,i,_);return l.ba.set(n,Ae),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),nc.apply(this,arguments)}function Tf(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!ao(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield pa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&po(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Di))):(Zd(s,u.targetId),yield pa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Df(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,he.A)(function*(l,n){const i=ue(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),po(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,he.A)(function*(l,n,i){const s=function Gc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=ue(_),q=yn.now(),Ae=R.reduce((Yt,Rn)=>Yt.add(Rn.key),ei());let He,yt;return k.persistence.runTransaction("Locally write mutations","readwrite",Yt=>{let Rn=jr(),Wn=ei();return k.os.getEntries(Yt,Ae).next(Ln=>{Rn=Ln,Rn.forEach((Cr,Gr)=>{Gr.isValidDocument()||(Wn=Wn.add(Cr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Yt,Rn)).next(Ln=>{He=Ln;const Cr=[];for(const Gr of R){const Or=Ia(Gr,He.get(Gr.key).overlayedDocument);null!=Or&&Cr.push(new Co(Gr.key,Or,Qr(Or.value.mapValue),Yi.exists(!0)))}return k.mutationQueue.addMutationBatch(Yt,q,Cr,R)}).next(Ln=>{yt=Ln;const Cr=Ln.applyToLocalDocumentSet(He,Wn);return k.documentOverlayCache.saveOverlays(Yt,Ln.batchId,Cr)})}).then(()=>({batchId:yt.batchId,changes:So(He)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Hr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Xu(s.remoteStore)}catch(u){const p=Yu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,he.A)(function*(l,n){const i=ue(l);try{const s=yield function ag(l,n){const i=ue(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((Ae,He)=>{const yt=u.get(He);if(!yt)return;R.push(i.Qr.removeMatchingKeys(p,Ae.removedDocuments,He).next(()=>i.Qr.addMatchingKeys(p,Ae.addedDocuments,He)));let Yt=yt.withSequenceNumber(p.currentSequenceNumber);var Wn,Ln,Cr;null!==n.targetMismatches.get(He)?Yt=Yt.withResumeToken(ui.EMPTY_BYTE_STRING,En.min()).withLastLimboFreeSnapshotVersion(En.min()):Ae.resumeToken.approximateByteSize()>0&&(Yt=Yt.withResumeToken(Ae.resumeToken,s)),u=u.insert(He,Yt),Ln=Yt,Cr=Ae,(0===(Wn=yt).resumeToken.approximateByteSize()||Ln.snapshotVersion.toMicroseconds()-Wn.snapshotVersion.toMicroseconds()>=3e8||Cr.addedDocuments.size+Cr.modifiedDocuments.size+Cr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Yt))});let k=jr(),q=ei();if(n.documentUpdates.forEach(Ae=>{n.resolvedLimboDocuments.has(Ae)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,Ae))}),R.push(function ju(l,n,i){let s=ei(),u=ei();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=jr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(En.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):st("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(Ae=>{k=Ae.cs,q=Ae.ls})),!s.isEqual(En.min())){const Ae=i.Qr.getLastRemoteSnapshotVersion(p).next(He=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(Ae)}return ve.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Di(s)}})).apply(this,arguments)}function _g(l,n,i){const s=ue(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=ue(_);k.onlineState=R;let q=!1;k.queries.forEach((Ae,He)=>{for(const yt of He.U_)yt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,he.A)(function*(l,n,i){const s=ue(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Hr(on.comparator);_=_.insert(p,Wr.newNoDocument(p,En.min()));const R=ei().add(p),k=new lo(En.min(),new Map,new Hr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield pa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Di)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,he.A)(function*(l,n){const i=ue(l),s=n.batch.batchId;try{const u=yield function $u(l,n){const i=ue(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,Ae){const He=q.batch,yt=He.keys();let Yt=ve.resolve();return yt.forEach(Rn=>{Yt=Yt.next(()=>Ae.getEntry(k,Rn)).next(Wn=>{const Ln=q.docVersions.get(Rn);X(null!==Ln),Wn.version.compareTo(Ln)<0&&(He.applyToRemoteDocument(Wn,q),Wn.isValidDocument()&&(Wn.setReadTime(q.commitVersion),Ae.addEntry(Wn)))})}),Yt.next(()=>R.mutationQueue.removeMutationBatch(k,He))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=ei();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,he.A)(function*(l,n,i){const s=ue(l);try{const u=yield function(_,R){const k=ue(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let Ae;return k.mutationQueue.lookupMutationBatch(q,R).next(He=>(X(null!==He),Ae=He.keys(),k.mutationQueue.removeMutationBatch(q,He))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,Ae,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,Ae)).next(()=>k.localDocuments.getDocuments(q,Ae))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=ue(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(po(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Jt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Mn?(st("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):G()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(st("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const Ae=Gi.Ki(k.targetId,q);p.push(Ae)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,he.A)(function*(q,Ae){const He=ue(q);try{yield He.persistence.runTransaction("notifyLocalViewChanges","readwrite",yt=>ve.forEach(Ae,Yt=>ve.forEach(Yt.qi,Rn=>He.persistence.referenceDelegate.addReference(yt,Yt.targetId,Rn)).next(()=>ve.forEach(Yt.Qi,Rn=>He.persistence.referenceDelegate.removeReference(yt,Yt.targetId,Rn)))))}catch(yt){if(!Ge(yt))throw yt;st("LocalStore","Failed to update sequence numbers: "+yt)}for(const yt of Ae){const Yt=yt.targetId;if(!yt.fromCache){const Rn=He.ns.get(Yt),Ln=Rn.withLastLimboFreeSnapshotVersion(Rn.snapshotVersion);He.ns=He.ns.insert(Yt,Ln)}}}),function k(q,Ae){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Tg(l,n){return Dg.apply(this,arguments)}function Dg(){return(Dg=(0,he.A)(function*(l,n){const i=ue(l);if(!i.currentUser.isEqual(n)){st("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Ve(Ee.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=ue(l),s=i.Fa.get(n);if(s&&s.wa)return ei().add(s.key);{let u=ei();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function rc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class nl{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,he.A)(function*(){i.serializer=Bc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Pc(xa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,he.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class rl{initialize(n,i){var s=this;return(0,he.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Tg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Bc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,Ae){const He=new Yo(u,p,_,R,k,q);return Ae&&(He.La=!0),He}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,he.A)(function*(){var i,s;yield(s=(0,he.A)(function*(p){const _=ue(p);st("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Xc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):cn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=Oe.UNAUTHENTICATED,this.clientId=dr.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,he.A)(function*(R){st("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(st("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new ut;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,he.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Yu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),st("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,he.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function ic(l){return kf.apply(this,arguments)}(l);st("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,he.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){st("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Dv(l){return"FirebaseError"===l.name?l.code===Ee.FAILED_PRECONDITION||l.code===Ee.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;vt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new nl)}}else st("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new nl);return l._offlineComponents})).apply(this,arguments)}function qc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,he.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(st("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(st("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new rl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,he.A)(function*(l){const n=yield qc(l),i=n.eventManager;return i.onListen=go.bind(null,n.syncEngine),i.onUnlisten=Tf.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Df.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":G()}function Pi(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Ve(Ee.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Ve(Ee.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Ve(Ee.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Ve(Ee.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Ve(Ee.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new xn;switch(s.type){case"firstParty":return new kn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Ve(Ee.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(st("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class To{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new To(this.firestore,n,this._query)}}class Po{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new il(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new Po(this.firestore,n,this._key)}}class il extends To{constructor(n,i,s){super(n,i,se(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new Po(this.firestore,null,new on(n))}withConverter(n){return new il(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return du(s),new il(l,null,s)}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return du(s),new il(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=dr.newId()),Bf("doc","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return Fg(s),new Po(l,null,new on(s))}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return Fg(s),new Po(l.firestore,l instanceof il?l.converter:null,new on(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Dl();i&&st("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Dl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Dl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new ut;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,he.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Ge(i))throw i;st("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,cn("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&G()}verifyOperationInProgress(){}du(){var n=this;return(0,he.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class qi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,ae.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,ae.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Pi(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&vt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=Oe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Ve(Ee.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new Oe(q)}l._authCredentials=new un(new fn(R,k))}}(u,...p)}return u}function _o(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new Kt(l._databaseId,k,l._persistenceKey,(Ae=u).host,Ae.ssl,Ae.experimentalForceLongPolling,Ae.experimentalAutoDetectLongPolling,uh(Ae.experimentalLongPollingOptions),Ae.useFetchStreams));var k,Ae;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class oc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new oc(ui.fromBase64String(n))}catch(i){throw new Ve(Ee.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new oc(ui.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Ve(Ee.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Ve(Ee.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new Co(n,this.data,this.fieldMask,i,this.fieldTransforms):new ea(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new Co(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw G()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(He.field))}else k=null,q=_.fieldTransforms;return new $f(new Kn(R),k,q)}class ac extends Jc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof ac}}function ka(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Jc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=ka(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=yn.fromDate(s);return{timestampValue:rs(u.serializer,p)}}if(s instanceof yn){const p=new yn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:rs(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof oc)return{bytesValue:na(u.serializer,s._byteString)};if(s instanceof Po){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:ra(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return Yr(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):di(l,(s,u)=>{const p=ka(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof yn||l instanceof Ug||l instanceof oc||l instanceof Po||l instanceof Jc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Ve(Ee.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new Po(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return fe(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(K(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw G()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return di(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(fe(n.latitude),fe(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Be(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(ct(n));default:return null}}convertTimestamp(n){const i=ge(n);return new yn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Vn.fromString(n);X(E(s));const u=new Dn(s.get(1),s.get(3)),p=new on(s.popFirst(5));return u.isEqual(i)||cn(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class uc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends uc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Ve(Ee.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,Ae=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),Ae=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:Ae}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return G()}}function Hv(l){l=Pi(l,Po);const n=Pi(l.firestore,qi);return function lh(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ae=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He));const Yt=yt.docs.has(R);!Yt&&yt.fromCache?q.reject(new Ve(Ee.UNAVAILABLE,"Failed to get document because the client is offline.")):Yt&&yt.fromCache&&k&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(se(R.path),Ae,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(_o(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new gu(l);return new uc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class gu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new oc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new Po(this.firestore,null,i)}}function Gv(l){l=Pi(l,To);const n=Pi(l.firestore,qi),i=_o(n),s=new gu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Ve(Ee.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ae=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He)),yt.fromCache&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(R,Ae,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Pi(l,Po);const s=Pi(l.firestore,qi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(pu(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Yi.none())])}function Qy(l,n,i,...s){l=Pi(l,Po);const u=Pi(l.firestore,qi),p=pu(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let yt=0;yt=0;--yt)if(!Uv(q,R[yt])){const Yt=R[yt];let Rn=k[yt];Rn=(0,Se.Ku)(Rn);const Wn=_.Su(Yt);if(Rn instanceof ac)q.push(Yt);else{const Ln=ka(Rn,Wn);null!=Ln&&(q.push(Yt),Ae.set(Yt,Ln))}}const He=new yi(q);return new $g(Ae,He,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Kn.empty();di(s,(k,q)=>{const Ae=Gf(n,k,i);q=(0,Se.Ku)(q);const He=u.Su(Ae);if(q instanceof ac)p.push(Ae);else{const yt=ka(q,He);null!=yt&&(p.push(Ae),_.set(Ae,yt))}});const R=new yi(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Yi.exists(!0))])}function Yy(l){return od(Pi(l.firestore,qi),[new j(l._key,Yi.none())])}function od(l,n){return function(s,u){const p=new ut;return s.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return qc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(_o(l),n)}!function(n,i=!0){Ct=ae.MF,(0,ae.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new qi(new Je(s.getProvider("auth-internal")),new or(s.getProvider("app-check-internal")),function(q,Ae){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Ve(Ee.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Dn(q.options.projectId,Ae)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(Le,"4.6.3",n),(0,ae.KO)(Le,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,$.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},2107:(Pn,Et,C)=>{"use strict";C.d(Et,{wc:()=>Qr,qk:()=>Jr,c7:()=>Js,Xm:()=>Wo,KR:()=>Zo,bp:()=>us});var h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1076),tt=C(1362);const Se="firebasestorage.googleapis.com",be="storageBucket";class at extends Xe.g{constructor(ee,qe,lt=0){super(xt(ee),`Firebase Storage: ${qe} (${xt(ee)})`),this.status_=lt,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,at.prototype)}get status(){return this.status_}set status(ee){this.status_=ee}_codeEquals(ee){return xt(ee)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(ee){this.customData.serverResponse=ee,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var mt=function(ne){return ne.UNKNOWN="unknown",ne.OBJECT_NOT_FOUND="object-not-found",ne.BUCKET_NOT_FOUND="bucket-not-found",ne.PROJECT_NOT_FOUND="project-not-found",ne.QUOTA_EXCEEDED="quota-exceeded",ne.UNAUTHENTICATED="unauthenticated",ne.UNAUTHORIZED="unauthorized",ne.UNAUTHORIZED_APP="unauthorized-app",ne.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",ne.INVALID_CHECKSUM="invalid-checksum",ne.CANCELED="canceled",ne.INVALID_EVENT_NAME="invalid-event-name",ne.INVALID_URL="invalid-url",ne.INVALID_DEFAULT_BUCKET="invalid-default-bucket",ne.NO_DEFAULT_BUCKET="no-default-bucket",ne.CANNOT_SLICE_BLOB="cannot-slice-blob",ne.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",ne.NO_DOWNLOAD_URL="no-download-url",ne.INVALID_ARGUMENT="invalid-argument",ne.INVALID_ARGUMENT_COUNT="invalid-argument-count",ne.APP_DELETED="app-deleted",ne.INVALID_ROOT_OPERATION="invalid-root-operation",ne.INVALID_FORMAT="invalid-format",ne.INTERNAL_ERROR="internal-error",ne.UNSUPPORTED_ENVIRONMENT="unsupported-environment",ne}(mt||{});function xt(ne){return"storage/"+ne}function Dt(){return new at(mt.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function _e(){return new at(mt.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function $e(){return new at(mt.CANCELED,"User canceled the upload/download.")}function kt(){return new at(mt.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function cn(ne){return new at(mt.INVALID_ARGUMENT,ne)}function vt(){return new at(mt.APP_DELETED,"The Firebase app was deleted.")}function G(ne,ee){return new at(mt.INVALID_FORMAT,"String does not match format '"+ne+"': "+ee)}function X(ne){throw new at(mt.INTERNAL_ERROR,"Internal error: "+ne)}class ce{constructor(ee,qe){this.bucket=ee,this.path_=qe}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const ee=encodeURIComponent;return"/b/"+ee(this.bucket)+"/o/"+ee(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(ee,qe){let lt;try{lt=ce.makeFromUrl(ee,qe)}catch{return new ce(ee,"")}if(""===lt.path)return lt;throw function Oe(ne){return new at(mt.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+ne+"'.")}(ee)}static makeFromUrl(ee,qe){let lt=null;const Vt="([A-Za-z0-9.\\-_]+)",x=new RegExp("^gs://"+Vt+"(/(.*))?$","i");function z(Qi){Qi.path_=decodeURIComponent(Qi.path)}const an=qe.replace(/[.]/g,"\\."),Ki=[{regex:x,indices:{bucket:1,path:3},postModify:function gn(Qi){"/"===Qi.path.charAt(Qi.path.length-1)&&(Qi.path_=Qi.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${an}/v[A-Za-z0-9_]+/b/${Vt}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:z},{regex:new RegExp(`^https?://${qe===Se?"(?:storage.googleapis.com|storage.cloud.google.com)":qe}/${Vt}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:z}];for(let Qi=0;Qiqe)throw cn(`Invalid value for '${ne}'. Expected ${qe} or less.`)}function On(ne,ee,qe){let lt=ee;return null==qe&&(lt=`https://${ee}`),`${qe}://${lt}/v0${ne}`}function or(ne){const ee=encodeURIComponent;let qe="?";for(const lt in ne)ne.hasOwnProperty(lt)&&(qe=qe+(ee(lt)+"=")+ee(ne[lt])+"&");return qe=qe.slice(0,-1),qe}var gr=function(ne){return ne[ne.NO_ERROR=0]="NO_ERROR",ne[ne.NETWORK_ERROR=1]="NETWORK_ERROR",ne[ne.ABORT=2]="ABORT",ne}(gr||{});function cr(ne,ee){const qe=ne>=500&&ne<600,Vt=-1!==[408,429].indexOf(ne),gn=-1!==ee.indexOf(ne);return qe||Vt||gn}class dr{constructor(ee,qe,lt,Vt,gn,B,x,se,z,Pe,an,zn=!0){this.url_=ee,this.method_=qe,this.headers_=lt,this.body_=Vt,this.successCodes_=gn,this.additionalRetryCodes_=B,this.callback_=x,this.errorCallback_=se,this.timeout_=z,this.progressCallback_=Pe,this.connectionFactory_=an,this.retry=zn,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((lr,pi)=>{this.resolve_=lr,this.reject_=pi,this.start_()})}start_(){const qe=(lt,Vt)=>{const gn=this.resolve_,B=this.reject_,x=Vt.connection;if(Vt.wasSuccessCode)try{const se=this.callback_(x,x.getResponse());!function ut(ne){return void 0!==ne}(se)?gn():gn(se)}catch(se){B(se)}else if(null!==x){const se=Dt();se.serverResponse=x.getErrorText(),B(this.errorCallback_?this.errorCallback_(x,se):se)}else B(Vt.canceled?this.appDelete_?vt():$e():_e())};this.canceled_?qe(0,new nt(!1,null,!0)):this.backoffId_=function Ee(ne,ee,qe){let lt=1,Vt=null,gn=null,B=!1,x=0;function se(){return 2===x}let z=!1;function Pe(...Ei){z||(z=!0,ee.apply(null,Ei))}function an(Ei){Vt=setTimeout(()=>{Vt=null,ne(lr,se())},Ei)}function zn(){gn&&clearTimeout(gn)}function lr(Ei,...ao){if(z)return void zn();if(Ei)return zn(),void Pe.call(null,Ei,...ao);if(se()||B)return zn(),void Pe.call(null,Ei,...ao);let Ki;lt<64&&(lt*=2),1===x?(x=2,Ki=0):Ki=1e3*(lt+Math.random()),an(Ki)}let pi=!1;function Hi(Ei){pi||(pi=!0,zn(),!z&&(null!==Vt?(Ei||(x=2),clearTimeout(Vt),an(0)):Ei||(x=1)))}return an(0),gn=setTimeout(()=>{B=!0,Hi(!0)},qe),Hi}((lt,Vt)=>{if(Vt)return void lt(!1,new nt(!1,null,!0));const gn=this.connectionFactory_();this.pendingConnection_=gn;const B=x=>{null!==this.progressCallback_&&this.progressCallback_(x.loaded,x.lengthComputable?x.total:-1)};null!==this.progressCallback_&&gn.addUploadProgressListener(B),gn.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&gn.removeUploadProgressListener(B),this.pendingConnection_=null;const x=gn.getErrorCode()===gr.NO_ERROR,se=gn.getStatus();if(!x||cr(se,this.additionalRetryCodes_)&&this.retry){const Pe=gn.getErrorCode()===gr.ABORT;return void lt(!1,new nt(!1,null,Pe))}const z=-1!==this.successCodes_.indexOf(se);lt(!0,new nt(z,gn))})},qe,this.timeout_)}getPromise(){return this.promise_}cancel(ee){this.canceled_=!0,this.appDelete_=ee||!1,null!==this.backoffId_&&function Ve(ne){ne(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class nt{constructor(ee,qe,lt){this.wasSuccessCode=ee,this.connection=qe,this.canceled=!!lt}}function $n(...ne){const ee=function Vn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==ee){const qe=new ee;for(let lt=0;lt>6,128|63<):55296==(64512<)?qe>18,128|lt>>12&63,128|lt>>6&63,128|63<)):ee.push(239,191,189):56320==(64512<)?ee.push(239,191,189):ee.push(224|lt>>12,128|lt>>6&63,128|63<)}return new Uint8Array(ee)}function sr(ne,ee){switch(ne){case mr.BASE64:{const Vt=-1!==ee.indexOf("-"),gn=-1!==ee.indexOf("_");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"-":"_")+"' found: is it base64url encoded?");break}case mr.BASE64URL:{const Vt=-1!==ee.indexOf("+"),gn=-1!==ee.indexOf("/");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"+":"/")+"' found: is it base64 encoded?");ee=ee.replace(/-/g,"+").replace(/_/g,"/");break}}let qe;try{qe=function on(ne){if(typeof atob>"u")throw function st(ne){return new at(mt.UNSUPPORTED_ENVIRONMENT,`${ne} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(ne)}(ee)}catch(Vt){throw Vt.message.includes("polyfill")?Vt:G(ne,"Invalid character found")}const lt=new Uint8Array(qe.length);for(let Vt=0;Vt][;base64],");const lt=qe[1]||null;null!=lt&&(this.base64=function Br(ne,ee){return ne.length>=ee.length&&ne.substring(ne.length-ee.length)===ee}(lt,";base64"),this.contentType=this.base64?lt.substring(0,lt.length-7):lt),this.rest=ee.substring(ee.indexOf(",")+1)}}class ar{constructor(ee,qe){let lt=0,Vt="";Je(ee)?(this.data_=ee,lt=ee.size,Vt=ee.type):ee instanceof ArrayBuffer?(qe?this.data_=new Uint8Array(ee):(this.data_=new Uint8Array(ee.byteLength),this.data_.set(new Uint8Array(ee))),lt=this.data_.length):ee instanceof Uint8Array&&(qe?this.data_=ee:(this.data_=new Uint8Array(ee.length),this.data_.set(ee)),lt=ee.length),this.size_=lt,this.type_=Vt}size(){return this.size_}type(){return this.type_}slice(ee,qe){if(Je(this.data_)){const Vt=function In(ne,ee,qe){return ne.webkitSlice?ne.webkitSlice(ee,qe):ne.mozSlice?ne.mozSlice(ee,qe):ne.slice?ne.slice(ee,qe):null}(this.data_,ee,qe);return null===Vt?null:new ar(Vt)}{const lt=new Uint8Array(this.data_.buffer,ee,qe-ee);return new ar(lt,!0)}}static getBlob(...ee){if(Sn()){const qe=ee.map(lt=>lt instanceof ar?lt.data_:lt);return new ar($n.apply(null,qe))}{const qe=ee.map(B=>un(B)?function Vr(ne,ee){switch(ne){case mr.RAW:return new br(rr(ee));case mr.BASE64:case mr.BASE64URL:return new br(sr(ne,ee));case mr.DATA_URL:return new br(function Tr(ne){const ee=new ii(ne);return ee.base64?sr(mr.BASE64,ee.rest):function Mr(ne){let ee;try{ee=decodeURIComponent(ne)}catch{throw G(mr.DATA_URL,"Malformed data URL.")}return rr(ee)}(ee.rest)}(ee),function yr(ne){return new ii(ne).contentType}(ee))}throw Dt()}(mr.RAW,B).data:B.data_);let lt=0;qe.forEach(B=>{lt+=B.byteLength});const Vt=new Uint8Array(lt);let gn=0;return qe.forEach(B=>{for(let x=0;x{Promise.resolve().then(()=>ne(...ee))}}let jn=null;class zr{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=gr.NO_ERROR,this.sendPromise_=new Promise(ee=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=gr.ABORT,ee()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=gr.NETWORK_ERROR,ee()}),this.xhr_.addEventListener("load",()=>{ee()})})}send(ee,qe,lt,Vt){if(this.sent_)throw X("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(qe,ee,!0),void 0!==Vt)for(const gn in Vt)Vt.hasOwnProperty(gn)&&this.xhr_.setRequestHeader(gn,Vt[gn].toString());return void 0!==lt?this.xhr_.send(lt):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw X("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw X("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw X("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw X("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(ee){return this.xhr_.getResponseHeader(ee)}addUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",ee)}removeUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",ee)}}class $r extends zr{initXhr(){this.xhr_.responseType="text"}}function Pr(){return jn?jn():new $r}class hi{constructor(ee,qe,lt=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=ee,this._blob=qe,this._metadata=lt,this._mappings=de(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=Vt=>{if(this._request=void 0,this._chunkMultiplier=1,Vt._codeEquals(mt.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const gn=this.isExponentialBackoffExpired();if(cr(Vt.status,[])){if(!gn)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();Vt=_e()}this._error=Vt,this._transition("error")}},this._metadataErrorHandler=Vt=>{this._request=void 0,Vt._codeEquals(mt.CANCELED)?this.completeTransitions_():(this._error=Vt,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((Vt,gn)=>{this._resolve=Vt,this._reject=gn,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const ee=this._transferred;return qe=>this._updateProgress(ee+qe)}_shouldDoResumable(ee){return ee.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(ee){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([qe,lt])=>{switch(this._state){case"running":ee(qe,lt);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((ee,qe)=>{const lt=function re(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B=te(ee,lt,Vt),x={name:B.fullPath},se=On(gn,ne.host,ne._protocol),Pe={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${lt.size()}`,"X-Goog-Upload-Header-Content-Type":B.contentType,"Content-Type":"application/json; charset=utf-8"},an=gt(B,qe),pi=new Xn(se,"POST",function lr(Hi){let Ei;O(Hi);try{Ei=Hi.getResponseHeader("X-Goog-Upload-URL")}catch{dn(!1)}return dn(un(Ei)),Ei},ne.maxUploadRetryTime);return pi.urlParams=x,pi.headers=Pe,pi.body=an,pi.errorHandler=fr(ee),pi}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._uploadUrl=gn,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const ee=this._uploadUrl;this._resolveToken((qe,lt)=>{const Vt=function we(ne,ee,qe,lt){const se=new Xn(qe,"POST",function gn(z){const Pe=O(z,["active","final"]);let an=null;try{an=z.getResponseHeader("X-Goog-Upload-Size-Received")}catch{dn(!1)}an||dn(!1);const zn=Number(an);return dn(!isNaN(zn)),new M(zn,lt.size(),"final"===Pe)},ne.maxUploadRetryTime);return se.headers={"X-Goog-Upload-Command":"query"},se.errorHandler=fr(ee),se}(this._ref.storage,this._ref._location,ee,this._blob),gn=this._ref.storage._makeRequest(Vt,Pr,qe,lt);this._request=gn,gn.getPromise().then(B=>{this._request=void 0,this._updateProgress(B.current),this._needToFetchStatus=!1,B.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const ee=262144*this._chunkMultiplier,qe=new M(this._transferred,this._blob.size()),lt=this._uploadUrl;this._resolveToken((Vt,gn)=>{let B;try{B=function St(ne,ee,qe,lt,Vt,gn,B,x){const se=new M(0,0);if(B?(se.current=B.current,se.total=B.total):(se.current=0,se.total=lt.size()),lt.size()!==se.total)throw function Cn(){return new at(mt.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const z=se.total-se.current;let Pe=z;Vt>0&&(Pe=Math.min(Pe,Vt));const an=se.current;let lr="";lr=0===Pe?"finalize":z===Pe?"upload, finalize":"upload";const pi={"X-Goog-Upload-Command":lr,"X-Goog-Upload-Offset":`${se.current}`},Hi=lt.slice(an,an+Pe);if(null===Hi)throw kt();const Ki=new Xn(qe,"POST",function Ei(Qi,qo){const cs=O(Qi,["active","final"]),ys=se.current+Pe,Eo=lt.size();let ko;return ko="final"===cs?wn(ee,gn)(Qi,qo):null,new M(ys,Eo,"final"===cs,ko)},ee.maxUploadRetryTime);return Ki.headers=pi,Ki.body=Hi.uploadData(),Ki.progressCallback=x||null,Ki.errorHandler=fr(ne),Ki}(this._ref._location,this._ref.storage,lt,this._blob,ee,this._mappings,qe,this._makeProgressCallback())}catch(se){return this._error=se,void this._transition("error")}const x=this._ref.storage._makeRequest(B,Pr,Vt,gn,!1);this._request=x,x.getPromise().then(se=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(se.current),se.finalized?(this._metadata=se.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((ee,qe)=>{const lt=function oi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",wn(ne,qe),B);return x.errorHandler=Ur(ee),x}(this._ref.storage,this._ref._location,this._mappings),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((ee,qe)=>{const lt=function ze(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B={"X-Goog-Upload-Protocol":"multipart"},se=function x(){let Ki="";for(let Qi=0;Qi<2;Qi++)Ki+=Math.random().toString().slice(2);return Ki}();B["Content-Type"]="multipart/related; boundary="+se;const z=te(ee,lt,Vt),Pe=gt(z,qe),lr=ar.getBlob("--"+se+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Pe+"\r\n--"+se+"\r\nContent-Type: "+z.contentType+"\r\n\r\n",lt,"\r\n--"+se+"--");if(null===lr)throw kt();const pi={name:z.fullPath},Hi=On(gn,ne.host,ne._protocol),ao=ne.maxUploadRetryTime,No=new Xn(Hi,"POST",wn(ne,qe),ao);return No.urlParams=pi,No.headers=B,No.body=lr.uploadData(),No.errorHandler=fr(ee),No}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(ee){const qe=this._transferred;this._transferred=ee,this._transferred!==qe&&this._notifyObservers()}_transition(ee){if(this._state!==ee)switch(ee){case"canceling":case"pausing":this._state=ee,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const qe="paused"===this._state;this._state=ee,qe&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=ee,this._notifyObservers();break;case"canceled":this._error=$e(),this._state=ee,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const ee=pr(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:ee,metadata:this._metadata,task:this,ref:this._ref}}on(ee,qe,lt,Vt){const gn=new qn(qe||void 0,lt||void 0,Vt||void 0);return this._addObserver(gn),()=>{this._removeObserver(gn)}}then(ee,qe){return this._promise.then(ee,qe)}catch(ee){return this.then(null,ee)}_addObserver(ee){this._observers.push(ee),this._notifyObserver(ee)}_removeObserver(ee){const qe=this._observers.indexOf(ee);-1!==qe&&this._observers.splice(qe,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(qe=>{this._notifyObserver(qe)})}_finishPromise(){if(void 0!==this._resolve){let ee=!0;switch(pr(this._state)){case"success":Sr(this._resolve.bind(null,this.snapshot))();break;case"canceled":case"error":Sr(this._reject.bind(null,this._error))();break;default:ee=!1}ee&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(ee){switch(pr(this._state)){case"running":case"paused":ee.next&&Sr(ee.next.bind(ee,this.snapshot))();break;case"success":ee.complete&&Sr(ee.complete.bind(ee))();break;default:ee.error&&Sr(ee.error.bind(ee,this._error))()}}resume(){const ee="paused"===this._state||"pausing"===this._state;return ee&&this._transition("running"),ee}pause(){const ee="running"===this._state;return ee&&this._transition("pausing"),ee}cancel(){const ee="running"===this._state||"pausing"===this._state;return ee&&this._transition("canceling"),ee}}class Yr{constructor(ee,qe){this._service=ee,this._location=qe instanceof ce?qe:ce.makeFromUrl(qe,ee.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(ee,qe){return new Yr(ee,qe)}get root(){const ee=new ce(this._location.bucket,"");return this._newRef(this._service,ee)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Zr(this._location.path)}get storage(){return this._service}get parent(){const ee=function li(ne){if(0===ne.length)return null;const ee=ne.lastIndexOf("/");return-1===ee?"":ne.slice(0,ee)}(this._location.path);if(null===ee)return null;const qe=new ce(this._location.bucket,ee);return new Yr(this._service,qe)}_throwIfRoot(ee){if(""===this._location.path)throw function Re(ne){return new at(mt.INVALID_ROOT_OPERATION,"The operation '"+ne+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(ee)}}function ge(ne){ne._throwIfRoot("getDownloadURL");const ee=function vi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",function wr(ne,ee){return function qe(lt,Vt){const gn=$t(ne,Vt,ee);return dn(null!==gn),function le(ne,ee,qe,lt){const Vt=Lr(ee);if(null===Vt||!un(Vt.downloadTokens))return null;const gn=Vt.downloadTokens;if(0===gn.length)return null;const B=encodeURIComponent;return gn.split(",").map(z=>{const an=ne.fullPath;return On("/b/"+B(ne.bucket)+"/o/"+B(an),qe,lt)+or({alt:"media",token:z})})[0]}(gn,Vt,ne.host,ne._protocol)}}(ne,qe),B);return x.errorHandler=Ur(ee),x}(ne.storage,ne._location,de());return ne.storage.makeRequestWithTokens(ee,Pr).then(qe=>{if(null===qe)throw function At(){return new at(mt.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return qe})}function ct(ne,ee){if(ne instanceof w){const qe=ne;if(null==qe._bucket)throw function Ct(){return new at(mt.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+be+"' property when initializing the app?")}();const lt=new Yr(qe,qe._bucket);return null!=ee?ct(lt,ee):lt}return void 0!==ee?function K(ne,ee){const qe=function Di(ne,ee){const qe=ee.split("/").filter(lt=>lt.length>0).join("/");return 0===ne.length?qe:ne+"/"+qe}(ne._location.path,ee),lt=new ce(ne._location.bucket,qe);return new Yr(ne.storage,lt)}(ne,ee):ne}function Dn(ne,ee){const qe=null==ee?void 0:ee[be];return null==qe?null:ce.makeFromBucketSpec(qe,ne)}class w{constructor(ee,qe,lt,Vt,gn){this.app=ee,this._authProvider=qe,this._appCheckProvider=lt,this._url=Vt,this._firebaseVersion=gn,this._bucket=null,this._host=Se,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=Vt?ce.makeFromBucketSpec(Vt,this._host):Dn(this._host,this.app.options)}get host(){return this._host}set host(ee){this._host=ee,this._bucket=null!=this._url?ce.makeFromBucketSpec(this._url,ee):Dn(ee,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxUploadRetryTime=ee}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxOperationRetryTime=ee}_getAuthToken(){var ee=this;return(0,he.A)(function*(){if(ee._overrideAuthToken)return ee._overrideAuthToken;const qe=ee._authProvider.getImmediate({optional:!0});if(qe){const lt=yield qe.getToken();if(null!==lt)return lt.accessToken}return null})()}_getAppCheckToken(){var ee=this;return(0,he.A)(function*(){const qe=ee._appCheckProvider.getImmediate({optional:!0});return qe?(yield qe.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(ee=>ee.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(ee){return new Yr(this,ee)}_makeRequest(ee,qe,lt,Vt,gn=!0){if(this._deleted)return new ue(vt());{const B=function Fr(ne,ee,qe,lt,Vt,gn,B=!0){const x=or(ne.urlParams),se=ne.url+x,z=Object.assign({},ne.headers);return function yn(ne,ee){ee&&(ne["X-Firebase-GMPID"]=ee)}(z,ee),function Lt(ne,ee){null!==ee&&ee.length>0&&(ne.Authorization="Firebase "+ee)}(z,qe),function Xt(ne,ee){ne["X-Firebase-Storage-Version"]="webjs/"+(null!=ee?ee:"AppManager")}(z,gn),function En(ne,ee){null!==ee&&(ne["X-Firebase-AppCheck"]=ee)}(z,lt),new dr(se,ne.method,z,ne.body,ne.successCodes,ne.additionalRetryCodes,ne.handler,ne.errorHandler,ne.timeout,ne.progressCallback,Vt,B)}(ee,this._appId,lt,Vt,qe,this._firebaseVersion,gn);return this._requests.add(B),B.getPromise().then(()=>this._requests.delete(B),()=>this._requests.delete(B)),B}}makeRequestWithTokens(ee,qe){var lt=this;return(0,he.A)(function*(){const[Vt,gn]=yield Promise.all([lt._getAuthToken(),lt._getAppCheckToken()]);return lt._makeRequest(ee,qe,Vt,gn).getPromise()})()}}const H="@firebase/storage",P="storage";function ai(ne,ee,qe){return function Zn(ne,ee,qe){return ne._throwIfRoot("uploadBytesResumable"),new hi(ne,new ar(ee),qe)}(ne=(0,Xe.Ku)(ne),ee,qe)}function Ot(ne){return ge(ne=(0,Xe.Ku)(ne))}function en(ne,ee){return function Kt(ne,ee){if(ee&&function je(ne){return/^[A-Za-z]+:\/\//.test(ne)}(ee)){if(ne instanceof w)return function Be(ne,ee){return new Yr(ne,ee)}(ne,ee);throw cn("To use ref(service, url), the first argument must be a Storage instance.")}return ct(ne,ee)}(ne=(0,Xe.Ku)(ne),ee)}function vn(ne=(0,ae.Sx)(),ee){ne=(0,Xe.Ku)(ne);const lt=(0,ae.j6)(ne,P).getImmediate({identifier:ee}),Vt=(0,Xe.yU)("storage");return Vt&&function bn(ne,ee,qe,lt={}){!function Hn(ne,ee,qe,lt={}){ne.host=`${ee}:${qe}`,ne._protocol="http";const{mockUserToken:Vt}=lt;Vt&&(ne._overrideAuthToken="string"==typeof Vt?Vt:(0,Xe.Fy)(Vt,ne.app.options.projectId))}(ne,ee,qe,lt)}(lt,...Vt),lt}function _r(ne,{instanceIdentifier:ee}){const qe=ne.getProvider("app").getImmediate(),lt=ne.getProvider("auth-internal"),Vt=ne.getProvider("app-check-internal");return new w(qe,lt,Vt,ee,ae.MF)}!function Kn(){(0,ae.om)(new tt.uA(P,_r,"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(H,"0.12.5",""),(0,ae.KO)(H,"0.12.5","esm2017")}();class Qr{constructor(ee){return ee}}const Wr="storage",Fi=new c.nKC("angularfire2.storage-instances");function yo(ne){return(ee,qe)=>{const lt=ee.runOutsideAngular(()=>ne(qe));return new Qr(lt)}}const Jo={provide:class kr{constructor(){return(0,h.CA)(Wr)}},deps:[[new c.Xx1,Fi]]},Kr={provide:Qr,useFactory:function Bi(ne,ee){const qe=(0,h.lR)(Wr,ne,ee);return qe&&new Qr(qe)},deps:[[new c.Xx1,Fi],Z.XU]};function Wo(ne,...ee){return(0,$.KO)("angularfire",h.xv.full,"gcs"),(0,c.EmA)([Kr,Jo,{provide:Fi,useFactory:yo(ne),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...ee]}])}const Jr=(0,h.S3)(Ot,!0),Js=(0,h.S3)(vn,!0),Zo=(0,h.S3)(en,!0),us=(0,h.S3)(ai,!0)},9032:(Pn,Et,C)=>{"use strict";C.d(Et,{L9:()=>ar,oc:()=>$t,v_:()=>Ge,cw:()=>Ie});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1362),Xe=C(1076),tt=C(1635),Se="@firebase/vertexai-preview",be="0.0.2";const et="vertexAI",it="us-central1",mt=be,xt="gl-js";class Dt{constructor(gt,ft,Qt,sn){var Tn;this.app=gt,this.options=sn;const Xn=null==Qt?void 0:Qt.getImmediate({optional:!0}),dn=null==ft?void 0:ft.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Xn||null,this.location=(null===(Tn=this.options)||void 0===Tn?void 0:Tn.location)||it}_delete(){return Promise.resolve()}}const Tt=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var It=function(le){return le.GENERATE_CONTENT="generateContent",le.STREAM_GENERATE_CONTENT="streamGenerateContent",le.COUNT_TOKENS="countTokens",le}(It||{});class Te{constructor(gt,ft,Qt,sn,Tn){this.model=gt,this.task=ft,this.apiSettings=Qt,this.stream=sn,this.requestOptions=Tn}toString(){var gt;let sn=`${(null===(gt=this.requestOptions)||void 0===gt?void 0:gt.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return sn+=`/projects/${this.apiSettings.project}`,sn+=`/locations/${this.apiSettings.location}`,sn+=`/${this.model}`,sn+=`:${this.task}`,this.stream&&(sn+="?alt=sse"),sn}get fullModelString(){let gt=`projects/${this.apiSettings.project}`;return gt+=`/locations/${this.apiSettings.location}`,gt+=`/${this.model}`,gt}}function _e(le){return $e.apply(this,arguments)}function $e(){return($e=(0,$.A)(function*(le){const gt=new Headers;if(gt.append("Content-Type","application/json"),gt.append("x-goog-api-client",function Ze(){const le=[];return le.push(`${xt}/${mt}`),le.push(`fire/${mt}`),le.join(" ")}()),gt.append("x-goog-api-key",le.apiSettings.apiKey),le.apiSettings.getAppCheckToken){const ft=yield le.apiSettings.getAppCheckToken();ft&&!ft.error&>.append("X-Firebase-AppCheck",ft.token)}if(le.apiSettings.getAuthToken){const ft=yield le.apiSettings.getAuthToken();ft&>.append("Authorization",`Firebase ${ft.accessToken}`)}return gt})).apply(this,arguments)}function Oe(){return(Oe=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Te(le,gt,ft,Qt,Tn);return{url:Xn.toString(),fetchOptions:Object.assign(Object.assign({},Cn(Tn)),{method:"POST",headers:yield _e(Xn),body:sn})}})).apply(this,arguments)}function Ct(le,gt,ft,Qt,sn,Tn){return kt.apply(this,arguments)}function kt(){return kt=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Te(le,gt,ft,Qt,Tn);let dn;try{const wn=yield function Le(le,gt,ft,Qt,sn,Tn){return Oe.apply(this,arguments)}(le,gt,ft,Qt,sn,Tn);if(dn=yield fetch(wn.url,wn.fetchOptions),!dn.ok){let hr="";try{const wr=yield dn.json();hr=wr.error.message,wr.error.details&&(hr+=` ${JSON.stringify(wr.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${hr}`)}}catch(wn){const hr=wn,wr=Tt.create("fetch-error",{url:Xn.toString(),message:hr.message});throw wr.stack=hr.stack,wr}return dn}),kt.apply(this,arguments)}function Cn(le){const gt={};if(null!=le&&le.timeout&&(null==le?void 0:le.timeout)>=0){const ft=new AbortController,Qt=ft.signal;setTimeout(()=>ft.abort(),le.timeout),gt.signal=Qt}return gt}const At=["user","model","function","system"];var ce=function(le){return le.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",le.STOP="STOP",le.MAX_TOKENS="MAX_TOKENS",le.SAFETY="SAFETY",le.RECITATION="RECITATION",le.OTHER="OTHER",le}(ce||{});function Ve(le){return le.text=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function ut(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.text&&Tn.push(Xn.text);return Tn.length>0?Tn.join(""):""}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Text not available. ${Je(le)}`,response:le});return""},le.functionCalls=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function fn(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.functionCall&&Tn.push(Xn.functionCall);if(Tn.length>0)return Tn}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Function call not available. ${Je(le)}`,response:le})},le}const xn=[ce.RECITATION,ce.SAFETY];function un(le){return!!le.finishReason&&xn.includes(le.finishReason)}function Je(le){var gt,ft,Qt;let sn="";if(le.candidates&&0!==le.candidates.length||!le.promptFeedback){if(null!==(Qt=le.candidates)&&void 0!==Qt&&Qt[0]){const Tn=le.candidates[0];un(Tn)&&(sn+=`Candidate was blocked due to ${Tn.finishReason}`,Tn.finishMessage&&(sn+=`: ${Tn.finishMessage}`))}}else sn+="Response was blocked",!(null===(gt=le.promptFeedback)||void 0===gt)&>.blockReason&&(sn+=` due to ${le.promptFeedback.blockReason}`),null!==(ft=le.promptFeedback)&&void 0!==ft&&ft.blockReasonMessage&&(sn+=`: ${le.promptFeedback.blockReasonMessage}`);return sn}const Sn=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function On(le){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(le){const gt=[],ft=le.getReader();for(;;){const{done:Qt,value:sn}=yield ft.read();if(Qt)return Ve(dr(gt));gt.push(sn)}})).apply(this,arguments)}function gr(le){return(0,tt.AQ)(this,arguments,function*(){const ft=le.getReader();for(;;){const{value:Qt,done:sn}=yield(0,tt.N3)(ft.read());if(sn)break;yield yield(0,tt.N3)(Ve(Qt))}})}function dr(le){const gt=le[le.length-1],ft={promptFeedback:null==gt?void 0:gt.promptFeedback};for(const Qt of le)if(Qt.candidates)for(const sn of Qt.candidates){const Tn=sn.index;if(ft.candidates||(ft.candidates=[]),ft.candidates[Tn]||(ft.candidates[Tn]={index:sn.index}),ft.candidates[Tn].citationMetadata=sn.citationMetadata,ft.candidates[Tn].finishReason=sn.finishReason,ft.candidates[Tn].finishMessage=sn.finishMessage,ft.candidates[Tn].safetyRatings=sn.safetyRatings,sn.content&&sn.content.parts){ft.candidates[Tn].content||(ft.candidates[Tn].content={role:sn.content.role||"user",parts:[]});const Xn={};for(const dn of sn.content.parts)dn.text&&(Xn.text=dn.text),dn.functionCall&&(Xn.functionCall=dn.functionCall),0===Object.keys(Xn).length&&(Xn.text=""),ft.candidates[Tn].content.parts.push(Xn)}}return ft}function nt(le,gt,ft,Qt){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,$.A)(function*(le,gt,ft,Qt){return function kn(le){const ft=function cr(le){const gt=le.getReader();return new ReadableStream({start(Qt){let sn="";return function Tn(){return gt.read().then(({value:Xn,done:dn})=>{if(dn)return sn.trim()?void Qt.error(Tt.create("parse-failed",{message:"Failed to parse stream"})):void Qt.close();sn+=Xn;let hr,wn=sn.match(Sn);for(;wn;){try{hr=JSON.parse(wn[1])}catch{return void Qt.error(Tt.create("parse-failed",{message:`Error parsing JSON response: "${wn[1]}"`}))}Qt.enqueue(hr),sn=sn.substring(wn[0].length),wn=sn.match(Sn)}return Tn()})}()}})}(le.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Qt,sn]=ft.tee();return{stream:gr(Qt),response:On(sn)}}(yield Ct(gt,It.STREAM_GENERATE_CONTENT,le,!0,JSON.stringify(ft),Qt))})).apply(this,arguments)}function Xt(le,gt,ft,Qt){return yn.apply(this,arguments)}function yn(){return(yn=(0,$.A)(function*(le,gt,ft,Qt){return{response:Ve(yield(yield Ct(gt,It.GENERATE_CONTENT,le,!1,JSON.stringify(ft),Qt)).json())}})).apply(this,arguments)}function En(le){if(null!=le){if("string"==typeof le)return{role:"system",parts:[{text:le}]};if(le.text)return{role:"system",parts:[le]};if(le.parts)return le.role?le:{role:"system",parts:le.parts}}}function Fr(le){let gt=[];if("string"==typeof le)gt=[{text:le}];else for(const ft of le)gt.push("string"==typeof ft?{text:ft}:ft);return function Vn(le){const gt={role:"user",parts:[]},ft={role:"function",parts:[]};let Qt=!1,sn=!1;for(const Tn of le)"functionResponse"in Tn?(ft.parts.push(Tn),sn=!0):(gt.parts.push(Tn),Qt=!0);if(Qt&&sn)throw Tt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Qt&&!sn)throw Tt.create("invalid-content",{message:"No content is provided for sending chat message."});return Qt?gt:ft}(gt)}function $n(le){let gt;return gt=le.contents?le:{contents:[Fr(le)]},le.systemInstruction&&(gt.systemInstruction=En(le.systemInstruction)),gt}const In=["text","inlineData","functionCall","functionResponse"],on={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},mr={user:["model"],function:["model"],model:["user","function"],system:[]},Vr="SILENT_ERROR";class rr{constructor(gt,ft,Qt,sn){this.model=ft,this.params=Qt,this.requestOptions=sn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=gt,null!=Qt&&Qt.history&&(function br(le){let gt=null;for(const ft of le){const{role:Qt,parts:sn}=ft;if(!gt&&"user"!==Qt)throw Tt.create("invalid-content",{message:`First content should be with role 'user', got ${Qt}`});if(!At.includes(Qt))throw Tt.create("invalid-content",{message:`Each item should include role field. Got ${Qt} but valid roles are: ${JSON.stringify(At)}`});if(!Array.isArray(sn))throw Tt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===sn.length)throw Tt.create("invalid-content",{message:"Each Content should have at least one part"});const Tn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of sn)for(const wn of In)wn in dn&&(Tn[wn]+=1);const Xn=on[Qt];for(const dn of In)if(!Xn.includes(dn)&&Tn[dn]>0)throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't contain '${dn}' part`});if(gt&&!mr[Qt].includes(gt.role))throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't follow '${gt.role}'. Valid previous roles: ${JSON.stringify(mr)}`});gt=ft}}(Qt.history),this._history=Qt.history)}getHistory(){var gt=this;return(0,$.A)(function*(){return yield gt._sendPromise,gt._history})()}sendMessage(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]};let wr={};return ft._sendPromise=ft._sendPromise.then(()=>Xt(ft._apiSettings,ft.model,hr,ft.requestOptions)).then(fr=>{var Ur,oi;if(fr.response.candidates&&fr.response.candidates.length>0){ft._history.push(wn);const Ir={parts:(null===(Ur=fr.response.candidates)||void 0===Ur?void 0:Ur[0].content.parts)||[],role:(null===(oi=fr.response.candidates)||void 0===oi?void 0:oi[0].content.role)||"model"};ft._history.push(Ir)}else{const Ir=Je(fr.response);Ir&&console.warn(`sendMessage() was unsuccessful. ${Ir}. Inspect response object for details.`)}wr=fr}),yield ft._sendPromise,wr})()}sendMessageStream(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]},wr=nt(ft._apiSettings,ft.model,hr,ft.requestOptions);return ft._sendPromise=ft._sendPromise.then(()=>wr).catch(fr=>{throw new Error(Vr)}).then(fr=>fr.response).then(fr=>{if(fr.candidates&&fr.candidates.length>0){ft._history.push(wn);const Ur=Object.assign({},fr.candidates[0].content);Ur.role||(Ur.role="model"),ft._history.push(Ur)}else{const Ur=Je(fr);Ur&&console.warn(`sendMessageStream() was unsuccessful. ${Ur}. Inspect response object for details.`)}}).catch(fr=>{fr.message!==Vr&&console.error(fr)}),wr})()}}function sr(){return(sr=(0,$.A)(function*(le,gt,ft,Qt){return(yield Ct(gt,It.COUNT_TOKENS,le,!1,JSON.stringify(ft),Qt)).json()})).apply(this,arguments)}class ii{constructor(gt,ft,Qt){var sn,Tn,Xn,dn;if(null===(Tn=null===(sn=gt.app)||void 0===sn?void 0:sn.options)||void 0===Tn||!Tn.apiKey)throw Tt.create("no-api-key");if(null===(dn=null===(Xn=gt.app)||void 0===Xn?void 0:Xn.options)||void 0===dn||!dn.projectId)throw Tt.create("no-project-id");this._apiSettings={apiKey:gt.app.options.apiKey,project:gt.app.options.projectId,location:gt.location},gt.appCheck&&(this._apiSettings.getAppCheckToken=()=>gt.appCheck.getToken()),gt.auth&&(this._apiSettings.getAuthToken=()=>gt.auth.getToken()),this.model=ft.model.includes("/")?ft.model.startsWith("models/")?`publishers/google/${ft.model}`:ft.model:`publishers/google/models/${ft.model}`,this.generationConfig=ft.generationConfig||{},this.safetySettings=ft.safetySettings||[],this.tools=ft.tools,this.toolConfig=ft.toolConfig,this.systemInstruction=En(ft.systemInstruction),this.requestOptions=Qt||{}}generateContent(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return Xt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}generateContentStream(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return nt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}startChat(gt){return new rr(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},gt),this.requestOptions)}countTokens(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return function Mr(le,gt,ft,Qt){return sr.apply(this,arguments)}(ft._apiSettings,ft.model,Qt)})()}}function Tr(le=(0,he.Sx)(),gt){return le=(0,Xe.Ku)(le),(0,he.j6)(le,et).getImmediate({identifier:(null==gt?void 0:gt.location)||it})}function yr(le,gt,ft){if(!gt.model)throw Tt.create("no-model");return new ii(le,gt,ft)}!function Br(){(0,he.om)(new ae.uA(et,(le,{instanceIdentifier:gt})=>{const ft=le.getProvider("app").getImmediate(),Qt=le.getProvider("auth-internal"),sn=le.getProvider("app-check-internal");return new Dt(ft,Qt,sn,{location:gt})},"PUBLIC").setMultipleInstances(!0)),(0,he.KO)(Se,be),(0,he.KO)(Se,be,"esm2017")}();class ar{constructor(gt){return gt}}const Lr="vertexai",Zr=new c.nKC("angularfire2.vertexai-instances");function rt(le){return(gt,ft)=>{const Qt=gt.runOutsideAngular(()=>le(ft));return new ar(Qt)}}const Nt={provide:class li{constructor(){return(0,h.CA)(Lr)}},deps:[[new c.Xx1,Zr]]},pt={provide:ar,useFactory:function ve(le,gt){const ft=(0,h.lR)(Lr,le,gt);return ft&&new ar(ft)},deps:[[new c.Xx1,Zr],Z.XU]};function Ie(le,...gt){return(0,ke.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([pt,Nt,{provide:Zr,useFactory:rt(le),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...gt]}])}const Ge=(0,h.S3)(Tr,!0),$t=(0,h.S3)(yr,!0)},5407:(Pn,Et,C)=>{"use strict";C.d(Et,{xv:()=>at,u0:()=>_e,Jv:()=>zt,CA:()=>Dt,lR:()=>xt,S3:()=>cn});var h=C(9842),c=C(4438),Z=C(2214),ke=C(6780),he=C(9687);const Xe=new class ae extends he.q{}(class $ extends ke.R{constructor(Re,G){super(Re,G),this.scheduler=Re,this.work=G}schedule(Re,G=0){return G>0?super.schedule(Re,G):(this.delay=G,this.state=Re,this.scheduler.flush(this),this)}execute(Re,G){return G>0||this.closed?super.execute(Re,G):this._execute(Re,G)}requestAsyncId(Re,G,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(Re,G,X):(Re.flush(this),0)}});var Se=C(3236),be=C(1985),et=C(8141),it=C(6745),Ye=C(941);const at=new c.RxE("ANGULARFIRE2_VERSION");function xt(vt,Re,G){if(Re){if(1===Re.length)return Re[0];const ue=Re.filter(Ee=>Ee.app===G);if(1===ue.length)return ue[0]}return G.container.getProvider(vt).getImmediate({optional:!0})}const Dt=(vt,Re)=>{const G=Re?[Re]:(0,Z.Dk)(),X=[];return G.forEach(ce=>{ce.container.getProvider(vt).instances.forEach(Ee=>{X.includes(Ee)||X.push(Ee)})}),X};class zt{constructor(){return Dt(Tt)}}const Tt="app-check";function It(){}class Te{constructor(Re,G=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=Re,this.delegate=G}now(){return this.delegate.now()}schedule(Re,G,X){const ce=this.zone;return this.delegate.schedule(function(Ee){ce.runGuarded(()=>{Re.apply(this,[Ee])})},G,X)}}class Ze{constructor(Re){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=Re}call(Re,G){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",It,{},It,It)),G.pipe((0,et.M)({next:X,complete:X,error:X})).subscribe(Re).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let _e=(()=>{var vt;class Re{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Te(Zone.current)),this.insideAngular=X.run(()=>new Te(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return vt=Re,(0,h.A)(Re,"\u0275fac",function(X){return new(X||vt)(c.KVO(c.SKi))}),(0,h.A)(Re,"\u0275prov",c.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})),Re})();function $e(){const vt=globalThis.\u0275AngularFireScheduler;if(!vt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return vt}function Oe(vt){return $e().ngZone.run(()=>vt())}function Cn(vt){return function At(vt){return function(G){return(G=G.lift(new Ze(vt.ngZone))).pipe((0,it._)(vt.outsideAngular),(0,Ye.Q)(vt.insideAngular))}}($e())(vt)}const st=(vt,Re)=>function(){const X=arguments;return Re&&setTimeout(()=>{"scheduled"===Re.state&&Re.invoke()},10),Oe(()=>vt.apply(void 0,X))},cn=(vt,Re)=>function(){let G;const X=arguments;for(let ue=0;ueZone.current.scheduleMacroTask("firebaseZoneBlock",It,{},It,It)))),X[ue]=st(X[ue],G));const ce=function Le(vt){return $e().ngZone.runOutsideAngular(()=>vt())}(()=>vt.apply(this,X));if(!Re){if(ce instanceof be.c){const ue=$e();return ce.pipe((0,it._)(ue.outsideAngular),(0,Ye.Q)(ue.insideAngular))}return Oe(()=>ce)}return ce instanceof be.c?ce.pipe(Cn):ce instanceof Promise?Oe(()=>new Promise((ue,Ee)=>ce.then(Ve=>Oe(()=>ue(Ve)),Ve=>Oe(()=>Ee(Ve))))):"function"==typeof ce&&G?function(){return setTimeout(()=>{G&&"scheduled"===G.state&&G.invoke()},10),ce.apply(this,arguments)}:Oe(()=>ce)}},4341:(Pn,Et,C)=>{"use strict";C.d(Et,{YN:()=>Vt,zX:()=>Bi,VZ:()=>Jo,cz:()=>_e,kq:()=>at,vO:()=>Xt,BC:()=>Vn,vS:()=>Pt});var h=C(4438),c=C(177),Z=C(8455),ke=C(1985),$=C(3073),he=C(8750),ae=C(9326),Xe=C(4360),tt=C(6450),Se=C(8496),et=C(6354);let it=(()=>{var B;class x{constructor(z,Pe){this._renderer=z,this._elementRef=Pe,this.onChange=an=>{},this.onTouched=()=>{}}setProperty(z,Pe){this._renderer.setProperty(this._elementRef.nativeElement,z,Pe)}registerOnTouched(z){this.onTouched=z}registerOnChange(z){this.onChange=z}setDisabledState(z){this.setProperty("disabled",z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT))},B.\u0275dir=h.FsC({type:B}),x})(),Ye=(()=>{var B;class x extends it{}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,features:[h.Vt3]}),x})();const at=new h.nKC(""),Dt={provide:at,useExisting:(0,h.Rfq)(()=>It),multi:!0},Tt=new h.nKC("");let It=(()=>{var B;class x extends it{constructor(z,Pe,an){super(z,Pe),this._compositionMode=an,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zt(){const B=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(z){this.setProperty("value",null==z?"":z)}_handleInput(z){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(z)}_compositionStart(){this._composing=!0}_compositionEnd(z){this._composing=!1,this._compositionMode&&this.onChange(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Tt,8))},B.\u0275dir=h.FsC({type:B,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(z,Pe){1&z&&h.bIt("input",function(zn){return Pe._handleInput(zn.target.value)})("blur",function(){return Pe.onTouched()})("compositionstart",function(){return Pe._compositionStart()})("compositionend",function(zn){return Pe._compositionEnd(zn.target.value)})},features:[h.Jv_([Dt]),h.Vt3]}),x})();function Te(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}const _e=new h.nKC(""),$e=new h.nKC("");function G(B){return null}function X(B){return null!=B}function ce(B){return(0,h.jNT)(B)?(0,Z.H)(B):B}function ue(B){let x={};return B.forEach(se=>{x=null!=se?{...x,...se}:x}),0===Object.keys(x).length?null:x}function Ee(B,x){return x.map(se=>se(B))}function ut(B){return B.map(x=>function Ve(B){return!B.validate}(x)?x:se=>x.validate(se))}function xn(B){return null!=B?function fn(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return ue(Ee(se,x))}}(ut(B)):null}function Je(B){return null!=B?function un(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return function be(...B){const x=(0,ae.ms)(B),{args:se,keys:z}=(0,$.D)(B),Pe=new ke.c(an=>{const{length:zn}=se;if(!zn)return void an.complete();const lr=new Array(zn);let pi=zn,Hi=zn;for(let Ei=0;Ei{ao||(ao=!0,Hi--),lr[Ei]=No},()=>pi--,void 0,()=>{(!pi||!ao)&&(Hi||an.next(z?(0,Se.e)(z,lr):lr),an.complete())}))}});return x?Pe.pipe((0,tt.I)(x)):Pe}(Ee(se,x).map(ce)).pipe((0,et.T)(ue))}}(ut(B)):null}function Sn(B,x){return null===B?[x]:Array.isArray(B)?[...B,x]:[B,x]}function or(B){return B?Array.isArray(B)?B:[B]:[]}function gr(B,x){return Array.isArray(B)?B.includes(x):B===x}function cr(B,x){const se=or(x);return or(B).forEach(Pe=>{gr(se,Pe)||se.push(Pe)}),se}function dr(B,x){return or(x).filter(se=>!gr(B,se))}class nt{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(x){this._rawValidators=x||[],this._composedValidatorFn=xn(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=Je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x=void 0){this.control&&this.control.reset(x)}hasError(x,se){return!!this.control&&this.control.hasError(x,se)}getError(x,se){return this.control?this.control.getError(x,se):null}}class Lt extends nt{get formDirective(){return null}get path(){return null}}class Xt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yn{constructor(x){this._cd=x}get isTouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.touched)}get isUntouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.untouched)}get isPristine(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pristine)}get isDirty(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.dirty)}get isValid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.valid)}get isInvalid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.invalid)}get isPending(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pending)}get isSubmitted(){var x;return!(null===(x=this._cd)||void 0===x||!x.submitted)}}let Vn=(()=>{var B;class x extends yn{constructor(z){super(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Xt,2))},B.\u0275dir=h.FsC({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(z,Pe){2&z&&h.AVh("ng-untouched",Pe.isUntouched)("ng-touched",Pe.isTouched)("ng-pristine",Pe.isPristine)("ng-dirty",Pe.isDirty)("ng-valid",Pe.isValid)("ng-invalid",Pe.isInvalid)("ng-pending",Pe.isPending)},features:[h.Vt3]}),x})();const ve="VALID",rt="INVALID",Nt="PENDING",pt="DISABLED";function le(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Qt{constructor(x,se){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(se)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===ve}get invalid(){return this.status===rt}get pending(){return this.status==Nt}get disabled(){return this.status===pt}get enabled(){return this.status!==pt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(cr(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(cr(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(dr(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(dr(x,this._rawAsyncValidators))}hasValidator(x){return gr(this._rawValidators,x)}hasAsyncValidator(x){return gr(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(se=>{se.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(se=>{se.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=Nt,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=pt,this.errors=null,this._forEachChild(z=>{z.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!0))}enable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=ve,this._forEachChild(z=>{z.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ve||this.status===Nt)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(se=>se._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pt:ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const se=ce(this.asyncValidator(this));this._asyncValidationSubscription=se.subscribe(z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(z,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,se={}){this.errors=x,this._updateControlsErrors(!1!==se.emitEvent)}get(x){let se=x;return null==se||(Array.isArray(se)||(se=se.split(".")),0===se.length)?null:se.reduce((z,Pe)=>z&&z._find(Pe),this)}getError(x,se){const z=se?this.get(se):this;return z&&z.errors?z.errors[x]:null}hasError(x,se){return!!this.getError(x,se)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?pt:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(rt)?rt:ve}_anyControlsHaveStatus(x){return this._anyControls(se=>se.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){le(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function Ie(B){return Array.isArray(B)?xn(B):B||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function $t(B){return Array.isArray(B)?Je(B):B||null}(this._rawAsyncValidators)}}const wr=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function oi(B,x,se=fr){var z,Pe;(function Ar(B,x){const se=function kn(B){return B._rawValidators}(B);null!==x.validator?B.setValidators(Sn(se,x.validator)):"function"==typeof se&&B.setValidators([se]);const z=function On(B){return B._rawAsyncValidators}(B);null!==x.asyncValidator?B.setAsyncValidators(Sn(z,x.asyncValidator)):"function"==typeof z&&B.setAsyncValidators([z]);const Pe=()=>B.updateValueAndValidity();xi(x._rawValidators,Pe),xi(x._rawAsyncValidators,Pe)})(B,x),x.valueAccessor.writeValue(B.value),(B.disabled||"always"===se)&&(null===(z=(Pe=x.valueAccessor).setDisabledState)||void 0===z||z.call(Pe,B.disabled)),function ie(B,x){x.valueAccessor.registerOnChange(se=>{B._pendingValue=se,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&ze(B,x)})}(B,x),function M(B,x){const se=(z,Pe)=>{x.valueAccessor.writeValue(z),Pe&&x.viewToModelUpdate(z)};B.registerOnChange(se),x._registerOnDestroy(()=>{B._unregisterOnChange(se)})}(B,x),function te(B,x){x.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&ze(B,x),"submit"!==B.updateOn&&B.markAsTouched()})}(B,x),function vi(B,x){if(x.valueAccessor.setDisabledState){const se=z=>{x.valueAccessor.setDisabledState(z)};B.registerOnDisabledChange(se),x._registerOnDestroy(()=>{B._unregisterOnDisabledChange(se)})}}(B,x)}function xi(B,x){B.forEach(se=>{se.registerOnValidatorChange&&se.registerOnValidatorChange(x)})}function ze(B,x){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Rr(B,x){const se=B.indexOf(x);se>-1&&B.splice(se,1)}function di(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}Promise.resolve();const hi=class extends Qt{constructor(x=null,se,z){super(function de(B){return(le(B)?B.validators:B)||null}(se),function Ge(B,x){return(le(x)?x.asyncValidators:B)||null}(z,se)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(se),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),le(se)&&(se.nonNullable||se.initialValueIsDefault)&&(this.defaultValue=di(x)?x.value:x)}setValue(x,se={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==se.emitModelToViewChange&&this._onChange.forEach(z=>z(this.value,!1!==se.emitViewToModelChange)),this.updateValueAndValidity(se)}patchValue(x,se={}){this.setValue(x,se)}reset(x=this.defaultValue,se={}){this._applyFormState(x),this.markAsPristine(se),this.markAsUntouched(se),this.setValue(this.value,se),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){Rr(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){Rr(this._onDisabledChange,x)}_forEachChild(x){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(x){di(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},bo={provide:Xt,useExisting:(0,h.Rfq)(()=>Pt)},ui=Promise.resolve();let Pt=(()=>{var B;class x extends Xt{constructor(z,Pe,an,zn,lr,pi){super(),this._changeDetectorRef=lr,this.callSetDisabledState=pi,this.control=new hi,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=z,this._setValidators(Pe),this._setAsyncValidators(an),this.valueAccessor=function jn(B,x){if(!x)return null;let se,z,Pe;return Array.isArray(x),x.forEach(an=>{an.constructor===It?se=an:function qn(B){return Object.getPrototypeOf(B.constructor)===Ye}(an)?z=an:Pe=an}),Pe||z||se||null}(0,zn)}ngOnChanges(z){if(this._checkForErrors(),!this._registered||"name"in z){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=z.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in z&&this._updateDisabled(z),function pr(B,x){if(!B.hasOwnProperty("model"))return!1;const se=B.model;return!!se.isFirstChange()||!Object.is(x,se.currentValue)}(z,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(z){this.viewModel=z,this.update.emit(z)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){oi(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()}_updateValue(z){ui.then(()=>{var Pe;this.control.setValue(z,{emitViewToModelChange:!1}),null===(Pe=this._changeDetectorRef)||void 0===Pe||Pe.markForCheck()})}_updateDisabled(z){const Pe=z.isDisabled.currentValue,an=0!==Pe&&(0,h.L39)(Pe);ui.then(()=>{var zn;an&&!this.control.disabled?this.control.disable():!an&&this.control.disabled&&this.control.enable(),null===(zn=this._changeDetectorRef)||void 0===zn||zn.markForCheck()})}_getPath(z){return this._parent?function Ur(B,x){return[...x.path,B]}(z,this._parent):[z]}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Lt,9),h.rXU(_e,10),h.rXU($e,10),h.rXU(at,10),h.rXU(h.gRc,8),h.rXU(wr,8))},B.\u0275dir=h.FsC({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([bo]),h.Vt3,h.OA$]}),x})();function kr(B){return"number"==typeof B?B:parseFloat(B)}let ki=(()=>{var B;class x{constructor(){this._validator=G}ngOnChanges(z){if(this.inputName in z){const Pe=this.normalizeInput(z[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):G,this._onChange&&this._onChange()}}validate(z){return this._validator(z)}registerOnValidatorChange(z){this._onChange=z}enabled(z){return null!=z}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275dir=h.FsC({type:B,features:[h.OA$]}),x})();const Fi={provide:_e,useExisting:(0,h.Rfq)(()=>Bi),multi:!0};let Bi=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=z=>kr(z),this.createValidator=z=>function kt(B){return x=>{if(Te(x.value)||Te(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se>B?{max:{max:B,actual:x.value}}:null}}(z)}}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("max",Pe._enabled?Pe.max:null)},inputs:{max:"max"},features:[h.Jv_([Fi]),h.Vt3]}),x})();const yo={provide:_e,useExisting:(0,h.Rfq)(()=>Jo),multi:!0};let Jo=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=z=>kr(z),this.createValidator=z=>function Ct(B){return x=>{if(Te(x.value)||Te(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("min",Pe._enabled?Pe.min:null)},inputs:{min:"min"},features:[h.Jv_([yo]),h.Vt3]}),x})(),Zo=(()=>{var B;class x{}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({}),x})(),Vt=(()=>{var B;class x{static withConfig(z){var Pe;return{ngModule:x,providers:[{provide:wr,useValue:null!==(Pe=z.callSetDisabledState)&&void 0!==Pe?Pe:fr}]}}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({imports:[Zo]}),x})()},345:(Pn,Et,C)=>{"use strict";C.d(Et,{Bb:()=>or,hE:()=>dr,sG:()=>Je,up:()=>Mr});var h=C(4438),c=C(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ke extends Z{static makeCurrent(){(0,c.ZD)(new ke)}onAndCancel(rt,Nt,pt){return rt.addEventListener(Nt,pt),()=>{rt.removeEventListener(Nt,pt)}}dispatchEvent(rt,Nt){rt.dispatchEvent(Nt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Nt){return(Nt=Nt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Nt){return"window"===Nt?window:"document"===Nt?rt:"body"===Nt?rt.body:null}getBaseHref(rt){const Nt=function he(){return $=$||document.querySelector("base"),$?$.getAttribute("href"):null}();return null==Nt?null:function ae(ve){return new URL(ve,document.baseURI).pathname}(Nt)}resetBaseElement(){$=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let $=null,tt=(()=>{var ve;class rt{build(){return new XMLHttpRequest}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Se=new h.nKC("");let be=(()=>{var ve;class rt{constructor(pt,de){this._zone=de,this._eventNameToPlugin=new Map,pt.forEach(Ie=>{Ie.manager=this}),this._plugins=pt.slice().reverse()}addEventListener(pt,de,Ie){return this._findPluginFor(de).addEventListener(pt,de,Ie)}getZone(){return this._zone}_findPluginFor(pt){let de=this._eventNameToPlugin.get(pt);if(de)return de;if(de=this._plugins.find(Ge=>Ge.supports(pt)),!de)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(pt,de),de}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Se),h.KVO(h.SKi))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class et{constructor(rt){this._doc=rt}}const it="ng-app-id";let Ye=(()=>{var ve;class rt{constructor(pt,de,Ie,Ge={}){this.doc=pt,this.appId=de,this.nonce=Ie,this.platformId=Ge,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(Ge),this.resetHostNodes()}addStyles(pt){for(const de of pt)1===this.changeUsageCount(de,1)&&this.onStyleAdded(de)}removeStyles(pt){for(const de of pt)this.changeUsageCount(de,-1)<=0&&this.onStyleRemoved(de)}ngOnDestroy(){const pt=this.styleNodesInDOM;pt&&(pt.forEach(de=>de.remove()),pt.clear());for(const de of this.getAllStyles())this.onStyleRemoved(de);this.resetHostNodes()}addHost(pt){this.hostNodes.add(pt);for(const de of this.getAllStyles())this.addStyleToHost(pt,de)}removeHost(pt){this.hostNodes.delete(pt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(pt){for(const de of this.hostNodes)this.addStyleToHost(de,pt)}onStyleRemoved(pt){var de;const Ie=this.styleRef;null===(de=Ie.get(pt))||void 0===de||null===(de=de.elements)||void 0===de||de.forEach(Ge=>Ge.remove()),Ie.delete(pt)}collectServerRenderedStyles(){var pt;const de=null===(pt=this.doc.head)||void 0===pt?void 0:pt.querySelectorAll(`style[${it}="${this.appId}"]`);if(null!=de&&de.length){const Ie=new Map;return de.forEach(Ge=>{null!=Ge.textContent&&Ie.set(Ge.textContent,Ge)}),Ie}return null}changeUsageCount(pt,de){const Ie=this.styleRef;if(Ie.has(pt)){const Ge=Ie.get(pt);return Ge.usage+=de,Ge.usage}return Ie.set(pt,{usage:de,elements:[]}),de}getStyleElement(pt,de){const Ie=this.styleNodesInDOM,Ge=null==Ie?void 0:Ie.get(de);if((null==Ge?void 0:Ge.parentNode)===pt)return Ie.delete(de),Ge.removeAttribute(it),Ge;{const $t=this.doc.createElement("style");return this.nonce&&$t.setAttribute("nonce",this.nonce),$t.textContent=de,this.platformIsServer&&$t.setAttribute(it,this.appId),pt.appendChild($t),$t}}addStyleToHost(pt,de){var Ie;const Ge=this.getStyleElement(pt,de),$t=this.styleRef,le=null===(Ie=$t.get(de))||void 0===Ie?void 0:Ie.elements;le?le.push(Ge):$t.set(de,{elements:[Ge],usage:1})}resetHostNodes(){const pt=this.hostNodes;pt.clear(),pt.add(this.doc.head)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const at={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mt=/%COMP%/g,It=new h.nKC("",{providedIn:"root",factory:()=>!0});function _e(ve,rt){return rt.map(Nt=>Nt.replace(mt,ve))}let $e=(()=>{var ve;class rt{constructor(pt,de,Ie,Ge,$t,le,gt,ft=null){this.eventManager=pt,this.sharedStylesHost=de,this.appId=Ie,this.removeStylesOnCompDestroy=Ge,this.doc=$t,this.platformId=le,this.ngZone=gt,this.nonce=ft,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(le),this.defaultRenderer=new Le(pt,$t,gt,this.platformIsServer)}createRenderer(pt,de){if(!pt||!de)return this.defaultRenderer;this.platformIsServer&&de.encapsulation===h.gXe.ShadowDom&&(de={...de,encapsulation:h.gXe.Emulated});const Ie=this.getOrCreateRenderer(pt,de);return Ie instanceof st?Ie.applyToHost(pt):Ie instanceof At&&Ie.applyStyles(),Ie}getOrCreateRenderer(pt,de){const Ie=this.rendererByCompId;let Ge=Ie.get(de.id);if(!Ge){const $t=this.doc,le=this.ngZone,gt=this.eventManager,ft=this.sharedStylesHost,Qt=this.removeStylesOnCompDestroy,sn=this.platformIsServer;switch(de.encapsulation){case h.gXe.Emulated:Ge=new st(gt,ft,de,this.appId,Qt,$t,le,sn);break;case h.gXe.ShadowDom:return new Cn(gt,ft,pt,de,$t,le,this.nonce,sn);default:Ge=new At(gt,ft,de,Qt,$t,le,sn)}Ie.set(de.id,Ge)}return Ge}ngOnDestroy(){this.rendererByCompId.clear()}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(be),h.KVO(Ye),h.KVO(h.sZ2),h.KVO(It),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class Le{constructor(rt,Nt,pt,de){this.eventManager=rt,this.doc=Nt,this.ngZone=pt,this.platformIsServer=de,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Nt){return Nt?this.doc.createElementNS(at[Nt]||Nt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Nt){(kt(rt)?rt.content:rt).appendChild(Nt)}insertBefore(rt,Nt,pt){rt&&(kt(rt)?rt.content:rt).insertBefore(Nt,pt)}removeChild(rt,Nt){rt&&rt.removeChild(Nt)}selectRootElement(rt,Nt){let pt="string"==typeof rt?this.doc.querySelector(rt):rt;if(!pt)throw new h.wOt(-5104,!1);return Nt||(pt.textContent=""),pt}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Nt,pt,de){if(de){Nt=de+":"+Nt;const Ie=at[de];Ie?rt.setAttributeNS(Ie,Nt,pt):rt.setAttribute(Nt,pt)}else rt.setAttribute(Nt,pt)}removeAttribute(rt,Nt,pt){if(pt){const de=at[pt];de?rt.removeAttributeNS(de,Nt):rt.removeAttribute(`${pt}:${Nt}`)}else rt.removeAttribute(Nt)}addClass(rt,Nt){rt.classList.add(Nt)}removeClass(rt,Nt){rt.classList.remove(Nt)}setStyle(rt,Nt,pt,de){de&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Nt,pt,de&h.czy.Important?"important":""):rt.style[Nt]=pt}removeStyle(rt,Nt,pt){pt&h.czy.DashCase?rt.style.removeProperty(Nt):rt.style[Nt]=""}setProperty(rt,Nt,pt){null!=rt&&(rt[Nt]=pt)}setValue(rt,Nt){rt.nodeValue=Nt}listen(rt,Nt,pt){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Nt}`);return this.eventManager.addEventListener(rt,Nt,this.decoratePreventDefault(pt))}decoratePreventDefault(rt){return Nt=>{if("__ngUnwrap__"===Nt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Nt)):rt(Nt))&&Nt.preventDefault()}}}function kt(ve){return"TEMPLATE"===ve.tagName&&void 0!==ve.content}class Cn extends Le{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){super(rt,Ie,Ge,le),this.sharedStylesHost=Nt,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gt=_e(de.id,de.styles);for(const ft of gt){const Qt=document.createElement("style");$t&&Qt.setAttribute("nonce",$t),Qt.textContent=ft,this.shadowRoot.appendChild(Qt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Nt){return super.appendChild(this.nodeOrShadowRoot(rt),Nt)}insertBefore(rt,Nt,pt){return super.insertBefore(this.nodeOrShadowRoot(rt),Nt,pt)}removeChild(rt,Nt){return super.removeChild(this.nodeOrShadowRoot(rt),Nt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class At extends Le{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){super(rt,Ie,Ge,$t),this.sharedStylesHost=Nt,this.removeStylesOnCompDestroy=de,this.styles=le?_e(le,pt.styles):pt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class st extends At{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){const gt=de+"-"+pt.id;super(rt,Nt,pt,Ie,Ge,$t,le,gt),this.contentAttr=function Te(ve){return"_ngcontent-%COMP%".replace(mt,ve)}(gt),this.hostAttr=function Ze(ve){return"_nghost-%COMP%".replace(mt,ve)}(gt)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Nt){const pt=super.createElement(rt,Nt);return super.setAttribute(pt,this.contentAttr,""),pt}}let cn=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return!0}addEventListener(pt,de,Ie){return pt.addEventListener(de,Ie,!1),()=>this.removeEventListener(pt,de,Ie)}removeEventListener(pt,de,Ie){return pt.removeEventListener(de,Ie)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const vt=["alt","control","meta","shift"],Re={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},G={alt:ve=>ve.altKey,control:ve=>ve.ctrlKey,meta:ve=>ve.metaKey,shift:ve=>ve.shiftKey};let X=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return null!=rt.parseEventName(pt)}addEventListener(pt,de,Ie){const Ge=rt.parseEventName(de),$t=rt.eventCallback(Ge.fullKey,Ie,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(pt,Ge.domEventName,$t))}static parseEventName(pt){const de=pt.toLowerCase().split("."),Ie=de.shift();if(0===de.length||"keydown"!==Ie&&"keyup"!==Ie)return null;const Ge=rt._normalizeKey(de.pop());let $t="",le=de.indexOf("code");if(le>-1&&(de.splice(le,1),$t="code."),vt.forEach(ft=>{const Qt=de.indexOf(ft);Qt>-1&&(de.splice(Qt,1),$t+=ft+".")}),$t+=Ge,0!=de.length||0===Ge.length)return null;const gt={};return gt.domEventName=Ie,gt.fullKey=$t,gt}static matchEventFullKeyCode(pt,de){let Ie=Re[pt.key]||pt.key,Ge="";return de.indexOf("code.")>-1&&(Ie=pt.code,Ge="code."),!(null==Ie||!Ie)&&(Ie=Ie.toLowerCase()," "===Ie?Ie="space":"."===Ie&&(Ie="dot"),vt.forEach($t=>{$t!==Ie&&(0,G[$t])(pt)&&(Ge+=$t+".")}),Ge+=Ie,Ge===de)}static eventCallback(pt,de,Ie){return Ge=>{rt.matchEventFullKeyCode(Ge,pt)&&Ie.runGuarded(()=>de(Ge))}}static _normalizeKey(pt){return"esc"===pt?"escape":pt}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Je=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function ut(){ke.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function xn(){return(0,h.TL$)(document),document},deps:[]}]),Sn=new h.nKC(""),kn=[{provide:h.e01,useClass:class Xe{addToWindow(rt){h.JZv.getAngularTestability=(pt,de=!0)=>{const Ie=rt.findTestabilityInTree(pt,de);if(null==Ie)throw new h.wOt(5103,!1);return Ie},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(pt=>{const de=h.JZv.getAllAngularTestabilities();let Ie=de.length;const Ge=function(){Ie--,0==Ie&&pt()};de.forEach($t=>{$t.whenStable(Ge)})})}findTestabilityInTree(rt,Nt,pt){if(null==Nt)return null;const de=rt.getTestability(Nt);return null!=de?de:pt?(0,c.QT)().isShadowRoot(Nt)?this.findTestabilityInTree(rt,Nt.host,!0):this.findTestabilityInTree(rt,Nt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],On=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function fn(){return new h.zcH},deps:[]},{provide:Se,useClass:cn,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},$e,Ye,be,{provide:h._9s,useExisting:$e},{provide:c.N0,useClass:tt,deps:[]},[]];let or=(()=>{var ve;class rt{constructor(pt){}static withServerTransition(pt){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:pt.appId}]}}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Sn,12))},ve.\u0275mod=h.$C({type:ve}),ve.\u0275inj=h.G2t({providers:[...On,...kn],imports:[c.MD,h.Hbi]}),rt})(),dr=(()=>{var ve;class rt{constructor(pt){this._doc=pt}getTitle(){return this._doc.title}setTitle(pt){this._doc.title=pt||""}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})(),Mr=(()=>{var ve;class rt{}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:function(pt){let de=null;return de=pt?new(pt||ve):h.KVO(sr),de},providedIn:"root"}),rt})(),sr=(()=>{var ve;class rt extends Mr{constructor(pt){super(),this._doc=pt}sanitize(pt,de){if(null==de)return null;switch(pt){case h.WPN.NONE:return de;case h.WPN.HTML:return(0,h.ZF7)(de,"HTML")?(0,h.rcV)(de):(0,h.h9k)(this._doc,String(de)).toString();case h.WPN.STYLE:return(0,h.ZF7)(de,"Style")?(0,h.rcV)(de):de;case h.WPN.SCRIPT:if((0,h.ZF7)(de,"Script"))return(0,h.rcV)(de);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(de,"URL")?(0,h.rcV)(de):(0,h.$MX)(String(de));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(de,"ResourceURL"))return(0,h.rcV)(de);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(pt){return(0,h.Kcf)(pt)}bypassSecurityTrustStyle(pt){return(0,h.cWb)(pt)}bypassSecurityTrustScript(pt){return(0,h.UyX)(pt)}bypassSecurityTrustUrl(pt){return(0,h.osQ)(pt)}bypassSecurityTrustResourceUrl(pt){return(0,h.e5t)(pt)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})()},7650:(Pn,Et,C)=>{"use strict";C.d(Et,{nX:()=>Ce,Zp:()=>Be,wF:()=>Pr,Z:()=>$r,Xk:()=>Je,Kp:()=>io,b:()=>Fn,Ix:()=>ir,Wk:()=>Vi,iI:()=>Is,Sd:()=>yr});var h=C(467),c=C(4438),Z=C(4402),ke=C(8455),$=C(7673),he=C(4412),ae=C(4572),Xe=C(9350),tt=C(8793),Se=C(1985),be=C(8750);function et(E){return new Se.c(b=>{(0,be.Tg)(E()).subscribe(b)})}var it=C(1203),Ye=C(8071);function at(E,b){const N=(0,Ye.T)(E)?E:()=>E,D=L=>L.error(N());return new Se.c(b?L=>b.schedule(D,0,L):D)}var mt=C(983),xt=C(8359),Dt=C(9974),zt=C(4360);function Tt(){return(0,Dt.N)((E,b)=>{let N=null;E._refCount++;const D=(0,zt._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(N=null);const L=E._connection,pe=N;N=null,L&&(!pe||L===pe)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(D),D.closed||(N=E.connect())})}class It extends Se.c{constructor(b,N){super(),this.source=b,this.subjectFactory=N,this._subject=null,this._refCount=0,this._connection=null,(0,Dt.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new xt.yU;const N=this.getSubject();b.add(this.source.subscribe((0,zt._)(N,void 0,()=>{this._teardown(),N.complete()},D=>{this._teardown(),N.error(D)},()=>this._teardown()))),b.closed&&(this._connection=null,b=xt.yU.EMPTY)}return b}refCount(){return Tt()(this)}}var Te=C(1413),Ze=C(177),_e=C(6354),$e=C(5558),Le=C(6697),Oe=C(9172),Ct=C(5964),kt=C(1397),Cn=C(1594),At=C(274),st=C(8141);function cn(E){return(0,Dt.N)((b,N)=>{let pe,D=null,L=!1;D=b.subscribe((0,zt._)(N,void 0,void 0,xe=>{pe=(0,be.Tg)(E(xe,cn(E)(b))),D?(D.unsubscribe(),D=null,pe.subscribe(N)):L=!0})),L&&(D.unsubscribe(),D=null,pe.subscribe(N))})}var G=C(9901);function X(E){return E<=0?()=>mt.w:(0,Dt.N)((b,N)=>{let D=[];b.subscribe((0,zt._)(N,L=>{D.push(L),E{for(const L of D)N.next(L);N.complete()},void 0,()=>{D=null}))})}var ce=C(3774),ue=C(3669),Ve=C(3703),ut=C(980),fn=C(6977),xn=C(6365),un=C(345);const Je="primary",Sn=Symbol("RouteTitle");class kn{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N[0]:N}return null}getAll(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function On(E){return new kn(E)}function or(E,b,N){const D=N.path.split("/");if(D.length>E.length||"full"===N.pathMatch&&(b.hasChildren()||D.lengthD[pe]===L)}return E===b}function Lt(E){return E.length>0?E[E.length-1]:null}function Xt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,ke.H)(Promise.resolve(E)):(0,$.of)(E)}const yn={exact:function $n(E,b,N){if(!ii(E.segments,b.segments)||!br(E.segments,b.segments,N)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const D in b.children)if(!E.children[D]||!$n(E.children[D],b.children[D],N))return!1;return!0},subset:on},En={exact:function Vn(E,b){return cr(E,b)},subset:function In(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(N=>nt(E[N],b[N]))},ignored:()=>!0};function Fr(E,b,N){return yn[N.paths](E.root,b.root,N.matrixParams)&&En[N.queryParams](E.queryParams,b.queryParams)&&!("exact"===N.fragment&&E.fragment!==b.fragment)}function on(E,b,N){return mr(E,b,b.segments,N)}function mr(E,b,N,D){if(E.segments.length>N.length){const L=E.segments.slice(0,N.length);return!(!ii(L,N)||b.hasChildren()||!br(L,N,D))}if(E.segments.length===N.length){if(!ii(E.segments,N)||!br(E.segments,N,D))return!1;for(const L in b.children)if(!E.children[L]||!on(E.children[L],b.children[L],D))return!1;return!0}{const L=N.slice(0,E.segments.length),pe=N.slice(E.segments.length);return!!(ii(E.segments,L)&&br(E.segments,L,D)&&E.children[Je])&&mr(E.children[Je],b,pe,D)}}function br(E,b,N){return b.every((D,L)=>En[N](E[L].parameters,D.parameters))}class Vr{constructor(b=new rr([],{}),N={},D=null){this.root=b,this.queryParams=N,this.fragment=D}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return ar.serialize(this)}}class rr{constructor(b,N){this.segments=b,this.children=N,this.parent=null,Object.values(N).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lr(this)}}class Mr{constructor(b,N){this.path=b,this.parameters=N}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=On(this.parameters)),this._parameterMap}toString(){return de(this)}}function ii(E,b){return E.length===b.length&&E.every((N,D)=>N.path===b[D].path)}let yr=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Br,providedIn:"root"}),b})();class Br{parse(b){const N=new dn(b);return new Vr(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize(b){const N=`/${li(b.root,!0)}`,D=function Ge(E){const b=Object.entries(E).map(([N,D])=>Array.isArray(D)?D.map(L=>`${Zr(N)}=${Zr(L)}`).join("&"):`${Zr(N)}=${Zr(D)}`).filter(N=>N);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${N}${D}${"string"==typeof b.fragment?`#${function ve(E){return encodeURI(E)}(b.fragment)}`:""}`}}const ar=new Br;function Lr(E){return E.segments.map(b=>de(b)).join("/")}function li(E,b){if(!E.hasChildren())return Lr(E);if(b){const N=E.children[Je]?li(E.children[Je],!1):"",D=[];return Object.entries(E.children).forEach(([L,pe])=>{L!==Je&&D.push(`${L}:${li(pe,!1)}`)}),D.length>0?`${N}(${D.join("//")})`:N}{const N=function Tr(E,b){let N=[];return Object.entries(E.children).forEach(([D,L])=>{D===Je&&(N=N.concat(b(L,D)))}),Object.entries(E.children).forEach(([D,L])=>{D!==Je&&(N=N.concat(b(L,D)))}),N}(E,(D,L)=>L===Je?[li(E.children[Je],!1)]:[`${L}:${li(D,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Je]?`${Lr(E)}/${N[0]}`:`${Lr(E)}/(${N.join("//")})`}}function Di(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zr(E){return Di(E).replace(/%3B/gi,";")}function rt(E){return Di(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(E){return decodeURIComponent(E)}function pt(E){return Nt(E.replace(/\+/g,"%20"))}function de(E){return`${rt(E.path)}${function Ie(E){return Object.entries(E).map(([b,N])=>`;${rt(b)}=${rt(N)}`).join("")}(E.parameters)}`}const $t=/^[^\/()?;#]+/;function le(E){const b=E.match($t);return b?b[0]:""}const gt=/^[^\/()?;=#]+/,Qt=/^[^=?&#]+/,Tn=/^[^&#]+/;class dn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rr([],{}):new rr([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(b.length>0||Object.keys(N).length>0)&&(D[Je]=new rr(b,N)),D}parseSegment(){const b=le(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Mr(Nt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const N=function ft(E){const b=E.match(gt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const L=le(this.remaining);L&&(D=L,this.capture(D))}b[Nt(N)]=Nt(D)}parseQueryParam(b){const N=function sn(E){const b=E.match(Qt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const xe=function Xn(E){const b=E.match(Tn);return b?b[0]:""}(this.remaining);xe&&(D=xe,this.capture(D))}const L=pt(N),pe=pt(D);if(b.hasOwnProperty(L)){let xe=b[L];Array.isArray(xe)||(xe=[xe],b[L]=xe),xe.push(pe)}else b[L]=pe}parseParens(b){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=le(this.remaining),L=this.remaining[D.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let pe;D.indexOf(":")>-1?(pe=D.slice(0,D.indexOf(":")),this.capture(pe),this.capture(":")):b&&(pe=Je);const xe=this.parseChildren();N[pe]=1===Object.keys(xe).length?xe[Je]:new rr([],xe),this.consumeOptional("//")}return N}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function wn(E){return E.segments.length>0?new rr([],{[Je]:E}):E}function hr(E){const b={};for(const[D,L]of Object.entries(E.children)){const pe=hr(L);if(D===Je&&0===pe.segments.length&&pe.hasChildren())for(const[xe,Ft]of Object.entries(pe.children))b[xe]=Ft;else(pe.segments.length>0||pe.hasChildren())&&(b[D]=pe)}return function wr(E){if(1===E.numberOfChildren&&E.children[Je]){const b=E.children[Je];return new rr(E.segments.concat(b.segments),b.children)}return E}(new rr(E.segments,b))}function fr(E){return E instanceof Vr}function oi(E){var b;let N;const pe=wn(function D(xe){const Ft={};for(const Wt of xe.children){const Qn=D(Wt);Ft[Wt.outlet]=Qn}const An=new rr(xe.url,Ft);return xe===E&&(N=An),An}(E.root));return null!==(b=N)&&void 0!==b?b:pe}function Ir(E,b,N,D){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return Ar(L,L,L,N,D);const pe=function te(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ie(!0,0,E);let b=0,N=!1;const D=E.reduce((L,pe,xe)=>{if("object"==typeof pe&&null!=pe){if(pe.outlets){const Ft={};return Object.entries(pe.outlets).forEach(([An,Wt])=>{Ft[An]="string"==typeof Wt?Wt.split("/"):Wt}),[...L,{outlets:Ft}]}if(pe.segmentPath)return[...L,pe.segmentPath]}return"string"!=typeof pe?[...L,pe]:0===xe?(pe.split("/").forEach((Ft,An)=>{0==An&&"."===Ft||(0==An&&""===Ft?N=!0:".."===Ft?b++:""!=Ft&&L.push(Ft))}),L):[...L,pe]},[]);return new ie(N,b,D)}(b);if(pe.toRoot())return Ar(L,L,new rr([],{}),N,D);const xe=function M(E,b,N){if(E.isAbsolute)return new ze(b,!0,0);if(!N)return new ze(b,!1,NaN);if(null===N.parent)return new ze(N,!0,0);const D=xi(E.commands[0])?0:1;return function O(E,b,N){let D=E,L=b,pe=N;for(;pe>L;){if(pe-=L,D=D.parent,!D)throw new c.wOt(4005,!1);L=D.segments.length}return new ze(D,!1,L-pe)}(N,N.segments.length-1+D,E.numberOfDoubleDots)}(pe,L,E),Ft=xe.processChildren?We(xe.segmentGroup,xe.index,pe.commands):we(xe.segmentGroup,xe.index,pe.commands);return Ar(L,xe.segmentGroup,Ft,N,D)}function xi(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function vi(E){return"object"==typeof E&&null!=E&&E.outlets}function Ar(E,b,N,D,L){let xe,pe={};D&&Object.entries(D).forEach(([An,Wt])=>{pe[An]=Array.isArray(Wt)?Wt.map(Qn=>`${Qn}`):`${Wt}`}),xe=E===b?N:Gt(E,b,N);const Ft=wn(hr(xe));return new Vr(Ft,pe,L)}function Gt(E,b,N){const D={};return Object.entries(E.children).forEach(([L,pe])=>{D[L]=pe===b?N:Gt(pe,b,N)}),new rr(E.segments,D)}class ie{constructor(b,N,D){if(this.isAbsolute=b,this.numberOfDoubleDots=N,this.commands=D,b&&D.length>0&&xi(D[0]))throw new c.wOt(4003,!1);const L=D.find(vi);if(L&&L!==Lt(D))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ze{constructor(b,N,D){this.segmentGroup=b,this.processChildren=N,this.index=D}}function we(E,b,N){var D;if(null!==(D=E)&&void 0!==D||(E=new rr([],{})),0===E.segments.length&&E.hasChildren())return We(E,b,N);const L=function St(E,b,N){let D=0,L=b;const pe={match:!1,pathIndex:0,commandIndex:0};for(;L=N.length)return pe;const xe=E.segments[L],Ft=N[D];if(vi(Ft))break;const An=`${Ft}`,Wt=D0&&void 0===An)break;if(An&&Wt&&"object"==typeof Wt&&void 0===Wt.outlets){if(!qn(An,Wt,xe))return pe;D+=2}else{if(!qn(An,{},xe))return pe;D++}L++}return{match:!0,pathIndex:L,commandIndex:D}}(E,b,N),pe=N.slice(L.commandIndex);if(L.match&&L.pathIndexpe!==Je)&&E.children[Je]&&1===E.numberOfChildren&&0===E.children[Je].segments.length){const pe=We(E.children[Je],b,N);return new rr(E.segments,pe.children)}return Object.entries(D).forEach(([pe,xe])=>{"string"==typeof xe&&(xe=[xe]),null!==xe&&(L[pe]=we(E.children[pe],b,xe))}),Object.entries(E.children).forEach(([pe,xe])=>{void 0===D[pe]&&(L[pe]=xe)}),new rr(E.segments,L)}}function nn(E,b,N){const D=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(b[N]=nn(new rr([],{}),0,D))}),b}function pr(E){const b={};return Object.entries(E).forEach(([N,D])=>b[N]=`${D}`),b}function qn(E,b,N){return E==N.path&&cr(b,N.parameters)}const Sr="imperative";var jn=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(jn||{});class zr{constructor(b,N){this.id=b,this.url=N}}class $r extends zr{constructor(b,N,D="imperative",L=null){super(b,N),this.type=jn.NavigationStart,this.navigationTrigger=D,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends zr{constructor(b,N,D){super(b,N),this.urlAfterRedirects=D,this.type=jn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Nr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Nr||{}),er=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(er||{});class Rr extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationSkipped}}class hi extends zr{constructor(b,N,D,L){super(b,N),this.error=D,this.target=L,this.type=jn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends zr{constructor(b,N,D,L,pe){super(b,N),this.urlAfterRedirects=D,this.state=L,this.shouldActivate=pe,this.type=jn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mo{constructor(b){this.route=b,this.type=jn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fi{constructor(b){this.route=b,this.type=jn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yi{constructor(b){this.snapshot=b,this.type=jn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{constructor(b){this.snapshot=b,this.type=jn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bo{constructor(b){this.snapshot=b,this.type=jn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ui{constructor(b){this.snapshot=b,this.type=jn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pt{constructor(b,N,D){this.routerEvent=b,this.position=N,this.anchor=D,this.type=jn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ge{}class fe{constructor(b){this.url=b}}class je{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Be,this.attachRef=null}}let Be=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(D,L){const pe=this.getOrCreateContext(D);pe.outlet=L,this.contexts.set(D,pe)}onChildOutletDestroyed(D){const L=this.getContext(D);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let L=this.getContext(D);return L||(L=new je,this.contexts.set(D,L)),L}getContext(D){return this.contexts.get(D)||null}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class ct{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const N=this.pathFromRoot(b);return N.length>1?N[N.length-2]:null}children(b){const N=Kt(b,this._root);return N?N.children.map(D=>D.value):[]}firstChild(b){const N=Kt(b,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings(b){const N=Dn(b,this._root);return N.length<2?[]:N[N.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return Dn(b,this._root).map(N=>N.value)}}function Kt(E,b){if(E===b.value)return b;for(const N of b.children){const D=Kt(E,N);if(D)return D}return null}function Dn(E,b){if(E===b.value)return[b];for(const N of b.children){const D=Dn(E,N);if(D.length)return D.unshift(b),D}return[]}class Hn{constructor(b,N){this.value=b,this.children=N}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(N=>b[N.value.outlet]=N),b}class H extends ct{constructor(b,N){super(b),this.snapshot=N,W(this,b)}toString(){return this.snapshot.toString()}}function oe(E){const b=function P(E){const pe=new vr([],{},{},"",{},Je,E,null,{});return new ai("",new Hn(pe,[]))}(E),N=new he.t([new Mr("",{})]),D=new he.t({}),L=new he.t({}),pe=new he.t({}),xe=new he.t(""),Ft=new Ce(N,D,pe,xe,L,Je,E,b.root);return Ft.snapshot=b.root,new H(new Hn(Ft,[]),b)}class Ce{constructor(b,N,D,L,pe,xe,Ft,An){var Wt,Qn;this.urlSubject=b,this.paramsSubject=N,this.queryParamsSubject=D,this.fragmentSubject=L,this.dataSubject=pe,this.outlet=xe,this.component=Ft,this._futureSnapshot=An,this.title=null!==(Wt=null===(Qn=this.dataSubject)||void 0===Qn?void 0:Qn.pipe((0,_e.T)(Xr=>Xr[Sn])))&&void 0!==Wt?Wt:(0,$.of)(void 0),this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,_e.T)(N=>On(N)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,_e.T)(N=>On(N)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dt(E,b,N="emptyOnly"){var D;let L;const{routeConfig:pe}=E;var xe;return L=null===b||"always"!==N&&""!==(null==pe?void 0:pe.path)&&(b.component||null!==(D=b.routeConfig)&&void 0!==D&&D.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(xe=E._resolvedData)&&void 0!==xe?xe:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==pe?void 0:pe.data,...E._resolvedData}},pe&&Ot(pe)&&(L.resolve[Sn]=pe.title),L}class vr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Sn]}constructor(b,N,D,L,pe,xe,Ft,An,Wt){this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe,this.outlet=xe,this.component=Ft,this.routeConfig=An,this._resolve=Wt}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(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=On(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ai extends ct{constructor(b,N){super(N),this.url=b,W(this,N)}toString(){return ye(this._root)}}function W(E,b){b.value._routerState=E,b.children.forEach(N=>W(E,N))}function ye(E){const b=E.children.length>0?` { ${E.children.map(ye).join(", ")} } `:"";return`${E.value}${b}`}function Fe(E){if(E.snapshot){const b=E.snapshot,N=E._futureSnapshot;E.snapshot=N,cr(b.queryParams,N.queryParams)||E.queryParamsSubject.next(N.queryParams),b.fragment!==N.fragment&&E.fragmentSubject.next(N.fragment),cr(b.params,N.params)||E.paramsSubject.next(N.params),function gr(E,b){if(E.length!==b.length)return!1;for(let N=0;Ncr(N.parameters,b[D].parameters))}(E.url,b.url);return N&&!(!E.parent!=!b.parent)&&(!E.parent||ot(E.parent,b.parent))}function Ot(E){return"string"==typeof E.title||null===E.title}let wt=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=Je,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(pn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:L,previousValue:pe}=D.name;if(L)return;this.isTrackedInParentContexts(pe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(pe)),this.initializeOutletWithName()}}ngOnDestroy(){var D;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(D=this.inputBinder)||void 0===D||D.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){var L;return(null===(L=this.parentContexts.getContext(D))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);null!=D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,L){var pe;this.activated=D,this._activatedRoute=L,this.location.insert(D.hostView),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,L){var pe;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=D;const xe=this.location,An=D.snapshot.component,Wt=this.parentContexts.getOrCreateContext(this.name).children,Qn=new en(D,Wt,xe.injector);this.activated=xe.createComponent(An,{index:xe.length,injector:Qn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class en{__ngOutletInjector(b){return new en(this.route,this.childContexts,b)}constructor(b,N,D){this.route=b,this.childContexts=N,this.parent=D}get(b,N){return b===Ce?this.route:b===Be?this.childContexts:this.parent.get(b,N)}}const pn=new c.nKC("");let vn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){var L;null===(L=this.outletDataSubscriptions.get(D))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:L}=D,pe=(0,ae.z)([L.queryParams,L.params,L.data]).pipe((0,$e.n)(([xe,Ft,An],Wt)=>(An={...xe,...Ft,...An},0===Wt?(0,$.of)(An):Promise.resolve(An)))).subscribe(xe=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(D);const Ft=(0,c.HJs)(L.component);if(Ft)for(const{templateName:An}of Ft.inputs)D.activatedComponentRef.setInput(An,xe[An]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,pe)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Gn(E,b,N){if(N&&E.shouldReuseRoute(b.value,N.value.snapshot)){const D=N.value;D._futureSnapshot=b.value;const L=function Yn(E,b,N){return b.children.map(D=>{for(const L of N.children)if(E.shouldReuseRoute(D.value,L.value.snapshot))return Gn(E,D,L);return Gn(E,D)})}(E,b,N);return new Hn(D,L)}{if(E.shouldAttach(b.value)){const pe=E.retrieve(b.value);if(null!==pe){const xe=pe.route;return xe.value._futureSnapshot=b.value,xe.children=b.children.map(Ft=>Gn(E,Ft)),xe}}const D=function _r(E){return new Ce(new he.t(E.url),new he.t(E.params),new he.t(E.queryParams),new he.t(E.fragment),new he.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(pe=>Gn(E,pe));return new Hn(D,L)}}const Kn="ngNavigationCancelingError";function Qr(E,b){const{redirectTo:N,navigationBehaviorOptions:D}=fr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=Wr(!1,Nr.Redirect);return L.url=N,L.navigationBehaviorOptions=D,L}function Wr(E,b){const N=new Error(`NavigationCancelingError: ${E||""}`);return N[Kn]=!0,N.cancellationCode=b,N}function ki(E){return!!E&&E[Kn]}let Fi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(D,L){1&D&&c.nrm(0,"router-outlet")},dependencies:[wt],encapsulation:2}),b})();function ws(E){const b=E.children&&E.children.map(ws),N=b?{...E,children:b}:{...E};return!N.component&&!N.loadComponent&&(b||N.loadChildren)&&N.outlet&&N.outlet!==Je&&(N.component=Fi),N}function ho(E){return E.outlet||Je}function Jr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let N=E.parent;N;N=N.parent){const D=N.routeConfig;if(null!=D&&D._loadedInjector)return D._loadedInjector;if(null!=D&&D._injector)return D._injector}return null}class Ss{constructor(b,N,D,L,pe){this.routeReuseStrategy=b,this.futureState=N,this.currState=D,this.forwardEvent=L,this.inputBindingEnabled=pe}activate(b){const N=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,D,b),Fe(this.futureState.root),this.activateChildRoutes(N,D,b)}deactivateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{const xe=pe.value.outlet;this.deactivateRoutes(pe,L[xe],D),delete L[xe]}),Object.values(L).forEach(pe=>{this.deactivateRouteAndItsChildren(pe,D)})}deactivateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(L===pe)if(L.component){const xe=D.getContext(L.outlet);xe&&this.deactivateChildRoutes(b,N,xe.children)}else this.deactivateChildRoutes(b,N,D);else pe&&this.deactivateRouteAndItsChildren(N,D)}deactivateRouteAndItsChildren(b,N){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,N):this.deactivateRouteAndOutlet(b,N)}detachAndStoreRouteSubtree(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);if(D&&D.outlet){const xe=D.outlet.detach(),Ft=D.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:xe,route:b,contexts:Ft})}}deactivateRouteAndOutlet(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{this.activateRoutes(pe,L[pe.value.outlet],D),this.forwardEvent(new ui(pe.value.snapshot))}),b.children.length&&this.forwardEvent(new vo(b.value.snapshot))}activateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(Fe(L),L===pe)if(L.component){const xe=D.getOrCreateContext(L.outlet);this.activateChildRoutes(b,N,xe.children)}else this.activateChildRoutes(b,N,D);else if(L.component){const xe=D.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Ft=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),xe.children.onOutletReAttached(Ft.contexts),xe.attachRef=Ft.componentRef,xe.route=Ft.route.value,xe.outlet&&xe.outlet.attach(Ft.componentRef,Ft.route.value),Fe(Ft.route.value),this.activateChildRoutes(b,null,xe.children)}else{const Ft=Jr(L.snapshot);xe.attachRef=null,xe.route=L,xe.injector=Ft,xe.outlet&&xe.outlet.activateWith(L,xe.injector),this.activateChildRoutes(b,null,xe.children)}}else this.activateChildRoutes(b,null,D)}}class Us{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Rs{constructor(b,N){this.component=b,this.route=N}}function Zo(E,b,N){const D=E._root;return us(D,b?b._root:null,N,[D.value])}function Xo(E,b){const N=Symbol(),D=b.get(E,N);return D===N?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:D}function us(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=w(b);return E.children.forEach(xe=>{(function Ms(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=E.value,xe=b?b.value:null,Ft=N?N.getContext(E.value.outlet):null;if(xe&&pe.routeConfig===xe.routeConfig){const An=function ne(E,b,N){if("function"==typeof N)return N(E,b);switch(N){case"pathParamsChange":return!ii(E.url,b.url);case"pathParamsOrQueryParamsChange":return!ii(E.url,b.url)||!cr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ot(E,b)||!cr(E.queryParams,b.queryParams);default:return!ot(E,b)}}(xe,pe,pe.routeConfig.runGuardsAndResolvers);An?L.canActivateChecks.push(new Us(D)):(pe.data=xe.data,pe._resolvedData=xe._resolvedData),us(E,b,pe.component?Ft?Ft.children:null:N,D,L),An&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&L.canDeactivateChecks.push(new Rs(Ft.outlet.component,xe))}else xe&&ee(b,Ft,L),L.canActivateChecks.push(new Us(D)),us(E,null,pe.component?Ft?Ft.children:null:N,D,L)})(xe,pe[xe.value.outlet],N,D.concat([xe.value]),L),delete pe[xe.value.outlet]}),Object.entries(pe).forEach(([xe,Ft])=>ee(Ft,N.getContext(xe),L)),L}function ee(E,b,N){const D=w(E),L=E.value;Object.entries(D).forEach(([pe,xe])=>{ee(xe,L.component?b?b.children.getContext(pe):null:b,N)}),N.canDeactivateChecks.push(new Rs(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function qe(E){return"function"==typeof E}function z(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const Pe=Symbol("INITIAL_VALUE");function an(){return(0,$e.n)(E=>(0,ae.z)(E.map(b=>b.pipe((0,Le.s)(1),(0,Oe.Z)(Pe)))).pipe((0,_e.T)(b=>{for(const N of b)if(!0!==N){if(N===Pe)return Pe;if(!1===N||N instanceof Vr)return N}return!0}),(0,Ct.p)(b=>b!==Pe),(0,Le.s)(1)))}function qo(E){return(0,it.F)((0,st.M)(b=>{if(fr(b))throw Qr(0,b)}),(0,_e.T)(b=>!0===b))}class ys{constructor(b){this.segmentGroup=b||null}}class Eo extends Error{constructor(b){super(),this.urlTree=b}}function ko(E){return at(new ys(E))}class So{constructor(b,N){this.urlSerializer=b,this.urlTree=N}lineralizeSegments(b,N){let D=[],L=N.root;for(;;){if(D=D.concat(L.segments),0===L.numberOfChildren)return(0,$.of)(D);if(L.numberOfChildren>1||!L.children[Je])return at(new c.wOt(4e3,!1));L=L.children[Je]}}applyRedirectCommands(b,N,D){const L=this.applyRedirectCreateUrlTree(N,this.urlSerializer.parse(N),b,D);if(N.startsWith("/"))throw new Eo(L);return L}applyRedirectCreateUrlTree(b,N,D,L){const pe=this.createSegmentGroup(b,N.root,D,L);return new Vr(pe,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams(b,N){const D={};return Object.entries(b).forEach(([L,pe])=>{if("string"==typeof pe&&pe.startsWith(":")){const Ft=pe.substring(1);D[L]=N[Ft]}else D[L]=pe}),D}createSegmentGroup(b,N,D,L){const pe=this.createSegments(b,N.segments,D,L);let xe={};return Object.entries(N.children).forEach(([Ft,An])=>{xe[Ft]=this.createSegmentGroup(b,An,D,L)}),new rr(pe,xe)}createSegments(b,N,D,L){return N.map(pe=>pe.path.startsWith(":")?this.findPosParam(b,pe,L):this.findOrReturn(pe,D))}findPosParam(b,N,D){const L=D[N.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,N){let D=0;for(const L of N){if(L.path===b.path)return N.splice(D),L;D++}return b}}const Li={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(E,b,N,D,L){const pe=es(E,b,N);return pe.matched?(D=function Bi(E,b){var N;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(N=E._injector)&&void 0!==N?N:b}(b,D),function cs(E,b,N,D){const L=b.canMatch;if(!L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function se(E){return E&&qe(E.canMatch)}(Ft)?Ft.canMatch(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(D,b,N).pipe((0,_e.T)(xe=>!0===xe?pe:{...Li}))):(0,$.of)(pe)}function es(E,b,N){var D,L;if("**"===b.path)return function Ps(E){return{matched:!0,parameters:E.length>0?Lt(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(N);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||N.length>0)?{...Li}:{matched:!0,consumedSegments:[],remainingSegments:N,parameters:{},positionalParamSegments:{}};const xe=(b.matcher||or)(N,E,b);if(!xe)return{...Li};const Ft={};Object.entries(null!==(D=xe.posParams)&&void 0!==D?D:{}).forEach(([Wt,Qn])=>{Ft[Wt]=Qn.path});const An=xe.consumed.length>0?{...Ft,...xe.consumed[xe.consumed.length-1].parameters}:Ft;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:N.slice(xe.consumed.length),parameters:An,positionalParamSegments:null!==(L=xe.posParams)&&void 0!==L?L:{}}}function cl(E,b,N,D){return N.length>0&&function Zs(E,b,N){return N.some(D=>xs(E,b,D)&&ho(D)!==Je)}(E,N,D)?{segmentGroup:new rr(b,dl(D,new rr(N,E.children))),slicedSegments:[]}:0===N.length&&function Ua(E,b,N){return N.some(D=>xs(E,b,D))}(E,N,D)?{segmentGroup:new rr(E.segments,ei(E,N,D,E.children)),slicedSegments:N}:{segmentGroup:new rr(E.segments,E.children),slicedSegments:N}}function ei(E,b,N,D){const L={};for(const pe of N)if(xs(E,b,pe)&&!D[ho(pe)]){const xe=new rr([],{});L[ho(pe)]=xe}return{...D,...L}}function dl(E,b){const N={};N[Je]=b;for(const D of E)if(""===D.path&&ho(D)!==Je){const L=new rr([],{});N[ho(D)]=L}return N}function xs(E,b,N){return(!(E.hasChildren()||b.length>0)||"full"!==N.pathMatch)&&""===N.path}class Ul{}class Os{constructor(b,N,D,L,pe,xe,Ft){this.injector=b,this.configLoader=N,this.rootComponentType=D,this.config=L,this.urlTree=pe,this.paramsInheritanceStrategy=xe,this.urlSerializer=Ft,this.applyRedirects=new So(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,_e.T)(N=>{const D=new vr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Je,this.rootComponentType,null,{}),L=new Hn(D,N),pe=new ai("",L),xe=function Ur(E,b,N=null,D=null){return Ir(oi(E),b,N,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return xe.queryParams=this.urlTree.queryParams,pe.url=this.urlSerializer.serialize(xe),this.inheritParamsAndData(pe._root,null),{state:pe,tree:xe}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,Je).pipe(cn(D=>{if(D instanceof Eo)return this.urlTree=D.urlTree,this.match(D.urlTree.root);throw D instanceof ys?this.noMatchError(D):D}))}inheritParamsAndData(b,N){const D=b.value,L=dt(D,N,this.paramsInheritanceStrategy);D.params=Object.freeze(L.params),D.data=Object.freeze(L.data),b.children.forEach(pe=>this.inheritParamsAndData(pe,D))}processSegmentGroup(b,N,D,L){return 0===D.segments.length&&D.hasChildren()?this.processChildren(b,N,D):this.processSegment(b,N,D,D.segments,L,!0).pipe((0,_e.T)(pe=>pe instanceof Hn?[pe]:[]))}processChildren(b,N,D){const L=[];for(const pe of Object.keys(D.children))"primary"===pe?L.unshift(pe):L.push(pe);return(0,ke.H)(L).pipe((0,At.H)(pe=>{const xe=D.children[pe],Ft=function Uo(E,b){const N=E.filter(D=>ho(D)===b);return N.push(...E.filter(D=>ho(D)!==b)),N}(N,pe);return this.processSegmentGroup(b,Ft,xe,pe)}),function Re(E,b){return(0,Dt.N)(function vt(E,b,N,D,L){return(pe,xe)=>{let Ft=N,An=b,Wt=0;pe.subscribe((0,zt._)(xe,Qn=>{const Xr=Wt++;An=Ft?E(An,Qn,Xr):(Ft=!0,Qn),D&&xe.next(An)},L&&(()=>{Ft&&xe.next(An),xe.complete()})))}}(E,b,arguments.length>=2,!0))}((pe,xe)=>(pe.push(...xe),pe)),(0,G.U)(null),function Ee(E,b){const N=arguments.length>=2;return D=>D.pipe(E?(0,Ct.p)((L,pe)=>E(L,pe,D)):ue.D,X(1),N?(0,G.U)(b):(0,ce.v)(()=>new Xe.G))}(),(0,kt.Z)(pe=>{if(null===pe)return ko(D);const xe=Ns(pe);return function $s(E){E.sort((b,N)=>b.value.outlet===Je?-1:N.value.outlet===Je?1:b.value.outlet.localeCompare(N.value.outlet))}(xe),(0,$.of)(xe)}))}processSegment(b,N,D,L,pe,xe){return(0,ke.H)(N).pipe((0,At.H)(Ft=>{var An;return this.processSegmentAgainstRoute(null!==(An=Ft._injector)&&void 0!==An?An:b,N,Ft,D,L,pe,xe).pipe(cn(Wt=>{if(Wt instanceof ys)return(0,$.of)(null);throw Wt}))}),(0,Cn.$)(Ft=>!!Ft),cn(Ft=>{if(z(Ft))return function $a(E,b,N){return 0===b.length&&!E.children[N]}(D,L,pe)?(0,$.of)(new Ul):ko(D);throw Ft}))}processSegmentAgainstRoute(b,N,D,L,pe,xe,Ft){return function hl(E,b,N,D){return!!(ho(E)===D||D!==Je&&xs(b,N,E))&&es(b,E,N).matched}(D,L,pe,xe)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(b,L,D,pe,xe):this.allowRedirects&&Ft?this.expandSegmentAgainstRouteUsingRedirect(b,L,N,D,pe,xe):ko(L):ko(L)}expandSegmentAgainstRouteUsingRedirect(b,N,D,L,pe,xe){const{matched:Ft,consumedSegments:An,positionalParamSegments:Wt,remainingSegments:Qn}=es(N,L,pe);if(!Ft)return ko(N);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Xr=this.applyRedirects.applyRedirectCommands(An,L.redirectTo,Wt);return this.applyRedirects.lineralizeSegments(L,Xr).pipe((0,kt.Z)(Ji=>this.processSegment(b,D,N,Ji.concat(Qn),xe,!1)))}matchSegmentAgainstRoute(b,N,D,L,pe){const xe=Ba(N,D,L,b);return"**"===D.path&&(N.children={}),xe.pipe((0,$e.n)(Ft=>{var An;return Ft.matched?(b=null!==(An=D._injector)&&void 0!==An?An:b,this.getChildConfig(b,D,L).pipe((0,$e.n)(({routes:Wt})=>{var Qn,Xr,Ji;const Ri=null!==(Qn=D._loadedInjector)&&void 0!==Qn?Qn:b,{consumedSegments:fo,remainingSegments:oa,parameters:Wa}=Ft,Ka=new vr(fo,Wa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function hs(E){return E.data||{}}(D),ho(D),null!==(Xr=null!==(Ji=D.component)&&void 0!==Ji?Ji:D._loadedComponent)&&void 0!==Xr?Xr:null,D,function Ru(E){return E.resolve||{}}(D)),{segmentGroup:Hs,slicedSegments:As}=cl(N,fo,oa,Wt);if(0===As.length&&Hs.hasChildren())return this.processChildren(Ri,Wt,Hs).pipe((0,_e.T)(Xa=>null===Xa?null:new Hn(Ka,Xa)));if(0===Wt.length&&0===As.length)return(0,$.of)(new Hn(Ka,[]));const Ra=ho(D)===pe;return this.processSegment(Ri,Wt,Hs,As,Ra?Je:pe,!0).pipe((0,_e.T)(Xa=>new Hn(Ka,Xa instanceof Hn?[Xa]:[])))}))):ko(N)}))}getChildConfig(b,N,D){return N.children?(0,$.of)({routes:N.children,injector:b}):N.loadChildren?void 0!==N._loadedRoutes?(0,$.of)({routes:N._loadedRoutes,injector:N._loadedInjector}):function Qi(E,b,N,D){const L=b.canLoad;if(void 0===L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function Vt(E){return E&&qe(E.canLoad)}(Ft)?Ft.canLoad(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(b,N,D).pipe((0,kt.Z)(L=>L?this.configLoader.loadChildren(b,N).pipe((0,st.M)(pe=>{N._loadedRoutes=pe.routes,N._loadedInjector=pe.injector})):function eo(E){return at(Wr(!1,Nr.GuardRejected))}())):(0,$.of)({routes:[],injector:b})}}function ds(E){const b=E.value.routeConfig;return b&&""===b.path}function Ns(E){const b=[],N=new Set;for(const D of E){if(!ds(D)){b.push(D);continue}const L=b.find(pe=>D.value.routeConfig===pe.value.routeConfig);void 0!==L?(L.children.push(...D.children),N.add(L)):b.push(D)}for(const D of N){const L=Ns(D.children);b.push(new Hn(D.value,L))}return b.filter(D=>!N.has(D))}function Qo(E){const b=E.children.map(N=>Qo(N)).flat();return[E,...b]}function ja(E){return(0,$e.n)(b=>{const N=E(b);return N?(0,ke.H)(N).pipe((0,_e.T)(()=>b)):(0,$.of)(b)})}let Ea=(()=>{var E;class b{buildTitle(D){let L,pe=D.root;for(;void 0!==pe;){var xe;L=null!==(xe=this.getResolvedTitleForRoute(pe))&&void 0!==xe?xe:L,pe=pe.children.find(Ft=>Ft.outlet===Je)}return L}getResolvedTitleForRoute(D){return D.data[Sn]}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(za),providedIn:"root"}),b})(),za=(()=>{var E;class b extends Ea{constructor(D){super(),this.title=D}updateTitle(D){const L=this.buildTitle(D);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(un.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ts=new c.nKC("",{providedIn:"root",factory:()=>({})}),Ia=new c.nKC("");let Aa=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,$.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const L=Xt(D.loadComponent()).pipe((0,_e.T)(Gl),(0,st.M)(xe=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=xe}),(0,ut.j)(()=>{this.componentLoaders.delete(D)})),pe=new It(L,()=>new Te.B).pipe(Tt());return this.componentLoaders.set(D,pe),pe}loadChildren(D,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,$.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const xe=function ea(E,b,N,D){return Xt(E.loadChildren()).pipe((0,_e.T)(Gl),(0,kt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,$.of)(L):(0,ke.H)(b.compileModuleAsync(L))),(0,_e.T)(L=>{D&&D(E);let pe,xe,Ft=!1;return Array.isArray(L)?(xe=L,!0):(pe=L.create(N).injector,xe=pe.get(Ia,[],{optional:!0,self:!0}).flat()),{routes:xe.map(ws),injector:pe}}))}(L,this.compiler,D,this.onLoadEndListener).pipe((0,ut.j)(()=>{this.childrenLoaders.delete(L)})),Ft=new It(xe,()=>new Te.B).pipe(Tt());return this.childrenLoaders.set(L,Ft),Ft}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function Co(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ca=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(T),providedIn:"root"}),b})(),T=(()=>{var E;class b{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,L){return D}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const j=new c.nKC(""),Ue=new c.nKC("");function F(E,b,N){const D=E.get(Ue),L=E.get(Ze.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||D.skipNextTransition)return D.skipNextTransition=!1,new Promise(Wt=>setTimeout(Wt));let pe;const xe=new Promise(Wt=>{pe=Wt}),Ft=L.startViewTransition(()=>(pe(),function De(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:An}=D;return An&&(0,c.N4e)(E,()=>An({transition:Ft,from:b,to:N})),xe})}let Qe=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Te.B,this.transitionAbortSubject=new Te.B,this.configLoader=(0,c.WQX)(Aa),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(yr),this.rootContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(Ze.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(pn,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ea),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.createViewTransition=(0,c.WQX)(j,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,$.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=pe=>this.events.next(new fi(pe)),this.configLoader.onLoadStartListener=pe=>this.events.next(new mo(pe))}complete(){var D;null===(D=this.transitions)||void 0===D||D.complete()}handleNavigationRequest(D){var L;const pe=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...D,id:pe})}setupNavigations(D,L,pe){return this.transitions=new he.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sr,restoredState:null,currentSnapshot:pe.snapshot,targetSnapshot:null,currentRouterState:pe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ct.p)(xe=>0!==xe.id),(0,_e.T)(xe=>({...xe,extractedUrl:this.urlHandlingStrategy.extract(xe.rawUrl)})),(0,$e.n)(xe=>{let Ft=!1,An=!1;return(0,$.of)(xe).pipe((0,$e.n)(Wt=>{var Qn;if(this.navigationId>xe.id)return this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),mt.w;this.currentTransition=xe,this.currentNavigation={id:Wt.id,initialUrl:Wt.rawUrl,extractedUrl:Wt.extractedUrl,trigger:Wt.source,extras:Wt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Xr=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ji=null!==(Qn=Wt.extras.onSameUrlNavigation)&&void 0!==Qn?Qn:D.onSameUrlNavigation;if(!Xr&&"reload"!==Ji){const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.rawUrl),Ri,er.IgnoredSameUrlNavigation)),Wt.resolve(null),mt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Wt.rawUrl))return(0,$.of)(Wt).pipe((0,$e.n)(Ri=>{var fo,oa;const Wa=null===(fo=this.transitions)||void 0===fo?void 0:fo.getValue();return this.events.next(new $r(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),Ri.source,Ri.restoredState)),Wa!==(null===(oa=this.transitions)||void 0===oa?void 0:oa.getValue())?mt.w:Promise.resolve(Ri)}),function Hl(E,b,N,D,L,pe){return(0,kt.Z)(xe=>function $l(E,b,N,D,L,pe,xe="emptyOnly"){return new Os(E,b,N,D,L,xe,pe).recognize()}(E,b,N,D,xe.extractedUrl,L,pe).pipe((0,_e.T)(({state:Ft,tree:An})=>({...xe,targetSnapshot:Ft,urlAfterRedirects:An}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,st.M)(Ri=>{xe.targetSnapshot=Ri.targetSnapshot,xe.urlAfterRedirects=Ri.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ri.urlAfterRedirects};const fo=new Yr(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),this.urlSerializer.serialize(Ri.urlAfterRedirects),Ri.targetSnapshot);this.events.next(fo)}));if(Xr&&this.urlHandlingStrategy.shouldProcessUrl(Wt.currentRawUrl)){const{id:Ri,extractedUrl:fo,source:oa,restoredState:Wa,extras:Ka}=Wt,Hs=new $r(Ri,this.urlSerializer.serialize(fo),oa,Wa);this.events.next(Hs);const As=oe(this.rootComponentType).snapshot;return this.currentTransition=xe={...Wt,targetSnapshot:As,urlAfterRedirects:fo,extras:{...Ka,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=fo,(0,$.of)(xe)}{const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),Ri,er.IgnoredByUrlHandlingStrategy)),Wt.resolve(null),mt.w}}),(0,st.M)(Wt=>{const Qn=new Hr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot);this.events.next(Qn)}),(0,_e.T)(Wt=>(this.currentTransition=xe={...Wt,guards:Zo(Wt.targetSnapshot,Wt.currentSnapshot,this.rootContexts)},xe)),function zn(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,currentSnapshot:L,guards:{canActivateChecks:pe,canDeactivateChecks:xe}}=N;return 0===xe.length&&0===pe.length?(0,$.of)({...N,guardsResult:!0}):function lr(E,b,N,D){return(0,ke.H)(E).pipe((0,kt.Z)(L=>function Ki(E,b,N,D,L){const pe=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!pe||0===pe.length)return(0,$.of)(!0);const xe=pe.map(Ft=>{var An;const Wt=null!==(An=Jr(b))&&void 0!==An?An:L,Qn=Xo(Ft,Wt);return Xt(function x(E){return E&&qe(E.canDeactivate)}(Qn)?Qn.canDeactivate(E,b,N,D):(0,c.N4e)(Wt,()=>Qn(E,b,N,D))).pipe((0,Cn.$)())});return(0,$.of)(xe).pipe(an())}(L.component,L.route,N,b,D)),(0,Cn.$)(L=>!0!==L,!0))}(xe,D,L,E).pipe((0,kt.Z)(Ft=>Ft&&function lt(E){return"boolean"==typeof E}(Ft)?function pi(E,b,N,D){return(0,ke.H)(b).pipe((0,At.H)(L=>(0,tt.x)(function Ei(E,b){return null!==E&&b&&b(new yi(E)),(0,$.of)(!0)}(L.route.parent,D),function Hi(E,b){return null!==E&&b&&b(new bo(E)),(0,$.of)(!0)}(L.route,D),function No(E,b,N){const D=b[b.length-1],pe=b.slice(0,b.length-1).reverse().map(xe=>function ls(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(xe)).filter(xe=>null!==xe).map(xe=>et(()=>{const Ft=xe.guards.map(An=>{var Wt;const Qn=null!==(Wt=Jr(xe.node))&&void 0!==Wt?Wt:N,Xr=Xo(An,Qn);return Xt(function B(E){return E&&qe(E.canActivateChild)}(Xr)?Xr.canActivateChild(D,E):(0,c.N4e)(Qn,()=>Xr(D,E))).pipe((0,Cn.$)())});return(0,$.of)(Ft).pipe(an())}));return(0,$.of)(pe).pipe(an())}(E,L.path,N),function ao(E,b,N){const D=b.routeConfig?b.routeConfig.canActivate:null;if(!D||0===D.length)return(0,$.of)(!0);const L=D.map(pe=>et(()=>{var xe;const Ft=null!==(xe=Jr(b))&&void 0!==xe?xe:N,An=Xo(pe,Ft);return Xt(function gn(E){return E&&qe(E.canActivate)}(An)?An.canActivate(b,E):(0,c.N4e)(Ft,()=>An(b,E))).pipe((0,Cn.$)())}));return(0,$.of)(L).pipe(an())}(E,L.route,N))),(0,Cn.$)(L=>!0!==L,!0))}(D,pe,E,b):(0,$.of)(Ft)),(0,_e.T)(Ft=>({...N,guardsResult:Ft})))})}(this.environmentInjector,Wt=>this.events.next(Wt)),(0,st.M)(Wt=>{if(xe.guardsResult=Wt.guardsResult,fr(Wt.guardsResult))throw Qr(0,Wt.guardsResult);const Qn=new _i(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot,!!Wt.guardsResult);this.events.next(Qn)}),(0,Ct.p)(Wt=>!!Wt.guardsResult||(this.cancelNavigationTransition(Wt,"",Nr.GuardRejected),!1)),ja(Wt=>{if(Wt.guards.canActivateChecks.length)return(0,$.of)(Wt).pipe((0,st.M)(Qn=>{const Xr=new tr(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}),(0,$e.n)(Qn=>{let Xr=!1;return(0,$.of)(Qn).pipe(function fs(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,guards:{canActivateChecks:L}}=N;if(!L.length)return(0,$.of)(N);const pe=new Set(L.map(An=>An.route)),xe=new Set;for(const An of pe)if(!xe.has(An))for(const Wt of Qo(An))xe.add(Wt);let Ft=0;return(0,ke.H)(xe).pipe((0,At.H)(An=>pe.has(An)?function js(E,b,N,D){const L=E.routeConfig,pe=E._resolve;return void 0!==(null==L?void 0:L.title)&&!Ot(L)&&(pe[Sn]=L.title),function Yi(E,b,N,D){const L=dr(E);if(0===L.length)return(0,$.of)({});const pe={};return(0,ke.H)(L).pipe((0,kt.Z)(xe=>function ya(E,b,N,D){var L;const pe=null!==(L=Jr(b))&&void 0!==L?L:D,xe=Xo(E,pe);return Xt(xe.resolve?xe.resolve(b,N):(0,c.N4e)(pe,()=>xe(b,N)))}(E[xe],b,N,D).pipe((0,Cn.$)(),(0,st.M)(Ft=>{pe[xe]=Ft}))),X(1),(0,Ve.u)(pe),cn(xe=>z(xe)?mt.w:at(xe)))}(pe,E,b,D).pipe((0,_e.T)(xe=>(E._resolvedData=xe,E.data=dt(E,E.parent,N).resolve,null)))}(An,D,E,b):(An.data=dt(An,An.parent,E).resolve,(0,$.of)(void 0))),(0,st.M)(()=>Ft++),X(1),(0,kt.Z)(An=>Ft===xe.size?(0,$.of)(N):mt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,st.M)({next:()=>Xr=!0,complete:()=>{Xr||this.cancelNavigationTransition(Qn,"",Nr.NoDataFromResolver)}}))}),(0,st.M)(Qn=>{const Xr=new Zn(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}))}),ja(Wt=>{const Qn=Xr=>{var Ji;const Ri=[];null!==(Ji=Xr.routeConfig)&&void 0!==Ji&&Ji.loadComponent&&!Xr.routeConfig._loadedComponent&&Ri.push(this.configLoader.loadComponent(Xr.routeConfig).pipe((0,st.M)(fo=>{Xr.component=fo}),(0,_e.T)(()=>{})));for(const fo of Xr.children)Ri.push(...Qn(fo));return Ri};return(0,ae.z)(Qn(Wt.targetSnapshot.root)).pipe((0,G.U)(null),(0,Le.s)(1))}),ja(()=>this.afterPreactivation()),(0,$e.n)(()=>{var Wt;const{currentSnapshot:Qn,targetSnapshot:Xr}=xe,Ji=null===(Wt=this.createViewTransition)||void 0===Wt?void 0:Wt.call(this,this.environmentInjector,Qn.root,Xr.root);return Ji?(0,ke.H)(Ji).pipe((0,_e.T)(()=>xe)):(0,$.of)(xe)}),(0,_e.T)(Wt=>{const Qn=function bn(E,b,N){const D=Gn(E,b._root,N?N._root:void 0);return new H(D,b)}(D.routeReuseStrategy,Wt.targetSnapshot,Wt.currentRouterState);return this.currentTransition=xe={...Wt,targetRouterState:Qn},this.currentNavigation.targetRouterState=Qn,xe}),(0,st.M)(()=>{this.events.next(new ge)}),((E,b,N,D)=>(0,_e.T)(L=>(new Ss(b,L.targetRouterState,L.currentRouterState,N,D).activate(E),L)))(this.rootContexts,D.routeReuseStrategy,Wt=>this.events.next(Wt),this.inputBindingEnabled),(0,Le.s)(1),(0,st.M)({next:Wt=>{var Qn;Ft=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects))),null===(Qn=this.titleStrategy)||void 0===Qn||Qn.updateTitle(Wt.targetRouterState.snapshot),Wt.resolve(!0)},complete:()=>{Ft=!0}}),(0,fn.Q)(this.transitionAbortSubject.pipe((0,st.M)(Wt=>{throw Wt}))),(0,ut.j)(()=>{var Wt;!Ft&&!An&&this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),(null===(Wt=this.currentTransition)||void 0===Wt?void 0:Wt.id)===xe.id&&(this.currentNavigation=null,this.currentTransition=null)}),cn(Wt=>{if(An=!0,ki(Wt))this.events.next(new Rr(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt.message,Wt.cancellationCode)),function kr(E){return ki(E)&&fr(E.url)}(Wt)?this.events.next(new fe(Wt.url)):xe.resolve(!1);else{var Qn;this.events.next(new hi(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt,null!==(Qn=xe.targetSnapshot)&&void 0!==Qn?Qn:void 0));try{xe.resolve(D.errorHandler(Wt))}catch(Xr){this.options.resolveNavigationPromiseOnError?xe.resolve(!1):xe.reject(Xr)}}return mt.w}))}))}cancelNavigationTransition(D,L,pe){const xe=new Rr(D.id,this.urlSerializer.serialize(D.extractedUrl),L,pe);this.events.next(xe),D.resolve(!1)}isUpdatingInternalState(){var D,L;return(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var D,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function tn(E){return E!==Sr}let Fn=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ur),providedIn:"root"}),b})();class Er{shouldDetach(b){return!1}store(b,N){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,N){return b.routeConfig===N.routeConfig}}let ur=(()=>{var E;class b extends Er{}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),bi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ri),providedIn:"root"}),b})(),ri=(()=>{var E;class b extends bi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ze.aZ),this.urlSerializer=(0,c.WQX)(yr),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Vr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=oe(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var D,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(D=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==D?D:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(L=>{"popstate"===L.type&&D(L.url,L.state)})}handleRouterEvent(D,L){if(D instanceof $r)this.stateMemento=this.createStateMemento();else if(D instanceof di)this.rawUrlTree=L.initialUrl;else if(D instanceof Yr){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const pe=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(pe,L)}}else D instanceof ge?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):D instanceof Rr&&(D.code===Nr.GuardRejected||D.code===Nr.NoDataFromResolver)?this.restoreHistory(L):D instanceof hi?this.restoreHistory(L,!0):D instanceof Pr&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,L){const pe=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(pe)||L.extras.replaceUrl){const Ft={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(pe,"",Ft)}else{const xe={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(pe,"",xe)}}restoreHistory(D,L=!1){if("computed"===this.canceledNavigationResolution){const xe=this.currentPageId-this.browserPageId;0!==xe?this.location.historyGo(xe):this.currentUrlTree===D.finalUrl&&0===xe&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=D.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,L){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:L}:{navigationId:D}}}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var Ii=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ii||{});function gi(E,b){E.events.pipe((0,Ct.p)(N=>N instanceof Pr||N instanceof Rr||N instanceof hi||N instanceof di),(0,_e.T)(N=>N instanceof Pr||N instanceof di?Ii.COMPLETE:N instanceof Rr&&(N.code===Nr.Redirect||N.code===Nr.SupersededByNewNavigation)?Ii.REDIRECTING:Ii.FAILED),(0,Ct.p)(N=>N!==Ii.REDIRECTING),(0,Le.s)(1)).subscribe(()=>{b()})}function to(E){throw E}const wi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ir=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var D,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(bi),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Qe),this.urlSerializer=(0,c.WQX)(yr),this.location=(0,c.WQX)(Ze.aZ),this.urlHandlingStrategy=(0,c.WQX)(Ca),this._events=new Te.B,this.errorHandler=this.options.errorHandler||to,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(Fn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(D=null===(L=(0,c.WQX)(Ia,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==D?D:[],this.componentInputBindingEnabled=!!(0,c.WQX)(pn,{optional:!0}),this.eventsSubscription=new xt.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:pe=>{this.console.warn(pe)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(L=>{try{const pe=this.navigationTransitions.currentTransition,xe=this.navigationTransitions.currentNavigation;if(null!==pe&&null!==xe)if(this.stateManager.handleRouterEvent(L,xe),L instanceof Rr&&L.code!==Nr.Redirect&&L.code!==Nr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof Pr)this.navigated=!0;else if(L instanceof fe){const Ft=this.urlHandlingStrategy.merge(L.url,pe.currentRawUrl),An={info:pe.extras.info,skipLocationChange:pe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tn(pe.source)};this.scheduleNavigation(Ft,Sr,null,An,{resolve:pe.resolve,reject:pe.reject,promise:pe.promise})}(function lo(E){return!(E instanceof ge||E instanceof fe)})(L)&&this._events.next(L)}catch(pe){this.navigationTransitions.transitionAbortSubject.next(pe)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Sr,this.stateManager.restoredState())}setUpLocationChangeListener(){var D;null!==(D=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==D||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,pe)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",pe)},0)}))}navigateToSyncWithBrowser(D,L,pe){const xe={replaceUrl:!0},Ft=null!=pe&&pe.navigationId?pe:null;if(pe){const Wt={...pe};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(xe.state=Wt)}const An=this.parseUrl(D);this.scheduleNavigation(An,L,Ft,xe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(ws),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(D,L={}){const{relativeTo:pe,queryParams:xe,fragment:Ft,queryParamsHandling:An,preserveFragment:Wt}=L,Qn=Wt?this.currentUrlTree.fragment:Ft;let Ji,Xr=null;switch(An){case"merge":Xr={...this.currentUrlTree.queryParams,...xe};break;case"preserve":Xr=this.currentUrlTree.queryParams;break;default:Xr=xe||null}null!==Xr&&(Xr=this.removeEmptyProps(Xr));try{Ji=oi(pe?pe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),Ji=this.currentUrlTree.root}return Ir(Ji,D,Xr,null!=Qn?Qn:null)}navigateByUrl(D,L={skipLocationChange:!1}){const pe=fr(D)?D:this.parseUrl(D),xe=this.urlHandlingStrategy.merge(pe,this.rawUrlTree);return this.scheduleNavigation(xe,Sr,null,L)}navigate(D,L={skipLocationChange:!1}){return function Ni(E){for(let b=0;b(null!=xe&&(L[pe]=xe),L),{})}scheduleNavigation(D,L,pe,xe,Ft){if(this.disposed)return Promise.resolve(!1);let An,Wt,Qn;Ft?(An=Ft.resolve,Wt=Ft.reject,Qn=Ft.promise):Qn=new Promise((Ji,Ri)=>{An=Ji,Wt=Ri});const Xr=this.pendingTasks.add();return gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Xr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:pe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:xe,resolve:An,reject:Wt,promise:Qn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qn.catch(Ji=>Promise.reject(Ji))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Vi=(()=>{var E;class b{constructor(D,L,pe,xe,Ft,An){var Wt;this.router=D,this.route=L,this.tabIndexAttribute=pe,this.renderer=xe,this.el=Ft,this.locationStrategy=An,this.href=null,this.commands=null,this.onChanges=new Te.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Qn=null===(Wt=Ft.nativeElement.tagName)||void 0===Wt?void 0:Wt.toLowerCase();this.isAnchorElement="a"===Qn||"area"===Qn,this.isAnchorElement?this.subscription=D.events.subscribe(Xr=>{Xr instanceof Pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,L,pe,xe,Ft){const An=this.urlTree;return!!(null===An||this.isAnchorElement&&(0!==D||L||pe||xe||Ft||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(An,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var D;null===(D=this.subscription)||void 0===D||D.unsubscribe()}updateHref(){var D;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(D=this.locationStrategy)||void 0===D?void 0:D.prepareExternalUrl(this.router.serializeUrl(L)):null;const pe=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",pe)}applyAttributeValue(D,L){const pe=this.renderer,xe=this.el.nativeElement;null!==L?pe.setAttribute(xe,D,L):pe.removeAttribute(xe,D)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.rXU(ir),c.rXU(Ce),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ze.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,L){1&D&&c.bIt("click",function(xe){return L.onClick(xe.button,xe.ctrlKey,xe.shiftKey,xe.altKey,xe.metaKey)}),2&D&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class Si{}let io=(()=>{var E;class b{preload(D,L){return L().pipe(cn(()=>(0,$.of)(null)))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),qr=(()=>{var E;class b{constructor(D,L,pe,xe,Ft){this.router=D,this.injector=pe,this.preloadingStrategy=xe,this.loader=Ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ct.p)(D=>D instanceof Pr),(0,At.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,L){const pe=[];for(const Wt of L){var xe,Ft;Wt.providers&&!Wt._injector&&(Wt._injector=(0,c.Ol2)(Wt.providers,D,`Route: ${Wt.path}`));const Qn=null!==(xe=Wt._injector)&&void 0!==xe?xe:D,Xr=null!==(Ft=Wt._loadedInjector)&&void 0!==Ft?Ft:Qn;var An;(Wt.loadChildren&&!Wt._loadedRoutes&&void 0===Wt.canLoad||Wt.loadComponent&&!Wt._loadedComponent)&&pe.push(this.preloadConfig(Qn,Wt)),(Wt.children||Wt._loadedRoutes)&&pe.push(this.processRoutes(Xr,null!==(An=Wt.children)&&void 0!==An?An:Wt._loadedRoutes))}return(0,ke.H)(pe).pipe((0,xn.U)())}preloadConfig(D,L){return this.preloadingStrategy.preload(L,()=>{let pe;pe=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(D,L):(0,$.of)(null);const xe=pe.pipe((0,kt.Z)(Ft=>{var An;return null===Ft?(0,$.of)(void 0):(L._loadedRoutes=Ft.routes,L._loadedInjector=Ft.injector,this.processRoutes(null!==(An=Ft.injector)&&void 0!==An?An:D,Ft.routes))}));if(L.loadComponent&&!L._loadedComponent){const Ft=this.loader.loadComponent(L);return(0,ke.H)([xe,Ft]).pipe((0,xn.U)())}return xe})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(ir),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(Si),c.KVO(Aa))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ta=new c.nKC("");let _c=(()=>{var E;class b{constructor(D,L,pe,xe,Ft={}){this.urlSerializer=D,this.transitions=L,this.viewportScroller=pe,this.zone=xe,this.options=Ft,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Ft.scrollPositionRestoration||(Ft.scrollPositionRestoration="disabled"),Ft.anchorScrolling||(Ft.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof $r?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof Pr?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof di&&D.code===er.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Pt&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,L){var pe=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(xe=>{setTimeout(()=>{xe()}),(0,c.mal)(()=>{xe()},{injector:pe.environmentInjector})}),pe.zone.run(()=>{pe.transitions.events.next(new Pt(D,"popstate"===pe.lastSource?pe.store[pe.restoredId]:null,L))})}))}ngOnDestroy(){var D,L;null===(D=this.routerEventsSubscription)||void 0===D||D.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(D){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Fo(E,b){return{\u0275kind:E,\u0275providers:b}}function Ui(){const E=(0,c.WQX)(c.zZn);return b=>{var N,D;const L=E.get(c.o8S);if(b!==L.components[0])return;const pe=E.get(ir),xe=E.get(ra);1===E.get(Es)&&pe.initialNavigation(),null===(N=E.get(is,null,c.$GK.Optional))||void 0===N||N.setUpPreloading(),null===(D=E.get(ta,null,c.$GK.Optional))||void 0===D||D.init(),pe.resetRootComponentType(L.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const ra=new c.nKC("",{factory:()=>new Te.B}),Es=new c.nKC("",{providedIn:"root",factory:()=>1}),is=new c.nKC("");function pl(E){return Fo(0,[{provide:is,useExisting:qr},{provide:Si,useExisting:E}])}function Lo(E){return Fo(9,[{provide:j,useValue:F},{provide:Ue,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const gs=new c.nKC("ROUTER_FORROOT_GUARD"),ia=[Ze.aZ,{provide:yr,useClass:Br},ir,Be,{provide:Ce,useFactory:function no(E){return E.routerState.root},deps:[ir]},Aa,[]];let Is=(()=>{var E;class b{constructor(D){}static forRoot(D,L){return{ngModule:b,providers:[ia,[],{provide:Ia,multi:!0,useValue:D},{provide:gs,useFactory:ba,deps:[[ir,new c.Xx1,new c.kdw]]},{provide:ts,useValue:L||{}},null!=L&&L.useHash?{provide:Ze.hb,useClass:Ze.fw}:{provide:Ze.hb,useClass:Ze.Sm},{provide:ta,useFactory:()=>{const E=(0,c.WQX)(Ze.Xr),b=(0,c.WQX)(c.SKi),N=(0,c.WQX)(ts),D=(0,c.WQX)(Qe),L=(0,c.WQX)(yr);return N.scrollOffset&&E.setOffset(N.scrollOffset),new _c(L,D,E,b,N)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Pu(L):[],null!=L&&L.bindToComponentInputs?Fo(8,[vn,{provide:pn,useExisting:vn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Lo().\u0275providers:[],[{provide:wa,useFactory:Ui},{provide:c.iLQ,multi:!0,useExisting:wa}]]}}static forChild(D){return{ngModule:b,providers:[{provide:Ia,multi:!0,useValue:D}]}}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(gs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function ba(E){return"guarded"}function Pu(E){return["disabled"===E.initialNavigation?Fo(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(ir);return()=>{b.setUpLocationChangeListener()}}},{provide:Es,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Fo(2,[{provide:Es,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const N=b.get(Ze.hj,Promise.resolve());return()=>N.then(()=>new Promise(D=>{const L=b.get(ir),pe=b.get(ra);gi(L,()=>{D(!0)}),b.get(Qe).afterPreactivation=()=>(D(!0),pe.closed?(0,$.of)(void 0):pe),L.initialNavigation()}))}}]).\u0275providers:[]]}const wa=new c.nKC("")},7852:(Pn,Et,C)=>{"use strict";C.d(Et,{MF:()=>Di,j6:()=>Mr,xZ:()=>Tr,om:()=>rr,Sx:()=>rt,Dk:()=>Nt,Wp:()=>Zr,KO:()=>Ie});var h=C(467),c=C(1362),Z=C(8041),ke=C(1076);const $=(Gt,ie)=>ie.some(te=>Gt instanceof te);let he,ae;const Se=new WeakMap,be=new WeakMap,et=new WeakMap,it=new WeakMap,Ye=new WeakMap;let xt={get(Gt,ie,te){if(Gt instanceof IDBTransaction){if("done"===ie)return be.get(Gt);if("objectStoreNames"===ie)return Gt.objectStoreNames||et.get(Gt);if("store"===ie)return te.objectStoreNames[1]?void 0:te.objectStore(te.objectStoreNames[0])}return It(Gt[ie])},set:(Gt,ie,te)=>(Gt[ie]=te,!0),has:(Gt,ie)=>Gt instanceof IDBTransaction&&("done"===ie||"store"===ie)||ie in Gt};function Tt(Gt){return"function"==typeof Gt?function zt(Gt){return Gt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function tt(){return ae||(ae=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Gt)?function(...ie){return Gt.apply(Te(this),ie),It(Se.get(this))}:function(...ie){return It(Gt.apply(Te(this),ie))}:function(ie,...te){const ze=Gt.call(Te(this),ie,...te);return et.set(ze,ie.sort?ie.sort():[ie]),It(ze)}}(Gt):(Gt instanceof IDBTransaction&&function mt(Gt){if(be.has(Gt))return;const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("complete",O),Gt.removeEventListener("error",re),Gt.removeEventListener("abort",re)},O=()=>{te(),M()},re=()=>{ze(Gt.error||new DOMException("AbortError","AbortError")),M()};Gt.addEventListener("complete",O),Gt.addEventListener("error",re),Gt.addEventListener("abort",re)});be.set(Gt,ie)}(Gt),$(Gt,function Xe(){return he||(he=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Gt,xt):Gt)}function It(Gt){if(Gt instanceof IDBRequest)return function at(Gt){const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("success",O),Gt.removeEventListener("error",re)},O=()=>{te(It(Gt.result)),M()},re=()=>{ze(Gt.error),M()};Gt.addEventListener("success",O),Gt.addEventListener("error",re)});return ie.then(te=>{te instanceof IDBCursor&&Se.set(te,Gt)}).catch(()=>{}),Ye.set(ie,Gt),ie}(Gt);if(it.has(Gt))return it.get(Gt);const ie=Tt(Gt);return ie!==Gt&&(it.set(Gt,ie),Ye.set(ie,Gt)),ie}const Te=Gt=>Ye.get(Gt),$e=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],Oe=new Map;function Ct(Gt,ie){if(!(Gt instanceof IDBDatabase)||ie in Gt||"string"!=typeof ie)return;if(Oe.get(ie))return Oe.get(ie);const te=ie.replace(/FromIndex$/,""),ze=ie!==te,M=Le.includes(te);if(!(te in(ze?IDBIndex:IDBObjectStore).prototype)||!M&&!$e.includes(te))return;const O=function(){var re=(0,h.A)(function*(we,...We){const St=this.transaction(we,M?"readwrite":"readonly");let nn=St.store;return ze&&(nn=nn.index(We.shift())),(yield Promise.all([nn[te](...We),M&&St.done]))[0]});return function(We){return re.apply(this,arguments)}}();return Oe.set(ie,O),O}!function Dt(Gt){xt=Gt(xt)}(Gt=>({...Gt,get:(ie,te,ze)=>Ct(ie,te)||Gt.get(ie,te,ze),has:(ie,te)=>!!Ct(ie,te)||Gt.has(ie,te)}));class kt{constructor(ie){this.container=ie}getPlatformInfoString(){return this.container.getProviders().map(te=>{if(function Cn(Gt){const ie=Gt.getComponent();return"VERSION"===(null==ie?void 0:ie.type)}(te)){const ze=te.getImmediate();return`${ze.library}/${ze.version}`}return null}).filter(te=>te).join(" ")}}const At="@firebase/app",cn=new Z.Vy("@firebase/app"),Vn="[DEFAULT]",$n={[At]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},In=new Map,on=new Map,mr=new Map;function br(Gt,ie){try{Gt.container.addComponent(ie)}catch(te){cn.debug(`Component ${ie.name} failed to register with FirebaseApp ${Gt.name}`,te)}}function rr(Gt){const ie=Gt.name;if(mr.has(ie))return cn.debug(`There were multiple attempts to register component ${ie}.`),!1;mr.set(ie,Gt);for(const te of In.values())br(te,Gt);for(const te of on.values())br(te,Gt);return!0}function Mr(Gt,ie){const te=Gt.container.getProvider("heartbeat").getImmediate({optional:!0});return te&&te.triggerHeartbeat(),Gt.container.getProvider(ie)}function Tr(Gt){return void 0!==Gt.settings}const ar=new ke.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Lr{constructor(ie,te,ze){this._isDeleted=!1,this._options=Object.assign({},ie),this._config=Object.assign({},te),this._name=te.name,this._automaticDataCollectionEnabled=te.automaticDataCollectionEnabled,this._container=ze,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ie){this.checkDestroyed(),this._automaticDataCollectionEnabled=ie}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ie){this._isDeleted=ie}checkDestroyed(){if(this.isDeleted)throw ar.create("app-deleted",{appName:this._name})}}const Di="10.12.2";function Zr(Gt,ie={}){let te=Gt;"object"!=typeof ie&&(ie={name:ie});const ze=Object.assign({name:Vn,automaticDataCollectionEnabled:!1},ie),M=ze.name;if("string"!=typeof M||!M)throw ar.create("bad-app-name",{appName:String(M)});if(te||(te=(0,ke.T9)()),!te)throw ar.create("no-options");const O=In.get(M);if(O){if((0,ke.bD)(te,O.options)&&(0,ke.bD)(ze,O.config))return O;throw ar.create("duplicate-app",{appName:M})}const re=new c.h1(M);for(const We of mr.values())re.addComponent(We);const we=new Lr(te,ze,re);return In.set(M,we),we}function rt(Gt=Vn){const ie=In.get(Gt);if(!ie&&Gt===Vn&&(0,ke.T9)())return Zr();if(!ie)throw ar.create("no-app",{appName:Gt});return ie}function Nt(){return Array.from(In.values())}function Ie(Gt,ie,te){var ze;let M=null!==(ze=$n[Gt])&&void 0!==ze?ze:Gt;te&&(M+=`-${te}`);const O=M.match(/\s|\//),re=ie.match(/\s|\//);if(O||re){const we=[`Unable to register library "${M}" with version "${ie}":`];return O&&we.push(`library name "${M}" contains illegal characters (whitespace or "/")`),O&&re&&we.push("and"),re&&we.push(`version name "${ie}" contains illegal characters (whitespace or "/")`),void cn.warn(we.join(" "))}rr(new c.uA(`${M}-version`,()=>({library:M,version:ie}),"VERSION"))}const le="firebase-heartbeat-database",gt=1,ft="firebase-heartbeat-store";let Qt=null;function sn(){return Qt||(Qt=function Ze(Gt,ie,{blocked:te,upgrade:ze,blocking:M,terminated:O}={}){const re=indexedDB.open(Gt,ie),we=It(re);return ze&&re.addEventListener("upgradeneeded",We=>{ze(It(re.result),We.oldVersion,We.newVersion,It(re.transaction),We)}),te&&re.addEventListener("blocked",We=>te(We.oldVersion,We.newVersion,We)),we.then(We=>{O&&We.addEventListener("close",()=>O()),M&&We.addEventListener("versionchange",St=>M(St.oldVersion,St.newVersion,St))}).catch(()=>{}),we}(le,gt,{upgrade:(Gt,ie)=>{if(0===ie)try{Gt.createObjectStore(ft)}catch(te){console.warn(te)}}}).catch(Gt=>{throw ar.create("idb-open",{originalErrorMessage:Gt.message})})),Qt}function Xn(){return(Xn=(0,h.A)(function*(Gt){try{const te=(yield sn()).transaction(ft),ze=yield te.objectStore(ft).get(hr(Gt));return yield te.done,ze}catch(ie){if(ie instanceof ke.g)cn.warn(ie.message);else{const te=ar.create("idb-get",{originalErrorMessage:null==ie?void 0:ie.message});cn.warn(te.message)}}})).apply(this,arguments)}function dn(Gt,ie){return wn.apply(this,arguments)}function wn(){return(wn=(0,h.A)(function*(Gt,ie){try{const ze=(yield sn()).transaction(ft,"readwrite");yield ze.objectStore(ft).put(ie,hr(Gt)),yield ze.done}catch(te){if(te instanceof ke.g)cn.warn(te.message);else{const ze=ar.create("idb-set",{originalErrorMessage:null==te?void 0:te.message});cn.warn(ze.message)}}})).apply(this,arguments)}function hr(Gt){return`${Gt.name}!${Gt.options.appId}`}class Ur{constructor(ie){this.container=ie,this._heartbeatsCache=null;const te=this.container.getProvider("app").getImmediate();this._storage=new xi(te),this._heartbeatsCachePromise=this._storage.read().then(ze=>(this._heartbeatsCache=ze,ze))}triggerHeartbeat(){var ie=this;return(0,h.A)(function*(){var te,ze;const O=ie.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),re=oi();if((null!=(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||(ie._heartbeatsCache=yield ie._heartbeatsCachePromise,null!=(null===(ze=ie._heartbeatsCache)||void 0===ze?void 0:ze.heartbeats)))&&ie._heartbeatsCache.lastSentHeartbeatDate!==re&&!ie._heartbeatsCache.heartbeats.some(we=>we.date===re))return ie._heartbeatsCache.heartbeats.push({date:re,agent:O}),ie._heartbeatsCache.heartbeats=ie._heartbeatsCache.heartbeats.filter(we=>{const We=new Date(we.date).valueOf();return Date.now()-We<=2592e6}),ie._storage.overwrite(ie._heartbeatsCache)})()}getHeartbeatsHeader(){var ie=this;return(0,h.A)(function*(){var te;if(null===ie._heartbeatsCache&&(yield ie._heartbeatsCachePromise),null==(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||0===ie._heartbeatsCache.heartbeats.length)return"";const ze=oi(),{heartbeatsToSend:M,unsentEntries:O}=function Ir(Gt,ie=1024){const te=[];let ze=Gt.slice();for(const M of Gt){const O=te.find(re=>re.agent===M.agent);if(O){if(O.dates.push(M.date),vi(te)>ie){O.dates.pop();break}}else if(te.push({agent:M.agent,dates:[M.date]}),vi(te)>ie){te.pop();break}ze=ze.slice(1)}return{heartbeatsToSend:te,unsentEntries:ze}}(ie._heartbeatsCache.heartbeats),re=(0,ke.Uj)(JSON.stringify({version:2,heartbeats:M}));return ie._heartbeatsCache.lastSentHeartbeatDate=ze,O.length>0?(ie._heartbeatsCache.heartbeats=O,yield ie._storage.overwrite(ie._heartbeatsCache)):(ie._heartbeatsCache.heartbeats=[],ie._storage.overwrite(ie._heartbeatsCache)),re})()}}function oi(){return(new Date).toISOString().substring(0,10)}class xi{constructor(ie){this.app=ie,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,ke.zW)()&&(0,ke.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ie=this;return(0,h.A)(function*(){if(yield ie._canUseIndexedDBPromise){const ze=yield function Tn(Gt){return Xn.apply(this,arguments)}(ie.app);return null!=ze&&ze.heartbeats?ze:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:ie.heartbeats})}})()}add(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:[...O.heartbeats,...ie.heartbeats]})}})()}}function vi(Gt){return(0,ke.Uj)(JSON.stringify({version:2,heartbeats:Gt})).length}!function Ar(Gt){rr(new c.uA("platform-logger",ie=>new kt(ie),"PRIVATE")),rr(new c.uA("heartbeat",ie=>new Ur(ie),"PRIVATE")),Ie(At,"0.10.5",Gt),Ie(At,"0.10.5","esm2017"),Ie("fire-js","")}("")},1362:(Pn,Et,C)=>{"use strict";C.d(Et,{h1:()=>Xe,uA:()=>Z});var h=C(467),c=C(1076);class Z{constructor(Se,be,et){this.name=Se,this.instanceFactory=be,this.type=et,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const ke="[DEFAULT]";class ${constructor(Se,be){this.name=Se,this.container=be,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const be=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(be)){const et=new c.cY;if(this.instancesDeferred.set(be,et),this.isInitialized(be)||this.shouldAutoInitialize())try{const it=this.getOrInitializeService({instanceIdentifier:be});it&&et.resolve(it)}catch{}}return this.instancesDeferred.get(be).promise}getImmediate(Se){var be;const et=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),it=null!==(be=null==Se?void 0:Se.optional)&&void 0!==be&&be;if(!this.isInitialized(et)&&!this.shouldAutoInitialize()){if(it)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:et})}catch(Ye){if(it)return null;throw Ye}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function ae(tt){return"EAGER"===tt.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:ke})}catch{}for(const[be,et]of this.instancesDeferred.entries()){const it=this.normalizeInstanceIdentifier(be);try{const Ye=this.getOrInitializeService({instanceIdentifier:it});et.resolve(Ye)}catch{}}}}clearInstance(Se=ke){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const be=Array.from(Se.instances.values());yield Promise.all([...be.filter(et=>"INTERNAL"in et).map(et=>et.INTERNAL.delete()),...be.filter(et=>"_delete"in et).map(et=>et._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=ke){return this.instances.has(Se)}getOptions(Se=ke){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:be={}}=Se,et=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(et))throw Error(`${this.name}(${et}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const it=this.getOrInitializeService({instanceIdentifier:et,options:be});for(const[Ye,at]of this.instancesDeferred.entries())et===this.normalizeInstanceIdentifier(Ye)&&at.resolve(it);return it}onInit(Se,be){var et;const it=this.normalizeInstanceIdentifier(be),Ye=null!==(et=this.onInitCallbacks.get(it))&&void 0!==et?et:new Set;Ye.add(Se),this.onInitCallbacks.set(it,Ye);const at=this.instances.get(it);return at&&Se(at,it),()=>{Ye.delete(Se)}}invokeOnInitCallbacks(Se,be){const et=this.onInitCallbacks.get(be);if(et)for(const it of et)try{it(Se,be)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:be={}}){let et=this.instances.get(Se);if(!et&&this.component&&(et=this.component.instanceFactory(this.container,{instanceIdentifier:(tt=Se,tt===ke?void 0:tt),options:be}),this.instances.set(Se,et),this.instancesOptions.set(Se,be),this.invokeOnInitCallbacks(et,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,et)}catch{}var tt;return et||null}normalizeInstanceIdentifier(Se=ke){return this.component?this.component.multipleInstances?Se:ke:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const be=this.getProvider(Se.name);if(be.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);be.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const be=new $(Se,this);return this.providers.set(Se,be),be}getProviders(){return Array.from(this.providers.values())}}},8041:(Pn,Et,C)=>{"use strict";C.d(Et,{$b:()=>c,Vy:()=>ae});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},ke=c.INFO,$={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},he=(Se,be,...et)=>{if(be{"use strict";C.d(Et,{Yq:()=>nt,TS:()=>or,sR:()=>gr,el:()=>sn,Sb:()=>Tr,QE:()=>hr,CF:()=>Mr,Rg:()=>Ie,p4:()=>wr,jM:()=>Ar,_t:()=>Ee,q9:()=>Je,Kb:()=>Gt,CE:()=>Tn,pF:()=>Xn,fL:()=>Ur,YV:()=>gt,er:()=>fr,z3:()=>oi});var h=C(467),c=C(9842),Z=C(4438),ke=C(7650),$=C(177),he=C(5531),ae=C(4442);var kt=C(1413),Cn=C(3726),At=C(4412),st=C(4572),cn=C(7673),vt=C(1635),Re=C(5964),G=C(5558),X=C(3294),ce=C(4341);const ue=["tabsInner"];class Ee{constructor(te){(0,c.A)(this,"menuController",void 0),this.menuController=te}open(te){return this.menuController.open(te)}close(te){return this.menuController.close(te)}toggle(te){return this.menuController.toggle(te)}enable(te,ze){return this.menuController.enable(te,ze)}swipeGesture(te,ze){return this.menuController.swipeGesture(te,ze)}isOpen(te){return this.menuController.isOpen(te)}isEnabled(te){return this.menuController.isEnabled(te)}get(te){return this.menuController.get(te)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(te,ze){return this.menuController.registerAnimation(te,ze)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(te,ze){return this.menuController._createAnimation(te,ze)}_register(te){return this.menuController._register(te)}_unregister(te){return this.menuController._unregister(te)}_setOpen(te,ze,M){return this.menuController._setOpen(te,ze,M)}}let fn=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new kt.B),(0,c.A)(this,"keyboardDidShow",new kt.B),(0,c.A)(this,"keyboardDidHide",new kt.B),(0,c.A)(this,"pause",new kt.B),(0,c.A)(this,"resume",new kt.B),(0,c.A)(this,"resize",new kt.B),this.doc=M,O.run(()=>{var re;let we;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(We,St){return this.subscribe(nn=>nn.register(We,rn=>O.run(()=>St(rn))))},un(this.pause,M,"pause",O),un(this.resume,M,"resume",O),un(this.backButton,M,"ionBackButton",O),un(this.resize,this.win,"resize",O),un(this.keyboardDidShow,this.win,"ionKeyboardDidShow",O),un(this.keyboardDidHide,this.win,"ionKeyboardDidHide",O),this._readyPromise=new Promise(We=>{we=We}),null!==(re=this.win)&&void 0!==re&&re.cordova?M.addEventListener("deviceready",()=>{we("cordova")},{once:!0}):we("dom")})}is(M){return(0,he.a)(this.win,M)}platforms(){return(0,he.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return xn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,O;return null===(M=(O=this.win).matchMedia)||void 0===M?void 0:M.call(O,"(orientation: portrait)").matches}testUserAgent(M){const O=this.win.navigator;return!!(null!=O&&O.userAgent&&O.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO($.qQ),Z.KVO(Z.SKi))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const xn=(ie,te)=>{te=te.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+te+"=([^&#]*)").exec(ie);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},un=(ie,te,ze,M)=>{te&&te.addEventListener(ze,O=>{M.run(()=>{ie.next(null!=O?O.detail:void 0)})})};let Je=(()=>{var ie;class te{constructor(M,O,re,we){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",kn),(0,c.A)(this,"animated",On),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=O,this.serializer=re,this.router=we,we&&we.events.subscribe(We=>{if(We instanceof ke.Z){const St=We.restoredState?We.restoredState.navigationId:We.id;this.guessDirection=this.guessAnimation=St{this.pop(),We()})}navigateForward(M,O={}){return this.setDirection("forward",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateBack(M,O={}){return this.setDirection("back",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateRoot(M,O={}){return this.setDirection("root",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let O=M.topOutlet;for(;O;){if(yield O.pop())return!0;O=O.parentOutlet}return!1})()}setDirection(M,O,re,we){this.direction=M,this.animated=Sn(M,O,re),this.animationBuilder=we}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let O,M="root";const re=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,O=this.guessAnimation):(O=this.animated,M=this.direction),this.direction=kn,this.animated=On,this.animationBuilder=void 0,{direction:M,animation:O,animationBuilder:re}}navigate(M,O){if(Array.isArray(M))return this.router.navigate(M,O);{const re=this.serializer.parse(M.toString());return void 0!==O.queryParams&&(re.queryParams={...O.queryParams}),void 0!==O.fragment&&(re.fragment=O.fragment),this.router.navigateByUrl(re,O)}}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO(fn),Z.KVO($.aZ),Z.KVO(ke.Sd),Z.KVO(ke.Ix,8))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const Sn=(ie,te,ze)=>{if(!1!==te){if(void 0!==ze)return ze;if("forward"===ie||"back"===ie)return ie;if("root"===ie&&!0===te)return"forward"}},kn="auto",On=void 0;let or=(()=>{var ie;class te{get(M,O){const re=cr();return re?re.get(M,O):null}getBoolean(M,O){const re=cr();return!!re&&re.getBoolean(M,O)}getNumber(M,O){const re=cr();return re?re.getNumber(M,O):0}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const gr=new Z.nKC("USERCONFIG"),cr=()=>{if(typeof window<"u"){const ie=window.Ionic;if(null!=ie&&ie.config)return ie.config}return null};class dr{constructor(te={}){(0,c.A)(this,"data",void 0),this.data=te,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(te){return this.data[te]}}let nt=(()=>{var ie;class te{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(gr))}create(M,O,re){var we;return new Lt(M,O,this.applicationRef,this.zone,re,null!==(we=this.config.useSetInputAPI)&&void 0!==we&&we)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();class Lt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=te,this.injector=ze,this.applicationRef=M,this.zone=O,this.elementReferenceKey=re,this.enableSignalsSupport=we}attachViewToDom(te,ze,M,O){return this.zone.run(()=>new Promise(re=>{const we={...M};void 0!==this.elementReferenceKey&&(we[this.elementReferenceKey]=te),re(Xt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,te,ze,we,O,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(te,ze){return this.zone.run(()=>new Promise(M=>{const O=this.elRefMap.get(ze);if(O){O.destroy(),this.elRefMap.delete(ze);const re=this.elEventsMap.get(ze);re&&(re(),this.elEventsMap.delete(ze))}M()}))}}const Xt=(ie,te,ze,M,O,re,we,We,St,nn,rn,pr)=>{const qn=Z.zZn.create({providers:Vn(St),parent:ze}),Sr=(0,Z.a0P)(We,{environmentInjector:te,elementInjector:qn}),jn=Sr.instance,zr=Sr.location.nativeElement;if(St)if(rn&&void 0!==jn[rn]&&console.error(`[Ionic Error]: ${rn} is a reserved property when using ${we.tagName.toLowerCase()}. Rename or remove the "${rn}" property from ${We.name}.`),!0===pr&&void 0!==Sr.setInput){const{modal:Pr,popover:Nr,...er}=St;for(const Rr in er)Sr.setInput(Rr,er[Rr]);void 0!==Pr&&Object.assign(jn,{modal:Pr}),void 0!==Nr&&Object.assign(jn,{popover:Nr})}else Object.assign(jn,St);if(nn)for(const Pr of nn)zr.classList.add(Pr);const $r=En(ie,jn,zr);return we.appendChild(zr),M.attachView(Sr.hostView),O.set(zr,Sr),re.set(zr,$r),zr},yn=[ae.L,ae.a,ae.b,ae.c,ae.d],En=(ie,te,ze)=>ie.run(()=>{const M=yn.filter(O=>"function"==typeof te[O]).map(O=>{const re=we=>te[O](we.detail);return ze.addEventListener(O,re),()=>ze.removeEventListener(O,re)});return()=>M.forEach(O=>O())}),Fr=new Z.nKC("NavParamsToken"),Vn=ie=>[{provide:Fr,useValue:ie},{provide:dr,useFactory:$n,deps:[Fr]}],$n=ie=>new dr(ie),In=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{Object.defineProperty(ze,M,{get(){return this.el[M]},set(O){this.z.runOutsideAngular(()=>this.el[M]=O)}})})},on=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{ze[M]=function(){const O=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,O))}})},mr=(ie,te,ze)=>{ze.forEach(M=>ie[M]=(0,Cn.R)(te,M))};function br(ie){return function(ze){const{defineCustomElementFn:M,inputs:O,methods:re}=ie;return void 0!==M&&M(),O&&In(ze,O),re&&on(ze,re),ze}}const Vr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],rr=["present","dismiss","onDidDismiss","onWillDismiss"];let Mr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-popover"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ie);return te=(0,vt.Cg)([br({inputs:Vr,methods:rr})],te),te})();const sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],ii=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Tr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-modal"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ie);return te=(0,vt.Cg)([br({inputs:sr,methods:ii})],te),te})();const Br=(ie,te)=>((ie=ie.filter(ze=>ze.stackId!==te.stackId)).push(te),ie),li=(ie,te)=>{const ze=ie.createUrlTree(["."],{relativeTo:te});return ie.serializeUrl(ze)},Di=(ie,te)=>!te||ie.stackId!==te.stackId,Zr=(ie,te)=>{if(!ie)return;const ze=ve(te);for(let M=0;M=ie.length)return ze[M];if(ze[M]!==ie[M])return}},ve=ie=>ie.split("/").map(te=>te.trim()).filter(te=>""!==te),rt=ie=>{ie&&(ie.ref.destroy(),ie.unlistenEvents())};class Nt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=ze,this.router=M,this.navCtrl=O,this.zone=re,this.location=we,this.tabsPrefix=void 0!==te?ve(te):void 0}createView(te,ze){var M;const O=li(this.router,ze),re=null==te||null===(M=te.location)||void 0===M?void 0:M.nativeElement,we=En(this.zone,te.instance,re);return{id:this.nextId++,stackId:Zr(this.tabsPrefix,O),unlistenEvents:we,element:re,ref:te,url:O}}getExistingView(te){const ze=li(this.router,te),M=this.views.find(O=>O.url===ze);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(te){var ze,M;const O=this.navCtrl.consumeTransition();let{direction:re,animation:we,animationBuilder:We}=O;const St=this.activeView,nn=Di(te,St);nn&&(re="back",we=void 0);const rn=this.views.slice();let pr;const qn=this.router;qn.getCurrentNavigation?pr=qn.getCurrentNavigation():null!==(ze=qn.navigations)&&void 0!==ze&&ze.value&&(pr=qn.navigations.value),null!==(M=pr)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Sr=this.views.includes(te),jn=this.insertView(te,re);Sr||te.ref.changeDetectorRef.detectChanges();const zr=te.animationBuilder;return void 0===We&&"back"===re&&!nn&&void 0!==zr&&(We=zr),St&&(St.animationBuilder=We),this.zone.runOutsideAngular(()=>this.wait(()=>(St&&St.ref.changeDetectorRef.detach(),te.ref.changeDetectorRef.reattach(),this.transition(te,St,we,this.canGoBack(1),!1,We).then(()=>pt(te,jn,rn,this.location,this.zone)).then(()=>({enteringView:te,direction:re,animation:we,tabSwitch:nn})))))}canGoBack(te,ze=this.getActiveStackId()){return this.getStack(ze).length>te}pop(te,ze=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(ze);if(M.length<=te)return Promise.resolve(!1);const O=M[M.length-te-1];let re=O.url;const we=O.savedData;if(we){var We;const nn=we.get("primary");null!=nn&&null!==(We=nn.route)&&void 0!==We&&null!==(We=We._routerState)&&void 0!==We&&We.snapshot.url&&(re=nn.route._routerState.snapshot.url)}const{animationBuilder:St}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(re,{...O.savedExtras,animation:St}).then(()=>!0)})}startBackTransition(){const te=this.activeView;if(te){const ze=this.getStack(te.stackId),M=ze[ze.length-2],O=M.animationBuilder;return this.wait(()=>this.transition(M,te,"back",this.canGoBack(2),!0,O))}return Promise.resolve()}endBackTransition(te){te?(this.skipTransition=!0,this.pop(1)):this.activeView&&de(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(te){const ze=this.getStack(te);return ze.length>0?ze[ze.length-1]:void 0}getRootUrl(te){const ze=this.getStack(te);return ze.length>0?ze[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(rt),this.activeView=void 0,this.views=[]}getStack(te){return this.views.filter(ze=>ze.stackId===te)}insertView(te,ze){return this.activeView=te,this.views=((ie,te,ze)=>"root"===ze?Br(ie,te):"forward"===ze?((ie,te)=>(ie.indexOf(te)>=0?ie=ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):ie.push(te),ie))(ie,te):((ie,te)=>ie.indexOf(te)>=0?ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):Br(ie,te))(ie,te))(this.views,te,ze),this.views.slice()}transition(te,ze,M,O,re,we){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ze===te)return Promise.resolve(!1);const We=te?te.element:void 0,St=ze?ze.element:void 0,nn=this.containerEl;return We&&We!==St&&(We.classList.add("ion-page"),We.classList.add("ion-page-invisible"),nn.commit)?nn.commit(We,St,{duration:void 0===M?0:void 0,direction:M,showGoBack:O,progressAnimation:re,animationBuilder:we}):Promise.resolve(!1)}wait(te){var ze=this;return(0,h.A)(function*(){void 0!==ze.runningTask&&(yield ze.runningTask,ze.runningTask=void 0);const M=ze.runningTask=te();return M.finally(()=>ze.runningTask=void 0),M})()}}const pt=(ie,te,ze,M,O)=>"function"==typeof requestAnimationFrame?new Promise(re=>{requestAnimationFrame(()=>{de(ie,te,ze,M,O),re()})}):Promise.resolve(),de=(ie,te,ze,M,O)=>{O.run(()=>ze.filter(re=>!te.includes(re)).forEach(rt)),te.forEach(re=>{const We=M.path().split("?")[0].split("#")[0];if(re!==ie&&re.url!==We){const St=re.element;St.setAttribute("aria-hidden","true"),St.classList.add("ion-page-hidden"),re.ref.changeDetectorRef.detach()}})};let Ie=(()=>{var ie;class te{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:O=>this.stackCtrl.endBackTransition(O)}:void 0}constructor(M,O,re,we,We,St,nn,rn){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new At.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",ke.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(ke.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)($t,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(or)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(Je)),this.parentOutlet=rn,this.nativeEl=we.nativeElement,this.name=M||ke.Xk,this.tabsPrefix="true"===O?li(We,nn):void 0,this.stackCtrl=new Nt(this.tabsPrefix,this.nativeEl,We,this.navCtrl,St,re),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ie,te)=>{ie.componentOnReady?ie.componentOnReady().then(ze=>te(ze)):(ie=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie)})(()=>te(ie))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,O){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const O=this.getContext();this.activatedView.savedData=new Map(O.children.contexts);const re=this.activatedView.savedData.get("primary");if(re&&O.route&&(re.route={...O.route}),this.activatedView.savedExtras={},O.route){const we=O.route.snapshot;this.activatedView.savedExtras.queryParams=we.queryParams,this.activatedView.savedExtras.fragment=we.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,O){var re;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let we,We=this.stackCtrl.getExistingView(M);if(We){we=this.activated=We.ref;const rn=We.savedData;rn&&(this.getContext().children.contexts=rn),this.updateActivatedRouteProxy(we.instance,M)}else{var St;const rn=M._futureSnapshot,pr=this.parentContexts.getOrCreateContext(this.name).children,qn=new At.t(null),Sr=this.createActivatedRouteProxy(qn,M),jn=new Ge(Sr,pr,this.location.injector),zr=null!==(St=rn.routeConfig.component)&&void 0!==St?St:rn.component;we=this.activated=this.outletContent.createComponent(zr,{index:this.outletContent.length,injector:jn,environmentInjector:null!=O?O:this.environmentInjector}),qn.next(we.instance),We=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(we.instance,Sr),this.currentActivatedRoute$.next({component:we.instance,activatedRoute:M})}null===(re=this.inputBinder)||void 0===re||re.bindActivatedRouteToOutletComponent(this),this.activatedView=We,this.navCtrl.setTopOutlet(this);const nn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:We,tabSwitch:Di(We,nn)}),this.stackCtrl.setActive(We).then(rn=>{this.activateEvents.emit(we.instance),this.stackDidChange.emit(rn)})}canGoBack(M=1,O){return this.stackCtrl.canGoBack(M,O)}pop(M=1,O){return this.stackCtrl.pop(M,O)}getLastUrl(M){const O=this.stackCtrl.getLastUrl(M);return O?O.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,O){const re=new ke.nX;return re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,re._paramMap=this.proxyObservable(M,"paramMap"),re._queryParamMap=this.proxyObservable(M,"queryParamMap"),re.url=this.proxyObservable(M,"url"),re.params=this.proxyObservable(M,"params"),re.queryParams=this.proxyObservable(M,"queryParams"),re.fragment=this.proxyObservable(M,"fragment"),re.data=this.proxyObservable(M,"data"),re}proxyObservable(M,O){return M.pipe((0,Re.p)(re=>!!re),(0,G.n)(re=>this.currentActivatedRoute$.pipe((0,Re.p)(we=>null!==we&&we.component===re),(0,G.n)(we=>we&&we.activatedRoute[O]),(0,X.F)())))}updateActivatedRouteProxy(M,O){const re=this.proxyMap.get(M);if(!re)throw new Error("Could not find activated route proxy for view");re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,this.currentActivatedRoute$.next({component:M,activatedRoute:O})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU($.aZ),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(Z.SKi),Z.rXU(ke.nX),Z.rXU(ie,12))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),te})();class Ge{constructor(te,ze,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=te,this.childContexts=ze,this.parent=M}get(te,ze){return te===ke.nX?this.route:te===ke.Zp?this.childContexts:this.parent.get(te,ze)}}const $t=new Z.nKC("");let le=(()=>{var ie;class te{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var O;null===(O=this.outletDataSubscriptions.get(M))||void 0===O||O.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:O}=M,re=(0,st.z)([O.queryParams,O.params,O.data]).pipe((0,G.n)(([we,We,St],nn)=>(St={...we,...We,...St},0===nn?(0,cn.of)(St):Promise.resolve(St)))).subscribe(we=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==O||null===O.component)return void this.unsubscribeFromRouteData(M);const We=(0,Z.HJs)(O.component);if(We)for(const{templateName:St}of We.inputs)M.activatedComponentRef.setInput(St,we[St]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,re)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();const gt=()=>({provide:$t,useFactory:ft,deps:[ke.Ix]});function ft(ie){return null!=ie&&ie.componentInputBindingEnabled?new le:null}const Qt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let sn=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=O,this.config=re,this.r=we,this.z=We,St.detach(),this.el=this.r.nativeElement}onClick(M){var O;const re=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(O=this.routerOutlet)&&void 0!==O&&O.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=re&&(this.navCtrl.navigateBack(re,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Ie,8),Z.rXU(Je),Z.rXU(or),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ie);return te=(0,vt.Cg)([br({inputs:Qt})],te),te})(),Tn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})(),Xn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(){return O.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})();const dn=["animated","animation","root","rootParams","swipeGesture"],wn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let hr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=We,St.detach(),this.el=M.nativeElement,M.nativeElement.delegate=we.create(O,re),mr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ie);return te=(0,vt.Cg)([br({inputs:dn,methods:wn})],te),te})(),wr=(()=>{var ie;class te{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&this.ionTabsWillChange.emit({tab:re})}onStackDidChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&(this.tabBar&&(this.tabBar.selectedTab=re),this.ionTabsDidChange.emit({tab:re}))}select(M){const O="string"==typeof M,re=O?M:M.detail.tab,we=this.outlet.getActiveStackId()===re,We=`${this.outlet.tabsPrefix}/${re}`;if(O||M.stopPropagation(),we){const St=this.outlet.getActiveStackId(),nn=this.outlet.getLastRouteView(St);if((null==nn?void 0:nn.url)===We)return;const rn=this.outlet.getRootView(re);return this.navCtrl.navigateRoot(We,{...rn&&We===rn.url&&rn.savedExtras,animated:!0,animationDirection:"back"})}{const St=this.outlet.getLastRouteView(re);return this.navCtrl.navigateRoot((null==St?void 0:St.url)||We,{...null==St?void 0:St.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const O=M.el.getAttribute("slot");O!==this.tabBarSlot&&(this.tabBarSlot=O,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Je))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-tabs"]],viewQuery:function(M,O){if(1&M&&Z.GBs(ue,7,Z.aKT),2&M){let re;Z.mGM(re=Z.lsd())&&(O.tabsInner=re.first)}},hostBindings:function(M,O){1&M&&Z.bIt("ionTabButtonClick",function(we){return O.select(we)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),te})();const fr=ie=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie);let Ur=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=O}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,oi(this.elementRef)}handleValueChange(M,O){M===this.elementRef.nativeElement&&(O!==this.lastValue&&(this.lastValue=O,this.onChange(O)),oi(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),oi(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(ce.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>oi(this.elementRef)));const O=M.control;O&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(we=>{if(typeof O[we]<"u"){const We=O[we].bind(O);O[we]=(...St)=>{We(...St),oi(this.elementRef)}}})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("ionBlur",function(we){return O._handleBlurEvent(we.target)})}})),te})();const oi=ie=>{fr(()=>{const te=ie.nativeElement,ze=null!=te.value&&te.value.toString().length>0,M=Ir(te);xi(te,M);const O=te.closest("ion-item");O&&xi(O,ze?[...M,"item-has-value"]:M)})},Ir=ie=>{const te=ie.classList,ze=[];for(let M=0;M{const ze=ie.classList;ze.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ze.add(...te)},vi=(ie,te)=>ie.substring(0,te.length)===te;class Ar{shouldDetach(te){return!1}shouldAttach(te){return!1}store(te,ze){}retrieve(te){return null}shouldReuseRoute(te,ze){if(te.routeConfig!==ze.routeConfig)return!1;const M=te.params,O=ze.params,re=Object.keys(M),we=Object.keys(O);if(re.length!==we.length)return!1;for(const We of re)if(O[We]!==M[We])return!1;return!0}}class Gt{constructor(te){(0,c.A)(this,"ctrl",void 0),this.ctrl=te}create(te){return this.ctrl.create(te||{})}dismiss(te,ze,M){return this.ctrl.dismiss(te,ze,M)}getTop(){return this.ctrl.getTop()}}},7863:(Pn,Et,C)=>{"use strict";C.d(Et,{hG:()=>yi,hB:()=>vt,U1:()=>Sn,mC:()=>kn,Jm:()=>dr,QW:()=>nt,b_:()=>Lt,I9:()=>Xt,ME:()=>yn,HW:()=>En,tN:()=>Fr,eY:()=>Vn,ZB:()=>$n,hU:()=>In,W9:()=>on,Q8:()=>Vr,M0:()=>sr,lO:()=>ii,eU:()=>Tr,iq:()=>yr,$w:()=>li,uz:()=>Zr,Dg:()=>ve,he:()=>Ie,nf:()=>Ge,oS:()=>gt,MC:()=>ft,cA:()=>Qt,Sb:()=>Hr,To:()=>Ir,Ki:()=>xi,Rg:()=>Nr,ln:()=>ie,Gp:()=>ze,eP:()=>M,Nm:()=>O,Ip:()=>re,HP:()=>St,nc:()=>qn,BC:()=>jn,ai:()=>Pr,bv:()=>Hn,Xi:()=>Pt,_t:()=>ge,N7:()=>hi,oY:()=>Yr,Je:()=>G,Gw:()=>X});var h=C(9842),c=C(4438),Z=C(4341),ke=C(2872),$=C(1635),he=C(3726),ae=C(177),Xe=C(7650),Ye=(C(9986),C(2725),C(8454),C(3314),C(8607),C(3664)),at=C(464),mt=C(5465),xt=C(6002),zt=(C(8476),C(9672));C(1970),C(6411);var _e=C(467);const $e=Ye.i,Le=function(){var w=(0,_e.A)(function*(H,oe){if(!(typeof window>"u"))return yield $e(),(0,zt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),oe)});return function(oe,P){return w.apply(this,arguments)}}(),Oe=["*"],Ct=["outletContent"];function st(w,H){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const oe=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",oe.template)}}let vt=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,ke.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionChange",function(vr){return Ce._handleIonChange(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),G=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionChange",function(vr){return Ce._handleChangeEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),X=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionInput",function(vr){return Ce._handleInputEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})();const ce=(w,H)=>{const oe=w.prototype;H.forEach(P=>{Object.defineProperty(oe,P,{get(){return this.el[P]},set(Ce){this.z.runOutsideAngular(()=>this.el[P]=Ce)},configurable:!0})})},ue=(w,H)=>{const oe=w.prototype;H.forEach(P=>{oe[P]=function(){const Ce=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ce))}})},Ee=(w,H,oe)=>{oe.forEach(P=>w[P]=(0,he.R)(H,P))};function ut(w){return function(oe){const{defineCustomElementFn:P,inputs:Ce,methods:dt}=w;return void 0!==P&&P(),Ce&&ce(oe,Ce),dt&&ue(oe,dt),oe}}let Sn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),kn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),dr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),nt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse"]})],H),H})(),Lt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Xt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["mode"]})],H),H})(),yn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","translucent"]})],H),H})(),En=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Fr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Vn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],H),H})(),$n=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","outline"]})],H),H})(),In=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),on=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),Vr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],H),H})(),sr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),ii=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["fixed"]})],H),H})(),Tr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),yr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),li=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),Zr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),ve=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","sticky"]})],H),H})(),Ie=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","position"]})],H),H})(),Ge=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),gt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),ft=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Qt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","menu"]})],H),H})(),Ir=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),xi=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),ie=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),ze=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],H),H})(),M=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","layout","mode","type","value"]})],H),H})(),O=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],H),H})(),re=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","value"]})],H),H})(),St=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","when"]})],H),H})(),qn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],H),H})(),jn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","size"]})],H),H})(),Pr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Nr=(()=>{var w;class H extends ke.Rg{constructor(P,Ce,dt,vr,ai,W,ye,Fe){super(P,Ce,dt,vr,ai,W,ye,Fe),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Fe}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(ae.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(w,12))}),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ce){if(1&P&&c.GBs(Ct,7,c.c1b),2&P){let dt;c.mGM(dt=c.lsd())&&(Ce.outletContent=dt.first)}},features:[c.Vt3],ngContentSelectors:Oe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ce){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),H})(),hi=(()=>{var w;class H extends ke.CE{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),H})(),Yr=(()=>{var w;class H extends ke.pF{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),H})(),Hr=(()=>{var w;class H extends ke.Sb{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ce){1&P&&c.DNE(0,st,2,1,"div",0),2&P&&c.Y8G("ngIf",Ce.isCmpOpen||Ce.keepContentsMounted)},dependencies:[ae.bT,ae.T3],encapsulation:2,changeDetection:0})),H})();const tr={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Zn),multi:!0};let Zn=(()=>{var w;class H extends Z.zX{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ce){2&P&&c.BMQ("max",Ce._enabled?Ce.max:null)},features:[c.Jv_([tr]),c.Vt3]})),H})();const mo={provide:Z.cz,useExisting:(0,c.Rfq)(()=>fi),multi:!0};let fi=(()=>{var w;class H extends Z.VZ{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ce){2&P&&c.BMQ("min",Ce._enabled?Ce.min:null)},features:[c.Jv_([mo]),c.Vt3]})),H})(),yi=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.a)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),Pt=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.l)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),ge=(()=>{var w;class H extends ke._t{constructor(){super(mt.m)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),fe=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),H})();class je extends ke.Kb{constructor(){super(xt.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const ct=(w,H,oe)=>()=>{const P=H.defaultView;if(P&&typeof window<"u"){(0,at.s)({...w,_zoneGate:dt=>oe.run(dt)});const Ce="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function Ze(){var w=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&w.push(C.e(7278).then(C.t.bind(C,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(C.e(9329).then(C.t.bind(C,7783,23)))}return Promise.all(w)}().then(()=>Le(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:ke.er,jmp:dt=>oe.runOutsideAngular(dt),ael(dt,vr,ai,W){dt[Ce](vr,ai,W)},rel(dt,vr,ai,W){dt.removeEventListener(vr,ai,W)}}))}};let Hn=(()=>{var w;class H{static forRoot(P={}){return{ngModule:H,providers:[{provide:ke.sR,useValue:P},{provide:c.hnV,useFactory:ct,multi:!0,deps:[ke.sR,ae.qQ,c.SKi]},ke.Yq,(0,ke.YV)()]}}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275mod",c.$C({type:w})),(0,h.A)(H,"\u0275inj",c.G2t({providers:[fe,je],imports:[ae.MD]})),H})()},2214:(Pn,Et,C)=>{"use strict";C.d(Et,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=C(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Pn,Et,C)=>{"use strict";C.d(Et,{$P:()=>xt,sN:()=>Tt,eS:()=>Dt});var h=C(467),c=C(4438),Z=C(2771),ke=C(8359),$=C(1413),he=C(3236),ae=C(1985),Xe=C(9974),tt=C(4360),Se=C(8750),et=C(1584);var Ye=C(5558);class at{constructor(){this.subject=new Z.m(1),this.subscriptions=new ke.yU}doFilter(Te){this.subject.next(Te)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Te]){const $e=_e[Te].currentValue;null!=$e&&Ze($e)}}))}has(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Te]&&Ze(_e[Te].currentValue)}))}notFirst(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Te]&&!_e[Te].isFirstChange()&&Ze(_e[Te].currentValue)}))}notFirstAndEmpty(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Te]&&!_e[Te].isFirstChange()){const $e=_e[Te].currentValue;null!=$e&&Ze($e)}}))}}const mt=new c.nKC("NGX_ECHARTS_CONFIG");let xt=(()=>{var It;class Te{constructor(_e,$e,Le){this.el=$e,this.ngZone=Le,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new $.B,this.changeFilter=new at,this.resizeObFired=!1,this.echarts=_e.echarts,this.theme=_e.theme||null}ngOnChanges(_e){this.changeFilter.doFilter(_e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function it(It,Te=he.E,Ze){const _e=(0,et.O)(It,Te);return function be(It,Te){return(0,Xe.N)((Ze,_e)=>{const{leading:$e=!0,trailing:Le=!1}=null!=Te?Te:{};let Oe=!1,Ct=null,kt=null,Cn=!1;const At=()=>{null==kt||kt.unsubscribe(),kt=null,Le&&(vt(),Cn&&_e.complete())},st=()=>{kt=null,Cn&&_e.complete()},cn=Re=>kt=(0,Se.Tg)(It(Re)).subscribe((0,tt._)(_e,At,st)),vt=()=>{if(Oe){Oe=!1;const Re=Ct;Ct=null,_e.next(Re),!Cn&&cn(Re)}};Ze.subscribe((0,tt._)(_e,Re=>{Oe=!0,Ct=Re,(!kt||kt.closed)&&($e?vt():cn(Re))},()=>{Cn=!0,(!(Le&&Oe&&kt)||kt.closed)&&_e.complete()}))})}(()=>_e,Ze)}(100,he.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(_e=>{for(const $e of _e)$e.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",_e=>this.onOptionsChange(_e)),this.changeFilter.notFirstAndEmpty("merge",_e=>this.setOption(_e)),this.changeFilter.has("loading",_e=>this.toggleLoading(!!_e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(_e){this.chart?_e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe($e=>_e?$e.showLoading(this.loadingType,this.loadingOpts):$e.hideLoading())}setOption(_e,$e){if(this.chart)try{this.chart.setOption(_e,$e)}catch(Le){console.error(Le),this.optionsError.emit(Le)}}refreshChart(){var _e=this;return(0,h.A)(function*(){_e.dispose(),yield _e.initChart()})()}createChart(){const _e=this.el.nativeElement;if(window&&window.getComputedStyle){const $e=window.getComputedStyle(_e,null).getPropertyValue("height");(!$e||"0px"===$e)&&(!_e.style.height||"0px"===_e.style.height)&&(_e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Le})=>Le(_e,this.theme,this.initOpts)))}initChart(){var _e=this;return(0,h.A)(function*(){yield _e.onOptionsChange(_e.options),_e.merge&&_e.chart&&_e.setOption(_e.merge)})()}onOptionsChange(_e){var $e=this;return(0,h.A)(function*(){_e&&($e.chart||($e.chart=yield $e.createChart(),$e.chart$.next($e.chart),$e.chartInit.emit($e.chart)),$e.setOption($e.options,!0))})()}createLazyEvent(_e){return this.chartInit.pipe((0,Ye.n)($e=>new ae.c(Le=>($e.on(_e,Oe=>this.ngZone.run(()=>Le.next(Oe))),()=>{this.chart&&(this.chart.isDisposed()||$e.off(_e))}))))}}return(It=Te).\u0275fac=function(_e){return new(_e||It)(c.rXU(mt),c.rXU(c.aKT),c.rXU(c.SKi))},It.\u0275dir=c.FsC({type:It,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Te})();const Dt=(It={})=>({provide:mt,useFactory:()=>({...It,echarts:()=>C.e(9697).then(C.bind(C,9697))})}),zt=It=>({provide:mt,useValue:It});let Tt=(()=>{var It;class Te{static forRoot(_e){return{ngModule:Te,providers:[zt(_e)]}}static forChild(){return{ngModule:Te}}}return(It=Te).\u0275fac=function(_e){return new(_e||It)},It.\u0275mod=c.$C({type:It}),It.\u0275inj=c.G2t({}),Te})()},7616:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Te,n:()=>Ze});var h=C(4438),c=C(177);const Z=["flamegraph-node",""];function ke(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct.original))})("mouseOverZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseEnter.emit(Ct.original))})("mouseLeaveZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseLeave.emit(Ct.original))})("zoom",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.zoom.emit(Ct))}),h.k0s()()()()}if(2&_e){const Le=$e.$implicit,Oe=h.XpG();h.xc7("position","absolute")("transform","translate("+Oe.getLeft(Le)+"px,"+Oe.getTop(Le)+"px)")("height",Oe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===Oe.minimumBarSize||Oe.getWidth(Le)>Oe.minimumBarSize)),h.R7$(),h.xc7("width",Oe.getWidth(Le),"px"),h.R7$(),h.SpI(" ",Le.label," "),h.R7$(),h.xc7("transform","scaleX("+Oe.getWidth(Le)/Oe.width+")")("height",Oe.levelHeight,"px"),h.R7$(2),h.Y8G("height",Oe.levelHeight)("navigable",Le.navigable)("color",Le.color)}}function $(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct))})("frameMouseEnter",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseEnter(Ct))})("frameMouseLeave",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseLeave(Ct))})("zoom",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onZoom(Ct))}),h.k0s()}if(2&_e){const Le=h.XpG();h.xc7("height",Le.depth*Le.levelHeight,"px")("width",Le.width,"px"),h.Y8G("layout",Le.siblingLayout)("data",Le.entries)("depth",Le.depth)("levelHeight",Le.levelHeight)("width",Le.width)("minimumBarSize",Le.minimumBarSize)}}const he=_e=>_e.reduce(($e,Le)=>Math.max($e,Le.value,he(Le.children||[])),-1/0),ae=([_e,$e],Le)=>_e+($e-_e)*Le,Xe=(_e,$e,Le,Oe,Ct=null,kt=0,Cn=1,At=0)=>{const st=[];let cn=0;_e.forEach(Re=>{cn+=Re.value});const vt=[];return _e.forEach(Re=>{var G,X,ce;let ue=Cn/_e.length;"relative"===$e&&(ue=Re.value/cn*Cn||0);const Ee=Math.min(Re.value/Le,1),Ve=Re.color||`hsl(${null!==(G=ae(Oe.hue,Ee))&&void 0!==G?G:0}, ${null!==(X=ae(Oe.saturation,Ee))&&void 0!==X?X:80}%, ${null!==(ce=ae(Oe.lightness,Ee))&&void 0!==ce?ce:0}%)`,fn={label:Re.label,value:Re.value,siblings:vt,color:Ve,widthRatio:ue,originalWidthRatio:ue,originalLeftRatio:kt,leftRatio:kt,navigable:!1,rowNumber:At,original:Re,children:[],parent:Ct};Ct&&Ct.children.push(fn);const xn=Xe(Re.children||[],$e,Le,Oe,fn,kt,ue,At+1);vt.push(fn),st.push(fn,...xn),kt+=ue}),st},tt=_e=>{if(!_e||!_e.length)return 0;let $e=0;for(const Le of _e)$e=Math.max(1+tt(Le.children),$e);return $e},et=(_e,$e)=>{$e.widthRatio=0,$e.leftRatio=_e,$e.children.forEach(Le=>et(_e,Le))},it=_e=>{const $e=_e.siblings.indexOf(_e);for(let Le=0;Le<$e;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=0,_e.siblings[Le].children.forEach(et.bind(null,0));for(let Le=$e+1;Le<_e.siblings.length;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=1,_e.siblings[Le].children.forEach(et.bind(null,1))},at=(_e,$e,Le=0,Oe=1)=>{let Ct=0;_e.forEach(kt=>{Ct+=kt.value}),_e.forEach(kt=>{let Cn=kt.value/Ct*Oe;"equal"===$e&&(Cn=Oe/_e.length),kt.widthRatio=Cn,kt.leftRatio=Le,at(kt.children,$e,Le,Cn),Le+=Cn})},mt=_e=>{_e.navigable=!1,_e.leftRatio=_e.originalLeftRatio,_e.widthRatio=_e.originalWidthRatio,_e.children.forEach(mt)},Dt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let zt=(()=>{class _e{constructor(Le,Oe,Ct){this._ngZone=Le,this._element=Oe,this._renderer=Ct,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Le=>this.mouseOverZoneless.emit(Le)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Le=>this.mouseLeaveZoneless.emit(Le))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Le,Oe){1&Le&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return Oe.zoom.emit()}),h.k0s()),2&Le&&(h.AVh("ngx-fg-navigable",Oe.navigable),h.BMQ("height",Oe.height)("fill",Oe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),_e})(),Tt=(()=>{class _e{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Le){this.entries=Le}get height(){return this.levelHeight*this.depth}getTop(Le){return Le.rowNumber*this.levelHeight}getLeft(Le){return Le.leftRatio*this.width}getWidth(Le){return Le.widthRatio*this.width||0}}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Le,Oe){1&Le&&(h.j41(0,"div",0),h.DNE(1,ke,6,18,"div",1),h.k0s()),2&Le&&(h.AVh("ngx-fg-grayscale",Oe.selectedData&&Oe.selectedData.length),h.R7$(),h.Y8G("ngForOf",Oe.entries))},dependencies:[c.Sq,zt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),_e})();const It=typeof ResizeObserver<"u";let Te=(()=>{class _e{constructor(Le,Oe,Ct){this._el=Le,this.cdr=Oe,this._ngZone=Ct,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Le){var Oe,Ct;this._data=Le.data,this._colors=null!==(Oe=Le.color)&&void 0!==Oe?Oe:Dt,this.minimumBarSize=null!==(Ct=Le.minimumBarSize)&&void 0!==Ct?Ct:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&null===this.width&&It&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(Oe))}ngOnDestroy(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&this._resizeObserver&&It&&this._resizeObserver.unobserve(Oe)}_onParentResize(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&(this.width=Oe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Le,saturation:Oe,lightness:Ct}=this._colors,kt={hue:Array.isArray(Le)?Le:[Le,Le],saturation:Array.isArray(Oe)?Oe:[Oe,Oe],lightness:Array.isArray(Ct)?Ct:[Ct,Ct]};this.entries=Xe(this._data,this.siblingLayout,he(this._data),kt),this.depth=tt(this._data)}onZoom(Le){Le.navigable&&mt(Le),((_e,$e)=>{let Le=_e;for(;Le;)Le.widthRatio=1,Le.leftRatio=0,it(Le),Le=Le.parent,Le&&(Le.navigable=!0);at(_e.children,$e)})(Le,this.siblingLayout)}onFrameMouseEnter(Le){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Le))}onFrameMouseLeave(Le){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Le))}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Le,Oe){2&Le&&h.BMQ("style",Oe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Le,Oe){1&Le&&h.DNE(0,$,1,10,"ngx-flamegraph-graph",0),2&Le&&h.Y8G("ngIf",null!==Oe.width)},dependencies:[c.bT,Tt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),_e})(),Ze=(()=>{class _e{}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275mod=h.$C({type:_e}),_e.\u0275inj=h.G2t({imports:[c.MD]}),_e})()},9549:(Pn,Et,C)=>{"use strict";C.d(Et,{NN:()=>mo,y2:()=>bo});var h=C(467),c=C(177),Z=C(4438),ke=C(1413),$=C(7786),he=C(7673),ae=C(1584),Xe=C(5558),tt=C(3703),Se=C(3294),be=C(2771),et=C(8750),it=C(7707),Ye=C(9974);function mt(Pt,ge,...fe){if(!0===ge)return void Pt();if(!1===ge)return;const K=new it.Ms({next:()=>{K.unsubscribe(),Pt()}});return(0,et.Tg)(ge(...fe)).subscribe(K)}var Dt=C(9172),zt=C(6354),Tt=C(6977);function _e(Pt,ge,fe){if("function"==typeof Pt?Pt===ge:Pt.has(ge))return arguments.length<3?ge:fe;throw new TypeError("Private element is not present on this object")}C(1594);var $e=C(9842);let Oe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Ct(Pt){Oe=Pt}const kt=/[&<>"']/,Cn=new RegExp(kt.source,"g"),At=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,st=new RegExp(At.source,"g"),cn={"&":"&","<":"<",">":">",'"':""","'":"'"},vt=Pt=>cn[Pt];function Re(Pt,ge){if(ge){if(kt.test(Pt))return Pt.replace(Cn,vt)}else if(At.test(Pt))return Pt.replace(st,vt);return Pt}const G=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,ce=/(^|[^\[])\^/g;function ue(Pt,ge){let fe="string"==typeof Pt?Pt:Pt.source;ge=ge||"";const K={replace:(je,Be)=>{let ct="string"==typeof Be?Be:Be.source;return ct=ct.replace(ce,"$1"),fe=fe.replace(je,ct),K},getRegex:()=>new RegExp(fe,ge)};return K}function Ee(Pt){try{Pt=encodeURI(Pt).replace(/%25/g,"%")}catch{return null}return Pt}const Ve={exec:()=>null};function ut(Pt,ge){const K=Pt.replace(/\|/g,(Be,ct,Kt)=>{let Dn=!1,Hn=ct;for(;--Hn>=0&&"\\"===Kt[Hn];)Dn=!Dn;return Dn?"|":" |"}).split(/ \|/);let je=0;if(K[0].trim()||K.shift(),K.length>0&&!K[K.length-1].trim()&&K.pop(),ge)if(K.length>ge)K.splice(ge);else for(;K.length0)return{type:"space",raw:fe[0]}}code(ge){const fe=this.rules.block.code.exec(ge);if(fe){const K=fe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:fe[0],codeBlockStyle:"indented",text:this.options.pedantic?K:fn(K,"\n")}}}fences(ge){const fe=this.rules.block.fences.exec(ge);if(fe){const K=fe[0],je=function Je(Pt,ge){const fe=Pt.match(/^(\s+)(?:```)/);if(null===fe)return ge;const K=fe[1];return ge.split("\n").map(je=>{const Be=je.match(/^\s+/);if(null===Be)return je;const[ct]=Be;return ct.length>=K.length?je.slice(K.length):je}).join("\n")}(K,fe[3]||"");return{type:"code",raw:K,lang:fe[2]?fe[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):fe[2],text:je}}}heading(ge){const fe=this.rules.block.heading.exec(ge);if(fe){let K=fe[2].trim();if(/#$/.test(K)){const je=fn(K,"#");(this.options.pedantic||!je||/ $/.test(je))&&(K=je.trim())}return{type:"heading",raw:fe[0],depth:fe[1].length,text:K,tokens:this.lexer.inline(K)}}}hr(ge){const fe=this.rules.block.hr.exec(ge);if(fe)return{type:"hr",raw:fe[0]}}blockquote(ge){const fe=this.rules.block.blockquote.exec(ge);if(fe){let K=fe[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");K=fn(K.replace(/^ *>[ \t]?/gm,""),"\n");const je=this.lexer.state.top;this.lexer.state.top=!0;const Be=this.lexer.blockTokens(K);return this.lexer.state.top=je,{type:"blockquote",raw:fe[0],tokens:Be,text:K}}}list(ge){let fe=this.rules.block.list.exec(ge);if(fe){let K=fe[1].trim();const je=K.length>1,Be={type:"list",raw:"",ordered:je,start:je?+K.slice(0,-1):"",loose:!1,items:[]};K=je?`\\d{1,9}\\${K.slice(-1)}`:`\\${K}`,this.options.pedantic&&(K=je?K:"[*+-]");const ct=new RegExp(`^( {0,3}${K})((?:[\t ][^\\n]*)?(?:\\n|$))`);let Kt="",Dn="",Hn=!1;for(;ge;){let w=!1;if(!(fe=ct.exec(ge))||this.rules.block.hr.test(ge))break;Kt=fe[0],ge=ge.substring(Kt.length);let H=fe[2].split("\n",1)[0].replace(/^\t+/,ai=>" ".repeat(3*ai.length)),oe=ge.split("\n",1)[0],P=0;this.options.pedantic?(P=2,Dn=H.trimStart()):(P=fe[2].search(/[^ ]/),P=P>4?1:P,Dn=H.slice(P),P+=fe[1].length);let Ce=!1;if(!H&&/^ *$/.test(oe)&&(Kt+=oe+"\n",ge=ge.substring(oe.length+1),w=!0),!w){const ai=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),W=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ye=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Fe=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;ge;){const ot=ge.split("\n",1)[0];if(oe=ot,this.options.pedantic&&(oe=oe.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),ye.test(oe)||Fe.test(oe)||ai.test(oe)||W.test(ge))break;if(oe.search(/[^ ]/)>=P||!oe.trim())Dn+="\n"+oe.slice(P);else{if(Ce||H.search(/[^ ]/)>=4||ye.test(H)||Fe.test(H)||W.test(H))break;Dn+="\n"+oe}!Ce&&!oe.trim()&&(Ce=!0),Kt+=ot+"\n",ge=ge.substring(ot.length+1),H=oe.slice(P)}}Be.loose||(Hn?Be.loose=!0:/\n *\n *$/.test(Kt)&&(Hn=!0));let vr,dt=null;this.options.gfm&&(dt=/^\[[ xX]\] /.exec(Dn),dt&&(vr="[ ] "!==dt[0],Dn=Dn.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:Kt,task:!!dt,checked:vr,loose:!1,text:Dn,tokens:[]}),Be.raw+=Kt}Be.items[Be.items.length-1].raw=Kt.trimEnd(),Be.items[Be.items.length-1].text=Dn.trimEnd(),Be.raw=Be.raw.trimEnd();for(let w=0;w"space"===P.type),oe=H.length>0&&H.some(P=>/\n.*\n/.test(P.raw));Be.loose=oe}if(Be.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Be=fe[3]?fe[3].substring(1,fe[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):fe[3];return{type:"def",tag:K,raw:fe[0],href:je,title:Be}}}table(ge){const fe=this.rules.block.table.exec(ge);if(!fe||!/[:|]/.test(fe[2]))return;const K=ut(fe[1]),je=fe[2].replace(/^\||\| *$/g,"").split("|"),Be=fe[3]&&fe[3].trim()?fe[3].replace(/\n[ \t]*$/,"").split("\n"):[],ct={type:"table",raw:fe[0],header:[],align:[],rows:[]};if(K.length===je.length){for(const Kt of je)/^ *-+: *$/.test(Kt)?ct.align.push("right"):/^ *:-+: *$/.test(Kt)?ct.align.push("center"):/^ *:-+ *$/.test(Kt)?ct.align.push("left"):ct.align.push(null);for(const Kt of K)ct.header.push({text:Kt,tokens:this.lexer.inline(Kt)});for(const Kt of Be)ct.rows.push(ut(Kt,ct.header.length).map(Dn=>({text:Dn,tokens:this.lexer.inline(Dn)})));return ct}}lheading(ge){const fe=this.rules.block.lheading.exec(ge);if(fe)return{type:"heading",raw:fe[0],depth:"="===fe[2].charAt(0)?1:2,text:fe[1],tokens:this.lexer.inline(fe[1])}}paragraph(ge){const fe=this.rules.block.paragraph.exec(ge);if(fe){const K="\n"===fe[1].charAt(fe[1].length-1)?fe[1].slice(0,-1):fe[1];return{type:"paragraph",raw:fe[0],text:K,tokens:this.lexer.inline(K)}}}text(ge){const fe=this.rules.block.text.exec(ge);if(fe)return{type:"text",raw:fe[0],text:fe[0],tokens:this.lexer.inline(fe[0])}}escape(ge){const fe=this.rules.inline.escape.exec(ge);if(fe)return{type:"escape",raw:fe[0],text:Re(fe[1])}}tag(ge){const fe=this.rules.inline.tag.exec(ge);if(fe)return!this.lexer.state.inLink&&/^
    /i.test(fe[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:fe[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:fe[0]}}link(ge){const fe=this.rules.inline.link.exec(ge);if(fe){const K=fe[2].trim();if(!this.options.pedantic&&/^$/.test(K))return;const ct=fn(K.slice(0,-1),"\\");if((K.length-ct.length)%2==0)return}else{const ct=function xn(Pt,ge){if(-1===Pt.indexOf(ge[1]))return-1;let fe=0;for(let K=0;K-1){const Dn=(0===fe[0].indexOf("!")?5:4)+fe[1].length+ct;fe[2]=fe[2].substring(0,ct),fe[0]=fe[0].substring(0,Dn).trim(),fe[3]=""}}let je=fe[2],Be="";if(this.options.pedantic){const ct=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(je);ct&&(je=ct[1],Be=ct[3])}else Be=fe[3]?fe[3].slice(1,-1):"";return je=je.trim(),/^$/.test(K)?je.slice(1):je.slice(1,-1)),un(fe,{href:je&&je.replace(this.rules.inline.anyPunctuation,"$1"),title:Be&&Be.replace(this.rules.inline.anyPunctuation,"$1")},fe[0],this.lexer)}}reflink(ge,fe){let K;if((K=this.rules.inline.reflink.exec(ge))||(K=this.rules.inline.nolink.exec(ge))){const Be=fe[(K[2]||K[1]).replace(/\s+/g," ").toLowerCase()];if(!Be){const ct=K[0].charAt(0);return{type:"text",raw:ct,text:ct}}return un(K,Be,K[0],this.lexer)}}emStrong(ge,fe,K=""){let je=this.rules.inline.emStrongLDelim.exec(ge);if(!(!je||je[3]&&K.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!je[1]&&!je[2]||!K||this.rules.inline.punctuation.exec(K))){const ct=[...je[0]].length-1;let Kt,Dn,Hn=ct,w=0;const H="*"===je[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(H.lastIndex=0,fe=fe.slice(-1*ge.length+ct);null!=(je=H.exec(fe));){if(Kt=je[1]||je[2]||je[3]||je[4]||je[5]||je[6],!Kt)continue;if(Dn=[...Kt].length,je[3]||je[4]){Hn+=Dn;continue}if((je[5]||je[6])&&ct%3&&!((ct+Dn)%3)){w+=Dn;continue}if(Hn-=Dn,Hn>0)continue;Dn=Math.min(Dn,Dn+Hn+w);const oe=[...je[0]][0].length,P=ge.slice(0,ct+je.index+oe+Dn);if(Math.min(ct,Dn)%2){const dt=P.slice(1,-1);return{type:"em",raw:P,text:dt,tokens:this.lexer.inlineTokens(dt)}}const Ce=P.slice(2,-2);return{type:"strong",raw:P,text:Ce,tokens:this.lexer.inlineTokens(Ce)}}}}codespan(ge){const fe=this.rules.inline.code.exec(ge);if(fe){let K=fe[2].replace(/\n/g," ");const je=/[^ ]/.test(K),Be=/^ /.test(K)&&/ $/.test(K);return je&&Be&&(K=K.substring(1,K.length-1)),K=Re(K,!0),{type:"codespan",raw:fe[0],text:K}}}br(ge){const fe=this.rules.inline.br.exec(ge);if(fe)return{type:"br",raw:fe[0]}}del(ge){const fe=this.rules.inline.del.exec(ge);if(fe)return{type:"del",raw:fe[0],text:fe[2],tokens:this.lexer.inlineTokens(fe[2])}}autolink(ge){const fe=this.rules.inline.autolink.exec(ge);if(fe){let K,je;return"@"===fe[2]?(K=Re(fe[1]),je="mailto:"+K):(K=Re(fe[1]),je=K),{type:"link",raw:fe[0],text:K,href:je,tokens:[{type:"text",raw:K,text:K}]}}}url(ge){let fe;if(fe=this.rules.inline.url.exec(ge)){let Be,ct;if("@"===fe[2])Be=Re(fe[0]),ct="mailto:"+Be;else{let Kt;do{var K,je;Kt=fe[0],fe[0]=null!==(K=null===(je=this.rules.inline._backpedal.exec(fe[0]))||void 0===je?void 0:je[0])&&void 0!==K?K:""}while(Kt!==fe[0]);Be=Re(fe[0]),ct="www."===fe[1]?"http://"+fe[0]:fe[0]}return{type:"link",raw:fe[0],text:Be,href:ct,tokens:[{type:"text",raw:Be,text:Be}]}}}inlineText(ge){const fe=this.rules.inline.text.exec(ge);if(fe){let K;return K=this.lexer.state.inRawBlock?fe[0]:Re(fe[0]),{type:"text",raw:fe[0],text:K}}}}const gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dr=/(?:[*+-]|\d{1,9}[.)])/,nt=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,dr).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,En=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fr=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dr).getRegex(),Vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$n=/|$))/,In=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",$n).replace("tag",Vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),on=ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),br={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",on).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:En,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:gr,html:In,lheading:nt,list:Fr,newline:/^(?: *(?:\n|$))+/,paragraph:on,table:Ve,text:/^[^\n]+/},Vr=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),rr={...br,table:Vr,paragraph:ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex()},Mr={...br,html:ue("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$n).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ve,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(Lt).replace("hr",gr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Tr=/^( {2,}|\\)\n(?!\s*$)/,Br="\\p{P}\\p{S}",ar=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Br).getRegex(),li=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Br).getRegex(),Di=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Br).getRegex(),Zr=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Br).getRegex(),ve=ue(/\\([punct])/,"gu").replace(/punct/g,Br).getRegex(),rt=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nt=ue($n).replace("(?:--\x3e|$)","--\x3e").getRegex(),pt=ue("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Nt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),de=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ie=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",de).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ge=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",de).replace("ref",yn).getRegex(),$t=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yn).getRegex(),gt={_backpedal:Ve,anyPunctuation:ve,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Tr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ve,emStrongLDelim:li,emStrongRDelimAst:Di,emStrongRDelimUnd:Zr,escape:sr,link:Ie,nolink:$t,punctuation:ar,reflink:Ge,reflinkSearch:ue("reflink|nolink(?!\\()","g").replace("reflink",Ge).replace("nolink",$t).getRegex(),tag:pt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\Dn+" ".repeat(Hn.length));ge;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Kt=>!!(K=Kt.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.space(ge)){ge=ge.substring(K.raw.length),1===K.raw.length&&fe.length>0?fe[fe.length-1].raw+="\n":fe.push(K);continue}if(K=this.tokenizer.code(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?fe.push(K):(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.fences(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.heading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.hr(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.blockquote(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.list(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.html(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.def(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?this.tokens.links[K.tag]||(this.tokens.links[K.tag]={href:K.href,title:K.title}):(je.raw+="\n"+K.raw,je.text+="\n"+K.raw,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.table(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.lheading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startBlock){let Kt=1/0;const Dn=ge.slice(1);let Hn;this.options.extensions.startBlock.forEach(w=>{Hn=w.call({lexer:this},Dn),"number"==typeof Hn&&Hn>=0&&(Kt=Math.min(Kt,Hn))}),Kt<1/0&&Kt>=0&&(Be=ge.substring(0,Kt+1))}if(this.state.top&&(K=this.tokenizer.paragraph(Be))){je=fe[fe.length-1],ct&&"paragraph"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K),ct=Be.length!==ge.length,ge=ge.substring(K.raw.length);continue}if(K=this.tokenizer.text(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K);continue}if(ge){const Kt="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(Kt);break}throw new Error(Kt)}}return this.state.top=!0,fe}inline(ge,fe=[]){return this.inlineQueue.push({src:ge,tokens:fe}),fe}inlineTokens(ge,fe=[]){let K,je,Be,Kt,Dn,Hn,ct=ge;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(Kt=this.tokenizer.rules.inline.reflinkSearch.exec(ct));)w.includes(Kt[0].slice(Kt[0].lastIndexOf("[")+1,-1))&&(ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(Kt=this.tokenizer.rules.inline.blockSkip.exec(ct));)ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(Kt=this.tokenizer.rules.inline.anyPunctuation.exec(ct));)ct=ct.slice(0,Kt.index)+"++"+ct.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;ge;)if(Dn||(Hn=""),Dn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(K=w.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.escape(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.tag(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.link(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.reflink(ge,this.tokens.links)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.emStrong(ge,ct,Hn)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.codespan(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.br(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.del(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.autolink(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(!this.state.inLink&&(K=this.tokenizer.url(ge))){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const H=ge.slice(1);let oe;this.options.extensions.startInline.forEach(P=>{oe=P.call({lexer:this},H),"number"==typeof oe&&oe>=0&&(w=Math.min(w,oe))}),w<1/0&&w>=0&&(Be=ge.substring(0,w+1))}if(K=this.tokenizer.inlineText(Be)){ge=ge.substring(K.raw.length),"_"!==K.raw.slice(-1)&&(Hn=K.raw.slice(-1)),Dn=!0,je=fe[fe.length-1],je&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(ge){const w="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return fe}}class wn{constructor(ge){(0,$e.A)(this,"options",void 0),this.options=ge||Oe}code(ge,fe,K){var je;const Be=null===(je=(fe||"").match(/^\S*/))||void 0===je?void 0:je[0];return ge=ge.replace(/\n$/,"")+"\n",Be?'
    '+(K?ge:Re(ge,!0))+"
    \n":"
    "+(K?ge:Re(ge,!0))+"
    \n"}blockquote(ge){return`
    \n${ge}
    \n`}html(ge,fe){return ge}heading(ge,fe,K){return`${ge}\n`}hr(){return"
    \n"}list(ge,fe,K){const je=fe?"ol":"ul";return"<"+je+(fe&&1!==K?' start="'+K+'"':"")+">\n"+ge+"\n"}listitem(ge,fe,K){return`
  • ${ge}
  • \n`}checkbox(ge){return"'}paragraph(ge){return`

    ${ge}

    \n`}table(ge,fe){return fe&&(fe=`${fe}`),"\n\n"+ge+"\n"+fe+"
    \n"}tablerow(ge){return`\n${ge}\n`}tablecell(ge,fe){const K=fe.header?"th":"td";return(fe.align?`<${K} align="${fe.align}">`:`<${K}>`)+ge+`\n`}strong(ge){return`${ge}`}em(ge){return`${ge}`}codespan(ge){return`${ge}`}br(){return"
    "}del(ge){return`${ge}`}link(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be='
    ",Be}image(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be=`${K}"colon"===(fe=fe.toLowerCase())?":":"#"===fe.charAt(0)?"x"===fe.charAt(1)?String.fromCharCode(parseInt(fe.substring(2),16)):String.fromCharCode(+fe.substring(1)):""));continue}case"code":K+=this.renderer.code(Be.text,Be.lang,!!Be.escaped);continue;case"table":{const ct=Be;let Kt="",Dn="";for(let w=0;w0&&"paragraph"===oe.tokens[0].type?(oe.tokens[0].text=vr+" "+oe.tokens[0].text,oe.tokens[0].tokens&&oe.tokens[0].tokens.length>0&&"text"===oe.tokens[0].tokens[0].type&&(oe.tokens[0].tokens[0].text=vr+" "+oe.tokens[0].tokens[0].text)):oe.tokens.unshift({type:"text",text:vr+" "}):dt+=vr+" "}dt+=this.parse(oe.tokens,Hn),w+=this.renderer.listitem(dt,Ce,!!P)}K+=this.renderer.list(w,Kt,Dn);continue}case"html":K+=this.renderer.html(Be.text,Be.block);continue;case"paragraph":K+=this.renderer.paragraph(this.parseInline(Be.tokens));continue;case"text":{let ct=Be,Kt=ct.tokens?this.parseInline(ct.tokens):ct.text;for(;je+1{const je={...K},Be={...this.defaults,...je};!0===this.defaults.async&&!1===je.async&&(Be.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Be.async=!0);const ct=_e(Ur,this,xi).call(this,!!Be.silent,!!Be.async);if(typeof fe>"u"||null===fe)return ct(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof fe)return ct(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(fe)+", string expected"));if(Be.hooks&&(Be.hooks.options=Be),Be.async)return Promise.resolve(Be.hooks?Be.hooks.preprocess(fe):fe).then(Kt=>Pt(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.processAllTokens(Kt):Kt).then(Kt=>Be.walkTokens?Promise.all(this.walkTokens(Kt,Be.walkTokens)).then(()=>Kt):Kt).then(Kt=>ge(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.postprocess(Kt):Kt).catch(ct);try{Be.hooks&&(fe=Be.hooks.preprocess(fe));let Kt=Pt(fe,Be);Be.hooks&&(Kt=Be.hooks.processAllTokens(Kt)),Be.walkTokens&&this.walkTokens(Kt,Be.walkTokens);let Dn=ge(Kt,Be);return Be.hooks&&(Dn=Be.hooks.postprocess(Dn)),Dn}catch(Kt){return ct(Kt)}}}function xi(Pt,ge){return fe=>{if(fe.message+="\nPlease report this to https://github.com/markedjs/marked.",Pt){const K="

    An error occurred:

    "+Re(fe.message+"",!0)+"
    ";return ge?Promise.resolve(K):K}if(ge)return Promise.reject(fe);throw fe}}const vi=new class oi{constructor(...ge){(function Ze(Pt,ge){(function Te(Pt,ge){if(ge.has(Pt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(Pt,ge),ge.add(Pt)})(this,Ur),(0,$e.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,$e.A)(this,"options",this.setOptions),(0,$e.A)(this,"parse",_e(Ur,this,Ir).call(this,dn.lex,wr.parse)),(0,$e.A)(this,"parseInline",_e(Ur,this,Ir).call(this,dn.lexInline,wr.parseInline)),(0,$e.A)(this,"Parser",wr),(0,$e.A)(this,"Renderer",wn),(0,$e.A)(this,"TextRenderer",hr),(0,$e.A)(this,"Lexer",dn),(0,$e.A)(this,"Tokenizer",Sn),(0,$e.A)(this,"Hooks",fr),this.use(...ge)}walkTokens(ge,fe){let K=[];for(const Be of ge)switch(K=K.concat(fe.call(this,Be)),Be.type){case"table":{const ct=Be;for(const Kt of ct.header)K=K.concat(this.walkTokens(Kt.tokens,fe));for(const Kt of ct.rows)for(const Dn of Kt)K=K.concat(this.walkTokens(Dn.tokens,fe));break}case"list":K=K.concat(this.walkTokens(Be.items,fe));break;default:{var je;const ct=Be;null!==(je=this.defaults.extensions)&&void 0!==je&&null!==(je=je.childTokens)&&void 0!==je&&je[ct.type]?this.defaults.extensions.childTokens[ct.type].forEach(Kt=>{const Dn=ct[Kt].flat(1/0);K=K.concat(this.walkTokens(Dn,fe))}):ct.tokens&&(K=K.concat(this.walkTokens(ct.tokens,fe)))}}return K}use(...ge){const fe=this.defaults.extensions||{renderers:{},childTokens:{}};return ge.forEach(K=>{const je={...K};if(je.async=this.defaults.async||je.async||!1,K.extensions&&(K.extensions.forEach(Be=>{if(!Be.name)throw new Error("extension name required");if("renderer"in Be){const ct=fe.renderers[Be.name];fe.renderers[Be.name]=ct?function(...Kt){let Dn=Be.renderer.apply(this,Kt);return!1===Dn&&(Dn=ct.apply(this,Kt)),Dn}:Be.renderer}if("tokenizer"in Be){if(!Be.level||"block"!==Be.level&&"inline"!==Be.level)throw new Error("extension level must be 'block' or 'inline'");const ct=fe[Be.level];ct?ct.unshift(Be.tokenizer):fe[Be.level]=[Be.tokenizer],Be.start&&("block"===Be.level?fe.startBlock?fe.startBlock.push(Be.start):fe.startBlock=[Be.start]:"inline"===Be.level&&(fe.startInline?fe.startInline.push(Be.start):fe.startInline=[Be.start]))}"childTokens"in Be&&Be.childTokens&&(fe.childTokens[Be.name]=Be.childTokens)}),je.extensions=fe),K.renderer){const Be=this.defaults.renderer||new wn(this.defaults);for(const ct in K.renderer){if(!(ct in Be))throw new Error(`renderer '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.renderer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H||""}}je.renderer=Be}if(K.tokenizer){const Be=this.defaults.tokenizer||new Sn(this.defaults);for(const ct in K.tokenizer){if(!(ct in Be))throw new Error(`tokenizer '${ct}' does not exist`);if(["options","rules","lexer"].includes(ct))continue;const Dn=K.tokenizer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.tokenizer=Be}if(K.hooks){const Be=this.defaults.hooks||new fr;for(const ct in K.hooks){if(!(ct in Be))throw new Error(`hook '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.hooks[ct],Hn=Be[ct];Be[ct]=fr.passThroughHooks.has(ct)?w=>{if(this.defaults.async)return Promise.resolve(Dn.call(Be,w)).then(oe=>Hn.call(Be,oe));const H=Dn.call(Be,w);return Hn.call(Be,H)}:(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.hooks=Be}if(K.walkTokens){const Be=this.defaults.walkTokens,ct=K.walkTokens;je.walkTokens=function(Kt){let Dn=[];return Dn.push(ct.call(this,Kt)),Be&&(Dn=Dn.concat(Be.call(this,Kt))),Dn}}this.defaults={...this.defaults,...je}}),this}setOptions(ge){return this.defaults={...this.defaults,...ge},this}lexer(ge,fe){return dn.lex(ge,null!=fe?fe:this.defaults)}parser(ge,fe){return wr.parse(ge,null!=fe?fe:this.defaults)}};function Ar(Pt,ge){return vi.parse(Pt,ge)}Ar.options=Ar.setOptions=function(Pt){return vi.setOptions(Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.getDefaults=function Le(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Ar.defaults=Oe,Ar.use=function(...Pt){return vi.use(...Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.walkTokens=function(Pt,ge){return vi.walkTokens(Pt,ge)},Ar.parseInline=vi.parseInline,Ar.Parser=wr,Ar.parser=wr.parse,Ar.Renderer=wn,Ar.TextRenderer=hr,Ar.Lexer=dn,Ar.lexer=dn.lex,Ar.Tokenizer=Sn,Ar.Hooks=fr,Ar.parse=Ar;var We=C(1626),St=C(345);const nn=["*"];let qn=(()=>{var Pt;class ge{constructor(){this._buttonClick$=new ke.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,$.h)((0,he.of)(!0),(0,ae.O)(3e3).pipe((0,tt.u)(!1)))),(0,Se.F)(),function xt(Pt,ge,fe){let K,je=!1;return Pt&&"object"==typeof Pt?({bufferSize:K=1/0,windowTime:ge=1/0,refCount:je=!1,scheduler:fe}=Pt):K=null!=Pt?Pt:1/0,function at(Pt={}){const{connector:ge=(()=>new ke.B),resetOnError:fe=!0,resetOnComplete:K=!0,resetOnRefCountZero:je=!0}=Pt;return Be=>{let ct,Kt,Dn,Hn=0,w=!1,H=!1;const oe=()=>{null==Kt||Kt.unsubscribe(),Kt=void 0},P=()=>{oe(),ct=Dn=void 0,w=H=!1},Ce=()=>{const dt=ct;P(),null==dt||dt.unsubscribe()};return(0,Ye.N)((dt,vr)=>{Hn++,!H&&!w&&oe();const ai=Dn=null!=Dn?Dn:ge();vr.add(()=>{Hn--,0===Hn&&!H&&!w&&(Kt=mt(Ce,je))}),ai.subscribe(vr),!ct&&Hn>0&&(ct=new it.Ms({next:W=>ai.next(W),error:W=>{H=!0,oe(),Kt=mt(P,fe,W),ai.error(W)},complete:()=>{w=!0,oe(),Kt=mt(P,K),ai.complete()}}),(0,et.Tg)(dt).subscribe(ct))})(Be)}}({connector:()=>new be.m(K,ge,fe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:je})}(1)),this.copiedText$=this.copied$.pipe((0,Dt.Z)(!1),(0,zt.T)(K=>K?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275cmp=Z.VBU({type:Pt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(K,je){1&K&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return je.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&K&&(Z.AVh("copied",Z.bMT(1,3,je.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,je.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),ge})();const Sr=new Z.nKC("CLIPBOARD_OPTIONS");var $r=function(Pt){return Pt.CommandLine="command-line",Pt.LineHighlight="line-highlight",Pt.LineNumbers="line-numbers",Pt}($r||{});const Pr=new Z.nKC("MARKED_EXTENSIONS"),Nr=new Z.nKC("MARKED_OPTIONS"),_i=new Z.nKC("SECURITY_CONTEXT");let Zn=(()=>{var Pt;class ge{get options(){return this._options}set options(K){this._options={...this.DEFAULT_MARKED_OPTIONS,...K}}get renderer(){return this.options.renderer}set renderer(K){this.options.renderer=K}constructor(K,je,Be,ct,Kt,Dn,Hn){this.clipboardOptions=K,this.extensions=je,this.platform=ct,this.securityContext=Kt,this.http=Dn,this.sanitizer=Hn,this.DEFAULT_MARKED_OPTIONS={renderer:new wn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ke.B,this.reload$=this._reload$.asObservable(),this.options=Be}parse(K,je=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Be,inline:ct,emoji:Kt,mermaid:Dn,disableSanitizer:Hn}=je,w={...this.options,...je.markedOptions},H=w.renderer||this.renderer||new wn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(H)),Dn&&(this.renderer=this.extendsRendererForMermaid(H));const oe=this.trimIndentation(K),P=Be?this.decodeHtml(oe):oe,Ce=Kt?this.parseEmoji(P):P,dt=this.parseMarked(Ce,w,ct);return(Hn?dt:this.sanitizer.sanitize(this.securityContext,dt))||""}render(K,je=this.DEFAULT_RENDER_OPTIONS,Be){const{clipboard:ct,clipboardOptions:Kt,katex:Dn,katexOptions:Hn,mermaid:w,mermaidOptions:H}=je;Dn&&this.renderKatex(K,{...this.DEFAULT_KATEX_OPTIONS,...Hn}),w&&this.renderMermaid(K,{...this.DEFAULT_MERMAID_OPTIONS,...H}),ct&&this.renderClipboard(K,Be,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...Kt}),this.highlight(K)}reload(){this._reload$.next()}getSource(K){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(K,{responseType:"text"}).pipe((0,zt.T)(je=>this.handleExtension(K,je)))}highlight(K){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;K||(K=document);const je=K.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(je,Be=>Be.classList.add("language-none")),Prism.highlightAllUnder(K)}decodeHtml(K){if(!(0,c.UE)(this.platform))return K;const je=document.createElement("textarea");return je.innerHTML=K,je.value}extendsRendererForExtensions(K){var je;const Be=K;return!0===Be.\u0275NgxMarkdownRendererExtendedForExtensions||((null===(je=this.extensions)||void 0===je?void 0:je.length)>0&&Ar.use(...this.extensions),Be.\u0275NgxMarkdownRendererExtendedForExtensions=!0),K}extendsRendererForMermaid(K){const je=K;if(!0===je.\u0275NgxMarkdownRendererExtendedForMermaid)return K;const Be=K.code;return K.code=function(ct,Kt,Dn){return"mermaid"===Kt?`
    ${ct}
    `:Be.call(this,ct,Kt,Dn)},je.\u0275NgxMarkdownRendererExtendedForMermaid=!0,K}handleExtension(K,je){const Be=K.lastIndexOf("://"),ct=Be>-1?K.substring(Be+4):K,Kt=ct.lastIndexOf("/"),Dn=Kt>-1?ct.substring(Kt+1).split("?")[0]:"",Hn=Dn.lastIndexOf("."),w=Hn>-1?Dn.substring(Hn+1):"";return w&&"md"!==w?"```"+w+"\n"+je+"\n```":je}parseMarked(K,je,Be=!1){if(je.renderer){const ct={...je.renderer};delete ct.\u0275NgxMarkdownRendererExtendedForExtensions,delete ct.\u0275NgxMarkdownRendererExtendedForMermaid,delete je.renderer,Ar.use({renderer:ct})}return Be?Ar.parseInline(K,je):Ar.parse(K,je)}parseEmoji(K){if(!(0,c.UE)(this.platform))return K;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(K)}renderKatex(K,je){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(K,je)}}renderClipboard(K,je,Be){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!je)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:ct,buttonTemplate:Kt}=Be,Dn=K.querySelectorAll("pre");for(let Hn=0;Hnoe.classList.add("hover"),H.onmouseleave=()=>oe.classList.remove("hover"),ct){const dt=je.createComponent(ct);P=dt.hostView,dt.changeDetectorRef.markForCheck()}else if(Kt)P=je.createEmbeddedView(Kt);else{const dt=je.createComponent(qn);P=dt.hostView,dt.changeDetectorRef.markForCheck()}P.rootNodes.forEach(dt=>{oe.appendChild(dt),Ce=new ClipboardJS(dt,{text:()=>w.innerText})}),P.onDestroy(()=>Ce.destroy())}}renderMermaid(K,je=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Be=K.querySelectorAll(".mermaid");0!==Be.length&&(mermaid.initialize(je),mermaid.run({nodes:Be}))}trimIndentation(K){if(!K)return"";let je;return K.split("\n").map(Be=>{let ct=je;return Be.length>0&&(ct=isNaN(ct)?Be.search(/\S|$/):Math.min(Be.search(/\S|$/),ct)),isNaN(je)&&(je=ct),ct?Be.substring(ct):Be}).join("\n")}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)(Z.KVO(Sr,8),Z.KVO(Pr,8),Z.KVO(Nr,8),Z.KVO(Z.Agw),Z.KVO(_i),Z.KVO(We.Qq,8),Z.KVO(St.up))},Pt.\u0275prov=Z.jDH({token:Pt,factory:Pt.\u0275fac}),ge})(),mo=(()=>{var Pt;class ge{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(K){this._disableSanitizer=this.coerceBooleanProperty(K)}get inline(){return this._inline}set inline(K){this._inline=this.coerceBooleanProperty(K)}get clipboard(){return this._clipboard}set clipboard(K){this._clipboard=this.coerceBooleanProperty(K)}get emoji(){return this._emoji}set emoji(K){this._emoji=this.coerceBooleanProperty(K)}get katex(){return this._katex}set katex(K){this._katex=this.coerceBooleanProperty(K)}get mermaid(){return this._mermaid}set mermaid(K){this._mermaid=this.coerceBooleanProperty(K)}get lineHighlight(){return this._lineHighlight}set lineHighlight(K){this._lineHighlight=this.coerceBooleanProperty(K)}get lineNumbers(){return this._lineNumbers}set lineNumbers(K){this._lineNumbers=this.coerceBooleanProperty(K)}get commandLine(){return this._commandLine}set commandLine(K){this._commandLine=this.coerceBooleanProperty(K)}constructor(K,je,Be){this.element=K,this.markdownService=je,this.viewContainerRef=Be,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ke.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Tt.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(K,je=!1){var Be=this;return(0,h.A)(function*(){const ct={decodeHtml:je,inline:Be.inline,emoji:Be.emoji,mermaid:Be.mermaid,disableSanitizer:Be.disableSanitizer},Kt={clipboard:Be.clipboard,clipboardOptions:{buttonComponent:Be.clipboardButtonComponent,buttonTemplate:Be.clipboardButtonTemplate},katex:Be.katex,katexOptions:Be.katexOptions,mermaid:Be.mermaid,mermaidOptions:Be.mermaidOptions},Dn=yield Be.markdownService.parse(K,ct);Be.element.nativeElement.innerHTML=Dn,Be.handlePlugins(),Be.markdownService.render(Be.element.nativeElement,Kt,Be.viewContainerRef),Be.ready.emit()})()}coerceBooleanProperty(K){return null!=K&&"false"!=`${String(K)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:K=>{this.render(K).then(()=>{this.load.emit(K)})},error:K=>this.error.emit(K)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,$r.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,$r.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(K,je){const Be=K.querySelectorAll("pre");for(let ct=0;ct{const Dn=je[Kt];if(Dn){const Hn=this.toLispCase(Kt);Be.item(ct).setAttribute(Hn,Dn.toString())}})}toLispCase(K){const je=K.match(/([A-Z])/g);if(!je)return K;let Be=K.toString();for(let ct=0,Kt=je.length;ct{var Pt;class ge{static forRoot(K){return{ngModule:ge,providers:[yi(K)]}}static forChild(){return{ngModule:ge}}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275mod=Z.$C({type:Pt}),Pt.\u0275inj=Z.G2t({imports:[c.MD]}),ge})();var ui;!function(Pt){let ge;var je;let fe,K;(je=ge=Pt.SecurityLevel||(Pt.SecurityLevel={})).Strict="strict",je.Loose="loose",je.Antiscript="antiscript",je.Sandbox="sandbox",function(je){je.Base="base",je.Forest="forest",je.Dark="dark",je.Default="default",je.Neutral="neutral"}(fe=Pt.Theme||(Pt.Theme={})),function(je){je[je.Debug=1]="Debug",je[je.Info=2]="Info",je[je.Warn=3]="Warn",je[je.Error=4]="Error",je[je.Fatal=5]="Fatal"}(K=Pt.LogLevel||(Pt.LogLevel={}))}(ui||(ui={}))},467:(Pn,Et,C)=>{"use strict";function h(Z,ke,$,he,ae,Xe,tt){try{var Se=Z[Xe](tt),be=Se.value}catch(et){return void $(et)}Se.done?ke(be):Promise.resolve(be).then(he,ae)}function c(Z){return function(){var ke=this,$=arguments;return new Promise(function(he,ae){var Xe=Z.apply(ke,$);function tt(be){h(Xe,he,ae,tt,Se,"next",be)}function Se(be){h(Xe,he,ae,tt,Se,"throw",be)}tt(void 0)})}}C.d(Et,{A:()=>c})},9842:(Pn,Et,C)=>{"use strict";function h($){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(he){return typeof he}:function(he){return he&&"function"==typeof Symbol&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he})($)}function ke($,he,ae){return(he=function Z($){var he=function c($,he){if("object"!=h($)||!$)return $;var ae=$[Symbol.toPrimitive];if(void 0!==ae){var Xe=ae.call($,he||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===he?String:Number)($)}($,"string");return"symbol"==h(he)?he:String(he)}(he))in $?Object.defineProperty($,he,{value:ae,enumerable:!0,configurable:!0,writable:!0}):$[he]=ae,$}C.d(Et,{A:()=>ke})},1635:(Pn,Et,C)=>{"use strict";function ke(G,X){var ce={};for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&X.indexOf(ue)<0&&(ce[ue]=G[ue]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var Ee=0;for(ue=Object.getOwnPropertySymbols(G);Ee=0;fn--)(ut=G[fn])&&(Ve=(Ee<3?ut(Ve):Ee>3?ut(X,ce,Ve):ut(X,ce))||Ve);return Ee>3&&Ve&&Object.defineProperty(X,ce,Ve),Ve}function et(G,X,ce,ue){return new(ce||(ce=Promise))(function(Ve,ut){function fn(Je){try{un(ue.next(Je))}catch(Sn){ut(Sn)}}function xn(Je){try{un(ue.throw(Je))}catch(Sn){ut(Sn)}}function un(Je){Je.done?Ve(Je.value):function Ee(Ve){return Ve instanceof ce?Ve:new ce(function(ut){ut(Ve)})}(Je.value).then(fn,xn)}un((ue=ue.apply(G,X||[])).next())})}function It(G){return this instanceof It?(this.v=G,this):new It(G)}function Te(G,X,ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ee,ue=ce.apply(G,X||[]),Ve=[];return Ee={},ut("next"),ut("throw"),ut("return"),Ee[Symbol.asyncIterator]=function(){return this},Ee;function ut(kn){ue[kn]&&(Ee[kn]=function(On){return new Promise(function(or,gr){Ve.push([kn,On,or,gr])>1||fn(kn,On)})})}function fn(kn,On){try{!function xn(kn){kn.value instanceof It?Promise.resolve(kn.value.v).then(un,Je):Sn(Ve[0][2],kn)}(ue[kn](On))}catch(or){Sn(Ve[0][3],or)}}function un(kn){fn("next",kn)}function Je(kn){fn("throw",kn)}function Sn(kn,On){kn(On),Ve.shift(),Ve.length&&fn(Ve[0][0],Ve[0][1])}}function _e(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ce,X=G[Symbol.asyncIterator];return X?X.call(G):(G=function mt(G){var X="function"==typeof Symbol&&Symbol.iterator,ce=X&&G[X],ue=0;if(ce)return ce.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ue>=G.length&&(G=void 0),{value:G&&G[ue++],done:!G}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(G),ce={},ue("next"),ue("throw"),ue("return"),ce[Symbol.asyncIterator]=function(){return this},ce);function ue(Ve){ce[Ve]=G[Ve]&&function(ut){return new Promise(function(fn,xn){!function Ee(Ve,ut,fn,xn){Promise.resolve(xn).then(function(un){Ve({value:un,done:fn})},ut)}(fn,xn,(ut=G[Ve](ut)).done,ut.value)})}}}C.d(Et,{AQ:()=>Te,Cg:()=>$,N3:()=>It,Tt:()=>ke,sH:()=>et,xN:()=>_e}),"function"==typeof SuppressedError&&SuppressedError}},Pn=>{Pn(Pn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.cbc9e54bb9b75570.js b/www/runtime.43a7948dcc9a03aa.js similarity index 98% rename from www/runtime.cbc9e54bb9b75570.js rename to www/runtime.43a7948dcc9a03aa.js index 41fdd53..a740b42 100644 --- a/www/runtime.cbc9e54bb9b75570.js +++ b/www/runtime.43a7948dcc9a03aa.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var c=g[e];if(void 0!==c)return c.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(c,a,t,r)=>{if(!a){var d=1/0;for(b=0;b=r)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,r0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[a,t,r]},f.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return f.d(c,{a:c}),c},(()=>{var c,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var r=Object.create(null);f.r(r);var b={};c=c||[null,e({}),e([]),e(e)];for(var d=2&t&&a;"object"==typeof d&&!~c.indexOf(d);d=e(d))Object.getOwnPropertyNames(d).forEach(l=>b[l]=()=>a[l]);return b.default=()=>a,f.d(r,b),r}})(),f.d=(e,c)=>{for(var a in c)f.o(c,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((c,a)=>(f.f[a](e,c),c),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"b1be7794120cc711",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"d3be83ed72735b56",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"85d6029c1243079f",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"881df6996b8040b2",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"6342f47363b5aa32",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"251cbb62d2a2ca8d",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5371:"5f9779d67125e8cd",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"818802cbbfe32b83",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"dfc5d780e02360c5",6695:"93cacdb118ebec12",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",7907:"cfb2bc5974652bb4",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8839:"cfb335a41e74f211",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9878:"db8640bd416c9008",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="app:";f.l=(a,t,r,b)=>{if(e[a])e[a].push(t);else{var d,l;if(void 0!==r)for(var n=document.getElementsByTagName("script"),i=0;i{d.onerror=d.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],d.parentNode&&d.parentNode.removeChild(d),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=s.bind(null,d.onerror),d.onload=s.bind(null,d.onload),l&&document.head.appendChild(d)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:c=>c},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,r)=>{var b=f.o(e,t)?e[t]:void 0;if(0!==b)if(b)r.push(b[2]);else if(9121!=t){var d=new Promise((o,s)=>b=e[t]=[o,s]);r.push(b[2]=d);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(b=e[t])&&(e[t]=void 0),b)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,b[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var c=(t,r)=>{var n,i,[b,d,l]=r,o=0;if(b.some(u=>0!==e[u])){for(n in d)f.o(d,n)&&(f.m[n]=d[n]);if(l)var s=l(f)}for(t&&t(r);o{"use strict";var e,v={},g={};function f(e){var c=g[e];if(void 0!==c)return c.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(c,a,t,r)=>{if(!a){var d=1/0;for(b=0;b=r)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,r0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[a,t,r]},f.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return f.d(c,{a:c}),c},(()=>{var c,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var r=Object.create(null);f.r(r);var b={};c=c||[null,e({}),e([]),e(e)];for(var d=2&t&&a;"object"==typeof d&&!~c.indexOf(d);d=e(d))Object.getOwnPropertyNames(d).forEach(l=>b[l]=()=>a[l]);return b.default=()=>a,f.d(r,b),r}})(),f.d=(e,c)=>{for(var a in c)f.o(c,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((c,a)=>(f.f[a](e,c),c),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"b1be7794120cc711",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"d3be83ed72735b56",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"85d6029c1243079f",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"881df6996b8040b2",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"6342f47363b5aa32",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"251cbb62d2a2ca8d",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5371:"5f9779d67125e8cd",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"818802cbbfe32b83",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"dfc5d780e02360c5",6695:"93cacdb118ebec12",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",7907:"00226646da3de0eb",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8839:"cfb335a41e74f211",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9878:"db8640bd416c9008",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="app:";f.l=(a,t,r,b)=>{if(e[a])e[a].push(t);else{var d,l;if(void 0!==r)for(var n=document.getElementsByTagName("script"),i=0;i{d.onerror=d.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],d.parentNode&&d.parentNode.removeChild(d),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=s.bind(null,d.onerror),d.onload=s.bind(null,d.onload),l&&document.head.appendChild(d)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:c=>c},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,r)=>{var b=f.o(e,t)?e[t]:void 0;if(0!==b)if(b)r.push(b[2]);else if(9121!=t){var d=new Promise((o,s)=>b=e[t]=[o,s]);r.push(b[2]=d);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(b=e[t])&&(e[t]=void 0),b)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,b[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var c=(t,r)=>{var n,i,[b,d,l]=r,o=0;if(b.some(u=>0!==e[u])){for(n in d)f.o(d,n)&&(f.m[n]=d[n]);if(l)var s=l(f)}for(t&&t(r);o.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.right-0{right:0}.z-10{z-index:10}.z-50{z-index:50}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-5{margin:1.25rem}.m-6{margin:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.ml-10{margin-left:2.5rem}.ml-auto{margin-left:auto}.mr-10{margin-right:2.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-48{height:12rem}.h-60{height:15rem}.h-96{height:24rem}.h-\[25em\]{height:25em}.h-full{height:100%}.min-h-full{min-height:100%}.w-1\/3{width:33.333333%}.w-1\/6{width:16.666667%}.w-12{width:3rem}.w-2\/3{width:66.666667%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tr-2xl{border-top-right-radius:1rem}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.pr-2{padding-right:.5rem}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:m-10{margin:2.5rem}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-3\/4{height:75%}.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}.md\:p-4{padding:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:m-10{margin:2.5rem}.lg\:ml-2{margin-left:.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-3\/4{height:75%}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:p-4{padding:1rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}:root{--ion-color-ai_purple: #9d68be;--ion-color-ai_purple-rgb: 157,104,190;--ion-color-ai_purple-contrast: #000000;--ion-color-ai_purple-contrast-rgb: 0,0,0;--ion-color-ai_purple-shade: #8a5ca7;--ion-color-ai_purple-tint: #a777c5}.ion-color-ai_purple{--ion-color-base: var(--ion-color-ai_purple);--ion-color-base-rgb: var(--ion-color-ai_purple-rgb);--ion-color-contrast: var(--ion-color-ai_purple-contrast);--ion-color-contrast-rgb: var(--ion-color-ai_purple-contrast-rgb);--ion-color-shade: var(--ion-color-ai_purple-shade);--ion-color-tint: var(--ion-color-ai_purple-tint)} +:root{--ion-color-primary: #0054e9;--ion-color-primary-rgb: 0, 84, 233;--ion-color-primary-contrast: #fff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #004acd;--ion-color-primary-tint: #1a65eb;--ion-color-secondary: #0163aa;--ion-color-secondary-rgb: 1, 99, 170;--ion-color-secondary-contrast: #fff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #015796;--ion-color-secondary-tint: #1a73b3;--ion-color-tertiary: #6030ff;--ion-color-tertiary-rgb: 96, 48, 255;--ion-color-tertiary-contrast: #fff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #542ae0;--ion-color-tertiary-tint: #7045ff;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #c5000f;--ion-color-danger-rgb: 197, 0, 15;--ion-color-danger-contrast: #fff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #ad000d;--ion-color-danger-tint: #cb1a27;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-color-medium: #636469;--ion-color-medium-rgb: 99, 100, 105;--ion-color-medium-contrast: #fff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #57585c;--ion-color-medium-tint: #737478;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #fff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color);color:var(--ion-text-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: .18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #0054e9) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 0, 84, 233) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #004acd) !important;--ion-color-tint: var(--ion-color-primary-tint, #1a65eb) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #0163aa) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 1, 99, 170) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #015796) !important;--ion-color-tint: var(--ion-color-secondary-tint, #1a73b3) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #6030ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 96, 48, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #542ae0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #7045ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd55b) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 213, 91) !important;--ion-color-contrast: var(--ion-color-success-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-success-shade, #28bb50) !important;--ion-color-tint: var(--ion-color-success-tint, #42d96b) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #c5000f) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 197, 0, 15) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #ad000d) !important;--ion-color-tint: var(--ion-color-danger-tint, #cb1a27) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #636469) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 99, 100, 105) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #57585c) !important;--ion-color-tint: var(--ion-color-medium-tint, #737478) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.right-0{right:0}.z-10{z-index:10}.z-50{z-index:50}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-5{margin:1.25rem}.m-6{margin:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.ml-10{margin-left:2.5rem}.ml-auto{margin-left:auto}.mr-10{margin-right:2.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-48{height:12rem}.h-60{height:15rem}.h-96{height:24rem}.h-\[25em\]{height:25em}.h-full{height:100%}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/6{width:16.666667%}.w-12{width:3rem}.w-2\/3{width:66.666667%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tr-2xl{border-top-right-radius:1rem}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.pr-2{padding-right:.5rem}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:m-10{margin:2.5rem}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-3\/4{height:75%}.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}.md\:p-4{padding:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:m-10{margin:2.5rem}.lg\:ml-2{margin-left:.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-3\/4{height:75%}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:p-4{padding:1rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}:root{--ion-color-ai_purple: #9d68be;--ion-color-ai_purple-rgb: 157,104,190;--ion-color-ai_purple-contrast: #000000;--ion-color-ai_purple-contrast-rgb: 0,0,0;--ion-color-ai_purple-shade: #8a5ca7;--ion-color-ai_purple-tint: #a777c5}.ion-color-ai_purple{--ion-color-base: var(--ion-color-ai_purple);--ion-color-base-rgb: var(--ion-color-ai_purple-rgb);--ion-color-contrast: var(--ion-color-ai_purple-contrast);--ion-color-contrast-rgb: var(--ion-color-ai_purple-contrast-rgb);--ion-color-shade: var(--ion-color-ai_purple-shade);--ion-color-tint: var(--ion-color-ai_purple-tint)} diff --git a/www/webpushr-sw.js b/www/webpushr-sw.js new file mode 100644 index 0000000..ca6ca97 --- /dev/null +++ b/www/webpushr-sw.js @@ -0,0 +1,2 @@ +importScripts('https://cdn.webpushr.com/sw-server.min.js'); +console.log('Hello from the service worker!');