From 56ccc400c257025ec02053d17d2f14d041352cb3 Mon Sep 17 00:00:00 2001 From: mrleblanc101 Date: Wed, 11 Oct 2023 21:36:03 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mrleblan?= =?UTF-8?q?c101/neobigben@ff1c0567d08f91fdb69ffc56d2dd169f486fd286=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 200.html | 22 +- 404.html | 22 +- _nuxt/{Logo.c24d64fa.js => Logo.09e938a8.js} | 2 +- _nuxt/auth.ef97e35f.js | 1 - _nuxt/auth.f7a3445a.js | 1 + _nuxt/default.a5b5264c.js | 1 - _nuxt/default.fa8eb834.js | 1 + .../{entry.ffb9f67d.js => entry.2efdeb07.js} | 580 +++++++++--------- ...{entry.93a0662a.css => entry.44bb02a5.css} | 2 +- ...-404.9c7482e8.js => error-404.b238389b.js} | 2 +- ...-500.8c13879b.js => error-500.bd67db4b.js} | 2 +- ...rger.6acfa935.js => hamburger.040db4da.js} | 2 +- _nuxt/index.892f0c33.js | 1 - .../{index.10d81674.js => index.a86317f8.js} | 2 +- _nuxt/index.bafef1ea.js | 1 + _nuxt/login.83cb6dd1.js | 1 + .../{login.7d8cee7d.js => login.8a39a11a.js} | 2 +- _nuxt/login.b2033610.js | 1 - ...{logout.1f2a54a5.js => logout.0954e0c9.js} | 2 +- connexion/index.html | 22 +- deconnexion/index.html | 22 +- en/index.html | 22 +- en/login/index.html | 22 +- en/logout/index.html | 22 +- index.html | 22 +- 25 files changed, 390 insertions(+), 390 deletions(-) rename _nuxt/{Logo.c24d64fa.js => Logo.09e938a8.js} (98%) delete mode 100644 _nuxt/auth.ef97e35f.js create mode 100644 _nuxt/auth.f7a3445a.js delete mode 100644 _nuxt/default.a5b5264c.js create mode 100644 _nuxt/default.fa8eb834.js rename _nuxt/{entry.ffb9f67d.js => entry.2efdeb07.js} (74%) rename _nuxt/{entry.93a0662a.css => entry.44bb02a5.css} (70%) rename _nuxt/{error-404.9c7482e8.js => error-404.b238389b.js} (98%) rename _nuxt/{error-500.8c13879b.js => error-500.bd67db4b.js} (96%) rename _nuxt/{hamburger.6acfa935.js => hamburger.040db4da.js} (97%) delete mode 100644 _nuxt/index.892f0c33.js rename _nuxt/{index.10d81674.js => index.a86317f8.js} (99%) create mode 100644 _nuxt/index.bafef1ea.js create mode 100644 _nuxt/login.83cb6dd1.js rename _nuxt/{login.7d8cee7d.js => login.8a39a11a.js} (80%) delete mode 100644 _nuxt/login.b2033610.js rename _nuxt/{logout.1f2a54a5.js => logout.0954e0c9.js} (73%) diff --git a/200.html b/200.html index e7d628f..780c9f7 100644 --- a/200.html +++ b/200.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/404.html b/404.html index e7d628f..780c9f7 100644 --- a/404.html +++ b/404.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/_nuxt/Logo.c24d64fa.js b/_nuxt/Logo.09e938a8.js similarity index 98% rename from _nuxt/Logo.c24d64fa.js rename to _nuxt/Logo.09e938a8.js index 1456787..82dce4e 100644 --- a/_nuxt/Logo.c24d64fa.js +++ b/_nuxt/Logo.09e938a8.js @@ -1 +1 @@ -import{_ as c,ax as h}from"./entry.ffb9f67d.js";const a={},v=h('',2);function l(s,t){return v}const e=c(a,[["render",l],["__scopeId","data-v-1ff604f4"],["__file","Logo.vue"]]);export{e as _}; +import{_ as c,aA as h}from"./entry.2efdeb07.js";const a={},v=h('',2);function l(s,t){return v}const e=c(a,[["render",l],["__scopeId","data-v-1ff604f4"],["__file","Logo.vue"]]);export{e as _}; diff --git a/_nuxt/auth.ef97e35f.js b/_nuxt/auth.ef97e35f.js deleted file mode 100644 index 28355e3..0000000 --- a/_nuxt/auth.ef97e35f.js +++ /dev/null @@ -1 +0,0 @@ -import{aa as u,ab as r,a2 as c,a3 as o,ac as i,n as t}from"./entry.ffb9f67d.js";const h=new u,g=r("auth",()=>{async function e(){const a=c(),s=o();return await i(a,h),t(s({name:"index"}))}async function n(){const a=o();return t(a({name:"logout"}))}return{login:e,logout:n}});export{g as u}; diff --git a/_nuxt/auth.f7a3445a.js b/_nuxt/auth.f7a3445a.js new file mode 100644 index 0000000..ce7d6f2 --- /dev/null +++ b/_nuxt/auth.f7a3445a.js @@ -0,0 +1 @@ +import{aa as u,ab as c,a2 as i,a3 as t,ac as h,n as e}from"./entry.2efdeb07.js";import{u as l}from"./index.bafef1ea.js";const g=new u,d=c("auth",()=>{async function a(){const o=i(),s=t();return h(o,g).then(async r=>{await l().createUserInfo(r),e(s({name:"index"}))})}async function n(){const o=t();return e(o({name:"logout"}))}return{login:a,logout:n}});export{d as u}; diff --git a/_nuxt/default.a5b5264c.js b/_nuxt/default.a5b5264c.js deleted file mode 100644 index 5c5390b..0000000 --- a/_nuxt/default.a5b5264c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Y}from"./Logo.c24d64fa.js";import{I as E,_ as W,a as G}from"./hamburger.6acfa935.js";import{q as n,s,t as e,d as w,a5 as T,C as U,r as M,U as A,X as D,P as h,y as I,E as O,v as L,D as t,G as B,x as p,L as k,M as q,K as F,H as S,$ as N,_ as v,a6 as J,c as K,z as $,o as Q,a7 as X,N as V,a8 as e1,a9 as R,J as j,Q as t1}from"./entry.ffb9f67d.js";import{u as H}from"./index.892f0c33.js";import{u as P}from"./auth.ef97e35f.js";const o1={viewBox:"0 0 69 69",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},n1=e("g",{id:"save_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"save_svg__np_save_4035705_000000","fill-rule":"nonzero"},[e("path",{d:"M66.72182,15.6248 L51.56272,1.8438 C50.27792,0.6719 48.53772,0.0079 46.7159,0 L6.875,0 C3.07659,0 0,2.7969 0,6.25 L0,62.5 C0,64.1562 0.726176,65.7461 2.0152,66.918 C3.304224,68.0899 5.05307,68.75 6.875,68.75 L61.875,68.75 C63.69682,68.75 65.44571,68.08984 66.7348,66.918 C68.02389,65.74616 68.75,64.1563 68.75,62.5 L68.75,20.031 C68.7414068,18.3748 68.010932,16.7927 66.72182,15.6248 L66.72182,15.6248 Z M24.06272,6.2498 L44.68772,6.2498 L44.68772,18.7498 L24.06272,18.7498 L24.06272,6.2498 Z M20.62522,62.4998 L20.62522,40.6248 L48.12522,40.6248 L48.12522,62.4998 L20.62522,62.4998 Z M55.00022,62.5 L55.00022,40.6248 C55.00022,38.9686 54.274044,37.3787 52.98502,36.2068 C51.695996,35.0349 49.94715,34.3748 48.12522,34.3748 L20.62522,34.3748 C16.82681,34.3748 13.75022,37.1717 13.75022,40.6248 L13.75022,62.5 L6.87522,62.5 L6.87522,6.2498 L17.18772,6.2498 L17.18772,18.7498 C17.18772,20.406 17.913896,21.9959 19.20292,23.1678 C20.491944,24.3397 22.24079,24.9998 24.06272,24.9998 L44.68772,24.9998 C46.50954,24.9998 48.25843,24.33964 49.54752,23.1678 C50.83661,21.99596 51.56272,20.4061 51.56272,18.7498 L51.56272,10.656 L61.87522,20.031 L61.87522,62.5 L55.00022,62.5 Z",id:"save_svg__Shape"})])],-1),s1=[n1];function r1(d,o){return n(),s("svg",o1,s1)}const a1={render:r1},i1={key:0,class:"absolute right-0 top-full flex w-64 min-w-full translate-y-2 flex-col gap-6 rounded border border-gray-100 bg-white p-4 dark:border-gray-800 dark:bg-gray-900"},l1={class:"flex flex-col gap-2"},c1={class:"flex items-end justify-between border-b pb-2 dark:border-gray-800"},d1={class:"text-xs font-bold uppercase opacity-80"},u1={key:0,class:"mt-1 block text-3xl font-bold tabular-nums"},_1={class:"flex flex-col gap-2"},p1={class:"text-xs font-bold uppercase group-first:opacity-70 group-last:opacity-70 group-first:dark:opacity-30 group-last:dark:opacity-30"},L1={class:"mt-2 flex items-end justify-between gap-8 border-t pt-2 dark:border-gray-800"},C1={class:"font-bold uppercase"},g1={class:"font-bold tabular-nums"},f1=w({__name:"WeekSummary",props:{is_open:{type:Boolean,default:!1}},emits:["update:is_open"],setup(d,{emit:o}){P();const i=H(),r=T(),{weekSummaryColors:u}=i,{weekSummary:l,weekObjective:a,weekTotal:_}=U(i),C=M(!1),c=M(a.value);A(()=>r.name,()=>{o("update:is_open",!1)});function x(){C.value=!1,a.value=c.value}function y(){o("update:is_open",!1)}return(f,m)=>{const Z=W,g=D("on-click-outside");return n(),h(N,{"enter-active-class":"transition transform origin-top-right ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition transform origin-top-right ease-in duration-200","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:I(()=>[f.is_open?O((n(),s("div",i1,[e("div",l1,[e("div",c1,[e("div",null,[e("div",d1,L(f.$t("Mon objectif")),1),t(C)?(n(),h(Z,{key:1,class:"mt-1",modelValue:t(c),"onUpdate:modelValue":m[0]||(m[0]=b=>B(c)?c.value=b:null),mask:"99:99"},null,8,["modelValue"])):(n(),s("div",u1,L(t(a)),1))]),t(C)?(n(),s("button",{key:1,type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:x},[p(t(a1),{class:"h-5"})])):(n(),s("button",{key:0,type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:m[1]||(m[1]=b=>C.value=!0)},[p(t(E),{class:"h-5"})]))]),e("div",_1,[(n(!0),s(k,null,q(Object.values(t(l)),(b,z)=>(n(),s("div",{key:z,class:"group flex items-end justify-between gap-8"},[e("div",p1,L(f.$moment().day(z).format("dddd")),1),e("div",{class:F(["font-bold tabular-nums",t(u)(b)])},L(b),3)]))),128))]),e("div",L1,[e("div",C1,L(f.$t("Total")),1),e("div",g1,L(t(_)),1)])])])),[[g,y,void 0,{bubble:!0}]]):S("",!0)]),_:1})}}}),m1=v(f1,[["__file","WeekSummary.vue"]]),h1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},v1=e("g",{id:"language_svg__Artboard-Copy","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M9.99994982,20.0000009 C5.4409049,19.9997296 1.45868702,16.9171201 0.315887784,12.5036294 L0.313920435,12.4941765 L0.219086754,12.0914893 C0.102131532,11.541573 0.0316907561,10.9828384 0.00851136388,10.4214468 L3.55271368e-15,10.0000009 C3.55271368e-15,8.25664079 0.447319882,6.5757241 1.28618607,5.09035045 L1.44604756,4.81676117 C3.25398288,1.8319198 6.49533701,-0.00145955899 10.0003718,8.71859633e-07 L9.99898253,0.00101353032 L10.0010079,0.00101353032 L10.3175135,0.00490454043 C13.6997972,0.110711699 16.8008078,1.92236954 18.5539572,4.81676117 L18.7088549,5.08151923 C19.499243,6.48187536 19.9373904,8.0401147 19.9937898,9.63208525 L20.0000127,10.0000009 C20.0000127,10.8510744 19.8932004,11.6899056 19.6845297,12.5020295 L19.6860699,12.4941765 C18.5651261,16.8251724 14.7237932,19.8707099 10.2842237,19.9959855 L10.0000549,20.0000009 L9.99994982,20.0000009 Z M7.21417275,15.2394927 L7.24752336,15.3267026 C7.94843107,17.1100969 8.96659772,18.2278483 10.0000024,18.2278483 L10.1239185,18.222512 C11.1143528,18.1373632 12.07961,17.0387612 12.7524814,15.3267026 L12.784805,15.2405053 L12.4136206,15.2930985 C11.7750586,15.3737652 11.1314312,15.4221497 10.4851619,15.4376299 L10.0000024,15.4430608 C9.17936084,15.4430608 8.36615072,15.391255 7.56404442,15.2892073 L7.21417275,15.2394927 Z M17.1605006,14.0546827 L17.0699894,14.0925218 C16.4719021,14.3307132 15.8626904,14.5381771 15.2447778,14.7142915 L14.7908807,14.8364547 L14.7874593,14.8503162 C14.5392191,15.6988745 14.2257759,16.4733637 13.8563168,17.149458 L13.7610074,17.3184798 L13.9777312,17.2030221 C15.2404319,16.5054127 16.3091719,15.4822205 17.0604904,14.2290156 L17.1605006,14.0546827 Z M2.83948974,14.0556953 L2.93951437,14.2290156 C3.69083283,15.4822205 4.75957284,16.5054127 6.02227356,17.2030221 L6.23695768,17.3174671 L6.14368794,17.149458 C5.77422883,16.4733637 5.46078568,15.6988745 5.21254545,14.8503162 L5.20809705,14.8374674 L5.19470942,14.8339022 C4.41848318,14.6329345 3.65703316,14.3832888 2.91403176,14.086529 L2.83948974,14.0556953 Z M13.6313872,8.85265801 L13.3137463,8.9420251 C12.2397977,9.22380399 11.1265358,9.36871862 10.0000024,9.36710246 C8.85812646,9.36710246 7.73865697,9.21956526 6.66376519,8.93589878 L6.36759058,8.85265801 L6.3527383,9.09264686 C6.34235581,9.29101597 6.33531818,9.49167761 6.33178003,9.69440032 L6.32911676,10.0000012 C6.32911676,11.1259937 6.43731509,12.1931401 6.62798441,13.1629283 L6.66632472,13.34886 L7.06537011,13.4237498 C7.86620283,13.5601335 8.68108006,13.64085 9.5055719,13.6639672 L10.0013853,13.6709313 C10.9803933,13.6724382 11.9541326,13.5906846 12.9124743,13.4282603 L13.332653,13.3498726 L13.3720204,13.1629283 C13.5453561,12.2813027 13.650534,11.3192157 13.6682247,10.3056021 L13.670888,10.0000012 C13.670888,9.69291239 13.6628402,9.39020052 13.6472665,9.09264686 L13.6313872,8.85265801 Z M2.37366702,6.90329116 C1.97887564,7.87687631 1.7721481,8.92311196 1.7721481,10.0007855 C1.77153624,10.6956826 1.85878954,11.3878651 2.03183575,12.0608632 L1.9463253,11.690126 L2.03097024,11.7359037 C2.89208552,12.182265 3.78745888,12.5545865 4.70943541,12.8495295 L4.77467938,12.86886 L4.74666221,12.6840182 C4.63623348,11.9228178 4.57223834,11.1266678 4.55938051,10.3080231 L4.55696508,10.0000012 C4.55696508,9.48495511 4.57717027,8.97808786 4.61643227,8.48244021 L4.63898319,8.21670872 L4.57998785,8.19044022 C3.90958723,7.88370555 3.26556819,7.51984909 2.6545,7.10225098 L2.37366702,6.90329116 Z M17.6263234,6.90430382 L17.3381425,7.10788008 C16.7229308,7.52759028 16.0748147,7.89220024 15.40151,8.19884579 L15.3599945,8.21670872 L15.3835725,8.48244021 C15.4149821,8.87895833 15.4341953,9.28265699 15.4406243,9.69197935 L15.4430397,10.0000012 C15.4430397,10.9270843 15.3775749,11.8276677 15.2533426,12.6840182 L15.2242983,12.86886 L15.2703888,12.8556471 C16.196034,12.5605852 17.0978408,12.1870287 17.9656804,11.7375886 L18.0526524,11.690126 L18.0611073,11.6572984 C18.1439576,11.2510853 18.1963315,10.8376 18.2173407,10.4189238 L18.2278725,9.99859435 C18.2295464,8.93779494 18.0250811,7.89024295 17.6294435,6.913132 L17.6263234,6.90430382 Z M9.8760863,1.77749042 C8.51423914,1.89457011 7.19999236,3.92770965 6.62798441,6.83707415 L6.58429941,7.06632912 L6.87586224,7.15606858 C7.76657043,7.41244065 8.69503567,7.55981171 9.64434028,7.58939599 L10.0012733,7.59496324 C11.0591514,7.59646905 12.1033202,7.44848116 13.104965,7.16170852 L13.4146783,7.06734177 L13.3720204,6.83707415 C12.8000124,3.92770965 11.4857656,1.89457011 10.1239185,1.77749042 L10.0000024,1.77215414 L9.8760863,1.77749042 Z M6.23695768,2.68253219 L6.09753598,2.7548637 C5.00253235,3.3444018 4.04300548,4.1809609 3.30460148,5.21450523 L3.22429982,5.32962047 L3.45982353,5.50313331 C3.8372692,5.77289042 4.22996958,6.0184174 4.63580996,6.23861601 L4.90936291,6.38177224 L4.94654253,6.20195264 C5.21899372,4.9364625 5.62644519,3.79707656 6.14368794,2.85054443 L6.23695768,2.68253219 Z M13.76202,2.68253219 L13.8563168,2.85054443 C14.3735596,3.79707656 14.781011,4.9364625 15.0534622,6.20195264 L15.0896148,6.38075958 L15.3514051,6.24574777 C15.759434,6.02522562 16.1546361,5.77893625 16.5344817,5.50782081 L16.7746779,5.32962047 L16.6954033,5.21450523 C15.9569993,4.1809609 14.9974724,3.3444018 13.9024688,2.7548637 L13.76202,2.68253219 Z",id:"language_svg__Shape","fill-rule":"nonzero"})],-1),w1=[v1];function x1(d,o){return n(),s("svg",h1,w1)}const y1={render:x1},b1=w({__name:"LanguageSwitcher",setup(d){const{locale:o,locales:i,setLocale:r}=J(),u=K(()=>{const l=i.value.findIndex(_=>_.code===o.value),a=l!==i.value.length-1?l+1:0;return i.value.at(a)});return(l,a)=>(n(),s("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-primary-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:a[0]||(a[0]=_=>t(r)(t(u).code))},[$(L(t(u).name)+" ",1),p(t(y1),{class:"h-5 w-5"})]))}}),k1=v(b1,[["__file","LanguageSwitcher.vue"]]),$1=w({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(d,{slots:o,attrs:i}){const r=M(!1);return Q(()=>{r.value=!0}),u=>{var C;if(r.value)return(C=o.default)==null?void 0:C.call(o);const l=o.fallback||o.placeholder;if(l)return l();const a=u.fallback||u.placeholder||"",_=u.fallbackTag||u.placeholderTag||"span";return s(_,i,a)}}}),M1={name:X,props:{placeholder:String,tag:{type:String,default:"span"}}};function Z1(d,o,i,r,u,l){const a=$1;return n(),h(a,{placeholder:i.placeholder,"placeholder-tag":i.tag},{default:I(()=>[V(d.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const S1=v(M1,[["render",Z1],["__file","component.vue3.vue"]]),I1=()=>e1("color-mode").value,j1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},B1=e("g",{id:"moon_svg__Artboard-Copy-4","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M6.37530016,0.0682308493 C7.07901057,-0.225334742 7.78518704,0.480930655 7.49153285,1.18460409 C7.05518621,2.2302065 6.82777017,3.35584862 6.82777017,4.51559498 C6.82777017,9.29674187 10.7032605,13.1722322 15.4855648,13.1722329 C16.628647,13.1737831 17.7606364,12.9481093 18.8157348,12.5083291 C19.5193711,12.2150434 20.2252693,12.9211543 19.9317715,13.6247022 C18.3210146,17.4858712 14.547185,20.0003602 10.3635797,20 C4.6397145,20 0,15.3602878 0,9.63649562 C-0.000357876646,5.45281738 2.51413116,1.67898771 6.37530016,0.0682308493 Z M5.29542347,2.61552408 L5.10797802,2.7549784 C2.9970027,4.36834315 1.70670823,6.8972007 1.70694254,9.63642261 C1.70694254,14.4175695 5.58243284,18.2930598 10.3636527,18.2930598 C13.1028174,18.2932941 15.6316626,17.0029996 17.2450247,14.8920243 L17.3835029,14.7026281 L17.1152305,14.7517565 C16.7115396,14.815771 16.3038779,14.8558541 15.8944045,14.8715816 L15.4844074,14.8791747 C9.76054213,14.8791747 5.12082763,10.2394602 5.12082763,4.51559498 C5.12082763,3.96103262 5.16443395,3.41245682 5.25022648,2.8736174 L5.29542347,2.61552408 Z",id:"moon_svg__Path","fill-rule":"nonzero"})],-1),z1=[B1];function T1(d,o){return n(),s("svg",j1,z1)}const U1={render:T1},A1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},D1=e("g",{id:"sun_svg__Artboard-Copy-3","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M10,15.9493671 C10.4893662,15.9493671 10.8860759,16.3460768 10.8860759,16.835443 L10.8860759,19.1139241 C10.8860759,19.6032903 10.4893662,20 10,20 C9.51063377,20 9.11392405,19.6032903 9.11392405,19.1139241 L9.11392405,16.835443 C9.11392405,16.3460768 9.51063377,15.9493671 10,15.9493671 Z M14.2068674,14.2068674 C14.5529016,13.8608332 15.1139339,13.8608332 15.459968,14.2068674 L17.0711073,15.8180066 C17.4171415,16.1640408 17.4171415,16.7250731 17.0711073,17.0711073 C16.7250731,17.4171415 16.1640408,17.4171415 15.8180066,17.0711073 L14.2068674,15.459968 C13.8608332,15.1139339 13.8608332,14.5529016 14.2068674,14.2068674 Z M4.54003197,14.2068674 C4.88606615,13.8608332 5.44709841,13.8608332 5.79313259,14.2068674 C6.13916677,14.5529016 6.13916677,15.1139339 5.79313259,15.459968 L4.18199335,17.0711073 C3.83595917,17.4171415 3.27492691,17.4171415 2.92889273,17.0711073 C2.58285854,16.7250731 2.58285854,16.1640408 2.92889273,15.8180066 L4.54003197,14.2068674 Z M10,5.3164557 C12.5866501,5.3164557 14.6835443,7.41334991 14.6835443,10 C14.6835443,12.5866501 12.5866501,14.6835443 10,14.6835443 C7.41334991,14.6835443 5.3164557,12.5866501 5.3164557,10 C5.3164557,7.41334991 7.41334991,5.3164557 10,5.3164557 Z M10,7.08860759 C8.39208237,7.08860759 7.08860759,8.39208237 7.08860759,10 C7.08860759,11.6079176 8.39208237,12.9113924 10,12.9113924 C11.6079176,12.9113924 12.9113924,11.6079176 12.9113924,10 C12.9113924,8.39208237 11.6079176,7.08860759 10,7.08860759 Z M19.1139241,9.11392405 C19.6032903,9.11392405 20,9.51063377 20,10 C20,10.4893662 19.6032903,10.8860759 19.1139241,10.8860759 L16.835443,10.8860759 C16.3460768,10.8860759 15.9493671,10.4893662 15.9493671,10 C15.9493671,9.51063377 16.3460768,9.11392405 16.835443,9.11392405 L19.1139241,9.11392405 Z M3.16455696,9.11392405 C3.6539232,9.11392405 4.05063291,9.51063377 4.05063291,10 C4.05063291,10.4893662 3.6539232,10.8860759 3.16455696,10.8860759 L0.886075949,10.8860759 C0.396709715,10.8860759 0,10.4893662 0,10 C0,9.51063377 0.396709715,9.11392405 0.886075949,9.11392405 L3.16455696,9.11392405 Z M15.8180066,2.92889273 C16.1640408,2.58285854 16.7250731,2.58285854 17.0711073,2.92889273 C17.4171415,3.27492691 17.4171415,3.83595917 17.0711073,4.18199335 L15.459968,5.79313259 C15.1139339,6.13916677 14.5529016,6.13916677 14.2068674,5.79313259 C13.8608332,5.44709841 13.8608332,4.88606615 14.2068674,4.54003197 L15.8180066,2.92889273 Z M2.92889273,2.92889273 C3.27492691,2.58285854 3.83595917,2.58285854 4.18199335,2.92889273 L5.79313259,4.54003197 C6.13916677,4.88606615 6.13916677,5.44709841 5.79313259,5.79313259 C5.44709841,6.13916677 4.88606615,6.13916677 4.54003197,5.79313259 L2.92889273,4.18199335 C2.58285854,3.83595917 2.58285854,3.27492691 2.92889273,2.92889273 Z M10,0 C10.4893662,0 10.8860759,0.396709715 10.8860759,0.886075949 L10.8860759,3.16455696 C10.8860759,3.6539232 10.4893662,4.05063291 10,4.05063291 C9.51063377,4.05063291 9.11392405,3.6539232 9.11392405,3.16455696 L9.11392405,0.886075949 C9.11392405,0.396709715 9.51063377,0 10,0 Z",id:"sun_svg__Shape","fill-rule":"nonzero"})],-1),O1=[D1];function N1(d,o){return n(),s("svg",A1,O1)}const V1={render:N1},R1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},H1=e("g",{id:"computer_svg__Artboard-Copy-5","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M16.835443,0 C18.5831796,0 20,1.41682041 20,3.16455696 L20,13.0379747 C20,14.7857112 18.5831796,16.2025316 16.835443,16.2025316 L13.923038,16.2025316 L13.9240506,16.3363087 C13.9239898,16.843794 14.1031923,17.3328114 14.426658,17.7187732 L14.5546516,17.858513 L15.1835123,18.4873737 C15.7417091,19.0455705 15.3463714,20 14.556962,20 L5.44303797,20 C4.65362861,20 4.25829095,19.0455705 4.81648766,18.4873737 L5.44544304,17.8584184 C5.84920608,17.4547773 6.07601776,16.9072296 6.07594937,16.3362025 L6.07594937,16.2025316 L3.16455696,16.2025316 C1.47708719,16.2025316 0.0981052319,14.8817383 0.00500953182,13.2175501 L0,13.0379747 L0,3.16455696 L0.00500953182,2.98498159 C0.0981052319,1.32079334 1.47708719,0 3.16455696,0 L16.835443,0 Z M12.1518987,16.2025316 L7.84708861,16.2025316 L7.84810126,16.3360964 C7.848178,16.9767679 7.69157878,17.6012985 7.39954357,18.1584439 L7.36,18.2278481 L12.6389873,18.2278481 L12.6004785,18.158472 C12.3449284,17.6709589 12.1930883,17.1318828 12.1591727,16.575575 L12.1518987,16.3362025 L12.1518987,16.2025316 Z M18.2278481,12.841519 L18.1835012,12.8638938 C17.7745288,13.0567371 17.3175773,13.164557 16.835443,13.164557 L3.16455696,13.164557 C2.68242274,13.164557 2.2254712,13.0567371 1.8164988,12.8638938 L1.7721519,12.841519 L1.7721519,13.0379747 C1.7721519,13.7617432 2.32436868,14.3565346 3.03045906,14.4240057 L3.16455696,14.4303797 L16.835443,14.4303797 C17.6044471,14.4303797 18.2278481,13.8069788 18.2278481,13.0379747 L18.2278481,12.841519 Z M16.835443,1.7721519 L3.16455696,1.7721519 C2.39555288,1.7721519 1.7721519,2.39555288 1.7721519,3.16455696 L1.7721519,10 C1.7721519,10.7690041 2.39555288,11.3924051 3.16455696,11.3924051 L16.835443,11.3924051 C17.6044471,11.3924051 18.2278481,10.7690041 18.2278481,10 L18.2278481,3.16455696 L18.2214741,3.03045906 C18.154003,2.32436868 17.5592116,1.7721519 16.835443,1.7721519 Z",id:"computer_svg__Shape","fill-rule":"nonzero"})],-1),P1=[H1];function Y1(d,o){return n(),s("svg",R1,P1)}const E1={render:Y1},W1=w({__name:"ColorSwitcher",setup(d){const o=I1(),i=()=>{const r=["system","light","dark"],l=(r.indexOf(o.preference)+1)%r.length;o.preference=r[l]};return(r,u)=>{const l=S1;return n(),s("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-primary-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:i},[p(l,{placeholder:"..."},{default:I(()=>[t(o).preference==="dark"?(n(),s(k,{key:0},[$(L(r.$t("Sombre"))+" ",1),p(t(U1),{class:"h-5 w-5"})],64)):t(o).preference==="light"?(n(),s(k,{key:1},[$(L(r.$t("Clair"))+" ",1),p(t(V1),{class:"h-5 w-5"})],64)):(n(),s(k,{key:2},[$(L(r.$t("Système"))+" ",1),p(t(E1),{class:"h-5 w-5"})],64))]),_:1})])}}}),G1=v(W1,[["__file","ColorSwitcher.vue"]]),q1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},F1=e("g",{id:"logout_svg__Artboard-Copy-2","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M9.98487953,0 C11.8560257,0 13.4043588,1.42168258 13.4043588,3.21809065 L13.4043588,6.98581807 C13.4043588,7.51460542 12.975692,7.94327227 12.4469046,7.94327227 C11.9181173,7.94327227 11.4894504,7.51460542 11.4894504,6.98581807 L11.4894504,3.21809065 C11.4894504,2.51746865 10.8332111,1.9149084 9.98487953,1.9149084 L3.41947929,1.9149084 C2.57114768,1.9149084 1.9149084,2.51746865 1.9149084,3.21809065 L1.9149084,16.7819093 C1.9149084,17.4825314 2.57114768,18.0850916 3.41947929,18.0850916 L9.98487953,18.0850916 C10.8332111,18.0850916 11.4894504,17.4825314 11.4894504,16.7819093 L11.4894504,13.0141819 C11.4894504,12.4853946 11.9181173,12.0567277 12.4469046,12.0567277 C12.975692,12.0567277 13.4043588,12.4853946 13.4043588,13.0141819 L13.4043588,16.7819093 C13.4043588,18.5783174 11.8560257,20 9.98487953,20 L3.41947929,20 C1.54833308,20 0,18.5783174 0,16.7819093 L0,3.21809065 C0,1.42168258 1.54833308,0 3.41947929,0 L9.98487953,0 Z M7.67529927,6.11524086 C8.05400191,5.74618751 8.66017791,5.75400981 9.02923126,6.13271245 C9.39828461,6.51141509 9.39046231,7.11759109 9.01175967,7.48664444 L7.41452534,9.04165036 L19.0123049,9.0425458 C19.5004163,9.0425458 19.9032179,9.40780039 19.9622991,9.87989898 L19.9697591,10 C19.9697591,10.5287874 19.5410922,10.9574542 19.0123049,10.9574542 L7.41452534,10.9565588 L9.01175967,12.5133556 C9.35890376,12.8516545 9.39440534,13.3892023 9.11364649,13.7681417 L9.02923126,13.8672876 C8.66017791,14.2459902 8.05400191,14.2538125 7.67529927,13.8847591 L4.39259915,10.6857018 L4.38349889,10.676435 L4.37512756,10.6682302 L4.36270846,10.6534561 L4.34501477,10.6358834 L4.32331606,10.6085926 L4.30565363,10.5887673 L4.29486599,10.5735771 L4.28611212,10.5615405 L4.27491902,10.5470142 L4.25000242,10.5068288 L4.23418228,10.4835658 L4.22921199,10.4729076 L4.22197943,10.4620737 L4.18763112,10.3908401 L4.17820591,10.3717106 L4.17559455,10.3645785 L4.16782272,10.3460503 C4.14007661,10.2744993 4.12068195,10.1987841 4.11083508,10.120101 L4.10994055,10.1139991 L4.10665785,10.052722 L4.10345486,10.0123543 L4.10446938,10.0001988 L4.10345486,9.98764572 L4.10665785,9.94548713 L4.10966658,9.89001588 L4.10994055,9.88530429 L4.11212902,9.86998503 L4.11978865,9.83059263 L4.13261669,9.76424979 L4.13620215,9.75180782 L4.14605025,9.72007505 L4.16782272,9.6539497 L4.17559455,9.63472485 L4.18872535,9.60627478 L4.21555592,9.54989595 L4.21936389,9.54280925 L4.22702352,9.52967845 L4.23418228,9.5164342 L4.25219089,9.48700335 L4.27491902,9.45298582 L4.28611212,9.43557438 L4.29486599,9.42463204 L4.30565363,9.41123274 L4.32112759,9.39180504 L4.34501477,9.36411655 L4.36817963,9.33928184 L4.38349889,9.32286834 L4.39259915,9.31429821 L7.67529927,6.11524086 Z",id:"logout_svg__Shape","fill-rule":"nonzero"})],-1),J1=[F1];function K1(d,o){return n(),s("svg",q1,J1)}const Q1={render:K1},X1={key:0,class:"absolute right-0 top-full flex w-64 min-w-full translate-y-2 flex-col gap-6 rounded border border-gray-100 bg-white p-4 dark:border-gray-800 dark:bg-gray-900"},e0={class:"flex flex-col gap-2"},t0={class:"border-b pb-2 dark:border-gray-800"},o0={class:"text-xs font-bold uppercase opacity-80"},n0={key:0,class:"mt-1 block text-2xl font-black tabular-nums leading-[1]"},s0=w({__name:"UserMenu",props:{is_open:{type:Boolean,default:!1}},emits:["update:is_open"],setup(d,{emit:o}){const i=P(),{logout:r}=i,u=R(),l=T();A(()=>l.name,()=>{o("update:is_open",!1)});function a(){o("update:is_open",!1)}return(_,C)=>{const c=k1,x=G1,y=D("on-click-outside");return n(),h(N,{"enter-active-class":"transition transform origin-top-right ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition transform origin-top-right ease-in duration-200","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:I(()=>[_.is_open?O((n(),s("div",X1,[e("div",e0,[e("div",t0,[e("div",o0,L(_.$t("Bonjour")),1),t(u)?(n(),s("div",n0,L(t(u).displayName),1)):S("",!0)]),p(c),p(x),e("button",{class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-red-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-red-400 focus:outline-none focus:ring active:bg-red-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",type:"button",onClick:C[0]||(C[0]=(...f)=>t(r)&&t(r)(...f))},[$(L(_.$t("Déconnexion"))+" ",1),p(t(Q1),{class:"h-5 w-5"})])])])),[[y,a,void 0,{bubble:!0}]]):S("",!0)]),_:1})}}}),r0=v(s0,[["__file","UserMenu.vue"]]),a0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},i0=e("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1),l0=[i0];function c0(d,o){return n(),s("svg",a0,l0)}const d0={render:c0},u0={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_0=e("g",{id:"clock_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"clock_svg__Group","fill-rule":"nonzero"},[e("path",{d:"M10,0 C15.5228475,0 20,4.47715245 20,10 C20,13.5726558 18.0940108,16.873926 15,18.660254 C11.9059893,20.4465819 8.09401074,20.4465819 5,18.660254 C1.90598923,16.873926 0,13.5726558 0,10 C0,4.47715245 4.47715251,0 10,0 Z M10,2 C5.58172201,2 2,5.58172195 2,10 C2,12.8581246 3.52479138,15.4991408 6,16.9282032 C8.4752086,18.3572655 11.5247914,18.3572655 14,16.9282032 C16.4752086,15.4991408 18,12.8581246 18,10 C18,5.58172195 14.418278,2 10,2 Z M10,4.99999981 C10.5522847,4.99999981 11,5.44771506 11,5.99999981 L11,9.58499981 L13.7071068,12.292893 C14.0675907,12.653377 14.0953203,13.220608 13.7902954,13.6128993 L13.7071068,13.7071066 C13.3165825,14.0976309 12.6834175,14.0976309 12.2928932,13.7071066 L9.29289322,10.7071066 C9.10535684,10.5195702 9,10.2652163 9,9.99999981 L9,5.99999981 C9,5.44771506 9.44771525,4.99999981 10,4.99999981 Z",id:"clock_svg__Combined-Shape"})])],-1),p0=[_0];function L0(d,o){return n(),s("svg",u0,p0)}const C0={render:L0},g0={viewBox:"0 0 18 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},f0=e("g",{id:"user_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"user_svg__user",transform:"translate(0.7498, 0.75)","fill-rule":"nonzero"},[e("path",{d:"M8.49930622,10.4904704 C13.1395776,10.4904704 16.922393,14.2119494 16.9984963,18.8518362 C17.0045898,19.2486142 16.7757868,19.6116118 16.4151161,19.7769937 C13.9314653,20.9158468 11.2305868,21.5037078 8.49930622,21.5000675 C5.74557973,21.5000675 3.05815087,20.9129719 0.583116998,19.7768196 C0.222653024,19.6113504 -0.00597493482,19.2484628 0.000118881152,18.8516597 C0.0762194361,14.2119494 3.85903483,10.4904704 8.49930622,10.4904704 Z M8.49711636,12.49 L8.26457644,12.4946508 C5.06964755,12.6086035 2.42353247,15.0393635 2.04571515,18.2106845 L2.04311636,18.228 L2.30854626,18.337705 C3.96831295,18.9872584 5.72032656,19.3695386 7.51221175,19.4719133 L8.00185692,19.4928843 L8.50065391,19.5000638 C10.6165363,19.5028772 12.7134529,19.1091668 14.6794614,18.3414755 L14.9551164,18.228 L14.9532462,18.2137771 C14.5850421,15.1229914 12.0612875,12.726181 8.96832549,12.5069686 L8.72930938,12.4944262 L8.49711636,12.49 Z M8.49930622,0 C11.1226588,0 13.2493062,2.12664744 13.2493062,4.75 C13.2493062,7.37335256 11.1226588,9.5 8.49930622,9.5 C5.87595366,9.5 3.74930622,7.37335256 3.74930622,4.75 C3.74930622,2.12664744 5.87595366,0 8.49930622,0 Z M8.49930622,2 C6.98052316,2 5.74930622,3.23121694 5.74930622,4.75 C5.74930622,6.26878306 6.98052316,7.5 8.49930622,7.5 C10.0180893,7.5 11.2493062,6.26878306 11.2493062,4.75 C11.2493062,3.23121694 10.0180893,2 8.49930622,2 Z",id:"user_svg__Combined-Shape"})])],-1),m0=[f0];function h0(d,o){return n(),s("svg",g0,m0)}const v0={render:h0},w0={class:"fixed top-0 z-40 w-full border-b bg-white dark:border-gray-800 dark:bg-gray-900"},x0={class:"flex h-16 items-center justify-between px-4 lg:px-8"},y0={class:"relative flex items-center gap-1 sm:gap-2"},b0={class:"text-xl font-bold"},k0=w({__name:"AppHeader",setup(d){const o=R(),i=H(),{weekRemaining:r,selectedDay:u,menuOpened:l}=U(i),a=M(!1),_=M(!1);return(C,c)=>{var m,Z;const x=Y,y=m1,f=r0;return n(),s("header",w0,[e("div",x0,[e("button",{type:"button",class:"-m-2 flex rounded p-2 text-2xl font-black ring-primary-200 focus:outline-none focus:ring dark:ring-gray-600",onClick:c[0]||(c[0]=g=>u.value=C.$moment().format("YYYY-MM-DD"))},[p(x)]),e("div",y0,[e("button",{type:"button",class:"inline-flex h-10 flex-shrink-0 items-center justify-center gap-1 rounded bg-primary-500 px-2 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600 md:px-3",onClick:c[1]||(c[1]=j(g=>a.value=!t(a),["stop"]))},[p(t(C0),{class:"h-5"}),e("span",b0,L(t(r)),1)]),p(y,{is_open:t(a),"onUpdate:is_open":c[2]||(c[2]=g=>B(a)?a.value=g:null)},null,8,["is_open"]),e("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 bg-cover font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",style:t1({backgroundImage:`url('${(m=t(o))==null?void 0:m.photoURL}')`}),onClick:c[3]||(c[3]=j(g=>_.value=!t(_),["stop"]))},[(Z=t(o))!=null&&Z.photoURL?S("",!0):(n(),h(t(v0),{key:0,class:"h-6"}))],4),p(f,{is_open:t(_),"onUpdate:is_open":c[4]||(c[4]=g=>B(_)?_.value=g:null)},null,8,["is_open"]),e("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600 xl:hidden",onClick:c[5]||(c[5]=j(g=>l.value=!t(l),["stop"]))},[t(l)?(n(),h(t(d0),{key:1,class:"h-6 w-6"})):(n(),h(t(G),{key:0,class:"h-4 w-4"}))])])])])}}}),$0=v(k0,[["__file","AppHeader.vue"]]),M0={},Z0={class:"flex min-h-screen pt-16"};function S0(d,o){const i=$0;return n(),s(k,null,[p(i),e("main",Z0,[V(d.$slots,"default")])],64)}const U0=v(M0,[["render",S0],["__file","default.vue"]]);export{U0 as default}; diff --git a/_nuxt/default.fa8eb834.js b/_nuxt/default.fa8eb834.js new file mode 100644 index 0000000..55cce4f --- /dev/null +++ b/_nuxt/default.fa8eb834.js @@ -0,0 +1 @@ +import{_ as W}from"./Logo.09e938a8.js";import{I as Y,_ as G,a as q}from"./hamburger.040db4da.js";import{q as n,s,t as e,d as v,a5 as T,C as U,r as M,U as A,X as D,P as h,y as I,E as N,v as L,D as t,G as j,x as p,L as k,M as F,K as J,H as S,$ as O,_ as m,a6 as K,c as Q,z as $,o as X,a7 as e1,N as V,a8 as t1,a9 as R,J as B,Q as o1}from"./entry.2efdeb07.js";import{u as H}from"./index.bafef1ea.js";import{u as P}from"./auth.f7a3445a.js";const n1={viewBox:"0 0 69 69",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},s1=e("g",{id:"save_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"save_svg__np_save_4035705_000000","fill-rule":"nonzero"},[e("path",{d:"M66.72182,15.6248 L51.56272,1.8438 C50.27792,0.6719 48.53772,0.0079 46.7159,0 L6.875,0 C3.07659,0 0,2.7969 0,6.25 L0,62.5 C0,64.1562 0.726176,65.7461 2.0152,66.918 C3.304224,68.0899 5.05307,68.75 6.875,68.75 L61.875,68.75 C63.69682,68.75 65.44571,68.08984 66.7348,66.918 C68.02389,65.74616 68.75,64.1563 68.75,62.5 L68.75,20.031 C68.7414068,18.3748 68.010932,16.7927 66.72182,15.6248 L66.72182,15.6248 Z M24.06272,6.2498 L44.68772,6.2498 L44.68772,18.7498 L24.06272,18.7498 L24.06272,6.2498 Z M20.62522,62.4998 L20.62522,40.6248 L48.12522,40.6248 L48.12522,62.4998 L20.62522,62.4998 Z M55.00022,62.5 L55.00022,40.6248 C55.00022,38.9686 54.274044,37.3787 52.98502,36.2068 C51.695996,35.0349 49.94715,34.3748 48.12522,34.3748 L20.62522,34.3748 C16.82681,34.3748 13.75022,37.1717 13.75022,40.6248 L13.75022,62.5 L6.87522,62.5 L6.87522,6.2498 L17.18772,6.2498 L17.18772,18.7498 C17.18772,20.406 17.913896,21.9959 19.20292,23.1678 C20.491944,24.3397 22.24079,24.9998 24.06272,24.9998 L44.68772,24.9998 C46.50954,24.9998 48.25843,24.33964 49.54752,23.1678 C50.83661,21.99596 51.56272,20.4061 51.56272,18.7498 L51.56272,10.656 L61.87522,20.031 L61.87522,62.5 L55.00022,62.5 Z",id:"save_svg__Shape"})])],-1),r1=[s1];function a1(d,o){return n(),s("svg",n1,r1)}const i1={render:a1},l1={key:0,class:"absolute right-0 top-full flex w-64 min-w-full translate-y-2 flex-col gap-6 rounded border border-gray-100 bg-white p-4 dark:border-gray-800 dark:bg-gray-900"},c1={class:"flex flex-col gap-2"},d1={class:"flex items-end justify-between border-b pb-2 dark:border-gray-800"},u1={class:"text-xs font-bold uppercase opacity-80"},_1={key:0,class:"mt-1 block text-3xl font-bold tabular-nums"},p1={class:"flex flex-col gap-2"},L1={class:"text-xs font-bold uppercase group-first:opacity-70 group-last:opacity-70 group-first:dark:opacity-30 group-last:dark:opacity-30"},g1={class:"mt-2 flex items-end justify-between gap-8 border-t pt-2 dark:border-gray-800"},C1={class:"font-bold uppercase"},f1={class:"font-bold tabular-nums"},h1=v({__name:"WeekSummary",props:{is_open:{type:Boolean,default:!1}},emits:["update:is_open"],setup(d,{emit:o}){P();const r=H(),a=T(),{weekSummaryColors:u}=r,{weekSummary:l,weekTarget:c,weekTotal:_}=U(r),g=M(!1),i=M("");A(()=>a.name,()=>{o("update:is_open",!1)});function w(){g.value=!0,i.value=c.value}async function x(){await r.updateWeekTarget(i.value),g.value=!1}function y(){o("update:is_open",!1)}return(f,b)=>{const C=G,E=D("on-click-outside");return n(),h(O,{"enter-active-class":"transition transform origin-top-right ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition transform origin-top-right ease-in duration-200","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:I(()=>[f.is_open?N((n(),s("div",l1,[e("div",c1,[e("div",d1,[e("div",null,[e("div",u1,L(f.$t("Mon objectif")),1),t(g)?(n(),h(C,{key:1,class:"mt-1",modelValue:t(i),"onUpdate:modelValue":b[0]||(b[0]=Z=>j(i)?i.value=Z:null),mask:"99:99"},null,8,["modelValue"])):(n(),s("div",_1,L(t(c)),1))]),t(g)?(n(),s("button",{key:1,type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:x},[p(t(i1),{class:"h-5"})])):(n(),s("button",{key:0,type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:w},[p(t(Y),{class:"h-5"})]))]),e("div",p1,[(n(!0),s(k,null,F(Object.values(t(l)),(Z,z)=>(n(),s("div",{key:z,class:"group flex items-end justify-between gap-8"},[e("div",L1,L(f.$moment().day(z).format("dddd")),1),e("div",{class:J(["font-bold tabular-nums",t(u)(Z)])},L(Z),3)]))),128))]),e("div",g1,[e("div",C1,L(f.$t("Total")),1),e("div",f1,L(t(_)),1)])])])),[[E,y,void 0,{bubble:!0}]]):S("",!0)]),_:1})}}}),m1=m(h1,[["__file","WeekSummary.vue"]]),v1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},w1=e("g",{id:"language_svg__Artboard-Copy","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M9.99994982,20.0000009 C5.4409049,19.9997296 1.45868702,16.9171201 0.315887784,12.5036294 L0.313920435,12.4941765 L0.219086754,12.0914893 C0.102131532,11.541573 0.0316907561,10.9828384 0.00851136388,10.4214468 L3.55271368e-15,10.0000009 C3.55271368e-15,8.25664079 0.447319882,6.5757241 1.28618607,5.09035045 L1.44604756,4.81676117 C3.25398288,1.8319198 6.49533701,-0.00145955899 10.0003718,8.71859633e-07 L9.99898253,0.00101353032 L10.0010079,0.00101353032 L10.3175135,0.00490454043 C13.6997972,0.110711699 16.8008078,1.92236954 18.5539572,4.81676117 L18.7088549,5.08151923 C19.499243,6.48187536 19.9373904,8.0401147 19.9937898,9.63208525 L20.0000127,10.0000009 C20.0000127,10.8510744 19.8932004,11.6899056 19.6845297,12.5020295 L19.6860699,12.4941765 C18.5651261,16.8251724 14.7237932,19.8707099 10.2842237,19.9959855 L10.0000549,20.0000009 L9.99994982,20.0000009 Z M7.21417275,15.2394927 L7.24752336,15.3267026 C7.94843107,17.1100969 8.96659772,18.2278483 10.0000024,18.2278483 L10.1239185,18.222512 C11.1143528,18.1373632 12.07961,17.0387612 12.7524814,15.3267026 L12.784805,15.2405053 L12.4136206,15.2930985 C11.7750586,15.3737652 11.1314312,15.4221497 10.4851619,15.4376299 L10.0000024,15.4430608 C9.17936084,15.4430608 8.36615072,15.391255 7.56404442,15.2892073 L7.21417275,15.2394927 Z M17.1605006,14.0546827 L17.0699894,14.0925218 C16.4719021,14.3307132 15.8626904,14.5381771 15.2447778,14.7142915 L14.7908807,14.8364547 L14.7874593,14.8503162 C14.5392191,15.6988745 14.2257759,16.4733637 13.8563168,17.149458 L13.7610074,17.3184798 L13.9777312,17.2030221 C15.2404319,16.5054127 16.3091719,15.4822205 17.0604904,14.2290156 L17.1605006,14.0546827 Z M2.83948974,14.0556953 L2.93951437,14.2290156 C3.69083283,15.4822205 4.75957284,16.5054127 6.02227356,17.2030221 L6.23695768,17.3174671 L6.14368794,17.149458 C5.77422883,16.4733637 5.46078568,15.6988745 5.21254545,14.8503162 L5.20809705,14.8374674 L5.19470942,14.8339022 C4.41848318,14.6329345 3.65703316,14.3832888 2.91403176,14.086529 L2.83948974,14.0556953 Z M13.6313872,8.85265801 L13.3137463,8.9420251 C12.2397977,9.22380399 11.1265358,9.36871862 10.0000024,9.36710246 C8.85812646,9.36710246 7.73865697,9.21956526 6.66376519,8.93589878 L6.36759058,8.85265801 L6.3527383,9.09264686 C6.34235581,9.29101597 6.33531818,9.49167761 6.33178003,9.69440032 L6.32911676,10.0000012 C6.32911676,11.1259937 6.43731509,12.1931401 6.62798441,13.1629283 L6.66632472,13.34886 L7.06537011,13.4237498 C7.86620283,13.5601335 8.68108006,13.64085 9.5055719,13.6639672 L10.0013853,13.6709313 C10.9803933,13.6724382 11.9541326,13.5906846 12.9124743,13.4282603 L13.332653,13.3498726 L13.3720204,13.1629283 C13.5453561,12.2813027 13.650534,11.3192157 13.6682247,10.3056021 L13.670888,10.0000012 C13.670888,9.69291239 13.6628402,9.39020052 13.6472665,9.09264686 L13.6313872,8.85265801 Z M2.37366702,6.90329116 C1.97887564,7.87687631 1.7721481,8.92311196 1.7721481,10.0007855 C1.77153624,10.6956826 1.85878954,11.3878651 2.03183575,12.0608632 L1.9463253,11.690126 L2.03097024,11.7359037 C2.89208552,12.182265 3.78745888,12.5545865 4.70943541,12.8495295 L4.77467938,12.86886 L4.74666221,12.6840182 C4.63623348,11.9228178 4.57223834,11.1266678 4.55938051,10.3080231 L4.55696508,10.0000012 C4.55696508,9.48495511 4.57717027,8.97808786 4.61643227,8.48244021 L4.63898319,8.21670872 L4.57998785,8.19044022 C3.90958723,7.88370555 3.26556819,7.51984909 2.6545,7.10225098 L2.37366702,6.90329116 Z M17.6263234,6.90430382 L17.3381425,7.10788008 C16.7229308,7.52759028 16.0748147,7.89220024 15.40151,8.19884579 L15.3599945,8.21670872 L15.3835725,8.48244021 C15.4149821,8.87895833 15.4341953,9.28265699 15.4406243,9.69197935 L15.4430397,10.0000012 C15.4430397,10.9270843 15.3775749,11.8276677 15.2533426,12.6840182 L15.2242983,12.86886 L15.2703888,12.8556471 C16.196034,12.5605852 17.0978408,12.1870287 17.9656804,11.7375886 L18.0526524,11.690126 L18.0611073,11.6572984 C18.1439576,11.2510853 18.1963315,10.8376 18.2173407,10.4189238 L18.2278725,9.99859435 C18.2295464,8.93779494 18.0250811,7.89024295 17.6294435,6.913132 L17.6263234,6.90430382 Z M9.8760863,1.77749042 C8.51423914,1.89457011 7.19999236,3.92770965 6.62798441,6.83707415 L6.58429941,7.06632912 L6.87586224,7.15606858 C7.76657043,7.41244065 8.69503567,7.55981171 9.64434028,7.58939599 L10.0012733,7.59496324 C11.0591514,7.59646905 12.1033202,7.44848116 13.104965,7.16170852 L13.4146783,7.06734177 L13.3720204,6.83707415 C12.8000124,3.92770965 11.4857656,1.89457011 10.1239185,1.77749042 L10.0000024,1.77215414 L9.8760863,1.77749042 Z M6.23695768,2.68253219 L6.09753598,2.7548637 C5.00253235,3.3444018 4.04300548,4.1809609 3.30460148,5.21450523 L3.22429982,5.32962047 L3.45982353,5.50313331 C3.8372692,5.77289042 4.22996958,6.0184174 4.63580996,6.23861601 L4.90936291,6.38177224 L4.94654253,6.20195264 C5.21899372,4.9364625 5.62644519,3.79707656 6.14368794,2.85054443 L6.23695768,2.68253219 Z M13.76202,2.68253219 L13.8563168,2.85054443 C14.3735596,3.79707656 14.781011,4.9364625 15.0534622,6.20195264 L15.0896148,6.38075958 L15.3514051,6.24574777 C15.759434,6.02522562 16.1546361,5.77893625 16.5344817,5.50782081 L16.7746779,5.32962047 L16.6954033,5.21450523 C15.9569993,4.1809609 14.9974724,3.3444018 13.9024688,2.7548637 L13.76202,2.68253219 Z",id:"language_svg__Shape","fill-rule":"nonzero"})],-1),x1=[w1];function y1(d,o){return n(),s("svg",v1,x1)}const b1={render:y1},k1=v({__name:"LanguageSwitcher",setup(d){const{locale:o,locales:r,setLocale:a}=K(),u=Q(()=>{const l=r.value.findIndex(_=>_.code===o.value),c=l!==r.value.length-1?l+1:0;return r.value.at(c)});return(l,c)=>(n(),s("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-primary-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:c[0]||(c[0]=_=>t(a)(t(u).code))},[$(L(t(u).name)+" ",1),p(t(b1),{class:"h-5 w-5"})]))}}),$1=m(k1,[["__file","LanguageSwitcher.vue"]]),M1=v({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(d,{slots:o,attrs:r}){const a=M(!1);return X(()=>{a.value=!0}),u=>{var g;if(a.value)return(g=o.default)==null?void 0:g.call(o);const l=o.fallback||o.placeholder;if(l)return l();const c=u.fallback||u.placeholder||"",_=u.fallbackTag||u.placeholderTag||"span";return s(_,r,c)}}}),Z1={name:e1,props:{placeholder:String,tag:{type:String,default:"span"}}};function S1(d,o,r,a,u,l){const c=M1;return n(),h(c,{placeholder:r.placeholder,"placeholder-tag":r.tag},{default:I(()=>[V(d.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const I1=m(Z1,[["render",S1],["__file","component.vue3.vue"]]),B1=()=>t1("color-mode").value,j1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},z1=e("g",{id:"moon_svg__Artboard-Copy-4","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M6.37530016,0.0682308493 C7.07901057,-0.225334742 7.78518704,0.480930655 7.49153285,1.18460409 C7.05518621,2.2302065 6.82777017,3.35584862 6.82777017,4.51559498 C6.82777017,9.29674187 10.7032605,13.1722322 15.4855648,13.1722329 C16.628647,13.1737831 17.7606364,12.9481093 18.8157348,12.5083291 C19.5193711,12.2150434 20.2252693,12.9211543 19.9317715,13.6247022 C18.3210146,17.4858712 14.547185,20.0003602 10.3635797,20 C4.6397145,20 0,15.3602878 0,9.63649562 C-0.000357876646,5.45281738 2.51413116,1.67898771 6.37530016,0.0682308493 Z M5.29542347,2.61552408 L5.10797802,2.7549784 C2.9970027,4.36834315 1.70670823,6.8972007 1.70694254,9.63642261 C1.70694254,14.4175695 5.58243284,18.2930598 10.3636527,18.2930598 C13.1028174,18.2932941 15.6316626,17.0029996 17.2450247,14.8920243 L17.3835029,14.7026281 L17.1152305,14.7517565 C16.7115396,14.815771 16.3038779,14.8558541 15.8944045,14.8715816 L15.4844074,14.8791747 C9.76054213,14.8791747 5.12082763,10.2394602 5.12082763,4.51559498 C5.12082763,3.96103262 5.16443395,3.41245682 5.25022648,2.8736174 L5.29542347,2.61552408 Z",id:"moon_svg__Path","fill-rule":"nonzero"})],-1),T1=[z1];function U1(d,o){return n(),s("svg",j1,T1)}const A1={render:U1},D1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},N1=e("g",{id:"sun_svg__Artboard-Copy-3","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M10,15.9493671 C10.4893662,15.9493671 10.8860759,16.3460768 10.8860759,16.835443 L10.8860759,19.1139241 C10.8860759,19.6032903 10.4893662,20 10,20 C9.51063377,20 9.11392405,19.6032903 9.11392405,19.1139241 L9.11392405,16.835443 C9.11392405,16.3460768 9.51063377,15.9493671 10,15.9493671 Z M14.2068674,14.2068674 C14.5529016,13.8608332 15.1139339,13.8608332 15.459968,14.2068674 L17.0711073,15.8180066 C17.4171415,16.1640408 17.4171415,16.7250731 17.0711073,17.0711073 C16.7250731,17.4171415 16.1640408,17.4171415 15.8180066,17.0711073 L14.2068674,15.459968 C13.8608332,15.1139339 13.8608332,14.5529016 14.2068674,14.2068674 Z M4.54003197,14.2068674 C4.88606615,13.8608332 5.44709841,13.8608332 5.79313259,14.2068674 C6.13916677,14.5529016 6.13916677,15.1139339 5.79313259,15.459968 L4.18199335,17.0711073 C3.83595917,17.4171415 3.27492691,17.4171415 2.92889273,17.0711073 C2.58285854,16.7250731 2.58285854,16.1640408 2.92889273,15.8180066 L4.54003197,14.2068674 Z M10,5.3164557 C12.5866501,5.3164557 14.6835443,7.41334991 14.6835443,10 C14.6835443,12.5866501 12.5866501,14.6835443 10,14.6835443 C7.41334991,14.6835443 5.3164557,12.5866501 5.3164557,10 C5.3164557,7.41334991 7.41334991,5.3164557 10,5.3164557 Z M10,7.08860759 C8.39208237,7.08860759 7.08860759,8.39208237 7.08860759,10 C7.08860759,11.6079176 8.39208237,12.9113924 10,12.9113924 C11.6079176,12.9113924 12.9113924,11.6079176 12.9113924,10 C12.9113924,8.39208237 11.6079176,7.08860759 10,7.08860759 Z M19.1139241,9.11392405 C19.6032903,9.11392405 20,9.51063377 20,10 C20,10.4893662 19.6032903,10.8860759 19.1139241,10.8860759 L16.835443,10.8860759 C16.3460768,10.8860759 15.9493671,10.4893662 15.9493671,10 C15.9493671,9.51063377 16.3460768,9.11392405 16.835443,9.11392405 L19.1139241,9.11392405 Z M3.16455696,9.11392405 C3.6539232,9.11392405 4.05063291,9.51063377 4.05063291,10 C4.05063291,10.4893662 3.6539232,10.8860759 3.16455696,10.8860759 L0.886075949,10.8860759 C0.396709715,10.8860759 0,10.4893662 0,10 C0,9.51063377 0.396709715,9.11392405 0.886075949,9.11392405 L3.16455696,9.11392405 Z M15.8180066,2.92889273 C16.1640408,2.58285854 16.7250731,2.58285854 17.0711073,2.92889273 C17.4171415,3.27492691 17.4171415,3.83595917 17.0711073,4.18199335 L15.459968,5.79313259 C15.1139339,6.13916677 14.5529016,6.13916677 14.2068674,5.79313259 C13.8608332,5.44709841 13.8608332,4.88606615 14.2068674,4.54003197 L15.8180066,2.92889273 Z M2.92889273,2.92889273 C3.27492691,2.58285854 3.83595917,2.58285854 4.18199335,2.92889273 L5.79313259,4.54003197 C6.13916677,4.88606615 6.13916677,5.44709841 5.79313259,5.79313259 C5.44709841,6.13916677 4.88606615,6.13916677 4.54003197,5.79313259 L2.92889273,4.18199335 C2.58285854,3.83595917 2.58285854,3.27492691 2.92889273,2.92889273 Z M10,0 C10.4893662,0 10.8860759,0.396709715 10.8860759,0.886075949 L10.8860759,3.16455696 C10.8860759,3.6539232 10.4893662,4.05063291 10,4.05063291 C9.51063377,4.05063291 9.11392405,3.6539232 9.11392405,3.16455696 L9.11392405,0.886075949 C9.11392405,0.396709715 9.51063377,0 10,0 Z",id:"sun_svg__Shape","fill-rule":"nonzero"})],-1),O1=[N1];function V1(d,o){return n(),s("svg",D1,O1)}const R1={render:V1},H1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},P1=e("g",{id:"computer_svg__Artboard-Copy-5","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M16.835443,0 C18.5831796,0 20,1.41682041 20,3.16455696 L20,13.0379747 C20,14.7857112 18.5831796,16.2025316 16.835443,16.2025316 L13.923038,16.2025316 L13.9240506,16.3363087 C13.9239898,16.843794 14.1031923,17.3328114 14.426658,17.7187732 L14.5546516,17.858513 L15.1835123,18.4873737 C15.7417091,19.0455705 15.3463714,20 14.556962,20 L5.44303797,20 C4.65362861,20 4.25829095,19.0455705 4.81648766,18.4873737 L5.44544304,17.8584184 C5.84920608,17.4547773 6.07601776,16.9072296 6.07594937,16.3362025 L6.07594937,16.2025316 L3.16455696,16.2025316 C1.47708719,16.2025316 0.0981052319,14.8817383 0.00500953182,13.2175501 L0,13.0379747 L0,3.16455696 L0.00500953182,2.98498159 C0.0981052319,1.32079334 1.47708719,0 3.16455696,0 L16.835443,0 Z M12.1518987,16.2025316 L7.84708861,16.2025316 L7.84810126,16.3360964 C7.848178,16.9767679 7.69157878,17.6012985 7.39954357,18.1584439 L7.36,18.2278481 L12.6389873,18.2278481 L12.6004785,18.158472 C12.3449284,17.6709589 12.1930883,17.1318828 12.1591727,16.575575 L12.1518987,16.3362025 L12.1518987,16.2025316 Z M18.2278481,12.841519 L18.1835012,12.8638938 C17.7745288,13.0567371 17.3175773,13.164557 16.835443,13.164557 L3.16455696,13.164557 C2.68242274,13.164557 2.2254712,13.0567371 1.8164988,12.8638938 L1.7721519,12.841519 L1.7721519,13.0379747 C1.7721519,13.7617432 2.32436868,14.3565346 3.03045906,14.4240057 L3.16455696,14.4303797 L16.835443,14.4303797 C17.6044471,14.4303797 18.2278481,13.8069788 18.2278481,13.0379747 L18.2278481,12.841519 Z M16.835443,1.7721519 L3.16455696,1.7721519 C2.39555288,1.7721519 1.7721519,2.39555288 1.7721519,3.16455696 L1.7721519,10 C1.7721519,10.7690041 2.39555288,11.3924051 3.16455696,11.3924051 L16.835443,11.3924051 C17.6044471,11.3924051 18.2278481,10.7690041 18.2278481,10 L18.2278481,3.16455696 L18.2214741,3.03045906 C18.154003,2.32436868 17.5592116,1.7721519 16.835443,1.7721519 Z",id:"computer_svg__Shape","fill-rule":"nonzero"})],-1),E1=[P1];function W1(d,o){return n(),s("svg",H1,E1)}const Y1={render:W1},G1=v({__name:"ColorSwitcher",setup(d){const o=B1(),r=()=>{const a=["system","light","dark"],l=(a.indexOf(o.preference)+1)%a.length;o.preference=a[l]};return(a,u)=>{const l=I1;return n(),s("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-primary-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:r},[p(l,{placeholder:"..."},{default:I(()=>[t(o).preference==="dark"?(n(),s(k,{key:0},[$(L(a.$t("Sombre"))+" ",1),p(t(A1),{class:"h-5 w-5"})],64)):t(o).preference==="light"?(n(),s(k,{key:1},[$(L(a.$t("Clair"))+" ",1),p(t(R1),{class:"h-5 w-5"})],64)):(n(),s(k,{key:2},[$(L(a.$t("Système"))+" ",1),p(t(Y1),{class:"h-5 w-5"})],64))]),_:1})])}}}),q1=m(G1,[["__file","ColorSwitcher.vue"]]),F1={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},J1=e("g",{id:"logout_svg__Artboard-Copy-2","stroke-width":"1","fill-rule":"evenodd"},[e("path",{d:"M9.98487953,0 C11.8560257,0 13.4043588,1.42168258 13.4043588,3.21809065 L13.4043588,6.98581807 C13.4043588,7.51460542 12.975692,7.94327227 12.4469046,7.94327227 C11.9181173,7.94327227 11.4894504,7.51460542 11.4894504,6.98581807 L11.4894504,3.21809065 C11.4894504,2.51746865 10.8332111,1.9149084 9.98487953,1.9149084 L3.41947929,1.9149084 C2.57114768,1.9149084 1.9149084,2.51746865 1.9149084,3.21809065 L1.9149084,16.7819093 C1.9149084,17.4825314 2.57114768,18.0850916 3.41947929,18.0850916 L9.98487953,18.0850916 C10.8332111,18.0850916 11.4894504,17.4825314 11.4894504,16.7819093 L11.4894504,13.0141819 C11.4894504,12.4853946 11.9181173,12.0567277 12.4469046,12.0567277 C12.975692,12.0567277 13.4043588,12.4853946 13.4043588,13.0141819 L13.4043588,16.7819093 C13.4043588,18.5783174 11.8560257,20 9.98487953,20 L3.41947929,20 C1.54833308,20 0,18.5783174 0,16.7819093 L0,3.21809065 C0,1.42168258 1.54833308,0 3.41947929,0 L9.98487953,0 Z M7.67529927,6.11524086 C8.05400191,5.74618751 8.66017791,5.75400981 9.02923126,6.13271245 C9.39828461,6.51141509 9.39046231,7.11759109 9.01175967,7.48664444 L7.41452534,9.04165036 L19.0123049,9.0425458 C19.5004163,9.0425458 19.9032179,9.40780039 19.9622991,9.87989898 L19.9697591,10 C19.9697591,10.5287874 19.5410922,10.9574542 19.0123049,10.9574542 L7.41452534,10.9565588 L9.01175967,12.5133556 C9.35890376,12.8516545 9.39440534,13.3892023 9.11364649,13.7681417 L9.02923126,13.8672876 C8.66017791,14.2459902 8.05400191,14.2538125 7.67529927,13.8847591 L4.39259915,10.6857018 L4.38349889,10.676435 L4.37512756,10.6682302 L4.36270846,10.6534561 L4.34501477,10.6358834 L4.32331606,10.6085926 L4.30565363,10.5887673 L4.29486599,10.5735771 L4.28611212,10.5615405 L4.27491902,10.5470142 L4.25000242,10.5068288 L4.23418228,10.4835658 L4.22921199,10.4729076 L4.22197943,10.4620737 L4.18763112,10.3908401 L4.17820591,10.3717106 L4.17559455,10.3645785 L4.16782272,10.3460503 C4.14007661,10.2744993 4.12068195,10.1987841 4.11083508,10.120101 L4.10994055,10.1139991 L4.10665785,10.052722 L4.10345486,10.0123543 L4.10446938,10.0001988 L4.10345486,9.98764572 L4.10665785,9.94548713 L4.10966658,9.89001588 L4.10994055,9.88530429 L4.11212902,9.86998503 L4.11978865,9.83059263 L4.13261669,9.76424979 L4.13620215,9.75180782 L4.14605025,9.72007505 L4.16782272,9.6539497 L4.17559455,9.63472485 L4.18872535,9.60627478 L4.21555592,9.54989595 L4.21936389,9.54280925 L4.22702352,9.52967845 L4.23418228,9.5164342 L4.25219089,9.48700335 L4.27491902,9.45298582 L4.28611212,9.43557438 L4.29486599,9.42463204 L4.30565363,9.41123274 L4.32112759,9.39180504 L4.34501477,9.36411655 L4.36817963,9.33928184 L4.38349889,9.32286834 L4.39259915,9.31429821 L7.67529927,6.11524086 Z",id:"logout_svg__Shape","fill-rule":"nonzero"})],-1),K1=[J1];function Q1(d,o){return n(),s("svg",F1,K1)}const X1={render:Q1},e0={key:0,class:"absolute right-0 top-full flex w-64 min-w-full translate-y-2 flex-col gap-6 rounded border border-gray-100 bg-white p-4 dark:border-gray-800 dark:bg-gray-900"},t0={class:"flex flex-col gap-2"},o0={class:"border-b pb-2 dark:border-gray-800"},n0={class:"text-xs font-bold uppercase opacity-80"},s0={key:0,class:"mt-1 block text-2xl font-black tabular-nums leading-[1]"},r0=v({__name:"UserMenu",props:{is_open:{type:Boolean,default:!1}},emits:["update:is_open"],setup(d,{emit:o}){const r=P(),{logout:a}=r,u=R(),l=T();A(()=>l.name,()=>{o("update:is_open",!1)});function c(){o("update:is_open",!1)}return(_,g)=>{const i=$1,w=q1,x=D("on-click-outside");return n(),h(O,{"enter-active-class":"transition transform origin-top-right ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition transform origin-top-right ease-in duration-200","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:I(()=>[_.is_open?N((n(),s("div",e0,[e("div",t0,[e("div",o0,[e("div",n0,L(_.$t("Bonjour")),1),t(u)?(n(),s("div",s0,L(t(u).displayName),1)):S("",!0)]),p(i),p(w),e("button",{class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded bg-red-500 px-3 py-2 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-red-400 focus:outline-none focus:ring active:bg-red-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",type:"button",onClick:g[0]||(g[0]=(...y)=>t(a)&&t(a)(...y))},[$(L(_.$t("Déconnexion"))+" ",1),p(t(X1),{class:"h-5 w-5"})])])])),[[x,c,void 0,{bubble:!0}]]):S("",!0)]),_:1})}}}),a0=m(r0,[["__file","UserMenu.vue"]]),i0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},l0=e("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1),c0=[l0];function d0(d,o){return n(),s("svg",i0,c0)}const u0={render:d0},_0={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},p0=e("g",{id:"clock_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"clock_svg__Group","fill-rule":"nonzero"},[e("path",{d:"M10,0 C15.5228475,0 20,4.47715245 20,10 C20,13.5726558 18.0940108,16.873926 15,18.660254 C11.9059893,20.4465819 8.09401074,20.4465819 5,18.660254 C1.90598923,16.873926 0,13.5726558 0,10 C0,4.47715245 4.47715251,0 10,0 Z M10,2 C5.58172201,2 2,5.58172195 2,10 C2,12.8581246 3.52479138,15.4991408 6,16.9282032 C8.4752086,18.3572655 11.5247914,18.3572655 14,16.9282032 C16.4752086,15.4991408 18,12.8581246 18,10 C18,5.58172195 14.418278,2 10,2 Z M10,4.99999981 C10.5522847,4.99999981 11,5.44771506 11,5.99999981 L11,9.58499981 L13.7071068,12.292893 C14.0675907,12.653377 14.0953203,13.220608 13.7902954,13.6128993 L13.7071068,13.7071066 C13.3165825,14.0976309 12.6834175,14.0976309 12.2928932,13.7071066 L9.29289322,10.7071066 C9.10535684,10.5195702 9,10.2652163 9,9.99999981 L9,5.99999981 C9,5.44771506 9.44771525,4.99999981 10,4.99999981 Z",id:"clock_svg__Combined-Shape"})])],-1),L0=[p0];function g0(d,o){return n(),s("svg",_0,L0)}const C0={render:g0},f0={viewBox:"0 0 18 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},h0=e("g",{id:"user_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[e("g",{id:"user_svg__user",transform:"translate(0.7498, 0.75)","fill-rule":"nonzero"},[e("path",{d:"M8.49930622,10.4904704 C13.1395776,10.4904704 16.922393,14.2119494 16.9984963,18.8518362 C17.0045898,19.2486142 16.7757868,19.6116118 16.4151161,19.7769937 C13.9314653,20.9158468 11.2305868,21.5037078 8.49930622,21.5000675 C5.74557973,21.5000675 3.05815087,20.9129719 0.583116998,19.7768196 C0.222653024,19.6113504 -0.00597493482,19.2484628 0.000118881152,18.8516597 C0.0762194361,14.2119494 3.85903483,10.4904704 8.49930622,10.4904704 Z M8.49711636,12.49 L8.26457644,12.4946508 C5.06964755,12.6086035 2.42353247,15.0393635 2.04571515,18.2106845 L2.04311636,18.228 L2.30854626,18.337705 C3.96831295,18.9872584 5.72032656,19.3695386 7.51221175,19.4719133 L8.00185692,19.4928843 L8.50065391,19.5000638 C10.6165363,19.5028772 12.7134529,19.1091668 14.6794614,18.3414755 L14.9551164,18.228 L14.9532462,18.2137771 C14.5850421,15.1229914 12.0612875,12.726181 8.96832549,12.5069686 L8.72930938,12.4944262 L8.49711636,12.49 Z M8.49930622,0 C11.1226588,0 13.2493062,2.12664744 13.2493062,4.75 C13.2493062,7.37335256 11.1226588,9.5 8.49930622,9.5 C5.87595366,9.5 3.74930622,7.37335256 3.74930622,4.75 C3.74930622,2.12664744 5.87595366,0 8.49930622,0 Z M8.49930622,2 C6.98052316,2 5.74930622,3.23121694 5.74930622,4.75 C5.74930622,6.26878306 6.98052316,7.5 8.49930622,7.5 C10.0180893,7.5 11.2493062,6.26878306 11.2493062,4.75 C11.2493062,3.23121694 10.0180893,2 8.49930622,2 Z",id:"user_svg__Combined-Shape"})])],-1),m0=[h0];function v0(d,o){return n(),s("svg",f0,m0)}const w0={render:v0},x0={class:"fixed top-0 z-40 w-full border-b bg-white dark:border-gray-800 dark:bg-gray-900"},y0={class:"flex h-16 items-center justify-between px-4 lg:px-8"},b0={class:"relative flex items-center gap-1 sm:gap-2"},k0={class:"text-xl font-bold"},$0=v({__name:"AppHeader",setup(d){const o=R(),r=H(),{weekRemaining:a,selectedDay:u,menuOpened:l}=U(r),c=M(!1),_=M(!1);return(g,i)=>{var f,b;const w=W,x=m1,y=a0;return n(),s("header",x0,[e("div",y0,[e("button",{type:"button",class:"-m-2 flex rounded p-2 text-2xl font-black ring-primary-200 focus:outline-none focus:ring dark:ring-gray-600",onClick:i[0]||(i[0]=C=>u.value=g.$moment().format("YYYY-MM-DD"))},[p(w)]),e("div",b0,[e("button",{type:"button",class:"inline-flex h-10 flex-shrink-0 items-center justify-center gap-1 rounded bg-primary-500 px-2 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600 md:px-3",onClick:i[1]||(i[1]=B(C=>c.value=!t(c),["stop"]))},[p(t(C0),{class:"h-5"}),e("span",k0,L(t(a)),1)]),p(x,{is_open:t(c),"onUpdate:is_open":i[2]||(i[2]=C=>j(c)?c.value=C:null)},null,8,["is_open"]),e("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 bg-cover font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",style:o1({backgroundImage:`url('${(f=t(o))==null?void 0:f.photoURL}')`}),onClick:i[3]||(i[3]=B(C=>_.value=!t(_),["stop"]))},[(b=t(o))!=null&&b.photoURL?S("",!0):(n(),h(t(w0),{key:0,class:"h-6"}))],4),p(y,{is_open:t(_),"onUpdate:is_open":i[4]||(i[4]=C=>j(_)?_.value=C:null)},null,8,["is_open"]),e("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600 xl:hidden",onClick:i[5]||(i[5]=B(C=>l.value=!t(l),["stop"]))},[t(l)?(n(),h(t(u0),{key:1,class:"h-6 w-6"})):(n(),h(t(q),{key:0,class:"h-4 w-4"}))])])])])}}}),M0=m($0,[["__file","AppHeader.vue"]]),Z0={},S0={class:"flex min-h-screen pt-16"};function I0(d,o){const r=M0;return n(),s(k,null,[p(r),e("main",S0,[V(d.$slots,"default")])],64)}const A0=m(Z0,[["render",I0],["__file","default.vue"]]);export{A0 as default}; diff --git a/_nuxt/entry.ffb9f67d.js b/_nuxt/entry.2efdeb07.js similarity index 74% rename from _nuxt/entry.ffb9f67d.js rename to _nuxt/entry.2efdeb07.js index cab76de..a17ded8 100644 --- a/_nuxt/entry.ffb9f67d.js +++ b/_nuxt/entry.2efdeb07.js @@ -1,4 +1,4 @@ -function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const pt={},ia=[],br=()=>{},IN=()=>!1,kN=/^on[^a-z]/,$c=t=>kN.test(t),H_=t=>t.startsWith("onUpdate:"),jt=Object.assign,W_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},SN=Object.prototype.hasOwnProperty,Ke=(t,e)=>SN.call(t,e),we=Array.isArray,oa=t=>Ha(t)==="[object Map]",$a=t=>Ha(t)==="[object Set]",Z0=t=>Ha(t)==="[object Date]",CN=t=>Ha(t)==="[object RegExp]",ke=t=>typeof t=="function",kt=t=>typeof t=="string",oc=t=>typeof t=="symbol",ot=t=>t!==null&&typeof t=="object",G_=t=>ot(t)&&ke(t.then)&&ke(t.catch),MI=Object.prototype.toString,Ha=t=>MI.call(t),RN=t=>Ha(t).slice(8,-1),FI=t=>Ha(t)==="[object Object]",Y_=t=>kt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ml=$_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qf=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},AN=/-(\w)/g,es=qf(t=>t.replace(AN,(e,n)=>n?n.toUpperCase():"")),PN=/\B([A-Z])/g,So=qf(t=>t.replace(PN,"-$1").toLowerCase()),Kf=qf(t=>t.charAt(0).toUpperCase()+t.slice(1)),Rp=qf(t=>t?`on${Kf(t)}`:""),ac=(t,e)=>!Object.is(t,e),aa=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Mh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},VI=t=>{const e=kt(t)?Number(t):NaN;return isNaN(e)?t:e};let eE;const Cm=()=>eE||(eE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zf(t){if(we(t)){const e={};for(let n=0;n{if(n){const r=n.split(NN);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Qf(t){let e="";if(kt(t))e=t;else if(we(t))for(let n=0;nHc(n,e))}const kX=t=>kt(t)?t:t==null?"":we(t)||ot(t)&&(t.toString===MI||!ke(t.toString))?JSON.stringify(t,jI,2):String(t),jI=(t,e)=>e&&e.__v_isRef?jI(t,e.value):oa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:$a(e)?{[`Set(${e.size})`]:[...e.values()]}:ot(e)&&!we(e)&&!FI(e)?String(e):e;let Gn;class BI{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Gn,!e&&Gn&&(this.index=(Gn.scopes||(Gn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Gn;try{return Gn=this,e()}finally{Gn=n}}}on(){Gn=this}off(){Gn=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},$I=t=>(t.w&Ii)>0,HI=t=>(t.n&Ii)>0,jN=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":we(t)?Y_(n)&&a.push(o.get("length")):(a.push(o.get(oo)),oa(t)&&a.push(o.get(Am)));break;case"delete":we(t)||(a.push(o.get(oo)),oa(t)&&a.push(o.get(Am)));break;case"set":oa(t)&&a.push(o.get(oo));break}if(a.length===1)a[0]&&Pm(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Pm(z_(l))}}function Pm(t,e){const n=we(t)?t:[...t];for(const r of n)r.computed&&nE(r);for(const r of n)r.computed||nE(r)}function nE(t,e){(t!==_r||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function $N(t,e){var n;return(n=Fh.get(t))==null?void 0:n.get(e)}const HN=$_("__proto__,__v_isRef,__isVue"),YI=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(oc)),WN=X_(),GN=X_(!1,!0),YN=X_(!0),rE=qN();function qN(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Ve(this);for(let i=0,o=this.length;i{t[e]=function(...n){Wa();const r=Ve(this)[e].apply(this,n);return Ga(),r}}),t}function KN(t){const e=Ve(this);return $n(e,"has",t),e.hasOwnProperty(t)}function X_(t=!1,e=!1){return function(r,s,i){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&i===(t?e?uD:XI:e?QI:zI).get(r))return r;const o=we(r);if(!t){if(o&&Ke(rE,s))return Reflect.get(rE,s,i);if(s==="hasOwnProperty")return KN}const a=Reflect.get(r,s,i);return(oc(s)?YI.has(s):HN(s))||(t||$n(r,"get",s),e)?a:rt(a)?o&&Y_(s)?a:a.value:ot(a)?t?Zf(a):ts(a):a}}const zN=qI(),QN=qI(!0);function qI(t=!1){return function(n,r,s,i){let o=n[r];if(po(o)&&rt(o)&&!rt(s))return!1;if(!t&&(!Vh(s)&&!po(s)&&(o=Ve(o),s=Ve(s)),!we(n)&&rt(o)&&!rt(s)))return o.value=s,!0;const a=we(n)&&Y_(r)?Number(r)t,Jf=t=>Reflect.getPrototypeOf(t);function Fu(t,e,n=!1,r=!1){t=t.__v_raw;const s=Ve(t),i=Ve(e);n||(e!==i&&$n(s,"get",e),$n(s,"get",i));const{has:o}=Jf(s),a=r?J_:n?ty:lc;if(o.call(s,e))return a(t.get(e));if(o.call(s,i))return a(t.get(i));t!==s&&t.get(e)}function Vu(t,e=!1){const n=this.__v_raw,r=Ve(n),s=Ve(t);return e||(t!==s&&$n(r,"has",t),$n(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Uu(t,e=!1){return t=t.__v_raw,!e&&$n(Ve(t),"iterate",oo),Reflect.get(t,"size",t)}function sE(t){t=Ve(t);const e=Ve(this);return Jf(e).has.call(e,t)||(e.add(t),Ls(e,"add",t,t)),this}function iE(t,e){e=Ve(e);const n=Ve(this),{has:r,get:s}=Jf(n);let i=r.call(n,t);i||(t=Ve(t),i=r.call(n,t));const o=s.call(n,t);return n.set(t,e),i?ac(e,o)&&Ls(n,"set",t,e):Ls(n,"add",t,e),this}function oE(t){const e=Ve(this),{has:n,get:r}=Jf(e);let s=n.call(e,t);s||(t=Ve(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&Ls(e,"delete",t,void 0),i}function aE(){const t=Ve(this),e=t.size!==0,n=t.clear();return e&&Ls(t,"clear",void 0,void 0),n}function ju(t,e){return function(r,s){const i=this,o=i.__v_raw,a=Ve(o),l=e?J_:t?ty:lc;return!t&&$n(a,"iterate",oo),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}}function Bu(t,e,n){return function(...r){const s=this.__v_raw,i=Ve(s),o=oa(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=s[t](...r),u=n?J_:e?ty:lc;return!e&&$n(i,"iterate",l?Am:oo),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function zs(t){return function(...e){return t==="delete"?!1:this}}function nD(){const t={get(i){return Fu(this,i)},get size(){return Uu(this)},has:Vu,add:sE,set:iE,delete:oE,clear:aE,forEach:ju(!1,!1)},e={get(i){return Fu(this,i,!1,!0)},get size(){return Uu(this)},has:Vu,add:sE,set:iE,delete:oE,clear:aE,forEach:ju(!1,!0)},n={get(i){return Fu(this,i,!0)},get size(){return Uu(this,!0)},has(i){return Vu.call(this,i,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:ju(!0,!1)},r={get(i){return Fu(this,i,!0,!0)},get size(){return Uu(this,!0)},has(i){return Vu.call(this,i,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:ju(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Bu(i,!1,!1),n[i]=Bu(i,!0,!1),e[i]=Bu(i,!1,!0),r[i]=Bu(i,!0,!0)}),[t,n,e,r]}const[rD,sD,iD,oD]=nD();function Z_(t,e){const n=e?t?oD:iD:t?sD:rD;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(Ke(n,s)&&s in r?n:r,s,i)}const aD={get:Z_(!1,!1)},lD={get:Z_(!1,!0)},cD={get:Z_(!0,!1)},zI=new WeakMap,QI=new WeakMap,XI=new WeakMap,uD=new WeakMap;function hD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fD(t){return t.__v_skip||!Object.isExtensible(t)?0:hD(RN(t))}function ts(t){return po(t)?t:ey(t,!1,KI,aD,zI)}function Gc(t){return ey(t,!1,tD,lD,QI)}function Zf(t){return ey(t,!0,eD,cD,XI)}function ey(t,e,n,r,s){if(!ot(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const o=fD(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Ps(t){return po(t)?Ps(t.__v_raw):!!(t&&t.__v_isReactive)}function po(t){return!!(t&&t.__v_isReadonly)}function Vh(t){return!!(t&&t.__v_isShallow)}function JI(t){return Ps(t)||po(t)}function Ve(t){const e=t&&t.__v_raw;return e?Ve(e):t}function xs(t){return xh(t,"__v_skip",!0),t}const lc=t=>ot(t)?ts(t):t,ty=t=>ot(t)?Zf(t):t;function ny(t){pi&&_r&&(t=Ve(t),GI(t.dep||(t.dep=z_())))}function ry(t,e){t=Ve(t);const n=t.dep;n&&Pm(n)}function rt(t){return!!(t&&t.__v_isRef===!0)}function Ze(t){return ZI(t,!1)}function wa(t){return ZI(t,!0)}function ZI(t,e){return rt(t)?t:new dD(t,e)}class dD{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Ve(e),this._value=n?e:lc(e)}get value(){return ny(this),this._value}set value(e){const n=this.__v_isShallow||Vh(e)||po(e);e=n?e:Ve(e),ac(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:lc(e),ry(this))}}function tt(t){return rt(t)?t.value:t}function vs(t){return ke(t)?t():tt(t)}const pD={get:(t,e,n)=>tt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return rt(s)&&!rt(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function ek(t){return Ps(t)?t:new Proxy(t,pD)}class mD{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>ny(this),()=>ry(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function gD(t){return new mD(t)}function _D(t){const e=we(t)?new Array(t.length):{};for(const n in t)e[n]=tk(t,n);return e}class yD{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return $N(Ve(this._object),this._key)}}class vD{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ed(t,e,n){return rt(t)?t:ke(t)?new vD(t):ot(t)&&arguments.length>1?tk(t,e,n):Ze(t)}function tk(t,e,n){const r=t[e];return rt(r)?r:new yD(t,e,n)}class ED{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Q_(e,()=>{this._dirty||(this._dirty=!0,ry(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=Ve(this);return ny(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function wD(t,e,n=!1){let r,s;const i=ke(t);return i?(r=t,s=br):(r=t.get,s=t.set),new ED(r,s,i||!s,n)}function mi(t,e,n,r){let s;try{s=r?t(...r):t()}catch(i){Ya(i,e,n)}return s}function lr(t,e,n,r){if(ke(t)){const i=mi(t,e,n,r);return i&&G_(i)&&i.catch(o=>{Ya(o,e,n)}),i}const s=[];for(let i=0;i>>1;uc(pn[r])jr&&pn.splice(e,1)}function sk(t){we(t)?la.push(...t):(!Es||!Es.includes(t,t.allowRecurse?zi+1:zi))&&la.push(t),rk()}function lE(t,e=cc?jr+1:0){for(;euc(n)-uc(r)),zi=0;zit.id==null?1/0:t.id,kD=(t,e)=>{const n=uc(t)-uc(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function ik(t){Om=!1,cc=!0,pn.sort(kD);const e=br;try{for(jr=0;jrBr.emit(s,...i)),Sl=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{ok(i,e)}),setTimeout(()=>{Br||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nm=!0,Sl=[])},3e3)):(Nm=!0,Sl=[])}function SD(t,e){nd("app:init",t,e,{Fragment:rn,Text:ki,Comment:_n,Static:ua})}function CD(t){nd("app:unmount",t)}const Dm=iy("component:added"),ak=iy("component:updated"),RD=iy("component:removed"),AD=t=>{Br&&typeof Br.cleanupBuffer=="function"&&!Br.cleanupBuffer(t)&&RD(t)};function iy(t){return e=>{nd(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function PD(t,e,n){nd("component:emit",t.appContext.app,t,e,n)}function OD(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||pt;let s=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in r){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=r[u]||pt;f&&(s=n.map(v=>kt(v)?v.trim():v)),h&&(s=n.map(Mh))}PD(t,e,s);let a,l=r[a=Rp(e)]||r[a=Rp(es(e))];!l&&i&&(l=r[a=Rp(So(e))]),l&&lr(l,t,6,s);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,lr(c,t,6,s)}}function lk(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!ke(t)){const l=c=>{const u=lk(c,e,!0);u&&(a=!0,jt(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(ot(t)&&r.set(t,null),null):(we(i)?i.forEach(l=>o[l]=null):jt(o,i),ot(t)&&r.set(t,o),o)}function rd(t,e){return!t||!$c(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ke(t,e[0].toLowerCase()+e.slice(1))||Ke(t,So(e))||Ke(t,e))}let Xt=null,sd=null;function jh(t){const e=Xt;return Xt=t,sd=t&&t.type.__scopeId||null,e}function SX(t){sd=t}function CX(){sd=null}function oy(t,e=Xt,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&bE(-1);const i=jh(e);let o;try{o=t(...s)}finally{jh(i),r._d&&bE(1)}return ak(e),o};return r._n=!0,r._c=!0,r._d=!0,r}function Ap(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:v,ctx:k,inheritAttrs:I}=t;let T,g;const m=jh(t);try{if(n.shapeFlag&4){const d=s||r;T=rr(u.call(d,d,h,i,v,f,k)),g=l}else{const d=e;T=rr(d.length>1?d(i,{attrs:l,slots:a,emit:c}):d(i,null)),g=e.props?l:DD(l)}}catch(d){Ul.length=0,Ya(d,t,1),T=It(_n)}let _=T;if(g&&I!==!1){const d=Object.keys(g),{shapeFlag:E}=_;d.length&&E&7&&(o&&d.some(H_)&&(g=LD(g,o)),_=Ms(_,g))}return n.dirs&&(_=Ms(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),T=_,jh(m),T}function ND(t){let e;for(let n=0;n{let e;for(const n in t)(n==="class"||n==="style"||$c(n))&&((e||(e={}))[n]=t[n]);return e},LD=(t,e)=>{const n={};for(const r in t)(!H_(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function xD(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?cE(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense,MD={name:"Suspense",__isSuspense:!0,process(t,e,n,r,s,i,o,a,l,c){t==null?FD(e,n,r,s,i,o,a,l,c):VD(t,e,n,r,s,o,a,l,c)},hydrate:UD,create:cy,normalize:jD},ly=MD;function hc(t,e){const n=t.props&&t.props[e];ke(n)&&n()}function FD(t,e,n,r,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,h=u("div"),f=t.suspense=cy(t,s,r,e,h,n,i,o,a,l);c(null,f.pendingBranch=t.ssContent,h,null,r,f,i,o),f.deps>0?(hc(t,"onPending"),hc(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,i,o),ca(f,t.ssFallback)):f.resolve(!1,!0)}function VD(t,e,n,r,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const f=e.ssContent,v=e.ssFallback,{activeBranch:k,pendingBranch:I,isInFallback:T,isHydrating:g}=h;if(I)h.pendingBranch=f,yr(f,I)?(l(I,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():T&&(l(k,v,n,r,s,null,i,o,a),ca(h,v))):(h.pendingId++,g?(h.isHydrating=!1,h.activeBranch=I):c(I,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),T?(l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():(l(k,v,n,r,s,null,i,o,a),ca(h,v))):k&&yr(f,k)?(l(k,f,n,r,s,h,i,o,a),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0&&h.resolve()));else if(k&&yr(f,k))l(k,f,n,r,s,h,i,o,a),ca(h,f);else if(hc(e,"onPending"),h.pendingBranch=f,h.pendingId++,l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0)h.resolve();else{const{timeout:m,pendingId:_}=h;m>0?setTimeout(()=>{h.pendingId===_&&h.fallback(v)},m):m===0&&h.fallback(v)}}function cy(t,e,n,r,s,i,o,a,l,c,u=!1){const{p:h,m:f,um:v,n:k,o:{parentNode:I,remove:T}}=c;let g;const m=BD(t);m&&e!=null&&e.pendingBranch&&(g=e.pendingId,e.deps++);const _=t.props?VI(t.props.timeout):void 0,d={vnode:t,parent:e,parentComponent:n,isSVG:o,container:r,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,p=!1){const{vnode:y,activeBranch:w,pendingBranch:A,pendingId:S,effects:O,parentComponent:C,container:R}=d;if(d.isHydrating)d.isHydrating=!1;else if(!E){const U=w&&A.transition&&A.transition.mode==="out-in";U&&(w.transition.afterLeave=()=>{S===d.pendingId&&f(A,R,B,0)});let{anchor:B}=d;w&&(B=k(w),v(w,C,d,!0)),U||f(A,R,B,0)}ca(d,A),d.pendingBranch=null,d.isInFallback=!1;let L=d.parent,G=!1;for(;L;){if(L.pendingBranch){L.effects.push(...O),G=!0;break}L=L.parent}G||sk(O),d.effects=[],m&&e&&e.pendingBranch&&g===e.pendingId&&(e.deps--,e.deps===0&&!p&&e.resolve()),hc(y,"onResolve")},fallback(E){if(!d.pendingBranch)return;const{vnode:p,activeBranch:y,parentComponent:w,container:A,isSVG:S}=d;hc(p,"onFallback");const O=k(y),C=()=>{d.isInFallback&&(h(null,E,A,O,w,null,S,a,l),ca(d,E))},R=E.transition&&E.transition.mode==="out-in";R&&(y.transition.afterLeave=C),d.isInFallback=!0,v(y,w,null,!0),R||C()},move(E,p,y){d.activeBranch&&f(d.activeBranch,E,p,y),d.container=E},next(){return d.activeBranch&&k(d.activeBranch)},registerDep(E,p){const y=!!d.pendingBranch;y&&d.deps++;const w=E.vnode.el;E.asyncDep.catch(A=>{Ya(A,E,0)}).then(A=>{if(E.isUnmounted||d.isUnmounted||d.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:S}=E;jm(E,A,!1),w&&(S.el=w);const O=!w&&E.subTree.el;p(E,S,I(w||E.subTree.el),w?null:k(E.subTree),d,o,l),O&&T(O),ay(E,S.el),y&&--d.deps===0&&d.resolve()})},unmount(E,p){d.isUnmounted=!0,d.activeBranch&&v(d.activeBranch,n,E,p),d.pendingBranch&&v(d.pendingBranch,n,E,p)}};return d}function UD(t,e,n,r,s,i,o,a,l){const c=e.suspense=cy(e,r,n,t.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function jD(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=uE(r?n.default:n),t.ssFallback=r?uE(n.fallback):It(_n)}function uE(t){let e;if(ke(t)){const n=Ta&&t._c;n&&(t._d=!1,$r()),t=t(),n&&(t._d=!0,e=or,Nk())}return we(t)&&(t=ND(t)),t=rr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function uk(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):sk(t)}function ca(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t,s=n.el=e.el;r&&r.subTree===n&&(r.vnode.el=s,ay(r,s))}function BD(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function hk(t,e){return uy(t,null,e)}const $u={};function Vt(t,e,n){return uy(t,e,n)}function uy(t,e,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=pt){var a;const l=Xf()===((a=Mt)==null?void 0:a.scope)?Mt:null;let c,u=!1,h=!1;if(rt(t)?(c=()=>t.value,u=Vh(t)):Ps(t)?(c=()=>t,r=!0):we(t)?(h=!0,u=t.some(d=>Ps(d)||Vh(d)),c=()=>t.map(d=>{if(rt(d))return d.value;if(Ps(d))return Xi(d);if(ke(d))return mi(d,l,2)})):ke(t)?e?c=()=>mi(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return f&&f(),lr(t,l,3,[v])}:c=br,e&&r){const d=c;c=()=>Xi(d())}let f,v=d=>{f=m.onStop=()=>{mi(d,l,4)}},k;if(Ia)if(v=br,e?n&&lr(e,l,3,[c(),h?[]:void 0,v]):c(),s==="sync"){const d=NL();k=d.__watcherHandles||(d.__watcherHandles=[])}else return br;let I=h?new Array(t.length).fill($u):$u;const T=()=>{if(m.active)if(e){const d=m.run();(r||u||(h?d.some((E,p)=>ac(E,I[p])):ac(d,I)))&&(f&&f(),lr(e,l,3,[d,I===$u?void 0:h&&I[0]===$u?[]:I,v]),I=d)}else m.run()};T.allowRecurse=!!e;let g;s==="sync"?g=T:s==="post"?g=()=>nn(T,l&&l.suspense):(T.pre=!0,l&&(T.id=l.uid),g=()=>td(T));const m=new Q_(c,g);e?n?T():I=m.run():s==="post"?nn(m.run.bind(m),l&&l.suspense):m.run();const _=()=>{m.stop(),l&&l.scope&&W_(l.scope.effects,m)};return k&&k.push(_),_}function $D(t,e,n){const r=this.proxy,s=kt(t)?t.includes(".")?fk(r,t):()=>r[t]:t.bind(r,r);let i;ke(e)?i=e:(i=e.handler,n=e);const o=Mt;Si(this);const a=uy(s,i.bind(r),n);return o?Si(o):gi(),a}function fk(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{Xi(n,e)});else if(FI(t))for(const n in t)Xi(t[n],e);return t}function RX(t,e){const n=Xt;if(n===null)return t;const r=cd(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),ad(()=>{t.isUnmounting=!0}),t}const nr=[Function,Array],dk={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},WD={name:"BaseTransition",props:dk,setup(t,{slots:e}){const n=Or(),r=HD();let s;return()=>{const i=e.default&&mk(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const I of i)if(I.type!==_n){o=I;break}}const a=Ve(t),{mode:l}=a;if(r.isLeaving)return Pp(o);const c=hE(o);if(!c)return Pp(o);const u=Lm(c,a,r,n);Bh(c,u);const h=n.subTree,f=h&&hE(h);let v=!1;const{getTransitionKey:k}=c.type;if(k){const I=k();s===void 0?s=I:I!==s&&(s=I,v=!0)}if(f&&f.type!==_n&&(!yr(c,f)||v)){const I=Lm(f,a,r,n);if(Bh(f,I),l==="out-in")return r.isLeaving=!0,I.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Pp(o);l==="in-out"&&c.type!==_n&&(I.delayLeave=(T,g,m)=>{const _=pk(r,f);_[String(f.key)]=f,T._leaveCb=()=>{g(),T._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=m})}return o}}},GD=WD;function pk(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Lm(t,e,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:v,onLeaveCancelled:k,onBeforeAppear:I,onAppear:T,onAfterAppear:g,onAppearCancelled:m}=e,_=String(t.key),d=pk(n,t),E=(w,A)=>{w&&lr(w,r,9,A)},p=(w,A)=>{const S=A[1];E(w,A),we(w)?w.every(O=>O.length<=1)&&S():w.length<=1&&S()},y={mode:i,persisted:o,beforeEnter(w){let A=a;if(!n.isMounted)if(s)A=I||a;else return;w._leaveCb&&w._leaveCb(!0);const S=d[_];S&&yr(t,S)&&S.el._leaveCb&&S.el._leaveCb(),E(A,[w])},enter(w){let A=l,S=c,O=u;if(!n.isMounted)if(s)A=T||l,S=g||c,O=m||u;else return;let C=!1;const R=w._enterCb=L=>{C||(C=!0,L?E(O,[w]):E(S,[w]),y.delayedLeave&&y.delayedLeave(),w._enterCb=void 0)};A?p(A,[w,R]):R()},leave(w,A){const S=String(t.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return A();E(h,[w]);let O=!1;const C=w._leaveCb=R=>{O||(O=!0,A(),R?E(k,[w]):E(v,[w]),w._leaveCb=void 0,d[S]===t&&delete d[S])};d[S]=t,f?p(f,[w,C]):C()},clone(w){return Lm(w,e,n,r)}};return y}function Pp(t){if(Yc(t))return t=Ms(t),t.children=null,t}function hE(t){return Yc(t)?t.children?t.children[0]:void 0:t}function Bh(t,e){t.shapeFlag&6&&t.component?Bh(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function mk(t,e=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;ijt({name:t.name},e,{setup:t}))():t}const ao=t=>!!t.type.__asyncLoader;function fE(t){ke(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=t;let l=null,c,u=0;const h=()=>(u++,l=null,f()),f=()=>{let v;return l||(v=l=e().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),a)return new Promise((I,T)=>{a(k,()=>I(h()),()=>T(k),u+1)});throw k}).then(k=>v!==l&&l?l:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),c=k,k)))};return ur({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const v=Mt;if(c)return()=>Op(c,v);const k=m=>{l=null,Ya(m,v,13,!r)};if(o&&v.suspense||Ia)return f().then(m=>()=>Op(m,v)).catch(m=>(k(m),()=>r?It(r,{error:m}):null));const I=Ze(!1),T=Ze(),g=Ze(!!s);return s&&setTimeout(()=>{g.value=!1},s),i!=null&&setTimeout(()=>{if(!I.value&&!T.value){const m=new Error(`Async component timed out after ${i}ms.`);k(m),T.value=m}},i),f().then(()=>{I.value=!0,v.parent&&Yc(v.parent.vnode)&&td(v.parent.update)}).catch(m=>{k(m),T.value=m}),()=>{if(I.value&&c)return Op(c,v);if(T.value&&r)return It(r,{error:T.value});if(n&&!g.value)return It(n)}}})}function Op(t,e){const{ref:n,props:r,children:s,ce:i}=e.vnode,o=It(t,r,s);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Yc=t=>t.type.__isKeepAlive,YD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Or(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const s=new Map,i=new Set;let o=null;n.__v_cache=s;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=r,f=h("div");r.activate=(m,_,d,E,p)=>{const y=m.component;c(m,_,d,0,a),l(y.vnode,m,_,d,y,a,E,m.slotScopeIds,p),nn(()=>{y.isDeactivated=!1,y.a&&aa(y.a);const w=m.props&&m.props.onVnodeMounted;w&&Vn(w,y.parent,m)},a),Dm(y)},r.deactivate=m=>{const _=m.component;c(m,f,null,1,a),nn(()=>{_.da&&aa(_.da);const d=m.props&&m.props.onVnodeUnmounted;d&&Vn(d,_.parent,m),_.isDeactivated=!0},a),Dm(_)};function v(m){Np(m),u(m,n,a,!0)}function k(m){s.forEach((_,d)=>{const E=Bm(_.type);E&&(!m||!m(E))&&I(d)})}function I(m){const _=s.get(m);!o||!yr(_,o)?v(_):o&&Np(o),s.delete(m),i.delete(m)}Vt(()=>[t.include,t.exclude],([m,_])=>{m&&k(d=>Cl(m,d)),_&&k(d=>!Cl(_,d))},{flush:"post",deep:!0});let T=null;const g=()=>{T!=null&&s.set(T,Dp(n.subTree))};return od(g),vk(g),ad(()=>{s.forEach(m=>{const{subTree:_,suspense:d}=n,E=Dp(_);if(m.type===E.type&&m.key===E.key){Np(E);const p=E.component.da;p&&nn(p,d);return}v(m)})}),()=>{if(T=null,!e.default)return null;const m=e.default(),_=m[0];if(m.length>1)return o=null,m;if(!ba(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let d=Dp(_);const E=d.type,p=Bm(ao(d)?d.type.__asyncResolved||{}:E),{include:y,exclude:w,max:A}=t;if(y&&(!p||!Cl(y,p))||w&&p&&Cl(w,p))return o=d,_;const S=d.key==null?E:d.key,O=s.get(S);return d.el&&(d=Ms(d),_.shapeFlag&128&&(_.ssContent=d)),T=S,O?(d.el=O.el,d.component=O.component,d.transition&&Bh(d,d.transition),d.shapeFlag|=512,i.delete(S),i.add(S)):(i.add(S),A&&i.size>parseInt(A,10)&&I(i.values().next().value)),d.shapeFlag|=256,o=d,ck(_.type)?_:d}}},qD=YD;function Cl(t,e){return we(t)?t.some(n=>Cl(n,e)):kt(t)?t.split(",").includes(e):CN(t)?t.test(e):!1}function gk(t,e){yk(t,"a",e)}function _k(t,e){yk(t,"da",e)}function yk(t,e,n=Mt){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(id(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Yc(s.parent.vnode)&&KD(r,e,n,s),s=s.parent}}function KD(t,e,n,r){const s=id(e,t,r,!0);hy(()=>{W_(r[e],s)},n)}function Np(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Dp(t){return t.shapeFlag&128?t.ssContent:t}function id(t,e,n=Mt,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Wa(),Si(n);const a=lr(e,n,t,o);return gi(),Ga(),a});return r?s.unshift(i):s.push(i),i}}const Hs=t=>(e,n=Mt)=>(!Ia||t==="sp")&&id(t,(...r)=>e(...r),n),zD=Hs("bm"),od=Hs("m"),QD=Hs("bu"),vk=Hs("u"),ad=Hs("bum"),hy=Hs("um"),XD=Hs("sp"),JD=Hs("rtg"),ZD=Hs("rtc");function Ek(t,e=Mt){id("ec",t,e)}const fy="components",eL="directives";function AX(t,e){return dy(fy,t,!0,e)||t}const wk=Symbol.for("v-ndc");function tL(t){return kt(t)?dy(fy,t,!1)||t:t||wk}function PX(t){return dy(eL,t)}function dy(t,e,n=!0,r=!1){const s=Xt||Mt;if(s){const i=s.type;if(t===fy){const a=Bm(i,!1);if(a&&(a===e||a===es(e)||a===Kf(es(e))))return i}const o=dE(s[t]||i[t],e)||dE(s.appContext[t],e);return!o&&r?i:o}}function dE(t,e){return t&&(t[e]||t[es(e)]||t[Kf(es(e))])}function OX(t,e,n,r){let s;const i=n&&n[r];if(we(t)||kt(t)){s=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);s=new Array(o.length);for(let a=0,l=o.length;aba(e)?!(e.type===_n||e.type===rn&&!Tk(e.children)):!0)?t:null}const xm=t=>t?Uk(t)?cd(t)||t.proxy:xm(t.parent):null,Fl=jt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>xm(t.parent),$root:t=>xm(t.root),$emit:t=>t.emit,$options:t=>py(t),$forceUpdate:t=>t.f||(t.f=()=>td(t.update)),$nextTick:t=>t.n||(t.n=Ni.bind(t.proxy)),$watch:t=>$D.bind(t)}),Lp=(t,e)=>t!==pt&&!t.__isScriptSetup&&Ke(t,e),nL={get({_:t},e){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const v=o[e];if(v!==void 0)switch(v){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(Lp(r,e))return o[e]=1,r[e];if(s!==pt&&Ke(s,e))return o[e]=2,s[e];if((c=t.propsOptions[0])&&Ke(c,e))return o[e]=3,i[e];if(n!==pt&&Ke(n,e))return o[e]=4,n[e];Mm&&(o[e]=0)}}const u=Fl[e];let h,f;if(u)return e==="$attrs"&&$n(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==pt&&Ke(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,Ke(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return Lp(s,e)?(s[e]=n,!0):r!==pt&&Ke(r,e)?(r[e]=n,!0):Ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||t!==pt&&Ke(t,o)||Lp(e,o)||(a=i[0])&&Ke(a,o)||Ke(r,o)||Ke(Fl,o)||Ke(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function DX(){return rL().slots}function rL(){const t=Or();return t.setupContext||(t.setupContext=Bk(t))}function pE(t){return we(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function LX(t){const e=Or();let n=t();return gi(),G_(n)&&(n=n.catch(r=>{throw Si(e),r})),[n,()=>Si(e)]}let Mm=!0;function sL(t){const e=py(t),n=t.proxy,r=t.ctx;Mm=!1,e.beforeCreate&&mE(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:v,updated:k,activated:I,deactivated:T,beforeDestroy:g,beforeUnmount:m,destroyed:_,unmounted:d,render:E,renderTracked:p,renderTriggered:y,errorCaptured:w,serverPrefetch:A,expose:S,inheritAttrs:O,components:C,directives:R,filters:L}=e;if(c&&iL(c,r,null),o)for(const B in o){const Y=o[B];ke(Y)&&(r[B]=Y.bind(n))}if(s){const B=s.call(n,n);ot(B)&&(t.data=ts(B))}if(Mm=!0,i)for(const B in i){const Y=i[B],F=ke(Y)?Y.bind(n,n):ke(Y.get)?Y.get.bind(n,n):br,j=!ke(Y)&&ke(Y.set)?Y.set.bind(n):br,Z=lt({get:F,set:j});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>Z.value,set:J=>Z.value=J})}if(a)for(const B in a)bk(a[B],r,n,B);if(l){const B=ke(l)?l.call(n):l;Reflect.ownKeys(B).forEach(Y=>{lo(Y,B[Y])})}u&&mE(u,t,"c");function U(B,Y){we(Y)?Y.forEach(F=>B(F.bind(n))):Y&&B(Y.bind(n))}if(U(zD,h),U(od,f),U(QD,v),U(vk,k),U(gk,I),U(_k,T),U(Ek,w),U(ZD,p),U(JD,y),U(ad,m),U(hy,d),U(XD,A),we(S))if(S.length){const B=t.exposed||(t.exposed={});S.forEach(Y=>{Object.defineProperty(B,Y,{get:()=>n[Y],set:F=>n[Y]=F})})}else t.exposed||(t.exposed={});E&&t.render===br&&(t.render=E),O!=null&&(t.inheritAttrs=O),C&&(t.components=C),R&&(t.directives=R)}function iL(t,e,n=br){we(t)&&(t=Fm(t));for(const r in t){const s=t[r];let i;ot(s)?"default"in s?i=Ut(s.from||r,s.default,!0):i=Ut(s.from||r):i=Ut(s),rt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function mE(t,e,n){lr(we(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function bk(t,e,n,r){const s=r.includes(".")?fk(n,r):()=>n[r];if(kt(t)){const i=e[t];ke(i)&&Vt(s,i)}else if(ke(t))Vt(s,t.bind(n));else if(ot(t))if(we(t))t.forEach(i=>bk(i,e,n,r));else{const i=ke(t.handler)?t.handler.bind(n):e[t.handler];ke(i)&&Vt(s,i,t)}}function py(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(c=>$h(l,c,o,!0)),$h(l,e,o)),ot(e)&&i.set(e,l),l}function $h(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&$h(t,i,n,!0),s&&s.forEach(o=>$h(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=oL[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const oL={data:gE,props:_E,emits:_E,methods:Rl,computed:Rl,beforeCreate:Rn,created:Rn,beforeMount:Rn,mounted:Rn,beforeUpdate:Rn,updated:Rn,beforeDestroy:Rn,beforeUnmount:Rn,destroyed:Rn,unmounted:Rn,activated:Rn,deactivated:Rn,errorCaptured:Rn,serverPrefetch:Rn,components:Rl,directives:Rl,watch:lL,provide:gE,inject:aL};function gE(t,e){return e?t?function(){return jt(ke(t)?t.call(this,this):t,ke(e)?e.call(this,this):e)}:e:t}function aL(t,e){return Rl(Fm(t),Fm(e))}function Fm(t){if(we(t)){const e={};for(let n=0;n1)return n&&ke(e)?e.call(r&&r.proxy):e}}function my(){return!!(Mt||Xt||fc)}function hL(t,e,n,r=!1){const s={},i={};xh(i,ld,1),t.propsDefaults=Object.create(null),kk(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:Gc(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function fL(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Ve(s),[l]=t.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[f,v]=Sk(h,e,!0);jt(o,f),v&&a.push(...v)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!l)return ot(t)&&r.set(t,ia),ia;if(we(i))for(let u=0;u-1,v[1]=I<0||k-1||Ke(v,"default"))&&a.push(h)}}}const c=[o,a];return ot(t)&&r.set(t,c),c}function yE(t){return t[0]!=="$"}function vE(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function EE(t,e){return vE(t)===vE(e)}function wE(t,e){return we(e)?e.findIndex(n=>EE(n,t)):ke(e)&&EE(e,t)?0:-1}const Ck=t=>t[0]==="_"||t==="$stable",gy=t=>we(t)?t.map(rr):[rr(t)],dL=(t,e,n)=>{if(e._n)return e;const r=oy((...s)=>gy(e(...s)),n);return r._c=!1,r},Rk=(t,e,n)=>{const r=t._ctx;for(const s in t){if(Ck(s))continue;const i=t[s];if(ke(i))e[s]=dL(s,i,r);else if(i!=null){const o=gy(i);e[s]=()=>o}}},Ak=(t,e)=>{const n=gy(e);t.slots.default=()=>n},pL=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Ve(e),xh(e,"_",n)):Rk(e,t.slots={})}else t.slots={},e&&Ak(t,e);xh(t.slots,ld,1)},mL=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=pt;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(jt(s,e),!n&&a===1&&delete s._):(i=!e.$stable,Rk(e,s)),o=e}else e&&(Ak(t,e),o={default:1});if(i)for(const a in s)!Ck(a)&&!(a in o)&&delete s[a]};function Hh(t,e,n,r,s=!1){if(we(t)){t.forEach((f,v)=>Hh(f,e&&(we(e)?e[v]:e),n,r,s));return}if(ao(r)&&!s)return;const i=r.shapeFlag&4?cd(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=t,c=e&&e.r,u=a.refs===pt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(kt(c)?(u[c]=null,Ke(h,c)&&(h[c]=null)):rt(c)&&(c.value=null)),ke(l))mi(l,a,12,[o,u]);else{const f=kt(l),v=rt(l);if(f||v){const k=()=>{if(t.f){const I=f?Ke(h,l)?h[l]:u[l]:l.value;s?we(I)&&W_(I,i):we(I)?I.includes(i)||I.push(i):f?(u[l]=[i],Ke(h,l)&&(h[l]=u[l])):(l.value=[i],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,Ke(h,l)&&(h[l]=o)):v&&(l.value=o,t.k&&(u[t.k]=o))};o?(k.id=-1,nn(k,n)):k()}}}let Qs=!1;const Hu=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",Wu=t=>t.nodeType===8;function gL(t){const{mt:e,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=t,u=(g,m)=>{if(!m.hasChildNodes()){n(null,g,m),Uh(),m._vnode=g;return}Qs=!1,h(m.firstChild,g,null,null,null),Uh(),m._vnode=g,Qs&&console.error("Hydration completed but contains mismatches.")},h=(g,m,_,d,E,p=!1)=>{const y=Wu(g)&&g.data==="[",w=()=>I(g,m,_,d,E,y),{type:A,ref:S,shapeFlag:O,patchFlag:C}=m;let R=g.nodeType;m.el=g,C===-2&&(p=!1,m.dynamicChildren=null);let L=null;switch(A){case ki:R!==3?m.children===""?(l(m.el=s(""),o(g),g),L=g):L=w():(g.data!==m.children&&(Qs=!0,g.data=m.children),L=i(g));break;case _n:R!==8||y?L=w():L=i(g);break;case ua:if(y&&(g=i(g),R=g.nodeType),R===1||R===3){L=g;const G=!m.children.length;for(let U=0;U{p=p||!!m.dynamicChildren;const{type:y,props:w,patchFlag:A,shapeFlag:S,dirs:O}=m,C=y==="input"&&O||y==="option";if(C||A!==-1){if(O&&Ur(m,null,_,"created"),w)if(C||!p||A&48)for(const L in w)(C&&L.endsWith("value")||$c(L)&&!Ml(L))&&r(g,L,null,w[L],!1,void 0,_);else w.onClick&&r(g,"onClick",null,w.onClick,!1,void 0,_);let R;if((R=w&&w.onVnodeBeforeMount)&&Vn(R,_,m),O&&Ur(m,null,_,"beforeMount"),((R=w&&w.onVnodeMounted)||O)&&uk(()=>{R&&Vn(R,_,m),O&&Ur(m,null,_,"mounted")},d),S&16&&!(w&&(w.innerHTML||w.textContent))){let L=v(g.firstChild,m,g,_,d,E,p);for(;L;){Qs=!0;const G=L;L=L.nextSibling,a(G)}}else S&8&&g.textContent!==m.children&&(Qs=!0,g.textContent=m.children)}return g.nextSibling},v=(g,m,_,d,E,p,y)=>{y=y||!!m.dynamicChildren;const w=m.children,A=w.length;for(let S=0;S{const{slotScopeIds:y}=m;y&&(E=E?E.concat(y):y);const w=o(g),A=v(i(g),m,w,_,d,E,p);return A&&Wu(A)&&A.data==="]"?i(m.anchor=A):(Qs=!0,l(m.anchor=c("]"),w,A),A)},I=(g,m,_,d,E,p)=>{if(Qs=!0,m.el=null,p){const A=T(g);for(;;){const S=i(g);if(S&&S!==A)a(S);else break}}const y=i(g),w=o(g);return a(g),n(null,m,w,y,_,d,Hu(w),E),y},T=g=>{let m=0;for(;g;)if(g=i(g),g&&Wu(g)&&(g.data==="["&&m++,g.data==="]")){if(m===0)return i(g);m--}return g};return[u,h]}const nn=uk;function _L(t){return Pk(t)}function yL(t){return Pk(t,gL)}function Pk(t,e){const n=Cm();n.__VUE__=!0,ok(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:v=br,insertStaticContent:k}=t,I=(D,b,P,M=null,$=null,q=null,X=!1,te=null,ne=!!b.dynamicChildren)=>{if(D===b)return;D&&!yr(D,b)&&(M=N(D),J(D,$,q,!0),D=null),b.patchFlag===-2&&(ne=!1,b.dynamicChildren=null);const{type:Q,ref:re,shapeFlag:W}=b;switch(Q){case ki:T(D,b,P,M);break;case _n:g(D,b,P,M);break;case ua:D==null&&m(b,P,M,X);break;case rn:C(D,b,P,M,$,q,X,te,ne);break;default:W&1?E(D,b,P,M,$,q,X,te,ne):W&6?R(D,b,P,M,$,q,X,te,ne):(W&64||W&128)&&Q.process(D,b,P,M,$,q,X,te,ne,V)}re!=null&&$&&Hh(re,D&&D.ref,q,b||D,!b)},T=(D,b,P,M)=>{if(D==null)r(b.el=a(b.children),P,M);else{const $=b.el=D.el;b.children!==D.children&&c($,b.children)}},g=(D,b,P,M)=>{D==null?r(b.el=l(b.children||""),P,M):b.el=D.el},m=(D,b,P,M)=>{[D.el,D.anchor]=k(D.children,b,P,M,D.el,D.anchor)},_=({el:D,anchor:b},P,M)=>{let $;for(;D&&D!==b;)$=f(D),r(D,P,M),D=$;r(b,P,M)},d=({el:D,anchor:b})=>{let P;for(;D&&D!==b;)P=f(D),s(D),D=P;s(b)},E=(D,b,P,M,$,q,X,te,ne)=>{X=X||b.type==="svg",D==null?p(b,P,M,$,q,X,te,ne):A(D,b,$,q,X,te,ne)},p=(D,b,P,M,$,q,X,te)=>{let ne,Q;const{type:re,props:W,shapeFlag:K,transition:de,dirs:he}=D;if(ne=D.el=o(D.type,q,W&&W.is,W),K&8?u(ne,D.children):K&16&&w(D.children,ne,null,M,$,q&&re!=="foreignObject",X,te),he&&Ur(D,null,M,"created"),y(ne,D,D.scopeId,X,M),W){for(const Ee in W)Ee!=="value"&&!Ml(Ee)&&i(ne,Ee,null,W[Ee],q,D.children,M,$,oe);"value"in W&&i(ne,"value",null,W.value),(Q=W.onVnodeBeforeMount)&&Vn(Q,M,D)}Object.defineProperty(ne,"__vnode",{value:D,enumerable:!1}),Object.defineProperty(ne,"__vueParentComponent",{value:M,enumerable:!1}),he&&Ur(D,null,M,"beforeMount");const Te=(!$||$&&!$.pendingBranch)&&de&&!de.persisted;Te&&de.beforeEnter(ne),r(ne,b,P),((Q=W&&W.onVnodeMounted)||Te||he)&&nn(()=>{Q&&Vn(Q,M,D),Te&&de.enter(ne),he&&Ur(D,null,M,"mounted")},$)},y=(D,b,P,M,$)=>{if(P&&v(D,P),M)for(let q=0;q{for(let Q=ne;Q{const te=b.el=D.el;let{patchFlag:ne,dynamicChildren:Q,dirs:re}=b;ne|=D.patchFlag&16;const W=D.props||pt,K=b.props||pt;let de;P&&Vi(P,!1),(de=K.onVnodeBeforeUpdate)&&Vn(de,P,b,D),re&&Ur(b,D,P,"beforeUpdate"),P&&Vi(P,!0);const he=$&&b.type!=="foreignObject";if(Q?S(D.dynamicChildren,Q,te,P,M,he,q):X||Y(D,b,te,null,P,M,he,q,!1),ne>0){if(ne&16)O(te,b,W,K,P,M,$);else if(ne&2&&W.class!==K.class&&i(te,"class",null,K.class,$),ne&4&&i(te,"style",W.style,K.style,$),ne&8){const Te=b.dynamicProps;for(let Ee=0;Ee{de&&Vn(de,P,b,D),re&&Ur(b,D,P,"updated")},M)},S=(D,b,P,M,$,q,X)=>{for(let te=0;te{if(P!==M){if(P!==pt)for(const te in P)!Ml(te)&&!(te in M)&&i(D,te,P[te],null,X,b.children,$,q,oe);for(const te in M){if(Ml(te))continue;const ne=M[te],Q=P[te];ne!==Q&&te!=="value"&&i(D,te,Q,ne,X,b.children,$,q,oe)}"value"in M&&i(D,"value",P.value,M.value)}},C=(D,b,P,M,$,q,X,te,ne)=>{const Q=b.el=D?D.el:a(""),re=b.anchor=D?D.anchor:a("");let{patchFlag:W,dynamicChildren:K,slotScopeIds:de}=b;de&&(te=te?te.concat(de):de),D==null?(r(Q,P,M),r(re,P,M),w(b.children,P,re,$,q,X,te,ne)):W>0&&W&64&&K&&D.dynamicChildren?(S(D.dynamicChildren,K,P,$,q,X,te),(b.key!=null||$&&b===$.subTree)&&_y(D,b,!0)):Y(D,b,P,re,$,q,X,te,ne)},R=(D,b,P,M,$,q,X,te,ne)=>{b.slotScopeIds=te,D==null?b.shapeFlag&512?$.ctx.activate(b,P,M,X,ne):L(b,P,M,$,q,X,ne):G(D,b,ne)},L=(D,b,P,M,$,q,X)=>{const te=D.component=SL(D,M,$);if(Yc(D)&&(te.ctx.renderer=V),CL(te),te.asyncDep){if($&&$.registerDep(te,U),!D.el){const ne=te.subTree=It(_n);g(null,ne,b,P)}return}U(te,D,b,P,$,q,X)},G=(D,b,P)=>{const M=b.component=D.component;if(xD(D,b,P))if(M.asyncDep&&!M.asyncResolved){B(M,b,P);return}else M.next=b,ID(M.update),M.update();else b.el=D.el,M.vnode=b},U=(D,b,P,M,$,q,X)=>{const te=()=>{if(D.isMounted){let{next:re,bu:W,u:K,parent:de,vnode:he}=D,Te=re,Ee;Vi(D,!1),re?(re.el=he.el,B(D,re,X)):re=he,W&&aa(W),(Ee=re.props&&re.props.onVnodeBeforeUpdate)&&Vn(Ee,de,re,he),Vi(D,!0);const De=Ap(D),Oe=D.subTree;D.subTree=De,I(Oe,De,h(Oe.el),N(Oe),D,$,q),re.el=De.el,Te===null&&ay(D,De.el),K&&nn(K,$),(Ee=re.props&&re.props.onVnodeUpdated)&&nn(()=>Vn(Ee,de,re,he),$),ak(D)}else{let re;const{el:W,props:K}=b,{bm:de,m:he,parent:Te}=D,Ee=ao(b);if(Vi(D,!1),de&&aa(de),!Ee&&(re=K&&K.onVnodeBeforeMount)&&Vn(re,Te,b),Vi(D,!0),W&&H){const De=()=>{D.subTree=Ap(D),H(W,D.subTree,D,$,null)};Ee?b.type.__asyncLoader().then(()=>!D.isUnmounted&&De()):De()}else{const De=D.subTree=Ap(D);I(null,De,P,M,D,$,q),b.el=De.el}if(he&&nn(he,$),!Ee&&(re=K&&K.onVnodeMounted)){const De=b;nn(()=>Vn(re,Te,De),$)}(b.shapeFlag&256||Te&&ao(Te.vnode)&&Te.vnode.shapeFlag&256)&&D.a&&nn(D.a,$),D.isMounted=!0,Dm(D),b=P=M=null}},ne=D.effect=new Q_(te,()=>td(Q),D.scope),Q=D.update=()=>ne.run();Q.id=D.uid,Vi(D,!0),Q()},B=(D,b,P)=>{b.component=D;const M=D.vnode.props;D.vnode=b,D.next=null,fL(D,b.props,M,P),mL(D,b.children,P),Wa(),lE(),Ga()},Y=(D,b,P,M,$,q,X,te,ne=!1)=>{const Q=D&&D.children,re=D?D.shapeFlag:0,W=b.children,{patchFlag:K,shapeFlag:de}=b;if(K>0){if(K&128){j(Q,W,P,M,$,q,X,te,ne);return}else if(K&256){F(Q,W,P,M,$,q,X,te,ne);return}}de&8?(re&16&&oe(Q,$,q),W!==Q&&u(P,W)):re&16?de&16?j(Q,W,P,M,$,q,X,te,ne):oe(Q,$,q,!0):(re&8&&u(P,""),de&16&&w(W,P,M,$,q,X,te,ne))},F=(D,b,P,M,$,q,X,te,ne)=>{D=D||ia,b=b||ia;const Q=D.length,re=b.length,W=Math.min(Q,re);let K;for(K=0;Kre?oe(D,$,q,!0,!1,W):w(b,P,M,$,q,X,te,ne,W)},j=(D,b,P,M,$,q,X,te,ne)=>{let Q=0;const re=b.length;let W=D.length-1,K=re-1;for(;Q<=W&&Q<=K;){const de=D[Q],he=b[Q]=ne?ri(b[Q]):rr(b[Q]);if(yr(de,he))I(de,he,P,null,$,q,X,te,ne);else break;Q++}for(;Q<=W&&Q<=K;){const de=D[W],he=b[K]=ne?ri(b[K]):rr(b[K]);if(yr(de,he))I(de,he,P,null,$,q,X,te,ne);else break;W--,K--}if(Q>W){if(Q<=K){const de=K+1,he=deK)for(;Q<=W;)J(D[Q],$,q,!0),Q++;else{const de=Q,he=Q,Te=new Map;for(Q=he;Q<=K;Q++){const ft=b[Q]=ne?ri(b[Q]):rr(b[Q]);ft.key!=null&&Te.set(ft.key,Q)}let Ee,De=0;const Oe=K-he+1;let Ht=!1,Sn=0;const fs=new Array(Oe);for(Q=0;Q=Oe){J(ft,$,q,!0);continue}let Pt;if(ft.key!=null)Pt=Te.get(ft.key);else for(Ee=he;Ee<=K;Ee++)if(fs[Ee-he]===0&&yr(ft,b[Ee])){Pt=Ee;break}Pt===void 0?J(ft,$,q,!0):(fs[Pt-he]=Q+1,Pt>=Sn?Sn=Pt:Ht=!0,I(ft,b[Pt],P,null,$,q,X,te,ne),De++)}const Lr=Ht?vL(fs):ia;for(Ee=Lr.length-1,Q=Oe-1;Q>=0;Q--){const ft=he+Q,Pt=b[ft],Dn=ft+1{const{el:q,type:X,transition:te,children:ne,shapeFlag:Q}=D;if(Q&6){Z(D.component.subTree,b,P,M);return}if(Q&128){D.suspense.move(b,P,M);return}if(Q&64){X.move(D,b,P,V);return}if(X===rn){r(q,b,P);for(let W=0;Wte.enter(q),$);else{const{leave:W,delayLeave:K,afterLeave:de}=te,he=()=>r(q,b,P),Te=()=>{W(q,()=>{he(),de&&de()})};K?K(q,he,Te):Te()}else r(q,b,P)},J=(D,b,P,M=!1,$=!1)=>{const{type:q,props:X,ref:te,children:ne,dynamicChildren:Q,shapeFlag:re,patchFlag:W,dirs:K}=D;if(te!=null&&Hh(te,null,P,D,!0),re&256){b.ctx.deactivate(D);return}const de=re&1&&K,he=!ao(D);let Te;if(he&&(Te=X&&X.onVnodeBeforeUnmount)&&Vn(Te,b,D),re&6)ie(D.component,P,M);else{if(re&128){D.suspense.unmount(P,M);return}de&&Ur(D,null,b,"beforeUnmount"),re&64?D.type.remove(D,b,P,$,V,M):Q&&(q!==rn||W>0&&W&64)?oe(Q,b,P,!1,!0):(q===rn&&W&384||!$&&re&16)&&oe(ne,b,P),M&&se(D)}(he&&(Te=X&&X.onVnodeUnmounted)||de)&&nn(()=>{Te&&Vn(Te,b,D),de&&Ur(D,null,b,"unmounted")},P)},se=D=>{const{type:b,el:P,anchor:M,transition:$}=D;if(b===rn){le(P,M);return}if(b===ua){d(D);return}const q=()=>{s(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(D.shapeFlag&1&&$&&!$.persisted){const{leave:X,delayLeave:te}=$,ne=()=>X(P,q);te?te(D.el,q,ne):ne()}else q()},le=(D,b)=>{let P;for(;D!==b;)P=f(D),s(D),D=P;s(b)},ie=(D,b,P)=>{const{bum:M,scope:$,update:q,subTree:X,um:te}=D;M&&aa(M),$.stop(),q&&(q.active=!1,J(X,D,b,P)),te&&nn(te,b),nn(()=>{D.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve()),AD(D)},oe=(D,b,P,M=!1,$=!1,q=0)=>{for(let X=q;XD.shapeFlag&6?N(D.component.subTree):D.shapeFlag&128?D.suspense.next():f(D.anchor||D.el),x=(D,b,P)=>{D==null?b._vnode&&J(b._vnode,null,null,!0):I(b._vnode||null,D,b,null,null,null,P),lE(),Uh(),b._vnode=D},V={p:I,um:J,m:Z,r:se,mt:L,mc:w,pc:Y,pbc:S,n:N,o:t};let z,H;return e&&([z,H]=e(V)),{render:x,hydrate:z,createApp:uL(x,z)}}function Vi({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function _y(t,e,n=!1){const r=t.children,s=e.children;if(we(r)&&we(s))for(let i=0;i>1,t[n[a]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const EL=t=>t.__isTeleport,Vl=t=>t&&(t.disabled||t.disabled===""),TE=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Um=(t,e)=>{const n=t&&t.to;return kt(n)?e?e(n):null:n},wL={__isTeleport:!0,process(t,e,n,r,s,i,o,a,l,c){const{mc:u,pc:h,pbc:f,o:{insert:v,querySelector:k,createText:I,createComment:T}}=c,g=Vl(e.props);let{shapeFlag:m,children:_,dynamicChildren:d}=e;if(t==null){const E=e.el=I(""),p=e.anchor=I("");v(E,n,r),v(p,n,r);const y=e.target=Um(e.props,k),w=e.targetAnchor=I("");y&&(v(w,y),o=o||TE(y));const A=(S,O)=>{m&16&&u(_,S,O,s,i,o,a,l)};g?A(n,p):y&&A(y,w)}else{e.el=t.el;const E=e.anchor=t.anchor,p=e.target=t.target,y=e.targetAnchor=t.targetAnchor,w=Vl(t.props),A=w?n:p,S=w?E:y;if(o=o||TE(p),d?(f(t.dynamicChildren,d,A,s,i,o,a),_y(t,e,!0)):l||h(t,e,A,S,s,i,o,a,!1),g)w||Gu(e,n,E,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const O=e.target=Um(e.props,k);O&&Gu(e,O,null,c,0)}else w&&Gu(e,p,y,c,1)}Ok(e)},remove(t,e,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:h,props:f}=t;if(h&&i(u),(o||!Vl(f))&&(i(c),a&16))for(let v=0;v0?or||ia:null,Nk(),Ta>0&&or&&or.push(t),t}function MX(t,e,n,r,s,i){return Dk(xk(t,e,n,r,s,i,!0))}function bs(t,e,n,r,s){return Dk(It(t,e,n,r,s,!0))}function ba(t){return t?t.__v_isVNode===!0:!1}function yr(t,e){return t.type===e.type&&t.key===e.key}const ld="__vInternal",Lk=({key:t})=>t??null,gh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?kt(t)||rt(t)||ke(t)?{i:Xt,r:t,k:e,f:!!n}:t:null);function xk(t,e=null,n=null,r=0,s=null,i=t===rn?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Lk(e),ref:e&&gh(e),scopeId:sd,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Xt};return a?(yy(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=kt(n)?8:16),Ta>0&&!o&&or&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&or.push(l),l}const It=bL;function bL(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===wk)&&(t=_n),ba(t)){const a=Ms(t,e,!0);return n&&yy(a,n),Ta>0&&!i&&or&&(a.shapeFlag&6?or[or.indexOf(t)]=a:or.push(a)),a.patchFlag|=-2,a}if(PL(t)&&(t=t.__vccOpts),e){e=Mk(e);let{class:a,style:l}=e;a&&!kt(a)&&(e.class=Qf(a)),ot(l)&&(JI(l)&&!we(l)&&(l=jt({},l)),e.style=zf(l))}const o=kt(t)?1:ck(t)?128:EL(t)?64:ot(t)?4:ke(t)?2:0;return xk(t,e,n,r,s,o,i,!0)}function Mk(t){return t?JI(t)||ld in t?jt({},t):t:null}function Ms(t,e,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=t,a=e?Vk(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Lk(a),ref:e&&e.ref?n&&s?we(s)?s.concat(gh(e)):[s,gh(e)]:gh(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==rn?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ms(t.ssContent),ssFallback:t.ssFallback&&Ms(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Fk(t=" ",e=0){return It(ki,null,t,e)}function FX(t,e){const n=It(ua,null,t);return n.staticCount=e,n}function VX(t="",e=!1){return e?($r(),bs(_n,null,t)):It(_n,null,t)}function rr(t){return t==null||typeof t=="boolean"?It(_n):we(t)?It(rn,null,t.slice()):typeof t=="object"?ri(t):It(ki,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ms(t)}function yy(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(we(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),yy(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(ld in e)?e._ctx=Xt:s===3&&Xt&&(Xt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ke(e)?(e={default:e,_ctx:Xt},n=32):(e=String(e),r&64?(n=16,e=[Fk(e)]):n=8);t.children=e,t.shapeFlag|=n}function Vk(...t){const e={};for(let n=0;nMt||Xt;let vy,Bo,IE="__VUE_INSTANCE_SETTERS__";(Bo=Cm()[IE])||(Bo=Cm()[IE]=[]),Bo.push(t=>Mt=t),vy=t=>{Bo.length>1?Bo.forEach(e=>e(t)):Bo[0](t)};const Si=t=>{vy(t),t.scope.on()},gi=()=>{Mt&&Mt.scope.off(),vy(null)};function Uk(t){return t.vnode.shapeFlag&4}let Ia=!1;function CL(t,e=!1){Ia=e;const{props:n,children:r}=t.vnode,s=Uk(t);hL(t,n,s,e),pL(t,r);const i=s?RL(t,e):void 0;return Ia=!1,i}function RL(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=xs(new Proxy(t.ctx,nL));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?Bk(t):null;Si(t),Wa();const i=mi(r,t,0,[t.props,s]);if(Ga(),gi(),G_(i)){if(i.then(gi,gi),e)return i.then(o=>{jm(t,o,e)}).catch(o=>{Ya(o,t,0)});t.asyncDep=i}else jm(t,i,e)}else jk(t,e)}function jm(t,e,n){ke(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ot(e)&&(t.devtoolsRawSetupState=e,t.setupState=ek(e)),jk(t,n)}let kE;function jk(t,e,n){const r=t.type;if(!t.render){if(!e&&kE&&!r.render){const s=r.template||py(t).template;if(s){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=jt(jt({isCustomElement:i,delimiters:a},o),l);r.render=kE(s,c)}}t.render=r.render||br}Si(t),Wa(),sL(t),Ga(),gi()}function AL(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return $n(t,"get","$attrs"),e[n]}}))}function Bk(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return AL(t)},slots:t.slots,emit:t.emit,expose:e}}function cd(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ek(xs(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Fl)return Fl[n](t)},has(e,n){return n in e||n in Fl}}))}function Bm(t,e=!0){return ke(t)?t.displayName||t.name:t.name||e&&t.__name}function PL(t){return ke(t)&&"__vccOpts"in t}const lt=(t,e)=>wD(t,e,Ia);function On(t,e,n){const r=arguments.length;return r===2?ot(e)&&!we(e)?ba(e)?It(t,null,[e]):It(t,e):It(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ba(n)&&(n=[n]),It(t,e,n))}const OL=Symbol.for("v-scx"),NL=()=>Ut(OL),$m="3.3.4",DL="http://www.w3.org/2000/svg",Qi=typeof document<"u"?document:null,SE=Qi&&Qi.createElement("template"),LL={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?Qi.createElementNS(DL,t):Qi.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Qi.createTextNode(t),createComment:t=>Qi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Qi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{SE.innerHTML=r?`${t}`:t;const a=SE.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function xL(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function ML(t,e,n){const r=t.style,s=kt(n);if(n&&!s){if(e&&!kt(e))for(const i in e)n[i]==null&&Hm(r,i,"");for(const i in n)Hm(r,i,n[i])}else{const i=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const CE=/\s*!important$/;function Hm(t,e,n){if(we(n))n.forEach(r=>Hm(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=FL(t,e);CE.test(n)?t.setProperty(So(r),n.replace(CE,""),"important"):t[r]=n}}const RE=["Webkit","Moz","ms"],xp={};function FL(t,e){const n=xp[e];if(n)return n;let r=es(e);if(r!=="filter"&&r in t)return xp[e]=r;r=Kf(r);for(let s=0;sMp||(HL.then(()=>Mp=0),Mp=Date.now());function GL(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lr(YL(r,n.value),e,5,[r])};return n.value=t,n.attached=WL(),n}function YL(t,e){if(we(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const OE=/^on[a-z]/,qL=(t,e,n,r,s=!1,i,o,a,l)=>{e==="class"?xL(t,r,s):e==="style"?ML(t,n,r):$c(e)?H_(e)||BL(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):KL(t,e,r,s))?UL(t,e,r,i,o,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),VL(t,e,r,s))};function KL(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&OE.test(e)&&ke(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||OE.test(e)&&kt(n)?!1:e in t}const Xs="transition",fl="animation",ud=(t,{slots:e})=>On(GD,zL(t),e);ud.displayName="Transition";const $k={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ud.props=jt({},dk,$k);const Ui=(t,e=[])=>{we(t)?t.forEach(n=>n(...e)):t&&t(...e)},NE=t=>t?we(t)?t.some(e=>e.length>1):t.length>1:!1;function zL(t){const e={};for(const C in t)C in $k||(e[C]=t[C]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=t,k=QL(s),I=k&&k[0],T=k&&k[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:_,onLeave:d,onLeaveCancelled:E,onBeforeAppear:p=g,onAppear:y=m,onAppearCancelled:w=_}=e,A=(C,R,L)=>{ji(C,R?u:a),ji(C,R?c:o),L&&L()},S=(C,R)=>{C._isLeaving=!1,ji(C,h),ji(C,v),ji(C,f),R&&R()},O=C=>(R,L)=>{const G=C?y:m,U=()=>A(R,C,L);Ui(G,[R,U]),DE(()=>{ji(R,C?l:i),Js(R,C?u:a),NE(G)||LE(R,r,I,U)})};return jt(e,{onBeforeEnter(C){Ui(g,[C]),Js(C,i),Js(C,o)},onBeforeAppear(C){Ui(p,[C]),Js(C,l),Js(C,c)},onEnter:O(!1),onAppear:O(!0),onLeave(C,R){C._isLeaving=!0;const L=()=>S(C,R);Js(C,h),ZL(),Js(C,f),DE(()=>{C._isLeaving&&(ji(C,h),Js(C,v),NE(d)||LE(C,r,T,L))}),Ui(d,[C,L])},onEnterCancelled(C){A(C,!1),Ui(_,[C])},onAppearCancelled(C){A(C,!0),Ui(w,[C])},onLeaveCancelled(C){S(C),Ui(E,[C])}})}function QL(t){if(t==null)return null;if(ot(t))return[Fp(t.enter),Fp(t.leave)];{const e=Fp(t);return[e,e]}}function Fp(t){return VI(t)}function Js(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function ji(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function DE(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let XL=0;function LE(t,e,n,r){const s=t._endId=++XL,i=()=>{s===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=JL(t,e);if(!o)return r();const c=o+"end";let u=0;const h=()=>{t.removeEventListener(c,f),i()},f=v=>{v.target===t&&++u>=l&&h()};setTimeout(()=>{u(n[k]||"").split(", "),s=r(`${Xs}Delay`),i=r(`${Xs}Duration`),o=xE(s,i),a=r(`${fl}Delay`),l=r(`${fl}Duration`),c=xE(a,l);let u=null,h=0,f=0;e===Xs?o>0&&(u=Xs,h=o,f=i.length):e===fl?c>0&&(u=fl,h=c,f=l.length):(h=Math.max(o,c),u=h>0?o>c?Xs:fl:null,f=u?u===Xs?i.length:l.length:0);const v=u===Xs&&/\b(transform|all)(,|$)/.test(r(`${Xs}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:v}}function xE(t,e){for(;t.lengthME(n)+ME(t[r])))}function ME(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ZL(){return document.body.offsetHeight}const ka=t=>{const e=t.props["onUpdate:modelValue"]||!1;return we(e)?n=>aa(e,n):e};function ex(t){t.target.composing=!0}function FE(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const UX={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t._assign=ka(s);const i=r||s.props&&s.props.type==="number";ii(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),i&&(a=Mh(a)),t._assign(a)}),n&&ii(t,"change",()=>{t.value=t.value.trim()}),e||(ii(t,"compositionstart",ex),ii(t,"compositionend",FE),ii(t,"change",FE))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:s}},i){if(t._assign=ka(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(s||t.type==="number")&&Mh(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},jX={deep:!0,created(t,e,n){t._assign=ka(n),ii(t,"change",()=>{const r=t._modelValue,s=dc(t),i=t.checked,o=t._assign;if(we(r)){const a=q_(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if($a(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Hk(t,i))})},mounted:VE,beforeUpdate(t,e,n){t._assign=ka(n),VE(t,e,n)}};function VE(t,{value:e,oldValue:n},r){t._modelValue=e,we(e)?t.checked=q_(e,r.props.value)>-1:$a(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Hc(e,Hk(t,!0)))}const BX={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=$a(e);ii(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Mh(dc(o)):dc(o));t._assign(t.multiple?s?new Set(i):i:i[0])}),t._assign=ka(r)},mounted(t,{value:e}){UE(t,e)},beforeUpdate(t,e,n){t._assign=ka(n)},updated(t,{value:e}){UE(t,e)}};function UE(t,e){const n=t.multiple;if(!(n&&!we(e)&&!$a(e))){for(let r=0,s=t.options.length;r-1:i.selected=e.has(o);else if(Hc(dc(i),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function dc(t){return"_value"in t?t._value:t.value}function Hk(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const tx=["ctrl","shift","alt","meta"],nx={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>tx.some(n=>t[`${n}Key`]&&!e.includes(n))},$X=(t,e)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=So(n.key);if(e.some(s=>s===r||rx[s]===r))return t(n)},Wk=jt({patchProp:qL},LL);let jl,jE=!1;function sx(){return jl||(jl=_L(Wk))}function ix(){return jl=jE?jl:yL(Wk),jE=!0,jl}const ox=(...t)=>{const e=sx().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=Gk(r);if(!s)return;const i=e._component;!ke(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e},ax=(...t)=>{const e=ix().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=Gk(r);if(s)return n(s,!0,s instanceof SVGElement)},e};function Gk(t){return kt(t)?document.querySelector(t):t}const lx=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,cx=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ux=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function hx(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){fx(t);return}return e}function fx(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Wh(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!ux.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(lx.test(t)||cx.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,hx)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const dx=/#/g,px=/&/g,mx=/=/g,Ey=/\+/g,gx=/%5e/gi,_x=/%60/gi,yx=/%7c/gi,vx=/%20/gi;function Ex(t){return encodeURI(""+t).replace(yx,"|")}function Wm(t){return Ex(typeof t=="string"?t:JSON.stringify(t)).replace(Ey,"%2B").replace(vx,"+").replace(dx,"%23").replace(px,"%26").replace(_x,"`").replace(gx,"^")}function Vp(t){return Wm(t).replace(mx,"%3D")}function Gh(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function wx(t){return Gh(t.replace(Ey," "))}function Tx(t){return Gh(t.replace(Ey," "))}function bx(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=wx(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=Tx(r[2]||"");e[s]===void 0?e[s]=i:Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]}return e}function Ix(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Vp(t)}=${Wm(n)}`).join("&"):`${Vp(t)}=${Wm(e)}`:Vp(t)}function kx(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Ix(e,t[e])).filter(Boolean).join("&")}const Sx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Cx=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Rx=/^([/\\]\s*){2,}[^/\\]/;function Co(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?Sx.test(t):Cx.test(t)||(e.acceptRelative?Rx.test(t):!1)}const Ax=/^[\s\0]*(blob|data|javascript|vbscript):$/i;function Px(t){return!!t&&Ax.test(t)}const Ox=/\/$|\/\?/;function Gm(t="",e=!1){return e?Ox.test(t):t.endsWith("/")}function Yk(t="",e=!1){if(!e)return(Gm(t)?t.slice(0,-1):t)||"/";if(!Gm(t,!0))return t||"/";const[n,...r]=t.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Ym(t="",e=!1){if(!e)return t.endsWith("/")?t:t+"/";if(Gm(t,!0))return t||"/";const[n,...r]=t.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}function Nx(t=""){return t.startsWith("/")}function BE(t=""){return Nx(t)?t:"/"+t}function Dx(t,e){if(Kk(e)||Co(t))return t;const n=Yk(e);return t.startsWith(n)?t:qa(n,t)}function $E(t,e){if(Kk(e))return t;const n=Yk(e);if(!t.startsWith(n))return t;const r=t.slice(n.length);return r[0]==="/"?r:"/"+r}function qk(t,e){const n=hd(t),r={...bx(n.search),...e};return n.search=kx(r),Mx(n)}function Kk(t){return!t||t==="/"}function Lx(t){return t&&t!=="/"}const xx=/^\.?\//;function qa(t,...e){let n=t||"";for(const r of e.filter(s=>Lx(s)))if(n){const s=r.replace(xx,"");n=Ym(n)+s}else n=r;return n}function qm(t,e,n={}){return n.trailingSlash||(t=Ym(t),e=Ym(e)),n.leadingSlash||(t=BE(t),e=BE(e)),n.encoding||(t=Gh(t),e=Gh(e)),t===e}function hd(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(n){const[,h,f=""]=n;return{protocol:h,pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!Co(t,{acceptRelative:!0}))return e?hd(e+t):HE(t);const[,r="",s,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=HE(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:c,hash:u}}function HE(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function Mx(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",s=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+s+i+e+n+r}class Fx extends Error{constructor(e,n){super(e,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Vx(t){var l,c,u,h,f;const e=((l=t.error)==null?void 0:l.message)||((c=t.error)==null?void 0:c.toString())||"",n=((u=t.request)==null?void 0:u.method)||((h=t.options)==null?void 0:h.method)||"GET",r=((f=t.request)==null?void 0:f.url)||String(t.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"",o=`${s}: ${i}${e?` ${e}`:""}`,a=new Fx(o,t.error?{cause:t.error}:void 0);for(const v of["request","options","response"])Object.defineProperty(a,v,{get(){return t[v]}});for(const[v,k]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,v,{get(){return t.response&&t.response[k]}});return a}const Ux=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function WE(t="GET"){return Ux.has(t.toUpperCase())}function jx(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const Bx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),$x=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Hx(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return $x.test(e)?"json":Bx.has(e)||e.startsWith("text/")?"text":"blob"}function Wx(t,e,n=globalThis.Headers){const r={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(r.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(r.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){r.headers=new n((e==null?void 0:e.headers)||{});for(const[s,i]of new n((t==null?void 0:t.headers)||{}))r.headers.set(s,i)}return r}const Gx=new Set([408,409,425,429,500,502,503,504]),Yx=new Set([101,204,205,304]);function zk(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=WE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):Gx.has(h))){const f=a.options.retryDelay||0;return f>0&&await new Promise(v=>setTimeout(v,f)),i(a.request,{...a.options,retry:u-1,timeout:a.options.timeout})}}const c=Vx(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(l,c={}){var f;const u={request:l,options:Wx(c,t.defaults,n),response:void 0,error:void 0};if(u.options.method=(f=u.options.method)==null?void 0:f.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Dx(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=qk(u.request,{...u.options.params,...u.options.query}))),u.options.body&&WE(u.options.method)&&(jx(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"))),!u.options.signal&&u.options.timeout){const v=new r;setTimeout(()=>v.abort(),u.options.timeout),u.options.signal=v.signal}try{u.response=await e(u.request,u.options)}catch(v){return u.error=v,u.options.onRequestError&&await u.options.onRequestError(u),await s(u)}if(u.response.body&&!Yx.has(u.response.status)&&u.options.method!=="HEAD"){const v=(u.options.parseResponse?"json":u.options.responseType)||Hx(u.response.headers.get("content-type")||"");switch(v){case"json":{const k=await u.response.text(),I=u.options.parseResponse||Wh;u.response._data=I(k);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[v]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await s(u)):u.response},o=async function(l,c){return(await i(l,c))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={})=>zk({...t,defaults:{...t.defaults,...a}}),o}const wy=function(){if(typeof globalThis<"u")return globalThis;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")}(),qx=wy.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Kx=wy.Headers,zx=wy.AbortController,Qx=zk({fetch:qx,Headers:Kx,AbortController:zx}),Xx=Qx,Jx=()=>{var t;return((t=window==null?void 0:window.__NUXT__)==null?void 0:t.config)||{}},Yh=Jx().app,Zx=()=>Yh.baseURL,eM=()=>Yh.buildAssetsDir,tM=(...t)=>qa(Qk(),eM(),...t),Qk=(...t)=>{const e=Yh.cdnURL||Yh.baseURL;return t.length?qa(e,...t):e};globalThis.__buildAssetsURL=tM,globalThis.__publicAssetsURL=Qk;function Km(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Km(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const nM={run:t=>t()},rM=()=>nM,Xk=typeof console.createTask<"u"?console.createTask:rM;function sM(t,e){const n=e.shift(),r=Xk(n);return t.reduce((s,i)=>s.then(()=>r.run(()=>i(...e))),Promise.resolve())}function iM(t,e){const n=e.shift(),r=Xk(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}function Up(t,e){for(const n of[...t])n(e)}class oM{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(e,s),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const s of r)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Km(e),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(e){const n=Km(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(sM,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(iM,e,...n)}callHookWith(e,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Up(this._before,s);const i=e(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Up(this._after,s)}):(this._after&&s&&Up(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Jk(){return new oM}function aM(t={}){let e,n=!1;const r=o=>{if(e&&e!==o)throw new Error("Context conflict")};let s;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&e===void 0){const o=s.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{r(o),e=o;try{return s?s.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const l=()=>{e=o},c=()=>e===o?l:void 0;zm.add(c);try{const u=s?s.run(o,a):a();return n||(e=void 0),await u}finally{zm.delete(c)}}}}function lM(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=aM({...t,...r})),e[n],e[n]}}}const qh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},GE="__unctx__",cM=qh[GE]||(qh[GE]=lM()),uM=(t,e={})=>cM.get(t,e),YE="__unctx_async_handlers__",zm=qh[YE]||(qh[YE]=new Set);function _i(t){const e=[];for(const s of zm){const i=s();i&&e.push(i)}const n=()=>{for(const s of e)s()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Zk=uM("nuxt-app",{asyncContext:!1}),hM="__nuxt_plugin";function fM(t){let e=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.7.4"},get vue(){return n.vueApp.version}},payload:ts({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>gM(n,s),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...t};n.hooks=Jk(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Yu(n,o,i),Yu(n.vueApp.config.globalProperties,o,i)},Yu(n.vueApp,"$nuxt",n),Yu(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ct;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=ts(n.payload.config);return n.provide("config",r),n}async function dM(t,e){if(e.hooks&&t.hooks.addHooks(e.hooks),typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const r in n)t.provide(r,n[r])}}async function pM(t,e){const n=[],r=[];for(const s of e){const i=dM(t,s);s.parallel?n.push(i.catch(o=>r.push(o))):await i}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function en(t){return typeof t=="function"?t:(delete t.name,Object.assign(t.setup||(()=>{}),t,{[hM]:!0}))}const mM=en;function gM(t,e,n){const r=()=>n?e(...n):e();return Zk.set(t),t.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function ct(){var e;let t;if(my()&&(t=(e=Or())==null?void 0:e.appContext.app.$nuxt),t=t||Zk.tryUse(),!t)throw new Error("[nuxt] instance unavailable");return t}/*! @__NO_SIDE_EFFECTS__ */function fd(){return ct().$config}function Yu(t,e,n){Object.defineProperty(t,e,{get:()=>n})}/** +function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const pt={},ia=[],br=()=>{},kN=()=>!1,SN=/^on[^a-z]/,$c=t=>SN.test(t),H_=t=>t.startsWith("onUpdate:"),jt=Object.assign,W_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},CN=Object.prototype.hasOwnProperty,Ke=(t,e)=>CN.call(t,e),we=Array.isArray,oa=t=>Ha(t)==="[object Map]",$a=t=>Ha(t)==="[object Set]",tE=t=>Ha(t)==="[object Date]",RN=t=>Ha(t)==="[object RegExp]",ke=t=>typeof t=="function",kt=t=>typeof t=="string",oc=t=>typeof t=="symbol",ot=t=>t!==null&&typeof t=="object",G_=t=>ot(t)&&ke(t.then)&&ke(t.catch),VI=Object.prototype.toString,Ha=t=>VI.call(t),AN=t=>Ha(t).slice(8,-1),UI=t=>Ha(t)==="[object Object]",Y_=t=>kt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,xl=$_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zf=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},PN=/-(\w)/g,es=zf(t=>t.replace(PN,(e,n)=>n?n.toUpperCase():"")),ON=/\B([A-Z])/g,So=zf(t=>t.replace(ON,"-$1").toLowerCase()),Qf=zf(t=>t.charAt(0).toUpperCase()+t.slice(1)),Rp=zf(t=>t?`on${Qf(t)}`:""),ac=(t,e)=>!Object.is(t,e),aa=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Vh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},jI=t=>{const e=kt(t)?Number(t):NaN;return isNaN(e)?t:e};let nE;const Cm=()=>nE||(nE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xf(t){if(we(t)){const e={};for(let n=0;n{if(n){const r=n.split(DN);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Jf(t){let e="";if(kt(t))e=t;else if(we(t))for(let n=0;nHc(n,e))}const kX=t=>kt(t)?t:t==null?"":we(t)||ot(t)&&(t.toString===VI||!ke(t.toString))?JSON.stringify(t,$I,2):String(t),$I=(t,e)=>e&&e.__v_isRef?$I(t,e.value):oa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:$a(e)?{[`Set(${e.size})`]:[...e.values()]}:ot(e)&&!we(e)&&!UI(e)?String(e):e;let Yn;class HI{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Yn,!e&&Yn&&(this.index=(Yn.scopes||(Yn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Yn;try{return Yn=this,e()}finally{Yn=n}}}on(){Yn=this}off(){Yn=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},WI=t=>(t.w&Ii)>0,GI=t=>(t.n&Ii)>0,BN=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":we(t)?Y_(n)&&a.push(o.get("length")):(a.push(o.get(oo)),oa(t)&&a.push(o.get(Am)));break;case"delete":we(t)||(a.push(o.get(oo)),oa(t)&&a.push(o.get(Am)));break;case"set":oa(t)&&a.push(o.get(oo));break}if(a.length===1)a[0]&&Pm(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Pm(z_(l))}}function Pm(t,e){const n=we(t)?t:[...t];for(const r of n)r.computed&&sE(r);for(const r of n)r.computed||sE(r)}function sE(t,e){(t!==_r||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function HN(t,e){var n;return(n=Uh.get(t))==null?void 0:n.get(e)}const WN=$_("__proto__,__v_isRef,__isVue"),KI=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(oc)),GN=X_(),YN=X_(!1,!0),qN=X_(!0),iE=KN();function KN(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Ve(this);for(let i=0,o=this.length;i{t[e]=function(...n){Wa();const r=Ve(this)[e].apply(this,n);return Ga(),r}}),t}function zN(t){const e=Ve(this);return Hn(e,"has",t),e.hasOwnProperty(t)}function X_(t=!1,e=!1){return function(r,s,i){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&i===(t?e?hD:ZI:e?JI:XI).get(r))return r;const o=we(r);if(!t){if(o&&Ke(iE,s))return Reflect.get(iE,s,i);if(s==="hasOwnProperty")return zN}const a=Reflect.get(r,s,i);return(oc(s)?KI.has(s):WN(s))||(t||Hn(r,"get",s),e)?a:rt(a)?o&&Y_(s)?a:a.value:ot(a)?t?td(a):ts(a):a}}const QN=zI(),XN=zI(!0);function zI(t=!1){return function(n,r,s,i){let o=n[r];if(po(o)&&rt(o)&&!rt(s))return!1;if(!t&&(!jh(s)&&!po(s)&&(o=Ve(o),s=Ve(s)),!we(n)&&rt(o)&&!rt(s)))return o.value=s,!0;const a=we(n)&&Y_(r)?Number(r)t,ed=t=>Reflect.getPrototypeOf(t);function Uu(t,e,n=!1,r=!1){t=t.__v_raw;const s=Ve(t),i=Ve(e);n||(e!==i&&Hn(s,"get",e),Hn(s,"get",i));const{has:o}=ed(s),a=r?J_:n?ty:lc;if(o.call(s,e))return a(t.get(e));if(o.call(s,i))return a(t.get(i));t!==s&&t.get(e)}function ju(t,e=!1){const n=this.__v_raw,r=Ve(n),s=Ve(t);return e||(t!==s&&Hn(r,"has",t),Hn(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Bu(t,e=!1){return t=t.__v_raw,!e&&Hn(Ve(t),"iterate",oo),Reflect.get(t,"size",t)}function oE(t){t=Ve(t);const e=Ve(this);return ed(e).has.call(e,t)||(e.add(t),Ms(e,"add",t,t)),this}function aE(t,e){e=Ve(e);const n=Ve(this),{has:r,get:s}=ed(n);let i=r.call(n,t);i||(t=Ve(t),i=r.call(n,t));const o=s.call(n,t);return n.set(t,e),i?ac(e,o)&&Ms(n,"set",t,e):Ms(n,"add",t,e),this}function lE(t){const e=Ve(this),{has:n,get:r}=ed(e);let s=n.call(e,t);s||(t=Ve(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&Ms(e,"delete",t,void 0),i}function cE(){const t=Ve(this),e=t.size!==0,n=t.clear();return e&&Ms(t,"clear",void 0,void 0),n}function $u(t,e){return function(r,s){const i=this,o=i.__v_raw,a=Ve(o),l=e?J_:t?ty:lc;return!t&&Hn(a,"iterate",oo),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}}function Hu(t,e,n){return function(...r){const s=this.__v_raw,i=Ve(s),o=oa(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=s[t](...r),u=n?J_:e?ty:lc;return!e&&Hn(i,"iterate",l?Am:oo),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function zs(t){return function(...e){return t==="delete"?!1:this}}function rD(){const t={get(i){return Uu(this,i)},get size(){return Bu(this)},has:ju,add:oE,set:aE,delete:lE,clear:cE,forEach:$u(!1,!1)},e={get(i){return Uu(this,i,!1,!0)},get size(){return Bu(this)},has:ju,add:oE,set:aE,delete:lE,clear:cE,forEach:$u(!1,!0)},n={get(i){return Uu(this,i,!0)},get size(){return Bu(this,!0)},has(i){return ju.call(this,i,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:$u(!0,!1)},r={get(i){return Uu(this,i,!0,!0)},get size(){return Bu(this,!0)},has(i){return ju.call(this,i,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:$u(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Hu(i,!1,!1),n[i]=Hu(i,!0,!1),e[i]=Hu(i,!1,!0),r[i]=Hu(i,!0,!0)}),[t,n,e,r]}const[sD,iD,oD,aD]=rD();function Z_(t,e){const n=e?t?aD:oD:t?iD:sD;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(Ke(n,s)&&s in r?n:r,s,i)}const lD={get:Z_(!1,!1)},cD={get:Z_(!1,!0)},uD={get:Z_(!0,!1)},XI=new WeakMap,JI=new WeakMap,ZI=new WeakMap,hD=new WeakMap;function fD(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dD(t){return t.__v_skip||!Object.isExtensible(t)?0:fD(AN(t))}function ts(t){return po(t)?t:ey(t,!1,QI,lD,XI)}function Gc(t){return ey(t,!1,nD,cD,JI)}function td(t){return ey(t,!0,tD,uD,ZI)}function ey(t,e,n,r,s){if(!ot(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const o=dD(t);if(o===0)return t;const a=new Proxy(t,o===2?r:n);return s.set(t,a),a}function Os(t){return po(t)?Os(t.__v_raw):!!(t&&t.__v_isReactive)}function po(t){return!!(t&&t.__v_isReadonly)}function jh(t){return!!(t&&t.__v_isShallow)}function ek(t){return Os(t)||po(t)}function Ve(t){const e=t&&t.__v_raw;return e?Ve(e):t}function xs(t){return Fh(t,"__v_skip",!0),t}const lc=t=>ot(t)?ts(t):t,ty=t=>ot(t)?td(t):t;function ny(t){pi&&_r&&(t=Ve(t),qI(t.dep||(t.dep=z_())))}function ry(t,e){t=Ve(t);const n=t.dep;n&&Pm(n)}function rt(t){return!!(t&&t.__v_isRef===!0)}function Ze(t){return tk(t,!1)}function wa(t){return tk(t,!0)}function tk(t,e){return rt(t)?t:new pD(t,e)}class pD{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Ve(e),this._value=n?e:lc(e)}get value(){return ny(this),this._value}set value(e){const n=this.__v_isShallow||jh(e)||po(e);e=n?e:Ve(e),ac(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:lc(e),ry(this))}}function tt(t){return rt(t)?t.value:t}function Es(t){return ke(t)?t():tt(t)}const mD={get:(t,e,n)=>tt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return rt(s)&&!rt(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function nk(t){return Os(t)?t:new Proxy(t,mD)}class gD{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=e(()=>ny(this),()=>ry(this));this._get=n,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function _D(t){return new gD(t)}function yD(t){const e=we(t)?new Array(t.length):{};for(const n in t)e[n]=rk(t,n);return e}class vD{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return HN(Ve(this._object),this._key)}}class ED{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nd(t,e,n){return rt(t)?t:ke(t)?new ED(t):ot(t)&&arguments.length>1?rk(t,e,n):Ze(t)}function rk(t,e,n){const r=t[e];return rt(r)?r:new vD(t,e,n)}class wD{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Q_(e,()=>{this._dirty||(this._dirty=!0,ry(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=Ve(this);return ny(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function TD(t,e,n=!1){let r,s;const i=ke(t);return i?(r=t,s=br):(r=t.get,s=t.set),new wD(r,s,i||!s,n)}function mi(t,e,n,r){let s;try{s=r?t(...r):t()}catch(i){Ya(i,e,n)}return s}function lr(t,e,n,r){if(ke(t)){const i=mi(t,e,n,r);return i&&G_(i)&&i.catch(o=>{Ya(o,e,n)}),i}const s=[];for(let i=0;i>>1;uc(pn[r])jr&&pn.splice(e,1)}function ok(t){we(t)?la.push(...t):(!ws||!ws.includes(t,t.allowRecurse?zi+1:zi))&&la.push(t),ik()}function uE(t,e=cc?jr+1:0){for(;euc(n)-uc(r)),zi=0;zit.id==null?1/0:t.id,SD=(t,e)=>{const n=uc(t)-uc(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function ak(t){Om=!1,cc=!0,pn.sort(SD);const e=br;try{for(jr=0;jrBr.emit(s,...i)),Sl=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{lk(i,e)}),setTimeout(()=>{Br||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nm=!0,Sl=[])},3e3)):(Nm=!0,Sl=[])}function CD(t,e){sd("app:init",t,e,{Fragment:rn,Text:ki,Comment:_n,Static:ua})}function RD(t){sd("app:unmount",t)}const Dm=iy("component:added"),ck=iy("component:updated"),AD=iy("component:removed"),PD=t=>{Br&&typeof Br.cleanupBuffer=="function"&&!Br.cleanupBuffer(t)&&AD(t)};function iy(t){return e=>{sd(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function OD(t,e,n){sd("component:emit",t.appContext.app,t,e,n)}function ND(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||pt;let s=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in r){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=r[u]||pt;f&&(s=n.map(v=>kt(v)?v.trim():v)),h&&(s=n.map(Vh))}OD(t,e,s);let a,l=r[a=Rp(e)]||r[a=Rp(es(e))];!l&&i&&(l=r[a=Rp(So(e))]),l&&lr(l,t,6,s);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,lr(c,t,6,s)}}function uk(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!ke(t)){const l=c=>{const u=uk(c,e,!0);u&&(a=!0,jt(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(ot(t)&&r.set(t,null),null):(we(i)?i.forEach(l=>o[l]=null):jt(o,i),ot(t)&&r.set(t,o),o)}function id(t,e){return!t||!$c(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ke(t,e[0].toLowerCase()+e.slice(1))||Ke(t,So(e))||Ke(t,e))}let Xt=null,od=null;function $h(t){const e=Xt;return Xt=t,od=t&&t.type.__scopeId||null,e}function SX(t){od=t}function CX(){od=null}function oy(t,e=Xt,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&kE(-1);const i=$h(e);let o;try{o=t(...s)}finally{$h(i),r._d&&kE(1)}return ck(e),o};return r._n=!0,r._c=!0,r._d=!0,r}function Ap(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:v,ctx:k,inheritAttrs:I}=t;let T,g;const m=$h(t);try{if(n.shapeFlag&4){const d=s||r;T=rr(u.call(d,d,h,i,v,f,k)),g=l}else{const d=e;T=rr(d.length>1?d(i,{attrs:l,slots:a,emit:c}):d(i,null)),g=e.props?l:LD(l)}}catch(d){Ul.length=0,Ya(d,t,1),T=It(_n)}let _=T;if(g&&I!==!1){const d=Object.keys(g),{shapeFlag:E}=_;d.length&&E&7&&(o&&d.some(H_)&&(g=MD(g,o)),_=Fs(_,g))}return n.dirs&&(_=Fs(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),T=_,$h(m),T}function DD(t){let e;for(let n=0;n{let e;for(const n in t)(n==="class"||n==="style"||$c(n))&&((e||(e={}))[n]=t[n]);return e},MD=(t,e)=>{const n={};for(const r in t)(!H_(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function xD(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:l}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?hE(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense,FD={name:"Suspense",__isSuspense:!0,process(t,e,n,r,s,i,o,a,l,c){t==null?VD(e,n,r,s,i,o,a,l,c):UD(t,e,n,r,s,o,a,l,c)},hydrate:jD,create:cy,normalize:BD},ly=FD;function hc(t,e){const n=t.props&&t.props[e];ke(n)&&n()}function VD(t,e,n,r,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,h=u("div"),f=t.suspense=cy(t,s,r,e,h,n,i,o,a,l);c(null,f.pendingBranch=t.ssContent,h,null,r,f,i,o),f.deps>0?(hc(t,"onPending"),hc(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,i,o),ca(f,t.ssFallback)):f.resolve(!1,!0)}function UD(t,e,n,r,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const h=e.suspense=t.suspense;h.vnode=e,e.el=t.el;const f=e.ssContent,v=e.ssFallback,{activeBranch:k,pendingBranch:I,isInFallback:T,isHydrating:g}=h;if(I)h.pendingBranch=f,yr(f,I)?(l(I,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():T&&(l(k,v,n,r,s,null,i,o,a),ca(h,v))):(h.pendingId++,g?(h.isHydrating=!1,h.activeBranch=I):c(I,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),T?(l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0?h.resolve():(l(k,v,n,r,s,null,i,o,a),ca(h,v))):k&&yr(f,k)?(l(k,f,n,r,s,h,i,o,a),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0&&h.resolve()));else if(k&&yr(f,k))l(k,f,n,r,s,h,i,o,a),ca(h,f);else if(hc(e,"onPending"),h.pendingBranch=f,h.pendingId++,l(null,f,h.hiddenContainer,null,s,h,i,o,a),h.deps<=0)h.resolve();else{const{timeout:m,pendingId:_}=h;m>0?setTimeout(()=>{h.pendingId===_&&h.fallback(v)},m):m===0&&h.fallback(v)}}function cy(t,e,n,r,s,i,o,a,l,c,u=!1){const{p:h,m:f,um:v,n:k,o:{parentNode:I,remove:T}}=c;let g;const m=$D(t);m&&e!=null&&e.pendingBranch&&(g=e.pendingId,e.deps++);const _=t.props?jI(t.props.timeout):void 0,d={vnode:t,parent:e,parentComponent:n,isSVG:o,container:r,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,p=!1){const{vnode:y,activeBranch:w,pendingBranch:A,pendingId:S,effects:O,parentComponent:C,container:R}=d;if(d.isHydrating)d.isHydrating=!1;else if(!E){const U=w&&A.transition&&A.transition.mode==="out-in";U&&(w.transition.afterLeave=()=>{S===d.pendingId&&f(A,R,B,0)});let{anchor:B}=d;w&&(B=k(w),v(w,C,d,!0)),U||f(A,R,B,0)}ca(d,A),d.pendingBranch=null,d.isInFallback=!1;let L=d.parent,G=!1;for(;L;){if(L.pendingBranch){L.effects.push(...O),G=!0;break}L=L.parent}G||ok(O),d.effects=[],m&&e&&e.pendingBranch&&g===e.pendingId&&(e.deps--,e.deps===0&&!p&&e.resolve()),hc(y,"onResolve")},fallback(E){if(!d.pendingBranch)return;const{vnode:p,activeBranch:y,parentComponent:w,container:A,isSVG:S}=d;hc(p,"onFallback");const O=k(y),C=()=>{d.isInFallback&&(h(null,E,A,O,w,null,S,a,l),ca(d,E))},R=E.transition&&E.transition.mode==="out-in";R&&(y.transition.afterLeave=C),d.isInFallback=!0,v(y,w,null,!0),R||C()},move(E,p,y){d.activeBranch&&f(d.activeBranch,E,p,y),d.container=E},next(){return d.activeBranch&&k(d.activeBranch)},registerDep(E,p){const y=!!d.pendingBranch;y&&d.deps++;const w=E.vnode.el;E.asyncDep.catch(A=>{Ya(A,E,0)}).then(A=>{if(E.isUnmounted||d.isUnmounted||d.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:S}=E;jm(E,A,!1),w&&(S.el=w);const O=!w&&E.subTree.el;p(E,S,I(w||E.subTree.el),w?null:k(E.subTree),d,o,l),O&&T(O),ay(E,S.el),y&&--d.deps===0&&d.resolve()})},unmount(E,p){d.isUnmounted=!0,d.activeBranch&&v(d.activeBranch,n,E,p),d.pendingBranch&&v(d.pendingBranch,n,E,p)}};return d}function jD(t,e,n,r,s,i,o,a,l){const c=e.suspense=cy(e,r,n,t.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function BD(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=fE(r?n.default:n),t.ssFallback=r?fE(n.fallback):It(_n)}function fE(t){let e;if(ke(t)){const n=Ta&&t._c;n&&(t._d=!1,$r()),t=t(),n&&(t._d=!0,e=or,Lk())}return we(t)&&(t=DD(t)),t=rr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function fk(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):ok(t)}function ca(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t,s=n.el=e.el;r&&r.subTree===n&&(r.vnode.el=s,ay(r,s))}function $D(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function dk(t,e){return uy(t,null,e)}const Wu={};function Vt(t,e,n){return uy(t,e,n)}function uy(t,e,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=pt){var a;const l=Zf()===((a=xt)==null?void 0:a.scope)?xt:null;let c,u=!1,h=!1;if(rt(t)?(c=()=>t.value,u=jh(t)):Os(t)?(c=()=>t,r=!0):we(t)?(h=!0,u=t.some(d=>Os(d)||jh(d)),c=()=>t.map(d=>{if(rt(d))return d.value;if(Os(d))return Xi(d);if(ke(d))return mi(d,l,2)})):ke(t)?e?c=()=>mi(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return f&&f(),lr(t,l,3,[v])}:c=br,e&&r){const d=c;c=()=>Xi(d())}let f,v=d=>{f=m.onStop=()=>{mi(d,l,4)}},k;if(Ia)if(v=br,e?n&&lr(e,l,3,[c(),h?[]:void 0,v]):c(),s==="sync"){const d=DL();k=d.__watcherHandles||(d.__watcherHandles=[])}else return br;let I=h?new Array(t.length).fill(Wu):Wu;const T=()=>{if(m.active)if(e){const d=m.run();(r||u||(h?d.some((E,p)=>ac(E,I[p])):ac(d,I)))&&(f&&f(),lr(e,l,3,[d,I===Wu?void 0:h&&I[0]===Wu?[]:I,v]),I=d)}else m.run()};T.allowRecurse=!!e;let g;s==="sync"?g=T:s==="post"?g=()=>nn(T,l&&l.suspense):(T.pre=!0,l&&(T.id=l.uid),g=()=>rd(T));const m=new Q_(c,g);e?n?T():I=m.run():s==="post"?nn(m.run.bind(m),l&&l.suspense):m.run();const _=()=>{m.stop(),l&&l.scope&&W_(l.scope.effects,m)};return k&&k.push(_),_}function HD(t,e,n){const r=this.proxy,s=kt(t)?t.includes(".")?pk(r,t):()=>r[t]:t.bind(r,r);let i;ke(e)?i=e:(i=e.handler,n=e);const o=xt;Si(this);const a=uy(s,i.bind(r),n);return o?Si(o):gi(),a}function pk(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{Xi(n,e)});else if(UI(t))for(const n in t)Xi(t[n],e);return t}function RX(t,e){const n=Xt;if(n===null)return t;const r=hd(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),cd(()=>{t.isUnmounting=!0}),t}const nr=[Function,Array],mk={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},GD={name:"BaseTransition",props:mk,setup(t,{slots:e}){const n=Or(),r=WD();let s;return()=>{const i=e.default&&_k(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const I of i)if(I.type!==_n){o=I;break}}const a=Ve(t),{mode:l}=a;if(r.isLeaving)return Pp(o);const c=dE(o);if(!c)return Pp(o);const u=Lm(c,a,r,n);Hh(c,u);const h=n.subTree,f=h&&dE(h);let v=!1;const{getTransitionKey:k}=c.type;if(k){const I=k();s===void 0?s=I:I!==s&&(s=I,v=!0)}if(f&&f.type!==_n&&(!yr(c,f)||v)){const I=Lm(f,a,r,n);if(Hh(f,I),l==="out-in")return r.isLeaving=!0,I.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Pp(o);l==="in-out"&&c.type!==_n&&(I.delayLeave=(T,g,m)=>{const _=gk(r,f);_[String(f.key)]=f,T._leaveCb=()=>{g(),T._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=m})}return o}}},YD=GD;function gk(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Lm(t,e,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:v,onLeaveCancelled:k,onBeforeAppear:I,onAppear:T,onAfterAppear:g,onAppearCancelled:m}=e,_=String(t.key),d=gk(n,t),E=(w,A)=>{w&&lr(w,r,9,A)},p=(w,A)=>{const S=A[1];E(w,A),we(w)?w.every(O=>O.length<=1)&&S():w.length<=1&&S()},y={mode:i,persisted:o,beforeEnter(w){let A=a;if(!n.isMounted)if(s)A=I||a;else return;w._leaveCb&&w._leaveCb(!0);const S=d[_];S&&yr(t,S)&&S.el._leaveCb&&S.el._leaveCb(),E(A,[w])},enter(w){let A=l,S=c,O=u;if(!n.isMounted)if(s)A=T||l,S=g||c,O=m||u;else return;let C=!1;const R=w._enterCb=L=>{C||(C=!0,L?E(O,[w]):E(S,[w]),y.delayedLeave&&y.delayedLeave(),w._enterCb=void 0)};A?p(A,[w,R]):R()},leave(w,A){const S=String(t.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return A();E(h,[w]);let O=!1;const C=w._leaveCb=R=>{O||(O=!0,A(),R?E(k,[w]):E(v,[w]),w._leaveCb=void 0,d[S]===t&&delete d[S])};d[S]=t,f?p(f,[w,C]):C()},clone(w){return Lm(w,e,n,r)}};return y}function Pp(t){if(Yc(t))return t=Fs(t),t.children=null,t}function dE(t){return Yc(t)?t.children?t.children[0]:void 0:t}function Hh(t,e){t.shapeFlag&6&&t.component?Hh(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function _k(t,e=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;ijt({name:t.name},e,{setup:t}))():t}const ao=t=>!!t.type.__asyncLoader;function pE(t){ke(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:a}=t;let l=null,c,u=0;const h=()=>(u++,l=null,f()),f=()=>{let v;return l||(v=l=e().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),a)return new Promise((I,T)=>{a(k,()=>I(h()),()=>T(k),u+1)});throw k}).then(k=>v!==l&&l?l:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),c=k,k)))};return ur({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const v=xt;if(c)return()=>Op(c,v);const k=m=>{l=null,Ya(m,v,13,!r)};if(o&&v.suspense||Ia)return f().then(m=>()=>Op(m,v)).catch(m=>(k(m),()=>r?It(r,{error:m}):null));const I=Ze(!1),T=Ze(),g=Ze(!!s);return s&&setTimeout(()=>{g.value=!1},s),i!=null&&setTimeout(()=>{if(!I.value&&!T.value){const m=new Error(`Async component timed out after ${i}ms.`);k(m),T.value=m}},i),f().then(()=>{I.value=!0,v.parent&&Yc(v.parent.vnode)&&rd(v.parent.update)}).catch(m=>{k(m),T.value=m}),()=>{if(I.value&&c)return Op(c,v);if(T.value&&r)return It(r,{error:T.value});if(n&&!g.value)return It(n)}}})}function Op(t,e){const{ref:n,props:r,children:s,ce:i}=e.vnode,o=It(t,r,s);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Yc=t=>t.type.__isKeepAlive,qD={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Or(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const s=new Map,i=new Set;let o=null;n.__v_cache=s;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=r,f=h("div");r.activate=(m,_,d,E,p)=>{const y=m.component;c(m,_,d,0,a),l(y.vnode,m,_,d,y,a,E,m.slotScopeIds,p),nn(()=>{y.isDeactivated=!1,y.a&&aa(y.a);const w=m.props&&m.props.onVnodeMounted;w&&jn(w,y.parent,m)},a),Dm(y)},r.deactivate=m=>{const _=m.component;c(m,f,null,1,a),nn(()=>{_.da&&aa(_.da);const d=m.props&&m.props.onVnodeUnmounted;d&&jn(d,_.parent,m),_.isDeactivated=!0},a),Dm(_)};function v(m){Np(m),u(m,n,a,!0)}function k(m){s.forEach((_,d)=>{const E=Bm(_.type);E&&(!m||!m(E))&&I(d)})}function I(m){const _=s.get(m);!o||!yr(_,o)?v(_):o&&Np(o),s.delete(m),i.delete(m)}Vt(()=>[t.include,t.exclude],([m,_])=>{m&&k(d=>Cl(m,d)),_&&k(d=>!Cl(_,d))},{flush:"post",deep:!0});let T=null;const g=()=>{T!=null&&s.set(T,Dp(n.subTree))};return ld(g),wk(g),cd(()=>{s.forEach(m=>{const{subTree:_,suspense:d}=n,E=Dp(_);if(m.type===E.type&&m.key===E.key){Np(E);const p=E.component.da;p&&nn(p,d);return}v(m)})}),()=>{if(T=null,!e.default)return null;const m=e.default(),_=m[0];if(m.length>1)return o=null,m;if(!ba(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let d=Dp(_);const E=d.type,p=Bm(ao(d)?d.type.__asyncResolved||{}:E),{include:y,exclude:w,max:A}=t;if(y&&(!p||!Cl(y,p))||w&&p&&Cl(w,p))return o=d,_;const S=d.key==null?E:d.key,O=s.get(S);return d.el&&(d=Fs(d),_.shapeFlag&128&&(_.ssContent=d)),T=S,O?(d.el=O.el,d.component=O.component,d.transition&&Hh(d,d.transition),d.shapeFlag|=512,i.delete(S),i.add(S)):(i.add(S),A&&i.size>parseInt(A,10)&&I(i.values().next().value)),d.shapeFlag|=256,o=d,hk(_.type)?_:d}}},KD=qD;function Cl(t,e){return we(t)?t.some(n=>Cl(n,e)):kt(t)?t.split(",").includes(e):RN(t)?t.test(e):!1}function yk(t,e){Ek(t,"a",e)}function vk(t,e){Ek(t,"da",e)}function Ek(t,e,n=xt){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(ad(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Yc(s.parent.vnode)&&zD(r,e,n,s),s=s.parent}}function zD(t,e,n,r){const s=ad(e,t,r,!0);hy(()=>{W_(r[e],s)},n)}function Np(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Dp(t){return t.shapeFlag&128?t.ssContent:t}function ad(t,e,n=xt,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Wa(),Si(n);const a=lr(e,n,t,o);return gi(),Ga(),a});return r?s.unshift(i):s.push(i),i}}const Hs=t=>(e,n=xt)=>(!Ia||t==="sp")&&ad(t,(...r)=>e(...r),n),QD=Hs("bm"),ld=Hs("m"),XD=Hs("bu"),wk=Hs("u"),cd=Hs("bum"),hy=Hs("um"),JD=Hs("sp"),ZD=Hs("rtg"),eL=Hs("rtc");function Tk(t,e=xt){ad("ec",t,e)}const fy="components",tL="directives";function AX(t,e){return dy(fy,t,!0,e)||t}const bk=Symbol.for("v-ndc");function nL(t){return kt(t)?dy(fy,t,!1)||t:t||bk}function PX(t){return dy(tL,t)}function dy(t,e,n=!0,r=!1){const s=Xt||xt;if(s){const i=s.type;if(t===fy){const a=Bm(i,!1);if(a&&(a===e||a===es(e)||a===Qf(es(e))))return i}const o=mE(s[t]||i[t],e)||mE(s.appContext[t],e);return!o&&r?i:o}}function mE(t,e){return t&&(t[e]||t[es(e)]||t[Qf(es(e))])}function OX(t,e,n,r){let s;const i=n&&n[r];if(we(t)||kt(t)){s=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);s=new Array(o.length);for(let a=0,l=o.length;aba(e)?!(e.type===_n||e.type===rn&&!Ik(e.children)):!0)?t:null}const Mm=t=>t?Bk(t)?hd(t)||t.proxy:Mm(t.parent):null,Fl=jt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Mm(t.parent),$root:t=>Mm(t.root),$emit:t=>t.emit,$options:t=>py(t),$forceUpdate:t=>t.f||(t.f=()=>rd(t.update)),$nextTick:t=>t.n||(t.n=Ni.bind(t.proxy)),$watch:t=>HD.bind(t)}),Lp=(t,e)=>t!==pt&&!t.__isScriptSetup&&Ke(t,e),rL={get({_:t},e){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const v=o[e];if(v!==void 0)switch(v){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(Lp(r,e))return o[e]=1,r[e];if(s!==pt&&Ke(s,e))return o[e]=2,s[e];if((c=t.propsOptions[0])&&Ke(c,e))return o[e]=3,i[e];if(n!==pt&&Ke(n,e))return o[e]=4,n[e];xm&&(o[e]=0)}}const u=Fl[e];let h,f;if(u)return e==="$attrs"&&Hn(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==pt&&Ke(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,Ke(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return Lp(s,e)?(s[e]=n,!0):r!==pt&&Ke(r,e)?(r[e]=n,!0):Ke(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||t!==pt&&Ke(t,o)||Lp(e,o)||(a=i[0])&&Ke(a,o)||Ke(r,o)||Ke(Fl,o)||Ke(s.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ke(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function DX(){return sL().slots}function sL(){const t=Or();return t.setupContext||(t.setupContext=Hk(t))}function gE(t){return we(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function LX(t){const e=Or();let n=t();return gi(),G_(n)&&(n=n.catch(r=>{throw Si(e),r})),[n,()=>Si(e)]}let xm=!0;function iL(t){const e=py(t),n=t.proxy,r=t.ctx;xm=!1,e.beforeCreate&&_E(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:v,updated:k,activated:I,deactivated:T,beforeDestroy:g,beforeUnmount:m,destroyed:_,unmounted:d,render:E,renderTracked:p,renderTriggered:y,errorCaptured:w,serverPrefetch:A,expose:S,inheritAttrs:O,components:C,directives:R,filters:L}=e;if(c&&oL(c,r,null),o)for(const B in o){const Y=o[B];ke(Y)&&(r[B]=Y.bind(n))}if(s){const B=s.call(n,n);ot(B)&&(t.data=ts(B))}if(xm=!0,i)for(const B in i){const Y=i[B],F=ke(Y)?Y.bind(n,n):ke(Y.get)?Y.get.bind(n,n):br,j=!ke(Y)&&ke(Y.set)?Y.set.bind(n):br,Z=lt({get:F,set:j});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>Z.value,set:J=>Z.value=J})}if(a)for(const B in a)kk(a[B],r,n,B);if(l){const B=ke(l)?l.call(n):l;Reflect.ownKeys(B).forEach(Y=>{lo(Y,B[Y])})}u&&_E(u,t,"c");function U(B,Y){we(Y)?Y.forEach(F=>B(F.bind(n))):Y&&B(Y.bind(n))}if(U(QD,h),U(ld,f),U(XD,v),U(wk,k),U(yk,I),U(vk,T),U(Tk,w),U(eL,p),U(ZD,y),U(cd,m),U(hy,d),U(JD,A),we(S))if(S.length){const B=t.exposed||(t.exposed={});S.forEach(Y=>{Object.defineProperty(B,Y,{get:()=>n[Y],set:F=>n[Y]=F})})}else t.exposed||(t.exposed={});E&&t.render===br&&(t.render=E),O!=null&&(t.inheritAttrs=O),C&&(t.components=C),R&&(t.directives=R)}function oL(t,e,n=br){we(t)&&(t=Fm(t));for(const r in t){const s=t[r];let i;ot(s)?"default"in s?i=Ut(s.from||r,s.default,!0):i=Ut(s.from||r):i=Ut(s),rt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function _E(t,e,n){lr(we(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function kk(t,e,n,r){const s=r.includes(".")?pk(n,r):()=>n[r];if(kt(t)){const i=e[t];ke(i)&&Vt(s,i)}else if(ke(t))Vt(s,t.bind(n));else if(ot(t))if(we(t))t.forEach(i=>kk(i,e,n,r));else{const i=ke(t.handler)?t.handler.bind(n):e[t.handler];ke(i)&&Vt(s,i,t)}}function py(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(c=>Wh(l,c,o,!0)),Wh(l,e,o)),ot(e)&&i.set(e,l),l}function Wh(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Wh(t,i,n,!0),s&&s.forEach(o=>Wh(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=aL[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const aL={data:yE,props:vE,emits:vE,methods:Rl,computed:Rl,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:Rl,directives:Rl,watch:cL,provide:yE,inject:lL};function yE(t,e){return e?t?function(){return jt(ke(t)?t.call(this,this):t,ke(e)?e.call(this,this):e)}:e:t}function lL(t,e){return Rl(Fm(t),Fm(e))}function Fm(t){if(we(t)){const e={};for(let n=0;n1)return n&&ke(e)?e.call(r&&r.proxy):e}}function my(){return!!(xt||Xt||fc)}function fL(t,e,n,r=!1){const s={},i={};Fh(i,ud,1),t.propsDefaults=Object.create(null),Ck(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:Gc(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function dL(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Ve(s),[l]=t.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[f,v]=Rk(h,e,!0);jt(o,f),v&&a.push(...v)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!l)return ot(t)&&r.set(t,ia),ia;if(we(i))for(let u=0;u-1,v[1]=I<0||k-1||Ke(v,"default"))&&a.push(h)}}}const c=[o,a];return ot(t)&&r.set(t,c),c}function EE(t){return t[0]!=="$"}function wE(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function TE(t,e){return wE(t)===wE(e)}function bE(t,e){return we(e)?e.findIndex(n=>TE(n,t)):ke(e)&&TE(e,t)?0:-1}const Ak=t=>t[0]==="_"||t==="$stable",gy=t=>we(t)?t.map(rr):[rr(t)],pL=(t,e,n)=>{if(e._n)return e;const r=oy((...s)=>gy(e(...s)),n);return r._c=!1,r},Pk=(t,e,n)=>{const r=t._ctx;for(const s in t){if(Ak(s))continue;const i=t[s];if(ke(i))e[s]=pL(s,i,r);else if(i!=null){const o=gy(i);e[s]=()=>o}}},Ok=(t,e)=>{const n=gy(e);t.slots.default=()=>n},mL=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Ve(e),Fh(e,"_",n)):Pk(e,t.slots={})}else t.slots={},e&&Ok(t,e);Fh(t.slots,ud,1)},gL=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=pt;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:(jt(s,e),!n&&a===1&&delete s._):(i=!e.$stable,Pk(e,s)),o=e}else e&&(Ok(t,e),o={default:1});if(i)for(const a in s)!Ak(a)&&!(a in o)&&delete s[a]};function Gh(t,e,n,r,s=!1){if(we(t)){t.forEach((f,v)=>Gh(f,e&&(we(e)?e[v]:e),n,r,s));return}if(ao(r)&&!s)return;const i=r.shapeFlag&4?hd(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:l}=t,c=e&&e.r,u=a.refs===pt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(kt(c)?(u[c]=null,Ke(h,c)&&(h[c]=null)):rt(c)&&(c.value=null)),ke(l))mi(l,a,12,[o,u]);else{const f=kt(l),v=rt(l);if(f||v){const k=()=>{if(t.f){const I=f?Ke(h,l)?h[l]:u[l]:l.value;s?we(I)&&W_(I,i):we(I)?I.includes(i)||I.push(i):f?(u[l]=[i],Ke(h,l)&&(h[l]=u[l])):(l.value=[i],t.k&&(u[t.k]=l.value))}else f?(u[l]=o,Ke(h,l)&&(h[l]=o)):v&&(l.value=o,t.k&&(u[t.k]=o))};o?(k.id=-1,nn(k,n)):k()}}}let Qs=!1;const Gu=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",Yu=t=>t.nodeType===8;function _L(t){const{mt:e,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=t,u=(g,m)=>{if(!m.hasChildNodes()){n(null,g,m),Bh(),m._vnode=g;return}Qs=!1,h(m.firstChild,g,null,null,null),Bh(),m._vnode=g,Qs&&console.error("Hydration completed but contains mismatches.")},h=(g,m,_,d,E,p=!1)=>{const y=Yu(g)&&g.data==="[",w=()=>I(g,m,_,d,E,y),{type:A,ref:S,shapeFlag:O,patchFlag:C}=m;let R=g.nodeType;m.el=g,C===-2&&(p=!1,m.dynamicChildren=null);let L=null;switch(A){case ki:R!==3?m.children===""?(l(m.el=s(""),o(g),g),L=g):L=w():(g.data!==m.children&&(Qs=!0,g.data=m.children),L=i(g));break;case _n:R!==8||y?L=w():L=i(g);break;case ua:if(y&&(g=i(g),R=g.nodeType),R===1||R===3){L=g;const G=!m.children.length;for(let U=0;U{p=p||!!m.dynamicChildren;const{type:y,props:w,patchFlag:A,shapeFlag:S,dirs:O}=m,C=y==="input"&&O||y==="option";if(C||A!==-1){if(O&&Ur(m,null,_,"created"),w)if(C||!p||A&48)for(const L in w)(C&&L.endsWith("value")||$c(L)&&!xl(L))&&r(g,L,null,w[L],!1,void 0,_);else w.onClick&&r(g,"onClick",null,w.onClick,!1,void 0,_);let R;if((R=w&&w.onVnodeBeforeMount)&&jn(R,_,m),O&&Ur(m,null,_,"beforeMount"),((R=w&&w.onVnodeMounted)||O)&&fk(()=>{R&&jn(R,_,m),O&&Ur(m,null,_,"mounted")},d),S&16&&!(w&&(w.innerHTML||w.textContent))){let L=v(g.firstChild,m,g,_,d,E,p);for(;L;){Qs=!0;const G=L;L=L.nextSibling,a(G)}}else S&8&&g.textContent!==m.children&&(Qs=!0,g.textContent=m.children)}return g.nextSibling},v=(g,m,_,d,E,p,y)=>{y=y||!!m.dynamicChildren;const w=m.children,A=w.length;for(let S=0;S{const{slotScopeIds:y}=m;y&&(E=E?E.concat(y):y);const w=o(g),A=v(i(g),m,w,_,d,E,p);return A&&Yu(A)&&A.data==="]"?i(m.anchor=A):(Qs=!0,l(m.anchor=c("]"),w,A),A)},I=(g,m,_,d,E,p)=>{if(Qs=!0,m.el=null,p){const A=T(g);for(;;){const S=i(g);if(S&&S!==A)a(S);else break}}const y=i(g),w=o(g);return a(g),n(null,m,w,y,_,d,Gu(w),E),y},T=g=>{let m=0;for(;g;)if(g=i(g),g&&Yu(g)&&(g.data==="["&&m++,g.data==="]")){if(m===0)return i(g);m--}return g};return[u,h]}const nn=fk;function yL(t){return Nk(t)}function vL(t){return Nk(t,_L)}function Nk(t,e){const n=Cm();n.__VUE__=!0,lk(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:v=br,insertStaticContent:k}=t,I=(D,b,P,x=null,$=null,q=null,X=!1,te=null,ne=!!b.dynamicChildren)=>{if(D===b)return;D&&!yr(D,b)&&(x=N(D),J(D,$,q,!0),D=null),b.patchFlag===-2&&(ne=!1,b.dynamicChildren=null);const{type:Q,ref:re,shapeFlag:W}=b;switch(Q){case ki:T(D,b,P,x);break;case _n:g(D,b,P,x);break;case ua:D==null&&m(b,P,x,X);break;case rn:C(D,b,P,x,$,q,X,te,ne);break;default:W&1?E(D,b,P,x,$,q,X,te,ne):W&6?R(D,b,P,x,$,q,X,te,ne):(W&64||W&128)&&Q.process(D,b,P,x,$,q,X,te,ne,V)}re!=null&&$&&Gh(re,D&&D.ref,q,b||D,!b)},T=(D,b,P,x)=>{if(D==null)r(b.el=a(b.children),P,x);else{const $=b.el=D.el;b.children!==D.children&&c($,b.children)}},g=(D,b,P,x)=>{D==null?r(b.el=l(b.children||""),P,x):b.el=D.el},m=(D,b,P,x)=>{[D.el,D.anchor]=k(D.children,b,P,x,D.el,D.anchor)},_=({el:D,anchor:b},P,x)=>{let $;for(;D&&D!==b;)$=f(D),r(D,P,x),D=$;r(b,P,x)},d=({el:D,anchor:b})=>{let P;for(;D&&D!==b;)P=f(D),s(D),D=P;s(b)},E=(D,b,P,x,$,q,X,te,ne)=>{X=X||b.type==="svg",D==null?p(b,P,x,$,q,X,te,ne):A(D,b,$,q,X,te,ne)},p=(D,b,P,x,$,q,X,te)=>{let ne,Q;const{type:re,props:W,shapeFlag:K,transition:de,dirs:he}=D;if(ne=D.el=o(D.type,q,W&&W.is,W),K&8?u(ne,D.children):K&16&&w(D.children,ne,null,x,$,q&&re!=="foreignObject",X,te),he&&Ur(D,null,x,"created"),y(ne,D,D.scopeId,X,x),W){for(const Ee in W)Ee!=="value"&&!xl(Ee)&&i(ne,Ee,null,W[Ee],q,D.children,x,$,oe);"value"in W&&i(ne,"value",null,W.value),(Q=W.onVnodeBeforeMount)&&jn(Q,x,D)}Object.defineProperty(ne,"__vnode",{value:D,enumerable:!1}),Object.defineProperty(ne,"__vueParentComponent",{value:x,enumerable:!1}),he&&Ur(D,null,x,"beforeMount");const Te=(!$||$&&!$.pendingBranch)&&de&&!de.persisted;Te&&de.beforeEnter(ne),r(ne,b,P),((Q=W&&W.onVnodeMounted)||Te||he)&&nn(()=>{Q&&jn(Q,x,D),Te&&de.enter(ne),he&&Ur(D,null,x,"mounted")},$)},y=(D,b,P,x,$)=>{if(P&&v(D,P),x)for(let q=0;q{for(let Q=ne;Q{const te=b.el=D.el;let{patchFlag:ne,dynamicChildren:Q,dirs:re}=b;ne|=D.patchFlag&16;const W=D.props||pt,K=b.props||pt;let de;P&&Vi(P,!1),(de=K.onVnodeBeforeUpdate)&&jn(de,P,b,D),re&&Ur(b,D,P,"beforeUpdate"),P&&Vi(P,!0);const he=$&&b.type!=="foreignObject";if(Q?S(D.dynamicChildren,Q,te,P,x,he,q):X||Y(D,b,te,null,P,x,he,q,!1),ne>0){if(ne&16)O(te,b,W,K,P,x,$);else if(ne&2&&W.class!==K.class&&i(te,"class",null,K.class,$),ne&4&&i(te,"style",W.style,K.style,$),ne&8){const Te=b.dynamicProps;for(let Ee=0;Ee{de&&jn(de,P,b,D),re&&Ur(b,D,P,"updated")},x)},S=(D,b,P,x,$,q,X)=>{for(let te=0;te{if(P!==x){if(P!==pt)for(const te in P)!xl(te)&&!(te in x)&&i(D,te,P[te],null,X,b.children,$,q,oe);for(const te in x){if(xl(te))continue;const ne=x[te],Q=P[te];ne!==Q&&te!=="value"&&i(D,te,Q,ne,X,b.children,$,q,oe)}"value"in x&&i(D,"value",P.value,x.value)}},C=(D,b,P,x,$,q,X,te,ne)=>{const Q=b.el=D?D.el:a(""),re=b.anchor=D?D.anchor:a("");let{patchFlag:W,dynamicChildren:K,slotScopeIds:de}=b;de&&(te=te?te.concat(de):de),D==null?(r(Q,P,x),r(re,P,x),w(b.children,P,re,$,q,X,te,ne)):W>0&&W&64&&K&&D.dynamicChildren?(S(D.dynamicChildren,K,P,$,q,X,te),(b.key!=null||$&&b===$.subTree)&&_y(D,b,!0)):Y(D,b,P,re,$,q,X,te,ne)},R=(D,b,P,x,$,q,X,te,ne)=>{b.slotScopeIds=te,D==null?b.shapeFlag&512?$.ctx.activate(b,P,x,X,ne):L(b,P,x,$,q,X,ne):G(D,b,ne)},L=(D,b,P,x,$,q,X)=>{const te=D.component=CL(D,x,$);if(Yc(D)&&(te.ctx.renderer=V),RL(te),te.asyncDep){if($&&$.registerDep(te,U),!D.el){const ne=te.subTree=It(_n);g(null,ne,b,P)}return}U(te,D,b,P,$,q,X)},G=(D,b,P)=>{const x=b.component=D.component;if(xD(D,b,P))if(x.asyncDep&&!x.asyncResolved){B(x,b,P);return}else x.next=b,kD(x.update),x.update();else b.el=D.el,x.vnode=b},U=(D,b,P,x,$,q,X)=>{const te=()=>{if(D.isMounted){let{next:re,bu:W,u:K,parent:de,vnode:he}=D,Te=re,Ee;Vi(D,!1),re?(re.el=he.el,B(D,re,X)):re=he,W&&aa(W),(Ee=re.props&&re.props.onVnodeBeforeUpdate)&&jn(Ee,de,re,he),Vi(D,!0);const De=Ap(D),Oe=D.subTree;D.subTree=De,I(Oe,De,h(Oe.el),N(Oe),D,$,q),re.el=De.el,Te===null&&ay(D,De.el),K&&nn(K,$),(Ee=re.props&&re.props.onVnodeUpdated)&&nn(()=>jn(Ee,de,re,he),$),ck(D)}else{let re;const{el:W,props:K}=b,{bm:de,m:he,parent:Te}=D,Ee=ao(b);if(Vi(D,!1),de&&aa(de),!Ee&&(re=K&&K.onVnodeBeforeMount)&&jn(re,Te,b),Vi(D,!0),W&&H){const De=()=>{D.subTree=Ap(D),H(W,D.subTree,D,$,null)};Ee?b.type.__asyncLoader().then(()=>!D.isUnmounted&&De()):De()}else{const De=D.subTree=Ap(D);I(null,De,P,x,D,$,q),b.el=De.el}if(he&&nn(he,$),!Ee&&(re=K&&K.onVnodeMounted)){const De=b;nn(()=>jn(re,Te,De),$)}(b.shapeFlag&256||Te&&ao(Te.vnode)&&Te.vnode.shapeFlag&256)&&D.a&&nn(D.a,$),D.isMounted=!0,Dm(D),b=P=x=null}},ne=D.effect=new Q_(te,()=>rd(Q),D.scope),Q=D.update=()=>ne.run();Q.id=D.uid,Vi(D,!0),Q()},B=(D,b,P)=>{b.component=D;const x=D.vnode.props;D.vnode=b,D.next=null,dL(D,b.props,x,P),gL(D,b.children,P),Wa(),uE(),Ga()},Y=(D,b,P,x,$,q,X,te,ne=!1)=>{const Q=D&&D.children,re=D?D.shapeFlag:0,W=b.children,{patchFlag:K,shapeFlag:de}=b;if(K>0){if(K&128){j(Q,W,P,x,$,q,X,te,ne);return}else if(K&256){F(Q,W,P,x,$,q,X,te,ne);return}}de&8?(re&16&&oe(Q,$,q),W!==Q&&u(P,W)):re&16?de&16?j(Q,W,P,x,$,q,X,te,ne):oe(Q,$,q,!0):(re&8&&u(P,""),de&16&&w(W,P,x,$,q,X,te,ne))},F=(D,b,P,x,$,q,X,te,ne)=>{D=D||ia,b=b||ia;const Q=D.length,re=b.length,W=Math.min(Q,re);let K;for(K=0;Kre?oe(D,$,q,!0,!1,W):w(b,P,x,$,q,X,te,ne,W)},j=(D,b,P,x,$,q,X,te,ne)=>{let Q=0;const re=b.length;let W=D.length-1,K=re-1;for(;Q<=W&&Q<=K;){const de=D[Q],he=b[Q]=ne?ri(b[Q]):rr(b[Q]);if(yr(de,he))I(de,he,P,null,$,q,X,te,ne);else break;Q++}for(;Q<=W&&Q<=K;){const de=D[W],he=b[K]=ne?ri(b[K]):rr(b[K]);if(yr(de,he))I(de,he,P,null,$,q,X,te,ne);else break;W--,K--}if(Q>W){if(Q<=K){const de=K+1,he=deK)for(;Q<=W;)J(D[Q],$,q,!0),Q++;else{const de=Q,he=Q,Te=new Map;for(Q=he;Q<=K;Q++){const ft=b[Q]=ne?ri(b[Q]):rr(b[Q]);ft.key!=null&&Te.set(ft.key,Q)}let Ee,De=0;const Oe=K-he+1;let Ht=!1,Cn=0;const ds=new Array(Oe);for(Q=0;Q=Oe){J(ft,$,q,!0);continue}let Pt;if(ft.key!=null)Pt=Te.get(ft.key);else for(Ee=he;Ee<=K;Ee++)if(ds[Ee-he]===0&&yr(ft,b[Ee])){Pt=Ee;break}Pt===void 0?J(ft,$,q,!0):(ds[Pt-he]=Q+1,Pt>=Cn?Cn=Pt:Ht=!0,I(ft,b[Pt],P,null,$,q,X,te,ne),De++)}const Lr=Ht?EL(ds):ia;for(Ee=Lr.length-1,Q=Oe-1;Q>=0;Q--){const ft=he+Q,Pt=b[ft],Mn=ft+1{const{el:q,type:X,transition:te,children:ne,shapeFlag:Q}=D;if(Q&6){Z(D.component.subTree,b,P,x);return}if(Q&128){D.suspense.move(b,P,x);return}if(Q&64){X.move(D,b,P,V);return}if(X===rn){r(q,b,P);for(let W=0;Wte.enter(q),$);else{const{leave:W,delayLeave:K,afterLeave:de}=te,he=()=>r(q,b,P),Te=()=>{W(q,()=>{he(),de&&de()})};K?K(q,he,Te):Te()}else r(q,b,P)},J=(D,b,P,x=!1,$=!1)=>{const{type:q,props:X,ref:te,children:ne,dynamicChildren:Q,shapeFlag:re,patchFlag:W,dirs:K}=D;if(te!=null&&Gh(te,null,P,D,!0),re&256){b.ctx.deactivate(D);return}const de=re&1&&K,he=!ao(D);let Te;if(he&&(Te=X&&X.onVnodeBeforeUnmount)&&jn(Te,b,D),re&6)ie(D.component,P,x);else{if(re&128){D.suspense.unmount(P,x);return}de&&Ur(D,null,b,"beforeUnmount"),re&64?D.type.remove(D,b,P,$,V,x):Q&&(q!==rn||W>0&&W&64)?oe(Q,b,P,!1,!0):(q===rn&&W&384||!$&&re&16)&&oe(ne,b,P),x&&se(D)}(he&&(Te=X&&X.onVnodeUnmounted)||de)&&nn(()=>{Te&&jn(Te,b,D),de&&Ur(D,null,b,"unmounted")},P)},se=D=>{const{type:b,el:P,anchor:x,transition:$}=D;if(b===rn){le(P,x);return}if(b===ua){d(D);return}const q=()=>{s(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(D.shapeFlag&1&&$&&!$.persisted){const{leave:X,delayLeave:te}=$,ne=()=>X(P,q);te?te(D.el,q,ne):ne()}else q()},le=(D,b)=>{let P;for(;D!==b;)P=f(D),s(D),D=P;s(b)},ie=(D,b,P)=>{const{bum:x,scope:$,update:q,subTree:X,um:te}=D;x&&aa(x),$.stop(),q&&(q.active=!1,J(X,D,b,P)),te&&nn(te,b),nn(()=>{D.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve()),PD(D)},oe=(D,b,P,x=!1,$=!1,q=0)=>{for(let X=q;XD.shapeFlag&6?N(D.component.subTree):D.shapeFlag&128?D.suspense.next():f(D.anchor||D.el),M=(D,b,P)=>{D==null?b._vnode&&J(b._vnode,null,null,!0):I(b._vnode||null,D,b,null,null,null,P),uE(),Bh(),b._vnode=D},V={p:I,um:J,m:Z,r:se,mt:L,mc:w,pc:Y,pbc:S,n:N,o:t};let z,H;return e&&([z,H]=e(V)),{render:M,hydrate:z,createApp:hL(M,z)}}function Vi({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function _y(t,e,n=!1){const r=t.children,s=e.children;if(we(r)&&we(s))for(let i=0;i>1,t[n[a]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const wL=t=>t.__isTeleport,Vl=t=>t&&(t.disabled||t.disabled===""),IE=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Um=(t,e)=>{const n=t&&t.to;return kt(n)?e?e(n):null:n},TL={__isTeleport:!0,process(t,e,n,r,s,i,o,a,l,c){const{mc:u,pc:h,pbc:f,o:{insert:v,querySelector:k,createText:I,createComment:T}}=c,g=Vl(e.props);let{shapeFlag:m,children:_,dynamicChildren:d}=e;if(t==null){const E=e.el=I(""),p=e.anchor=I("");v(E,n,r),v(p,n,r);const y=e.target=Um(e.props,k),w=e.targetAnchor=I("");y&&(v(w,y),o=o||IE(y));const A=(S,O)=>{m&16&&u(_,S,O,s,i,o,a,l)};g?A(n,p):y&&A(y,w)}else{e.el=t.el;const E=e.anchor=t.anchor,p=e.target=t.target,y=e.targetAnchor=t.targetAnchor,w=Vl(t.props),A=w?n:p,S=w?E:y;if(o=o||IE(p),d?(f(t.dynamicChildren,d,A,s,i,o,a),_y(t,e,!0)):l||h(t,e,A,S,s,i,o,a,!1),g)w||qu(e,n,E,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const O=e.target=Um(e.props,k);O&&qu(e,O,null,c,0)}else w&&qu(e,p,y,c,1)}Dk(e)},remove(t,e,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:h,props:f}=t;if(h&&i(u),(o||!Vl(f))&&(i(c),a&16))for(let v=0;v0?or||ia:null,Lk(),Ta>0&&or&&or.push(t),t}function xX(t,e,n,r,s,i){return Mk(Fk(t,e,n,r,s,i,!0))}function Is(t,e,n,r,s){return Mk(It(t,e,n,r,s,!0))}function ba(t){return t?t.__v_isVNode===!0:!1}function yr(t,e){return t.type===e.type&&t.key===e.key}const ud="__vInternal",xk=({key:t})=>t??null,yh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?kt(t)||rt(t)||ke(t)?{i:Xt,r:t,k:e,f:!!n}:t:null);function Fk(t,e=null,n=null,r=0,s=null,i=t===rn?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xk(e),ref:e&&yh(e),scopeId:od,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Xt};return a?(yy(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=kt(n)?8:16),Ta>0&&!o&&or&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&or.push(l),l}const It=IL;function IL(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===bk)&&(t=_n),ba(t)){const a=Fs(t,e,!0);return n&&yy(a,n),Ta>0&&!i&&or&&(a.shapeFlag&6?or[or.indexOf(t)]=a:or.push(a)),a.patchFlag|=-2,a}if(OL(t)&&(t=t.__vccOpts),e){e=Vk(e);let{class:a,style:l}=e;a&&!kt(a)&&(e.class=Jf(a)),ot(l)&&(ek(l)&&!we(l)&&(l=jt({},l)),e.style=Xf(l))}const o=kt(t)?1:hk(t)?128:wL(t)?64:ot(t)?4:ke(t)?2:0;return Fk(t,e,n,r,s,o,i,!0)}function Vk(t){return t?ek(t)||ud in t?jt({},t):t:null}function Fs(t,e,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=t,a=e?jk(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&xk(a),ref:e&&e.ref?n&&s?we(s)?s.concat(yh(e)):[s,yh(e)]:yh(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==rn?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Fs(t.ssContent),ssFallback:t.ssFallback&&Fs(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Uk(t=" ",e=0){return It(ki,null,t,e)}function FX(t,e){const n=It(ua,null,t);return n.staticCount=e,n}function VX(t="",e=!1){return e?($r(),Is(_n,null,t)):It(_n,null,t)}function rr(t){return t==null||typeof t=="boolean"?It(_n):we(t)?It(rn,null,t.slice()):typeof t=="object"?ri(t):It(ki,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Fs(t)}function yy(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(we(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),yy(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(ud in e)?e._ctx=Xt:s===3&&Xt&&(Xt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ke(e)?(e={default:e,_ctx:Xt},n=32):(e=String(e),r&64?(n=16,e=[Uk(e)]):n=8);t.children=e,t.shapeFlag|=n}function jk(...t){const e={};for(let n=0;nxt||Xt;let vy,Bo,SE="__VUE_INSTANCE_SETTERS__";(Bo=Cm()[SE])||(Bo=Cm()[SE]=[]),Bo.push(t=>xt=t),vy=t=>{Bo.length>1?Bo.forEach(e=>e(t)):Bo[0](t)};const Si=t=>{vy(t),t.scope.on()},gi=()=>{xt&&xt.scope.off(),vy(null)};function Bk(t){return t.vnode.shapeFlag&4}let Ia=!1;function RL(t,e=!1){Ia=e;const{props:n,children:r}=t.vnode,s=Bk(t);fL(t,n,s,e),mL(t,r);const i=s?AL(t,e):void 0;return Ia=!1,i}function AL(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=xs(new Proxy(t.ctx,rL));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?Hk(t):null;Si(t),Wa();const i=mi(r,t,0,[t.props,s]);if(Ga(),gi(),G_(i)){if(i.then(gi,gi),e)return i.then(o=>{jm(t,o,e)}).catch(o=>{Ya(o,t,0)});t.asyncDep=i}else jm(t,i,e)}else $k(t,e)}function jm(t,e,n){ke(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ot(e)&&(t.devtoolsRawSetupState=e,t.setupState=nk(e)),$k(t,n)}let CE;function $k(t,e,n){const r=t.type;if(!t.render){if(!e&&CE&&!r.render){const s=r.template||py(t).template;if(s){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=jt(jt({isCustomElement:i,delimiters:a},o),l);r.render=CE(s,c)}}t.render=r.render||br}Si(t),Wa(),iL(t),Ga(),gi()}function PL(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Hn(t,"get","$attrs"),e[n]}}))}function Hk(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return PL(t)},slots:t.slots,emit:t.emit,expose:e}}function hd(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(nk(xs(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Fl)return Fl[n](t)},has(e,n){return n in e||n in Fl}}))}function Bm(t,e=!0){return ke(t)?t.displayName||t.name:t.name||e&&t.__name}function OL(t){return ke(t)&&"__vccOpts"in t}const lt=(t,e)=>TD(t,e,Ia);function Nn(t,e,n){const r=arguments.length;return r===2?ot(e)&&!we(e)?ba(e)?It(t,null,[e]):It(t,e):It(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ba(n)&&(n=[n]),It(t,e,n))}const NL=Symbol.for("v-scx"),DL=()=>Ut(NL),$m="3.3.4",LL="http://www.w3.org/2000/svg",Qi=typeof document<"u"?document:null,RE=Qi&&Qi.createElement("template"),ML={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?Qi.createElementNS(LL,t):Qi.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Qi.createTextNode(t),createComment:t=>Qi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Qi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{RE.innerHTML=r?`${t}`:t;const a=RE.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function xL(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function FL(t,e,n){const r=t.style,s=kt(n);if(n&&!s){if(e&&!kt(e))for(const i in e)n[i]==null&&Hm(r,i,"");for(const i in n)Hm(r,i,n[i])}else{const i=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const AE=/\s*!important$/;function Hm(t,e,n){if(we(n))n.forEach(r=>Hm(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=VL(t,e);AE.test(n)?t.setProperty(So(r),n.replace(AE,""),"important"):t[r]=n}}const PE=["Webkit","Moz","ms"],Mp={};function VL(t,e){const n=Mp[e];if(n)return n;let r=es(e);if(r!=="filter"&&r in t)return Mp[e]=r;r=Qf(r);for(let s=0;sxp||(WL.then(()=>xp=0),xp=Date.now());function YL(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lr(qL(r,n.value),e,5,[r])};return n.value=t,n.attached=GL(),n}function qL(t,e){if(we(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const DE=/^on[a-z]/,KL=(t,e,n,r,s=!1,i,o,a,l)=>{e==="class"?xL(t,r,s):e==="style"?FL(t,n,r):$c(e)?H_(e)||$L(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):zL(t,e,r,s))?jL(t,e,r,i,o,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),UL(t,e,r,s))};function zL(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&DE.test(e)&&ke(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||DE.test(e)&&kt(n)?!1:e in t}const Xs="transition",fl="animation",fd=(t,{slots:e})=>Nn(YD,QL(t),e);fd.displayName="Transition";const Wk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};fd.props=jt({},mk,Wk);const Ui=(t,e=[])=>{we(t)?t.forEach(n=>n(...e)):t&&t(...e)},LE=t=>t?we(t)?t.some(e=>e.length>1):t.length>1:!1;function QL(t){const e={};for(const C in t)C in Wk||(e[C]=t[C]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=t,k=XL(s),I=k&&k[0],T=k&&k[1],{onBeforeEnter:g,onEnter:m,onEnterCancelled:_,onLeave:d,onLeaveCancelled:E,onBeforeAppear:p=g,onAppear:y=m,onAppearCancelled:w=_}=e,A=(C,R,L)=>{ji(C,R?u:a),ji(C,R?c:o),L&&L()},S=(C,R)=>{C._isLeaving=!1,ji(C,h),ji(C,v),ji(C,f),R&&R()},O=C=>(R,L)=>{const G=C?y:m,U=()=>A(R,C,L);Ui(G,[R,U]),ME(()=>{ji(R,C?l:i),Js(R,C?u:a),LE(G)||xE(R,r,I,U)})};return jt(e,{onBeforeEnter(C){Ui(g,[C]),Js(C,i),Js(C,o)},onBeforeAppear(C){Ui(p,[C]),Js(C,l),Js(C,c)},onEnter:O(!1),onAppear:O(!0),onLeave(C,R){C._isLeaving=!0;const L=()=>S(C,R);Js(C,h),eM(),Js(C,f),ME(()=>{C._isLeaving&&(ji(C,h),Js(C,v),LE(d)||xE(C,r,T,L))}),Ui(d,[C,L])},onEnterCancelled(C){A(C,!1),Ui(_,[C])},onAppearCancelled(C){A(C,!0),Ui(w,[C])},onLeaveCancelled(C){S(C),Ui(E,[C])}})}function XL(t){if(t==null)return null;if(ot(t))return[Fp(t.enter),Fp(t.leave)];{const e=Fp(t);return[e,e]}}function Fp(t){return jI(t)}function Js(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function ji(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function ME(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let JL=0;function xE(t,e,n,r){const s=t._endId=++JL,i=()=>{s===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=ZL(t,e);if(!o)return r();const c=o+"end";let u=0;const h=()=>{t.removeEventListener(c,f),i()},f=v=>{v.target===t&&++u>=l&&h()};setTimeout(()=>{u(n[k]||"").split(", "),s=r(`${Xs}Delay`),i=r(`${Xs}Duration`),o=FE(s,i),a=r(`${fl}Delay`),l=r(`${fl}Duration`),c=FE(a,l);let u=null,h=0,f=0;e===Xs?o>0&&(u=Xs,h=o,f=i.length):e===fl?c>0&&(u=fl,h=c,f=l.length):(h=Math.max(o,c),u=h>0?o>c?Xs:fl:null,f=u?u===Xs?i.length:l.length:0);const v=u===Xs&&/\b(transform|all)(,|$)/.test(r(`${Xs}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:v}}function FE(t,e){for(;t.lengthVE(n)+VE(t[r])))}function VE(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function eM(){return document.body.offsetHeight}const ka=t=>{const e=t.props["onUpdate:modelValue"]||!1;return we(e)?n=>aa(e,n):e};function tM(t){t.target.composing=!0}function UE(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const UX={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t._assign=ka(s);const i=r||s.props&&s.props.type==="number";ii(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),i&&(a=Vh(a)),t._assign(a)}),n&&ii(t,"change",()=>{t.value=t.value.trim()}),e||(ii(t,"compositionstart",tM),ii(t,"compositionend",UE),ii(t,"change",UE))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:s}},i){if(t._assign=ka(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(s||t.type==="number")&&Vh(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},jX={deep:!0,created(t,e,n){t._assign=ka(n),ii(t,"change",()=>{const r=t._modelValue,s=dc(t),i=t.checked,o=t._assign;if(we(r)){const a=q_(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if($a(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Gk(t,i))})},mounted:jE,beforeUpdate(t,e,n){t._assign=ka(n),jE(t,e,n)}};function jE(t,{value:e,oldValue:n},r){t._modelValue=e,we(e)?t.checked=q_(e,r.props.value)>-1:$a(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Hc(e,Gk(t,!0)))}const BX={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=$a(e);ii(t,"change",()=>{const i=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Vh(dc(o)):dc(o));t._assign(t.multiple?s?new Set(i):i:i[0])}),t._assign=ka(r)},mounted(t,{value:e}){BE(t,e)},beforeUpdate(t,e,n){t._assign=ka(n)},updated(t,{value:e}){BE(t,e)}};function BE(t,e){const n=t.multiple;if(!(n&&!we(e)&&!$a(e))){for(let r=0,s=t.options.length;r-1:i.selected=e.has(o);else if(Hc(dc(i),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function dc(t){return"_value"in t?t._value:t.value}function Gk(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const nM=["ctrl","shift","alt","meta"],rM={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>nM.some(n=>t[`${n}Key`]&&!e.includes(n))},$X=(t,e)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=So(n.key);if(e.some(s=>s===r||sM[s]===r))return t(n)},Yk=jt({patchProp:KL},ML);let jl,$E=!1;function iM(){return jl||(jl=yL(Yk))}function oM(){return jl=$E?jl:vL(Yk),$E=!0,jl}const aM=(...t)=>{const e=iM().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=qk(r);if(!s)return;const i=e._component;!ke(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e},lM=(...t)=>{const e=oM().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=qk(r);if(s)return n(s,!0,s instanceof SVGElement)},e};function qk(t){return kt(t)?document.querySelector(t):t}const cM=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,uM=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hM=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function fM(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){dM(t);return}return e}function dM(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Yh(t,e={}){if(typeof t!="string")return t;const n=t.trim();if(t[0]==='"'&&t[t.length-1]==='"')return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!hM.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(cM.test(t)||uM.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,fM)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const pM=/#/g,mM=/&/g,gM=/=/g,Ey=/\+/g,_M=/%5e/gi,yM=/%60/gi,vM=/%7c/gi,EM=/%20/gi;function wM(t){return encodeURI(""+t).replace(vM,"|")}function Wm(t){return wM(typeof t=="string"?t:JSON.stringify(t)).replace(Ey,"%2B").replace(EM,"+").replace(pM,"%23").replace(mM,"%26").replace(yM,"`").replace(_M,"^")}function Vp(t){return Wm(t).replace(gM,"%3D")}function qh(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function TM(t){return qh(t.replace(Ey," "))}function bM(t){return qh(t.replace(Ey," "))}function IM(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=TM(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=bM(r[2]||"");e[s]===void 0?e[s]=i:Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]}return e}function kM(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Vp(t)}=${Wm(n)}`).join("&"):`${Vp(t)}=${Wm(e)}`:Vp(t)}function SM(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>kM(e,t[e])).filter(Boolean).join("&")}const CM=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,RM=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,AM=/^([/\\]\s*){2,}[^/\\]/;function Co(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?CM.test(t):RM.test(t)||(e.acceptRelative?AM.test(t):!1)}const PM=/^[\s\0]*(blob|data|javascript|vbscript):$/i;function OM(t){return!!t&&PM.test(t)}const NM=/\/$|\/\?/;function Gm(t="",e=!1){return e?NM.test(t):t.endsWith("/")}function Kk(t="",e=!1){if(!e)return(Gm(t)?t.slice(0,-1):t)||"/";if(!Gm(t,!0))return t||"/";const[n,...r]=t.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Ym(t="",e=!1){if(!e)return t.endsWith("/")?t:t+"/";if(Gm(t,!0))return t||"/";const[n,...r]=t.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}function DM(t=""){return t.startsWith("/")}function HE(t=""){return DM(t)?t:"/"+t}function LM(t,e){if(Qk(e)||Co(t))return t;const n=Kk(e);return t.startsWith(n)?t:qa(n,t)}function WE(t,e){if(Qk(e))return t;const n=Kk(e);if(!t.startsWith(n))return t;const r=t.slice(n.length);return r[0]==="/"?r:"/"+r}function zk(t,e){const n=dd(t),r={...IM(n.search),...e};return n.search=SM(r),FM(n)}function Qk(t){return!t||t==="/"}function MM(t){return t&&t!=="/"}const xM=/^\.?\//;function qa(t,...e){let n=t||"";for(const r of e.filter(s=>MM(s)))if(n){const s=r.replace(xM,"");n=Ym(n)+s}else n=r;return n}function qm(t,e,n={}){return n.trailingSlash||(t=Ym(t),e=Ym(e)),n.leadingSlash||(t=HE(t),e=HE(e)),n.encoding||(t=qh(t),e=qh(e)),t===e}function dd(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/);if(n){const[,h,f=""]=n;return{protocol:h,pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!Co(t,{acceptRelative:!0}))return e?dd(e+t):GE(t);const[,r="",s,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=GE(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r,auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:c,hash:u}}function GE(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function FM(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",s=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+s+i+e+n+r}class VM extends Error{constructor(e,n){super(e,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function UM(t){var l,c,u,h,f;const e=((l=t.error)==null?void 0:l.message)||((c=t.error)==null?void 0:c.toString())||"",n=((u=t.request)==null?void 0:u.method)||((h=t.options)==null?void 0:h.method)||"GET",r=((f=t.request)==null?void 0:f.url)||String(t.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"",o=`${s}: ${i}${e?` ${e}`:""}`,a=new VM(o,t.error?{cause:t.error}:void 0);for(const v of["request","options","response"])Object.defineProperty(a,v,{get(){return t[v]}});for(const[v,k]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,v,{get(){return t.response&&t.response[k]}});return a}const jM=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function YE(t="GET"){return jM.has(t.toUpperCase())}function BM(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const $M=new Set(["image/svg","application/xml","application/xhtml","application/html"]),HM=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function WM(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return HM.test(e)?"json":$M.has(e)||e.startsWith("text/")?"text":"blob"}function GM(t,e,n=globalThis.Headers){const r={...e,...t};if(e!=null&&e.params&&(t!=null&&t.params)&&(r.params={...e==null?void 0:e.params,...t==null?void 0:t.params}),e!=null&&e.query&&(t!=null&&t.query)&&(r.query={...e==null?void 0:e.query,...t==null?void 0:t.query}),e!=null&&e.headers&&(t!=null&&t.headers)){r.headers=new n((e==null?void 0:e.headers)||{});for(const[s,i]of new n((t==null?void 0:t.headers)||{}))r.headers.set(s,i)}return r}const YM=new Set([408,409,425,429,500,502,503,504]),qM=new Set([101,204,205,304]);function Xk(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=YE(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):YM.has(h))){const f=a.options.retryDelay||0;return f>0&&await new Promise(v=>setTimeout(v,f)),i(a.request,{...a.options,retry:u-1,timeout:a.options.timeout})}}const c=UM(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(l,c={}){var f;const u={request:l,options:GM(c,t.defaults,n),response:void 0,error:void 0};if(u.options.method=(f=u.options.method)==null?void 0:f.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=LM(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=zk(u.request,{...u.options.params,...u.options.query}))),u.options.body&&YE(u.options.method)&&(BM(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"))),!u.options.signal&&u.options.timeout){const v=new r;setTimeout(()=>v.abort(),u.options.timeout),u.options.signal=v.signal}try{u.response=await e(u.request,u.options)}catch(v){return u.error=v,u.options.onRequestError&&await u.options.onRequestError(u),await s(u)}if(u.response.body&&!qM.has(u.response.status)&&u.options.method!=="HEAD"){const v=(u.options.parseResponse?"json":u.options.responseType)||WM(u.response.headers.get("content-type")||"");switch(v){case"json":{const k=await u.response.text(),I=u.options.parseResponse||Yh;u.response._data=I(k);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[v]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await s(u)):u.response},o=async function(l,c){return(await i(l,c))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={})=>Xk({...t,defaults:{...t.defaults,...a}}),o}const wy=function(){if(typeof globalThis<"u")return globalThis;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")}(),KM=wy.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),zM=wy.Headers,QM=wy.AbortController,XM=Xk({fetch:KM,Headers:zM,AbortController:QM}),JM=XM,ZM=()=>{var t;return((t=window==null?void 0:window.__NUXT__)==null?void 0:t.config)||{}},Kh=ZM().app,ex=()=>Kh.baseURL,tx=()=>Kh.buildAssetsDir,nx=(...t)=>qa(Jk(),tx(),...t),Jk=(...t)=>{const e=Kh.cdnURL||Kh.baseURL;return t.length?qa(e,...t):e};globalThis.__buildAssetsURL=nx,globalThis.__publicAssetsURL=Jk;function Km(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Km(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const rx={run:t=>t()},sx=()=>rx,Zk=typeof console.createTask<"u"?console.createTask:sx;function ix(t,e){const n=e.shift(),r=Zk(n);return t.reduce((s,i)=>s.then(()=>r.run(()=>i(...e))),Promise.resolve())}function ox(t,e){const n=e.shift(),r=Zk(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}function Up(t,e){for(const n of[...t])n(e)}class ax{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(e,s),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const s of r)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Km(e),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(e){const n=Km(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(ix,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(ox,e,...n)}callHookWith(e,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Up(this._before,s);const i=e(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Up(this._after,s)}):(this._after&&s&&Up(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function eS(){return new ax}function lx(t={}){let e,n=!1;const r=o=>{if(e&&e!==o)throw new Error("Context conflict")};let s;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&e===void 0){const o=s.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{r(o),e=o;try{return s?s.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const l=()=>{e=o},c=()=>e===o?l:void 0;zm.add(c);try{const u=s?s.run(o,a):a();return n||(e=void 0),await u}finally{zm.delete(c)}}}}function cx(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=lx({...t,...r})),e[n],e[n]}}}const zh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},qE="__unctx__",ux=zh[qE]||(zh[qE]=cx()),hx=(t,e={})=>ux.get(t,e),KE="__unctx_async_handlers__",zm=zh[KE]||(zh[KE]=new Set);function _i(t){const e=[];for(const s of zm){const i=s();i&&e.push(i)}const n=()=>{for(const s of e)s()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const tS=hx("nuxt-app",{asyncContext:!1}),fx="__nuxt_plugin";function dx(t){let e=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.7.4"},get vue(){return n.vueApp.version}},payload:ts({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:s=>_x(n,s),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...t};n.hooks=eS(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Ku(n,o,i),Ku(n.vueApp.config.globalProperties,o,i)},Ku(n.vueApp,"$nuxt",n),Ku(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||ct;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=ts(n.payload.config);return n.provide("config",r),n}async function px(t,e){if(e.hooks&&t.hooks.addHooks(e.hooks),typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const r in n)t.provide(r,n[r])}}async function mx(t,e){const n=[],r=[];for(const s of e){const i=px(t,s);s.parallel?n.push(i.catch(o=>r.push(o))):await i}if(await Promise.all(n),r.length)throw r[0]}/*! @__NO_SIDE_EFFECTS__ */function en(t){return typeof t=="function"?t:(delete t.name,Object.assign(t.setup||(()=>{}),t,{[fx]:!0}))}const gx=en;function _x(t,e,n){const r=()=>n?e(...n):e();return tS.set(t),t.vueApp.runWithContext(r)}/*! @__NO_SIDE_EFFECTS__ */function ct(){var e;let t;if(my()&&(t=(e=Or())==null?void 0:e.appContext.app.$nuxt),t=t||tS.tryUse(),!t)throw new Error("[nuxt] instance unavailable");return t}/*! @__NO_SIDE_EFFECTS__ */function pd(){return ct().$config}function Ku(t,e,n){Object.defineProperty(t,e,{get:()=>n})}/** * @license * Copyright 2017 Google LLC * @@ -13,7 +13,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},_M=function(t){const e=[];let n=0,r=0;for(;n191&&s<224){const i=t[n++];e[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=t[n++],o=t[n++],a=t[n++],l=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const i=t[n++],o=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return e.join("")},dd={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:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s>2,h=(i&3)<<4|a>>4;let f=(a&15)<<2|c>>6,v=c&63;l||(v=64,o||(f=64)),r.push(n[u],n[h],n[f],n[v])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(tS(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):_M(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s>4;if(r.push(f),c!==64){const v=a<<4&240|c>>2;if(r.push(v),h!==64){const k=c<<6&192|h;r.push(k)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class yM extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const nS=function(t){const e=tS(t);return dd.encodeByteArray(e,!0)},Kh=function(t){return nS(t).replace(/\./g,"")},zh=function(t){try{return dd.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** + */const rS=function(t){const e=[];let n=0;for(let r=0;r>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},yx=function(t){const e=[];let n=0,r=0;for(;n191&&s<224){const i=t[n++];e[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=t[n++],o=t[n++],a=t[n++],l=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const i=t[n++],o=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return e.join("")},md={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:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s>2,h=(i&3)<<4|a>>4;let f=(a&15)<<2|c>>6,v=c&63;l||(v=64,o||(f=64)),r.push(n[u],n[h],n[f],n[v])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(rS(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):yx(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s>4;if(r.push(f),c!==64){const v=a<<4&240|c>>2;if(r.push(v),h!==64){const k=c<<6&192|h;r.push(k)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class vx extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const sS=function(t){const e=rS(t);return md.encodeByteArray(e,!0)},Qh=function(t){return sS(t).replace(/\./g,"")},Xh=function(t){try{return md.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** * @license * Copyright 2017 Google LLC * @@ -58,7 +58,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;swM().__FIREBASE_DEFAULTS__,bM=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t={}.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},IM=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&zh(t[1]);return e&&JSON.parse(e)},Ty=()=>{try{return TM()||bM()||IM()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},sS=t=>{var e,n;return(n=(e=Ty())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},kM=t=>{const e=sS(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},iS=()=>{var t;return(t=Ty())===null||t===void 0?void 0:t.config},oS=t=>{var e;return(e=Ty())===null||e===void 0?void 0:e[`_${t}`]};/** + */const bx=()=>Tx().__FIREBASE_DEFAULTS__,Ix=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t={}.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},kx=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Xh(t[1]);return e&&JSON.parse(e)},Ty=()=>{try{return bx()||Ix()||kx()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},oS=t=>{var e,n;return(n=(e=Ty())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},Sx=t=>{const e=oS(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},aS=()=>{var t;return(t=Ty())===null||t===void 0?void 0:t.config},lS=t=>{var e;return(e=Ty())===null||e===void 0?void 0:e[`_${t}`]};/** * @license * Copyright 2017 Google LLC * @@ -118,7 +118,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s=0||t.indexOf("Trident/")>=0}function lS(){return eS.NODE_ADMIN===!0}function cS(){try{return typeof indexedDB=="object"}catch{return!1}}function AM(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var i;e(((i=s.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}/** + */function bn(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function by(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(bn())}function Rx(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function cS(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Ax(){const t=bn();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function uS(){return nS.NODE_ADMIN===!0}function hS(){try{return typeof indexedDB=="object"}catch{return!1}}function Px(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var i;e(((i=s.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}/** * @license * Copyright 2017 Google LLC * @@ -148,7 +148,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{const s=e[r];return s!=null?String(s):`<${r}?>`})}const NM=/\{\$([^}]+)}/g;/** + */const Ox="FirebaseError";class ls extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=Ox,Object.setPrototypeOf(this,ls.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,za.prototype.create)}}class za{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,i=this.errors[e],o=i?Nx(i,r):"Error",a=`${this.serviceName}: ${o} (${s}).`;return new ls(s,a,r)}}function Nx(t,e){return t.replace(Dx,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const Dx=/\{\$([^}]+)}/g;/** * @license * Copyright 2017 Google LLC * @@ -178,7 +178,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s>>31)&4294967295}let s=this.chain_[0],i=this.chain_[1],o=this.chain_[2],a=this.chain_[3],l=this.chain_[4],c,u;for(let h=0;h<80;h++){h<40?h<20?(c=a^i&(o^a),u=1518500249):(c=i^o^a,u=1859775393):h<60?(c=i&o|a&(i|o),u=2400959708):(c=i^o^a,u=3395469782);const f=(s<<5|s>>>27)+c+l+u+r[h]&4294967295;l=a,a=o,o=(i<<30|i>>>2)&4294967295,i=s,s=f}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+i&4294967295,this.chain_[2]=this.chain_[2]+o&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295}update(e,n){if(e==null)return;n===void 0&&(n=e.length);const r=n-this.blockSize;let s=0;const i=this.buf_;let o=this.inbuf_;for(;s=56;s--)this.buf_[s]=n&255,n/=256;this.compress_(this.buf_);let r=0;for(let s=0;s<5;s++)for(let i=24;i>=0;i-=8)e[r]=this.chain_[s]>>i&255,++r;return e}}function MM(t,e){const n=new FM(t,e);return n.subscribe.bind(n)}class FM{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let s;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");VM(e,["next","error","complete"])?s=e:s={next:e,error:n,complete:r},s.next===void 0&&(s.next=jp),s.error===void 0&&(s.error=jp),s.complete===void 0&&(s.complete=jp);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function VM(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function jp(){}function UM(t,e){return`${t} failed: ${e} argument `}/** + */class xx{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=512/8,this.pad_[0]=128;for(let e=1;e>>31)&4294967295}let s=this.chain_[0],i=this.chain_[1],o=this.chain_[2],a=this.chain_[3],l=this.chain_[4],c,u;for(let h=0;h<80;h++){h<40?h<20?(c=a^i&(o^a),u=1518500249):(c=i^o^a,u=1859775393):h<60?(c=i&o|a&(i|o),u=2400959708):(c=i^o^a,u=3395469782);const f=(s<<5|s>>>27)+c+l+u+r[h]&4294967295;l=a,a=o,o=(i<<30|i>>>2)&4294967295,i=s,s=f}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+i&4294967295,this.chain_[2]=this.chain_[2]+o&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295}update(e,n){if(e==null)return;n===void 0&&(n=e.length);const r=n-this.blockSize;let s=0;const i=this.buf_;let o=this.inbuf_;for(;s=56;s--)this.buf_[s]=n&255,n/=256;this.compress_(this.buf_);let r=0;for(let s=0;s<5;s++)for(let i=24;i>=0;i-=8)e[r]=this.chain_[s]>>i&255,++r;return e}}function Fx(t,e){const n=new Vx(t,e);return n.subscribe.bind(n)}class Vx{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let s;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Ux(e,["next","error","complete"])?s=e:s={next:e,error:n,complete:r},s.next===void 0&&(s.next=jp),s.error===void 0&&(s.error=jp),s.complete===void 0&&(s.complete=jp);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Ux(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function jp(){}function jx(t,e){return`${t} failed: ${e} argument `}/** * @license * Copyright 2017 Google LLC * @@ -238,7 +238,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s=55296&&s<=56319){const i=s-55296;r++,pe(r>6|192,e[n++]=s&63|128):s<65536?(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},pd=function(t){let e=0;for(let n=0;n=55296&&r<=56319?(e+=4,n++):e+=3}return e};/** + */const Bx=function(t){const e=[];let n=0;for(let r=0;r=55296&&s<=56319){const i=s-55296;r++,pe(r>6|192,e[n++]=s&63|128):s<65536?(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},gd=function(t){let e=0;for(let n=0;n=55296&&r<=56319?(e+=4,n++):e+=3}return e};/** * @license * Copyright 2021 Google LLC * @@ -283,7 +283,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Wi){return this.instances.has(e)}getOptions(e=Wi){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(e,n){var r;const s=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;i.add(e),this.onInitCallbacks.set(s,i);const o=this.instances.get(s);return o&&e(o,s),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:$M(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Wi){return this.component?this.component.multipleInstances?e:Wi:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function $M(t){return t===Wi?void 0:t}function HM(t){return t.instantiationMode==="EAGER"}/** + */class $x{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new pc;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),s=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(s)return null;throw i}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Wx(e))try{this.getOrInitializeService({instanceIdentifier:Wi})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:s});r.resolve(i)}catch{}}}}clearInstance(e=Wi){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Wi){return this.instances.has(e)}getOptions(e=Wi){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(e,n){var r;const s=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;i.add(e),this.onInitCallbacks.set(s,i);const o=this.instances.get(s);return o&&e(o,s),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Hx(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Wi){return this.component?this.component.multipleInstances?e:Wi:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Hx(t){return t===Wi?void 0:t}function Wx(t){return t.instantiationMode==="EAGER"}/** * @license * Copyright 2019 Google LLC * @@ -298,7 +298,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{if(ee.some(n=>t instanceof n);let KE,zE;function QM(){return KE||(KE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function XM(){return zE||(zE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const hS=new WeakMap,Xm=new WeakMap,fS=new WeakMap,Bp=new WeakMap,Iy=new WeakMap;function JM(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(yi(t.result)),s()},o=()=>{r(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&hS.set(n,t)}).catch(()=>{}),Iy.set(e,t),e}function ZM(t){if(Xm.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Xm.set(t,e)}let Jm={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Xm.get(t);if(e==="objectStoreNames")return t.objectStoreNames||fS.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return yi(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function eF(t){Jm=t(Jm)}function tF(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call($p(this),e,...n);return fS.set(r,e.sort?e.sort():[e]),yi(r)}:XM().includes(t)?function(...e){return t.apply($p(this),e),yi(hS.get(this))}:function(...e){return yi(t.apply($p(this),e))}}function nF(t){return typeof t=="function"?tF(t):(t instanceof IDBTransaction&&ZM(t),zM(t,QM())?new Proxy(t,Jm):t)}function yi(t){if(t instanceof IDBRequest)return JM(t);if(Bp.has(t))return Bp.get(t);const e=nF(t);return e!==t&&(Bp.set(t,e),Iy.set(e,t)),e}const $p=t=>Iy.get(t);function rF(t,e,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=yi(o);return r&&o.addEventListener("upgradeneeded",l=>{r(yi(o.result),l.oldVersion,l.newVersion,yi(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),s&&l.addEventListener("versionchange",c=>s(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const sF=["get","getKey","getAll","getAllKeys","count"],iF=["put","add","delete","clear"],Hp=new Map;function QE(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Hp.get(e))return Hp.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=iF.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||sF.includes(n)))return;const i=async function(o,...a){const l=this.transaction(o,s?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),s&&l.done]))[0]};return Hp.set(e,i),i}eF(t=>({...t,get:(e,n,r)=>QE(e,n)||t.get(e,n,r),has:(e,n)=>!!QE(e,n)||t.has(e,n)}));/** + */var Ue;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ue||(Ue={}));const Yx={debug:Ue.DEBUG,verbose:Ue.VERBOSE,info:Ue.INFO,warn:Ue.WARN,error:Ue.ERROR,silent:Ue.SILENT},qx=Ue.INFO,Kx={[Ue.DEBUG]:"log",[Ue.VERBOSE]:"log",[Ue.INFO]:"info",[Ue.WARN]:"warn",[Ue.ERROR]:"error"},zx=(t,e,...n)=>{if(ee.some(n=>t instanceof n);let QE,XE;function Xx(){return QE||(QE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Jx(){return XE||(XE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const dS=new WeakMap,Xm=new WeakMap,pS=new WeakMap,Bp=new WeakMap,Iy=new WeakMap;function Zx(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(yi(t.result)),s()},o=()=>{r(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&dS.set(n,t)}).catch(()=>{}),Iy.set(e,t),e}function eF(t){if(Xm.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Xm.set(t,e)}let Jm={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Xm.get(t);if(e==="objectStoreNames")return t.objectStoreNames||pS.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return yi(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function tF(t){Jm=t(Jm)}function nF(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call($p(this),e,...n);return pS.set(r,e.sort?e.sort():[e]),yi(r)}:Jx().includes(t)?function(...e){return t.apply($p(this),e),yi(dS.get(this))}:function(...e){return yi(t.apply($p(this),e))}}function rF(t){return typeof t=="function"?nF(t):(t instanceof IDBTransaction&&eF(t),Qx(t,Xx())?new Proxy(t,Jm):t)}function yi(t){if(t instanceof IDBRequest)return Zx(t);if(Bp.has(t))return Bp.get(t);const e=rF(t);return e!==t&&(Bp.set(t,e),Iy.set(e,t)),e}const $p=t=>Iy.get(t);function sF(t,e,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=yi(o);return r&&o.addEventListener("upgradeneeded",l=>{r(yi(o.result),l.oldVersion,l.newVersion,yi(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),s&&l.addEventListener("versionchange",c=>s(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const iF=["get","getKey","getAll","getAllKeys","count"],oF=["put","add","delete","clear"],Hp=new Map;function JE(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Hp.get(e))return Hp.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=oF.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||iF.includes(n)))return;const i=async function(o,...a){const l=this.transaction(o,s?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),s&&l.done]))[0]};return Hp.set(e,i),i}tF(t=>({...t,get:(e,n,r)=>JE(e,n)||t.get(e,n,r),has:(e,n)=>!!JE(e,n)||t.has(e,n)}));/** * @license * Copyright 2019 Google LLC * @@ -328,7 +328,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{if(aF(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function aF(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Zm="@firebase/app",XE="0.9.19";/** + */class aF{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(lF(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function lF(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Zm="@firebase/app",ZE="0.9.19";/** * @license * Copyright 2019 Google LLC * @@ -343,7 +343,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw vi.create("app-deleted",{appName:this._name})}}/** + */class FF{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new kr("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}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(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw vi.create("app-deleted",{appName:this._name})}}/** * @license * Copyright 2019 Google LLC * @@ -418,7 +418,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s({library:s,version:e}),"VERSION"))}/** + */const Di=DF;function mS(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:eg,automaticDataCollectionEnabled:!1},e),s=r.name;if(typeof s!="string"||!s)throw vi.create("bad-app-name",{appName:String(s)});if(n||(n=aS()),!n)throw vi.create("no-options");const i=ef.get(s);if(i){if(Zh(n,i.options)&&Zh(r,i.config))return i;throw vi.create("duplicate-app",{appName:s})}const o=new Gx(s);for(const l of tg.values())o.addComponent(l);const a=new FF(n,r,o);return ef.set(s,a),a}function Sy(t=eg){const e=ef.get(t);if(!e&&t===eg&&aS())return mS();if(!e)throw vi.create("no-app",{appName:t});return e}function Qn(t,e,n){var r;let s=(r=LF[t])!==null&&r!==void 0?r:t;n&&(s+=`-${n}`);const i=s.match(/\s|\//),o=e.match(/\s|\//);if(i||o){const a=[`Unable to register library "${s}" with version "${e}":`];i&&a.push(`library name "${s}" contains illegal characters (whitespace or "/")`),i&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),mo.warn(a.join(" "));return}ns(new kr(`${s}-version`,()=>({library:s,version:e}),"VERSION"))}/** * @license * Copyright 2021 Google LLC * @@ -433,7 +433,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{switch(e){case 0:t.createObjectStore(gc)}}}).catch(t=>{throw vi.create("idb-open",{originalErrorMessage:t.message})})),Wp}async function UF(t){try{return await(await pS()).transaction(gc).objectStore(gc).get(mS(t))}catch(e){if(e instanceof as)mo.warn(e.message);else{const n=vi.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});mo.warn(n.message)}}}async function JE(t,e){try{const r=(await pS()).transaction(gc,"readwrite");await r.objectStore(gc).put(e,mS(t)),await r.done}catch(n){if(n instanceof as)mo.warn(n.message);else{const r=vi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});mo.warn(r.message)}}}function mS(t){return`${t.name}!${t.options.appId}`}/** + */const VF="firebase-heartbeat-database",UF=1,gc="firebase-heartbeat-store";let Wp=null;function gS(){return Wp||(Wp=sF(VF,UF,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(gc)}}}).catch(t=>{throw vi.create("idb-open",{originalErrorMessage:t.message})})),Wp}async function jF(t){try{return await(await gS()).transaction(gc).objectStore(gc).get(_S(t))}catch(e){if(e instanceof ls)mo.warn(e.message);else{const n=vi.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});mo.warn(n.message)}}}async function ew(t,e){try{const r=(await gS()).transaction(gc,"readwrite");await r.objectStore(gc).put(e,_S(t)),await r.done}catch(n){if(n instanceof ls)mo.warn(n.message);else{const r=vi.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});mo.warn(r.message)}}}function _S(t){return`${t.name}!${t.options.appId}`}/** * @license * Copyright 2021 Google LLC * @@ -448,7 +448,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=ZE();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(s=>s.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const i=new Date(s.date).valueOf();return Date.now()-i<=BF}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=ZE(),{heartbeatsToSend:n,unsentEntries:r}=HF(this._heartbeatsCache.heartbeats),s=Kh(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}}function ZE(){return new Date().toISOString().substring(0,10)}function HF(t,e=jF){const n=[];let r=t.slice();for(const s of t){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),ew(n)>e){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),ew(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class WF{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return cS()?AM().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await UF(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return JE(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return JE(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function ew(t){return Kh(JSON.stringify({version:2,heartbeats:t})).length}/** + */const BF=1024,$F=30*24*60*60*1e3;class HF{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new GF(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=tw();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(s=>s.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const i=new Date(s.date).valueOf();return Date.now()-i<=$F}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=tw(),{heartbeatsToSend:n,unsentEntries:r}=WF(this._heartbeatsCache.heartbeats),s=Qh(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}}function tw(){return new Date().toISOString().substring(0,10)}function WF(t,e=BF){const n=[];let r=t.slice();for(const s of t){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),nw(n)>e){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),nw(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class GF{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return hS()?Px().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await jF(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return ew(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return ew(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function nw(t){return Qh(JSON.stringify({version:2,heartbeats:t})).length}/** * @license * Copyright 2019 Google LLC * @@ -463,15 +463,15 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;snew oF(e),"PRIVATE")),ns(new kr("heartbeat",e=>new $F(e),"PRIVATE")),zn(Zm,XE,t),zn(Zm,XE,"esm2017"),zn("fire-js","")}GF("");var YF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me,Cy=Cy||{},Ce=YF||self;function md(t){var e=typeof t;return e=e!="object"?e:t?Array.isArray(t)?"array":e:"null",e=="array"||e=="object"&&typeof t.length=="number"}function Kc(t){var e=typeof t;return e=="object"&&t!=null||e=="function"}function qF(t){return Object.prototype.hasOwnProperty.call(t,Gp)&&t[Gp]||(t[Gp]=++KF)}var Gp="closure_uid_"+(1e9*Math.random()>>>0),KF=0;function zF(t,e,n){return t.call.apply(t.bind,arguments)}function QF(t,e,n){if(!t)throw Error();if(2{},e),Ce.removeEventListener("test",()=>{},e)}catch{}return t}();function _c(t){return/^[\s\xa0]*$/.test(t)}function gd(){var t=Ce.navigator;return t&&(t=t.userAgent)?t:""}function Hr(t){return gd().indexOf(t)!=-1}function Ay(t){return Ay[" "](t),t}Ay[" "]=function(){};function ZF(t,e){var n=GV;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}var eV=Hr("Opera"),Ca=Hr("Trident")||Hr("MSIE"),_S=Hr("Edge"),ng=_S||Ca,yS=Hr("Gecko")&&!(gd().toLowerCase().indexOf("webkit")!=-1&&!Hr("Edge"))&&!(Hr("Trident")||Hr("MSIE"))&&!Hr("Edge"),tV=gd().toLowerCase().indexOf("webkit")!=-1&&!Hr("Edge");function vS(){var t=Ce.document;return t?t.documentMode:void 0}var rg;e:{var Yp="",qp=function(){var t=gd();if(yS)return/rv:([^\);]+)(\)|;)/.exec(t);if(_S)return/Edge\/([\d\.]+)/.exec(t);if(Ca)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(tV)return/WebKit\/(\S+)/.exec(t);if(eV)return/(?:Version)[ \/]?(\S+)/.exec(t)}();if(qp&&(Yp=qp?qp[1]:""),Ca){var Kp=vS();if(Kp!=null&&Kp>parseFloat(Yp)){rg=String(Kp);break e}}rg=Yp}var sg;if(Ce.document&&Ca){var nw=vS();sg=nw||parseInt(rg,10)||void 0}else sg=void 0;var nV=sg;function yc(t,e){if(vn.call(this,t?t.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,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(yS){e:{try{Ay(e.nodeName);var s=!0;break e}catch{}s=!1}s||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:rV[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&yc.$.h.call(this)}}tn(yc,vn);var rV={2:"touch",3:"pen",4:"mouse"};yc.prototype.h=function(){yc.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var zc="closure_listenable_"+(1e6*Math.random()|0),sV=0;function iV(t,e,n,r,s){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.la=s,this.key=++sV,this.fa=this.ia=!1}function _d(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function Py(t,e,n){for(const r in t)e.call(n,t[r],r,t)}function oV(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function ES(t){const e={};for(const n in t)e[n]=t[n];return e}const rw="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function wS(t,e){let n,r;for(let s=1;s>>0);function Ly(t){return typeof t=="function"?t:(t[Qp]||(t[Qp]=function(e){return t.handleEvent(e)}),t[Qp])}function Zt(){Li.call(this),this.i=new yd(this),this.S=this,this.J=null}tn(Zt,Li);Zt.prototype[zc]=!0;Zt.prototype.removeEventListener=function(t,e,n,r){kS(this,t,e,n,r)};function an(t,e){var n,r=t.J;if(r)for(n=[];r;r=r.J)n.push(r);if(t=t.S,r=e.type||e,typeof e=="string")e=new vn(e,t);else if(e instanceof vn)e.target=e.target||t;else{var s=e;e=new vn(r,t),wS(e,s)}if(s=!0,n)for(var i=n.length-1;0<=i;i--){var o=e.g=n[i];s=Ku(o,r,!0,e)&&s}if(o=e.g=t,s=Ku(o,r,!0,e)&&s,s=Ku(o,r,!1,e)&&s,n)for(i=0;inew fV,t=>t.reset());class fV{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}function dV(t){var e=1;t=t.split(":");const n=[];for(;0{throw t},0)}let vc,Ec=!1,My=new hV,RS=()=>{const t=Ce.Promise.resolve(void 0);vc=()=>{t.then(mV)}};var mV=()=>{for(var t;t=uV();){try{t.h.call(t.g)}catch(n){pV(n)}var e=CS;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}Ec=!1};function vd(t,e){Zt.call(this),this.h=t||1,this.g=e||Ce,this.j=yn(this.qb,this),this.l=Date.now()}tn(vd,Zt);me=vd.prototype;me.ga=!1;me.T=null;me.qb=function(){if(this.ga){var t=Date.now()-this.l;0{t.g=null,t.i&&(t.i=!1,AS(t))},t.j);const e=t.h;t.h=null,t.m.apply(null,e)}class gV extends Li{constructor(e,n){super(),this.m=e,this.j=n,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:AS(this)}N(){super.N(),this.g&&(Ce.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function wc(t){Li.call(this),this.h=t,this.g={}}tn(wc,Li);var sw=[];function PS(t,e,n,r){Array.isArray(n)||(n&&(sw[0]=n.toString()),n=sw);for(var s=0;snew aF(e),"PRIVATE")),ns(new kr("heartbeat",e=>new HF(e),"PRIVATE")),Qn(Zm,ZE,t),Qn(Zm,ZE,"esm2017"),Qn("fire-js","")}YF("");var qF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me,Cy=Cy||{},Ce=qF||self;function _d(t){var e=typeof t;return e=e!="object"?e:t?Array.isArray(t)?"array":e:"null",e=="array"||e=="object"&&typeof t.length=="number"}function Kc(t){var e=typeof t;return e=="object"&&t!=null||e=="function"}function KF(t){return Object.prototype.hasOwnProperty.call(t,Gp)&&t[Gp]||(t[Gp]=++zF)}var Gp="closure_uid_"+(1e9*Math.random()>>>0),zF=0;function QF(t,e,n){return t.call.apply(t.bind,arguments)}function XF(t,e,n){if(!t)throw Error();if(2{},e),Ce.removeEventListener("test",()=>{},e)}catch{}return t}();function _c(t){return/^[\s\xa0]*$/.test(t)}function yd(){var t=Ce.navigator;return t&&(t=t.userAgent)?t:""}function Hr(t){return yd().indexOf(t)!=-1}function Ay(t){return Ay[" "](t),t}Ay[" "]=function(){};function eV(t,e){var n=YV;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}var tV=Hr("Opera"),Ca=Hr("Trident")||Hr("MSIE"),vS=Hr("Edge"),ng=vS||Ca,ES=Hr("Gecko")&&!(yd().toLowerCase().indexOf("webkit")!=-1&&!Hr("Edge"))&&!(Hr("Trident")||Hr("MSIE"))&&!Hr("Edge"),nV=yd().toLowerCase().indexOf("webkit")!=-1&&!Hr("Edge");function wS(){var t=Ce.document;return t?t.documentMode:void 0}var rg;e:{var Yp="",qp=function(){var t=yd();if(ES)return/rv:([^\);]+)(\)|;)/.exec(t);if(vS)return/Edge\/([\d\.]+)/.exec(t);if(Ca)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(nV)return/WebKit\/(\S+)/.exec(t);if(tV)return/(?:Version)[ \/]?(\S+)/.exec(t)}();if(qp&&(Yp=qp?qp[1]:""),Ca){var Kp=wS();if(Kp!=null&&Kp>parseFloat(Yp)){rg=String(Kp);break e}}rg=Yp}var sg;if(Ce.document&&Ca){var sw=wS();sg=sw||parseInt(rg,10)||void 0}else sg=void 0;var rV=sg;function yc(t,e){if(vn.call(this,t?t.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,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(ES){e:{try{Ay(e.nodeName);var s=!0;break e}catch{}s=!1}s||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:sV[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&yc.$.h.call(this)}}tn(yc,vn);var sV={2:"touch",3:"pen",4:"mouse"};yc.prototype.h=function(){yc.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var zc="closure_listenable_"+(1e6*Math.random()|0),iV=0;function oV(t,e,n,r,s){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.la=s,this.key=++iV,this.fa=this.ia=!1}function vd(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function Py(t,e,n){for(const r in t)e.call(n,t[r],r,t)}function aV(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function TS(t){const e={};for(const n in t)e[n]=t[n];return e}const iw="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function bS(t,e){let n,r;for(let s=1;s>>0);function Ly(t){return typeof t=="function"?t:(t[Qp]||(t[Qp]=function(e){return t.handleEvent(e)}),t[Qp])}function Zt(){Li.call(this),this.i=new Ed(this),this.S=this,this.J=null}tn(Zt,Li);Zt.prototype[zc]=!0;Zt.prototype.removeEventListener=function(t,e,n,r){CS(this,t,e,n,r)};function an(t,e){var n,r=t.J;if(r)for(n=[];r;r=r.J)n.push(r);if(t=t.S,r=e.type||e,typeof e=="string")e=new vn(e,t);else if(e instanceof vn)e.target=e.target||t;else{var s=e;e=new vn(r,t),bS(e,s)}if(s=!0,n)for(var i=n.length-1;0<=i;i--){var o=e.g=n[i];s=Qu(o,r,!0,e)&&s}if(o=e.g=t,s=Qu(o,r,!0,e)&&s,s=Qu(o,r,!1,e)&&s,n)for(i=0;inew dV,t=>t.reset());class dV{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}function pV(t){var e=1;t=t.split(":");const n=[];for(;0{throw t},0)}let vc,Ec=!1,xy=new fV,PS=()=>{const t=Ce.Promise.resolve(void 0);vc=()=>{t.then(gV)}};var gV=()=>{for(var t;t=hV();){try{t.h.call(t.g)}catch(n){mV(n)}var e=AS;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}Ec=!1};function wd(t,e){Zt.call(this),this.h=t||1,this.g=e||Ce,this.j=yn(this.qb,this),this.l=Date.now()}tn(wd,Zt);me=wd.prototype;me.ga=!1;me.T=null;me.qb=function(){if(this.ga){var t=Date.now()-this.l;0{t.g=null,t.i&&(t.i=!1,OS(t))},t.j);const e=t.h;t.h=null,t.m.apply(null,e)}class _V extends Li{constructor(e,n){super(),this.m=e,this.j=n,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:OS(this)}N(){super.N(),this.g&&(Ce.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function wc(t){Li.call(this),this.h=t,this.g={}}tn(wc,Li);var ow=[];function NS(t,e,n,r){Array.isArray(n)||(n&&(ow[0]=n.toString()),n=ow);for(var s=0;sr.length)){var s=r[1];if(Array.isArray(s)&&!(1>s.length)){var i=s[0];if(i!="noop"&&i!="stop"&&i!="close")for(var o=1;ou)&&(u!=3||ng||this.g&&(this.h.h||this.g.ja()||uw(this.g)))){this.J||u!=4||e==7||(e==8||0>=h?Tc(3):Tc(2)),Id(this);var n=this.g.da();this.ca=n;t:if(US(this)){var r=uw(this.g);t="";var s=r.length,i=Gr(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Ji(this),Bl(this);var o="";break t}this.h.i=new Ce.TextDecoder}for(e=0;ee.length?Zh:(e=e.slice(r,r+n),t.C=r+n,e)))}me.cancel=function(){this.J=!0,Ji(this)};function Zc(t){t.Y=Date.now()+t.P,BS(t,t.P)}function BS(t,e){if(t.B!=null)throw Error("WatchDog timer not null");t.B=Qc(yn(t.lb,t),e)}function Id(t){t.B&&(Ce.clearTimeout(t.B),t.B=null)}me.lb=function(){this.B=null;const t=Date.now();0<=t-this.Y?(vV(this.j,this.A),this.L!=2&&(Tc(),Pn(17)),Ji(this),this.o=2,Bl(this)):BS(this,this.Y-t)};function Bl(t){t.l.H==0||t.J||cC(t.l,t)}function Ji(t){Id(t);var e=t.M;e&&typeof e.sa=="function"&&e.sa(),t.M=null,Fy(t.V),OS(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.sa())}function ug(t,e){try{var n=t.l;if(n.H!=0&&(n.g==t||hg(n.i,t))){if(!t.K&&hg(n.i,t)&&n.H==3){try{var r=n.Ja.g.parse(e)}catch{r=null}if(Array.isArray(r)&&r.length==3){var s=r;if(s[0]==0){e:if(!n.u){if(n.g)if(n.g.G+3e3s[2]&&n.G&&n.A==0&&!n.v&&(n.v=Qc(yn(n.ib,n),6e3));if(1>=zS(n.i)&&n.oa){try{n.oa()}catch{}n.oa=void 0}}else Zi(n,11)}else if((t.K||n.g==t)&&nf(n),!_c(e))for(s=n.Ja.g.parse(e),e=0;ee)throw Error("Bad port number "+e);t.m=e}else t.m=null}function aw(t,e,n){e instanceof bc?(t.i=e,OV(t.i,t.h)):(n||(e=Pl(e,AV)),t.i=new bc(e,t.h))}function gt(t,e,n){t.i.set(e,n)}function kd(t){return gt(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function Al(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Pl(t,e,n){return typeof t=="string"?(t=encodeURI(t).replace(e,SV),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function SV(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(t&15).toString(16)}var lw=/[#\/\?@]/g,CV=/[#\?:]/g,RV=/[#\?]/g,AV=/[#\?@]/g,PV=/#/g;function bc(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function xi(t){t.g||(t.g=new Map,t.h=0,t.i&&kV(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}me=bc.prototype;me.add=function(t,e){xi(this),this.i=null,t=Xa(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this};function WS(t,e){xi(t),e=Xa(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function GS(t,e){return xi(t),e=Xa(t,e),t.g.has(e)}me.forEach=function(t,e){xi(this),this.g.forEach(function(n,r){n.forEach(function(s){t.call(e,s,r,this)},this)},this)};me.ta=function(){xi(this);const t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let r=0;r=t.j:!1}function zS(t){return t.h?1:t.g?t.g.size:0}function hg(t,e){return t.h?t.h==e:t.g?t.g.has(e):!1}function $y(t,e){t.g?t.g.add(e):t.h=e}function QS(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}qS.prototype.cancel=function(){if(this.i=XS(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const t of this.g.values())t.cancel();this.g.clear()}};function XS(t){if(t.h!=null)return t.i.concat(t.h.F);if(t.g!=null&&t.g.size!==0){let e=t.i;for(const n of t.g.values())e=e.concat(n.F);return e}return Ry(t.i)}var LV=class{stringify(t){return Ce.JSON.stringify(t,void 0)}parse(t){return Ce.JSON.parse(t,void 0)}};function xV(){this.g=new LV}function MV(t,e,n){const r=n||"";try{$S(t,function(s,i){let o=s;Kc(s)&&(o=xy(s)),e.push(r+i+"="+encodeURIComponent(o))})}catch(s){throw e.push(r+"type="+encodeURIComponent("_badmap")),s}}function FV(t,e){const n=new Ed;if(Ce.Image){const r=new Image;r.onload=qu(zu,n,r,"TestLoadImage: loaded",!0,e),r.onerror=qu(zu,n,r,"TestLoadImage: error",!1,e),r.onabort=qu(zu,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=qu(zu,n,r,"TestLoadImage: timeout",!1,e),Ce.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}function zu(t,e,n,r,s){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,s(r)}catch{}}function Sd(t){this.l=t.ec||null,this.j=t.ob||!1}tn(Sd,Uy);Sd.prototype.g=function(){return new Cd(this.l,this.j)};Sd.prototype.i=function(t){return function(){return t}}({});function Cd(t,e){Zt.call(this),this.F=t,this.u=e,this.m=void 0,this.readyState=Hy,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}tn(Cd,Zt);var Hy=0;me=Cd.prototype;me.open=function(t,e){if(this.readyState!=Hy)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Ic(this)};me.send=function(t){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.F||Ce).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))};me.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,eu(this)),this.readyState=Hy};me.$a=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Ic(this)),this.g&&(this.readyState=3,Ic(this),this.g)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Ce.ReadableStream<"u"&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;JS(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))};function JS(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}me.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?eu(this):Ic(this),this.readyState==3&&JS(this)}};me.Za=function(t){this.g&&(this.response=this.responseText=t,eu(this))};me.Ya=function(t){this.g&&(this.response=t,eu(this))};me.ka=function(){this.g&&eu(this)};function eu(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Ic(t)}me.setRequestHeader=function(t,e){this.v.append(t,e)};me.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""};me.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],e=this.h.entries();for(var n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join(`\r -`)};function Ic(t){t.onreadystatechange&&t.onreadystatechange.call(t)}Object.defineProperty(Cd.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(t){this.m=t?"include":"same-origin"}});var VV=Ce.JSON.parse;function At(t){Zt.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=ZS,this.L=this.M=!1}tn(At,Zt);var ZS="",UV=/^https?$/i,jV=["POST","PUT"];me=At.prototype;me.Oa=function(t){this.M=t};me.ha=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);e=e?e.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():ag.g(),this.C=this.u?ow(this.u):ow(ag),this.g.onreadystatechange=yn(this.La,this);try{this.G=!0,this.g.open(e,String(t),!0),this.G=!1}catch(i){cw(this,i);return}if(t=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var s in r)n.set(s,r[s]);else if(typeof r.keys=="function"&&typeof r.get=="function")for(const i of r.keys())n.set(i,r.get(i));else throw Error("Unknown input type for opt_headers: "+String(r));r=Array.from(n.keys()).find(i=>i.toLowerCase()=="content-type"),s=Ce.FormData&&t instanceof Ce.FormData,!(0<=gS(jV,e))||r||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[i,o]of n)this.g.setRequestHeader(i,o);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{nC(this),0{}:null;t.g=null,t.C=null,e||an(t,"ready");try{n.onreadystatechange=r}catch{}}}function nC(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Ce.clearTimeout(t.A),t.A=null)}me.isActive=function(){return!!this.g};function Gr(t){return t.g?t.g.readyState:0}me.da=function(){try{return 2=t.i.j-(t.m?1:0)?!1:t.m?(t.j=e.F.concat(t.j),!0):t.H==1||t.H==2||t.C>=(t.cb?0:t.eb)?!1:(t.m=Qc(yn(t.Na,t,e),uC(t,t.C)),t.C++,!0)}me.Na=function(t){if(this.m)if(this.m=null,this.H==1){if(!t){this.W=Math.floor(1e5*Math.random()),t=this.W++;const s=new Jc(this,this.l,t);let i=this.s;if(this.U&&(i?(i=ES(i),wS(i,this.U)):i=this.U),this.o!==null||this.O||(s.I=i,i=null),this.P)e:{for(var e=0,n=0;nc)i=Math.max(0,s[l].g-100),a=!1;else try{MV(u,o,"req"+c+"_")}catch{r&&r(u)}}if(a){r=o.join("&");break e}}}return t=t.j.splice(0,n),e.F=t,r}function aC(t){if(!t.g&&!t.u){t.ba=1;var e=t.Ma;vc||RS(),Ec||(vc(),Ec=!0),My.add(e,t),t.A=0}}function Yy(t){return t.g||t.u||3<=t.A?!1:(t.ba++,t.u=Qc(yn(t.Ma,t),uC(t,t.A)),t.A++,!0)}me.Ma=function(){if(this.u=null,lC(this),this.ca&&!(this.M||this.g==null||0>=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=Qc(yn(this.jb,this),t)}};me.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Pn(10),Ad(this),lC(this))};function qy(t){t.B!=null&&(Ce.clearTimeout(t.B),t.B=null)}function lC(t){t.g=new Jc(t,t.l,"rpc",t.ba),t.o===null&&(t.g.I=t.s),t.g.O=0;var e=Fs(t.wa);gt(e,"RID","rpc"),gt(e,"SID",t.K),gt(e,"AID",t.V),gt(e,"CI",t.G?"0":"1"),!t.G&&t.qa&>(e,"TO",t.qa),gt(e,"TYPE","xmlhttp"),tu(t,e),t.o&&t.s&&Wy(e,t.o,t.s),t.L&&t.g.setTimeout(t.L);var n=t.g;t=t.pa,n.L=1,n.v=kd(Fs(e)),n.s=null,n.S=!0,VS(n,t)}me.ib=function(){this.v!=null&&(this.v=null,Ad(this),Yy(this),Pn(19))};function nf(t){t.v!=null&&(Ce.clearTimeout(t.v),t.v=null)}function cC(t,e){var n=null;if(t.g==e){nf(t),qy(t),t.g=null;var r=2}else if(hg(t.i,e))n=e.F,QS(t.i,e),r=1;else return;if(t.H!=0){if(e.i)if(r==1){n=e.s?e.s.length:0,e=Date.now()-e.G;var s=t.C;r=wd(),an(r,new LS(r,n)),Pd(t)}else aC(t);else if(s=e.o,s==3||s==0&&0s;++s)r[s]=e.charCodeAt(n++)|e.charCodeAt(n++)<<8|e.charCodeAt(n++)<<16|e.charCodeAt(n++)<<24;else for(s=0;16>s;++s)r[s]=e[n++]|e[n++]<<8|e[n++]<<16|e[n++]<<24;e=t.g[0],n=t.g[1],s=t.g[2];var i=t.g[3],o=e+(i^n&(s^i))+r[0]+3614090360&4294967295;e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[1]+3905402710&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[2]+606105819&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[3]+3250441966&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[4]+4118548399&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[5]+1200080426&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[6]+2821735955&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[7]+4249261313&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[8]+1770035416&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[9]+2336552879&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[10]+4294925233&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[11]+2304563134&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[12]+1804603682&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[13]+4254626195&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[14]+2792965006&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[15]+1236535329&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(s^i&(n^s))+r[1]+4129170786&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[6]+3225465664&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[11]+643717713&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[0]+3921069994&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[5]+3593408605&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[10]+38016083&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[15]+3634488961&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[4]+3889429448&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[9]+568446438&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[14]+3275163606&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[3]+4107603335&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[8]+1163531501&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[13]+2850285829&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[2]+4243563512&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[7]+1735328473&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[12]+2368359562&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(n^s^i)+r[5]+4294588738&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[8]+2272392833&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[11]+1839030562&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[14]+4259657740&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[1]+2763975236&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[4]+1272893353&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[7]+4139469664&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[10]+3200236656&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[13]+681279174&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[0]+3936430074&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[3]+3572445317&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[6]+76029189&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[9]+3654602809&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[12]+3873151461&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[15]+530742520&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[2]+3299628645&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(s^(n|~i))+r[0]+4096336452&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[7]+1126891415&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[14]+2878612391&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[5]+4237533241&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[12]+1700485571&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[3]+2399980690&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[10]+4293915773&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[1]+2240044497&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[8]+1873313359&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[15]+4264355552&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[6]+2734768916&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[13]+1309151649&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[4]+4149444226&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[11]+3174756917&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[2]+718787259&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[9]+3951481745&4294967295,t.g[0]=t.g[0]+e&4294967295,t.g[1]=t.g[1]+(s+(o<<21&4294967295|o>>>11))&4294967295,t.g[2]=t.g[2]+s&4294967295,t.g[3]=t.g[3]+i&4294967295}Sr.prototype.j=function(t,e){e===void 0&&(e=t.length);for(var n=e-this.blockSize,r=this.m,s=this.h,i=0;ithis.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;ee;++e)for(var r=0;32>r;r+=8)t[n++]=this.g[e]>>>r&255;return t};function st(t,e){this.h=e;for(var n=[],r=!0,s=t.length-1;0<=s;s--){var i=t[s]|0;r&&i==e||(n[s]=i,r=!1)}this.g=n}var GV={};function Ky(t){return-128<=t&&128>t?ZF(t,function(e){return new st([e|0],0>e?-1:0)}):new st([t|0],0>t?-1:0)}function Yr(t){if(isNaN(t)||!isFinite(t))return ha;if(0>t)return sn(Yr(-t));for(var e=[],n=1,r=0;t>=n;r++)e[r]=t/n|0,n*=fg;return new st(e,0)}function _C(t,e){if(t.length==0)throw Error("number format error: empty string");if(e=e||10,2>e||36i?(i=Yr(Math.pow(e,i)),r=r.R(i).add(Yr(o))):(r=r.R(n),r=r.add(Yr(o)))}return r}var fg=4294967296,ha=Ky(0),dg=Ky(1),fw=Ky(16777216);me=st.prototype;me.ea=function(){if(ir(this))return-sn(this).ea();for(var t=0,e=1,n=0;nt||36>>0).toString(t);if(n=s,Is(n))return i+r;for(;6>i.length;)i="0"+i;r=i+r}};me.D=function(t){return 0>t?0:t>>16)+(this.D(s)>>>16)+(t.D(s)>>>16);r=o>>>16,i&=65535,o&=65535,n[s]=o<<16|i}return new st(n,n[n.length-1]&-2147483648?-1:0)};function sf(t,e){return t.add(sn(e))}me.R=function(t){if(Is(this)||Is(t))return ha;if(ir(this))return ir(t)?sn(this).R(sn(t)):sn(sn(this).R(t));if(ir(t))return sn(this.R(sn(t)));if(0>this.X(fw)&&0>t.X(fw))return Yr(this.ea()*t.ea());for(var e=this.g.length+t.g.length,n=[],r=0;r<2*e;r++)n[r]=0;for(r=0;r>>16,o=this.D(r)&65535,a=t.D(s)>>>16,l=t.D(s)&65535;n[2*r+2*s]+=o*l,Qu(n,2*r+2*s),n[2*r+2*s+1]+=i*l,Qu(n,2*r+2*s+1),n[2*r+2*s+1]+=o*a,Qu(n,2*r+2*s+1),n[2*r+2*s+2]+=i*a,Qu(n,2*r+2*s+2)}for(r=0;r>>16,t[e]&=65535,e++}function pl(t,e){this.g=t,this.h=e}function of(t,e){if(Is(e))throw Error("division by zero");if(Is(t))return new pl(ha,ha);if(ir(t))return e=of(sn(t),e),new pl(sn(e.g),sn(e.h));if(ir(e))return e=of(t,sn(e)),new pl(sn(e.g),e.h);if(30=r.X(t);)n=dw(n),r=dw(r);var s=$o(n,1),i=$o(r,1);for(r=$o(r,2),n=$o(n,2);!Is(r);){var o=i.add(r);0>=o.X(t)&&(s=s.add(n),i=o),r=$o(r,1),n=$o(n,1)}return e=sf(t,s.R(e)),new pl(s,e)}for(s=ha;0<=t.X(e);){for(n=Math.max(1,Math.floor(t.ea()/e.ea())),r=Math.ceil(Math.log(n)/Math.LN2),r=48>=r?1:Math.pow(2,r-48),i=Yr(n),o=i.R(e);ir(o)||0>>31;return new st(n,t.h)}function $o(t,e){var n=e>>5;e%=32;for(var r=t.g.length-n,s=[],i=0;i>>e|t.D(i+n+1)<<32-e:t.D(i+n);return new st(s,t.h)}rf.prototype.createWebChannel=rf.prototype.g;Jn.prototype.send=Jn.prototype.u;Jn.prototype.open=Jn.prototype.m;Jn.prototype.close=Jn.prototype.close;Td.NO_ERROR=0;Td.TIMEOUT=8;Td.HTTP_ERROR=6;xS.COMPLETE="complete";MS.EventType=Xc;Xc.OPEN="a";Xc.CLOSE="b";Xc.ERROR="c";Xc.MESSAGE="d";Zt.prototype.listen=Zt.prototype.O;At.prototype.listenOnce=At.prototype.P;At.prototype.getLastError=At.prototype.Sa;At.prototype.getLastErrorCode=At.prototype.Ia;At.prototype.getStatus=At.prototype.da;At.prototype.getResponseJson=At.prototype.Wa;At.prototype.getResponseText=At.prototype.ja;At.prototype.send=At.prototype.ha;At.prototype.setWithCredentials=At.prototype.Oa;Sr.prototype.digest=Sr.prototype.l;Sr.prototype.reset=Sr.prototype.reset;Sr.prototype.update=Sr.prototype.j;st.prototype.add=st.prototype.add;st.prototype.multiply=st.prototype.R;st.prototype.modulo=st.prototype.gb;st.prototype.compare=st.prototype.X;st.prototype.toNumber=st.prototype.ea;st.prototype.toString=st.prototype.toString;st.prototype.getBits=st.prototype.D;st.fromNumber=Yr;st.fromString=_C;var YV=function(){return new rf},qV=function(){return wd()},Jp=Td,KV=xS,zV=Ro,pw={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},Xu=MS,QV=At,XV=Sr,fa=st;const mw="@firebase/firestore";/** +`+i+" "+o})}function Jo(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+wV(t,n)+(r?" "+r:"")})}function EV(t,e){t.info(function(){return"TIMEOUT: "+e})}Td.prototype.info=function(){};function wV(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n){for(t=0;tr.length)){var s=r[1];if(Array.isArray(s)&&!(1>s.length)){var i=s[0];if(i!="noop"&&i!="stop"&&i!="close")for(var o=1;ou)&&(u!=3||ng||this.g&&(this.h.h||this.g.ja()||fw(this.g)))){this.J||u!=4||e==7||(e==8||0>=h?Tc(3):Tc(2)),Sd(this);var n=this.g.da();this.ca=n;t:if(BS(this)){var r=fw(this.g);t="";var s=r.length,i=Gr(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Ji(this),Bl(this);var o="";break t}this.h.i=new Ce.TextDecoder}for(e=0;ee.length?tf:(e=e.slice(r,r+n),t.C=r+n,e)))}me.cancel=function(){this.J=!0,Ji(this)};function Zc(t){t.Y=Date.now()+t.P,HS(t,t.P)}function HS(t,e){if(t.B!=null)throw Error("WatchDog timer not null");t.B=Qc(yn(t.lb,t),e)}function Sd(t){t.B&&(Ce.clearTimeout(t.B),t.B=null)}me.lb=function(){this.B=null;const t=Date.now();0<=t-this.Y?(EV(this.j,this.A),this.L!=2&&(Tc(),On(17)),Ji(this),this.o=2,Bl(this)):HS(this,this.Y-t)};function Bl(t){t.l.H==0||t.J||hC(t.l,t)}function Ji(t){Sd(t);var e=t.M;e&&typeof e.sa=="function"&&e.sa(),t.M=null,Fy(t.V),DS(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.sa())}function ug(t,e){try{var n=t.l;if(n.H!=0&&(n.g==t||hg(n.i,t))){if(!t.K&&hg(n.i,t)&&n.H==3){try{var r=n.Ja.g.parse(e)}catch{r=null}if(Array.isArray(r)&&r.length==3){var s=r;if(s[0]==0){e:if(!n.u){if(n.g)if(n.g.G+3e3s[2]&&n.G&&n.A==0&&!n.v&&(n.v=Qc(yn(n.ib,n),6e3));if(1>=XS(n.i)&&n.oa){try{n.oa()}catch{}n.oa=void 0}}else Zi(n,11)}else if((t.K||n.g==t)&&sf(n),!_c(e))for(s=n.Ja.g.parse(e),e=0;ee)throw Error("Bad port number "+e);t.m=e}else t.m=null}function cw(t,e,n){e instanceof bc?(t.i=e,NV(t.i,t.h)):(n||(e=Pl(e,PV)),t.i=new bc(e,t.h))}function gt(t,e,n){t.i.set(e,n)}function Cd(t){return gt(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function Al(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Pl(t,e,n){return typeof t=="string"?(t=encodeURI(t).replace(e,CV),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function CV(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(t&15).toString(16)}var uw=/[#\/\?@]/g,RV=/[#\?:]/g,AV=/[#\?]/g,PV=/[#\?@]/g,OV=/#/g;function bc(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function Mi(t){t.g||(t.g=new Map,t.h=0,t.i&&SV(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}me=bc.prototype;me.add=function(t,e){Mi(this),this.i=null,t=Xa(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this};function YS(t,e){Mi(t),e=Xa(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function qS(t,e){return Mi(t),e=Xa(t,e),t.g.has(e)}me.forEach=function(t,e){Mi(this),this.g.forEach(function(n,r){n.forEach(function(s){t.call(e,s,r,this)},this)},this)};me.ta=function(){Mi(this);const t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let r=0;r=t.j:!1}function XS(t){return t.h?1:t.g?t.g.size:0}function hg(t,e){return t.h?t.h==e:t.g?t.g.has(e):!1}function $y(t,e){t.g?t.g.add(e):t.h=e}function JS(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}zS.prototype.cancel=function(){if(this.i=ZS(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const t of this.g.values())t.cancel();this.g.clear()}};function ZS(t){if(t.h!=null)return t.i.concat(t.h.F);if(t.g!=null&&t.g.size!==0){let e=t.i;for(const n of t.g.values())e=e.concat(n.F);return e}return Ry(t.i)}var MV=class{stringify(t){return Ce.JSON.stringify(t,void 0)}parse(t){return Ce.JSON.parse(t,void 0)}};function xV(){this.g=new MV}function FV(t,e,n){const r=n||"";try{WS(t,function(s,i){let o=s;Kc(s)&&(o=My(s)),e.push(r+i+"="+encodeURIComponent(o))})}catch(s){throw e.push(r+"type="+encodeURIComponent("_badmap")),s}}function VV(t,e){const n=new Td;if(Ce.Image){const r=new Image;r.onload=zu(Xu,n,r,"TestLoadImage: loaded",!0,e),r.onerror=zu(Xu,n,r,"TestLoadImage: error",!1,e),r.onabort=zu(Xu,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=zu(Xu,n,r,"TestLoadImage: timeout",!1,e),Ce.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=t}else e(!1)}function Xu(t,e,n,r,s){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,s(r)}catch{}}function Rd(t){this.l=t.ec||null,this.j=t.ob||!1}tn(Rd,Uy);Rd.prototype.g=function(){return new Ad(this.l,this.j)};Rd.prototype.i=function(t){return function(){return t}}({});function Ad(t,e){Zt.call(this),this.F=t,this.u=e,this.m=void 0,this.readyState=Hy,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}tn(Ad,Zt);var Hy=0;me=Ad.prototype;me.open=function(t,e){if(this.readyState!=Hy)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Ic(this)};me.send=function(t){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.F||Ce).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))};me.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,eu(this)),this.readyState=Hy};me.$a=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Ic(this)),this.g&&(this.readyState=3,Ic(this),this.g)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Ce.ReadableStream<"u"&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;eC(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))};function eC(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}me.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?eu(this):Ic(this),this.readyState==3&&eC(this)}};me.Za=function(t){this.g&&(this.response=this.responseText=t,eu(this))};me.Ya=function(t){this.g&&(this.response=t,eu(this))};me.ka=function(){this.g&&eu(this)};function eu(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Ic(t)}me.setRequestHeader=function(t,e){this.v.append(t,e)};me.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""};me.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],e=this.h.entries();for(var n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join(`\r +`)};function Ic(t){t.onreadystatechange&&t.onreadystatechange.call(t)}Object.defineProperty(Ad.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(t){this.m=t?"include":"same-origin"}});var UV=Ce.JSON.parse;function At(t){Zt.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=tC,this.L=this.M=!1}tn(At,Zt);var tC="",jV=/^https?$/i,BV=["POST","PUT"];me=At.prototype;me.Oa=function(t){this.M=t};me.ha=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);e=e?e.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():ag.g(),this.C=this.u?lw(this.u):lw(ag),this.g.onreadystatechange=yn(this.La,this);try{this.G=!0,this.g.open(e,String(t),!0),this.G=!1}catch(i){hw(this,i);return}if(t=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var s in r)n.set(s,r[s]);else if(typeof r.keys=="function"&&typeof r.get=="function")for(const i of r.keys())n.set(i,r.get(i));else throw Error("Unknown input type for opt_headers: "+String(r));r=Array.from(n.keys()).find(i=>i.toLowerCase()=="content-type"),s=Ce.FormData&&t instanceof Ce.FormData,!(0<=yS(BV,e))||r||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[i,o]of n)this.g.setRequestHeader(i,o);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{sC(this),0{}:null;t.g=null,t.C=null,e||an(t,"ready");try{n.onreadystatechange=r}catch{}}}function sC(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Ce.clearTimeout(t.A),t.A=null)}me.isActive=function(){return!!this.g};function Gr(t){return t.g?t.g.readyState:0}me.da=function(){try{return 2=t.i.j-(t.m?1:0)?!1:t.m?(t.j=e.F.concat(t.j),!0):t.H==1||t.H==2||t.C>=(t.cb?0:t.eb)?!1:(t.m=Qc(yn(t.Na,t,e),fC(t,t.C)),t.C++,!0)}me.Na=function(t){if(this.m)if(this.m=null,this.H==1){if(!t){this.W=Math.floor(1e5*Math.random()),t=this.W++;const s=new Jc(this,this.l,t);let i=this.s;if(this.U&&(i?(i=TS(i),bS(i,this.U)):i=this.U),this.o!==null||this.O||(s.I=i,i=null),this.P)e:{for(var e=0,n=0;nc)i=Math.max(0,s[l].g-100),a=!1;else try{FV(u,o,"req"+c+"_")}catch{r&&r(u)}}if(a){r=o.join("&");break e}}}return t=t.j.splice(0,n),e.F=t,r}function cC(t){if(!t.g&&!t.u){t.ba=1;var e=t.Ma;vc||PS(),Ec||(vc(),Ec=!0),xy.add(e,t),t.A=0}}function Yy(t){return t.g||t.u||3<=t.A?!1:(t.ba++,t.u=Qc(yn(t.Ma,t),fC(t,t.A)),t.A++,!0)}me.Ma=function(){if(this.u=null,uC(this),this.ca&&!(this.M||this.g==null||0>=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=Qc(yn(this.jb,this),t)}};me.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,On(10),Od(this),uC(this))};function qy(t){t.B!=null&&(Ce.clearTimeout(t.B),t.B=null)}function uC(t){t.g=new Jc(t,t.l,"rpc",t.ba),t.o===null&&(t.g.I=t.s),t.g.O=0;var e=Vs(t.wa);gt(e,"RID","rpc"),gt(e,"SID",t.K),gt(e,"AID",t.V),gt(e,"CI",t.G?"0":"1"),!t.G&&t.qa&>(e,"TO",t.qa),gt(e,"TYPE","xmlhttp"),tu(t,e),t.o&&t.s&&Wy(e,t.o,t.s),t.L&&t.g.setTimeout(t.L);var n=t.g;t=t.pa,n.L=1,n.v=Cd(Vs(e)),n.s=null,n.S=!0,jS(n,t)}me.ib=function(){this.v!=null&&(this.v=null,Od(this),Yy(this),On(19))};function sf(t){t.v!=null&&(Ce.clearTimeout(t.v),t.v=null)}function hC(t,e){var n=null;if(t.g==e){sf(t),qy(t),t.g=null;var r=2}else if(hg(t.i,e))n=e.F,JS(t.i,e),r=1;else return;if(t.H!=0){if(e.i)if(r==1){n=e.s?e.s.length:0,e=Date.now()-e.G;var s=t.C;r=bd(),an(r,new xS(r,n)),Nd(t)}else cC(t);else if(s=e.o,s==3||s==0&&0s;++s)r[s]=e.charCodeAt(n++)|e.charCodeAt(n++)<<8|e.charCodeAt(n++)<<16|e.charCodeAt(n++)<<24;else for(s=0;16>s;++s)r[s]=e[n++]|e[n++]<<8|e[n++]<<16|e[n++]<<24;e=t.g[0],n=t.g[1],s=t.g[2];var i=t.g[3],o=e+(i^n&(s^i))+r[0]+3614090360&4294967295;e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[1]+3905402710&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[2]+606105819&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[3]+3250441966&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[4]+4118548399&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[5]+1200080426&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[6]+2821735955&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[7]+4249261313&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[8]+1770035416&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[9]+2336552879&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[10]+4294925233&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[11]+2304563134&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(i^n&(s^i))+r[12]+1804603682&4294967295,e=n+(o<<7&4294967295|o>>>25),o=i+(s^e&(n^s))+r[13]+4254626195&4294967295,i=e+(o<<12&4294967295|o>>>20),o=s+(n^i&(e^n))+r[14]+2792965006&4294967295,s=i+(o<<17&4294967295|o>>>15),o=n+(e^s&(i^e))+r[15]+1236535329&4294967295,n=s+(o<<22&4294967295|o>>>10),o=e+(s^i&(n^s))+r[1]+4129170786&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[6]+3225465664&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[11]+643717713&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[0]+3921069994&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[5]+3593408605&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[10]+38016083&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[15]+3634488961&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[4]+3889429448&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[9]+568446438&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[14]+3275163606&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[3]+4107603335&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[8]+1163531501&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(s^i&(n^s))+r[13]+2850285829&4294967295,e=n+(o<<5&4294967295|o>>>27),o=i+(n^s&(e^n))+r[2]+4243563512&4294967295,i=e+(o<<9&4294967295|o>>>23),o=s+(e^n&(i^e))+r[7]+1735328473&4294967295,s=i+(o<<14&4294967295|o>>>18),o=n+(i^e&(s^i))+r[12]+2368359562&4294967295,n=s+(o<<20&4294967295|o>>>12),o=e+(n^s^i)+r[5]+4294588738&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[8]+2272392833&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[11]+1839030562&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[14]+4259657740&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[1]+2763975236&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[4]+1272893353&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[7]+4139469664&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[10]+3200236656&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[13]+681279174&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[0]+3936430074&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[3]+3572445317&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[6]+76029189&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(n^s^i)+r[9]+3654602809&4294967295,e=n+(o<<4&4294967295|o>>>28),o=i+(e^n^s)+r[12]+3873151461&4294967295,i=e+(o<<11&4294967295|o>>>21),o=s+(i^e^n)+r[15]+530742520&4294967295,s=i+(o<<16&4294967295|o>>>16),o=n+(s^i^e)+r[2]+3299628645&4294967295,n=s+(o<<23&4294967295|o>>>9),o=e+(s^(n|~i))+r[0]+4096336452&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[7]+1126891415&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[14]+2878612391&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[5]+4237533241&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[12]+1700485571&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[3]+2399980690&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[10]+4293915773&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[1]+2240044497&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[8]+1873313359&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[15]+4264355552&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[6]+2734768916&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[13]+1309151649&4294967295,n=s+(o<<21&4294967295|o>>>11),o=e+(s^(n|~i))+r[4]+4149444226&4294967295,e=n+(o<<6&4294967295|o>>>26),o=i+(n^(e|~s))+r[11]+3174756917&4294967295,i=e+(o<<10&4294967295|o>>>22),o=s+(e^(i|~n))+r[2]+718787259&4294967295,s=i+(o<<15&4294967295|o>>>17),o=n+(i^(s|~e))+r[9]+3951481745&4294967295,t.g[0]=t.g[0]+e&4294967295,t.g[1]=t.g[1]+(s+(o<<21&4294967295|o>>>11))&4294967295,t.g[2]=t.g[2]+s&4294967295,t.g[3]=t.g[3]+i&4294967295}Sr.prototype.j=function(t,e){e===void 0&&(e=t.length);for(var n=e-this.blockSize,r=this.m,s=this.h,i=0;ithis.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;ee;++e)for(var r=0;32>r;r+=8)t[n++]=this.g[e]>>>r&255;return t};function st(t,e){this.h=e;for(var n=[],r=!0,s=t.length-1;0<=s;s--){var i=t[s]|0;r&&i==e||(n[s]=i,r=!1)}this.g=n}var YV={};function Ky(t){return-128<=t&&128>t?eV(t,function(e){return new st([e|0],0>e?-1:0)}):new st([t|0],0>t?-1:0)}function Yr(t){if(isNaN(t)||!isFinite(t))return ha;if(0>t)return sn(Yr(-t));for(var e=[],n=1,r=0;t>=n;r++)e[r]=t/n|0,n*=fg;return new st(e,0)}function vC(t,e){if(t.length==0)throw Error("number format error: empty string");if(e=e||10,2>e||36i?(i=Yr(Math.pow(e,i)),r=r.R(i).add(Yr(o))):(r=r.R(n),r=r.add(Yr(o)))}return r}var fg=4294967296,ha=Ky(0),dg=Ky(1),pw=Ky(16777216);me=st.prototype;me.ea=function(){if(ir(this))return-sn(this).ea();for(var t=0,e=1,n=0;nt||36>>0).toString(t);if(n=s,ks(n))return i+r;for(;6>i.length;)i="0"+i;r=i+r}};me.D=function(t){return 0>t?0:t>>16)+(this.D(s)>>>16)+(t.D(s)>>>16);r=o>>>16,i&=65535,o&=65535,n[s]=o<<16|i}return new st(n,n[n.length-1]&-2147483648?-1:0)};function af(t,e){return t.add(sn(e))}me.R=function(t){if(ks(this)||ks(t))return ha;if(ir(this))return ir(t)?sn(this).R(sn(t)):sn(sn(this).R(t));if(ir(t))return sn(this.R(sn(t)));if(0>this.X(pw)&&0>t.X(pw))return Yr(this.ea()*t.ea());for(var e=this.g.length+t.g.length,n=[],r=0;r<2*e;r++)n[r]=0;for(r=0;r>>16,o=this.D(r)&65535,a=t.D(s)>>>16,l=t.D(s)&65535;n[2*r+2*s]+=o*l,Ju(n,2*r+2*s),n[2*r+2*s+1]+=i*l,Ju(n,2*r+2*s+1),n[2*r+2*s+1]+=o*a,Ju(n,2*r+2*s+1),n[2*r+2*s+2]+=i*a,Ju(n,2*r+2*s+2)}for(r=0;r>>16,t[e]&=65535,e++}function pl(t,e){this.g=t,this.h=e}function lf(t,e){if(ks(e))throw Error("division by zero");if(ks(t))return new pl(ha,ha);if(ir(t))return e=lf(sn(t),e),new pl(sn(e.g),sn(e.h));if(ir(e))return e=lf(t,sn(e)),new pl(sn(e.g),e.h);if(30=r.X(t);)n=mw(n),r=mw(r);var s=$o(n,1),i=$o(r,1);for(r=$o(r,2),n=$o(n,2);!ks(r);){var o=i.add(r);0>=o.X(t)&&(s=s.add(n),i=o),r=$o(r,1),n=$o(n,1)}return e=af(t,s.R(e)),new pl(s,e)}for(s=ha;0<=t.X(e);){for(n=Math.max(1,Math.floor(t.ea()/e.ea())),r=Math.ceil(Math.log(n)/Math.LN2),r=48>=r?1:Math.pow(2,r-48),i=Yr(n),o=i.R(e);ir(o)||0>>31;return new st(n,t.h)}function $o(t,e){var n=e>>5;e%=32;for(var r=t.g.length-n,s=[],i=0;i>>e|t.D(i+n+1)<<32-e:t.D(i+n);return new st(s,t.h)}of.prototype.createWebChannel=of.prototype.g;Jn.prototype.send=Jn.prototype.u;Jn.prototype.open=Jn.prototype.m;Jn.prototype.close=Jn.prototype.close;Id.NO_ERROR=0;Id.TIMEOUT=8;Id.HTTP_ERROR=6;FS.COMPLETE="complete";VS.EventType=Xc;Xc.OPEN="a";Xc.CLOSE="b";Xc.ERROR="c";Xc.MESSAGE="d";Zt.prototype.listen=Zt.prototype.O;At.prototype.listenOnce=At.prototype.P;At.prototype.getLastError=At.prototype.Sa;At.prototype.getLastErrorCode=At.prototype.Ia;At.prototype.getStatus=At.prototype.da;At.prototype.getResponseJson=At.prototype.Wa;At.prototype.getResponseText=At.prototype.ja;At.prototype.send=At.prototype.ha;At.prototype.setWithCredentials=At.prototype.Oa;Sr.prototype.digest=Sr.prototype.l;Sr.prototype.reset=Sr.prototype.reset;Sr.prototype.update=Sr.prototype.j;st.prototype.add=st.prototype.add;st.prototype.multiply=st.prototype.R;st.prototype.modulo=st.prototype.gb;st.prototype.compare=st.prototype.X;st.prototype.toNumber=st.prototype.ea;st.prototype.toString=st.prototype.toString;st.prototype.getBits=st.prototype.D;st.fromNumber=Yr;st.fromString=vC;var qV=function(){return new of},KV=function(){return bd()},Jp=Id,zV=FS,QV=Ro,gw={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},Zu=VS,XV=At,JV=Sr,fa=st;const _w="@firebase/firestore";/** * @license * Copyright 2017 Google LLC * @@ -516,7 +516,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s`${this.name}: [code=${this.code}]: ${this.message}`}}/** + */const ae={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 _e extends ls{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** * @license * Copyright 2017 Google LLC * @@ -576,7 +576,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{this.resolve=e,this.reject=n})}}/** + */class Ns{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/** * @license * Copyright 2017 Google LLC * @@ -591,7 +591,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sn(cn.UNAUTHENTICATED))}shutdown(){}}class ZV{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class eU{constructor(e){this.t=e,this.currentUser=cn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){let r=this.i;const s=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let i=new Os;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Os,e.enqueueRetryable(()=>s(this.currentUser))};const o=()=>{const l=i;e.enqueueRetryable(async()=>{await l.promise,await s(this.currentUser)})},a=l=>{ve("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.auth.addAuthTokenListener(this.o),o()};this.t.onInit(l=>a(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(ve("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Os)}},0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(ve("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(yt(typeof r.accessToken=="string"),new yC(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return yt(e===null||typeof e=="string"),new cn(e)}}class tU{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=cn.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class nU{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new tU(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(cn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class rU{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class sU{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){const r=i=>{i.error!=null&&ve("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const o=i.token!==this.R;return this.R=i.token,ve("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable(()=>r(i))};const s=i=>{ve("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.appCheck.addTokenListener(this.o)};this.A.onInit(i=>s(i)),setTimeout(()=>{if(!this.appCheck){const i=this.A.getImmediate({optional:!0});i?s(i):ve("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(yt(typeof n.token=="string"),this.R=n.token,new rU(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}/** + */class EC{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class ZV{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(cn.UNAUTHENTICATED))}shutdown(){}}class eU{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class tU{constructor(e){this.t=e,this.currentUser=cn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){let r=this.i;const s=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let i=new Ns;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Ns,e.enqueueRetryable(()=>s(this.currentUser))};const o=()=>{const l=i;e.enqueueRetryable(async()=>{await l.promise,await s(this.currentUser)})},a=l=>{ve("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.auth.addAuthTokenListener(this.o),o()};this.t.onInit(l=>a(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(ve("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Ns)}},0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(ve("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(yt(typeof r.accessToken=="string"),new EC(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return yt(e===null||typeof e=="string"),new cn(e)}}class nU{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=cn.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class rU{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new nU(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(cn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class sU{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class iU{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){const r=i=>{i.error!=null&&ve("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const o=i.token!==this.R;return this.R=i.token,ve("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable(()=>r(i))};const s=i=>{ve("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.appCheck.addTokenListener(this.o)};this.A.onInit(i=>s(i)),setTimeout(()=>{if(!this.appCheck){const i=this.A.getImmediate({optional:!0});i?s(i):ve("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(yt(typeof n.token=="string"),this.R=n.token,new sU(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}/** * @license * Copyright 2020 Google LLC * @@ -606,7 +606,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;se?1:0}function Aa(t,e,n){return t.length===e.length&&t.every((r,s)=>n(r,e[s]))}/** + */class wC{static V(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let r="";for(;r.length<20;){const s=oU(40);for(let i=0;ie?1:0}function Aa(t,e,n){return t.length===e.length&&t.every((r,s)=>n(r,e[s]))}/** * @license * Copyright 2017 Google LLC * @@ -666,7 +666,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;se.length&&Se(),r===void 0?r=e.length-n:r>e.length-n&&Se(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return kc.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof kc?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}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(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.lengtho)return 1}return e.lengthn.length?1:0}}class _t extends kc{construct(e,n,r){return new _t(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new _e(ae.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(s=>s.length>0))}return new _t(n)}static emptyPath(){return new _t([])}}const oU=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends kc{construct(e,n,r){return new mn(e,n,r)}static isValidIdentifier(e){return oU.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new mn(["__name__"])}static fromServerFormat(e){const n=[];let r="",s=0;const i=()=>{if(r.length===0)throw new _e(ae.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;se.length&&Se(),r===void 0?r=e.length-n:r>e.length-n&&Se(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return kc.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof kc?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}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(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.lengtho)return 1}return e.lengthn.length?1:0}}class _t extends kc{construct(e,n,r){return new _t(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new _e(ae.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(s=>s.length>0))}return new _t(n)}static emptyPath(){return new _t([])}}const aU=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends kc{construct(e,n,r){return new mn(e,n,r)}static isValidIdentifier(e){return aU.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new mn(["__name__"])}static fromServerFormat(e){const n=[];let r="",s=0;const i=()=>{if(r.length===0)throw new _e(ae.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;s=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&_t.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return _t.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Ie(new _t(e.slice()))}}function aU(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=Re.fromTimestamp(r===1e9?new Dt(n+1,0):new Dt(n,r));return new Ci(s,Ie.empty(),e)}function lU(t){return new Ci(t.readTime,t.key,-1)}class Ci{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Ci(Re.min(),Ie.empty(),-1)}static max(){return new Ci(Re.max(),Ie.empty(),-1)}}function cU(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=Ie.comparator(t.documentKey,e.documentKey),n!==0?n:Je(t.largestBatchId,e.largestBatchId))}/** + */class Ie{constructor(e){this.path=e}static fromPath(e){return new Ie(_t.fromString(e))}static fromName(e){return new Ie(_t.fromString(e).popFirst(5))}static empty(){return new Ie(_t.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&_t.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return _t.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Ie(new _t(e.slice()))}}function lU(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=Re.fromTimestamp(r===1e9?new Dt(n+1,0):new Dt(n,r));return new Ci(s,Ie.empty(),e)}function cU(t){return new Ci(t.readTime,t.key,-1)}class Ci{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Ci(Re.min(),Ie.empty(),-1)}static max(){return new Ci(Re.max(),Ie.empty(),-1)}}function uU(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=Ie.comparator(t.documentKey,e.documentKey),n!==0?n:Je(t.largestBatchId,e.largestBatchId))}/** * @license * Copyright 2020 Google LLC * @@ -696,7 +696,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;se())}}/** + */const hU="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class fU{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/** * @license * Copyright 2017 Google LLC * @@ -711,7 +711,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis.oe(r),this._e=r=>n.writeSequenceNumber(r))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this._e&&this._e(e),e}}Qy.ae=-1;function Od(t){return t==null}function af(t){return t===0&&1/t==-1/0}function fU(t){return typeof t=="number"&&Number.isInteger(t)&&!af(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** + */class Qy{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.oe(r),this._e=r=>n.writeSequenceNumber(r))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this._e&&this._e(e),e}}Qy.ae=-1;function Dd(t){return t==null}function cf(t){return t===0&&1/t==-1/0}function dU(t){return typeof t=="number"&&Number.isInteger(t)&&!cf(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** * @license * Copyright 2017 Google LLC * @@ -756,7 +756,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.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(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Ju(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Ju(this.root,e,this.comparator,!1)}getReverseIterator(){return new Ju(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Ju(this.root,e,this.comparator,!0)}},Ju=class{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&s&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}},Ei=class ys{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??ys.RED,this.left=s??ys.EMPTY,this.right=i??ys.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,i){return new ys(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,n,r){let s=this;const i=r(e,s.key);return s=i<0?s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return ys.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return ys.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,ys.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,ys.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Se();const e=this.left.check();if(e!==this.right.check())throw Se();return e+(this.isRed()?0:1)}};Ei.EMPTY=null,Ei.RED=!0,Ei.BLACK=!1;Ei.EMPTY=new class{constructor(){this.size=0}get key(){throw Se()}get value(){throw Se()}get color(){throw Se()}get left(){throw Se()}get right(){throw Se()}copy(e,n,r,s,i){return this}insert(e,n,r){return new Ei(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** + */let $t=class pg{constructor(e,n){this.comparator=e,this.root=n||Ei.EMPTY}insert(e,n){return new pg(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,Ei.BLACK,null,null))}remove(e){return new pg(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Ei.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.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(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new eh(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new eh(this.root,e,this.comparator,!1)}getReverseIterator(){return new eh(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new eh(this.root,e,this.comparator,!0)}},eh=class{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&s&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}},Ei=class vs{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??vs.RED,this.left=s??vs.EMPTY,this.right=i??vs.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,i){return new vs(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,n,r){let s=this;const i=r(e,s.key);return s=i<0?s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return vs.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return vs.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,vs.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,vs.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Se();const e=this.left.check();if(e!==this.right.check())throw Se();return e+(this.isRed()?0:1)}};Ei.EMPTY=null,Ei.RED=!0,Ei.BLACK=!1;Ei.EMPTY=new class{constructor(){this.size=0}get key(){throw Se()}get value(){throw Se()}get color(){throw Se()}get left(){throw Se()}get right(){throw Se()}copy(e,n,r,s,i){return this}insert(e,n,r){return new Ei(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** * @license * Copyright 2017 Google LLC * @@ -786,7 +786,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new _w(this.data.getIterator())}getIteratorFrom(e){return new _w(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size{n=n.add(r)}),n}isEqual(e){if(!(e instanceof En)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(this.comparator(s,i)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new En(this.comparator);return n.data=e,n}}class _w{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** + */class En{constructor(e){this.comparator=e,this.data=new $t(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new vw(this.data.getIterator())}getIteratorFrom(e){return new vw(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size{n=n.add(r)}),n}isEqual(e){if(!(e instanceof En)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(this.comparator(s,i)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new En(this.comparator);return n.data=e,n}}class vw{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** * @license * Copyright 2020 Google LLC * @@ -801,7 +801,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sn.isEqual(r))}}/** + */class zn{constructor(e){this.fields=e,e.sort(mn.comparator)}static empty(){return new zn([])}unionWith(e){let n=new En(mn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new zn(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Aa(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/** * @license * Copyright 2023 Google LLC * @@ -816,7 +816,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;seers(n,e))!==void 0}function Pa(t,e){if(t===e)return 0;const n=yo(t),r=yo(e);if(n!==r)return Je(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Je(t.booleanValue,e.booleanValue);case 2:return function(i,o){const a=xt(i.integerValue||i.doubleValue),l=xt(o.integerValue||o.doubleValue);return al?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return yw(t.timestampValue,e.timestampValue);case 4:return yw(Sc(t),Sc(e));case 5:return Je(t.stringValue,e.stringValue);case 6:return function(i,o){const a=_o(i),l=_o(o);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(i,o){const a=i.split("/"),l=o.split("/");for(let c=0;ce.mapValue.fields[n]=$l(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=$l(t.arrayValue.values[n]);return e}return Object.assign({},t)}function mU(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** + */const th={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function yo(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?Xy(t)?4:gU(t)?9007199254740991:10:Se()}function rs(t,e){if(t===e)return!0;const n=yo(t);if(n!==yo(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Sc(t).isEqual(Sc(e));case 3:return function(s,i){if(typeof s.timestampValue=="string"&&typeof i.timestampValue=="string"&&s.timestampValue.length===i.timestampValue.length)return s.timestampValue===i.timestampValue;const o=Ri(s.timestampValue),a=Ri(i.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(s,i){return _o(s.bytesValue).isEqual(_o(i.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(s,i){return Mt(s.geoPointValue.latitude)===Mt(i.geoPointValue.latitude)&&Mt(s.geoPointValue.longitude)===Mt(i.geoPointValue.longitude)}(t,e);case 2:return function(s,i){if("integerValue"in s&&"integerValue"in i)return Mt(s.integerValue)===Mt(i.integerValue);if("doubleValue"in s&&"doubleValue"in i){const o=Mt(s.doubleValue),a=Mt(i.doubleValue);return o===a?cf(o)===cf(a):isNaN(o)&&isNaN(a)}return!1}(t,e);case 9:return Aa(t.arrayValue.values||[],e.arrayValue.values||[],rs);case 10:return function(s,i){const o=s.mapValue.fields||{},a=i.mapValue.fields||{};if(yw(o)!==yw(a))return!1;for(const l in o)if(o.hasOwnProperty(l)&&(a[l]===void 0||!rs(o[l],a[l])))return!1;return!0}(t,e);default:return Se()}}function Rc(t,e){return(t.values||[]).find(n=>rs(n,e))!==void 0}function Pa(t,e){if(t===e)return 0;const n=yo(t),r=yo(e);if(n!==r)return Je(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Je(t.booleanValue,e.booleanValue);case 2:return function(i,o){const a=Mt(i.integerValue||i.doubleValue),l=Mt(o.integerValue||o.doubleValue);return al?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return Ew(t.timestampValue,e.timestampValue);case 4:return Ew(Sc(t),Sc(e));case 5:return Je(t.stringValue,e.stringValue);case 6:return function(i,o){const a=_o(i),l=_o(o);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(i,o){const a=i.split("/"),l=o.split("/");for(let c=0;ce.mapValue.fields[n]=$l(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=$l(t.arrayValue.values[n]);return e}return Object.assign({},t)}function gU(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** * @license * Copyright 2017 Google LLC * @@ -891,7 +891,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,s),r={},s=[],n=a.popLast()}o?r[a.lastSegment()]=$l(o):s.push(a.lastSegment())});const i=this.getFieldsMap(n);this.applyChanges(i,r,s)}delete(e){const n=this.field(e.popLast());_h(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return rs(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;re[s]=i);for(const s of r)delete e[s]}clone(){return new Un($l(this.value))}}function TC(t){const e=[];return Ao(t.fields,(n,r)=>{const s=new mn([n]);if(_h(r)){const i=TC(r.mapValue).fields;if(i.length===0)e.push(s);else for(const o of i)e.push(s.child(o))}else e.push(s)}),new Kn(e)}/** + */class Bn{constructor(e){this.value=e}static empty(){return new Bn({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,s),r={},s=[],n=a.popLast()}o?r[a.lastSegment()]=$l(o):s.push(a.lastSegment())});const i=this.getFieldsMap(n);this.applyChanges(i,r,s)}delete(e){const n=this.field(e.popLast());vh(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return rs(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;re[s]=i);for(const s of r)delete e[s]}clone(){return new Bn($l(this.value))}}function IC(t){const e=[];return Ao(t.fields,(n,r)=>{const s=new mn([n]);if(vh(r)){const i=IC(r.mapValue).fields;if(i.length===0)e.push(s);else for(const o of i)e.push(s.child(o))}else e.push(s)}),new zn(e)}/** * @license * Copyright 2017 Google LLC * @@ -906,7 +906,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s":return e>0;case">=":return e>=0;default:return Se()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}getFirstInequalityField(){return this.isInequality()?this.field:null}}class Cr extends bC{constructor(e,n){super(),this.filters=e,this.op=n,this.ce=null}static create(e,n){return new Cr(e,n)}matches(e){return IC(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ce!==null||(this.ce=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ce}getFilters(){return Object.assign([],this.filters)}getFirstInequalityField(){const e=this.le(n=>n.isInequality());return e!==null?e.field:null}le(e){for(const n of this.getFlattenedFilters())if(e(n))return n;return null}}function IC(t){return t.op==="and"}function kC(t){return _U(t)&&IC(t)}function _U(t){for(const e of t.filters)if(e instanceof Cr)return!1;return!0}function _g(t){if(t instanceof Ft)return t.field.canonicalString()+t.op.toString()+Oa(t.value);if(kC(t))return t.filters.map(e=>_g(e)).join(",");{const e=t.filters.map(n=>_g(n)).join(",");return`${t.op}(${e})`}}function SC(t,e){return t instanceof Ft?function(r,s){return s instanceof Ft&&r.op===s.op&&r.field.isEqual(s.field)&&rs(r.value,s.value)}(t,e):t instanceof Cr?function(r,s){return s instanceof Cr&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce((i,o,a)=>i&&SC(o,s.filters[a]),!0):!1}(t,e):void Se()}function CC(t){return t instanceof Ft?function(n){return`${n.field.canonicalString()} ${n.op} ${Oa(n.value)}`}(t):t instanceof Cr?function(n){return n.op.toString()+" {"+n.getFilters().map(CC).join(" ,")+"}"}(t):"Filter"}class yU extends Ft{constructor(e,n,r){super(e,n,r),this.key=Ie.fromName(r.referenceValue)}matches(e){const n=Ie.comparator(e.key,this.key);return this.matchesComparison(n)}}class vU extends Ft{constructor(e,n){super(e,"in",n),this.keys=RC("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class EU extends Ft{constructor(e,n){super(e,"not-in",n),this.keys=RC("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function RC(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>Ie.fromName(r.referenceValue))}class wU extends Ft{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return Zy(n)&&Rc(n.arrayValue,this.value)}}class TU extends Ft{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Rc(this.value.arrayValue,n)}}class bU extends Ft{constructor(e,n){super(e,"not-in",n)}matches(e){if(Rc(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!Rc(this.value.arrayValue,n)}}class IU extends Ft{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!Zy(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>Rc(this.value.arrayValue,r))}}/** + */class kC{}class Ft extends kC{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new vU(e,n,r):n==="array-contains"?new TU(e,r):n==="in"?new bU(e,r):n==="not-in"?new IU(e,r):n==="array-contains-any"?new kU(e,r):new Ft(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new EU(e,r):new wU(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(Pa(n,this.value)):n!==null&&yo(this.value)===yo(n)&&this.matchesComparison(Pa(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return Se()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}getFirstInequalityField(){return this.isInequality()?this.field:null}}class Cr extends kC{constructor(e,n){super(),this.filters=e,this.op=n,this.ce=null}static create(e,n){return new Cr(e,n)}matches(e){return SC(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ce!==null||(this.ce=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ce}getFilters(){return Object.assign([],this.filters)}getFirstInequalityField(){const e=this.le(n=>n.isInequality());return e!==null?e.field:null}le(e){for(const n of this.getFlattenedFilters())if(e(n))return n;return null}}function SC(t){return t.op==="and"}function CC(t){return yU(t)&&SC(t)}function yU(t){for(const e of t.filters)if(e instanceof Cr)return!1;return!0}function _g(t){if(t instanceof Ft)return t.field.canonicalString()+t.op.toString()+Oa(t.value);if(CC(t))return t.filters.map(e=>_g(e)).join(",");{const e=t.filters.map(n=>_g(n)).join(",");return`${t.op}(${e})`}}function RC(t,e){return t instanceof Ft?function(r,s){return s instanceof Ft&&r.op===s.op&&r.field.isEqual(s.field)&&rs(r.value,s.value)}(t,e):t instanceof Cr?function(r,s){return s instanceof Cr&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce((i,o,a)=>i&&RC(o,s.filters[a]),!0):!1}(t,e):void Se()}function AC(t){return t instanceof Ft?function(n){return`${n.field.canonicalString()} ${n.op} ${Oa(n.value)}`}(t):t instanceof Cr?function(n){return n.op.toString()+" {"+n.getFilters().map(AC).join(" ,")+"}"}(t):"Filter"}class vU extends Ft{constructor(e,n,r){super(e,n,r),this.key=Ie.fromName(r.referenceValue)}matches(e){const n=Ie.comparator(e.key,this.key);return this.matchesComparison(n)}}class EU extends Ft{constructor(e,n){super(e,"in",n),this.keys=PC("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class wU extends Ft{constructor(e,n){super(e,"not-in",n),this.keys=PC("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function PC(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>Ie.fromName(r.referenceValue))}class TU extends Ft{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return Zy(n)&&Rc(n.arrayValue,this.value)}}class bU extends Ft{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Rc(this.value.arrayValue,n)}}class IU extends Ft{constructor(e,n){super(e,"not-in",n)}matches(e){if(Rc(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!Rc(this.value.arrayValue,n)}}class kU extends Ft{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!Zy(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>Rc(this.value.arrayValue,r))}}/** * @license * Copyright 2019 Google LLC * @@ -966,7 +966,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s_g(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(i){return i.field.canonicalString()+i.dir}(r)).join(","),Od(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>Oa(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>Oa(r)).join(",")),e.he=n}return e.he}function tv(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n_g(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(i){return i.field.canonicalString()+i.dir}(r)).join(","),Dd(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>Oa(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>Oa(r)).join(",")),e.he=n}return e.he}function tv(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n0?t.explicitOrderBy[0].field:null}function nv(t){for(const e of t.filters){const n=e.getFirstInequalityField();if(n!==null)return n}return null}function PC(t){return t.collectionGroup!==null}function Wl(t){const e=Pe(t);if(e.Pe===null){e.Pe=[];const n=nv(e),r=AC(e);if(n!==null&&r===null)n.isKeyField()||e.Pe.push(new Hl(n)),e.Pe.push(new Hl(mn.keyField(),"asc"));else{let s=!1;for(const i of e.explicitOrderBy)e.Pe.push(i),i.field.isKeyField()&&(s=!0);if(!s){const i=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.Pe.push(new Hl(mn.keyField(),i))}}}return e.Pe}function zr(t){const e=Pe(t);return e.Ie||(e.Ie=CU(e,Wl(t))),e.Ie}function CU(t,e){if(t.limitType==="F")return Iw(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(s=>{const i=s.dir==="desc"?"asc":"desc";return new Hl(s.field,i)});const n=t.endAt?new lf(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new lf(t.startAt.position,t.startAt.inclusive):null;return Iw(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function vg(t,e){e.getFirstInequalityField(),nv(t);const n=t.filters.concat([e]);return new su(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Eg(t,e,n){return new su(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Dd(t,e){return tv(zr(t),zr(e))&&t.limitType===e.limitType}function OC(t){return`${ev(zr(t))}|lt:${t.limitType}`}function qo(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(s=>CC(s)).join(", ")}]`),Od(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(s=>function(o){return`${o.field.canonicalString()} (${o.dir})`}(s)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(s=>Oa(s)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(s=>Oa(s)).join(",")),`Target(${r})`}(zr(t))}; limitType=${t.limitType})`}function Ld(t,e){return e.isFoundDocument()&&function(r,s){const i=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):Ie.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)}(t,e)&&function(r,s){for(const i of Wl(r))if(!i.field.isKeyField()&&s.data.field(i.field)===null)return!1;return!0}(t,e)&&function(r,s){for(const i of r.filters)if(!i.matches(s))return!1;return!0}(t,e)&&function(r,s){return!(r.startAt&&!function(o,a,l){const c=Tw(o,a,l);return o.inclusive?c<=0:c<0}(r.startAt,Wl(r),s)||r.endAt&&!function(o,a,l){const c=Tw(o,a,l);return o.inclusive?c>=0:c>0}(r.endAt,Wl(r),s))}(t,e)}function RU(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function NC(t){return(e,n)=>{let r=!1;for(const s of Wl(t)){const i=AU(s,e,n);if(i!==0)return i;r=r||s.field.isKeyField()}return 0}}function AU(t,e,n){const r=t.field.isKeyField()?Ie.comparator(e.key,n.key):function(i,o,a){const l=o.data.field(i),c=a.data.field(i);return l!==null&&c!==null?Pa(l,c):Se()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Se()}}/** + */class su{constructor(e,n=null,r=[],s=[],i=null,o="F",a=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=s,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=l,this.Pe=null,this.Ie=null,this.de=null,this.startAt,this.endAt}}function CU(t,e,n,r,s,i,o,a){return new su(t,e,n,r,s,i,o,a)}function Ld(t){return new su(t)}function Cw(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function OC(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function nv(t){for(const e of t.filters){const n=e.getFirstInequalityField();if(n!==null)return n}return null}function NC(t){return t.collectionGroup!==null}function Wl(t){const e=Pe(t);if(e.Pe===null){e.Pe=[];const n=nv(e),r=OC(e);if(n!==null&&r===null)n.isKeyField()||e.Pe.push(new Hl(n)),e.Pe.push(new Hl(mn.keyField(),"asc"));else{let s=!1;for(const i of e.explicitOrderBy)e.Pe.push(i),i.field.isKeyField()&&(s=!0);if(!s){const i=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.Pe.push(new Hl(mn.keyField(),i))}}}return e.Pe}function zr(t){const e=Pe(t);return e.Ie||(e.Ie=RU(e,Wl(t))),e.Ie}function RU(t,e){if(t.limitType==="F")return Sw(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(s=>{const i=s.dir==="desc"?"asc":"desc";return new Hl(s.field,i)});const n=t.endAt?new uf(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new uf(t.startAt.position,t.startAt.inclusive):null;return Sw(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function vg(t,e){e.getFirstInequalityField(),nv(t);const n=t.filters.concat([e]);return new su(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Eg(t,e,n){return new su(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Md(t,e){return tv(zr(t),zr(e))&&t.limitType===e.limitType}function DC(t){return`${ev(zr(t))}|lt:${t.limitType}`}function qo(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(s=>AC(s)).join(", ")}]`),Dd(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(s=>function(o){return`${o.field.canonicalString()} (${o.dir})`}(s)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(s=>Oa(s)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(s=>Oa(s)).join(",")),`Target(${r})`}(zr(t))}; limitType=${t.limitType})`}function xd(t,e){return e.isFoundDocument()&&function(r,s){const i=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):Ie.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)}(t,e)&&function(r,s){for(const i of Wl(r))if(!i.field.isKeyField()&&s.data.field(i.field)===null)return!1;return!0}(t,e)&&function(r,s){for(const i of r.filters)if(!i.matches(s))return!1;return!0}(t,e)&&function(r,s){return!(r.startAt&&!function(o,a,l){const c=Iw(o,a,l);return o.inclusive?c<=0:c<0}(r.startAt,Wl(r),s)||r.endAt&&!function(o,a,l){const c=Iw(o,a,l);return o.inclusive?c>=0:c>0}(r.endAt,Wl(r),s))}(t,e)}function AU(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function LC(t){return(e,n)=>{let r=!1;for(const s of Wl(t)){const i=PU(s,e,n);if(i!==0)return i;r=r||s.field.isKeyField()}return 0}}function PU(t,e,n){const r=t.field.isKeyField()?Ie.comparator(e.key,n.key):function(i,o,a){const l=o.data.field(i),c=a.data.field(i);return l!==null&&c!==null?Pa(l,c):Se()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Se()}}/** * @license * Copyright 2017 Google LLC * @@ -996,7 +996,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{for(const[s,i]of r)e(s,i)})}isEmpty(){return EC(this.inner)}size(){return this.innerSize}}/** + */class el{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[s,i]of r)if(this.equalsFn(s,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),s=this.inner[r];if(s===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let i=0;i{for(const[s,i]of r)e(s,i)})}isEmpty(){return TC(this.inner)}size(){return this.innerSize}}/** * @license * Copyright 2017 Google LLC * @@ -1011,7 +1011,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;se=e.insert(n,r.overlayedDocument)),e}function eo(){return Gl()}function xC(){return Gl()}function Gl(){return new el(t=>t.toString(),(t,e)=>t.isEqual(e))}const OU=new $t(Ie.comparator),NU=new En(Ie.comparator);function je(...t){let e=NU;for(const n of t)e=e.add(n);return e}const DU=new En(Je);function LU(){return DU}/** + */const OU=new $t(Ie.comparator);function js(){return OU}const MC=new $t(Ie.comparator);function Ol(...t){let e=MC;for(const n of t)e=e.insert(n.key,n);return e}function xC(t){let e=MC;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function eo(){return Gl()}function FC(){return Gl()}function Gl(){return new el(t=>t.toString(),(t,e)=>t.isEqual(e))}const NU=new $t(Ie.comparator),DU=new En(Ie.comparator);function je(...t){let e=DU;for(const n of t)e=e.add(n);return e}const LU=new En(Je);function MU(){return LU}/** * @license * Copyright 2020 Google LLC * @@ -1026,7 +1026,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;srs(s,r))||n.push(r);return{arrayValue:{values:n}}}class Pc extends xd{constructor(e){super(),this.elements=e}}function jC(t,e){let n=BC(e);for(const r of t.elements)n=n.filter(s=>!rs(s,r));return{arrayValue:{values:n}}}class uf extends xd{constructor(e,n){super(),this.serializer=e,this.Te=n}}function Sw(t){return xt(t.integerValue||t.doubleValue)}function BC(t){return Zy(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function VU(t,e){return t.field.isEqual(e.field)&&function(r,s){return r instanceof Ac&&s instanceof Ac||r instanceof Pc&&s instanceof Pc?Aa(r.elements,s.elements,rs):r instanceof uf&&s instanceof uf?rs(r.Te,s.Te):r instanceof cf&&s instanceof cf}(t.transform,e.transform)}class UU{constructor(e,n){this.version=e,this.transformResults=n}}class Bn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Bn}static exists(e){return new Bn(void 0,e)}static updateTime(e){return new Bn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function yh(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Md{}function $C(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new Fd(t.key,Bn.none()):new iu(t.key,t.data,Bn.none());{const n=t.data,r=Un.empty();let s=new En(mn.comparator);for(let i of e.fields)if(!s.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?r.delete(i):r.set(i,o),s=s.add(i)}return new Mi(t.key,r,new Kn(s.toArray()),Bn.none())}}function jU(t,e,n){t instanceof iu?function(s,i,o){const a=s.value.clone(),l=Rw(s.fieldTransforms,i,o.transformResults);a.setAll(l),i.convertToFoundDocument(o.version,a).setHasCommittedMutations()}(t,e,n):t instanceof Mi?function(s,i,o){if(!yh(s.precondition,i))return void i.convertToUnknownDocument(o.version);const a=Rw(s.fieldTransforms,i,o.transformResults),l=i.data;l.setAll(HC(s)),l.setAll(a),i.convertToFoundDocument(o.version,l).setHasCommittedMutations()}(t,e,n):function(s,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()}(0,e,n)}function Yl(t,e,n,r){return t instanceof iu?function(i,o,a,l){if(!yh(i.precondition,o))return a;const c=i.value.clone(),u=Aw(i.fieldTransforms,l,o);return c.setAll(u),o.convertToFoundDocument(o.version,c).setHasLocalMutations(),null}(t,e,n,r):t instanceof Mi?function(i,o,a,l){if(!yh(i.precondition,o))return a;const c=Aw(i.fieldTransforms,l,o),u=o.data;return u.setAll(HC(i)),u.setAll(c),o.convertToFoundDocument(o.version,u).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map(h=>h.field))}(t,e,n,r):function(i,o,a){return yh(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a}(t,e,n)}function BU(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),i=VC(r.transform,s||null);i!=null&&(n===null&&(n=Un.empty()),n.set(r.field,i))}return n||null}function Cw(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&Aa(r,s,(i,o)=>VU(i,o))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class iu extends Md{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class Mi extends Md{constructor(e,n,r,s,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=s,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function HC(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function Rw(t,e,n){const r=new Map;yt(t.length===n.length);for(let s=0;srs(s,r))||n.push(r);return{arrayValue:{values:n}}}class Pc extends Fd{constructor(e){super(),this.elements=e}}function $C(t,e){let n=HC(e);for(const r of t.elements)n=n.filter(s=>!rs(s,r));return{arrayValue:{values:n}}}class ff extends Fd{constructor(e,n){super(),this.serializer=e,this.Te=n}}function Rw(t){return Mt(t.integerValue||t.doubleValue)}function HC(t){return Zy(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function UU(t,e){return t.field.isEqual(e.field)&&function(r,s){return r instanceof Ac&&s instanceof Ac||r instanceof Pc&&s instanceof Pc?Aa(r.elements,s.elements,rs):r instanceof ff&&s instanceof ff?rs(r.Te,s.Te):r instanceof hf&&s instanceof hf}(t.transform,e.transform)}class jU{constructor(e,n){this.version=e,this.transformResults=n}}class Dn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Dn}static exists(e){return new Dn(void 0,e)}static updateTime(e){return new Dn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Eh(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Vd{}function WC(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new Ud(t.key,Dn.none()):new iu(t.key,t.data,Dn.none());{const n=t.data,r=Bn.empty();let s=new En(mn.comparator);for(let i of e.fields)if(!s.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?r.delete(i):r.set(i,o),s=s.add(i)}return new xi(t.key,r,new zn(s.toArray()),Dn.none())}}function BU(t,e,n){t instanceof iu?function(s,i,o){const a=s.value.clone(),l=Pw(s.fieldTransforms,i,o.transformResults);a.setAll(l),i.convertToFoundDocument(o.version,a).setHasCommittedMutations()}(t,e,n):t instanceof xi?function(s,i,o){if(!Eh(s.precondition,i))return void i.convertToUnknownDocument(o.version);const a=Pw(s.fieldTransforms,i,o.transformResults),l=i.data;l.setAll(GC(s)),l.setAll(a),i.convertToFoundDocument(o.version,l).setHasCommittedMutations()}(t,e,n):function(s,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()}(0,e,n)}function Yl(t,e,n,r){return t instanceof iu?function(i,o,a,l){if(!Eh(i.precondition,o))return a;const c=i.value.clone(),u=Ow(i.fieldTransforms,l,o);return c.setAll(u),o.convertToFoundDocument(o.version,c).setHasLocalMutations(),null}(t,e,n,r):t instanceof xi?function(i,o,a,l){if(!Eh(i.precondition,o))return a;const c=Ow(i.fieldTransforms,l,o),u=o.data;return u.setAll(GC(i)),u.setAll(c),o.convertToFoundDocument(o.version,u).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map(h=>h.field))}(t,e,n,r):function(i,o,a){return Eh(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a}(t,e,n)}function $U(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),i=jC(r.transform,s||null);i!=null&&(n===null&&(n=Bn.empty()),n.set(r.field,i))}return n||null}function Aw(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&Aa(r,s,(i,o)=>UU(i,o))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class iu extends Vd{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class xi extends Vd{constructor(e,n,r,s,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=s,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function GC(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function Pw(t,e,n){const r=new Map;yt(t.length===n.length);for(let s=0;s{const i=e.get(s.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=n.has(s.key)?null:a;const l=$C(o,a);l!==null&&r.set(s.key,l),o.isValidDocument()||o.convertToNoDocument(Re.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),je())}isEqual(e){return this.batchId===e.batchId&&Aa(this.mutations,e.mutations,(n,r)=>Cw(n,r))&&Aa(this.baseMutations,e.baseMutations,(n,r)=>Cw(n,r))}}class rv{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){yt(e.mutations.length===r.length);let s=function(){return OU}();const i=e.mutations;for(let o=0;o{const i=e.get(s.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=n.has(s.key)?null:a;const l=WC(o,a);l!==null&&r.set(s.key,l),o.isValidDocument()||o.convertToNoDocument(Re.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),je())}isEqual(e){return this.batchId===e.batchId&&Aa(this.mutations,e.mutations,(n,r)=>Aw(n,r))&&Aa(this.baseMutations,e.baseMutations,(n,r)=>Aw(n,r))}}class rv{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){yt(e.mutations.length===r.length);let s=function(){return NU}();const i=e.mutations;for(let o=0;o=8)throw new Nl(`Invalid padding: ${n}`);if(r<0)throw new Nl(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new Nl(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new Nl(`Invalid padding when bitmap length is 0: ${n}`);this.Ae=8*e.length-n,this.Re=fa.fromNumber(this.Ae)}Ve(e,n,r){let s=e.add(n.multiply(fa.fromNumber(r)));return s.compare(KU)===1&&(s=new fa([s.getBits(0),s.getBits(1)],0)),s.modulo(this.Re).toNumber()}me(e){return(this.bitmap[Math.floor(e/8)]&1<o.insert(a)),o}insert(e){if(this.Ae===0)return;const n=Pw(e),[r,s]=Ow(n);for(let i=0;i=8)throw new Nl(`Invalid padding: ${n}`);if(r<0)throw new Nl(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new Nl(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new Nl(`Invalid padding when bitmap length is 0: ${n}`);this.Ae=8*e.length-n,this.Re=fa.fromNumber(this.Ae)}Ve(e,n,r){let s=e.add(n.multiply(fa.fromNumber(r)));return s.compare(zU)===1&&(s=new fa([s.getBits(0),s.getBits(1)],0)),s.modulo(this.Re).toNumber()}me(e){return(this.bitmap[Math.floor(e/8)]&1<o.insert(a)),o}insert(e){if(this.Ae===0)return;const n=Nw(e),[r,s]=Dw(n);for(let i=0;i0&&(this.Ce=!0,this.be=e)}xe(){let e=je(),n=je(),r=je();return this.Se.forEach((s,i)=>{switch(i){case 0:e=e.add(s);break;case 2:n=n.add(s);break;case 1:r=r.add(s);break;default:Se()}}),new ou(this.be,this.De,e,n,r)}Oe(){this.Ce=!1,this.Se=Lw()}Ne(e,n){this.Ce=!0,this.Se=this.Se.insert(e,n)}Be(e){this.Ce=!0,this.Se=this.Se.remove(e)}Le(){this.we+=1}ke(){this.we-=1}qe(){this.Ce=!0,this.De=!0}}class zU{constructor(e){this.Qe=e,this.Ke=new Map,this.$e=Us(),this.Ue=Dw(),this.We=new $t(Je)}Ge(e){for(const n of e.ge)e.pe&&e.pe.isFoundDocument()?this.ze(n,e.pe):this.je(n,e.key,e.pe);for(const n of e.removedTargetIds)this.je(n,e.key,e.pe)}He(e){this.forEachTarget(e,n=>{const r=this.Je(n);switch(e.state){case 0:this.Ye(n)&&r.Me(e.resumeToken);break;case 1:r.ke(),r.ve||r.Oe(),r.Me(e.resumeToken);break;case 2:r.ke(),r.ve||this.removeTarget(n);break;case 3:this.Ye(n)&&(r.qe(),r.Me(e.resumeToken));break;case 4:this.Ye(n)&&(this.Ze(n),r.Me(e.resumeToken));break;default:Se()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Ke.forEach((r,s)=>{this.Ye(s)&&n(s)})}Xe(e){const n=e.targetId,r=e.ye.count,s=this.et(n);if(s){const i=s.target;if(yg(i))if(r===0){const o=new Ie(i.path);this.je(n,o,hn.newNoDocument(o,Re.min()))}else yt(r===1);else{const o=this.tt(n);if(o!==r){const a=this.nt(e),l=a?this.rt(a,e,o):1;if(l!==0){this.Ze(n);const c=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.We=this.We.insert(n,c)}}}}}nt(e){const n=e.ye.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:s=0},hashCount:i=0}=n;let o,a;try{o=_o(r).toUint8Array()}catch(l){if(l instanceof wC)return Ra("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new sv(o,s,i)}catch(l){return Ra(l instanceof Nl?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.Ae===0?null:a}rt(e,n,r){return n.ye.count===r-this.ot(e,n.targetId)?0:2}ot(e,n){const r=this.Qe.getRemoteKeysForTarget(n);let s=0;return r.forEach(i=>{const o=this.Qe.st(),a=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.je(n,i,null),s++)}),s}_t(e){const n=new Map;this.Ke.forEach((i,o)=>{const a=this.et(o);if(a){if(i.current&&yg(a.target)){const l=new Ie(a.target.path);this.$e.get(l)!==null||this.ut(o,l)||this.je(o,l,hn.newNoDocument(l,e))}i.Fe&&(n.set(o,i.xe()),i.Oe())}});let r=je();this.Ue.forEach((i,o)=>{let a=!0;o.forEachWhile(l=>{const c=this.et(l);return!c||c.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(i))}),this.$e.forEach((i,o)=>o.setReadTime(e));const s=new Vd(e,n,this.We,this.$e,r);return this.$e=Us(),this.Ue=Dw(),this.We=new $t(Je),s}ze(e,n){if(!this.Ye(e))return;const r=this.ut(e,n.key)?2:0;this.Je(e).Ne(n.key,r),this.$e=this.$e.insert(n.key,n),this.Ue=this.Ue.insert(n.key,this.ct(n.key).add(e))}je(e,n,r){if(!this.Ye(e))return;const s=this.Je(e);this.ut(e,n)?s.Ne(n,1):s.Be(n),this.Ue=this.Ue.insert(n,this.ct(n).delete(e)),r&&(this.$e=this.$e.insert(n,r))}removeTarget(e){this.Ke.delete(e)}tt(e){const n=this.Je(e).xe();return this.Qe.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Le(e){this.Je(e).Le()}Je(e){let n=this.Ke.get(e);return n||(n=new Nw,this.Ke.set(e,n)),n}ct(e){let n=this.Ue.get(e);return n||(n=new En(Je),this.Ue=this.Ue.insert(e,n)),n}Ye(e){const n=this.et(e)!==null;return n||ve("WatchChangeAggregator","Detected inactive target",e),n}et(e){const n=this.Ke.get(e);return n&&n.ve?null:this.Qe.lt(e)}Ze(e){this.Ke.set(e,new Nw),this.Qe.getRemoteKeysForTarget(e).forEach(n=>{this.je(e,n,null)})}ut(e,n){return this.Qe.getRemoteKeysForTarget(e).has(n)}}function Dw(){return new $t(Ie.comparator)}function Lw(){return new $t(Ie.comparator)}const QU=(()=>({asc:"ASCENDING",desc:"DESCENDING"}))(),XU=(()=>({"<":"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"}))(),JU=(()=>({and:"AND",or:"OR"}))();class ZU{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function wg(t,e){return t.useProto3Json||Od(e)?e:{value:e}}function hf(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function qC(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function e2(t,e){return hf(t,e.toTimestamp())}function Qr(t){return yt(!!t),Re.fromTimestamp(function(n){const r=Ri(n);return new Dt(r.seconds,r.nanos)}(t))}function iv(t,e){return function(r){return new _t(["projects",r.projectId,"databases",r.database])}(t).child("documents").child(e).canonicalString()}function KC(t){const e=_t.fromString(t);return yt(JC(e)),e}function Tg(t,e){return iv(t.databaseId,e.path)}function Zp(t,e){const n=KC(e);if(n.get(1)!==t.databaseId.projectId)throw new _e(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new _e(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Ie(zC(n))}function bg(t,e){return iv(t.databaseId,e)}function t2(t){const e=KC(t);return e.length===4?_t.emptyPath():zC(e)}function Ig(t){return new _t(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function zC(t){return yt(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function xw(t,e,n){return{name:Tg(t,e),fields:n.value.mapValue.fields}}function n2(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(c){return c==="NO_CHANGE"?0:c==="ADD"?1:c==="REMOVE"?2:c==="CURRENT"?3:c==="RESET"?4:Se()}(e.targetChange.targetChangeType||"NO_CHANGE"),s=e.targetChange.targetIds||[],i=function(c,u){return c.useProto3Json?(yt(u===void 0||typeof u=="string"),bn.fromBase64String(u||"")):(yt(u===void 0||u instanceof Uint8Array),bn.fromUint8Array(u||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(c){const u=c.code===void 0?ae.UNKNOWN:WC(c.code);return new _e(u,c.message||"")}(o);n=new YC(r,s,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const s=Zp(t,r.document.name),i=Qr(r.document.updateTime),o=r.document.createTime?Qr(r.document.createTime):Re.min(),a=new Un({mapValue:{fields:r.document.fields}}),l=hn.newFoundDocument(s,i,o,a),c=r.targetIds||[],u=r.removedTargetIds||[];n=new vh(c,u,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const s=Zp(t,r.document),i=r.readTime?Qr(r.readTime):Re.min(),o=hn.newNoDocument(s,i),a=r.removedTargetIds||[];n=new vh([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const s=Zp(t,r.document),i=r.removedTargetIds||[];n=new vh([],i,s,null)}else{if(!("filter"in e))return Se();{e.filter;const r=e.filter;r.targetId;const{count:s=0,unchangedNames:i}=r,o=new GU(s,i),a=r.targetId;n=new GC(a,o)}}return n}function r2(t,e){let n;if(e instanceof iu)n={update:xw(t,e.key,e.value)};else if(e instanceof Fd)n={delete:Tg(t,e.key)};else if(e instanceof Mi)n={update:xw(t,e.key,e.data),updateMask:f2(e.fieldMask)};else{if(!(e instanceof $U))return Se();n={verify:Tg(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(i,o){const a=o.transform;if(a instanceof cf)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Ac)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Pc)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof uf)return{fieldPath:o.field.canonicalString(),increment:a.Te};throw Se()}(0,r))),e.precondition.isNone||(n.currentDocument=function(s,i){return i.updateTime!==void 0?{updateTime:e2(s,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:Se()}(t,e.precondition)),n}function s2(t,e){return t&&t.length>0?(yt(e!==void 0),t.map(n=>function(s,i){let o=s.updateTime?Qr(s.updateTime):Qr(i);return o.isEqual(Re.min())&&(o=Qr(i)),new UU(o,s.transformResults||[])}(n,e))):[]}function i2(t,e){return{documents:[bg(t,e.path)]}}function o2(t,e){const n={structuredQuery:{}},r=e.path;e.collectionGroup!==null?(n.parent=bg(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=bg(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const s=function(l){if(l.length!==0)return XC(Cr.create(l,"and"))}(e.filters);s&&(n.structuredQuery.where=s);const i=function(l){if(l.length!==0)return l.map(c=>function(h){return{field:Ko(h.field),direction:c2(h.dir)}}(c))}(e.orderBy);i&&(n.structuredQuery.orderBy=i);const o=wg(t,e.limit);return o!==null&&(n.structuredQuery.limit=o),e.startAt&&(n.structuredQuery.startAt=function(l){return{before:l.inclusive,values:l.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(e.endAt)),n}function a2(t){let e=t2(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){yt(r===1);const u=n.from[0];u.allDescendants?s=u.collectionId:e=e.child(u.collectionId)}let i=[];n.where&&(i=function(h){const f=QC(h);return f instanceof Cr&&kC(f)?f.getFilters():[f]}(n.where));let o=[];n.orderBy&&(o=function(h){return h.map(f=>function(k){return new Hl(zo(k.field),function(T){switch(T){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(k.direction))}(f))}(n.orderBy));let a=null;n.limit&&(a=function(h){let f;return f=typeof h=="object"?h.value:h,Od(f)?null:f}(n.limit));let l=null;n.startAt&&(l=function(h){const f=!!h.before,v=h.values||[];return new lf(v,f)}(n.startAt));let c=null;return n.endAt&&(c=function(h){const f=!h.before,v=h.values||[];return new lf(v,f)}(n.endAt)),SU(e,s,o,i,a,"F",l,c)}function l2(t,e){const n=function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Se()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function QC(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=zo(n.unaryFilter.field);return Ft.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=zo(n.unaryFilter.field);return Ft.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=zo(n.unaryFilter.field);return Ft.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=zo(n.unaryFilter.field);return Ft.create(o,"!=",{nullValue:"NULL_VALUE"});default:return Se()}}(t):t.fieldFilter!==void 0?function(n){return Ft.create(zo(n.fieldFilter.field),function(s){switch(s){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 Se()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Cr.create(n.compositeFilter.filters.map(r=>QC(r)),function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return Se()}}(n.compositeFilter.op))}(t):Se()}function c2(t){return QU[t]}function u2(t){return XU[t]}function h2(t){return JU[t]}function Ko(t){return{fieldPath:t.canonicalString()}}function zo(t){return mn.fromServerFormat(t.fieldPath)}function XC(t){return t instanceof Ft?function(n){if(n.op==="=="){if(ww(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NAN"}};if(Ew(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(ww(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NOT_NAN"}};if(Ew(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ko(n.field),op:u2(n.op),value:n.value}}}(t):t instanceof Cr?function(n){const r=n.getFilters().map(s=>XC(s));return r.length===1?r[0]:{compositeFilter:{op:h2(n.op),filters:r}}}(t):Se()}function f2(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function JC(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** + */class wh{constructor(e,n,r,s){this.ge=e,this.removedTargetIds=n,this.key=r,this.pe=s}}class qC{constructor(e,n){this.targetId=e,this.ye=n}}class KC{constructor(e,n,r=In.EMPTY_BYTE_STRING,s=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=s}}class Lw{constructor(){this.we=0,this.Se=xw(),this.be=In.EMPTY_BYTE_STRING,this.De=!1,this.Ce=!0}get current(){return this.De}get resumeToken(){return this.be}get ve(){return this.we!==0}get Fe(){return this.Ce}Me(e){e.approximateByteSize()>0&&(this.Ce=!0,this.be=e)}xe(){let e=je(),n=je(),r=je();return this.Se.forEach((s,i)=>{switch(i){case 0:e=e.add(s);break;case 2:n=n.add(s);break;case 1:r=r.add(s);break;default:Se()}}),new ou(this.be,this.De,e,n,r)}Oe(){this.Ce=!1,this.Se=xw()}Ne(e,n){this.Ce=!0,this.Se=this.Se.insert(e,n)}Be(e){this.Ce=!0,this.Se=this.Se.remove(e)}Le(){this.we+=1}ke(){this.we-=1}qe(){this.Ce=!0,this.De=!0}}class QU{constructor(e){this.Qe=e,this.Ke=new Map,this.$e=js(),this.Ue=Mw(),this.We=new $t(Je)}Ge(e){for(const n of e.ge)e.pe&&e.pe.isFoundDocument()?this.ze(n,e.pe):this.je(n,e.key,e.pe);for(const n of e.removedTargetIds)this.je(n,e.key,e.pe)}He(e){this.forEachTarget(e,n=>{const r=this.Je(n);switch(e.state){case 0:this.Ye(n)&&r.Me(e.resumeToken);break;case 1:r.ke(),r.ve||r.Oe(),r.Me(e.resumeToken);break;case 2:r.ke(),r.ve||this.removeTarget(n);break;case 3:this.Ye(n)&&(r.qe(),r.Me(e.resumeToken));break;case 4:this.Ye(n)&&(this.Ze(n),r.Me(e.resumeToken));break;default:Se()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Ke.forEach((r,s)=>{this.Ye(s)&&n(s)})}Xe(e){const n=e.targetId,r=e.ye.count,s=this.et(n);if(s){const i=s.target;if(yg(i))if(r===0){const o=new Ie(i.path);this.je(n,o,hn.newNoDocument(o,Re.min()))}else yt(r===1);else{const o=this.tt(n);if(o!==r){const a=this.nt(e),l=a?this.rt(a,e,o):1;if(l!==0){this.Ze(n);const c=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.We=this.We.insert(n,c)}}}}}nt(e){const n=e.ye.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:s=0},hashCount:i=0}=n;let o,a;try{o=_o(r).toUint8Array()}catch(l){if(l instanceof bC)return Ra("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new sv(o,s,i)}catch(l){return Ra(l instanceof Nl?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.Ae===0?null:a}rt(e,n,r){return n.ye.count===r-this.ot(e,n.targetId)?0:2}ot(e,n){const r=this.Qe.getRemoteKeysForTarget(n);let s=0;return r.forEach(i=>{const o=this.Qe.st(),a=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.je(n,i,null),s++)}),s}_t(e){const n=new Map;this.Ke.forEach((i,o)=>{const a=this.et(o);if(a){if(i.current&&yg(a.target)){const l=new Ie(a.target.path);this.$e.get(l)!==null||this.ut(o,l)||this.je(o,l,hn.newNoDocument(l,e))}i.Fe&&(n.set(o,i.xe()),i.Oe())}});let r=je();this.Ue.forEach((i,o)=>{let a=!0;o.forEachWhile(l=>{const c=this.et(l);return!c||c.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(i))}),this.$e.forEach((i,o)=>o.setReadTime(e));const s=new jd(e,n,this.We,this.$e,r);return this.$e=js(),this.Ue=Mw(),this.We=new $t(Je),s}ze(e,n){if(!this.Ye(e))return;const r=this.ut(e,n.key)?2:0;this.Je(e).Ne(n.key,r),this.$e=this.$e.insert(n.key,n),this.Ue=this.Ue.insert(n.key,this.ct(n.key).add(e))}je(e,n,r){if(!this.Ye(e))return;const s=this.Je(e);this.ut(e,n)?s.Ne(n,1):s.Be(n),this.Ue=this.Ue.insert(n,this.ct(n).delete(e)),r&&(this.$e=this.$e.insert(n,r))}removeTarget(e){this.Ke.delete(e)}tt(e){const n=this.Je(e).xe();return this.Qe.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Le(e){this.Je(e).Le()}Je(e){let n=this.Ke.get(e);return n||(n=new Lw,this.Ke.set(e,n)),n}ct(e){let n=this.Ue.get(e);return n||(n=new En(Je),this.Ue=this.Ue.insert(e,n)),n}Ye(e){const n=this.et(e)!==null;return n||ve("WatchChangeAggregator","Detected inactive target",e),n}et(e){const n=this.Ke.get(e);return n&&n.ve?null:this.Qe.lt(e)}Ze(e){this.Ke.set(e,new Lw),this.Qe.getRemoteKeysForTarget(e).forEach(n=>{this.je(e,n,null)})}ut(e,n){return this.Qe.getRemoteKeysForTarget(e).has(n)}}function Mw(){return new $t(Ie.comparator)}function xw(){return new $t(Ie.comparator)}const XU=(()=>({asc:"ASCENDING",desc:"DESCENDING"}))(),JU=(()=>({"<":"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"}))(),ZU=(()=>({and:"AND",or:"OR"}))();class e2{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function wg(t,e){return t.useProto3Json||Dd(e)?e:{value:e}}function df(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function zC(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function t2(t,e){return df(t,e.toTimestamp())}function Qr(t){return yt(!!t),Re.fromTimestamp(function(n){const r=Ri(n);return new Dt(r.seconds,r.nanos)}(t))}function iv(t,e){return function(r){return new _t(["projects",r.projectId,"databases",r.database])}(t).child("documents").child(e).canonicalString()}function QC(t){const e=_t.fromString(t);return yt(eR(e)),e}function Tg(t,e){return iv(t.databaseId,e.path)}function Zp(t,e){const n=QC(e);if(n.get(1)!==t.databaseId.projectId)throw new _e(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new _e(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Ie(XC(n))}function bg(t,e){return iv(t.databaseId,e)}function n2(t){const e=QC(t);return e.length===4?_t.emptyPath():XC(e)}function Ig(t){return new _t(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function XC(t){return yt(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function Fw(t,e,n){return{name:Tg(t,e),fields:n.value.mapValue.fields}}function r2(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(c){return c==="NO_CHANGE"?0:c==="ADD"?1:c==="REMOVE"?2:c==="CURRENT"?3:c==="RESET"?4:Se()}(e.targetChange.targetChangeType||"NO_CHANGE"),s=e.targetChange.targetIds||[],i=function(c,u){return c.useProto3Json?(yt(u===void 0||typeof u=="string"),In.fromBase64String(u||"")):(yt(u===void 0||u instanceof Uint8Array),In.fromUint8Array(u||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(c){const u=c.code===void 0?ae.UNKNOWN:YC(c.code);return new _e(u,c.message||"")}(o);n=new KC(r,s,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const s=Zp(t,r.document.name),i=Qr(r.document.updateTime),o=r.document.createTime?Qr(r.document.createTime):Re.min(),a=new Bn({mapValue:{fields:r.document.fields}}),l=hn.newFoundDocument(s,i,o,a),c=r.targetIds||[],u=r.removedTargetIds||[];n=new wh(c,u,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const s=Zp(t,r.document),i=r.readTime?Qr(r.readTime):Re.min(),o=hn.newNoDocument(s,i),a=r.removedTargetIds||[];n=new wh([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const s=Zp(t,r.document),i=r.removedTargetIds||[];n=new wh([],i,s,null)}else{if(!("filter"in e))return Se();{e.filter;const r=e.filter;r.targetId;const{count:s=0,unchangedNames:i}=r,o=new YU(s,i),a=r.targetId;n=new qC(a,o)}}return n}function s2(t,e){let n;if(e instanceof iu)n={update:Fw(t,e.key,e.value)};else if(e instanceof Ud)n={delete:Tg(t,e.key)};else if(e instanceof xi)n={update:Fw(t,e.key,e.data),updateMask:d2(e.fieldMask)};else{if(!(e instanceof HU))return Se();n={verify:Tg(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(i,o){const a=o.transform;if(a instanceof hf)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Ac)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Pc)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof ff)return{fieldPath:o.field.canonicalString(),increment:a.Te};throw Se()}(0,r))),e.precondition.isNone||(n.currentDocument=function(s,i){return i.updateTime!==void 0?{updateTime:t2(s,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:Se()}(t,e.precondition)),n}function i2(t,e){return t&&t.length>0?(yt(e!==void 0),t.map(n=>function(s,i){let o=s.updateTime?Qr(s.updateTime):Qr(i);return o.isEqual(Re.min())&&(o=Qr(i)),new jU(o,s.transformResults||[])}(n,e))):[]}function o2(t,e){return{documents:[bg(t,e.path)]}}function a2(t,e){const n={structuredQuery:{}},r=e.path;e.collectionGroup!==null?(n.parent=bg(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=bg(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const s=function(l){if(l.length!==0)return ZC(Cr.create(l,"and"))}(e.filters);s&&(n.structuredQuery.where=s);const i=function(l){if(l.length!==0)return l.map(c=>function(h){return{field:Ko(h.field),direction:u2(h.dir)}}(c))}(e.orderBy);i&&(n.structuredQuery.orderBy=i);const o=wg(t,e.limit);return o!==null&&(n.structuredQuery.limit=o),e.startAt&&(n.structuredQuery.startAt=function(l){return{before:l.inclusive,values:l.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(e.endAt)),n}function l2(t){let e=n2(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){yt(r===1);const u=n.from[0];u.allDescendants?s=u.collectionId:e=e.child(u.collectionId)}let i=[];n.where&&(i=function(h){const f=JC(h);return f instanceof Cr&&CC(f)?f.getFilters():[f]}(n.where));let o=[];n.orderBy&&(o=function(h){return h.map(f=>function(k){return new Hl(zo(k.field),function(T){switch(T){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(k.direction))}(f))}(n.orderBy));let a=null;n.limit&&(a=function(h){let f;return f=typeof h=="object"?h.value:h,Dd(f)?null:f}(n.limit));let l=null;n.startAt&&(l=function(h){const f=!!h.before,v=h.values||[];return new uf(v,f)}(n.startAt));let c=null;return n.endAt&&(c=function(h){const f=!h.before,v=h.values||[];return new uf(v,f)}(n.endAt)),CU(e,s,o,i,a,"F",l,c)}function c2(t,e){const n=function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Se()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function JC(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=zo(n.unaryFilter.field);return Ft.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=zo(n.unaryFilter.field);return Ft.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=zo(n.unaryFilter.field);return Ft.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=zo(n.unaryFilter.field);return Ft.create(o,"!=",{nullValue:"NULL_VALUE"});default:return Se()}}(t):t.fieldFilter!==void 0?function(n){return Ft.create(zo(n.fieldFilter.field),function(s){switch(s){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 Se()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Cr.create(n.compositeFilter.filters.map(r=>JC(r)),function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return Se()}}(n.compositeFilter.op))}(t):Se()}function u2(t){return XU[t]}function h2(t){return JU[t]}function f2(t){return ZU[t]}function Ko(t){return{fieldPath:t.canonicalString()}}function zo(t){return mn.fromServerFormat(t.fieldPath)}function ZC(t){return t instanceof Ft?function(n){if(n.op==="=="){if(bw(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NAN"}};if(Tw(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(bw(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NOT_NAN"}};if(Tw(n.value))return{unaryFilter:{field:Ko(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ko(n.field),op:h2(n.op),value:n.value}}}(t):t instanceof Cr?function(n){const r=n.getFilters().map(s=>ZC(s));return r.length===1?r[0]:{compositeFilter:{op:f2(n.op),filters:r}}}(t):Se()}function d2(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function eR(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** * @license * Copyright 2017 Google LLC * @@ -1179,7 +1179,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;se.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,hn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?ce.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/** + */class y2{constructor(){this.changes=new el(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,hn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?ce.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/** * @license * Copyright 2017 Google LLC * @@ -1269,7 +1269,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s(r=s,this.remoteDocumentCache.getEntry(e,n))).next(s=>(r!==null&&Yl(r.mutation,s,Kn.empty(),Dt.now()),s))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,je()).next(()=>r))}getLocalViewOfDocuments(e,n,r=je()){const s=eo();return this.populateOverlays(e,s,n).next(()=>this.computeViews(e,n,s,r).next(i=>{let o=Ol();return i.forEach((a,l)=>{o=o.insert(a,l.overlayedDocument)}),o}))}getOverlayedDocuments(e,n){const r=eo();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,je()))}populateOverlays(e,n,r){const s=[];return r.forEach(i=>{n.has(i)||s.push(i)}),this.documentOverlayCache.getOverlays(e,s).next(i=>{i.forEach((o,a)=>{n.set(o,a)})})}computeViews(e,n,r,s){let i=Us();const o=Gl(),a=function(){return Gl()}();return n.forEach((l,c)=>{const u=r.get(c.key);s.has(c.key)&&(u===void 0||u.mutation instanceof Mi)?i=i.insert(c.key,c):u!==void 0?(o.set(c.key,u.mutation.getFieldMask()),Yl(u.mutation,c,u.mutation.getFieldMask(),Dt.now())):o.set(c.key,Kn.empty())}),this.recalculateAndSaveOverlays(e,i).next(l=>(l.forEach((c,u)=>o.set(c,u)),n.forEach((c,u)=>{var h;return a.set(c,new y2(u,(h=o.get(c))!==null&&h!==void 0?h:null))}),a))}recalculateAndSaveOverlays(e,n){const r=Gl();let s=new $t((o,a)=>o-a),i=je();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(o=>{for(const a of o)a.keys().forEach(l=>{const c=n.get(l);if(c===null)return;let u=r.get(l)||Kn.empty();u=a.applyToLocalView(c,u),r.set(l,u);const h=(s.get(a.batchId)||je()).add(l);s=s.insert(a.batchId,h)})}).next(()=>{const o=[],a=s.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,h=xC();u.forEach(f=>{if(!i.has(f)){const v=$C(n.get(f),r.get(f));v!==null&&h.set(f,v),i=i.add(f)}}),o.push(this.documentOverlayCache.saveOverlays(e,c,h))}return ce.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,s){return function(o){return Ie.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):PC(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next(i=>{const o=s-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-i.size):ce.resolve(eo());let a=-1,l=i;return o.next(c=>ce.forEach(c,(u,h)=>(a{l=l.insert(u,f)}))).next(()=>this.populateOverlays(e,c,i)).next(()=>this.computeViews(e,l,c,je())).next(u=>({batchId:a,changes:LC(u)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new Ie(n)).next(r=>{let s=Ol();return r.isFoundDocument()&&(s=s.insert(r.key,r)),s})}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const i=n.collectionGroup;let o=Ol();return this.indexManager.getCollectionParents(e,i).next(a=>ce.forEach(a,l=>{const c=function(h,f){return new su(f,null,h.explicitOrderBy.slice(),h.filters.slice(),h.limit,h.limitType,h.startAt,h.endAt)}(n,l.child(i));return this.getDocumentsMatchingCollectionQuery(e,c,r,s).next(u=>{u.forEach((h,f)=>{o=o.insert(h,f)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,n,r,s){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,s))).next(o=>{i.forEach((l,c)=>{const u=c.getKey();o.get(u)===null&&(o=o.insert(u,hn.newInvalidDocument(u)))});let a=Ol();return o.forEach((l,c)=>{const u=i.get(l);u!==void 0&&Yl(u.mutation,c,Kn.empty(),Dt.now()),Ld(n,c)&&(a=a.insert(l,c))}),a})}}/** + */class E2{constructor(e,n,r,s){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=s}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(s=>(r=s,this.remoteDocumentCache.getEntry(e,n))).next(s=>(r!==null&&Yl(r.mutation,s,zn.empty(),Dt.now()),s))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,je()).next(()=>r))}getLocalViewOfDocuments(e,n,r=je()){const s=eo();return this.populateOverlays(e,s,n).next(()=>this.computeViews(e,n,s,r).next(i=>{let o=Ol();return i.forEach((a,l)=>{o=o.insert(a,l.overlayedDocument)}),o}))}getOverlayedDocuments(e,n){const r=eo();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,je()))}populateOverlays(e,n,r){const s=[];return r.forEach(i=>{n.has(i)||s.push(i)}),this.documentOverlayCache.getOverlays(e,s).next(i=>{i.forEach((o,a)=>{n.set(o,a)})})}computeViews(e,n,r,s){let i=js();const o=Gl(),a=function(){return Gl()}();return n.forEach((l,c)=>{const u=r.get(c.key);s.has(c.key)&&(u===void 0||u.mutation instanceof xi)?i=i.insert(c.key,c):u!==void 0?(o.set(c.key,u.mutation.getFieldMask()),Yl(u.mutation,c,u.mutation.getFieldMask(),Dt.now())):o.set(c.key,zn.empty())}),this.recalculateAndSaveOverlays(e,i).next(l=>(l.forEach((c,u)=>o.set(c,u)),n.forEach((c,u)=>{var h;return a.set(c,new v2(u,(h=o.get(c))!==null&&h!==void 0?h:null))}),a))}recalculateAndSaveOverlays(e,n){const r=Gl();let s=new $t((o,a)=>o-a),i=je();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(o=>{for(const a of o)a.keys().forEach(l=>{const c=n.get(l);if(c===null)return;let u=r.get(l)||zn.empty();u=a.applyToLocalView(c,u),r.set(l,u);const h=(s.get(a.batchId)||je()).add(l);s=s.insert(a.batchId,h)})}).next(()=>{const o=[],a=s.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,h=FC();u.forEach(f=>{if(!i.has(f)){const v=WC(n.get(f),r.get(f));v!==null&&h.set(f,v),i=i.add(f)}}),o.push(this.documentOverlayCache.saveOverlays(e,c,h))}return ce.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,s){return function(o){return Ie.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):NC(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next(i=>{const o=s-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-i.size):ce.resolve(eo());let a=-1,l=i;return o.next(c=>ce.forEach(c,(u,h)=>(a{l=l.insert(u,f)}))).next(()=>this.populateOverlays(e,c,i)).next(()=>this.computeViews(e,l,c,je())).next(u=>({batchId:a,changes:xC(u)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new Ie(n)).next(r=>{let s=Ol();return r.isFoundDocument()&&(s=s.insert(r.key,r)),s})}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const i=n.collectionGroup;let o=Ol();return this.indexManager.getCollectionParents(e,i).next(a=>ce.forEach(a,l=>{const c=function(h,f){return new su(f,null,h.explicitOrderBy.slice(),h.filters.slice(),h.limit,h.limitType,h.startAt,h.endAt)}(n,l.child(i));return this.getDocumentsMatchingCollectionQuery(e,c,r,s).next(u=>{u.forEach((h,f)=>{o=o.insert(h,f)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,n,r,s){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,s))).next(o=>{i.forEach((l,c)=>{const u=c.getKey();o.get(u)===null&&(o=o.insert(u,hn.newInvalidDocument(u)))});let a=Ol();return o.forEach((l,c)=>{const u=i.get(l);u!==void 0&&Yl(u.mutation,c,zn.empty(),Dt.now()),xd(n,c)&&(a=a.insert(l,c))}),a})}}/** * @license * Copyright 2020 Google LLC * @@ -1299,7 +1299,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis.getOverlay(e,s).next(i=>{i!==null&&r.set(s,i)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((s,i)=>{this.It(e,n,i)}),ce.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Pr.get(r);return s!==void 0&&(s.forEach(i=>this.overlays=this.overlays.remove(i)),this.Pr.delete(r)),ce.resolve()}getOverlaysForCollection(e,n,r){const s=eo(),i=n.length+1,o=new Ie(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!n.isPrefixOf(c.path))break;c.path.length===i&&l.largestBatchId>r&&s.set(l.getKey(),l)}return ce.resolve(s)}getOverlaysForCollectionGroup(e,n,r,s){let i=new $t((c,u)=>c-u);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===n&&c.largestBatchId>r){let u=i.get(c.largestBatchId);u===null&&(u=eo(),i=i.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=eo(),l=i.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=s)););return ce.resolve(a)}It(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const o=this.Pr.get(s.largestBatchId).delete(r.key);this.Pr.set(s.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new WU(n,r));let i=this.Pr.get(n);i===void 0&&(i=je(),this.Pr.set(n,i)),this.Pr.set(n,i.add(r.key))}}/** + */class T2{constructor(){this.overlays=new $t(Ie.comparator),this.Pr=new Map}getOverlay(e,n){return ce.resolve(this.overlays.get(n))}getOverlays(e,n){const r=eo();return ce.forEach(n,s=>this.getOverlay(e,s).next(i=>{i!==null&&r.set(s,i)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((s,i)=>{this.It(e,n,i)}),ce.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Pr.get(r);return s!==void 0&&(s.forEach(i=>this.overlays=this.overlays.remove(i)),this.Pr.delete(r)),ce.resolve()}getOverlaysForCollection(e,n,r){const s=eo(),i=n.length+1,o=new Ie(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!n.isPrefixOf(c.path))break;c.path.length===i&&l.largestBatchId>r&&s.set(l.getKey(),l)}return ce.resolve(s)}getOverlaysForCollectionGroup(e,n,r,s){let i=new $t((c,u)=>c-u);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===n&&c.largestBatchId>r){let u=i.get(c.largestBatchId);u===null&&(u=eo(),i=i.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=eo(),l=i.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=s)););return ce.resolve(a)}It(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const o=this.Pr.get(s.largestBatchId).delete(r.key);this.Pr.set(s.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new GU(n,r));let i=this.Pr.get(n);i===void 0&&(i=je(),this.Pr.set(n,i)),this.Pr.set(n,i.add(r.key))}}/** * @license * Copyright 2017 Google LLC * @@ -1344,7 +1344,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s0&&this.mutationQueue[this.mutationQueue.length-1];const o=new HU(i,n,r,s);this.mutationQueue.push(o);for(const a of s)this.Sr=this.Sr.add(new Yt(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ce.resolve(o)}lookupMutationBatch(e,n){return ce.resolve(this.br(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.Dr(r),i=s<0?0:s;return ce.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return ce.resolve(this.mutationQueue.length===0?-1:this.wr-1)}getAllMutationBatches(e){return ce.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Yt(n,0),s=new Yt(n,Number.POSITIVE_INFINITY),i=[];return this.Sr.forEachInRange([r,s],o=>{const a=this.br(o.yr);i.push(a)}),ce.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new En(Je);return n.forEach(s=>{const i=new Yt(s,0),o=new Yt(s,Number.POSITIVE_INFINITY);this.Sr.forEachInRange([i,o],a=>{r=r.add(a.yr)})}),ce.resolve(this.Cr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let i=r;Ie.isDocumentKey(i)||(i=i.child(""));const o=new Yt(new Ie(i),0);let a=new En(Je);return this.Sr.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===s&&(a=a.add(l.yr)),!0)},o),ce.resolve(this.Cr(a))}Cr(e){const n=[];return e.forEach(r=>{const s=this.br(r);s!==null&&n.push(s)}),n}removeMutationBatch(e,n){yt(this.vr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.Sr;return ce.forEach(n.mutations,s=>{const i=new Yt(s.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)}).next(()=>{this.Sr=r})}xn(e){}containsKey(e,n){const r=new Yt(n,0),s=this.Sr.firstAfterOrEqual(r);return ce.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,ce.resolve()}vr(e,n){return this.Dr(e)}Dr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}br(e){const n=this.Dr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** + */class b2{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.wr=1,this.Sr=new En(Yt.dr)}checkEmpty(e){return ce.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,s){const i=this.wr;this.wr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new WU(i,n,r,s);this.mutationQueue.push(o);for(const a of s)this.Sr=this.Sr.add(new Yt(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ce.resolve(o)}lookupMutationBatch(e,n){return ce.resolve(this.br(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.Dr(r),i=s<0?0:s;return ce.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return ce.resolve(this.mutationQueue.length===0?-1:this.wr-1)}getAllMutationBatches(e){return ce.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Yt(n,0),s=new Yt(n,Number.POSITIVE_INFINITY),i=[];return this.Sr.forEachInRange([r,s],o=>{const a=this.br(o.yr);i.push(a)}),ce.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new En(Je);return n.forEach(s=>{const i=new Yt(s,0),o=new Yt(s,Number.POSITIVE_INFINITY);this.Sr.forEachInRange([i,o],a=>{r=r.add(a.yr)})}),ce.resolve(this.Cr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let i=r;Ie.isDocumentKey(i)||(i=i.child(""));const o=new Yt(new Ie(i),0);let a=new En(Je);return this.Sr.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===s&&(a=a.add(l.yr)),!0)},o),ce.resolve(this.Cr(a))}Cr(e){const n=[];return e.forEach(r=>{const s=this.br(r);s!==null&&n.push(s)}),n}removeMutationBatch(e,n){yt(this.vr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.Sr;return ce.forEach(n.mutations,s=>{const i=new Yt(s.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)}).next(()=>{this.Sr=r})}xn(e){}containsKey(e,n){const r=new Yt(n,0),s=this.Sr.firstAfterOrEqual(r);return ce.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,ce.resolve()}vr(e,n){return this.Dr(e)}Dr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}br(e){const n=this.Dr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** * @license * Copyright 2017 Google LLC * @@ -1359,7 +1359,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{const i=this.docs.get(s);r=r.insert(s,i?i.document.mutableCopy():hn.newInvalidDocument(s))}),ce.resolve(r)}getDocumentsMatchingQuery(e,n,r,s){let i=Us();const o=n.path,a=new Ie(o.child("")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:c,value:{document:u}}=l.getNext();if(!o.isPrefixOf(c.path))break;c.path.length>o.length+1||cU(lU(u),r)<=0||(s.has(u.key)||Ld(n,u))&&(i=i.insert(u.key,u.mutableCopy()))}return ce.resolve(i)}getAllFromCollectionGroup(e,n,r,s){Se()}Mr(e,n){return ce.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new I2(this)}getSize(e){return ce.resolve(this.size)}}class I2 extends _2{constructor(e){super(),this.ur=e}applyChanges(e){const n=[];return this.changes.forEach((r,s)=>{s.isValidDocument()?n.push(this.ur.addEntry(e,s)):this.ur.removeEntry(r)}),ce.waitFor(n)}getFromCache(e,n){return this.ur.getEntry(e,n)}getAllFromCache(e,n){return this.ur.getEntries(e,n)}}/** + */class I2{constructor(e){this.Fr=e,this.docs=function(){return new $t(Ie.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,s=this.docs.get(r),i=s?s.size:0,o=this.Fr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return ce.resolve(r?r.document.mutableCopy():hn.newInvalidDocument(n))}getEntries(e,n){let r=js();return n.forEach(s=>{const i=this.docs.get(s);r=r.insert(s,i?i.document.mutableCopy():hn.newInvalidDocument(s))}),ce.resolve(r)}getDocumentsMatchingQuery(e,n,r,s){let i=js();const o=n.path,a=new Ie(o.child("")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:c,value:{document:u}}=l.getNext();if(!o.isPrefixOf(c.path))break;c.path.length>o.length+1||uU(cU(u),r)<=0||(s.has(u.key)||xd(n,u))&&(i=i.insert(u.key,u.mutableCopy()))}return ce.resolve(i)}getAllFromCollectionGroup(e,n,r,s){Se()}Mr(e,n){return ce.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new k2(this)}getSize(e){return ce.resolve(this.size)}}class k2 extends y2{constructor(e){super(),this.ur=e}applyChanges(e){const n=[];return this.changes.forEach((r,s)=>{s.isValidDocument()?n.push(this.ur.addEntry(e,s)):this.ur.removeEntry(r)}),ce.waitFor(n)}getFromCache(e,n){return this.ur.getEntry(e,n)}getAllFromCache(e,n){return this.ur.getEntries(e,n)}}/** * @license * Copyright 2017 Google LLC * @@ -1374,7 +1374,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sev(n),tv),this.lastRemoteSnapshotVersion=Re.min(),this.highestTargetId=0,this.Nr=0,this.Br=new ov,this.targetCount=0,this.Lr=Na.Bn()}forEachTarget(e,n){return this.Or.forEach((r,s)=>n(s)),ce.resolve()}getLastRemoteSnapshotVersion(e){return ce.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ce.resolve(this.Nr)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),ce.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Nr&&(this.Nr=n),ce.resolve()}Qn(e){this.Or.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Lr=new Na(n),this.highestTargetId=n),e.sequenceNumber>this.Nr&&(this.Nr=e.sequenceNumber)}addTargetData(e,n){return this.Qn(n),this.targetCount+=1,ce.resolve()}updateTargetData(e,n){return this.Qn(n),ce.resolve()}removeTargetData(e,n){return this.Or.delete(n.target),this.Br.mr(n.targetId),this.targetCount-=1,ce.resolve()}removeTargets(e,n,r){let s=0;const i=[];return this.Or.forEach((o,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.Or.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),s++)}),ce.waitFor(i).next(()=>s)}getTargetCount(e){return ce.resolve(this.targetCount)}getTargetData(e,n){const r=this.Or.get(n)||null;return ce.resolve(r)}addMatchingKeys(e,n,r){return this.Br.Ar(n,r),ce.resolve()}removeMatchingKeys(e,n,r){this.Br.Vr(n,r);const s=this.persistence.referenceDelegate,i=[];return s&&n.forEach(o=>{i.push(s.markPotentiallyOrphaned(e,o))}),ce.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.Br.mr(n),ce.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Br.pr(n);return ce.resolve(r)}containsKey(e,n){return ce.resolve(this.Br.containsKey(n))}}/** + */class S2{constructor(e){this.persistence=e,this.Or=new el(n=>ev(n),tv),this.lastRemoteSnapshotVersion=Re.min(),this.highestTargetId=0,this.Nr=0,this.Br=new ov,this.targetCount=0,this.Lr=Na.Bn()}forEachTarget(e,n){return this.Or.forEach((r,s)=>n(s)),ce.resolve()}getLastRemoteSnapshotVersion(e){return ce.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ce.resolve(this.Nr)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),ce.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Nr&&(this.Nr=n),ce.resolve()}Qn(e){this.Or.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Lr=new Na(n),this.highestTargetId=n),e.sequenceNumber>this.Nr&&(this.Nr=e.sequenceNumber)}addTargetData(e,n){return this.Qn(n),this.targetCount+=1,ce.resolve()}updateTargetData(e,n){return this.Qn(n),ce.resolve()}removeTargetData(e,n){return this.Or.delete(n.target),this.Br.mr(n.targetId),this.targetCount-=1,ce.resolve()}removeTargets(e,n,r){let s=0;const i=[];return this.Or.forEach((o,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.Or.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),s++)}),ce.waitFor(i).next(()=>s)}getTargetCount(e){return ce.resolve(this.targetCount)}getTargetData(e,n){const r=this.Or.get(n)||null;return ce.resolve(r)}addMatchingKeys(e,n,r){return this.Br.Ar(n,r),ce.resolve()}removeMatchingKeys(e,n,r){this.Br.Vr(n,r);const s=this.persistence.referenceDelegate,i=[];return s&&n.forEach(o=>{i.push(s.markPotentiallyOrphaned(e,o))}),ce.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.Br.mr(n),ce.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Br.pr(n);return ce.resolve(r)}containsKey(e,n){return ce.resolve(this.Br.containsKey(n))}}/** * @license * Copyright 2017 Google LLC * @@ -1389,7 +1389,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis.referenceDelegate.$r(r)),this.serializer=new d2(n),this.Ur=new E2(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Qr=!1,Promise.resolve()}get started(){return this.Qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new w2,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.kr[e.toKey()];return r||(r=new T2(n,this.referenceDelegate),this.kr[e.toKey()]=r),r}getTargetCache(){return this.Kr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ur}runTransaction(e,n,r){ve("MemoryPersistence","Starting transaction:",e);const s=new C2(this.qr.next());return this.referenceDelegate.Wr(),r(s).next(i=>this.referenceDelegate.Gr(s).next(()=>i)).toPromise().then(i=>(s.raiseOnCommittedEvent(),i))}zr(e,n){return ce.or(Object.values(this.kr).map(r=>()=>r.containsKey(e,n)))}}class C2 extends hU{constructor(e){super(),this.currentSequenceNumber=e}}class av{constructor(e){this.persistence=e,this.jr=new ov,this.Hr=null}static Jr(e){return new av(e)}get Yr(){if(this.Hr)return this.Hr;throw Se()}addReference(e,n,r){return this.jr.addReference(r,n),this.Yr.delete(r.toString()),ce.resolve()}removeReference(e,n,r){return this.jr.removeReference(r,n),this.Yr.add(r.toString()),ce.resolve()}markPotentiallyOrphaned(e,n){return this.Yr.add(n.toString()),ce.resolve()}removeTarget(e,n){this.jr.mr(n.targetId).forEach(s=>this.Yr.add(s.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(s=>{s.forEach(i=>this.Yr.add(i.toString()))}).next(()=>r.removeTargetData(e,n))}Wr(){this.Hr=new Set}Gr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ce.forEach(this.Yr,r=>{const s=Ie.fromPath(r);return this.Zr(e,s).next(i=>{i||n.removeEntry(s,Re.min())})}).next(()=>(this.Hr=null,n.apply(e)))}updateLimboDocument(e,n){return this.Zr(e,n).next(r=>{r?this.Yr.delete(n.toString()):this.Yr.add(n.toString())})}$r(e){return 0}Zr(e,n){return ce.or([()=>ce.resolve(this.jr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.zr(e,n)])}}/** + */class C2{constructor(e,n){this.kr={},this.overlays={},this.qr=new Qy(0),this.Qr=!1,this.Qr=!0,this.referenceDelegate=e(this),this.Kr=new S2(this),this.indexManager=new g2,this.remoteDocumentCache=function(s){return new I2(s)}(r=>this.referenceDelegate.$r(r)),this.serializer=new p2(n),this.Ur=new w2(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Qr=!1,Promise.resolve()}get started(){return this.Qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new T2,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.kr[e.toKey()];return r||(r=new b2(n,this.referenceDelegate),this.kr[e.toKey()]=r),r}getTargetCache(){return this.Kr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ur}runTransaction(e,n,r){ve("MemoryPersistence","Starting transaction:",e);const s=new R2(this.qr.next());return this.referenceDelegate.Wr(),r(s).next(i=>this.referenceDelegate.Gr(s).next(()=>i)).toPromise().then(i=>(s.raiseOnCommittedEvent(),i))}zr(e,n){return ce.or(Object.values(this.kr).map(r=>()=>r.containsKey(e,n)))}}class R2 extends fU{constructor(e){super(),this.currentSequenceNumber=e}}class av{constructor(e){this.persistence=e,this.jr=new ov,this.Hr=null}static Jr(e){return new av(e)}get Yr(){if(this.Hr)return this.Hr;throw Se()}addReference(e,n,r){return this.jr.addReference(r,n),this.Yr.delete(r.toString()),ce.resolve()}removeReference(e,n,r){return this.jr.removeReference(r,n),this.Yr.add(r.toString()),ce.resolve()}markPotentiallyOrphaned(e,n){return this.Yr.add(n.toString()),ce.resolve()}removeTarget(e,n){this.jr.mr(n.targetId).forEach(s=>this.Yr.add(s.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(s=>{s.forEach(i=>this.Yr.add(i.toString()))}).next(()=>r.removeTargetData(e,n))}Wr(){this.Hr=new Set}Gr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ce.forEach(this.Yr,r=>{const s=Ie.fromPath(r);return this.Zr(e,s).next(i=>{i||n.removeEntry(s,Re.min())})}).next(()=>(this.Hr=null,n.apply(e)))}updateLimboDocument(e,n){return this.Zr(e,n).next(r=>{r?this.Yr.delete(n.toString()):this.Yr.add(n.toString())})}$r(e){return 0}Zr(e,n){return ce.or([()=>ce.resolve(this.jr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.zr(e,n)])}}/** * @license * Copyright 2017 Google LLC * @@ -1419,7 +1419,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s{i.result=o}).next(()=>{if(!i.result)return this.Ji(e,n,s,r).next(o=>{i.result=o})}).next(()=>{if(i.result)return;const o=new R2;return this.Yi(e,n,o).next(a=>{if(i.result=a,this.Wi)return this.Zi(e,n,o,a.size)})}).next(()=>i.result)}Zi(e,n,r,s){return r.documentReadCountthis.zi*s?(ml()<=Ue.DEBUG&&ve("QueryEngine","The SDK decides to create cache indexes for query:",qo(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,zr(n))):ce.resolve())}Hi(e,n){if(kw(n))return ce.resolve(null);let r=zr(n);return this.indexManager.getIndexType(e,r).next(s=>s===0?null:(n.limit!==null&&s===1&&(n=Eg(n,null,"F"),r=zr(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(i=>{const o=je(...i);return this.ji.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.Xi(n,a);return this.es(n,c,o,l.readTime)?this.Hi(e,Eg(n,null,"F")):this.ts(e,c,n,l)}))})))}Ji(e,n,r,s){return kw(n)||s.isEqual(Re.min())?ce.resolve(null):this.ji.getDocuments(e,r).next(i=>{const o=this.Xi(n,i);return this.es(n,o,r,s)?ce.resolve(null):(ml()<=Ue.DEBUG&&ve("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),qo(n)),this.ts(e,o,n,aU(s,-1)).next(a=>a))})}Xi(e,n){let r=new En(NC(e));return n.forEach((s,i)=>{Ld(e,i)&&(r=r.add(i))}),r}es(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(s)>0)}Yi(e,n,r){return ml()<=Ue.DEBUG&&ve("QueryEngine","Using full collection scan to execute query:",qo(n)),this.ji.getDocumentsMatchingQuery(e,n,Ci.min(),r)}ts(e,n,r,s){return this.ji.getDocumentsMatchingQuery(e,r,s).next(i=>(n.forEach(o=>{i=i.insert(o.key,o)}),i))}}/** + */class P2{constructor(){this.Ui=!1,this.Wi=!1,this.Gi=100,this.zi=8}initialize(e,n){this.ji=e,this.indexManager=n,this.Ui=!0}getDocumentsMatchingQuery(e,n,r,s){const i={result:null};return this.Hi(e,n).next(o=>{i.result=o}).next(()=>{if(!i.result)return this.Ji(e,n,s,r).next(o=>{i.result=o})}).next(()=>{if(i.result)return;const o=new A2;return this.Yi(e,n,o).next(a=>{if(i.result=a,this.Wi)return this.Zi(e,n,o,a.size)})}).next(()=>i.result)}Zi(e,n,r,s){return r.documentReadCountthis.zi*s?(ml()<=Ue.DEBUG&&ve("QueryEngine","The SDK decides to create cache indexes for query:",qo(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,zr(n))):ce.resolve())}Hi(e,n){if(Cw(n))return ce.resolve(null);let r=zr(n);return this.indexManager.getIndexType(e,r).next(s=>s===0?null:(n.limit!==null&&s===1&&(n=Eg(n,null,"F"),r=zr(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(i=>{const o=je(...i);return this.ji.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.Xi(n,a);return this.es(n,c,o,l.readTime)?this.Hi(e,Eg(n,null,"F")):this.ts(e,c,n,l)}))})))}Ji(e,n,r,s){return Cw(n)||s.isEqual(Re.min())?ce.resolve(null):this.ji.getDocuments(e,r).next(i=>{const o=this.Xi(n,i);return this.es(n,o,r,s)?ce.resolve(null):(ml()<=Ue.DEBUG&&ve("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),qo(n)),this.ts(e,o,n,lU(s,-1)).next(a=>a))})}Xi(e,n){let r=new En(LC(e));return n.forEach((s,i)=>{xd(e,i)&&(r=r.add(i))}),r}es(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(s)>0)}Yi(e,n,r){return ml()<=Ue.DEBUG&&ve("QueryEngine","Using full collection scan to execute query:",qo(n)),this.ji.getDocumentsMatchingQuery(e,n,Ci.min(),r)}ts(e,n,r,s){return this.ji.getDocumentsMatchingQuery(e,r,s).next(i=>(n.forEach(o=>{i=i.insert(o.key,o)}),i))}}/** * @license * Copyright 2020 Google LLC * @@ -1449,7 +1449,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sev(i),tv),this.os=new Map,this._s=e.getRemoteDocumentCache(),this.Kr=e.getTargetCache(),this.Ur=e.getBundleCache(),this.us(r)}us(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new v2(this._s,this.mutationQueue,this.documentOverlayCache,this.indexManager),this._s.setIndexManager(this.indexManager),this.ns.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.rs))}}function O2(t,e,n,r){return new P2(t,e,n,r)}async function ZC(t,e){const n=Pe(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let s;return n.mutationQueue.getAllMutationBatches(r).next(i=>(s=i,n.us(e),n.mutationQueue.getAllMutationBatches(r))).next(i=>{const o=[],a=[];let l=je();for(const c of s){o.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of i){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return n.localDocuments.getDocuments(r,l).next(c=>({cs:c,removedBatchIds:o,addedBatchIds:a}))})})}function N2(t,e){const n=Pe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const s=e.batch.keys(),i=n._s.newChangeBuffer({trackRemovals:!0});return function(a,l,c,u){const h=c.batch,f=h.keys();let v=ce.resolve();return f.forEach(k=>{v=v.next(()=>u.getEntry(l,k)).next(I=>{const T=c.docVersions.get(k);yt(T!==null),I.version.compareTo(T)<0&&(h.applyToRemoteDocument(I,c),I.isValidDocument()&&(I.setReadTime(c.commitVersion),u.addEntry(I)))})}),v.next(()=>a.mutationQueue.removeMutationBatch(l,h))}(n,r,e,i).next(()=>i.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=je();for(let c=0;c0&&(l=l.add(a.batch.mutations[c].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,s))})}function eR(t){const e=Pe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Kr.getLastRemoteSnapshotVersion(n))}function D2(t,e){const n=Pe(t),r=e.snapshotVersion;let s=n.rs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",i=>{const o=n._s.newChangeBuffer({trackRemovals:!0});s=n.rs;const a=[];e.targetChanges.forEach((u,h)=>{const f=s.get(h);if(!f)return;a.push(n.Kr.removeMatchingKeys(i,u.removedDocuments,h).next(()=>n.Kr.addMatchingKeys(i,u.addedDocuments,h)));let v=f.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(h)!==null?v=v.withResumeToken(bn.EMPTY_BYTE_STRING,Re.min()).withLastLimboFreeSnapshotVersion(Re.min()):u.resumeToken.approximateByteSize()>0&&(v=v.withResumeToken(u.resumeToken,r)),s=s.insert(h,v),function(I,T,g){return I.resumeToken.approximateByteSize()===0||T.snapshotVersion.toMicroseconds()-I.snapshotVersion.toMicroseconds()>=3e8?!0:g.addedDocuments.size+g.modifiedDocuments.size+g.removedDocuments.size>0}(f,v,u)&&a.push(n.Kr.updateTargetData(i,v))});let l=Us(),c=je();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,u))}),a.push(L2(i,o,e.documentUpdates).next(u=>{l=u.ls,c=u.hs})),!r.isEqual(Re.min())){const u=n.Kr.getLastRemoteSnapshotVersion(i).next(h=>n.Kr.setTargetsMetadata(i,i.currentSequenceNumber,r));a.push(u)}return ce.waitFor(a).next(()=>o.apply(i)).next(()=>n.localDocuments.getLocalViewOfDocuments(i,l,c)).next(()=>l)}).then(i=>(n.rs=s,i))}function L2(t,e,n){let r=je(),s=je();return n.forEach(i=>r=r.add(i)),e.getEntries(t,r).next(i=>{let o=Us();return n.forEach((a,l)=>{const c=i.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(s=s.add(a)),l.isNoDocument()&&l.version.isEqual(Re.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||l.version.compareTo(c.version)===0&&c.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):ve("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{ls:o,hs:s}})}function x2(t,e){const n=Pe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function M2(t,e){const n=Pe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let s;return n.Kr.getTargetData(r,e).next(i=>i?(s=i,ce.resolve(s)):n.Kr.allocateTargetId(r).next(o=>(s=new ui(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.Kr.addTargetData(r,s).next(()=>s))))}).then(r=>{const s=n.rs.get(r.targetId);return(s===null||r.snapshotVersion.compareTo(s.snapshotVersion)>0)&&(n.rs=n.rs.insert(r.targetId,r),n.ss.set(e,r.targetId)),r})}async function kg(t,e,n){const r=Pe(t),s=r.rs.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,o=>r.persistence.referenceDelegate.removeTarget(o,s))}catch(o){if(!ru(o))throw o;ve("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.rs=r.rs.remove(e),r.ss.delete(s.target)}function Mw(t,e,n){const r=Pe(t);let s=Re.min(),i=je();return r.persistence.runTransaction("Execute query","readwrite",o=>function(l,c,u){const h=Pe(l),f=h.ss.get(u);return f!==void 0?ce.resolve(h.rs.get(f)):h.Kr.getTargetData(c,u)}(r,o,zr(e)).next(a=>{if(a)return s=a.lastLimboFreeSnapshotVersion,r.Kr.getMatchingKeysForTargetId(o,a.targetId).next(l=>{i=l})}).next(()=>r.ns.getDocumentsMatchingQuery(o,e,n?s:Re.min(),n?i:je())).next(a=>(F2(r,RU(e),a),{documents:a,Ps:i})))}function F2(t,e,n){let r=t.os.get(e)||Re.min();n.forEach((s,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)}),t.os.set(e,r)}class Fw{constructor(){this.activeTargetIds=LU()}Rs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Vs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}As(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class V2{constructor(){this.ro=new Fw,this.io={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.ro.Rs(e),this.io[e]||"not-current"}updateQueryState(e,n,r){this.io[e]=n}removeLocalQueryTarget(e){this.ro.Vs(e)}isLocalQueryTarget(e){return this.ro.activeTargetIds.has(e)}clearQueryState(e){delete this.io[e]}getAllActiveQueryTargets(){return this.ro.activeTargetIds}isActiveQueryTarget(e){return this.ro.activeTargetIds.has(e)}start(){return this.ro=new Fw,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** + */class O2{constructor(e,n,r,s){this.persistence=e,this.ns=n,this.serializer=s,this.rs=new $t(Je),this.ss=new el(i=>ev(i),tv),this.os=new Map,this._s=e.getRemoteDocumentCache(),this.Kr=e.getTargetCache(),this.Ur=e.getBundleCache(),this.us(r)}us(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new E2(this._s,this.mutationQueue,this.documentOverlayCache,this.indexManager),this._s.setIndexManager(this.indexManager),this.ns.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.rs))}}function N2(t,e,n,r){return new O2(t,e,n,r)}async function tR(t,e){const n=Pe(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let s;return n.mutationQueue.getAllMutationBatches(r).next(i=>(s=i,n.us(e),n.mutationQueue.getAllMutationBatches(r))).next(i=>{const o=[],a=[];let l=je();for(const c of s){o.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of i){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return n.localDocuments.getDocuments(r,l).next(c=>({cs:c,removedBatchIds:o,addedBatchIds:a}))})})}function D2(t,e){const n=Pe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const s=e.batch.keys(),i=n._s.newChangeBuffer({trackRemovals:!0});return function(a,l,c,u){const h=c.batch,f=h.keys();let v=ce.resolve();return f.forEach(k=>{v=v.next(()=>u.getEntry(l,k)).next(I=>{const T=c.docVersions.get(k);yt(T!==null),I.version.compareTo(T)<0&&(h.applyToRemoteDocument(I,c),I.isValidDocument()&&(I.setReadTime(c.commitVersion),u.addEntry(I)))})}),v.next(()=>a.mutationQueue.removeMutationBatch(l,h))}(n,r,e,i).next(()=>i.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=je();for(let c=0;c0&&(l=l.add(a.batch.mutations[c].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,s))})}function nR(t){const e=Pe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Kr.getLastRemoteSnapshotVersion(n))}function L2(t,e){const n=Pe(t),r=e.snapshotVersion;let s=n.rs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",i=>{const o=n._s.newChangeBuffer({trackRemovals:!0});s=n.rs;const a=[];e.targetChanges.forEach((u,h)=>{const f=s.get(h);if(!f)return;a.push(n.Kr.removeMatchingKeys(i,u.removedDocuments,h).next(()=>n.Kr.addMatchingKeys(i,u.addedDocuments,h)));let v=f.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(h)!==null?v=v.withResumeToken(In.EMPTY_BYTE_STRING,Re.min()).withLastLimboFreeSnapshotVersion(Re.min()):u.resumeToken.approximateByteSize()>0&&(v=v.withResumeToken(u.resumeToken,r)),s=s.insert(h,v),function(I,T,g){return I.resumeToken.approximateByteSize()===0||T.snapshotVersion.toMicroseconds()-I.snapshotVersion.toMicroseconds()>=3e8?!0:g.addedDocuments.size+g.modifiedDocuments.size+g.removedDocuments.size>0}(f,v,u)&&a.push(n.Kr.updateTargetData(i,v))});let l=js(),c=je();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,u))}),a.push(M2(i,o,e.documentUpdates).next(u=>{l=u.ls,c=u.hs})),!r.isEqual(Re.min())){const u=n.Kr.getLastRemoteSnapshotVersion(i).next(h=>n.Kr.setTargetsMetadata(i,i.currentSequenceNumber,r));a.push(u)}return ce.waitFor(a).next(()=>o.apply(i)).next(()=>n.localDocuments.getLocalViewOfDocuments(i,l,c)).next(()=>l)}).then(i=>(n.rs=s,i))}function M2(t,e,n){let r=je(),s=je();return n.forEach(i=>r=r.add(i)),e.getEntries(t,r).next(i=>{let o=js();return n.forEach((a,l)=>{const c=i.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(s=s.add(a)),l.isNoDocument()&&l.version.isEqual(Re.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||l.version.compareTo(c.version)===0&&c.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):ve("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{ls:o,hs:s}})}function x2(t,e){const n=Pe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function F2(t,e){const n=Pe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let s;return n.Kr.getTargetData(r,e).next(i=>i?(s=i,ce.resolve(s)):n.Kr.allocateTargetId(r).next(o=>(s=new ui(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.Kr.addTargetData(r,s).next(()=>s))))}).then(r=>{const s=n.rs.get(r.targetId);return(s===null||r.snapshotVersion.compareTo(s.snapshotVersion)>0)&&(n.rs=n.rs.insert(r.targetId,r),n.ss.set(e,r.targetId)),r})}async function kg(t,e,n){const r=Pe(t),s=r.rs.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,o=>r.persistence.referenceDelegate.removeTarget(o,s))}catch(o){if(!ru(o))throw o;ve("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.rs=r.rs.remove(e),r.ss.delete(s.target)}function Vw(t,e,n){const r=Pe(t);let s=Re.min(),i=je();return r.persistence.runTransaction("Execute query","readwrite",o=>function(l,c,u){const h=Pe(l),f=h.ss.get(u);return f!==void 0?ce.resolve(h.rs.get(f)):h.Kr.getTargetData(c,u)}(r,o,zr(e)).next(a=>{if(a)return s=a.lastLimboFreeSnapshotVersion,r.Kr.getMatchingKeysForTargetId(o,a.targetId).next(l=>{i=l})}).next(()=>r.ns.getDocumentsMatchingQuery(o,e,n?s:Re.min(),n?i:je())).next(a=>(V2(r,AU(e),a),{documents:a,Ps:i})))}function V2(t,e,n){let r=t.os.get(e)||Re.min();n.forEach((s,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)}),t.os.set(e,r)}class Uw{constructor(){this.activeTargetIds=MU()}Rs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Vs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}As(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class U2{constructor(){this.ro=new Uw,this.io={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.ro.Rs(e),this.io[e]||"not-current"}updateQueryState(e,n,r){this.io[e]=n}removeLocalQueryTarget(e){this.ro.Vs(e)}isLocalQueryTarget(e){return this.ro.activeTargetIds.has(e)}clearQueryState(e){delete this.io[e]}getAllActiveQueryTargets(){return this.ro.activeTargetIds}isActiveQueryTarget(e){return this.ro.activeTargetIds.has(e)}start(){return this.ro=new Uw,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** * @license * Copyright 2019 Google LLC * @@ -1464,7 +1464,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis._o(),this.ao=()=>this.uo(),this.co=[],this.lo()}so(e){this.co.push(e)}shutdown(){window.removeEventListener("online",this.oo),window.removeEventListener("offline",this.ao)}lo(){window.addEventListener("online",this.oo),window.addEventListener("offline",this.ao)}_o(){ve("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.co)e(0)}uo(){ve("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.co)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** + */class jw{constructor(){this.oo=()=>this._o(),this.ao=()=>this.uo(),this.co=[],this.lo()}so(e){this.co.push(e)}shutdown(){window.removeEventListener("online",this.oo),window.removeEventListener("offline",this.ao)}lo(){window.addEventListener("online",this.oo),window.addEventListener("offline",this.ao)}_o(){ve("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.co)e(0)}uo(){ve("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.co)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** * @license * Copyright 2023 Google LLC * @@ -1494,7 +1494,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s(ve("RestConnection",`Received RPC '${n}' ${a}: `,u),u),u=>{throw Ra("RestConnection",`RPC '${n}' ${a} failed with error: `,u,"url: ",l,"request:",s),u})}Fo(n,r,s,i,o,a){return this.bo(n,r,s,i,o)}Co(n,r,s){n["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Za}(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((i,o)=>n[o]=i),s&&s.headers.forEach((i,o)=>n[o]=i)}Do(n,r){const s=j2[n];return`${this.po}/v1/${r}:${s}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}vo(e,n,r,s){const i=em();return new Promise((o,a)=>{const l=new QV;l.setWithCredentials(!0),l.listenOnce(KV.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case Jp.NO_ERROR:const u=l.getResponseJson();ve(ln,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(u)),o(u);break;case Jp.TIMEOUT:ve(ln,`RPC '${e}' ${i} timed out`),a(new _e(ae.DEADLINE_EXCEEDED,"Request time out"));break;case Jp.HTTP_ERROR:const h=l.getStatus();if(ve(ln,`RPC '${e}' ${i} failed with status:`,h,"response text:",l.getResponseText()),h>0){let f=l.getResponseJson();Array.isArray(f)&&(f=f[0]);const v=f==null?void 0:f.error;if(v&&v.status&&v.message){const k=function(T){const g=T.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(g)>=0?g:ae.UNKNOWN}(v.status);a(new _e(k,v.message))}else a(new _e(ae.UNKNOWN,"Server responded with status "+l.getStatus()))}else a(new _e(ae.UNAVAILABLE,"Connection failed."));break;default:Se()}}finally{ve(ln,`RPC '${e}' ${i} completed.`)}});const c=JSON.stringify(s);ve(ln,`RPC '${e}' ${i} sending request:`,s),l.send(n,"POST",c,r,15)})}Mo(e,n,r){const s=em(),i=[this.po,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=YV(),a=qV(),l={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},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(l.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(l.useFetchStreams=!0),this.Co(l.initMessageHeaders,n,r),l.encodeInitMessageHeaders=!0;const u=i.join("");ve(ln,`Creating RPC '${e}' stream ${s}: ${u}`,l);const h=o.createWebChannel(u,l);let f=!1,v=!1;const k=new B2({ho:T=>{v?ve(ln,`Not sending because RPC '${e}' stream ${s} is closed:`,T):(f||(ve(ln,`Opening RPC '${e}' stream ${s} transport.`),h.open(),f=!0),ve(ln,`RPC '${e}' stream ${s} sending:`,T),h.send(T))},Po:()=>h.close()}),I=(T,g,m)=>{T.listen(g,_=>{try{m(_)}catch(d){setTimeout(()=>{throw d},0)}})};return I(h,Xu.EventType.OPEN,()=>{v||ve(ln,`RPC '${e}' stream ${s} transport opened.`)}),I(h,Xu.EventType.CLOSE,()=>{v||(v=!0,ve(ln,`RPC '${e}' stream ${s} transport closed`),k.mo())}),I(h,Xu.EventType.ERROR,T=>{v||(v=!0,Ra(ln,`RPC '${e}' stream ${s} transport errored:`,T),k.mo(new _e(ae.UNAVAILABLE,"The operation could not be completed")))}),I(h,Xu.EventType.MESSAGE,T=>{var g;if(!v){const m=T.data[0];yt(!!m);const _=m,d=_.error||((g=_[0])===null||g===void 0?void 0:g.error);if(d){ve(ln,`RPC '${e}' stream ${s} received error:`,d);const E=d.status;let p=function(A){const S=Lt[A];if(S!==void 0)return WC(S)}(E),y=d.message;p===void 0&&(p=ae.INTERNAL,y="Unknown error status: "+E+" with message "+d.message),v=!0,k.mo(new _e(p,y)),h.close()}else ve(ln,`RPC '${e}' stream ${s} received:`,m),k.fo(m)}}),I(a,zV.STAT_EVENT,T=>{T.stat===pw.PROXY?ve(ln,`RPC '${e}' stream ${s} detected buffering proxy`):T.stat===pw.NOPROXY&&ve(ln,`RPC '${e}' stream ${s} detected no buffering proxy`)}),setTimeout(()=>{k.Vo()},0),k}}function tm(){return typeof document<"u"?document:null}/** + */const ln="WebChannelConnection";class H2 extends class{constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const r=n.ssl?"https":"http",s=encodeURIComponent(this.databaseId.projectId),i=encodeURIComponent(this.databaseId.database);this.po=r+"://"+n.host,this.yo=`projects/${s}/databases/${i}`,this.wo=this.databaseId.database==="(default)"?`project_id=${s}`:`project_id=${s}&database_id=${i}`}get So(){return!1}bo(n,r,s,i,o){const a=em(),l=this.Do(n,r);ve("RestConnection",`Sending RPC '${n}' ${a}:`,l,s);const c={"google-cloud-resource-prefix":this.yo,"x-goog-request-params":this.wo};return this.Co(c,i,o),this.vo(n,l,c,s).then(u=>(ve("RestConnection",`Received RPC '${n}' ${a}: `,u),u),u=>{throw Ra("RestConnection",`RPC '${n}' ${a} failed with error: `,u,"url: ",l,"request:",s),u})}Fo(n,r,s,i,o,a){return this.bo(n,r,s,i,o)}Co(n,r,s){n["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Za}(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((i,o)=>n[o]=i),s&&s.headers.forEach((i,o)=>n[o]=i)}Do(n,r){const s=B2[n];return`${this.po}/v1/${r}:${s}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}vo(e,n,r,s){const i=em();return new Promise((o,a)=>{const l=new XV;l.setWithCredentials(!0),l.listenOnce(zV.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case Jp.NO_ERROR:const u=l.getResponseJson();ve(ln,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(u)),o(u);break;case Jp.TIMEOUT:ve(ln,`RPC '${e}' ${i} timed out`),a(new _e(ae.DEADLINE_EXCEEDED,"Request time out"));break;case Jp.HTTP_ERROR:const h=l.getStatus();if(ve(ln,`RPC '${e}' ${i} failed with status:`,h,"response text:",l.getResponseText()),h>0){let f=l.getResponseJson();Array.isArray(f)&&(f=f[0]);const v=f==null?void 0:f.error;if(v&&v.status&&v.message){const k=function(T){const g=T.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(g)>=0?g:ae.UNKNOWN}(v.status);a(new _e(k,v.message))}else a(new _e(ae.UNKNOWN,"Server responded with status "+l.getStatus()))}else a(new _e(ae.UNAVAILABLE,"Connection failed."));break;default:Se()}}finally{ve(ln,`RPC '${e}' ${i} completed.`)}});const c=JSON.stringify(s);ve(ln,`RPC '${e}' ${i} sending request:`,s),l.send(n,"POST",c,r,15)})}Mo(e,n,r){const s=em(),i=[this.po,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=qV(),a=KV(),l={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},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(l.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(l.useFetchStreams=!0),this.Co(l.initMessageHeaders,n,r),l.encodeInitMessageHeaders=!0;const u=i.join("");ve(ln,`Creating RPC '${e}' stream ${s}: ${u}`,l);const h=o.createWebChannel(u,l);let f=!1,v=!1;const k=new $2({ho:T=>{v?ve(ln,`Not sending because RPC '${e}' stream ${s} is closed:`,T):(f||(ve(ln,`Opening RPC '${e}' stream ${s} transport.`),h.open(),f=!0),ve(ln,`RPC '${e}' stream ${s} sending:`,T),h.send(T))},Po:()=>h.close()}),I=(T,g,m)=>{T.listen(g,_=>{try{m(_)}catch(d){setTimeout(()=>{throw d},0)}})};return I(h,Zu.EventType.OPEN,()=>{v||ve(ln,`RPC '${e}' stream ${s} transport opened.`)}),I(h,Zu.EventType.CLOSE,()=>{v||(v=!0,ve(ln,`RPC '${e}' stream ${s} transport closed`),k.mo())}),I(h,Zu.EventType.ERROR,T=>{v||(v=!0,Ra(ln,`RPC '${e}' stream ${s} transport errored:`,T),k.mo(new _e(ae.UNAVAILABLE,"The operation could not be completed")))}),I(h,Zu.EventType.MESSAGE,T=>{var g;if(!v){const m=T.data[0];yt(!!m);const _=m,d=_.error||((g=_[0])===null||g===void 0?void 0:g.error);if(d){ve(ln,`RPC '${e}' stream ${s} received error:`,d);const E=d.status;let p=function(A){const S=Lt[A];if(S!==void 0)return YC(S)}(E),y=d.message;p===void 0&&(p=ae.INTERNAL,y="Unknown error status: "+E+" with message "+d.message),v=!0,k.mo(new _e(p,y)),h.close()}else ve(ln,`RPC '${e}' stream ${s} received:`,m),k.fo(m)}}),I(a,QV.STAT_EVENT,T=>{T.stat===gw.PROXY?ve(ln,`RPC '${e}' stream ${s} detected buffering proxy`):T.stat===gw.NOPROXY&&ve(ln,`RPC '${e}' stream ${s} detected no buffering proxy`)}),setTimeout(()=>{k.Vo()},0),k}}function tm(){return typeof document<"u"?document:null}/** * @license * Copyright 2020 Google LLC * @@ -1554,7 +1554,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s0&&ve("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.Bo} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.Lo=this._i.enqueueAfterDelay(this.timerId,s,()=>(this.ko=Date.now(),e())),this.Bo*=this.Oo,this.Bothis.No&&(this.Bo=this.No)}$o(){this.Lo!==null&&(this.Lo.skipDelay(),this.Lo=null)}cancel(){this.Lo!==null&&(this.Lo.cancel(),this.Lo=null)}Ko(){return(Math.random()-.5)*this.Bo}}/** + */class rR{constructor(e,n,r=1e3,s=1.5,i=6e4){this._i=e,this.timerId=n,this.xo=r,this.Oo=s,this.No=i,this.Bo=0,this.Lo=null,this.ko=Date.now(),this.reset()}reset(){this.Bo=0}qo(){this.Bo=this.No}Qo(e){this.cancel();const n=Math.floor(this.Bo+this.Ko()),r=Math.max(0,Date.now()-this.ko),s=Math.max(0,n-r);s>0&&ve("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.Bo} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.Lo=this._i.enqueueAfterDelay(this.timerId,s,()=>(this.ko=Date.now(),e())),this.Bo*=this.Oo,this.Bothis.No&&(this.Bo=this.No)}$o(){this.Lo!==null&&(this.Lo.skipDelay(),this.Lo=null)}cancel(){this.Lo!==null&&(this.Lo.cancel(),this.Lo=null)}Ko(){return(Math.random()-.5)*this.Bo}}/** * @license * Copyright 2017 Google LLC * @@ -1584,7 +1584,7 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis.t_()))}n_(e){this.r_(),this.stream.send(e)}async t_(){if(this.Yo())return this.close(0)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}i_(){this.jo&&(this.jo.cancel(),this.jo=null)}async close(e,n){this.r_(),this.i_(),this.Ho.cancel(),this.Go++,e!==4?this.Ho.reset():n&&n.code===ae.RESOURCE_EXHAUSTED?(Vs(n.toString()),Vs("Using maximum backoff delay to prevent overloading the backend."),this.Ho.qo()):n&&n.code===ae.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.s_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Eo(n)}s_(){}auth(){this.state=1;const e=this.o_(this.Go),n=this.Go;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,s])=>{this.Go===n&&this.__(r,s)},r=>{e(()=>{const s=new _e(ae.UNKNOWN,"Fetching auth token failed: "+r.message);return this.a_(s)})})}__(e,n){const r=this.o_(this.Go);this.stream=this.u_(e,n),this.stream.Io(()=>{r(()=>(this.state=2,this.jo=this._i.enqueueAfterDelay(this.Wo,1e4,()=>(this.Yo()&&(this.state=3),Promise.resolve())),this.listener.Io()))}),this.stream.Eo(s=>{r(()=>this.a_(s))}),this.stream.onMessage(s=>{r(()=>this.onMessage(s))})}Zo(){this.state=5,this.Ho.Qo(async()=>{this.state=0,this.start()})}a_(e){return ve("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}o_(e){return n=>{this._i.enqueueAndForget(()=>this.Go===e?n():(ve("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class H2 extends nR{constructor(e,n,r,s,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}u_(e,n){return this.connection.Mo("Listen",e,n)}onMessage(e){this.Ho.reset();const n=n2(this.serializer,e),r=function(i){if(!("targetChange"in i))return Re.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?Re.min():o.readTime?Qr(o.readTime):Re.min()}(e);return this.listener.c_(n,r)}l_(e){const n={};n.database=Ig(this.serializer),n.addTarget=function(i,o){let a;const l=o.target;if(a=yg(l)?{documents:i2(i,l)}:{query:o2(i,l)},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=qC(i,o.resumeToken);const c=wg(i,o.expectedCount);c!==null&&(a.expectedCount=c)}else if(o.snapshotVersion.compareTo(Re.min())>0){a.readTime=hf(i,o.snapshotVersion.toTimestamp());const c=wg(i,o.expectedCount);c!==null&&(a.expectedCount=c)}return a}(this.serializer,e);const r=l2(this.serializer,e);r&&(n.labels=r),this.n_(n)}h_(e){const n={};n.database=Ig(this.serializer),n.removeTarget=e,this.n_(n)}}class W2 extends nR{constructor(e,n,r,s,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i,this.P_=!1}get I_(){return this.P_}start(){this.P_=!1,this.lastStreamToken=void 0,super.start()}s_(){this.P_&&this.d_([])}u_(e,n){return this.connection.Mo("Write",e,n)}onMessage(e){if(yt(!!e.streamToken),this.lastStreamToken=e.streamToken,this.P_){this.Ho.reset();const n=s2(e.writeResults,e.commitTime),r=Qr(e.commitTime);return this.listener.T_(r,n)}return yt(!e.writeResults||e.writeResults.length===0),this.P_=!0,this.listener.E_()}A_(){const e={};e.database=Ig(this.serializer),this.n_(e)}d_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>r2(this.serializer,r))};this.n_(n)}}/** + */class sR{constructor(e,n,r,s,i,o,a,l){this._i=e,this.Uo=r,this.Wo=s,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.Go=0,this.zo=null,this.jo=null,this.stream=null,this.Ho=new rR(e,n)}Jo(){return this.state===1||this.state===5||this.Yo()}Yo(){return this.state===2||this.state===3}start(){this.state!==4?this.auth():this.Zo()}async stop(){this.Jo()&&await this.close(0)}Xo(){this.state=0,this.Ho.reset()}e_(){this.Yo()&&this.zo===null&&(this.zo=this._i.enqueueAfterDelay(this.Uo,6e4,()=>this.t_()))}n_(e){this.r_(),this.stream.send(e)}async t_(){if(this.Yo())return this.close(0)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}i_(){this.jo&&(this.jo.cancel(),this.jo=null)}async close(e,n){this.r_(),this.i_(),this.Ho.cancel(),this.Go++,e!==4?this.Ho.reset():n&&n.code===ae.RESOURCE_EXHAUSTED?(Us(n.toString()),Us("Using maximum backoff delay to prevent overloading the backend."),this.Ho.qo()):n&&n.code===ae.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.s_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Eo(n)}s_(){}auth(){this.state=1;const e=this.o_(this.Go),n=this.Go;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,s])=>{this.Go===n&&this.__(r,s)},r=>{e(()=>{const s=new _e(ae.UNKNOWN,"Fetching auth token failed: "+r.message);return this.a_(s)})})}__(e,n){const r=this.o_(this.Go);this.stream=this.u_(e,n),this.stream.Io(()=>{r(()=>(this.state=2,this.jo=this._i.enqueueAfterDelay(this.Wo,1e4,()=>(this.Yo()&&(this.state=3),Promise.resolve())),this.listener.Io()))}),this.stream.Eo(s=>{r(()=>this.a_(s))}),this.stream.onMessage(s=>{r(()=>this.onMessage(s))})}Zo(){this.state=5,this.Ho.Qo(async()=>{this.state=0,this.start()})}a_(e){return ve("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}o_(e){return n=>{this._i.enqueueAndForget(()=>this.Go===e?n():(ve("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class W2 extends sR{constructor(e,n,r,s,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}u_(e,n){return this.connection.Mo("Listen",e,n)}onMessage(e){this.Ho.reset();const n=r2(this.serializer,e),r=function(i){if(!("targetChange"in i))return Re.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?Re.min():o.readTime?Qr(o.readTime):Re.min()}(e);return this.listener.c_(n,r)}l_(e){const n={};n.database=Ig(this.serializer),n.addTarget=function(i,o){let a;const l=o.target;if(a=yg(l)?{documents:o2(i,l)}:{query:a2(i,l)},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=zC(i,o.resumeToken);const c=wg(i,o.expectedCount);c!==null&&(a.expectedCount=c)}else if(o.snapshotVersion.compareTo(Re.min())>0){a.readTime=df(i,o.snapshotVersion.toTimestamp());const c=wg(i,o.expectedCount);c!==null&&(a.expectedCount=c)}return a}(this.serializer,e);const r=c2(this.serializer,e);r&&(n.labels=r),this.n_(n)}h_(e){const n={};n.database=Ig(this.serializer),n.removeTarget=e,this.n_(n)}}class G2 extends sR{constructor(e,n,r,s,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i,this.P_=!1}get I_(){return this.P_}start(){this.P_=!1,this.lastStreamToken=void 0,super.start()}s_(){this.P_&&this.d_([])}u_(e,n){return this.connection.Mo("Write",e,n)}onMessage(e){if(yt(!!e.streamToken),this.lastStreamToken=e.streamToken,this.P_){this.Ho.reset();const n=i2(e.writeResults,e.commitTime),r=Qr(e.commitTime);return this.listener.T_(r,n)}return yt(!e.writeResults||e.writeResults.length===0),this.P_=!0,this.listener.E_()}A_(){const e={};e.database=Ig(this.serializer),this.n_(e)}d_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>s2(this.serializer,r))};this.n_(n)}}/** * @license * Copyright 2017 Google LLC * @@ -1599,8 +1599,8 @@ function $_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;sthis.connection.bo(e,n,r,s,i)).catch(s=>{throw s.name==="FirebaseError"?(s.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new _e(ae.UNKNOWN,s.toString())})}Fo(e,n,r,s){return this.V_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.Fo(e,n,r,i,o,s)).catch(i=>{throw i.name==="FirebaseError"?(i.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new _e(ae.UNKNOWN,i.toString())})}terminate(){this.R_=!0}}class Y2{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.f_=0,this.g_=null,this.p_=!0}y_(){this.f_===0&&(this.w_("Unknown"),this.g_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.g_=null,this.S_("Backend didn't respond within 10 seconds."),this.w_("Offline"),Promise.resolve())))}b_(e){this.state==="Online"?this.w_("Unknown"):(this.f_++,this.f_>=1&&(this.D_(),this.S_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.w_("Offline")))}set(e){this.D_(),this.f_=0,e==="Online"&&(this.p_=!1),this.w_(e)}w_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}S_(e){const n=`Could not reach Cloud Firestore backend. ${e} -This 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.p_?(Vs(n),this.p_=!1):ve("OnlineStateTracker",n)}D_(){this.g_!==null&&(this.g_.cancel(),this.g_=null)}}/** + */class Y2 extends class{}{constructor(e,n,r,s){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=s,this.R_=!1}V_(){if(this.R_)throw new _e(ae.FAILED_PRECONDITION,"The client has already been terminated.")}bo(e,n,r){return this.V_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,i])=>this.connection.bo(e,n,r,s,i)).catch(s=>{throw s.name==="FirebaseError"?(s.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new _e(ae.UNKNOWN,s.toString())})}Fo(e,n,r,s){return this.V_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.Fo(e,n,r,i,o,s)).catch(i=>{throw i.name==="FirebaseError"?(i.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new _e(ae.UNKNOWN,i.toString())})}terminate(){this.R_=!0}}class q2{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.f_=0,this.g_=null,this.p_=!0}y_(){this.f_===0&&(this.w_("Unknown"),this.g_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.g_=null,this.S_("Backend didn't respond within 10 seconds."),this.w_("Offline"),Promise.resolve())))}b_(e){this.state==="Online"?this.w_("Unknown"):(this.f_++,this.f_>=1&&(this.D_(),this.S_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.w_("Offline")))}set(e){this.D_(),this.f_=0,e==="Online"&&(this.p_=!1),this.w_(e)}w_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}S_(e){const n=`Could not reach Cloud Firestore backend. ${e} +This 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.p_?(Us(n),this.p_=!1):ve("OnlineStateTracker",n)}D_(){this.g_!==null&&(this.g_.cancel(),this.g_=null)}}/** * @license * Copyright 2017 Google LLC * @@ -1615,7 +1615,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class q2{constructor(e,n,r,s,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.C_=[],this.v_=new Map,this.F_=new Set,this.M_=[],this.x_=i,this.x_.so(o=>{r.enqueueAndForget(async()=>{Po(this)&&(ve("RemoteStore","Restarting streams for network reachability change."),await async function(l){const c=Pe(l);c.F_.add(4),await au(c),c.O_.set("Unknown"),c.F_.delete(4),await jd(c)}(this))})}),this.O_=new Y2(r,s)}}async function jd(t){if(Po(t))for(const e of t.M_)await e(!0)}async function au(t){for(const e of t.M_)await e(!1)}function rR(t,e){const n=Pe(t);n.v_.has(e.targetId)||(n.v_.set(e.targetId,e),hv(n)?uv(n):tl(n).Yo()&&cv(n,e))}function sR(t,e){const n=Pe(t),r=tl(n);n.v_.delete(e),r.Yo()&&iR(n,e),n.v_.size===0&&(r.Yo()?r.e_():Po(n)&&n.O_.set("Unknown"))}function cv(t,e){if(t.N_.Le(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Re.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}tl(t).l_(e)}function iR(t,e){t.N_.Le(e),tl(t).h_(e)}function uv(t){t.N_=new zU({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),lt:e=>t.v_.get(e)||null,st:()=>t.datastore.serializer.databaseId}),tl(t).start(),t.O_.y_()}function hv(t){return Po(t)&&!tl(t).Jo()&&t.v_.size>0}function Po(t){return Pe(t).F_.size===0}function oR(t){t.N_=void 0}async function K2(t){t.v_.forEach((e,n)=>{cv(t,e)})}async function z2(t,e){oR(t),hv(t)?(t.O_.b_(e),uv(t)):t.O_.set("Unknown")}async function Q2(t,e,n){if(t.O_.set("Online"),e instanceof YC&&e.state===2&&e.cause)try{await async function(s,i){const o=i.cause;for(const a of i.targetIds)s.v_.has(a)&&(await s.remoteSyncer.rejectListen(a,o),s.v_.delete(a),s.N_.removeTarget(a))}(t,e)}catch(r){ve("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await ff(t,r)}else if(e instanceof vh?t.N_.Ge(e):e instanceof GC?t.N_.Xe(e):t.N_.He(e),!n.isEqual(Re.min()))try{const r=await eR(t.localStore);n.compareTo(r)>=0&&await function(i,o){const a=i.N_._t(o);return a.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){const u=i.v_.get(c);u&&i.v_.set(c,u.withResumeToken(l.resumeToken,o))}}),a.targetMismatches.forEach((l,c)=>{const u=i.v_.get(l);if(!u)return;i.v_.set(l,u.withResumeToken(bn.EMPTY_BYTE_STRING,u.snapshotVersion)),iR(i,l);const h=new ui(u.target,l,c,u.sequenceNumber);cv(i,h)}),i.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){ve("RemoteStore","Failed to raise snapshot:",r),await ff(t,r)}}async function ff(t,e,n){if(!ru(e))throw e;t.F_.add(1),await au(t),t.O_.set("Offline"),n||(n=()=>eR(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{ve("RemoteStore","Retrying IndexedDB access"),await n(),t.F_.delete(1),await jd(t)})}function aR(t,e){return e().catch(n=>ff(t,n,e))}async function Bd(t){const e=Pe(t),n=Ai(e);let r=e.C_.length>0?e.C_[e.C_.length-1].batchId:-1;for(;X2(e);)try{const s=await x2(e.localStore,r);if(s===null){e.C_.length===0&&n.e_();break}r=s.batchId,J2(e,s)}catch(s){await ff(e,s)}lR(e)&&cR(e)}function X2(t){return Po(t)&&t.C_.length<10}function J2(t,e){t.C_.push(e);const n=Ai(t);n.Yo()&&n.I_&&n.d_(e.mutations)}function lR(t){return Po(t)&&!Ai(t).Jo()&&t.C_.length>0}function cR(t){Ai(t).start()}async function Z2(t){Ai(t).A_()}async function ej(t){const e=Ai(t);for(const n of t.C_)e.d_(n.mutations)}async function tj(t,e,n){const r=t.C_.shift(),s=rv.from(r,e,n);await aR(t,()=>t.remoteSyncer.applySuccessfulWrite(s)),await Bd(t)}async function nj(t,e){e&&Ai(t).I_&&await async function(r,s){if(function(o){return YU(o)&&o!==ae.ABORTED}(s.code)){const i=r.C_.shift();Ai(r).Xo(),await aR(r,()=>r.remoteSyncer.rejectFailedWrite(i.batchId,s)),await Bd(r)}}(t,e),lR(t)&&cR(t)}async function Uw(t,e){const n=Pe(t);n.asyncQueue.verifyOperationInProgress(),ve("RemoteStore","RemoteStore received new credentials");const r=Po(n);n.F_.add(3),await au(n),r&&n.O_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.F_.delete(3),await jd(n)}async function rj(t,e){const n=Pe(t);e?(n.F_.delete(2),await jd(n)):e||(n.F_.add(2),await au(n),n.O_.set("Unknown"))}function tl(t){return t.B_||(t.B_=function(n,r,s){const i=Pe(n);return i.V_(),new H2(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{Io:K2.bind(null,t),Eo:z2.bind(null,t),c_:Q2.bind(null,t)}),t.M_.push(async e=>{e?(t.B_.Xo(),hv(t)?uv(t):t.O_.set("Unknown")):(await t.B_.stop(),oR(t))})),t.B_}function Ai(t){return t.L_||(t.L_=function(n,r,s){const i=Pe(n);return i.V_(),new W2(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{Io:Z2.bind(null,t),Eo:nj.bind(null,t),E_:ej.bind(null,t),T_:tj.bind(null,t)}),t.M_.push(async e=>{e?(t.L_.Xo(),await Bd(t)):(await t.L_.stop(),t.C_.length>0&&(ve("RemoteStore",`Stopping write stream with ${t.C_.length} pending writes`),t.C_=[]))})),t.L_}/** + */class K2{constructor(e,n,r,s,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.C_=[],this.v_=new Map,this.F_=new Set,this.M_=[],this.x_=i,this.x_.so(o=>{r.enqueueAndForget(async()=>{Po(this)&&(ve("RemoteStore","Restarting streams for network reachability change."),await async function(l){const c=Pe(l);c.F_.add(4),await au(c),c.O_.set("Unknown"),c.F_.delete(4),await $d(c)}(this))})}),this.O_=new q2(r,s)}}async function $d(t){if(Po(t))for(const e of t.M_)await e(!0)}async function au(t){for(const e of t.M_)await e(!1)}function iR(t,e){const n=Pe(t);n.v_.has(e.targetId)||(n.v_.set(e.targetId,e),hv(n)?uv(n):tl(n).Yo()&&cv(n,e))}function oR(t,e){const n=Pe(t),r=tl(n);n.v_.delete(e),r.Yo()&&aR(n,e),n.v_.size===0&&(r.Yo()?r.e_():Po(n)&&n.O_.set("Unknown"))}function cv(t,e){if(t.N_.Le(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Re.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}tl(t).l_(e)}function aR(t,e){t.N_.Le(e),tl(t).h_(e)}function uv(t){t.N_=new QU({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),lt:e=>t.v_.get(e)||null,st:()=>t.datastore.serializer.databaseId}),tl(t).start(),t.O_.y_()}function hv(t){return Po(t)&&!tl(t).Jo()&&t.v_.size>0}function Po(t){return Pe(t).F_.size===0}function lR(t){t.N_=void 0}async function z2(t){t.v_.forEach((e,n)=>{cv(t,e)})}async function Q2(t,e){lR(t),hv(t)?(t.O_.b_(e),uv(t)):t.O_.set("Unknown")}async function X2(t,e,n){if(t.O_.set("Online"),e instanceof KC&&e.state===2&&e.cause)try{await async function(s,i){const o=i.cause;for(const a of i.targetIds)s.v_.has(a)&&(await s.remoteSyncer.rejectListen(a,o),s.v_.delete(a),s.N_.removeTarget(a))}(t,e)}catch(r){ve("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await pf(t,r)}else if(e instanceof wh?t.N_.Ge(e):e instanceof qC?t.N_.Xe(e):t.N_.He(e),!n.isEqual(Re.min()))try{const r=await nR(t.localStore);n.compareTo(r)>=0&&await function(i,o){const a=i.N_._t(o);return a.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){const u=i.v_.get(c);u&&i.v_.set(c,u.withResumeToken(l.resumeToken,o))}}),a.targetMismatches.forEach((l,c)=>{const u=i.v_.get(l);if(!u)return;i.v_.set(l,u.withResumeToken(In.EMPTY_BYTE_STRING,u.snapshotVersion)),aR(i,l);const h=new ui(u.target,l,c,u.sequenceNumber);cv(i,h)}),i.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){ve("RemoteStore","Failed to raise snapshot:",r),await pf(t,r)}}async function pf(t,e,n){if(!ru(e))throw e;t.F_.add(1),await au(t),t.O_.set("Offline"),n||(n=()=>nR(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{ve("RemoteStore","Retrying IndexedDB access"),await n(),t.F_.delete(1),await $d(t)})}function cR(t,e){return e().catch(n=>pf(t,n,e))}async function Hd(t){const e=Pe(t),n=Ai(e);let r=e.C_.length>0?e.C_[e.C_.length-1].batchId:-1;for(;J2(e);)try{const s=await x2(e.localStore,r);if(s===null){e.C_.length===0&&n.e_();break}r=s.batchId,Z2(e,s)}catch(s){await pf(e,s)}uR(e)&&hR(e)}function J2(t){return Po(t)&&t.C_.length<10}function Z2(t,e){t.C_.push(e);const n=Ai(t);n.Yo()&&n.I_&&n.d_(e.mutations)}function uR(t){return Po(t)&&!Ai(t).Jo()&&t.C_.length>0}function hR(t){Ai(t).start()}async function ej(t){Ai(t).A_()}async function tj(t){const e=Ai(t);for(const n of t.C_)e.d_(n.mutations)}async function nj(t,e,n){const r=t.C_.shift(),s=rv.from(r,e,n);await cR(t,()=>t.remoteSyncer.applySuccessfulWrite(s)),await Hd(t)}async function rj(t,e){e&&Ai(t).I_&&await async function(r,s){if(function(o){return qU(o)&&o!==ae.ABORTED}(s.code)){const i=r.C_.shift();Ai(r).Xo(),await cR(r,()=>r.remoteSyncer.rejectFailedWrite(i.batchId,s)),await Hd(r)}}(t,e),uR(t)&&hR(t)}async function Bw(t,e){const n=Pe(t);n.asyncQueue.verifyOperationInProgress(),ve("RemoteStore","RemoteStore received new credentials");const r=Po(n);n.F_.add(3),await au(n),r&&n.O_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.F_.delete(3),await $d(n)}async function sj(t,e){const n=Pe(t);e?(n.F_.delete(2),await $d(n)):e||(n.F_.add(2),await au(n),n.O_.set("Unknown"))}function tl(t){return t.B_||(t.B_=function(n,r,s){const i=Pe(n);return i.V_(),new W2(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{Io:z2.bind(null,t),Eo:Q2.bind(null,t),c_:X2.bind(null,t)}),t.M_.push(async e=>{e?(t.B_.Xo(),hv(t)?uv(t):t.O_.set("Unknown")):(await t.B_.stop(),lR(t))})),t.B_}function Ai(t){return t.L_||(t.L_=function(n,r,s){const i=Pe(n);return i.V_(),new G2(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{Io:ej.bind(null,t),Eo:rj.bind(null,t),E_:tj.bind(null,t),T_:nj.bind(null,t)}),t.M_.push(async e=>{e?(t.L_.Xo(),await Hd(t)):(await t.L_.stop(),t.C_.length>0&&(ve("RemoteStore",`Stopping write stream with ${t.C_.length} pending writes`),t.C_=[]))})),t.L_}/** * @license * Copyright 2017 Google LLC * @@ -1630,7 +1630,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class fv{constructor(e,n,r,s,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=i,this.deferred=new Os,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,i){const o=Date.now()+r,a=new fv(e,n,o,s,i);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new _e(ae.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function dv(t,e){if(Vs("AsyncQueue",`${e}: ${t}`),ru(t))return new _e(ae.UNAVAILABLE,`${e}: ${t}`);throw t}/** + */class fv{constructor(e,n,r,s,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=i,this.deferred=new Ns,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,i){const o=Date.now()+r,a=new fv(e,n,o,s,i);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new _e(ae.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function dv(t,e){if(Us("AsyncQueue",`${e}: ${t}`),ru(t))return new _e(ae.UNAVAILABLE,`${e}: ${t}`);throw t}/** * @license * Copyright 2017 Google LLC * @@ -1663,7 +1663,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class jw{constructor(){this.k_=new $t(Ie.comparator)}track(e){const n=e.doc.key,r=this.k_.get(n);r?e.type!==0&&r.type===3?this.k_=this.k_.insert(n,e):e.type===3&&r.type!==1?this.k_=this.k_.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.k_=this.k_.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.k_=this.k_.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.k_=this.k_.remove(n):e.type===1&&r.type===2?this.k_=this.k_.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.k_=this.k_.insert(n,{type:2,doc:e.doc}):Se():this.k_=this.k_.insert(n,e)}q_(){const e=[];return this.k_.inorderTraversal((n,r)=>{e.push(r)}),e}}class Da{constructor(e,n,r,s,i,o,a,l,c){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=s,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,n,r,s,i){const o=[];return n.forEach(a=>{o.push({type:0,doc:a})}),new Da(e,n,da.emptySet(n),o,r,s,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Dd(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let s=0;s{e.push(r)}),e}}class Da{constructor(e,n,r,s,i,o,a,l,c){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=s,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,n,r,s,i){const o=[];return n.forEach(a=>{o.push({type:0,doc:a})}),new Da(e,n,da.emptySet(n),o,r,s,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Md(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let s=0;sOC(e),Dd),this.onlineState="Unknown",this.K_=new Set}}async function pv(t,e){const n=Pe(t),r=e.query;let s=!1,i=n.queries.get(r);if(i||(s=!0,i=new sj),s)try{i.Q_=await n.onListen(r)}catch(o){const a=dv(o,`Initialization of query '${qo(e.query)}' failed`);return void e.onError(a)}n.queries.set(r,i),i.listeners.push(e),e.U_(n.onlineState),i.Q_&&e.W_(i.Q_)&&gv(n)}async function mv(t,e){const n=Pe(t),r=e.query;let s=!1;const i=n.queries.get(r);if(i){const o=i.listeners.indexOf(e);o>=0&&(i.listeners.splice(o,1),s=i.listeners.length===0)}if(s)return n.queries.delete(r),n.onUnlisten(r)}function oj(t,e){const n=Pe(t);let r=!1;for(const s of e){const i=s.query,o=n.queries.get(i);if(o){for(const a of o.listeners)a.W_(s)&&(r=!0);o.Q_=s}}r&&gv(n)}function aj(t,e,n){const r=Pe(t),s=r.queries.get(e);if(s)for(const i of s.listeners)i.onError(n);r.queries.delete(e)}function gv(t){t.K_.forEach(e=>{e.next()})}class _v{constructor(e,n,r){this.query=e,this.G_=n,this.z_=!1,this.j_=null,this.onlineState="Unknown",this.options=r||{}}W_(e){if(!this.options.includeMetadataChanges){const r=[];for(const s of e.docChanges)s.type!==3&&r.push(s);e=new Da(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.z_?this.H_(e)&&(this.G_.next(e),n=!0):this.J_(e,this.onlineState)&&(this.Y_(e),n=!0),this.j_=e,n}onError(e){this.G_.error(e)}U_(e){this.onlineState=e;let n=!1;return this.j_&&!this.z_&&this.J_(this.j_,e)&&(this.Y_(this.j_),n=!0),n}J_(e,n){if(!e.fromCache)return!0;const r=n!=="Offline";return(!this.options.Z_||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}H_(e){if(e.docChanges.length>0)return!0;const n=this.j_&&this.j_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}Y_(e){e=Da.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.z_=!0,this.G_.next(e)}}/** + */class ij{constructor(){this.Q_=void 0,this.listeners=[]}}class oj{constructor(){this.queries=new el(e=>DC(e),Md),this.onlineState="Unknown",this.K_=new Set}}async function pv(t,e){const n=Pe(t),r=e.query;let s=!1,i=n.queries.get(r);if(i||(s=!0,i=new ij),s)try{i.Q_=await n.onListen(r)}catch(o){const a=dv(o,`Initialization of query '${qo(e.query)}' failed`);return void e.onError(a)}n.queries.set(r,i),i.listeners.push(e),e.U_(n.onlineState),i.Q_&&e.W_(i.Q_)&&gv(n)}async function mv(t,e){const n=Pe(t),r=e.query;let s=!1;const i=n.queries.get(r);if(i){const o=i.listeners.indexOf(e);o>=0&&(i.listeners.splice(o,1),s=i.listeners.length===0)}if(s)return n.queries.delete(r),n.onUnlisten(r)}function aj(t,e){const n=Pe(t);let r=!1;for(const s of e){const i=s.query,o=n.queries.get(i);if(o){for(const a of o.listeners)a.W_(s)&&(r=!0);o.Q_=s}}r&&gv(n)}function lj(t,e,n){const r=Pe(t),s=r.queries.get(e);if(s)for(const i of s.listeners)i.onError(n);r.queries.delete(e)}function gv(t){t.K_.forEach(e=>{e.next()})}class _v{constructor(e,n,r){this.query=e,this.G_=n,this.z_=!1,this.j_=null,this.onlineState="Unknown",this.options=r||{}}W_(e){if(!this.options.includeMetadataChanges){const r=[];for(const s of e.docChanges)s.type!==3&&r.push(s);e=new Da(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.z_?this.H_(e)&&(this.G_.next(e),n=!0):this.J_(e,this.onlineState)&&(this.Y_(e),n=!0),this.j_=e,n}onError(e){this.G_.error(e)}U_(e){this.onlineState=e;let n=!1;return this.j_&&!this.z_&&this.J_(this.j_,e)&&(this.Y_(this.j_),n=!0),n}J_(e,n){if(!e.fromCache)return!0;const r=n!=="Offline";return(!this.options.Z_||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}H_(e){if(e.docChanges.length>0)return!0;const n=this.j_&&this.j_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}Y_(e){e=Da.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.z_=!0,this.G_.next(e)}}/** * @license * Copyright 2017 Google LLC * @@ -1693,7 +1693,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class uR{constructor(e){this.key=e}}class hR{constructor(e){this.key=e}}class lj{constructor(e,n){this.query=e,this.oa=n,this._a=null,this.hasCachedResults=!1,this.current=!1,this.aa=je(),this.mutatedKeys=je(),this.ua=NC(e),this.ca=new da(this.ua)}get la(){return this.oa}ha(e,n){const r=n?n.Pa:new jw,s=n?n.ca:this.ca;let i=n?n.mutatedKeys:this.mutatedKeys,o=s,a=!1;const l=this.query.limitType==="F"&&s.size===this.query.limit?s.last():null,c=this.query.limitType==="L"&&s.size===this.query.limit?s.first():null;if(e.inorderTraversal((u,h)=>{const f=s.get(u),v=Ld(this.query,h)?h:null,k=!!f&&this.mutatedKeys.has(f.key),I=!!v&&(v.hasLocalMutations||this.mutatedKeys.has(v.key)&&v.hasCommittedMutations);let T=!1;f&&v?f.data.isEqual(v.data)?k!==I&&(r.track({type:3,doc:v}),T=!0):this.Ia(f,v)||(r.track({type:2,doc:v}),T=!0,(l&&this.ua(v,l)>0||c&&this.ua(v,c)<0)&&(a=!0)):!f&&v?(r.track({type:0,doc:v}),T=!0):f&&!v&&(r.track({type:1,doc:f}),T=!0,(l||c)&&(a=!0)),T&&(v?(o=o.add(v),i=I?i.add(u):i.delete(u)):(o=o.delete(u),i=i.delete(u)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const u=this.query.limitType==="F"?o.last():o.first();o=o.delete(u.key),i=i.delete(u.key),r.track({type:1,doc:u})}return{ca:o,Pa:r,es:a,mutatedKeys:i}}Ia(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r){const s=this.ca;this.ca=e.ca,this.mutatedKeys=e.mutatedKeys;const i=e.Pa.q_();i.sort((c,u)=>function(f,v){const k=I=>{switch(I){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Se()}};return k(f)-k(v)}(c.type,u.type)||this.ua(c.doc,u.doc)),this.da(r);const o=n?this.Ta():[],a=this.aa.size===0&&this.current?1:0,l=a!==this._a;return this._a=a,i.length!==0||l?{snapshot:new Da(this.query,e.ca,s,i,e.mutatedKeys,a===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ea:o}:{Ea:o}}U_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({ca:this.ca,Pa:new jw,mutatedKeys:this.mutatedKeys,es:!1},!1)):{Ea:[]}}Aa(e){return!this.oa.has(e)&&!!this.ca.has(e)&&!this.ca.get(e).hasLocalMutations}da(e){e&&(e.addedDocuments.forEach(n=>this.oa=this.oa.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.oa=this.oa.delete(n)),this.current=e.current)}Ta(){if(!this.current)return[];const e=this.aa;this.aa=je(),this.ca.forEach(r=>{this.Aa(r.key)&&(this.aa=this.aa.add(r.key))});const n=[];return e.forEach(r=>{this.aa.has(r)||n.push(new hR(r))}),this.aa.forEach(r=>{e.has(r)||n.push(new uR(r))}),n}Ra(e){this.oa=e.Ps,this.aa=je();const n=this.ha(e.documents);return this.applyChanges(n,!0)}Va(){return Da.fromInitialDocuments(this.query,this.ca,this.mutatedKeys,this._a===0,this.hasCachedResults)}}class cj{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class uj{constructor(e){this.key=e,this.ma=!1}}class hj{constructor(e,n,r,s,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.fa={},this.ga=new el(a=>OC(a),Dd),this.pa=new Map,this.ya=new Set,this.wa=new $t(Ie.comparator),this.Sa=new Map,this.ba=new ov,this.Da={},this.Ca=new Map,this.va=Na.Ln(),this.onlineState="Unknown",this.Fa=void 0}get isPrimaryClient(){return this.Fa===!0}}async function fj(t,e){const n=Tj(t);let r,s;const i=n.ga.get(e);if(i)r=i.targetId,n.sharedClientState.addLocalQueryTarget(r),s=i.view.Va();else{const o=await M2(n.localStore,zr(e)),a=n.sharedClientState.addLocalQueryTarget(o.targetId);r=o.targetId,s=await dj(n,e,r,a==="current",o.resumeToken),n.isPrimaryClient&&rR(n.remoteStore,o)}return s}async function dj(t,e,n,r,s){t.Ma=(h,f,v)=>async function(I,T,g,m){let _=T.view.ha(g);_.es&&(_=await Mw(I.localStore,T.query,!1).then(({documents:p})=>T.view.ha(p,_)));const d=m&&m.targetChanges.get(T.targetId),E=T.view.applyChanges(_,I.isPrimaryClient,d);return $w(I,T.targetId,E.Ea),E.snapshot}(t,h,f,v);const i=await Mw(t.localStore,e,!0),o=new lj(e,i.Ps),a=o.ha(i.documents),l=ou.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",s),c=o.applyChanges(a,t.isPrimaryClient,l);$w(t,n,c.Ea);const u=new cj(e,n,o);return t.ga.set(e,u),t.pa.has(n)?t.pa.get(n).push(e):t.pa.set(n,[e]),c.snapshot}async function pj(t,e){const n=Pe(t),r=n.ga.get(e),s=n.pa.get(r.targetId);if(s.length>1)return n.pa.set(r.targetId,s.filter(i=>!Dd(i,e))),void n.ga.delete(e);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await kg(n.localStore,r.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(r.targetId),sR(n.remoteStore,r.targetId),Sg(n,r.targetId)}).catch(nu)):(Sg(n,r.targetId),await kg(n.localStore,r.targetId,!0))}async function mj(t,e,n){const r=bj(t);try{const s=await function(o,a){const l=Pe(o),c=Dt.now(),u=a.reduce((v,k)=>v.add(k.key),je());let h,f;return l.persistence.runTransaction("Locally write mutations","readwrite",v=>{let k=Us(),I=je();return l._s.getEntries(v,u).next(T=>{k=T,k.forEach((g,m)=>{m.isValidDocument()||(I=I.add(g))})}).next(()=>l.localDocuments.getOverlayedDocuments(v,k)).next(T=>{h=T;const g=[];for(const m of a){const _=BU(m,h.get(m.key).overlayedDocument);_!=null&&g.push(new Mi(m.key,_,TC(_.value.mapValue),Bn.exists(!0)))}return l.mutationQueue.addMutationBatch(v,c,g,a)}).next(T=>{f=T;const g=T.applyToLocalDocumentSet(h,I);return l.documentOverlayCache.saveOverlays(v,T.batchId,g)})}).then(()=>({batchId:f.batchId,changes:LC(h)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),function(o,a,l){let c=o.Da[o.currentUser.toKey()];c||(c=new $t(Je)),c=c.insert(a,l),o.Da[o.currentUser.toKey()]=c}(r,s.batchId,n),await lu(r,s.changes),await Bd(r.remoteStore)}catch(s){const i=dv(s,"Failed to persist write");n.reject(i)}}async function fR(t,e){const n=Pe(t);try{const r=await D2(n.localStore,e);e.targetChanges.forEach((s,i)=>{const o=n.Sa.get(i);o&&(yt(s.addedDocuments.size+s.modifiedDocuments.size+s.removedDocuments.size<=1),s.addedDocuments.size>0?o.ma=!0:s.modifiedDocuments.size>0?yt(o.ma):s.removedDocuments.size>0&&(yt(o.ma),o.ma=!1))}),await lu(n,r,e)}catch(r){await nu(r)}}function Bw(t,e,n){const r=Pe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.ga.forEach((i,o)=>{const a=o.view.U_(e);a.snapshot&&s.push(a.snapshot)}),function(o,a){const l=Pe(o);l.onlineState=a;let c=!1;l.queries.forEach((u,h)=>{for(const f of h.listeners)f.U_(a)&&(c=!0)}),c&&gv(l)}(r.eventManager,e),s.length&&r.fa.c_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function gj(t,e,n){const r=Pe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const s=r.Sa.get(e),i=s&&s.key;if(i){let o=new $t(Ie.comparator);o=o.insert(i,hn.newNoDocument(i,Re.min()));const a=je().add(i),l=new Vd(Re.min(),new Map,new $t(Je),o,a);await fR(r,l),r.wa=r.wa.remove(i),r.Sa.delete(e),yv(r)}else await kg(r.localStore,e,!1).then(()=>Sg(r,e,n)).catch(nu)}async function _j(t,e){const n=Pe(t),r=e.batch.batchId;try{const s=await N2(n.localStore,e);pR(n,r,null),dR(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await lu(n,s)}catch(s){await nu(s)}}async function yj(t,e,n){const r=Pe(t);try{const s=await function(o,a){const l=Pe(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,a).next(h=>(yt(h!==null),u=h.keys(),l.mutationQueue.removeMutationBatch(c,h))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})}(r.localStore,e);pR(r,e,n),dR(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await lu(r,s)}catch(s){await nu(s)}}function dR(t,e){(t.Ca.get(e)||[]).forEach(n=>{n.resolve()}),t.Ca.delete(e)}function pR(t,e,n){const r=Pe(t);let s=r.Da[r.currentUser.toKey()];if(s){const i=s.get(e);i&&(n?i.reject(n):i.resolve(),s=s.remove(e)),r.Da[r.currentUser.toKey()]=s}}function Sg(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.pa.get(e))t.ga.delete(r),n&&t.fa.xa(r,n);t.pa.delete(e),t.isPrimaryClient&&t.ba.mr(e).forEach(r=>{t.ba.containsKey(r)||mR(t,r)})}function mR(t,e){t.ya.delete(e.path.canonicalString());const n=t.wa.get(e);n!==null&&(sR(t.remoteStore,n),t.wa=t.wa.remove(e),t.Sa.delete(n),yv(t))}function $w(t,e,n){for(const r of n)r instanceof uR?(t.ba.addReference(r.key,e),vj(t,r)):r instanceof hR?(ve("SyncEngine","Document no longer in limbo: "+r.key),t.ba.removeReference(r.key,e),t.ba.containsKey(r.key)||mR(t,r.key)):Se()}function vj(t,e){const n=e.key,r=n.path.canonicalString();t.wa.get(n)||t.ya.has(r)||(ve("SyncEngine","New document in limbo: "+n),t.ya.add(r),yv(t))}function yv(t){for(;t.ya.size>0&&t.wa.size{o.push(r.Ma(l,e,n).then(c=>{if((c||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,c!=null&&c.fromCache?"not-current":"current"),c){s.push(c);const u=lv.$i(l.targetId,c);i.push(u)}}))}),await Promise.all(o),r.fa.c_(s),await async function(l,c){const u=Pe(l);try{await u.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>ce.forEach(c,f=>ce.forEach(f.Qi,v=>u.persistence.referenceDelegate.addReference(h,f.targetId,v)).next(()=>ce.forEach(f.Ki,v=>u.persistence.referenceDelegate.removeReference(h,f.targetId,v)))))}catch(h){if(!ru(h))throw h;ve("LocalStore","Failed to update sequence numbers: "+h)}for(const h of c){const f=h.targetId;if(!h.fromCache){const v=u.rs.get(f),k=v.snapshotVersion,I=v.withLastLimboFreeSnapshotVersion(k);u.rs=u.rs.insert(f,I)}}}(r.localStore,i))}async function Ej(t,e){const n=Pe(t);if(!n.currentUser.isEqual(e)){ve("SyncEngine","User change. New user:",e.toKey());const r=await ZC(n.localStore,e);n.currentUser=e,function(i,o){i.Ca.forEach(a=>{a.forEach(l=>{l.reject(new _e(ae.CANCELLED,o))})}),i.Ca.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await lu(n,r.cs)}}function wj(t,e){const n=Pe(t),r=n.Sa.get(e);if(r&&r.ma)return je().add(r.key);{let s=je();const i=n.pa.get(e);if(!i)return s;for(const o of i){const a=n.ga.get(o);s=s.unionWith(a.view.la)}return s}}function Tj(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=fR.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=wj.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=gj.bind(null,e),e.fa.c_=oj.bind(null,e.eventManager),e.fa.xa=aj.bind(null,e.eventManager),e}function bj(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=_j.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=yj.bind(null,e),e}class Hw{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Ud(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return O2(this.persistence,new A2,e.initialUser,this.serializer)}createPersistence(e){return new S2(av.Jr,this.serializer)}createSharedClientState(e){return new V2}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class Ij{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>Bw(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=Ej.bind(null,this.syncEngine),await rj(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new ij}()}createDatastore(e){const n=Ud(e.databaseInfo.databaseId),r=function(i){return new $2(i)}(e.databaseInfo);return function(i,o,a,l){return new G2(i,o,a,l)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,s,i,o,a){return new q2(r,s,i,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>Bw(this.syncEngine,n,0),function(){return Vw.C()?new Vw:new U2}())}createSyncEngine(e,n){return function(s,i,o,a,l,c,u){const h=new hj(s,i,o,a,l,c);return u&&(h.Fa=!0),h}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){return async function(n){const r=Pe(n);ve("RemoteStore","RemoteStore shutting down."),r.F_.add(5),await au(r),r.x_.shutdown(),r.O_.set("Unknown")}(this.remoteStore)}}/** + */class fR{constructor(e){this.key=e}}class dR{constructor(e){this.key=e}}class cj{constructor(e,n){this.query=e,this.oa=n,this._a=null,this.hasCachedResults=!1,this.current=!1,this.aa=je(),this.mutatedKeys=je(),this.ua=LC(e),this.ca=new da(this.ua)}get la(){return this.oa}ha(e,n){const r=n?n.Pa:new $w,s=n?n.ca:this.ca;let i=n?n.mutatedKeys:this.mutatedKeys,o=s,a=!1;const l=this.query.limitType==="F"&&s.size===this.query.limit?s.last():null,c=this.query.limitType==="L"&&s.size===this.query.limit?s.first():null;if(e.inorderTraversal((u,h)=>{const f=s.get(u),v=xd(this.query,h)?h:null,k=!!f&&this.mutatedKeys.has(f.key),I=!!v&&(v.hasLocalMutations||this.mutatedKeys.has(v.key)&&v.hasCommittedMutations);let T=!1;f&&v?f.data.isEqual(v.data)?k!==I&&(r.track({type:3,doc:v}),T=!0):this.Ia(f,v)||(r.track({type:2,doc:v}),T=!0,(l&&this.ua(v,l)>0||c&&this.ua(v,c)<0)&&(a=!0)):!f&&v?(r.track({type:0,doc:v}),T=!0):f&&!v&&(r.track({type:1,doc:f}),T=!0,(l||c)&&(a=!0)),T&&(v?(o=o.add(v),i=I?i.add(u):i.delete(u)):(o=o.delete(u),i=i.delete(u)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const u=this.query.limitType==="F"?o.last():o.first();o=o.delete(u.key),i=i.delete(u.key),r.track({type:1,doc:u})}return{ca:o,Pa:r,es:a,mutatedKeys:i}}Ia(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r){const s=this.ca;this.ca=e.ca,this.mutatedKeys=e.mutatedKeys;const i=e.Pa.q_();i.sort((c,u)=>function(f,v){const k=I=>{switch(I){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Se()}};return k(f)-k(v)}(c.type,u.type)||this.ua(c.doc,u.doc)),this.da(r);const o=n?this.Ta():[],a=this.aa.size===0&&this.current?1:0,l=a!==this._a;return this._a=a,i.length!==0||l?{snapshot:new Da(this.query,e.ca,s,i,e.mutatedKeys,a===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ea:o}:{Ea:o}}U_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({ca:this.ca,Pa:new $w,mutatedKeys:this.mutatedKeys,es:!1},!1)):{Ea:[]}}Aa(e){return!this.oa.has(e)&&!!this.ca.has(e)&&!this.ca.get(e).hasLocalMutations}da(e){e&&(e.addedDocuments.forEach(n=>this.oa=this.oa.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.oa=this.oa.delete(n)),this.current=e.current)}Ta(){if(!this.current)return[];const e=this.aa;this.aa=je(),this.ca.forEach(r=>{this.Aa(r.key)&&(this.aa=this.aa.add(r.key))});const n=[];return e.forEach(r=>{this.aa.has(r)||n.push(new dR(r))}),this.aa.forEach(r=>{e.has(r)||n.push(new fR(r))}),n}Ra(e){this.oa=e.Ps,this.aa=je();const n=this.ha(e.documents);return this.applyChanges(n,!0)}Va(){return Da.fromInitialDocuments(this.query,this.ca,this.mutatedKeys,this._a===0,this.hasCachedResults)}}class uj{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class hj{constructor(e){this.key=e,this.ma=!1}}class fj{constructor(e,n,r,s,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.fa={},this.ga=new el(a=>DC(a),Md),this.pa=new Map,this.ya=new Set,this.wa=new $t(Ie.comparator),this.Sa=new Map,this.ba=new ov,this.Da={},this.Ca=new Map,this.va=Na.Ln(),this.onlineState="Unknown",this.Fa=void 0}get isPrimaryClient(){return this.Fa===!0}}async function dj(t,e){const n=bj(t);let r,s;const i=n.ga.get(e);if(i)r=i.targetId,n.sharedClientState.addLocalQueryTarget(r),s=i.view.Va();else{const o=await F2(n.localStore,zr(e)),a=n.sharedClientState.addLocalQueryTarget(o.targetId);r=o.targetId,s=await pj(n,e,r,a==="current",o.resumeToken),n.isPrimaryClient&&iR(n.remoteStore,o)}return s}async function pj(t,e,n,r,s){t.Ma=(h,f,v)=>async function(I,T,g,m){let _=T.view.ha(g);_.es&&(_=await Vw(I.localStore,T.query,!1).then(({documents:p})=>T.view.ha(p,_)));const d=m&&m.targetChanges.get(T.targetId),E=T.view.applyChanges(_,I.isPrimaryClient,d);return Ww(I,T.targetId,E.Ea),E.snapshot}(t,h,f,v);const i=await Vw(t.localStore,e,!0),o=new cj(e,i.Ps),a=o.ha(i.documents),l=ou.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",s),c=o.applyChanges(a,t.isPrimaryClient,l);Ww(t,n,c.Ea);const u=new uj(e,n,o);return t.ga.set(e,u),t.pa.has(n)?t.pa.get(n).push(e):t.pa.set(n,[e]),c.snapshot}async function mj(t,e){const n=Pe(t),r=n.ga.get(e),s=n.pa.get(r.targetId);if(s.length>1)return n.pa.set(r.targetId,s.filter(i=>!Md(i,e))),void n.ga.delete(e);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await kg(n.localStore,r.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(r.targetId),oR(n.remoteStore,r.targetId),Sg(n,r.targetId)}).catch(nu)):(Sg(n,r.targetId),await kg(n.localStore,r.targetId,!0))}async function gj(t,e,n){const r=Ij(t);try{const s=await function(o,a){const l=Pe(o),c=Dt.now(),u=a.reduce((v,k)=>v.add(k.key),je());let h,f;return l.persistence.runTransaction("Locally write mutations","readwrite",v=>{let k=js(),I=je();return l._s.getEntries(v,u).next(T=>{k=T,k.forEach((g,m)=>{m.isValidDocument()||(I=I.add(g))})}).next(()=>l.localDocuments.getOverlayedDocuments(v,k)).next(T=>{h=T;const g=[];for(const m of a){const _=$U(m,h.get(m.key).overlayedDocument);_!=null&&g.push(new xi(m.key,_,IC(_.value.mapValue),Dn.exists(!0)))}return l.mutationQueue.addMutationBatch(v,c,g,a)}).next(T=>{f=T;const g=T.applyToLocalDocumentSet(h,I);return l.documentOverlayCache.saveOverlays(v,T.batchId,g)})}).then(()=>({batchId:f.batchId,changes:xC(h)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),function(o,a,l){let c=o.Da[o.currentUser.toKey()];c||(c=new $t(Je)),c=c.insert(a,l),o.Da[o.currentUser.toKey()]=c}(r,s.batchId,n),await lu(r,s.changes),await Hd(r.remoteStore)}catch(s){const i=dv(s,"Failed to persist write");n.reject(i)}}async function pR(t,e){const n=Pe(t);try{const r=await L2(n.localStore,e);e.targetChanges.forEach((s,i)=>{const o=n.Sa.get(i);o&&(yt(s.addedDocuments.size+s.modifiedDocuments.size+s.removedDocuments.size<=1),s.addedDocuments.size>0?o.ma=!0:s.modifiedDocuments.size>0?yt(o.ma):s.removedDocuments.size>0&&(yt(o.ma),o.ma=!1))}),await lu(n,r,e)}catch(r){await nu(r)}}function Hw(t,e,n){const r=Pe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.ga.forEach((i,o)=>{const a=o.view.U_(e);a.snapshot&&s.push(a.snapshot)}),function(o,a){const l=Pe(o);l.onlineState=a;let c=!1;l.queries.forEach((u,h)=>{for(const f of h.listeners)f.U_(a)&&(c=!0)}),c&&gv(l)}(r.eventManager,e),s.length&&r.fa.c_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function _j(t,e,n){const r=Pe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const s=r.Sa.get(e),i=s&&s.key;if(i){let o=new $t(Ie.comparator);o=o.insert(i,hn.newNoDocument(i,Re.min()));const a=je().add(i),l=new jd(Re.min(),new Map,new $t(Je),o,a);await pR(r,l),r.wa=r.wa.remove(i),r.Sa.delete(e),yv(r)}else await kg(r.localStore,e,!1).then(()=>Sg(r,e,n)).catch(nu)}async function yj(t,e){const n=Pe(t),r=e.batch.batchId;try{const s=await D2(n.localStore,e);gR(n,r,null),mR(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await lu(n,s)}catch(s){await nu(s)}}async function vj(t,e,n){const r=Pe(t);try{const s=await function(o,a){const l=Pe(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,a).next(h=>(yt(h!==null),u=h.keys(),l.mutationQueue.removeMutationBatch(c,h))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})}(r.localStore,e);gR(r,e,n),mR(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await lu(r,s)}catch(s){await nu(s)}}function mR(t,e){(t.Ca.get(e)||[]).forEach(n=>{n.resolve()}),t.Ca.delete(e)}function gR(t,e,n){const r=Pe(t);let s=r.Da[r.currentUser.toKey()];if(s){const i=s.get(e);i&&(n?i.reject(n):i.resolve(),s=s.remove(e)),r.Da[r.currentUser.toKey()]=s}}function Sg(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.pa.get(e))t.ga.delete(r),n&&t.fa.xa(r,n);t.pa.delete(e),t.isPrimaryClient&&t.ba.mr(e).forEach(r=>{t.ba.containsKey(r)||_R(t,r)})}function _R(t,e){t.ya.delete(e.path.canonicalString());const n=t.wa.get(e);n!==null&&(oR(t.remoteStore,n),t.wa=t.wa.remove(e),t.Sa.delete(n),yv(t))}function Ww(t,e,n){for(const r of n)r instanceof fR?(t.ba.addReference(r.key,e),Ej(t,r)):r instanceof dR?(ve("SyncEngine","Document no longer in limbo: "+r.key),t.ba.removeReference(r.key,e),t.ba.containsKey(r.key)||_R(t,r.key)):Se()}function Ej(t,e){const n=e.key,r=n.path.canonicalString();t.wa.get(n)||t.ya.has(r)||(ve("SyncEngine","New document in limbo: "+n),t.ya.add(r),yv(t))}function yv(t){for(;t.ya.size>0&&t.wa.size{o.push(r.Ma(l,e,n).then(c=>{if((c||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,c!=null&&c.fromCache?"not-current":"current"),c){s.push(c);const u=lv.$i(l.targetId,c);i.push(u)}}))}),await Promise.all(o),r.fa.c_(s),await async function(l,c){const u=Pe(l);try{await u.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>ce.forEach(c,f=>ce.forEach(f.Qi,v=>u.persistence.referenceDelegate.addReference(h,f.targetId,v)).next(()=>ce.forEach(f.Ki,v=>u.persistence.referenceDelegate.removeReference(h,f.targetId,v)))))}catch(h){if(!ru(h))throw h;ve("LocalStore","Failed to update sequence numbers: "+h)}for(const h of c){const f=h.targetId;if(!h.fromCache){const v=u.rs.get(f),k=v.snapshotVersion,I=v.withLastLimboFreeSnapshotVersion(k);u.rs=u.rs.insert(f,I)}}}(r.localStore,i))}async function wj(t,e){const n=Pe(t);if(!n.currentUser.isEqual(e)){ve("SyncEngine","User change. New user:",e.toKey());const r=await tR(n.localStore,e);n.currentUser=e,function(i,o){i.Ca.forEach(a=>{a.forEach(l=>{l.reject(new _e(ae.CANCELLED,o))})}),i.Ca.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await lu(n,r.cs)}}function Tj(t,e){const n=Pe(t),r=n.Sa.get(e);if(r&&r.ma)return je().add(r.key);{let s=je();const i=n.pa.get(e);if(!i)return s;for(const o of i){const a=n.ga.get(o);s=s.unionWith(a.view.la)}return s}}function bj(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=pR.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Tj.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=_j.bind(null,e),e.fa.c_=aj.bind(null,e.eventManager),e.fa.xa=lj.bind(null,e.eventManager),e}function Ij(t){const e=Pe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=yj.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=vj.bind(null,e),e}class Gw{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Bd(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return N2(this.persistence,new P2,e.initialUser,this.serializer)}createPersistence(e){return new C2(av.Jr,this.serializer)}createSharedClientState(e){return new U2}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class kj{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>Hw(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=wj.bind(null,this.syncEngine),await sj(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new oj}()}createDatastore(e){const n=Bd(e.databaseInfo.databaseId),r=function(i){return new H2(i)}(e.databaseInfo);return function(i,o,a,l){return new Y2(i,o,a,l)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,s,i,o,a){return new K2(r,s,i,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>Hw(this.syncEngine,n,0),function(){return jw.C()?new jw:new j2}())}createSyncEngine(e,n){return function(s,i,o,a,l,c,u){const h=new fj(s,i,o,a,l,c);return u&&(h.Fa=!0),h}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}terminate(){return async function(n){const r=Pe(n);ve("RemoteStore","RemoteStore shutting down."),r.F_.add(5),await au(r),r.x_.shutdown(),r.O_.set("Unknown")}(this.remoteStore)}}/** * @license * Copyright 2020 Google LLC * @@ -1723,7 +1723,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class vv{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ba(this.observer.next,e)}error(e){this.observer.error?this.Ba(this.observer.error,e):Vs("Uncaught Error in snapshot listener:",e.toString())}La(){this.muted=!0}Ba(e,n){this.muted||setTimeout(()=>{this.muted||e(n)},0)}}/** + */class vv{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ba(this.observer.next,e)}error(e){this.observer.error?this.Ba(this.observer.error,e):Us("Uncaught Error in snapshot listener:",e.toString())}La(){this.muted=!0}Ba(e,n){this.muted||setTimeout(()=>{this.muted||e(n)},0)}}/** * @license * Copyright 2017 Google LLC * @@ -1738,7 +1738,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class kj{constructor(e,n,r,s){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=s,this.user=cn.UNAUTHENTICATED,this.clientId=vC.V(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,async i=>{ve("FirestoreClient","Received user=",i.uid),await this.authCredentialListener(i),this.user=i}),this.appCheckCredentials.start(r,i=>(ve("FirestoreClient","Received new app check token=",i),this.appCheckCredentialListener(i,this.user)))}async getConfiguration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new _e(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Os;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=dv(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function nm(t,e){t.asyncQueue.verifyOperationInProgress(),ve("FirestoreClient","Initializing OfflineComponentProvider");const n=await t.getConfiguration();await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async s=>{r.isEqual(s)||(await ZC(e.localStore,s),r=s)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function Ww(t,e){t.asyncQueue.verifyOperationInProgress();const n=await Cj(t);ve("FirestoreClient","Initializing OnlineComponentProvider");const r=await t.getConfiguration();await e.initialize(n,r),t.setCredentialChangeListener(s=>Uw(e.remoteStore,s)),t.setAppCheckTokenChangeListener((s,i)=>Uw(e.remoteStore,i)),t._onlineComponents=e}function Sj(t){return t.name==="FirebaseError"?t.code===ae.FAILED_PRECONDITION||t.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||t.code===22||t.code===20||t.code===11}async function Cj(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ve("FirestoreClient","Using user provided OfflineComponentProvider");try{await nm(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!Sj(n))throw n;Ra("Error using user provided cache. Falling back to memory cache: "+n),await nm(t,new Hw)}}else ve("FirestoreClient","Using default OfflineComponentProvider"),await nm(t,new Hw);return t._offlineComponents}async function gR(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ve("FirestoreClient","Using user provided OnlineComponentProvider"),await Ww(t,t._uninitializedComponentsProvider._online)):(ve("FirestoreClient","Using default OnlineComponentProvider"),await Ww(t,new Ij))),t._onlineComponents}function Rj(t){return gR(t).then(e=>e.syncEngine)}async function df(t){const e=await gR(t),n=e.eventManager;return n.onListen=fj.bind(null,e.syncEngine),n.onUnlisten=pj.bind(null,e.syncEngine),n}function Aj(t,e,n={}){const r=new Os;return t.asyncQueue.enqueueAndForget(async()=>function(i,o,a,l,c){const u=new vv({next:f=>{o.enqueueAndForget(()=>mv(i,h));const v=f.docs.has(a);!v&&f.fromCache?c.reject(new _e(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):v&&f.fromCache&&l&&l.source==="server"?c.reject(new _e(ae.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.)')):c.resolve(f)},error:f=>c.reject(f)}),h=new _v(Nd(a.path),u,{includeMetadataChanges:!0,Z_:!0});return pv(i,h)}(await df(t),t.asyncQueue,e,n,r)),r.promise}function Pj(t,e,n={}){const r=new Os;return t.asyncQueue.enqueueAndForget(async()=>function(i,o,a,l,c){const u=new vv({next:f=>{o.enqueueAndForget(()=>mv(i,h)),f.fromCache&&l.source==="server"?c.reject(new _e(ae.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.)')):c.resolve(f)},error:f=>c.reject(f)}),h=new _v(a,u,{includeMetadataChanges:!0,Z_:!0});return pv(i,h)}(await df(t),t.asyncQueue,e,n,r)),r.promise}/** + */class Sj{constructor(e,n,r,s){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=s,this.user=cn.UNAUTHENTICATED,this.clientId=wC.V(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,async i=>{ve("FirestoreClient","Received user=",i.uid),await this.authCredentialListener(i),this.user=i}),this.appCheckCredentials.start(r,i=>(ve("FirestoreClient","Received new app check token=",i),this.appCheckCredentialListener(i,this.user)))}async getConfiguration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new _e(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Ns;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=dv(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function nm(t,e){t.asyncQueue.verifyOperationInProgress(),ve("FirestoreClient","Initializing OfflineComponentProvider");const n=await t.getConfiguration();await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async s=>{r.isEqual(s)||(await tR(e.localStore,s),r=s)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function Yw(t,e){t.asyncQueue.verifyOperationInProgress();const n=await Rj(t);ve("FirestoreClient","Initializing OnlineComponentProvider");const r=await t.getConfiguration();await e.initialize(n,r),t.setCredentialChangeListener(s=>Bw(e.remoteStore,s)),t.setAppCheckTokenChangeListener((s,i)=>Bw(e.remoteStore,i)),t._onlineComponents=e}function Cj(t){return t.name==="FirebaseError"?t.code===ae.FAILED_PRECONDITION||t.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||t.code===22||t.code===20||t.code===11}async function Rj(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ve("FirestoreClient","Using user provided OfflineComponentProvider");try{await nm(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!Cj(n))throw n;Ra("Error using user provided cache. Falling back to memory cache: "+n),await nm(t,new Gw)}}else ve("FirestoreClient","Using default OfflineComponentProvider"),await nm(t,new Gw);return t._offlineComponents}async function yR(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ve("FirestoreClient","Using user provided OnlineComponentProvider"),await Yw(t,t._uninitializedComponentsProvider._online)):(ve("FirestoreClient","Using default OnlineComponentProvider"),await Yw(t,new kj))),t._onlineComponents}function Aj(t){return yR(t).then(e=>e.syncEngine)}async function mf(t){const e=await yR(t),n=e.eventManager;return n.onListen=dj.bind(null,e.syncEngine),n.onUnlisten=mj.bind(null,e.syncEngine),n}function Pj(t,e,n={}){const r=new Ns;return t.asyncQueue.enqueueAndForget(async()=>function(i,o,a,l,c){const u=new vv({next:f=>{o.enqueueAndForget(()=>mv(i,h));const v=f.docs.has(a);!v&&f.fromCache?c.reject(new _e(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):v&&f.fromCache&&l&&l.source==="server"?c.reject(new _e(ae.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.)')):c.resolve(f)},error:f=>c.reject(f)}),h=new _v(Ld(a.path),u,{includeMetadataChanges:!0,Z_:!0});return pv(i,h)}(await mf(t),t.asyncQueue,e,n,r)),r.promise}function Oj(t,e,n={}){const r=new Ns;return t.asyncQueue.enqueueAndForget(async()=>function(i,o,a,l,c){const u=new vv({next:f=>{o.enqueueAndForget(()=>mv(i,h)),f.fromCache&&l.source==="server"?c.reject(new _e(ae.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.)')):c.resolve(f)},error:f=>c.reject(f)}),h=new _v(a,u,{includeMetadataChanges:!0,Z_:!0});return pv(i,h)}(await mf(t),t.asyncQueue,e,n,r)),r.promise}/** * @license * Copyright 2023 Google LLC * @@ -1753,7 +1753,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function _R(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** + */function vR(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** * @license * Copyright 2020 Google LLC * @@ -1768,7 +1768,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Gw=new Map;/** + */const qw=new Map;/** * @license * Copyright 2017 Google LLC * @@ -1783,7 +1783,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function yR(t,e,n){if(!n)throw new _e(ae.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function Oj(t,e,n,r){if(e===!0&&r===!0)throw new _e(ae.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function Yw(t){if(!Ie.isDocumentKey(t))throw new _e(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function qw(t){if(Ie.isDocumentKey(t))throw new _e(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function $d(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":Se()}function Qn(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new _e(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=$d(t);throw new _e(ae.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** + */function ER(t,e,n){if(!n)throw new _e(ae.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function Nj(t,e,n,r){if(e===!0&&r===!0)throw new _e(ae.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function Kw(t){if(!Ie.isDocumentKey(t))throw new _e(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function zw(t){if(Ie.isDocumentKey(t))throw new _e(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Wd(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":Se()}function Ln(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new _e(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Wd(t);throw new _e(ae.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** * @license * Copyright 2020 Google LLC * @@ -1798,7 +1798,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Kw{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new _e(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new _e(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Oj("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=_R((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,s){return r.timeoutSeconds===s.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Hd{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Kw({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new _e(ae.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 this._terminateTask!==void 0}_setSettings(e){if(this._settingsFrozen)throw new _e(ae.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 Kw(e),e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new JV;switch(r.type){case"firstParty":return new nU(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new _e(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.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(n){const r=Gw.get(n);r&&(ve("ComponentProvider","Removing Datastore"),Gw.delete(n),r.terminate())}(this),Promise.resolve()}}function Nj(t,e,n,r={}){var s;const i=(t=Qn(t,Hd))._getSettings(),o=`${e}:${n}`;if(i.host!=="firestore.googleapis.com"&&i.host!==o&&Ra("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},i),{host:o,ssl:!1})),r.mockUserToken){let a,l;if(typeof r.mockUserToken=="string")a=r.mockUserToken,l=cn.MOCK_USER;else{a=SM(r.mockUserToken,(s=t._app)===null||s===void 0?void 0:s.options.projectId);const c=r.mockUserToken.sub||r.mockUserToken.user_id;if(!c)throw new _e(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new cn(c)}t._authCredentials=new ZV(new yC(a,l))}}/** + */class Qw{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new _e(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new _e(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Nj("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=vR((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new _e(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,s){return r.timeoutSeconds===s.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Gd{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Qw({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new _e(ae.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 this._terminateTask!==void 0}_setSettings(e){if(this._settingsFrozen)throw new _e(ae.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 Qw(e),e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new ZV;switch(r.type){case"firstParty":return new rU(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new _e(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.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(n){const r=qw.get(n);r&&(ve("ComponentProvider","Removing Datastore"),qw.delete(n),r.terminate())}(this),Promise.resolve()}}function Dj(t,e,n,r={}){var s;const i=(t=Ln(t,Gd))._getSettings(),o=`${e}:${n}`;if(i.host!=="firestore.googleapis.com"&&i.host!==o&&Ra("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},i),{host:o,ssl:!1})),r.mockUserToken){let a,l;if(typeof r.mockUserToken=="string")a=r.mockUserToken,l=cn.MOCK_USER;else{a=Cx(r.mockUserToken,(s=t._app)===null||s===void 0?void 0:s.options.projectId);const c=r.mockUserToken.sub||r.mockUserToken.user_id;if(!c)throw new _e(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new cn(c)}t._authCredentials=new eU(new EC(a,l))}}/** * @license * Copyright 2020 Google LLC * @@ -1813,7 +1813,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Oo{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Oo(this.firestore,e,this._query)}}class Nn{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new wi(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Nn(this.firestore,e,this._key)}}class wi extends Oo{constructor(e,n,r){super(e,n,Nd(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Nn(this.firestore,null,new Ie(e))}withConverter(e){return new wi(this.firestore,e,this._path)}}function KX(t,e,...n){if(t=Bt(t),yR("collection","path",e),t instanceof Hd){const r=_t.fromString(e,...n);return qw(r),new wi(t,null,r)}{if(!(t instanceof Nn||t instanceof wi))throw new _e(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return qw(r),new wi(t.firestore,null,r)}}function Dj(t,e,...n){if(t=Bt(t),arguments.length===1&&(e=vC.V()),yR("doc","path",e),t instanceof Hd){const r=_t.fromString(e,...n);return Yw(r),new Nn(t,null,new Ie(r))}{if(!(t instanceof Nn||t instanceof wi))throw new _e(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return Yw(r),new Nn(t.firestore,t instanceof wi?t.converter:null,new Ie(r))}}/** + */class Oo{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Oo(this.firestore,e,this._query)}}class wn{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new wi(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new wn(this.firestore,e,this._key)}}class wi extends Oo{constructor(e,n,r){super(e,n,Ld(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new wn(this.firestore,null,new Ie(e))}withConverter(e){return new wi(this.firestore,e,this._path)}}function KX(t,e,...n){if(t=Bt(t),ER("collection","path",e),t instanceof Gd){const r=_t.fromString(e,...n);return zw(r),new wi(t,null,r)}{if(!(t instanceof wn||t instanceof wi))throw new _e(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return zw(r),new wi(t.firestore,null,r)}}function Lj(t,e,...n){if(t=Bt(t),arguments.length===1&&(e=wC.V()),ER("doc","path",e),t instanceof Gd){const r=_t.fromString(e,...n);return Kw(r),new wn(t,null,new Ie(r))}{if(!(t instanceof wn||t instanceof wi))throw new _e(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(_t.fromString(e,...n));return Kw(r),new wn(t.firestore,t instanceof wi?t.converter:null,new Ie(r))}}/** * @license * Copyright 2020 Google LLC * @@ -1828,8 +1828,8 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Lj{constructor(){this.Za=Promise.resolve(),this.Xa=[],this.eu=!1,this.tu=[],this.nu=null,this.ru=!1,this.iu=!1,this.su=[],this.Ho=new tR(this,"async_queue_retry"),this.ou=()=>{const n=tm();n&&ve("AsyncQueue","Visibility state changed to "+n.visibilityState),this.Ho.$o()};const e=tm();e&&typeof e.addEventListener=="function"&&e.addEventListener("visibilitychange",this.ou)}get isShuttingDown(){return this.eu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this._u(),this.au(e)}enterRestrictedMode(e){if(!this.eu){this.eu=!0,this.iu=e||!1;const n=tm();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.ou)}}enqueue(e){if(this._u(),this.eu)return new Promise(()=>{});const n=new Os;return this.au(()=>this.eu&&this.iu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Xa.push(e),this.uu()))}async uu(){if(this.Xa.length!==0){try{await this.Xa[0](),this.Xa.shift(),this.Ho.reset()}catch(e){if(!ru(e))throw e;ve("AsyncQueue","Operation failed with retryable error: "+e)}this.Xa.length>0&&this.Ho.Qo(()=>this.uu())}}au(e){const n=this.Za.then(()=>(this.ru=!0,e().catch(r=>{this.nu=r,this.ru=!1;const s=function(o){let a=o.message||"";return o.stack&&(a=o.stack.includes(o.message)?o.stack:o.message+` -`+o.stack),a}(r);throw Vs("INTERNAL UNHANDLED ERROR: ",s),r}).then(r=>(this.ru=!1,r))));return this.Za=n,n}enqueueAfterDelay(e,n,r){this._u(),this.su.indexOf(e)>-1&&(n=0);const s=fv.createAndSchedule(this,e,n,r,i=>this.cu(i));return this.tu.push(s),s}_u(){this.nu&&Se()}verifyOperationInProgress(){}async lu(){let e;do e=this.Za,await e;while(e!==this.Za)}hu(e){for(const n of this.tu)if(n.timerId===e)return!0;return!1}Pu(e){return this.lu().then(()=>{this.tu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.tu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.lu()})}Iu(e){this.su.push(e)}cu(e){const n=this.tu.indexOf(e);this.tu.splice(n,1)}}function zw(t){return function(n,r){if(typeof n!="object"||n===null)return!1;const s=n;for(const i of r)if(i in s&&typeof s[i]=="function")return!0;return!1}(t,["next","error","complete"])}class js extends Hd{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=function(){return new Lj}(),this._persistenceKey=(s==null?void 0:s.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||vR(this),this._firestoreClient.terminate()}}function xj(t,e){const n=typeof t=="object"?t:Sy(),r=typeof t=="string"?t:e||"(default)",s=ky(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const i=kM("firestore");i&&Nj(s,...i)}return s}function cu(t){return t._firestoreClient||vR(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function vR(t){var e,n,r;const s=t._freezeSettings(),i=function(a,l,c,u){return new pU(a,l,c,u.host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,_R(u.experimentalLongPollingOptions),u.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,s);t._firestoreClient=new kj(t._authCredentials,t._appCheckCredentials,t._queue,i),!((n=s.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=s.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:s.localCache.kind,_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider})}/** + */class Mj{constructor(){this.Za=Promise.resolve(),this.Xa=[],this.eu=!1,this.tu=[],this.nu=null,this.ru=!1,this.iu=!1,this.su=[],this.Ho=new rR(this,"async_queue_retry"),this.ou=()=>{const n=tm();n&&ve("AsyncQueue","Visibility state changed to "+n.visibilityState),this.Ho.$o()};const e=tm();e&&typeof e.addEventListener=="function"&&e.addEventListener("visibilitychange",this.ou)}get isShuttingDown(){return this.eu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this._u(),this.au(e)}enterRestrictedMode(e){if(!this.eu){this.eu=!0,this.iu=e||!1;const n=tm();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.ou)}}enqueue(e){if(this._u(),this.eu)return new Promise(()=>{});const n=new Ns;return this.au(()=>this.eu&&this.iu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Xa.push(e),this.uu()))}async uu(){if(this.Xa.length!==0){try{await this.Xa[0](),this.Xa.shift(),this.Ho.reset()}catch(e){if(!ru(e))throw e;ve("AsyncQueue","Operation failed with retryable error: "+e)}this.Xa.length>0&&this.Ho.Qo(()=>this.uu())}}au(e){const n=this.Za.then(()=>(this.ru=!0,e().catch(r=>{this.nu=r,this.ru=!1;const s=function(o){let a=o.message||"";return o.stack&&(a=o.stack.includes(o.message)?o.stack:o.message+` +`+o.stack),a}(r);throw Us("INTERNAL UNHANDLED ERROR: ",s),r}).then(r=>(this.ru=!1,r))));return this.Za=n,n}enqueueAfterDelay(e,n,r){this._u(),this.su.indexOf(e)>-1&&(n=0);const s=fv.createAndSchedule(this,e,n,r,i=>this.cu(i));return this.tu.push(s),s}_u(){this.nu&&Se()}verifyOperationInProgress(){}async lu(){let e;do e=this.Za,await e;while(e!==this.Za)}hu(e){for(const n of this.tu)if(n.timerId===e)return!0;return!1}Pu(e){return this.lu().then(()=>{this.tu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.tu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.lu()})}Iu(e){this.su.push(e)}cu(e){const n=this.tu.indexOf(e);this.tu.splice(n,1)}}function Xw(t){return function(n,r){if(typeof n!="object"||n===null)return!1;const s=n;for(const i of r)if(i in s&&typeof s[i]=="function")return!0;return!1}(t,["next","error","complete"])}class ss extends Gd{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=function(){return new Mj}(),this._persistenceKey=(s==null?void 0:s.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||wR(this),this._firestoreClient.terminate()}}function xj(t,e){const n=typeof t=="object"?t:Sy(),r=typeof t=="string"?t:e||"(default)",s=ky(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const i=Sx("firestore");i&&Dj(s,...i)}return s}function cu(t){return t._firestoreClient||wR(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function wR(t){var e,n,r;const s=t._freezeSettings(),i=function(a,l,c,u){return new mU(a,l,c,u.host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,vR(u.experimentalLongPollingOptions),u.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,s);t._firestoreClient=new Sj(t._authCredentials,t._appCheckCredentials,t._queue,i),!((n=s.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=s.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:s.localCache.kind,_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider})}/** * @license * Copyright 2020 Google LLC * @@ -1844,7 +1844,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class La{constructor(e){this._byteString=e}static fromBase64String(e){try{return new La(bn.fromBase64String(e))}catch(n){throw new _e(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new La(bn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/** + */class La{constructor(e){this._byteString=e}static fromBase64String(e){try{return new La(In.fromBase64String(e))}catch(n){throw new _e(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new La(In.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/** * @license * Copyright 2020 Google LLC * @@ -1904,7 +1904,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Mj=/^__.*__$/;class Fj{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new Mi(e,this.data,this.fieldMask,n,this.fieldTransforms):new iu(e,this.data,n,this.fieldTransforms)}}class ER{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new Mi(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function wR(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Se()}}class wv{constructor(e,n,r,s,i,o){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=s,i===void 0&&this.du(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get Tu(){return this.settings.Tu}Eu(e){return new wv(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Au(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Eu({path:r,Ru:!1});return s.Vu(e),s}mu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Eu({path:r,Ru:!1});return s.du(),s}fu(e){return this.Eu({path:void 0,Ru:!0})}gu(e){return pf(e,this.settings.methodName,this.settings.pu||!1,this.path,this.settings.yu)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}du(){if(this.path)for(let e=0;el.covers(h.field))}else l=null,c=o.fieldTransforms;return new Fj(new Un(a),l,c)}class Gd extends Ev{_toFieldTransform(e){if(e.Tu!==2)throw e.Tu===1?e.gu(`${this._methodName}() can only appear at the top level of your update data`):e.gu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Gd}}function bR(t,e,n,r){const s=t.wu(1,e,n);Tv("Data must be an object, but it was:",s,r);const i=[],o=Un.empty();Ao(r,(l,c)=>{const u=bv(e,l,n);c=Bt(c);const h=s.mu(u);if(c instanceof Gd)i.push(u);else{const f=fu(c,h);f!=null&&(i.push(u),o.set(u,f))}});const a=new Kn(i);return new ER(o,a,s.fieldTransforms)}function IR(t,e,n,r,s,i){const o=t.wu(1,e,n),a=[Cg(e,r,n)],l=[s];if(i.length%2!=0)throw new _e(ae.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f=0;--f)if(!CR(c,a[f])){const v=a[f];let k=l[f];k=Bt(k);const I=o.mu(v);if(k instanceof Gd)c.push(v);else{const T=fu(k,I);T!=null&&(c.push(v),u.set(v,T))}}const h=new Kn(c);return new ER(u,h,o.fieldTransforms)}function Uj(t,e,n,r=!1){return fu(n,t.wu(r?4:3,e))}function fu(t,e){if(SR(t=Bt(t)))return Tv("Unsupported field value:",e,t),kR(t,e);if(t instanceof Ev)return function(r,s){if(!wR(s.Tu))throw s.gu(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.gu(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(s);i&&s.fieldTransforms.push(i)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Ru&&e.Tu!==4)throw e.gu("Nested arrays are not supported");return function(r,s){const i=[];let o=0;for(const a of r){let l=fu(a,s.fu(o));l==null&&(l={nullValue:"NULL_VALUE"}),i.push(l),o++}return{arrayValue:{values:i}}}(t,e)}return function(r,s){if((r=Bt(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return xU(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Dt.fromDate(r);return{timestampValue:hf(s.serializer,i)}}if(r instanceof Dt){const i=new Dt(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:hf(s.serializer,i)}}if(r instanceof hu)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof La)return{bytesValue:qC(s.serializer,r._byteString)};if(r instanceof Nn){const i=s.databaseId,o=r.firestore._databaseId;if(!o.isEqual(i))throw s.gu(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:iv(r.firestore._databaseId||s.databaseId,r._key.path)}}throw s.gu(`Unsupported field value: ${$d(r)}`)}(t,e)}function kR(t,e){const n={};return EC(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Ao(t,(r,s)=>{const i=fu(s,e.Au(r));i!=null&&(n[r]=i)}),{mapValue:{fields:n}}}function SR(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Dt||t instanceof hu||t instanceof La||t instanceof Nn||t instanceof Ev)}function Tv(t,e,n){if(!SR(n)||!function(s){return typeof s=="object"&&s!==null&&(Object.getPrototypeOf(s)===Object.prototype||Object.getPrototypeOf(s)===null)}(n)){const r=$d(n);throw r==="an object"?e.gu(t+" a custom object"):e.gu(t+" "+r)}}function Cg(t,e,n){if((e=Bt(e))instanceof uu)return e._internalPath;if(typeof e=="string")return bv(t,e);throw pf("Field path arguments must be of type string or ",t,!1,void 0,n)}const jj=new RegExp("[~\\*/\\[\\]]");function bv(t,e,n){if(e.search(jj)>=0)throw pf(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new uu(...e.split("."))._internalPath}catch{throw pf(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function pf(t,e,n,r,s){const i=r&&!r.isEmpty(),o=s!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(i||o)&&(l+=" (found",i&&(l+=` in field ${r}`),o&&(l+=` in document ${s}`),l+=")"),new _e(ae.INVALID_ARGUMENT,a+t+l)}function CR(t,e){return t.some(n=>n.isEqual(e))}/** + */const Fj=/^__.*__$/;class Vj{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new xi(e,this.data,this.fieldMask,n,this.fieldTransforms):new iu(e,this.data,n,this.fieldTransforms)}}class TR{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new xi(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function bR(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Se()}}class wv{constructor(e,n,r,s,i,o){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=s,i===void 0&&this.du(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get Tu(){return this.settings.Tu}Eu(e){return new wv(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Au(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Eu({path:r,Ru:!1});return s.Vu(e),s}mu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.Eu({path:r,Ru:!1});return s.du(),s}fu(e){return this.Eu({path:void 0,Ru:!0})}gu(e){return gf(e,this.settings.methodName,this.settings.pu||!1,this.path,this.settings.yu)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}du(){if(this.path)for(let e=0;el.covers(h.field))}else l=null,c=o.fieldTransforms;return new Vj(new Bn(a),l,c)}class Yd extends Ev{_toFieldTransform(e){if(e.Tu!==2)throw e.Tu===1?e.gu(`${this._methodName}() can only appear at the top level of your update data`):e.gu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Yd}}function IR(t,e,n,r){const s=t.wu(1,e,n);bv("Data must be an object, but it was:",s,r);const i=[],o=Bn.empty();Ao(r,(l,c)=>{const u=Iv(e,l,n);c=Bt(c);const h=s.mu(u);if(c instanceof Yd)i.push(u);else{const f=du(c,h);f!=null&&(i.push(u),o.set(u,f))}});const a=new zn(i);return new TR(o,a,s.fieldTransforms)}function kR(t,e,n,r,s,i){const o=t.wu(1,e,n),a=[Cg(e,r,n)],l=[s];if(i.length%2!=0)throw new _e(ae.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f=0;--f)if(!RR(c,a[f])){const v=a[f];let k=l[f];k=Bt(k);const I=o.mu(v);if(k instanceof Yd)c.push(v);else{const T=du(k,I);T!=null&&(c.push(v),u.set(v,T))}}const h=new zn(c);return new TR(u,h,o.fieldTransforms)}function jj(t,e,n,r=!1){return du(n,t.wu(r?4:3,e))}function du(t,e){if(CR(t=Bt(t)))return bv("Unsupported field value:",e,t),SR(t,e);if(t instanceof Ev)return function(r,s){if(!bR(s.Tu))throw s.gu(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.gu(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(s);i&&s.fieldTransforms.push(i)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Ru&&e.Tu!==4)throw e.gu("Nested arrays are not supported");return function(r,s){const i=[];let o=0;for(const a of r){let l=du(a,s.fu(o));l==null&&(l={nullValue:"NULL_VALUE"}),i.push(l),o++}return{arrayValue:{values:i}}}(t,e)}return function(r,s){if((r=Bt(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return xU(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Dt.fromDate(r);return{timestampValue:df(s.serializer,i)}}if(r instanceof Dt){const i=new Dt(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:df(s.serializer,i)}}if(r instanceof hu)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof La)return{bytesValue:zC(s.serializer,r._byteString)};if(r instanceof wn){const i=s.databaseId,o=r.firestore._databaseId;if(!o.isEqual(i))throw s.gu(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:iv(r.firestore._databaseId||s.databaseId,r._key.path)}}throw s.gu(`Unsupported field value: ${Wd(r)}`)}(t,e)}function SR(t,e){const n={};return TC(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Ao(t,(r,s)=>{const i=du(s,e.Au(r));i!=null&&(n[r]=i)}),{mapValue:{fields:n}}}function CR(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Dt||t instanceof hu||t instanceof La||t instanceof wn||t instanceof Ev)}function bv(t,e,n){if(!CR(n)||!function(s){return typeof s=="object"&&s!==null&&(Object.getPrototypeOf(s)===Object.prototype||Object.getPrototypeOf(s)===null)}(n)){const r=Wd(n);throw r==="an object"?e.gu(t+" a custom object"):e.gu(t+" "+r)}}function Cg(t,e,n){if((e=Bt(e))instanceof uu)return e._internalPath;if(typeof e=="string")return Iv(t,e);throw gf("Field path arguments must be of type string or ",t,!1,void 0,n)}const Bj=new RegExp("[~\\*/\\[\\]]");function Iv(t,e,n){if(e.search(Bj)>=0)throw gf(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new uu(...e.split("."))._internalPath}catch{throw gf(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function gf(t,e,n,r,s){const i=r&&!r.isEmpty(),o=s!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(i||o)&&(l+=" (found",i&&(l+=` in field ${r}`),o&&(l+=` in document ${s}`),l+=")"),new _e(ae.INVALID_ARGUMENT,a+t+l)}function RR(t,e){return t.some(n=>n.isEqual(e))}/** * @license * Copyright 2020 Google LLC * @@ -1919,7 +1919,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class RR{constructor(e,n,r,s,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=s,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new Nn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new Bj(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(Iv("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class Bj extends RR{data(){return super.data()}}function Iv(t,e){return typeof e=="string"?bv(t,e):e instanceof uu?e._internalPath:e._delegate._internalPath}/** + */class AR{constructor(e,n,r,s,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=s,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new wn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new $j(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(kv("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class $j extends AR{data(){return super.data()}}function kv(t,e){return typeof e=="string"?Iv(t,e):e instanceof uu?e._internalPath:e._delegate._internalPath}/** * @license * Copyright 2020 Google LLC * @@ -1934,7 +1934,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function AR(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new _e(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class kv{}class $j extends kv{}function zX(t,e,...n){let r=[];e instanceof kv&&r.push(e),r=r.concat(n),function(i){const o=i.filter(l=>l instanceof Sv).length,a=i.filter(l=>l instanceof Yd).length;if(o>1||o>0&&a>0)throw new _e(ae.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(const s of r)t=s._apply(t);return t}class Yd extends $j{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new Yd(e,n,r)}_apply(e){const n=this._parse(e);return PR(e._query,n),new Oo(e.firestore,e.converter,vg(e._query,n))}_parse(e){const n=Wd(e.firestore);return function(i,o,a,l,c,u,h){let f;if(c.isKeyField()){if(u==="array-contains"||u==="array-contains-any")throw new _e(ae.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if(u==="in"||u==="not-in"){Xw(h,u);const v=[];for(const k of h)v.push(Qw(l,i,k));f={arrayValue:{values:v}}}else f=Qw(l,i,h)}else u!=="in"&&u!=="not-in"&&u!=="array-contains-any"||Xw(h,u),f=Uj(a,o,h,u==="in"||u==="not-in");return Ft.create(c,u,f)}(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function QX(t,e,n){const r=e,s=Iv("where",t);return Yd._create(s,r,n)}class Sv extends kv{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Sv(e,n)}_parse(e){const n=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return n.length===1?n[0]:Cr.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:(function(s,i){let o=s;const a=i.getFlattenedFilters();for(const l of a)PR(o,l),o=vg(o,l)}(e._query,n),new Oo(e.firestore,e.converter,vg(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}function Qw(t,e,n){if(typeof(n=Bt(n))=="string"){if(n==="")throw new _e(ae.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!PC(e)&&n.indexOf("/")!==-1)throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(_t.fromString(n));if(!Ie.isDocumentKey(r))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return vw(t,new Ie(r))}if(n instanceof Nn)return vw(t,n._key);throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${$d(n)}.`)}function Xw(t,e){if(!Array.isArray(t)||t.length===0)throw new _e(ae.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function PR(t,e){if(e.isInequality()){const r=nv(t),s=e.field;if(r!==null&&!r.isEqual(s))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${r.toString()}' and '${s.toString()}'`);const i=AC(t);i!==null&&Hj(t,s,i)}const n=function(s,i){for(const o of s)for(const a of o.getFlattenedFilters())if(i.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(s){switch(s){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(n!==null)throw n===e.op?new _e(ae.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new _e(ae.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}function Hj(t,e,n){if(!n.isEqual(e))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${e.toString()}' and so you must also use '${e.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${n.toString()}' instead.`)}class Wj{convertValue(e,n="none"){switch(yo(e)){case 0:return null;case 1:return e.booleanValue;case 2:return xt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(_o(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw Se()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Ao(e,(s,i)=>{r[s]=this.convertValue(i,n)}),r}convertGeoPoint(e){return new hu(xt(e.latitude),xt(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=Jy(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(Sc(e));default:return null}}convertTimestamp(e){const n=Ri(e);return new Dt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=_t.fromString(e);yt(JC(r));const s=new Cc(r.get(1),r.get(3)),i=new Ie(r.popFirst(5));return s.isEqual(n)||Vs(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}/** + */function PR(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new _e(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Sv{}class Hj extends Sv{}function zX(t,e,...n){let r=[];e instanceof Sv&&r.push(e),r=r.concat(n),function(i){const o=i.filter(l=>l instanceof Cv).length,a=i.filter(l=>l instanceof qd).length;if(o>1||o>0&&a>0)throw new _e(ae.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(const s of r)t=s._apply(t);return t}class qd extends Hj{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new qd(e,n,r)}_apply(e){const n=this._parse(e);return OR(e._query,n),new Oo(e.firestore,e.converter,vg(e._query,n))}_parse(e){const n=fu(e.firestore);return function(i,o,a,l,c,u,h){let f;if(c.isKeyField()){if(u==="array-contains"||u==="array-contains-any")throw new _e(ae.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if(u==="in"||u==="not-in"){Zw(h,u);const v=[];for(const k of h)v.push(Jw(l,i,k));f={arrayValue:{values:v}}}else f=Jw(l,i,h)}else u!=="in"&&u!=="not-in"&&u!=="array-contains-any"||Zw(h,u),f=jj(a,o,h,u==="in"||u==="not-in");return Ft.create(c,u,f)}(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function QX(t,e,n){const r=e,s=kv("where",t);return qd._create(s,r,n)}class Cv extends Sv{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Cv(e,n)}_parse(e){const n=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return n.length===1?n[0]:Cr.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:(function(s,i){let o=s;const a=i.getFlattenedFilters();for(const l of a)OR(o,l),o=vg(o,l)}(e._query,n),new Oo(e.firestore,e.converter,vg(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}function Jw(t,e,n){if(typeof(n=Bt(n))=="string"){if(n==="")throw new _e(ae.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!NC(e)&&n.indexOf("/")!==-1)throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(_t.fromString(n));if(!Ie.isDocumentKey(r))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return ww(t,new Ie(r))}if(n instanceof wn)return ww(t,n._key);throw new _e(ae.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Wd(n)}.`)}function Zw(t,e){if(!Array.isArray(t)||t.length===0)throw new _e(ae.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function OR(t,e){if(e.isInequality()){const r=nv(t),s=e.field;if(r!==null&&!r.isEqual(s))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${r.toString()}' and '${s.toString()}'`);const i=OC(t);i!==null&&Wj(t,s,i)}const n=function(s,i){for(const o of s)for(const a of o.getFlattenedFilters())if(i.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(s){switch(s){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(n!==null)throw n===e.op?new _e(ae.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new _e(ae.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}function Wj(t,e,n){if(!n.isEqual(e))throw new _e(ae.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${e.toString()}' and so you must also use '${e.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${n.toString()}' instead.`)}class Gj{convertValue(e,n="none"){switch(yo(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Mt(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(_o(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw Se()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Ao(e,(s,i)=>{r[s]=this.convertValue(i,n)}),r}convertGeoPoint(e){return new hu(Mt(e.latitude),Mt(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=Jy(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(Sc(e));default:return null}}convertTimestamp(e){const n=Ri(e);return new Dt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=_t.fromString(e);yt(eR(r));const s=new Cc(r.get(1),r.get(3)),i=new Ie(r.popFirst(5));return s.isEqual(n)||Us(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}/** * @license * Copyright 2020 Google LLC * @@ -1949,7 +1949,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function OR(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}/** + */function Rv(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}/** * @license * Copyright 2020 Google LLC * @@ -1964,7 +1964,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Dl{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class NR extends RR{constructor(e,n,r,s,i,o){super(e,n,r,s,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new Eh(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(Iv("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class Eh extends NR{data(e={}){return super.data(e)}}class DR{constructor(e,n,r,s){this._firestore=e,this._userDataWriter=n,this._snapshot=s,this.metadata=new Dl(s.hasPendingWrites,s.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new Eh(this._firestore,this._userDataWriter,r.key,r,new Dl(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new _e(ae.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(s,i){if(s._snapshot.oldDocs.isEmpty()){let o=0;return s._snapshot.docChanges.map(a=>{const l=new Eh(s._firestore,s._userDataWriter,a.doc.key,a.doc,new Dl(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:o++}})}{let o=s._snapshot.oldDocs;return s._snapshot.docChanges.filter(a=>i||a.type!==3).map(a=>{const l=new Eh(s._firestore,s._userDataWriter,a.doc.key,a.doc,new Dl(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);let c=-1,u=-1;return a.type!==0&&(c=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),a.type!==1&&(o=o.add(a.doc),u=o.indexOf(a.doc.key)),{type:Gj(a.type),doc:l,oldIndex:c,newIndex:u}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function Gj(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Se()}}/** + */class Dl{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class NR extends AR{constructor(e,n,r,s,i,o){super(e,n,r,s,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new Th(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(kv("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class Th extends NR{data(e={}){return super.data(e)}}class DR{constructor(e,n,r,s){this._firestore=e,this._userDataWriter=n,this._snapshot=s,this.metadata=new Dl(s.hasPendingWrites,s.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new Th(this._firestore,this._userDataWriter,r.key,r,new Dl(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new _e(ae.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(s,i){if(s._snapshot.oldDocs.isEmpty()){let o=0;return s._snapshot.docChanges.map(a=>{const l=new Th(s._firestore,s._userDataWriter,a.doc.key,a.doc,new Dl(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:o++}})}{let o=s._snapshot.oldDocs;return s._snapshot.docChanges.filter(a=>i||a.type!==3).map(a=>{const l=new Th(s._firestore,s._userDataWriter,a.doc.key,a.doc,new Dl(s._snapshot.mutatedKeys.has(a.doc.key),s._snapshot.fromCache),s.query.converter);let c=-1,u=-1;return a.type!==0&&(c=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),a.type!==1&&(o=o.add(a.doc),u=o.indexOf(a.doc.key)),{type:Yj(a.type),doc:l,oldIndex:c,newIndex:u}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function Yj(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Se()}}/** * @license * Copyright 2020 Google LLC * @@ -1979,7 +1979,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function LR(t){t=Qn(t,Nn);const e=Qn(t.firestore,js);return Aj(cu(e),t._key).then(n=>xR(e,t,n))}class Cv extends Wj{constructor(e){super(),this.firestore=e}convertBytes(e){return new La(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new Nn(this.firestore,null,n)}}function Yj(t){t=Qn(t,Oo);const e=Qn(t.firestore,js),n=cu(e),r=new Cv(e);return AR(t._query),Pj(n,t._query).then(s=>new DR(e,r,t,s))}function XX(t,e,n,...r){t=Qn(t,Nn);const s=Qn(t.firestore,js),i=Wd(s);let o;return o=typeof(e=Bt(e))=="string"||e instanceof uu?IR(i,"updateDoc",t._key,e,n,r):bR(i,"updateDoc",t._key,e),qd(s,[o.toMutation(t._key,Bn.exists(!0))])}function JX(t){return qd(Qn(t.firestore,js),[new Fd(t._key,Bn.none())])}function ZX(t,e){const n=Qn(t.firestore,js),r=Dj(t),s=OR(t.converter,e);return qd(n,[TR(Wd(t.firestore),"addDoc",r._key,s,t.converter!==null,{}).toMutation(r._key,Bn.exists(!1))]).then(()=>r)}function Rv(t,...e){var n,r,s;t=Bt(t);let i={includeMetadataChanges:!1},o=0;typeof e[o]!="object"||zw(e[o])||(i=e[o],o++);const a={includeMetadataChanges:i.includeMetadataChanges};if(zw(e[o])){const h=e[o];e[o]=(n=h.next)===null||n===void 0?void 0:n.bind(h),e[o+1]=(r=h.error)===null||r===void 0?void 0:r.bind(h),e[o+2]=(s=h.complete)===null||s===void 0?void 0:s.bind(h)}let l,c,u;if(t instanceof Nn)c=Qn(t.firestore,js),u=Nd(t._key.path),l={next:h=>{e[o]&&e[o](xR(c,t,h))},error:e[o+1],complete:e[o+2]};else{const h=Qn(t,Oo);c=Qn(h.firestore,js),u=h._query;const f=new Cv(c);l={next:v=>{e[o]&&e[o](new DR(c,f,h,v))},error:e[o+1],complete:e[o+2]},AR(t._query)}return function(f,v,k,I){const T=new vv(I),g=new _v(v,T,k);return f.asyncQueue.enqueueAndForget(async()=>pv(await df(f),g)),()=>{T.La(),f.asyncQueue.enqueueAndForget(async()=>mv(await df(f),g))}}(cu(c),u,a,l)}function qd(t,e){return function(r,s){const i=new Os;return r.asyncQueue.enqueueAndForget(async()=>mj(await Rj(r),s,i)),i.promise}(cu(t),e)}function xR(t,e,n){const r=n.docs.get(e._key),s=new Cv(t);return new NR(t,s,e._key,r,new Dl(n.hasPendingWrites,n.fromCache),e.converter)}/** + */function LR(t){t=Ln(t,wn);const e=Ln(t.firestore,ss);return Pj(cu(e),t._key).then(n=>MR(e,t,n))}class Av extends Gj{constructor(e){super(),this.firestore=e}convertBytes(e){return new La(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new wn(this.firestore,null,n)}}function qj(t){t=Ln(t,Oo);const e=Ln(t.firestore,ss),n=cu(e),r=new Av(e);return PR(t._query),Oj(n,t._query).then(s=>new DR(e,r,t,s))}function XX(t,e,n){t=Ln(t,wn);const r=Ln(t.firestore,ss),s=Rv(t.converter,e,n);return pu(r,[Tv(fu(r),"setDoc",t._key,s,t.converter!==null,n).toMutation(t._key,Dn.none())])}function JX(t,e,n,...r){t=Ln(t,wn);const s=Ln(t.firestore,ss),i=fu(s);let o;return o=typeof(e=Bt(e))=="string"||e instanceof uu?kR(i,"updateDoc",t._key,e,n,r):IR(i,"updateDoc",t._key,e),pu(s,[o.toMutation(t._key,Dn.exists(!0))])}function ZX(t){return pu(Ln(t.firestore,ss),[new Ud(t._key,Dn.none())])}function eJ(t,e){const n=Ln(t.firestore,ss),r=Lj(t),s=Rv(t.converter,e);return pu(n,[Tv(fu(t.firestore),"addDoc",r._key,s,t.converter!==null,{}).toMutation(r._key,Dn.exists(!1))]).then(()=>r)}function Pv(t,...e){var n,r,s;t=Bt(t);let i={includeMetadataChanges:!1},o=0;typeof e[o]!="object"||Xw(e[o])||(i=e[o],o++);const a={includeMetadataChanges:i.includeMetadataChanges};if(Xw(e[o])){const h=e[o];e[o]=(n=h.next)===null||n===void 0?void 0:n.bind(h),e[o+1]=(r=h.error)===null||r===void 0?void 0:r.bind(h),e[o+2]=(s=h.complete)===null||s===void 0?void 0:s.bind(h)}let l,c,u;if(t instanceof wn)c=Ln(t.firestore,ss),u=Ld(t._key.path),l={next:h=>{e[o]&&e[o](MR(c,t,h))},error:e[o+1],complete:e[o+2]};else{const h=Ln(t,Oo);c=Ln(h.firestore,ss),u=h._query;const f=new Av(c);l={next:v=>{e[o]&&e[o](new DR(c,f,h,v))},error:e[o+1],complete:e[o+2]},PR(t._query)}return function(f,v,k,I){const T=new vv(I),g=new _v(v,T,k);return f.asyncQueue.enqueueAndForget(async()=>pv(await mf(f),g)),()=>{T.La(),f.asyncQueue.enqueueAndForget(async()=>mv(await mf(f),g))}}(cu(c),u,a,l)}function pu(t,e){return function(r,s){const i=new Ns;return r.asyncQueue.enqueueAndForget(async()=>gj(await Aj(r),s,i)),i.promise}(cu(t),e)}function MR(t,e,n){const r=n.docs.get(e._key),s=new Av(t);return new NR(t,s,e._key,r,new Dl(n.hasPendingWrites,n.fromCache),e.converter)}/** * @license * Copyright 2020 Google LLC * @@ -1994,7 +1994,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class qj{constructor(e,n){this._firestore=e,this._commitHandler=n,this._mutations=[],this._committed=!1,this._dataReader=Wd(e)}set(e,n,r){this._verifyNotCommitted();const s=rm(e,this._firestore),i=OR(s.converter,n,r),o=TR(this._dataReader,"WriteBatch.set",s._key,i,s.converter!==null,r);return this._mutations.push(o.toMutation(s._key,Bn.none())),this}update(e,n,r,...s){this._verifyNotCommitted();const i=rm(e,this._firestore);let o;return o=typeof(n=Bt(n))=="string"||n instanceof uu?IR(this._dataReader,"WriteBatch.update",i._key,n,r,s):bR(this._dataReader,"WriteBatch.update",i._key,n),this._mutations.push(o.toMutation(i._key,Bn.exists(!0))),this}delete(e){this._verifyNotCommitted();const n=rm(e,this._firestore);return this._mutations=this._mutations.concat(new Fd(n._key,Bn.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new _e(ae.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function rm(t,e){if((t=Bt(t)).firestore!==e)throw new _e(ae.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}/** + */class Kj{constructor(e,n){this._firestore=e,this._commitHandler=n,this._mutations=[],this._committed=!1,this._dataReader=fu(e)}set(e,n,r){this._verifyNotCommitted();const s=rm(e,this._firestore),i=Rv(s.converter,n,r),o=Tv(this._dataReader,"WriteBatch.set",s._key,i,s.converter!==null,r);return this._mutations.push(o.toMutation(s._key,Dn.none())),this}update(e,n,r,...s){this._verifyNotCommitted();const i=rm(e,this._firestore);let o;return o=typeof(n=Bt(n))=="string"||n instanceof uu?kR(this._dataReader,"WriteBatch.update",i._key,n,r,s):IR(this._dataReader,"WriteBatch.update",i._key,n),this._mutations.push(o.toMutation(i._key,Dn.exists(!0))),this}delete(e){this._verifyNotCommitted();const n=rm(e,this._firestore);return this._mutations=this._mutations.concat(new Ud(n._key,Dn.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new _e(ae.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function rm(t,e){if((t=Bt(t)).firestore!==e)throw new _e(ae.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}/** * @license * Copyright 2020 Google LLC * @@ -2009,11 +2009,11 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function eJ(t){return cu(t=Qn(t,js)),new qj(t,e=>qd(t,e))}(function(e,n=!0){(function(s){Za=s})(Di),ns(new kr("firestore",(r,{instanceIdentifier:s,options:i})=>{const o=r.getProvider("app").getImmediate(),a=new js(new eU(r.getProvider("auth-internal")),new sU(r.getProvider("app-check-internal")),function(c,u){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new _e(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Cc(c.options.projectId,u)}(o,s),o);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a},"PUBLIC").setMultipleInstances(!0)),zn(mw,"4.2.0",e),zn(mw,"4.2.0","esm2017")})();function Kj(t){return Array.isArray(t)?t:[t]}const zj=["title","titleTemplate","script","style","noscript"],wh=["base","meta","link","style","script","noscript"],Qj=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Xj=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],MR=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Jj=typeof window<"u";function FR(t){let e=9;for(let n=0;n>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Jw(t){return t._h||FR(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,n])=>`${e}:${String(n)}`).join(",")}`)}function VR(t,e){const{props:n,tag:r}=t;if(Xj.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return e&&!e(o)?!1:`${r}:${i}:${o}`}return!1}function Zw(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function Zj(t,e,n){const r={tag:t,props:await UR(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return MR.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent"].includes(s)||zj.includes(r.tag))&&(r[s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/({...r,props:{...r.props,content:s}})):r}function eB(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(e=>t[e])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function UR(t,e){for(const n of Object.keys(t)){if(n==="class"){t[n]=eB(t[n]);continue}if(t[n]instanceof Promise&&(t[n]=await t[n]),!e&&!MR.includes(n)){const r=String(t[n]),s=n.startsWith("data-");r==="true"||r===""?t[n]=s?"true":!0:t[n]||(s&&r==="false"?t[n]="false":delete t[n])}}return t}const tB=10;async function nB(t){const e=[];return Object.entries(t.resolvedInput).filter(([n,r])=>typeof r<"u"&&Qj.includes(n)).forEach(([n,r])=>{const s=Kj(r);e.push(...s.map(i=>Zj(n,i,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((n,r)=>(n._e=t._i,t.mode&&(n._m=t.mode),n._p=(t._i<l&&l[c]||void 0,e):a=e[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=t;try{s=decodeURI(t)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(Zs)&&(t.endsWith(Zs)&&(t=t.slice(0,-Zs.length).trim()),t.startsWith(Zs)&&(t=t.slice(Zs.length).trim()),t=t.replace(new RegExp(`\\${Zs}\\s*\\${Zs}`,"g"),Zs),t=Gi(t,{separator:n},n)),t}async function sB(t){const e={tag:t.tagName.toLowerCase(),props:await UR(t.getAttributeNames().reduce((n,r)=>({...n,[r]:t.getAttribute(r)}),{})),innerHTML:t.innerHTML};return e._d=VR(e),e}async function jR(t,e={}){var u;const n=e.document||t.resolvedOptions.document;if(!n)return;const r={shouldRender:t.dirty,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await t.resolveTags()).map(h=>({tag:h,id:wh.includes(h.tag)?Jw(h):h.tag,shouldRender:!0}));let i=t._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const h of["body","head"]){const f=(u=n==null?void 0:n[h])==null?void 0:u.children;for(const v of[...f].filter(k=>wh.includes(k.tagName.toLowerCase())))i.elMap[v.getAttribute("data-hid")||Jw(await sB(v))]=v}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(h,f,v){const k=`${h}:${f}`;i.sideEffects[k]=v,delete i.pendingSideEffects[k]}function a({id:h,$el:f,tag:v}){const k=v.tag.endsWith("Attrs");i.elMap[h]=f,k||(["textContent","innerHTML"].forEach(I=>{v[I]&&v[I]!==f[I]&&(f[I]=v[I])}),o(h,"el",()=>{i.elMap[h].remove(),delete i.elMap[h]})),Object.entries(v.props).forEach(([I,T])=>{const g=`attr:${I}`;if(I==="class")for(const m of(T||"").split(" ").filter(Boolean))k&&o(h,`${g}:${m}`,()=>f.classList.remove(m)),!f.classList.contains(m)&&f.classList.add(m);else f.getAttribute(I)!==T&&f.setAttribute(I,T===!0?"":String(T)),k&&o(h,g,()=>f.removeAttribute(I))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const h of s){const{tag:f,shouldRender:v,id:k}=h;if(v){if(f.tag==="title"){n.title=f.textContent;continue}h.$el=h.$el||i.elMap[k],h.$el?a(h):wh.includes(f.tag)&&l.push(h)}}for(const h of l){const f=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),a(h),c[f]=c[f]||n.createDocumentFragment(),c[f].appendChild(h.$el)}for(const h of s)await t.hooks.callHook("dom:renderTag",h,n,o);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(h=>h()),t._dom=i,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:s})}async function iB(t,e={}){const n=e.delayFn||(r=>setTimeout(r,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(r=>n(async()=>{await jR(t,e),delete t._domUpdatePromise,r()}))}function oB(t){return e=>{var r,s;const n=((s=(r=e.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){iB(i,t)}}}}}const aB=["templateParams","htmlAttrs","bodyAttrs"],lB={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(r=>{t.props[r]&&(t.key=t.props[r],delete t.props[r])});const n=VR(t)||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":function(t){const e={};t.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=e[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&aB.includes(r.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{r.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`)}),e[s].props={...l,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(mf(r)>mf(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(wh.includes(r.tag)&&o===0){delete e[s];return}e[s]=r});const n=[];Object.values(e).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),t.tags=n,t.tags=t.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},cB={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{e[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},nT=["script","link","bodyAttrs"];function rT(t){const e={},n={};return Object.entries(t.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"?n[r]=s:e[r]=s}),{props:e,eventHandlers:n}}const uB={hooks:{"ssr:render":function(t){t.tags=t.tags.map(e=>(!nT.includes(e.tag)||!Object.entries(e.props).find(([n,r])=>n.startsWith("on")&&typeof r=="function")||(e.props=rT(e).props),e))},"tags:resolve":function(t){t.tags=t.tags.map(e=>{if(!nT.includes(e.tag))return e;const{props:n,eventHandlers:r}=rT(e);return Object.keys(r).length&&(e.props=n,e._eventHandlers=r),e})},"dom:renderTag":function(t,e,n){if(!t.tag._eventHandlers)return;const r=t.tag.tag==="bodyAttrs"?e.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const o=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),l=`data-h-${a}`;if(n(t.id,o,()=>{}),t.$el.hasAttribute(l))return;const c=i;t.$el.setAttribute(l,""),r.addEventListener(a,c),t.entry&&n(t.id,o,()=>{r.removeEventListener(a,c),t.$el.removeAttribute(l)})})}}},hB=["link","style","script","noscript"],fB={hooks:{"tag:normalise":({tag:t})=>{t.key&&hB.includes(t.tag)&&(t.props["data-hid"]=t._h=FR(t.key))}}},dB={hooks:{"tags:resolve":t=>{const e=n=>{var r;return(r=t.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of rB)for(const s of t.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=e(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}t.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>mf(n)-mf(r))}}},pB={hooks:{"tags:resolve":t=>{var o;const{tags:e}=t,n=(o=e.find(a=>a.tag==="title"))==null?void 0:o.textContent,r=e.findIndex(a=>a.tag==="templateParams"),s=r!==-1?e[r].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Gi(s.pageTitle||n||"",s,i);for(const a of e)a.processTemplateParams!==!1&&(["titleTemplate","title"].includes(a.tag)&&typeof a.textContent=="string"?a.textContent=Gi(a.textContent,s,i):a.tag==="meta"&&typeof a.props.content=="string"?a.props.content=Gi(a.props.content,s,i):a.tag==="link"&&typeof a.props.href=="string"?a.props.href=Gi(a.props.href,s,i):a.processTemplateParams===!0&&(a.innerHTML?a.innerHTML=Gi(a.innerHTML,s,i):a.textContent&&(a.textContent=Gi(a.textContent,s,i))));t.tags=e.filter(a=>a.tag!=="templateParams")}}},mB={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n=e.findIndex(s=>s.tag==="titleTemplate");const r=e.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=Zw(e[n].textContent,e[r].textContent);s!==null?e[r].textContent=s||e[r].textContent:delete e[r]}else if(n!==-1){const s=Zw(e[n].textContent);s!==null&&(e[n].textContent=s,e[n].tag="title",n=-1)}n!==-1&&delete e[n],t.tags=e.filter(Boolean)}}};let BR;function gB(t={}){const e=_B(t);return e.use(oB()),BR=e}function sT(t,e){return!t||t==="server"&&e||t==="client"&&!e}function _B(t={}){const e=Jk();e.addHooks(t.hooks||{}),t.document=t.document||(Jj?document:void 0);const n=!t.document;t.plugins=[lB,cB,uB,fB,dB,pB,mB,...(t==null?void 0:t.plugins)||[]];const r=()=>{o.dirty=!0,e.callHook("entries:updated",o)};let s=0,i=[];const o={dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return i},use(a){const l=typeof a=="function"?a(o):a;sT(l.mode,n)&&e.addHooks(l.hooks||{})},push(a,l){l==null||delete l.head;const c={_i:s++,input:a,...l};return sT(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(u=>u._i!==c._i),e.callHook("entries:updated",o),r()},patch(u){i=i.map(h=>(h._i===c._i&&(h.input=c.input=u),h)),r()}}},async resolveTags(){const a={tags:[],entries:[...i]};await e.callHook("entries:resolve",a);for(const l of a.entries){const c=l.resolvedInput||l.input;if(l.resolvedInput=await(l.transform?l.transform(c):c),l.resolvedInput)for(const u of await nB(l)){const h={tag:u,entry:l,resolvedOptions:o.resolvedOptions};await e.callHook("tag:normalise",h),a.tags.push(h.tag)}}return await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),a.tags},ssr:n};return t.plugins.forEach(a=>o.use(a)),o.hooks.callHook("init",o),o}function yB(){return BR}const vB=$m.startsWith("3");function EB(t){return typeof t=="function"?t():tt(t)}function gf(t,e=""){if(t instanceof Promise)return t;const n=EB(t);return!t||!n?n:Array.isArray(n)?n.map(r=>gf(r,e)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,tt(s)]:[r,gf(s,r)])):n}const wB={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=gf(e.input)}}},$R="usehead";function TB(t){return{install(n){vB&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide($R,t))}}.install}function bB(t={}){t.domDelayFn=t.domDelayFn||(n=>Ni(()=>setTimeout(()=>n(),0)));const e=gB(t);return e.use(wB),e.install=TB(e),e}const Rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ag="__unhead_injection_handler__";function IB(t){Rg[Ag]=t}function kB(){if(Ag in Rg)return Rg[Ag]();const t=Ut($R);return t||yB()}function SB(t,e={}){const n=e.head||kB();if(n)return n.ssr?n.push(t,e):CB(n,t,e)}function CB(t,e,n={}){const r=Ze(!1),s=Ze({});hk(()=>{s.value=r.value?{}:gf(e)});const i=t.push(s.value,n);return Vt(s,a=>{i.patch(a)}),Or()&&(ad(()=>{i.dispose()}),_k(()=>{r.value=!0}),gk(()=>{r.value=!1})),i}function sm(t){return t!==null&&typeof t=="object"}function Pg(t,e,n=".",r){if(!sm(e))return Pg(t,{},n,r);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const o=t[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:sm(o)&&sm(s[i])?s[i]=Pg(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function RB(t){return(...e)=>e.reduce((n,r)=>Pg(n,r,"",t),{})}const AB=RB();function PB(t,e){try{return e in t}catch{return!1}}var OB=Object.defineProperty,NB=(t,e,n)=>e in t?OB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Yi=(t,e,n)=>(NB(t,typeof e!="symbol"?e+"":e,n),n);class Og extends Error{constructor(e,n={}){super(e,n),Yi(this,"statusCode",500),Yi(this,"fatal",!1),Yi(this,"unhandled",!1),Yi(this,"statusMessage"),Yi(this,"data"),Yi(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:Dg(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=HR(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}Yi(Og,"__h3_error__",!0);function Ng(t){if(typeof t=="string")return new Og(t);if(DB(t))return t;const e=new Og(t.message??t.statusMessage??"",{cause:t.cause||t});if(PB(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=Dg(t.statusCode,e.statusCode):t.status&&(e.statusCode=Dg(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;HR(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function DB(t){var e;return((e=t==null?void 0:t.constructor)==null?void 0:e.__h3_error__)===!0}const LB=/[^\u0009\u0020-\u007E]/g;function HR(t=""){return t.replace(LB,"")}function Dg(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const WR=Symbol("layout-meta"),du=Symbol("route"),Nr=()=>{var t;return(t=ct())==null?void 0:t.$router},nl=()=>my()?Ut(du,ct()._route):ct()._route;/*! @__NO_SIDE_EFFECTS__ */const xB=(t,e,n={})=>{const r=ct(),s=n.global||typeof t!="string",i=typeof t!="string"?t:e;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",t);return}s?r._middleware.global.push(i):r._middleware.named[t]=i},MB=()=>{try{if(ct()._processingMiddleware)return!0}catch{return!0}return!1},Lg=(t,e)=>{t||(t="/");const n=typeof t=="string"?t:qk(t.path||"/",t.query||{})+(t.hash||"");if(e!=null&&e.open){{const{target:a="_blank",windowFeatures:l={}}=e.open,c=Object.entries(l).filter(([u,h])=>h!==void 0).map(([u,h])=>`${u.toLowerCase()}=${h}`).join(", ");open(n,a,c)}return Promise.resolve()}const r=(e==null?void 0:e.external)||Co(n,{acceptRelative:!0});if(r){if(!(e!=null&&e.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=hd(n).protocol;if(a&&Px(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const s=MB();if(!r&&s)return t;const i=Nr(),o=ct();return r?(e!=null&&e.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e!=null&&e.replace?i.replace(t):i.push(t)},Kd=()=>ed(ct().payload,"error"),Zo=t=>{const e=Av(t);try{const n=ct(),r=Kd();n.hooks.callHook("app:error",e),r.value=r.value||e}catch{throw e}return e},FB=async(t={})=>{const e=ct(),n=Kd();e.callHook("app:error:cleared",t),t.redirect&&await Nr().replace(t.redirect),n.value=null},VB=t=>!!(t&&typeof t=="object"&&"__nuxt_error"in t),Av=t=>{const e=Ng(t);return e.__nuxt_error=!0,e},iT=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),tJ=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),UB=t=>{const e=ct();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{iT(t)}):iT(t)},jB="$s";function GR(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,r]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=jB+n,i=ct(),o=ed(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(rt(a))return i.payload.state[s]=a,a;o.value=a}return o}const BB="modulepreload",$B=function(t,e){return t[0]==="."?new URL(t,e).href:t},oT={},HB=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=$B(i,r),i in oT)return;oT[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===i&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":BB,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},mr=(...t)=>HB(...t).catch(e=>{const n=new Event("nuxt.preloadError");throw n.payload=e,window.dispatchEvent(n),e}),WB=-1,GB=-2,YB=-3,qB=-4,KB=-5,zB=-6;function QB(t,e){return XB(JSON.parse(t),e)}function XB(t,e){if(typeof t=="number")return s(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function s(i,o=!1){if(i===WB)return;if(i===YB)return NaN;if(i===qB)return 1/0;if(i===KB)return-1/0;if(i===zB)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=e==null?void 0:e[l];if(c)return r[i]=c(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const u=new Set;r[i]=u;for(let v=1;vi?YR(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const lT="json";function t$(t,e={}){const n=new URL(t,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+t);if(n.host!=="localhost"||Co(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const r=e.hash||(e.fresh?Date.now():"");return qa(fd().app.baseURL,n.pathname,r?`_payload.${r}.${lT}`:`_payload.${lT}`)}async function YR(t){const e=fetch(t).then(n=>n.text().then(qR));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function n$(t=nl().path){return!!ct().payload.prerenderedAt}let th=null;async function r$(){if(th)return th;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=qR(t.textContent||""),n=t.dataset.src?await YR(t.dataset.src):void 0;return th={...e,...n,...window.__NUXT__},th}function qR(t){return QB(t,ct()._payloadRevivers)}function Th(t,e){ct()._payloadRevivers[t]=e}function s$(t={}){const e=t.path||window.location.pathname;let n={};try{n=Wh(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(n==null?void 0:n.path)!==e||(n==null?void 0:n.expires){Th("FirebaseTimestamp",t=>{const e=JSON.parse(t);return xs(new Dt(e.seconds,e.nanoseconds))}),Th("FirebaseGeoPoint",t=>{const e=JSON.parse(t);return xs(new hu(e.latitude,e.longitude))}),Th("DocumentData",t=>{const e=typeof t=="string"?JSON.parse(t):t,n=e.id;return delete e.id,Object.defineProperty(e,"id",{value:n})})}),cT={NuxtError:t=>Av(t),EmptyShallowRef:t=>wa(t==="_"?void 0:t==="0n"?BigInt(0):Wh(t)),EmptyRef:t=>Ze(t==="_"?void 0:t==="0n"?BigInt(0):Wh(t)),ShallowRef:t=>wa(t),ShallowReactive:t=>Gc(t),Ref:t=>Ze(t),Reactive:t=>ts(t)},o$=en({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const r in cT)Th(r,cT[r]);Object.assign(t.payload,([e,n]=_i(()=>t.runWithContext(r$)),e=await e,n(),e)),window.__NUXT__=t.payload}}),a$=[],l$=en({name:"nuxt:head",enforce:"pre",setup(t){const e=bB({plugins:a$});IB(()=>ct().vueApp._context.provides.usehead),t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await jR(e)};e.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r)}}});function c$(){return KR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function KR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const u$=typeof Proxy=="function",h$="devtools-plugin:setup",f$="plugin:settings:set";let Ho,Mg;function d$(){var t;return Ho!==void 0||(typeof window<"u"&&window.performance?(Ho=!0,Mg=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Ho=!0,Mg=global.perf_hooks.performance):Ho=!1),Ho}function p$(){return d$()?Mg.now():Date.now()}class m${constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const o in e.settings){const a=e.settings[o];r[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return p$()}},n&&n.on(f$,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function zd(t,e){const n=t,r=KR(),s=c$(),i=u$&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(h$,t,e);else{const o=i?new m$(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! + */function tJ(t){return cu(t=Ln(t,ss)),new Kj(t,e=>pu(t,e))}(function(e,n=!0){(function(s){Za=s})(Di),ns(new kr("firestore",(r,{instanceIdentifier:s,options:i})=>{const o=r.getProvider("app").getImmediate(),a=new ss(new tU(r.getProvider("auth-internal")),new iU(r.getProvider("app-check-internal")),function(c,u){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new _e(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Cc(c.options.projectId,u)}(o,s),o);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a},"PUBLIC").setMultipleInstances(!0)),Qn(_w,"4.2.0",e),Qn(_w,"4.2.0","esm2017")})();function zj(t){return Array.isArray(t)?t:[t]}const Qj=["title","titleTemplate","script","style","noscript"],bh=["base","meta","link","style","script","noscript"],Xj=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Jj=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],xR=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"],Zj=typeof window<"u";function FR(t){let e=9;for(let n=0;n>>9)+65536).toString(16).substring(1,8).toLowerCase()}function eT(t){return t._h||FR(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,n])=>`${e}:${String(n)}`).join(",")}`)}function VR(t,e){const{props:n,tag:r}=t;if(Jj.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return e&&!e(o)?!1:`${r}:${i}:${o}`}return!1}function tT(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function eB(t,e,n){const r={tag:t,props:await UR(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return xR.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent"].includes(s)||Qj.includes(r.tag))&&(r[s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.props.children&&(r.innerHTML=r.props.children,delete r.props.children),r.tag==="script"&&(typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),r.innerHTML&&["application/ld+json","application/json"].includes(r.props.type)&&(r.innerHTML=r.innerHTML.replace(/({...r,props:{...r.props,content:s}})):r}function tB(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(e=>t[e])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function UR(t,e){for(const n of Object.keys(t)){if(n==="class"){t[n]=tB(t[n]);continue}if(t[n]instanceof Promise&&(t[n]=await t[n]),!e&&!xR.includes(n)){const r=String(t[n]),s=n.startsWith("data-");r==="true"||r===""?t[n]=s?"true":!0:t[n]||(s&&r==="false"?t[n]="false":delete t[n])}}return t}const nB=10;async function rB(t){const e=[];return Object.entries(t.resolvedInput).filter(([n,r])=>typeof r<"u"&&Xj.includes(n)).forEach(([n,r])=>{const s=zj(r);e.push(...s.map(i=>eB(n,i,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((n,r)=>(n._e=t._i,t.mode&&(n._m=t.mode),n._p=(t._i<l&&l[c]||void 0,e):a=e[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=t;try{s=decodeURI(t)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(Zs)&&(t.endsWith(Zs)&&(t=t.slice(0,-Zs.length).trim()),t.startsWith(Zs)&&(t=t.slice(Zs.length).trim()),t=t.replace(new RegExp(`\\${Zs}\\s*\\${Zs}`,"g"),Zs),t=Gi(t,{separator:n},n)),t}async function iB(t){const e={tag:t.tagName.toLowerCase(),props:await UR(t.getAttributeNames().reduce((n,r)=>({...n,[r]:t.getAttribute(r)}),{})),innerHTML:t.innerHTML};return e._d=VR(e),e}async function jR(t,e={}){var u;const n=e.document||t.resolvedOptions.document;if(!n)return;const r={shouldRender:t.dirty,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await t.resolveTags()).map(h=>({tag:h,id:bh.includes(h.tag)?eT(h):h.tag,shouldRender:!0}));let i=t._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const h of["body","head"]){const f=(u=n==null?void 0:n[h])==null?void 0:u.children;for(const v of[...f].filter(k=>bh.includes(k.tagName.toLowerCase())))i.elMap[v.getAttribute("data-hid")||eT(await iB(v))]=v}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(h,f,v){const k=`${h}:${f}`;i.sideEffects[k]=v,delete i.pendingSideEffects[k]}function a({id:h,$el:f,tag:v}){const k=v.tag.endsWith("Attrs");i.elMap[h]=f,k||(["textContent","innerHTML"].forEach(I=>{v[I]&&v[I]!==f[I]&&(f[I]=v[I])}),o(h,"el",()=>{i.elMap[h].remove(),delete i.elMap[h]})),Object.entries(v.props).forEach(([I,T])=>{const g=`attr:${I}`;if(I==="class")for(const m of(T||"").split(" ").filter(Boolean))k&&o(h,`${g}:${m}`,()=>f.classList.remove(m)),!f.classList.contains(m)&&f.classList.add(m);else f.getAttribute(I)!==T&&f.setAttribute(I,T===!0?"":String(T)),k&&o(h,g,()=>f.removeAttribute(I))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const h of s){const{tag:f,shouldRender:v,id:k}=h;if(v){if(f.tag==="title"){n.title=f.textContent;continue}h.$el=h.$el||i.elMap[k],h.$el?a(h):bh.includes(f.tag)&&l.push(h)}}for(const h of l){const f=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),a(h),c[f]=c[f]||n.createDocumentFragment(),c[f].appendChild(h.$el)}for(const h of s)await t.hooks.callHook("dom:renderTag",h,n,o);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(h=>h()),t._dom=i,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:s})}async function oB(t,e={}){const n=e.delayFn||(r=>setTimeout(r,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(r=>n(async()=>{await jR(t,e),delete t._domUpdatePromise,r()}))}function aB(t){return e=>{var r,s;const n=((s=(r=e.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){oB(i,t)}}}}}const lB=["templateParams","htmlAttrs","bodyAttrs"],cB={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(r=>{t.props[r]&&(t.key=t.props[r],delete t.props[r])});const n=VR(t)||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":function(t){const e={};t.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=e[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&lB.includes(r.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{r.props[c]&&l[c]&&(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`)}),e[s].props={...l,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(_f(r)>_f(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(bh.includes(r.tag)&&o===0){delete e[s];return}e[s]=r});const n=[];Object.values(e).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),t.tags=n,t.tags=t.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},uB={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{e[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},sT=["script","link","bodyAttrs"];function iT(t){const e={},n={};return Object.entries(t.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"?n[r]=s:e[r]=s}),{props:e,eventHandlers:n}}const hB={hooks:{"ssr:render":function(t){t.tags=t.tags.map(e=>(!sT.includes(e.tag)||!Object.entries(e.props).find(([n,r])=>n.startsWith("on")&&typeof r=="function")||(e.props=iT(e).props),e))},"tags:resolve":function(t){t.tags=t.tags.map(e=>{if(!sT.includes(e.tag))return e;const{props:n,eventHandlers:r}=iT(e);return Object.keys(r).length&&(e.props=n,e._eventHandlers=r),e})},"dom:renderTag":function(t,e,n){if(!t.tag._eventHandlers)return;const r=t.tag.tag==="bodyAttrs"?e.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const o=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),l=`data-h-${a}`;if(n(t.id,o,()=>{}),t.$el.hasAttribute(l))return;const c=i;t.$el.setAttribute(l,""),r.addEventListener(a,c),t.entry&&n(t.id,o,()=>{r.removeEventListener(a,c),t.$el.removeAttribute(l)})})}}},fB=["link","style","script","noscript"],dB={hooks:{"tag:normalise":({tag:t})=>{t.key&&fB.includes(t.tag)&&(t.props["data-hid"]=t._h=FR(t.key))}}},pB={hooks:{"tags:resolve":t=>{const e=n=>{var r;return(r=t.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of sB)for(const s of t.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=e(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}t.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>_f(n)-_f(r))}}},mB={hooks:{"tags:resolve":t=>{var o;const{tags:e}=t,n=(o=e.find(a=>a.tag==="title"))==null?void 0:o.textContent,r=e.findIndex(a=>a.tag==="templateParams"),s=r!==-1?e[r].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Gi(s.pageTitle||n||"",s,i);for(const a of e)a.processTemplateParams!==!1&&(["titleTemplate","title"].includes(a.tag)&&typeof a.textContent=="string"?a.textContent=Gi(a.textContent,s,i):a.tag==="meta"&&typeof a.props.content=="string"?a.props.content=Gi(a.props.content,s,i):a.tag==="link"&&typeof a.props.href=="string"?a.props.href=Gi(a.props.href,s,i):a.processTemplateParams===!0&&(a.innerHTML?a.innerHTML=Gi(a.innerHTML,s,i):a.textContent&&(a.textContent=Gi(a.textContent,s,i))));t.tags=e.filter(a=>a.tag!=="templateParams")}}},gB={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n=e.findIndex(s=>s.tag==="titleTemplate");const r=e.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=tT(e[n].textContent,e[r].textContent);s!==null?e[r].textContent=s||e[r].textContent:delete e[r]}else if(n!==-1){const s=tT(e[n].textContent);s!==null&&(e[n].textContent=s,e[n].tag="title",n=-1)}n!==-1&&delete e[n],t.tags=e.filter(Boolean)}}};let BR;function _B(t={}){const e=yB(t);return e.use(aB()),BR=e}function oT(t,e){return!t||t==="server"&&e||t==="client"&&!e}function yB(t={}){const e=eS();e.addHooks(t.hooks||{}),t.document=t.document||(Zj?document:void 0);const n=!t.document;t.plugins=[cB,uB,hB,dB,pB,mB,gB,...(t==null?void 0:t.plugins)||[]];const r=()=>{o.dirty=!0,e.callHook("entries:updated",o)};let s=0,i=[];const o={dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return i},use(a){const l=typeof a=="function"?a(o):a;oT(l.mode,n)&&e.addHooks(l.hooks||{})},push(a,l){l==null||delete l.head;const c={_i:s++,input:a,...l};return oT(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(u=>u._i!==c._i),e.callHook("entries:updated",o),r()},patch(u){i=i.map(h=>(h._i===c._i&&(h.input=c.input=u),h)),r()}}},async resolveTags(){const a={tags:[],entries:[...i]};await e.callHook("entries:resolve",a);for(const l of a.entries){const c=l.resolvedInput||l.input;if(l.resolvedInput=await(l.transform?l.transform(c):c),l.resolvedInput)for(const u of await rB(l)){const h={tag:u,entry:l,resolvedOptions:o.resolvedOptions};await e.callHook("tag:normalise",h),a.tags.push(h.tag)}}return await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),a.tags},ssr:n};return t.plugins.forEach(a=>o.use(a)),o.hooks.callHook("init",o),o}function vB(){return BR}const EB=$m.startsWith("3");function wB(t){return typeof t=="function"?t():tt(t)}function yf(t,e=""){if(t instanceof Promise)return t;const n=wB(t);return!t||!n?n:Array.isArray(n)?n.map(r=>yf(r,e)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,tt(s)]:[r,yf(s,r)])):n}const TB={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=yf(e.input)}}},$R="usehead";function bB(t){return{install(n){EB&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide($R,t))}}.install}function IB(t={}){t.domDelayFn=t.domDelayFn||(n=>Ni(()=>setTimeout(()=>n(),0)));const e=_B(t);return e.use(TB),e.install=bB(e),e}const Rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ag="__unhead_injection_handler__";function kB(t){Rg[Ag]=t}function SB(){if(Ag in Rg)return Rg[Ag]();const t=Ut($R);return t||vB()}function CB(t,e={}){const n=e.head||SB();if(n)return n.ssr?n.push(t,e):RB(n,t,e)}function RB(t,e,n={}){const r=Ze(!1),s=Ze({});dk(()=>{s.value=r.value?{}:yf(e)});const i=t.push(s.value,n);return Vt(s,a=>{i.patch(a)}),Or()&&(cd(()=>{i.dispose()}),vk(()=>{r.value=!0}),yk(()=>{r.value=!1})),i}function sm(t){return t!==null&&typeof t=="object"}function Pg(t,e,n=".",r){if(!sm(e))return Pg(t,{},n,r);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const o=t[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:sm(o)&&sm(s[i])?s[i]=Pg(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function AB(t){return(...e)=>e.reduce((n,r)=>Pg(n,r,"",t),{})}const PB=AB();function OB(t,e){try{return e in t}catch{return!1}}var NB=Object.defineProperty,DB=(t,e,n)=>e in t?NB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Yi=(t,e,n)=>(DB(t,typeof e!="symbol"?e+"":e,n),n);class Og extends Error{constructor(e,n={}){super(e,n),Yi(this,"statusCode",500),Yi(this,"fatal",!1),Yi(this,"unhandled",!1),Yi(this,"statusMessage"),Yi(this,"data"),Yi(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:Dg(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=HR(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}Yi(Og,"__h3_error__",!0);function Ng(t){if(typeof t=="string")return new Og(t);if(LB(t))return t;const e=new Og(t.message??t.statusMessage??"",{cause:t.cause||t});if(OB(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=Dg(t.statusCode,e.statusCode):t.status&&(e.statusCode=Dg(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;HR(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function LB(t){var e;return((e=t==null?void 0:t.constructor)==null?void 0:e.__h3_error__)===!0}const MB=/[^\u0009\u0020-\u007E]/g;function HR(t=""){return t.replace(MB,"")}function Dg(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const WR=Symbol("layout-meta"),mu=Symbol("route"),Nr=()=>{var t;return(t=ct())==null?void 0:t.$router},nl=()=>my()?Ut(mu,ct()._route):ct()._route;/*! @__NO_SIDE_EFFECTS__ */const xB=(t,e,n={})=>{const r=ct(),s=n.global||typeof t!="string",i=typeof t!="string"?t:e;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",t);return}s?r._middleware.global.push(i):r._middleware.named[t]=i},FB=()=>{try{if(ct()._processingMiddleware)return!0}catch{return!0}return!1},Lg=(t,e)=>{t||(t="/");const n=typeof t=="string"?t:zk(t.path||"/",t.query||{})+(t.hash||"");if(e!=null&&e.open){{const{target:a="_blank",windowFeatures:l={}}=e.open,c=Object.entries(l).filter(([u,h])=>h!==void 0).map(([u,h])=>`${u.toLowerCase()}=${h}`).join(", ");open(n,a,c)}return Promise.resolve()}const r=(e==null?void 0:e.external)||Co(n,{acceptRelative:!0});if(r){if(!(e!=null&&e.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=dd(n).protocol;if(a&&OM(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const s=FB();if(!r&&s)return t;const i=Nr(),o=ct();return r?(e!=null&&e.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e!=null&&e.replace?i.replace(t):i.push(t)},Kd=()=>nd(ct().payload,"error"),Zo=t=>{const e=Ov(t);try{const n=ct(),r=Kd();n.hooks.callHook("app:error",e),r.value=r.value||e}catch{throw e}return e},VB=async(t={})=>{const e=ct(),n=Kd();e.callHook("app:error:cleared",t),t.redirect&&await Nr().replace(t.redirect),n.value=null},UB=t=>!!(t&&typeof t=="object"&&"__nuxt_error"in t),Ov=t=>{const e=Ng(t);return e.__nuxt_error=!0,e},aT=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),nJ=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),jB=t=>{const e=ct();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{aT(t)}):aT(t)},BB="$s";function GR(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,r]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=BB+n,i=ct(),o=nd(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(rt(a))return i.payload.state[s]=a,a;o.value=a}return o}const $B="modulepreload",HB=function(t,e){return t[0]==="."?new URL(t,e).href:t},lT={},WB=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=HB(i,r),i in lT)return;lT[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===i&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":$B,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},mr=(...t)=>WB(...t).catch(e=>{const n=new Event("nuxt.preloadError");throw n.payload=e,window.dispatchEvent(n),e}),GB=-1,YB=-2,qB=-3,KB=-4,zB=-5,QB=-6;function XB(t,e){return JB(JSON.parse(t),e)}function JB(t,e){if(typeof t=="number")return s(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function s(i,o=!1){if(i===GB)return;if(i===qB)return NaN;if(i===KB)return 1/0;if(i===zB)return-1/0;if(i===QB)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=e==null?void 0:e[l];if(c)return r[i]=c(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const u=new Set;r[i]=u;for(let v=1;vi?YR(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const uT="json";function n$(t,e={}){const n=new URL(t,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+t);if(n.host!=="localhost"||Co(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const r=e.hash||(e.fresh?Date.now():"");return qa(pd().app.baseURL,n.pathname,r?`_payload.${r}.${uT}`:`_payload.${uT}`)}async function YR(t){const e=fetch(t).then(n=>n.text().then(qR));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function r$(t=nl().path){return!!ct().payload.prerenderedAt}let rh=null;async function s$(){if(rh)return rh;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=qR(t.textContent||""),n=t.dataset.src?await YR(t.dataset.src):void 0;return rh={...e,...n,...window.__NUXT__},rh}function qR(t){return XB(t,ct()._payloadRevivers)}function Ih(t,e){ct()._payloadRevivers[t]=e}function i$(t={}){const e=t.path||window.location.pathname;let n={};try{n=Yh(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(n==null?void 0:n.path)!==e||(n==null?void 0:n.expires){Ih("FirebaseTimestamp",t=>{const e=JSON.parse(t);return xs(new Dt(e.seconds,e.nanoseconds))}),Ih("FirebaseGeoPoint",t=>{const e=JSON.parse(t);return xs(new hu(e.latitude,e.longitude))}),Ih("DocumentData",t=>{const e=typeof t=="string"?JSON.parse(t):t,n=e.id;return delete e.id,Object.defineProperty(e,"id",{value:n})})}),hT={NuxtError:t=>Ov(t),EmptyShallowRef:t=>wa(t==="_"?void 0:t==="0n"?BigInt(0):Yh(t)),EmptyRef:t=>Ze(t==="_"?void 0:t==="0n"?BigInt(0):Yh(t)),ShallowRef:t=>wa(t),ShallowReactive:t=>Gc(t),Ref:t=>Ze(t),Reactive:t=>ts(t)},a$=en({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const r in hT)Ih(r,hT[r]);Object.assign(t.payload,([e,n]=_i(()=>t.runWithContext(s$)),e=await e,n(),e)),window.__NUXT__=t.payload}}),l$=[],c$=en({name:"nuxt:head",enforce:"pre",setup(t){const e=IB({plugins:l$});kB(()=>ct().vueApp._context.provides.usehead),t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await jR(e)};e.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r)}}});function u$(){return KR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function KR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const h$=typeof Proxy=="function",f$="devtools-plugin:setup",d$="plugin:settings:set";let Ho,xg;function p$(){var t;return Ho!==void 0||(typeof window<"u"&&window.performance?(Ho=!0,xg=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Ho=!0,xg=global.perf_hooks.performance):Ho=!1),Ho}function m$(){return p$()?xg.now():Date.now()}class g${constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const o in e.settings){const a=e.settings[o];r[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(i,a)}catch{}this.fallbacks={getSettings(){return i},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}i=o},now(){return m$()}},n&&n.on(d$,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function zd(t,e){const n=t,r=KR(),s=u$(),i=h$&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(f$,t,e);else{const o=i?new g$(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Ts=typeof window<"u";function g$(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const et=Object.assign;function im(t,e){const n={};for(const r in e){const s=e[r];n[r]=Zn(s)?s.map(t):t(s)}return n}const ql=()=>{},Zn=Array.isArray,_$=/\/$/,y$=t=>t.replace(_$,"");function om(t,e,n="/"){let r,s={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),i=e.slice(l+1,a>-1?a:e.length),s=t(i)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=T$(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function v$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function uT(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function E$(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Pi(e.matched[r],n.matched[s])&&zR(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Pi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function zR(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!w$(t[n],e[n]))return!1;return!0}function w$(t,e){return Zn(t)?hT(t,e):Zn(e)?hT(e,t):t===e}function hT(t,e){return Zn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function T$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Oc;(function(t){t.pop="pop",t.push="push"})(Oc||(Oc={}));var Kl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Kl||(Kl={}));function b$(t){if(!t)if(Ts){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),y$(t)}const I$=/^[^#]+#/;function k$(t,e){return t.replace(I$,"#")+e}function S$(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Qd=()=>({left:window.pageXOffset,top:window.pageYOffset});function C$(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=S$(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function fT(t,e){return(history.state?history.state.position-e:-1)+t}const Fg=new Map;function R$(t,e){Fg.set(t,e)}function A$(t){const e=Fg.get(t);return Fg.delete(t),e}let P$=()=>location.protocol+"//"+location.host;function QR(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let a=s.includes(t.slice(i))?t.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),uT(l,"")}return uT(n,t)+r+s}function O$(t,e,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const v=QR(t,location),k=n.value,I=e.value;let T=0;if(f){if(n.value=v,e.value=f,o&&o===k){o=null;return}T=I?f.position-I.position:0}else r(v);s.forEach(g=>{g(n.value,k,{delta:T,type:Oc.pop,direction:T?T>0?Kl.forward:Kl.back:Kl.unknown})})};function l(){o=n.value}function c(f){s.push(f);const v=()=>{const k=s.indexOf(f);k>-1&&s.splice(k,1)};return i.push(v),v}function u(){const{history:f}=window;f.state&&f.replaceState(et({},f.state,{scroll:Qd()}),"")}function h(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function dT(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?Qd():null}}function N$(t){const{history:e,location:n}=window,r={value:QR(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const h=t.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:P$()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(v){console.error(v),n[u?"replace":"assign"](f)}}function o(l,c){const u=et({},e.state,dT(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=et({},s.value,e.state,{forward:l,scroll:Qd()});i(u.current,u,!0);const h=et({},dT(r.value,l,null),{position:u.position+1},c);i(l,h,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function XR(t){t=b$(t);const e=N$(t),n=O$(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=et({location:"",base:t,go:r,createHref:k$.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function D$(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),XR(t)}function L$(t){return typeof t=="string"||t&&typeof t=="object"}function JR(t){return typeof t=="string"||typeof t=="symbol"}const Vr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ZR=Symbol("");var pT;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(pT||(pT={}));function xa(t,e){return et(new Error,{type:t,[ZR]:!0},e)}function ds(t,e){return t instanceof Error&&ZR in t&&(e==null||!!(t.type&e))}const mT="[^/]+?",x$={sensitive:!1,strict:!1,start:!0,end:!0},M$=/[.+*?^${}()[\]/\\]/g;function F$(t,e){const n=et({},x$,e),r=[];let s=n.start?"^":"";const i=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function U$(t,e){let n=0;const r=t.score,s=e.score;for(;n0&&e[e.length-1]<0}const j$={type:0,value:""},B$=/[a-zA-Z0-9_]/;function $$(t){if(!t)return[[]];if(t==="/")return[[j$]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function h(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(m)}:ql}function o(u){if(JR(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!eA(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!yT(u)&&r.set(u.record.name,u)}function c(u,h){let f,v={},k,I;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw xa(1,{location:u});I=f.record.name,v=et(_T(h.params,f.keys.filter(m=>!m.optional).map(m=>m.name)),u.params&&_T(u.params,f.keys.map(m=>m.name))),k=f.stringify(v)}else if("path"in u)k=u.path,f=n.find(m=>m.re.test(k)),f&&(v=f.parse(k),I=f.record.name);else{if(f=h.name?r.get(h.name):n.find(m=>m.re.test(h.path)),!f)throw xa(1,{location:u,currentLocation:h});I=f.record.name,v=et({},h.params,u.params),k=f.stringify(v)}const T=[];let g=f;for(;g;)T.unshift(g.record),g=g.parent;return{name:I,path:k,params:v,matched:T,meta:q$(T)}}return t.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function _T(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function G$(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Y$(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Y$(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function yT(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function q$(t){return t.reduce((e,n)=>et(e,n.meta),{})}function vT(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function eA(t,e){return e.children.some(n=>n===t||eA(t,n))}const tA=/#/g,K$=/&/g,z$=/\//g,Q$=/=/g,X$=/\?/g,nA=/\+/g,J$=/%5B/g,Z$=/%5D/g,rA=/%5E/g,eH=/%60/g,sA=/%7B/g,tH=/%7C/g,iA=/%7D/g,nH=/%20/g;function Pv(t){return encodeURI(""+t).replace(tH,"|").replace(J$,"[").replace(Z$,"]")}function rH(t){return Pv(t).replace(sA,"{").replace(iA,"}").replace(rA,"^")}function Vg(t){return Pv(t).replace(nA,"%2B").replace(nH,"+").replace(tA,"%23").replace(K$,"%26").replace(eH,"`").replace(sA,"{").replace(iA,"}").replace(rA,"^")}function sH(t){return Vg(t).replace(Q$,"%3D")}function iH(t){return Pv(t).replace(tA,"%23").replace(X$,"%3F")}function oH(t){return t==null?"":iH(t).replace(z$,"%2F")}function Nc(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function aH(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;si&&Vg(i)):[r&&Vg(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function lH(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Zn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const cH=Symbol(""),wT=Symbol(""),Xd=Symbol(""),Ov=Symbol(""),Ug=Symbol("");function gl(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function si(t,e,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=h=>{h===!1?a(xa(4,{from:n,to:e})):h instanceof Error?a(h):L$(h)?a(xa(2,{from:e,to:h})):(i&&r.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),o())},c=t.call(r&&r.instances[s],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(h=>a(h))})}function am(t,e,n,r){const s=[];for(const i of t)for(const o in i.components){let a=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(uH(a)){const c=(a.__vccOpts||a)[e];c&&s.push(si(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=g$(c)?c.default:c;i.components[o]=u;const f=(u.__vccOpts||u)[e];return f&&si(f,n,r,i,o)()}))}}return s}function uH(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function TT(t){const e=Ut(Xd),n=Ut(Ov),r=lt(()=>e.resolve(tt(t.to))),s=lt(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(Pi.bind(null,u));if(f>-1)return f;const v=bT(l[c-2]);return c>1&&bT(u)===v&&h[h.length-1].path!==v?h.findIndex(Pi.bind(null,l[c-2])):f}),i=lt(()=>s.value>-1&&pH(n.params,r.value.params)),o=lt(()=>s.value>-1&&s.value===n.matched.length-1&&zR(n.params,r.value.params));function a(l={}){return dH(l)?e[tt(t.replace)?"replace":"push"](tt(t.to)).catch(ql):Promise.resolve()}if(Ts){const l=Or();if(l){const c={route:r.value,isActive:i.value,isExactActive:o.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(c),hk(()=>{c.route=r.value,c.isActive=i.value,c.isExactActive=o.value},{flush:"post"})}}return{route:r,href:lt(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const hH=ur({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:TT,setup(t,{slots:e}){const n=ts(TT(t)),{options:r}=Ut(Xd),s=lt(()=>({[IT(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[IT(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:On("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),fH=hH;function dH(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function pH(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Zn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function bT(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const IT=(t,e,n)=>t??e??n,mH=ur({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Ut(Ug),s=lt(()=>t.route||r.value),i=Ut(wT,0),o=lt(()=>{let c=tt(i);const{matched:u}=s.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),a=lt(()=>s.value.matched[o.value]);lo(wT,lt(()=>o.value+1)),lo(cH,a),lo(Ug,s);const l=Ze();return Vt(()=>[l.value,a.value,t.name],([c,u,h],[f,v,k])=>{u&&(u.instances[h]=c,v&&v!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Pi(u,v)||!f)&&(u.enterCallbacks[h]||[]).forEach(I=>I(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,h=a.value,f=h&&h.components[u];if(!f)return kT(n.default,{Component:f,route:c});const v=h.props[u],k=v?v===!0?c.params:typeof v=="function"?v(c):v:null,T=On(f,et({},k,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(h.instances[u]=null)},ref:l}));if(Ts&&T.ref){const g={depth:o.value,name:h.name,path:h.path,meta:h.meta};(Zn(T.ref)?T.ref.map(_=>_.i):[T.ref.i]).forEach(_=>{_.__vrv_devtools=g})}return kT(n.default,{Component:T,route:c})||T}}});function kT(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const oA=mH;function _l(t,e){const n=et({},t,{matched:t.matched.map(r=>IH(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:e,value:n}}}function nh(t){return{_custom:{display:t}}}let gH=0;function _H(t,e,n){if(e.__hasDevtools)return;e.__hasDevtools=!0;const r=gH++;zd({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((u,h)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_l(e.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:u,componentInstance:h})=>{if(h.__vrv_devtools){const f=h.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:aA})}Zn(h.__vrl_devtools)&&(h.__devtoolsApi=s,h.__vrl_devtools.forEach(f=>{let v=uA,k="";f.isExactActive?(v=cA,k="This is exactly active"):f.isActive&&(v=lA,k="This link is active"),u.tags.push({label:f.route.path,textColor:0,tooltip:k,backgroundColor:v})}))}),Vt(e.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(a),s.sendInspectorState(a)});const i="router:navigations:"+r;s.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),e.onError((u,h)=>{s.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:h.fullPath,logType:"error",time:s.now(),data:{error:u},groupId:h.meta.__navigationId}})});let o=0;e.beforeEach((u,h)=>{const f={guard:nh("beforeEach"),from:_l(h,"Current Location during this navigation"),to:_l(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:o++}),s.addTimelineEvent({layerId:i,event:{time:s.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),e.afterEach((u,h,f)=>{const v={guard:nh("afterEach")};f?(v.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},v.status=nh("❌")):v.status=nh("✅"),v.from=_l(h,"Current Location during this navigation"),v.to=_l(u,"Target location"),s.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:s.now(),data:v,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+r;s.addInspector({id:a,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!c)return;const u=c;let h=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);h.forEach(dA),u.filter&&(h=h.filter(f=>jg(f,u.filter.toLowerCase()))),h.forEach(f=>fA(f,e.currentRoute.value)),u.rootNodes=h.map(hA)}let c;s.on.getInspectorTree(u=>{c=u,u.app===t&&u.inspectorId===a&&l()}),s.on.getInspectorState(u=>{if(u.app===t&&u.inspectorId===a){const f=n.getRoutes().find(v=>v.record.__vd_id===u.nodeId);f&&(u.state={options:vH(f)})}}),s.sendInspectorTree(a),s.sendInspectorState(a)})}function yH(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function vH(t){const{record:e}=t,n=[{editable:!1,key:"path",value:e.path}];return e.name!=null&&n.push({editable:!1,key:"name",value:e.name}),n.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(r=>`${r.name}${yH(r)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),e.redirect!=null&&n.push({editable:!1,key:"redirect",value:e.redirect}),t.alias.length&&n.push({editable:!1,key:"aliases",value:t.alias.map(r=>r.record.path)}),Object.keys(t.record.meta).length&&n.push({editable:!1,key:"meta",value:t.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:t.score}}}),n}const aA=15485081,lA=2450411,cA=8702998,EH=2282478,uA=16486972,wH=6710886;function hA(t){const e=[],{record:n}=t;n.name!=null&&e.push({label:String(n.name),textColor:0,backgroundColor:EH}),n.aliasOf&&e.push({label:"alias",textColor:0,backgroundColor:uA}),t.__vd_match&&e.push({label:"matches",textColor:0,backgroundColor:aA}),t.__vd_exactActive&&e.push({label:"exact",textColor:0,backgroundColor:cA}),t.__vd_active&&e.push({label:"active",textColor:0,backgroundColor:lA}),n.redirect&&e.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:wH});let r=n.__vd_id;return r==null&&(r=String(TH++),n.__vd_id=r),{id:r,label:n.path,tags:e,children:t.children.map(hA)}}let TH=0;const bH=/^\/(.*)\/([a-z]*)$/;function fA(t,e){const n=e.matched.length&&Pi(e.matched[e.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=n,n||(t.__vd_active=e.matched.some(r=>Pi(r,t.record))),t.children.forEach(r=>fA(r,e))}function dA(t){t.__vd_match=!1,t.children.forEach(dA)}function jg(t,e){const n=String(t.re).match(bH);if(t.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(e))return t.children.forEach(o=>jg(o,e)),t.record.path!=="/"||e==="/"?(t.__vd_match=t.re.test(e),!0):!1;const s=t.record.path.toLowerCase(),i=Nc(s);return!e.startsWith("/")&&(i.includes(e)||s.includes(e))||i.startsWith(e)||s.startsWith(e)||t.record.name&&String(t.record.name).includes(e)?!0:t.children.some(o=>jg(o,e))}function IH(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function kH(t){const e=W$(t.routes,t),n=t.parseQuery||aH,r=t.stringifyQuery||ET,s=t.history,i=gl(),o=gl(),a=gl(),l=wa(Vr);let c=Vr;Ts&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=im.bind(null,N=>""+N),h=im.bind(null,oH),f=im.bind(null,Nc);function v(N,x){let V,z;return JR(N)?(V=e.getRecordMatcher(N),z=x):z=N,e.addRoute(z,V)}function k(N){const x=e.getRecordMatcher(N);x&&e.removeRoute(x)}function I(){return e.getRoutes().map(N=>N.record)}function T(N){return!!e.getRecordMatcher(N)}function g(N,x){if(x=et({},x||l.value),typeof N=="string"){const P=om(n,N,x.path),M=e.resolve({path:P.path},x),$=s.createHref(P.fullPath);return et(P,M,{params:f(M.params),hash:Nc(P.hash),redirectedFrom:void 0,href:$})}let V;if("path"in N)V=et({},N,{path:om(n,N.path,x.path).path});else{const P=et({},N.params);for(const M in P)P[M]==null&&delete P[M];V=et({},N,{params:h(P)}),x.params=h(x.params)}const z=e.resolve(V,x),H=N.hash||"";z.params=u(f(z.params));const D=v$(r,et({},N,{hash:rH(H),path:z.path})),b=s.createHref(D);return et({fullPath:D,hash:H,query:r===ET?lH(N.query):N.query||{}},z,{redirectedFrom:void 0,href:b})}function m(N){return typeof N=="string"?om(n,N,l.value.path):et({},N)}function _(N,x){if(c!==N)return xa(8,{from:x,to:N})}function d(N){return y(N)}function E(N){return d(et(m(N),{replace:!0}))}function p(N){const x=N.matched[N.matched.length-1];if(x&&x.redirect){const{redirect:V}=x;let z=typeof V=="function"?V(N):V;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=m(z):{path:z},z.params={}),et({query:N.query,hash:N.hash,params:"path"in z?{}:N.params},z)}}function y(N,x){const V=c=g(N),z=l.value,H=N.state,D=N.force,b=N.replace===!0,P=p(V);if(P)return y(et(m(P),{state:typeof P=="object"?et({},H,P.state):H,force:D,replace:b}),x||V);const M=V;M.redirectedFrom=x;let $;return!D&&E$(r,z,V)&&($=xa(16,{to:M,from:z}),Z(z,z,!0,!1)),($?Promise.resolve($):S(M,z)).catch(q=>ds(q)?ds(q,2)?q:j(q):Y(q,M,z)).then(q=>{if(q){if(ds(q,2))return y(et({replace:b},m(q.to),{state:typeof q.to=="object"?et({},H,q.to.state):H,force:D}),x||M)}else q=C(M,z,!0,b,H);return O(M,z,q),q})}function w(N,x){const V=_(N,x);return V?Promise.reject(V):Promise.resolve()}function A(N){const x=le.values().next().value;return x&&typeof x.runWithContext=="function"?x.runWithContext(N):N()}function S(N,x){let V;const[z,H,D]=SH(N,x);V=am(z.reverse(),"beforeRouteLeave",N,x);for(const P of z)P.leaveGuards.forEach(M=>{V.push(si(M,N,x))});const b=w.bind(null,N,x);return V.push(b),oe(V).then(()=>{V=[];for(const P of i.list())V.push(si(P,N,x));return V.push(b),oe(V)}).then(()=>{V=am(H,"beforeRouteUpdate",N,x);for(const P of H)P.updateGuards.forEach(M=>{V.push(si(M,N,x))});return V.push(b),oe(V)}).then(()=>{V=[];for(const P of D)if(P.beforeEnter)if(Zn(P.beforeEnter))for(const M of P.beforeEnter)V.push(si(M,N,x));else V.push(si(P.beforeEnter,N,x));return V.push(b),oe(V)}).then(()=>(N.matched.forEach(P=>P.enterCallbacks={}),V=am(D,"beforeRouteEnter",N,x),V.push(b),oe(V))).then(()=>{V=[];for(const P of o.list())V.push(si(P,N,x));return V.push(b),oe(V)}).catch(P=>ds(P,8)?P:Promise.reject(P))}function O(N,x,V){a.list().forEach(z=>A(()=>z(N,x,V)))}function C(N,x,V,z,H){const D=_(N,x);if(D)return D;const b=x===Vr,P=Ts?history.state:{};V&&(z||b?s.replace(N.fullPath,et({scroll:b&&P&&P.scroll},H)):s.push(N.fullPath,H)),l.value=N,Z(N,x,V,b),j()}let R;function L(){R||(R=s.listen((N,x,V)=>{if(!ie.listening)return;const z=g(N),H=p(z);if(H){y(et(H,{replace:!0}),z).catch(ql);return}c=z;const D=l.value;Ts&&R$(fT(D.fullPath,V.delta),Qd()),S(z,D).catch(b=>ds(b,12)?b:ds(b,2)?(y(b.to,z).then(P=>{ds(P,20)&&!V.delta&&V.type===Oc.pop&&s.go(-1,!1)}).catch(ql),Promise.reject()):(V.delta&&s.go(-V.delta,!1),Y(b,z,D))).then(b=>{b=b||C(z,D,!1),b&&(V.delta&&!ds(b,8)?s.go(-V.delta,!1):V.type===Oc.pop&&ds(b,20)&&s.go(-1,!1)),O(z,D,b)}).catch(ql)}))}let G=gl(),U=gl(),B;function Y(N,x,V){j(N);const z=U.list();return z.length?z.forEach(H=>H(N,x,V)):console.error(N),Promise.reject(N)}function F(){return B&&l.value!==Vr?Promise.resolve():new Promise((N,x)=>{G.add([N,x])})}function j(N){return B||(B=!N,L(),G.list().forEach(([x,V])=>N?V(N):x()),G.reset()),N}function Z(N,x,V,z){const{scrollBehavior:H}=t;if(!Ts||!H)return Promise.resolve();const D=!V&&A$(fT(N.fullPath,0))||(z||!V)&&history.state&&history.state.scroll||null;return Ni().then(()=>H(N,x,D)).then(b=>b&&C$(b)).catch(b=>Y(b,N,x))}const J=N=>s.go(N);let se;const le=new Set,ie={currentRoute:l,listening:!0,addRoute:v,removeRoute:k,hasRoute:T,getRoutes:I,resolve:g,options:t,push:d,replace:E,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:U.add,isReady:F,install(N){const x=this;N.component("RouterLink",fH),N.component("RouterView",oA),N.config.globalProperties.$router=x,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>tt(l)}),Ts&&!se&&l.value===Vr&&(se=!0,d(s.location).catch(H=>{}));const V={};for(const H in Vr)Object.defineProperty(V,H,{get:()=>l.value[H],enumerable:!0});N.provide(Xd,x),N.provide(Ov,Gc(V)),N.provide(Ug,l);const z=N.unmount;le.add(N),N.unmount=function(){le.delete(N),le.size<1&&(c=Vr,R&&R(),R=null,l.value=Vr,se=!1,B=!1),z()},Ts&&_H(N,x,e)}};function oe(N){return N.reduce((x,V)=>x.then(()=>A(V)),Promise.resolve())}return ie}function SH(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;oPi(c,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Pi(c,l))||s.push(l))}return[n,r,s]}function Nv(){return Ut(Xd)}function Jd(){return Ut(Ov)}const ut={layout:"login",auth:"guest"},ht={layout:"login"},ST=[{name:"index___fr",path:"/",meta:{},alias:[],redirect:void 0,component:()=>mr(()=>import("./index.10d81674.js"),["./index.10d81674.js","./index.892f0c33.js","./hamburger.6acfa935.js","./index.0699df69.css"],import.meta.url).then(t=>t.default||t)},{name:"index___en",path:"/en",meta:{},alias:[],redirect:void 0,component:()=>mr(()=>import("./index.10d81674.js"),["./index.10d81674.js","./index.892f0c33.js","./hamburger.6acfa935.js","./index.0699df69.css"],import.meta.url).then(t=>t.default||t)},{name:(ut==null?void 0:ut.name)??"login___fr",path:(ut==null?void 0:ut.path)??"/connexion",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:(ut==null?void 0:ut.redirect)||void 0,component:()=>mr(()=>import("./login.b2033610.js"),["./login.b2033610.js","./auth.ef97e35f.js"],import.meta.url).then(t=>t.default||t)},{name:(ut==null?void 0:ut.name)??"login___en",path:(ut==null?void 0:ut.path)??"/en/login",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:(ut==null?void 0:ut.redirect)||void 0,component:()=>mr(()=>import("./login.b2033610.js"),["./login.b2033610.js","./auth.ef97e35f.js"],import.meta.url).then(t=>t.default||t)},{name:(ht==null?void 0:ht.name)??"logout___fr",path:(ht==null?void 0:ht.path)??"/deconnexion",meta:ht||{},alias:(ht==null?void 0:ht.alias)||[],redirect:(ht==null?void 0:ht.redirect)||void 0,component:()=>mr(()=>import("./logout.1f2a54a5.js"),["./logout.1f2a54a5.js","./index.892f0c33.js"],import.meta.url).then(t=>t.default||t)},{name:(ht==null?void 0:ht.name)??"logout___en",path:(ht==null?void 0:ht.path)??"/en/logout",meta:ht||{},alias:(ht==null?void 0:ht.alias)||[],redirect:(ht==null?void 0:ht.redirect)||void 0,component:()=>mr(()=>import("./logout.1f2a54a5.js"),["./logout.1f2a54a5.js","./index.892f0c33.js"],import.meta.url).then(t=>t.default||t)}],CH={scrollBehavior(t,e,n){var c;const r=ct(),s=((c=Nr().options)==null?void 0:c.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!i&&e&&t&&o!==!1&&RH(e,t)&&(i={left:0,top:0}),t.path===e.path){if(e.hash&&!t.hash)return{left:0,top:0};if(t.hash)return{el:t.hash,top:CT(t.hash),behavior:s}}const a=u=>!!(u.meta.pageTransition??xg),l=a(e)&&a(t)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await Ni(),t.hash&&(i={el:t.hash,top:CT(t.hash),behavior:s}),u(i)})})}};function CT(t){try{const e=document.querySelector(t);if(e)return parseFloat(getComputedStyle(e).scrollMarginTop)}catch{}return 0}function RH(t,e){return e.path!==t.path||JSON.stringify(t.params)!==JSON.stringify(e.params)}const AH={},xn={...AH,...CH},PH=async t=>{var l;let e,n;if(!((l=t.meta)!=null&&l.validate))return;const r=ct(),s=Nr();if(([e,n]=_i(()=>Promise.resolve(t.meta.validate(t))),e=await e,n(),e)===!0)return;const o=Av({statusCode:404,statusMessage:`Page Not Found: ${t.fullPath}`}),a=s.beforeResolve(c=>{if(a(),c===t){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>Zo(o)),window.history.pushState({},"",t.fullPath)});return!1}})};function Dv(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s{},Zn=Array.isArray,y$=/\/$/,v$=t=>t.replace(y$,"");function om(t,e,n="/"){let r,s={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(r=e.slice(0,l),i=e.slice(l+1,a>-1?a:e.length),s=t(i)),a>-1&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=b$(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function E$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function fT(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function w$(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Pi(e.matched[r],n.matched[s])&&zR(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Pi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function zR(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!T$(t[n],e[n]))return!1;return!0}function T$(t,e){return Zn(t)?dT(t,e):Zn(e)?dT(e,t):t===e}function dT(t,e){return Zn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function b$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Oc;(function(t){t.pop="pop",t.push="push"})(Oc||(Oc={}));var Kl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Kl||(Kl={}));function I$(t){if(!t)if(bs){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),v$(t)}const k$=/^[^#]+#/;function S$(t,e){return t.replace(k$,"#")+e}function C$(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Qd=()=>({left:window.pageXOffset,top:window.pageYOffset});function R$(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=C$(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function pT(t,e){return(history.state?history.state.position-e:-1)+t}const Fg=new Map;function A$(t,e){Fg.set(t,e)}function P$(t){const e=Fg.get(t);return Fg.delete(t),e}let O$=()=>location.protocol+"//"+location.host;function QR(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let a=s.includes(t.slice(i))?t.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),fT(l,"")}return fT(n,t)+r+s}function N$(t,e,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const v=QR(t,location),k=n.value,I=e.value;let T=0;if(f){if(n.value=v,e.value=f,o&&o===k){o=null;return}T=I?f.position-I.position:0}else r(v);s.forEach(g=>{g(n.value,k,{delta:T,type:Oc.pop,direction:T?T>0?Kl.forward:Kl.back:Kl.unknown})})};function l(){o=n.value}function c(f){s.push(f);const v=()=>{const k=s.indexOf(f);k>-1&&s.splice(k,1)};return i.push(v),v}function u(){const{history:f}=window;f.state&&f.replaceState(et({},f.state,{scroll:Qd()}),"")}function h(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function mT(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?Qd():null}}function D$(t){const{history:e,location:n}=window,r={value:QR(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const h=t.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:O$()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(v){console.error(v),n[u?"replace":"assign"](f)}}function o(l,c){const u=et({},e.state,mT(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=et({},s.value,e.state,{forward:l,scroll:Qd()});i(u.current,u,!0);const h=et({},mT(r.value,l,null),{position:u.position+1},c);i(l,h,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function XR(t){t=I$(t);const e=D$(t),n=N$(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=et({location:"",base:t,go:r,createHref:S$.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function L$(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),XR(t)}function M$(t){return typeof t=="string"||t&&typeof t=="object"}function JR(t){return typeof t=="string"||typeof t=="symbol"}const Vr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ZR=Symbol("");var gT;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(gT||(gT={}));function Ma(t,e){return et(new Error,{type:t,[ZR]:!0},e)}function ps(t,e){return t instanceof Error&&ZR in t&&(e==null||!!(t.type&e))}const _T="[^/]+?",x$={sensitive:!1,strict:!1,start:!0,end:!0},F$=/[.+*?^${}()[\]/\\]/g;function V$(t,e){const n=et({},x$,e),r=[];let s=n.start?"^":"";const i=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function j$(t,e){let n=0;const r=t.score,s=e.score;for(;n0&&e[e.length-1]<0}const B$={type:0,value:""},$$=/[a-zA-Z0-9_]/;function H$(t){if(!t)return[[]];if(t==="/")return[[B$]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function h(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{o(m)}:ql}function o(u){if(JR(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!eA(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!ET(u)&&r.set(u.record.name,u)}function c(u,h){let f,v={},k,I;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Ma(1,{location:u});I=f.record.name,v=et(vT(h.params,f.keys.filter(m=>!m.optional).map(m=>m.name)),u.params&&vT(u.params,f.keys.map(m=>m.name))),k=f.stringify(v)}else if("path"in u)k=u.path,f=n.find(m=>m.re.test(k)),f&&(v=f.parse(k),I=f.record.name);else{if(f=h.name?r.get(h.name):n.find(m=>m.re.test(h.path)),!f)throw Ma(1,{location:u,currentLocation:h});I=f.record.name,v=et({},h.params,u.params),k=f.stringify(v)}const T=[];let g=f;for(;g;)T.unshift(g.record),g=g.parent;return{name:I,path:k,params:v,matched:T,meta:K$(T)}}return t.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function vT(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Y$(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:q$(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function q$(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function ET(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function K$(t){return t.reduce((e,n)=>et(e,n.meta),{})}function wT(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function eA(t,e){return e.children.some(n=>n===t||eA(t,n))}const tA=/#/g,z$=/&/g,Q$=/\//g,X$=/=/g,J$=/\?/g,nA=/\+/g,Z$=/%5B/g,eH=/%5D/g,rA=/%5E/g,tH=/%60/g,sA=/%7B/g,nH=/%7C/g,iA=/%7D/g,rH=/%20/g;function Nv(t){return encodeURI(""+t).replace(nH,"|").replace(Z$,"[").replace(eH,"]")}function sH(t){return Nv(t).replace(sA,"{").replace(iA,"}").replace(rA,"^")}function Vg(t){return Nv(t).replace(nA,"%2B").replace(rH,"+").replace(tA,"%23").replace(z$,"%26").replace(tH,"`").replace(sA,"{").replace(iA,"}").replace(rA,"^")}function iH(t){return Vg(t).replace(X$,"%3D")}function oH(t){return Nv(t).replace(tA,"%23").replace(J$,"%3F")}function aH(t){return t==null?"":oH(t).replace(Q$,"%2F")}function Nc(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function lH(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;si&&Vg(i)):[r&&Vg(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function cH(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Zn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const uH=Symbol(""),bT=Symbol(""),Xd=Symbol(""),Dv=Symbol(""),Ug=Symbol("");function gl(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function si(t,e,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const l=h=>{h===!1?a(Ma(4,{from:n,to:e})):h instanceof Error?a(h):M$(h)?a(Ma(2,{from:e,to:h})):(i&&r.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),o())},c=t.call(r&&r.instances[s],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(h=>a(h))})}function am(t,e,n,r){const s=[];for(const i of t)for(const o in i.components){let a=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(hH(a)){const c=(a.__vccOpts||a)[e];c&&s.push(si(c,n,r,i,o))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=_$(c)?c.default:c;i.components[o]=u;const f=(u.__vccOpts||u)[e];return f&&si(f,n,r,i,o)()}))}}return s}function hH(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function IT(t){const e=Ut(Xd),n=Ut(Dv),r=lt(()=>e.resolve(tt(t.to))),s=lt(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(Pi.bind(null,u));if(f>-1)return f;const v=kT(l[c-2]);return c>1&&kT(u)===v&&h[h.length-1].path!==v?h.findIndex(Pi.bind(null,l[c-2])):f}),i=lt(()=>s.value>-1&&mH(n.params,r.value.params)),o=lt(()=>s.value>-1&&s.value===n.matched.length-1&&zR(n.params,r.value.params));function a(l={}){return pH(l)?e[tt(t.replace)?"replace":"push"](tt(t.to)).catch(ql):Promise.resolve()}if(bs){const l=Or();if(l){const c={route:r.value,isActive:i.value,isExactActive:o.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(c),dk(()=>{c.route=r.value,c.isActive=i.value,c.isExactActive=o.value},{flush:"post"})}}return{route:r,href:lt(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const fH=ur({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:IT,setup(t,{slots:e}){const n=ts(IT(t)),{options:r}=Ut(Xd),s=lt(()=>({[ST(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ST(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:Nn("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),dH=fH;function pH(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function mH(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Zn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function kT(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ST=(t,e,n)=>t??e??n,gH=ur({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Ut(Ug),s=lt(()=>t.route||r.value),i=Ut(bT,0),o=lt(()=>{let c=tt(i);const{matched:u}=s.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),a=lt(()=>s.value.matched[o.value]);lo(bT,lt(()=>o.value+1)),lo(uH,a),lo(Ug,s);const l=Ze();return Vt(()=>[l.value,a.value,t.name],([c,u,h],[f,v,k])=>{u&&(u.instances[h]=c,v&&v!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Pi(u,v)||!f)&&(u.enterCallbacks[h]||[]).forEach(I=>I(c))},{flush:"post"}),()=>{const c=s.value,u=t.name,h=a.value,f=h&&h.components[u];if(!f)return CT(n.default,{Component:f,route:c});const v=h.props[u],k=v?v===!0?c.params:typeof v=="function"?v(c):v:null,T=Nn(f,et({},k,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(h.instances[u]=null)},ref:l}));if(bs&&T.ref){const g={depth:o.value,name:h.name,path:h.path,meta:h.meta};(Zn(T.ref)?T.ref.map(_=>_.i):[T.ref.i]).forEach(_=>{_.__vrv_devtools=g})}return CT(n.default,{Component:T,route:c})||T}}});function CT(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const oA=gH;function _l(t,e){const n=et({},t,{matched:t.matched.map(r=>kH(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:e,value:n}}}function sh(t){return{_custom:{display:t}}}let _H=0;function yH(t,e,n){if(e.__hasDevtools)return;e.__hasDevtools=!0;const r=_H++;zd({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},s=>{typeof s.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.on.inspectComponent((u,h)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_l(e.currentRoute.value,"Current Route")})}),s.on.visitComponentTree(({treeNode:u,componentInstance:h})=>{if(h.__vrv_devtools){const f=h.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:aA})}Zn(h.__vrl_devtools)&&(h.__devtoolsApi=s,h.__vrl_devtools.forEach(f=>{let v=uA,k="";f.isExactActive?(v=cA,k="This is exactly active"):f.isActive&&(v=lA,k="This link is active"),u.tags.push({label:f.route.path,textColor:0,tooltip:k,backgroundColor:v})}))}),Vt(e.currentRoute,()=>{l(),s.notifyComponentUpdate(),s.sendInspectorTree(a),s.sendInspectorState(a)});const i="router:navigations:"+r;s.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),e.onError((u,h)=>{s.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:h.fullPath,logType:"error",time:s.now(),data:{error:u},groupId:h.meta.__navigationId}})});let o=0;e.beforeEach((u,h)=>{const f={guard:sh("beforeEach"),from:_l(h,"Current Location during this navigation"),to:_l(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:o++}),s.addTimelineEvent({layerId:i,event:{time:s.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),e.afterEach((u,h,f)=>{const v={guard:sh("afterEach")};f?(v.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},v.status=sh("❌")):v.status=sh("✅"),v.from=_l(h,"Current Location during this navigation"),v.to=_l(u,"Target location"),s.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:u.fullPath,time:s.now(),data:v,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+r;s.addInspector({id:a,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!c)return;const u=c;let h=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);h.forEach(dA),u.filter&&(h=h.filter(f=>jg(f,u.filter.toLowerCase()))),h.forEach(f=>fA(f,e.currentRoute.value)),u.rootNodes=h.map(hA)}let c;s.on.getInspectorTree(u=>{c=u,u.app===t&&u.inspectorId===a&&l()}),s.on.getInspectorState(u=>{if(u.app===t&&u.inspectorId===a){const f=n.getRoutes().find(v=>v.record.__vd_id===u.nodeId);f&&(u.state={options:EH(f)})}}),s.sendInspectorTree(a),s.sendInspectorState(a)})}function vH(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function EH(t){const{record:e}=t,n=[{editable:!1,key:"path",value:e.path}];return e.name!=null&&n.push({editable:!1,key:"name",value:e.name}),n.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(r=>`${r.name}${vH(r)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),e.redirect!=null&&n.push({editable:!1,key:"redirect",value:e.redirect}),t.alias.length&&n.push({editable:!1,key:"aliases",value:t.alias.map(r=>r.record.path)}),Object.keys(t.record.meta).length&&n.push({editable:!1,key:"meta",value:t.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:t.score}}}),n}const aA=15485081,lA=2450411,cA=8702998,wH=2282478,uA=16486972,TH=6710886;function hA(t){const e=[],{record:n}=t;n.name!=null&&e.push({label:String(n.name),textColor:0,backgroundColor:wH}),n.aliasOf&&e.push({label:"alias",textColor:0,backgroundColor:uA}),t.__vd_match&&e.push({label:"matches",textColor:0,backgroundColor:aA}),t.__vd_exactActive&&e.push({label:"exact",textColor:0,backgroundColor:cA}),t.__vd_active&&e.push({label:"active",textColor:0,backgroundColor:lA}),n.redirect&&e.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:TH});let r=n.__vd_id;return r==null&&(r=String(bH++),n.__vd_id=r),{id:r,label:n.path,tags:e,children:t.children.map(hA)}}let bH=0;const IH=/^\/(.*)\/([a-z]*)$/;function fA(t,e){const n=e.matched.length&&Pi(e.matched[e.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=n,n||(t.__vd_active=e.matched.some(r=>Pi(r,t.record))),t.children.forEach(r=>fA(r,e))}function dA(t){t.__vd_match=!1,t.children.forEach(dA)}function jg(t,e){const n=String(t.re).match(IH);if(t.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(e))return t.children.forEach(o=>jg(o,e)),t.record.path!=="/"||e==="/"?(t.__vd_match=t.re.test(e),!0):!1;const s=t.record.path.toLowerCase(),i=Nc(s);return!e.startsWith("/")&&(i.includes(e)||s.includes(e))||i.startsWith(e)||s.startsWith(e)||t.record.name&&String(t.record.name).includes(e)?!0:t.children.some(o=>jg(o,e))}function kH(t,e){const n={};for(const r in t)e.includes(r)||(n[r]=t[r]);return n}function SH(t){const e=G$(t.routes,t),n=t.parseQuery||lH,r=t.stringifyQuery||TT,s=t.history,i=gl(),o=gl(),a=gl(),l=wa(Vr);let c=Vr;bs&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=im.bind(null,N=>""+N),h=im.bind(null,aH),f=im.bind(null,Nc);function v(N,M){let V,z;return JR(N)?(V=e.getRecordMatcher(N),z=M):z=N,e.addRoute(z,V)}function k(N){const M=e.getRecordMatcher(N);M&&e.removeRoute(M)}function I(){return e.getRoutes().map(N=>N.record)}function T(N){return!!e.getRecordMatcher(N)}function g(N,M){if(M=et({},M||l.value),typeof N=="string"){const P=om(n,N,M.path),x=e.resolve({path:P.path},M),$=s.createHref(P.fullPath);return et(P,x,{params:f(x.params),hash:Nc(P.hash),redirectedFrom:void 0,href:$})}let V;if("path"in N)V=et({},N,{path:om(n,N.path,M.path).path});else{const P=et({},N.params);for(const x in P)P[x]==null&&delete P[x];V=et({},N,{params:h(P)}),M.params=h(M.params)}const z=e.resolve(V,M),H=N.hash||"";z.params=u(f(z.params));const D=E$(r,et({},N,{hash:sH(H),path:z.path})),b=s.createHref(D);return et({fullPath:D,hash:H,query:r===TT?cH(N.query):N.query||{}},z,{redirectedFrom:void 0,href:b})}function m(N){return typeof N=="string"?om(n,N,l.value.path):et({},N)}function _(N,M){if(c!==N)return Ma(8,{from:M,to:N})}function d(N){return y(N)}function E(N){return d(et(m(N),{replace:!0}))}function p(N){const M=N.matched[N.matched.length-1];if(M&&M.redirect){const{redirect:V}=M;let z=typeof V=="function"?V(N):V;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=m(z):{path:z},z.params={}),et({query:N.query,hash:N.hash,params:"path"in z?{}:N.params},z)}}function y(N,M){const V=c=g(N),z=l.value,H=N.state,D=N.force,b=N.replace===!0,P=p(V);if(P)return y(et(m(P),{state:typeof P=="object"?et({},H,P.state):H,force:D,replace:b}),M||V);const x=V;x.redirectedFrom=M;let $;return!D&&w$(r,z,V)&&($=Ma(16,{to:x,from:z}),Z(z,z,!0,!1)),($?Promise.resolve($):S(x,z)).catch(q=>ps(q)?ps(q,2)?q:j(q):Y(q,x,z)).then(q=>{if(q){if(ps(q,2))return y(et({replace:b},m(q.to),{state:typeof q.to=="object"?et({},H,q.to.state):H,force:D}),M||x)}else q=C(x,z,!0,b,H);return O(x,z,q),q})}function w(N,M){const V=_(N,M);return V?Promise.reject(V):Promise.resolve()}function A(N){const M=le.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(N):N()}function S(N,M){let V;const[z,H,D]=CH(N,M);V=am(z.reverse(),"beforeRouteLeave",N,M);for(const P of z)P.leaveGuards.forEach(x=>{V.push(si(x,N,M))});const b=w.bind(null,N,M);return V.push(b),oe(V).then(()=>{V=[];for(const P of i.list())V.push(si(P,N,M));return V.push(b),oe(V)}).then(()=>{V=am(H,"beforeRouteUpdate",N,M);for(const P of H)P.updateGuards.forEach(x=>{V.push(si(x,N,M))});return V.push(b),oe(V)}).then(()=>{V=[];for(const P of D)if(P.beforeEnter)if(Zn(P.beforeEnter))for(const x of P.beforeEnter)V.push(si(x,N,M));else V.push(si(P.beforeEnter,N,M));return V.push(b),oe(V)}).then(()=>(N.matched.forEach(P=>P.enterCallbacks={}),V=am(D,"beforeRouteEnter",N,M),V.push(b),oe(V))).then(()=>{V=[];for(const P of o.list())V.push(si(P,N,M));return V.push(b),oe(V)}).catch(P=>ps(P,8)?P:Promise.reject(P))}function O(N,M,V){a.list().forEach(z=>A(()=>z(N,M,V)))}function C(N,M,V,z,H){const D=_(N,M);if(D)return D;const b=M===Vr,P=bs?history.state:{};V&&(z||b?s.replace(N.fullPath,et({scroll:b&&P&&P.scroll},H)):s.push(N.fullPath,H)),l.value=N,Z(N,M,V,b),j()}let R;function L(){R||(R=s.listen((N,M,V)=>{if(!ie.listening)return;const z=g(N),H=p(z);if(H){y(et(H,{replace:!0}),z).catch(ql);return}c=z;const D=l.value;bs&&A$(pT(D.fullPath,V.delta),Qd()),S(z,D).catch(b=>ps(b,12)?b:ps(b,2)?(y(b.to,z).then(P=>{ps(P,20)&&!V.delta&&V.type===Oc.pop&&s.go(-1,!1)}).catch(ql),Promise.reject()):(V.delta&&s.go(-V.delta,!1),Y(b,z,D))).then(b=>{b=b||C(z,D,!1),b&&(V.delta&&!ps(b,8)?s.go(-V.delta,!1):V.type===Oc.pop&&ps(b,20)&&s.go(-1,!1)),O(z,D,b)}).catch(ql)}))}let G=gl(),U=gl(),B;function Y(N,M,V){j(N);const z=U.list();return z.length?z.forEach(H=>H(N,M,V)):console.error(N),Promise.reject(N)}function F(){return B&&l.value!==Vr?Promise.resolve():new Promise((N,M)=>{G.add([N,M])})}function j(N){return B||(B=!N,L(),G.list().forEach(([M,V])=>N?V(N):M()),G.reset()),N}function Z(N,M,V,z){const{scrollBehavior:H}=t;if(!bs||!H)return Promise.resolve();const D=!V&&P$(pT(N.fullPath,0))||(z||!V)&&history.state&&history.state.scroll||null;return Ni().then(()=>H(N,M,D)).then(b=>b&&R$(b)).catch(b=>Y(b,N,M))}const J=N=>s.go(N);let se;const le=new Set,ie={currentRoute:l,listening:!0,addRoute:v,removeRoute:k,hasRoute:T,getRoutes:I,resolve:g,options:t,push:d,replace:E,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:U.add,isReady:F,install(N){const M=this;N.component("RouterLink",dH),N.component("RouterView",oA),N.config.globalProperties.$router=M,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>tt(l)}),bs&&!se&&l.value===Vr&&(se=!0,d(s.location).catch(H=>{}));const V={};for(const H in Vr)Object.defineProperty(V,H,{get:()=>l.value[H],enumerable:!0});N.provide(Xd,M),N.provide(Dv,Gc(V)),N.provide(Ug,l);const z=N.unmount;le.add(N),N.unmount=function(){le.delete(N),le.size<1&&(c=Vr,R&&R(),R=null,l.value=Vr,se=!1,B=!1),z()},bs&&yH(N,M,e)}};function oe(N){return N.reduce((M,V)=>M.then(()=>A(V)),Promise.resolve())}return ie}function CH(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;oPi(c,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Pi(c,l))||s.push(l))}return[n,r,s]}function Lv(){return Ut(Xd)}function Jd(){return Ut(Dv)}const ut={layout:"login",auth:"guest"},ht={layout:"login"},RT=[{name:"index___fr",path:"/",meta:{},alias:[],redirect:void 0,component:()=>mr(()=>import("./index.a86317f8.js"),["./index.a86317f8.js","./index.bafef1ea.js","./hamburger.040db4da.js","./index.0699df69.css"],import.meta.url).then(t=>t.default||t)},{name:"index___en",path:"/en",meta:{},alias:[],redirect:void 0,component:()=>mr(()=>import("./index.a86317f8.js"),["./index.a86317f8.js","./index.bafef1ea.js","./hamburger.040db4da.js","./index.0699df69.css"],import.meta.url).then(t=>t.default||t)},{name:(ut==null?void 0:ut.name)??"login___fr",path:(ut==null?void 0:ut.path)??"/connexion",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:(ut==null?void 0:ut.redirect)||void 0,component:()=>mr(()=>import("./login.83cb6dd1.js"),["./login.83cb6dd1.js","./auth.f7a3445a.js","./index.bafef1ea.js"],import.meta.url).then(t=>t.default||t)},{name:(ut==null?void 0:ut.name)??"login___en",path:(ut==null?void 0:ut.path)??"/en/login",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:(ut==null?void 0:ut.redirect)||void 0,component:()=>mr(()=>import("./login.83cb6dd1.js"),["./login.83cb6dd1.js","./auth.f7a3445a.js","./index.bafef1ea.js"],import.meta.url).then(t=>t.default||t)},{name:(ht==null?void 0:ht.name)??"logout___fr",path:(ht==null?void 0:ht.path)??"/deconnexion",meta:ht||{},alias:(ht==null?void 0:ht.alias)||[],redirect:(ht==null?void 0:ht.redirect)||void 0,component:()=>mr(()=>import("./logout.0954e0c9.js"),["./logout.0954e0c9.js","./index.bafef1ea.js"],import.meta.url).then(t=>t.default||t)},{name:(ht==null?void 0:ht.name)??"logout___en",path:(ht==null?void 0:ht.path)??"/en/logout",meta:ht||{},alias:(ht==null?void 0:ht.alias)||[],redirect:(ht==null?void 0:ht.redirect)||void 0,component:()=>mr(()=>import("./logout.0954e0c9.js"),["./logout.0954e0c9.js","./index.bafef1ea.js"],import.meta.url).then(t=>t.default||t)}],RH={scrollBehavior(t,e,n){var c;const r=ct(),s=((c=Nr().options)==null?void 0:c.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!i&&e&&t&&o!==!1&&AH(e,t)&&(i={left:0,top:0}),t.path===e.path){if(e.hash&&!t.hash)return{left:0,top:0};if(t.hash)return{el:t.hash,top:AT(t.hash),behavior:s}}const a=u=>!!(u.meta.pageTransition??Mg),l=a(e)&&a(t)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await Ni(),t.hash&&(i={el:t.hash,top:AT(t.hash),behavior:s}),u(i)})})}};function AT(t){try{const e=document.querySelector(t);if(e)return parseFloat(getComputedStyle(e).scrollMarginTop)}catch{}return 0}function AH(t,e){return e.path!==t.path||JSON.stringify(t.params)!==JSON.stringify(e.params)}const PH={},Fn={...PH,...RH},OH=async t=>{var l;let e,n;if(!((l=t.meta)!=null&&l.validate))return;const r=ct(),s=Nr();if(([e,n]=_i(()=>Promise.resolve(t.meta.validate(t))),e=await e,n(),e)===!0)return;const o=Ov({statusCode:404,statusMessage:`Page Not Found: ${t.fullPath}`}),a=s.beforeResolve(c=>{if(a(),c===t){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>Zo(o)),window.history.pushState({},"",t.fullPath)});return!1}})};function Mv(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** + */function xH(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(MH()||Rx()||"connection"in navigator)?navigator.onLine:!0}function FH(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** * @license * Copyright 2020 Google LLC * @@ -2088,7 +2088,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class pu{constructor(e,n){this.shortDelay=e,this.longDelay=n,Bs(n>e,"Short delay should be less than long delay!"),this.isMobile=by()||aS()}get(){return xH()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** + */class gu{constructor(e,n){this.shortDelay=e,this.longDelay=n,Bs(n>e,"Short delay should be less than long delay!"),this.isMobile=by()||cS()}get(){return xH()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** * @license * Copyright 2020 Google LLC * @@ -2103,7 +2103,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function xv(t,e){Bs(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** + */function Fv(t,e){Bs(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** * @license * Copyright 2020 Google LLC * @@ -2118,7 +2118,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class _A{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;ks("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;ks("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;ks("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** + */class _A{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;Ss("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;Ss("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;Ss("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** * @license * Copyright 2020 Google LLC * @@ -2133,7 +2133,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const FH={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",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"};/** + */const VH={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",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"};/** * @license * Copyright 2020 Google LLC * @@ -2148,7 +2148,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const VH=new pu(3e4,6e4);function yA(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function mu(t,e,n,r,s={}){return vA(t,s,async()=>{let i={},o={};r&&(e==="GET"?o=r:i={body:JSON.stringify(r)});const a=Qa(Object.assign({key:t.config.apiKey},o)).slice(1),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode),_A.fetch()(EA(t,t.config.apiHost,n,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},i))})}async function vA(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},FH),e);try{const s=new jH(t),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw rh(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw rh(t,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw rh(t,"email-already-in-use",o);if(l==="USER_DISABLED")throw rh(t,"user-disabled",o);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw gA(t,u,c);ss(t,u)}}catch(s){if(s instanceof as)throw s;ss(t,"network-request-failed",{message:String(s)})}}async function UH(t,e,n,r,s={}){const i=await mu(t,e,n,r,s);return"mfaPendingCredential"in i&&ss(t,"multi-factor-auth-required",{_serverResponse:i}),i}function EA(t,e,n,r){const s=`${e}${n}?${r}`;return t.config.emulator?xv(t.config,s):`${t.config.apiScheme}://${s}`}class jH{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Xr(this.auth,"network-request-failed")),VH.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function rh(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Xr(t,e,r);return s.customData._tokenResponse=n,s}/** + */const UH=new gu(3e4,6e4);function yA(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function _u(t,e,n,r,s={}){return vA(t,s,async()=>{let i={},o={};r&&(e==="GET"?o=r:i={body:JSON.stringify(r)});const a=Qa(Object.assign({key:t.config.apiKey},o)).slice(1),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode),_A.fetch()(EA(t,t.config.apiHost,n,a),Object.assign({method:e,headers:l,referrerPolicy:"no-referrer"},i))})}async function vA(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},VH),e);try{const s=new BH(t),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw ih(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw ih(t,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw ih(t,"email-already-in-use",o);if(l==="USER_DISABLED")throw ih(t,"user-disabled",o);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw gA(t,u,c);is(t,u)}}catch(s){if(s instanceof ls)throw s;is(t,"network-request-failed",{message:String(s)})}}async function jH(t,e,n,r,s={}){const i=await _u(t,e,n,r,s);return"mfaPendingCredential"in i&&is(t,"multi-factor-auth-required",{_serverResponse:i}),i}function EA(t,e,n,r){const s=`${e}${n}?${r}`;return t.config.emulator?Fv(t.config,s):`${t.config.apiScheme}://${s}`}class BH{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Xr(this.auth,"network-request-failed")),UH.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function ih(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Xr(t,e,r);return s.customData._tokenResponse=n,s}/** * @license * Copyright 2020 Google LLC * @@ -2163,7 +2163,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function BH(t,e){return mu(t,"POST","/v1/accounts:delete",e)}async function $H(t,e){return mu(t,"POST","/v1/accounts:lookup",e)}/** + */async function $H(t,e){return _u(t,"POST","/v1/accounts:delete",e)}async function HH(t,e){return _u(t,"POST","/v1/accounts:lookup",e)}/** * @license * Copyright 2020 Google LLC * @@ -2178,7 +2178,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function zl(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function HH(t,e=!1){const n=Bt(t),r=await n.getIdToken(e),s=Mv(r);Ae(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i==null?void 0:i.sign_in_provider;return{claims:s,token:r,authTime:zl(lm(s.auth_time)),issuedAtTime:zl(lm(s.iat)),expirationTime:zl(lm(s.exp)),signInProvider:o||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function lm(t){return Number(t)*1e3}function Mv(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return bh("JWT malformed, contained fewer than 3 sections"),null;try{const s=zh(n);return s?JSON.parse(s):(bh("Failed to decode base64 JWT payload"),null)}catch(s){return bh("Caught error parsing JWT payload as JSON",s==null?void 0:s.toString()),null}}function WH(t){const e=Mv(t);return Ae(e,"internal-error"),Ae(typeof e.exp<"u","internal-error"),Ae(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** + */function zl(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function WH(t,e=!1){const n=Bt(t),r=await n.getIdToken(e),s=Vv(r);Ae(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i==null?void 0:i.sign_in_provider;return{claims:s,token:r,authTime:zl(lm(s.auth_time)),issuedAtTime:zl(lm(s.iat)),expirationTime:zl(lm(s.exp)),signInProvider:o||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function lm(t){return Number(t)*1e3}function Vv(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return kh("JWT malformed, contained fewer than 3 sections"),null;try{const s=Xh(n);return s?JSON.parse(s):(kh("Failed to decode base64 JWT payload"),null)}catch(s){return kh("Caught error parsing JWT payload as JSON",s==null?void 0:s.toString()),null}}function GH(t){const e=Vv(t);return Ae(e,"internal-error"),Ae(typeof e.exp<"u","internal-error"),Ae(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** * @license * Copyright 2020 Google LLC * @@ -2193,7 +2193,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function Dc(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof as&&GH(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function GH({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** + */async function Dc(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof ls&&YH(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function YH({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** * @license * Copyright 2020 Google LLC * @@ -2208,7 +2208,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class YH{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const s=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** + */class qH{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const s=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** * @license * Copyright 2020 Google LLC * @@ -2238,7 +2238,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function yf(t){var e;const n=t.auth,r=await t.getIdToken(),s=await Dc(t,$H(n,{idToken:r}));Ae(s==null?void 0:s.users.length,n,"internal-error");const i=s.users[0];t._notifyReloadListener(i);const o=!((e=i.providerUserInfo)===null||e===void 0)&&e.length?zH(i.providerUserInfo):[],a=KH(t.providerData,o),l=t.isAnonymous,c=!(t.email&&i.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new wA(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(t,h)}async function qH(t){const e=Bt(t);await yf(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function KH(t,e){return[...t.filter(r=>!e.some(s=>s.providerId===r.providerId)),...e]}function zH(t){return t.map(e=>{var{providerId:n}=e,r=Dv(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** + */async function Ef(t){var e;const n=t.auth,r=await t.getIdToken(),s=await Dc(t,HH(n,{idToken:r}));Ae(s==null?void 0:s.users.length,n,"internal-error");const i=s.users[0];t._notifyReloadListener(i);const o=!((e=i.providerUserInfo)===null||e===void 0)&&e.length?QH(i.providerUserInfo):[],a=zH(t.providerData,o),l=t.isAnonymous,c=!(t.email&&i.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new wA(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(t,h)}async function KH(t){const e=Bt(t);await Ef(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function zH(t,e){return[...t.filter(r=>!e.some(s=>s.providerId===r.providerId)),...e]}function QH(t){return t.map(e=>{var{providerId:n}=e,r=Mv(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** * @license * Copyright 2020 Google LLC * @@ -2253,7 +2253,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function QH(t,e){const n=await vA(t,{},async()=>{const r=Qa({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:s,apiKey:i}=t.config,o=EA(t,s,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",_A.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/** + */async function XH(t,e){const n=await vA(t,{},async()=>{const r=Qa({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:s,apiKey:i}=t.config,o=EA(t,s,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",_A.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/** * @license * Copyright 2020 Google LLC * @@ -2268,7 +2268,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Lc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ae(e.idToken,"internal-error"),Ae(typeof e.idToken<"u","internal-error"),Ae(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):WH(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}async getToken(e,n=!1){return Ae(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:s,expiresIn:i}=await QH(e,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new Lc;return r&&(Ae(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),s&&(Ae(typeof s=="string","internal-error",{appName:e}),o.accessToken=s),i&&(Ae(typeof i=="number","internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Lc,this.toJSON())}_performRefresh(){return ks("not implemented")}}/** + */class Lc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ae(e.idToken,"internal-error"),Ae(typeof e.idToken<"u","internal-error"),Ae(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):GH(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}async getToken(e,n=!1){return Ae(!this.accessToken||this.refreshToken,e,"user-token-expired"),!n&&this.accessToken&&!this.isExpired?this.accessToken:this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:s,expiresIn:i}=await XH(e,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new Lc;return r&&(Ae(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),s&&(Ae(typeof s=="string","internal-error",{appName:e}),o.accessToken=s),i&&(Ae(typeof i=="number","internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Lc,this.toJSON())}_performRefresh(){return Ss("not implemented")}}/** * @license * Copyright 2020 Google LLC * @@ -2283,7 +2283,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ei(t,e){Ae(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class uo{constructor(e){var{uid:n,auth:r,stsTokenManager:s}=e,i=Dv(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new YH(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new wA(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await Dc(this,this.stsTokenManager.getToken(this.auth,e));return Ae(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return HH(this,e)}reload(){return qH(this)}_assign(e){this!==e&&(Ae(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new uo(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){Ae(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await yf(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await Dc(this,BH(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.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(e=>Object.assign({},e)),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(e,n){var r,s,i,o,a,l,c,u;const h=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(s=n.email)!==null&&s!==void 0?s:void 0,v=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,k=(o=n.photoURL)!==null&&o!==void 0?o:void 0,I=(a=n.tenantId)!==null&&a!==void 0?a:void 0,T=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,g=(c=n.createdAt)!==null&&c!==void 0?c:void 0,m=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:_,emailVerified:d,isAnonymous:E,providerData:p,stsTokenManager:y}=n;Ae(_&&y,e,"internal-error");const w=Lc.fromJSON(this.name,y);Ae(typeof _=="string",e,"internal-error"),ei(h,e.name),ei(f,e.name),Ae(typeof d=="boolean",e,"internal-error"),Ae(typeof E=="boolean",e,"internal-error"),ei(v,e.name),ei(k,e.name),ei(I,e.name),ei(T,e.name),ei(g,e.name),ei(m,e.name);const A=new uo({uid:_,auth:e,email:f,emailVerified:d,displayName:h,isAnonymous:E,photoURL:k,phoneNumber:v,tenantId:I,stsTokenManager:w,createdAt:g,lastLoginAt:m});return p&&Array.isArray(p)&&(A.providerData=p.map(S=>Object.assign({},S))),T&&(A._redirectEventId=T),A}static async _fromIdTokenResponse(e,n,r=!1){const s=new Lc;s.updateFromServerResponse(n);const i=new uo({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:r});return await yf(i),i}}/** + */function ei(t,e){Ae(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class uo{constructor(e){var{uid:n,auth:r,stsTokenManager:s}=e,i=Mv(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new qH(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new wA(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await Dc(this,this.stsTokenManager.getToken(this.auth,e));return Ae(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return WH(this,e)}reload(){return KH(this)}_assign(e){this!==e&&(Ae(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new uo(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){Ae(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await Ef(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await Dc(this,$H(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.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(e=>Object.assign({},e)),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(e,n){var r,s,i,o,a,l,c,u;const h=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(s=n.email)!==null&&s!==void 0?s:void 0,v=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,k=(o=n.photoURL)!==null&&o!==void 0?o:void 0,I=(a=n.tenantId)!==null&&a!==void 0?a:void 0,T=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,g=(c=n.createdAt)!==null&&c!==void 0?c:void 0,m=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:_,emailVerified:d,isAnonymous:E,providerData:p,stsTokenManager:y}=n;Ae(_&&y,e,"internal-error");const w=Lc.fromJSON(this.name,y);Ae(typeof _=="string",e,"internal-error"),ei(h,e.name),ei(f,e.name),Ae(typeof d=="boolean",e,"internal-error"),Ae(typeof E=="boolean",e,"internal-error"),ei(v,e.name),ei(k,e.name),ei(I,e.name),ei(T,e.name),ei(g,e.name),ei(m,e.name);const A=new uo({uid:_,auth:e,email:f,emailVerified:d,displayName:h,isAnonymous:E,photoURL:k,phoneNumber:v,tenantId:I,stsTokenManager:w,createdAt:g,lastLoginAt:m});return p&&Array.isArray(p)&&(A.providerData=p.map(S=>Object.assign({},S))),T&&(A._redirectEventId=T),A}static async _fromIdTokenResponse(e,n,r=!1){const s=new Lc;s.updateFromServerResponse(n);const i=new uo({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:r});return await Ef(i),i}}/** * @license * Copyright 2020 Google LLC * @@ -2298,7 +2298,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const AT=new Map;function Ss(t){Bs(t instanceof Function,"Expected a class definition");let e=AT.get(t);return e?(Bs(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,AT.set(t,e),e)}/** + */const OT=new Map;function Cs(t){Bs(t instanceof Function,"Expected a class definition");let e=OT.get(t);return e?(Bs(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,OT.set(t,e),e)}/** * @license * Copyright 2019 Google LLC * @@ -2313,7 +2313,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class TA{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}TA.type="NONE";const PT=TA;/** + */class TA{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}TA.type="NONE";const NT=TA;/** * @license * Copyright 2019 Google LLC * @@ -2328,7 +2328,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Ih(t,e,n){return`firebase:${t}:${e}:${n}`}class pa{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=Ih(this.userKey,s.apiKey,i),this.fullPersistenceKey=Ih("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?uo._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new pa(Ss(PT),e,r);const s=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=s[0]||Ss(PT);const o=Ih(r,e.config.apiKey,e.name);let a=null;for(const c of n)try{const u=await c._get(o);if(u){const h=uo._fromJSON(e,u);c!==i&&(a=h),i=c;break}}catch{}const l=s.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new pa(i,e,r):(i=l[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==i)try{await c._remove(o)}catch{}})),new pa(i,e,r))}}/** + */function Sh(t,e,n){return`firebase:${t}:${e}:${n}`}class pa{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=Sh(this.userKey,s.apiKey,i),this.fullPersistenceKey=Sh("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?uo._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new pa(Cs(NT),e,r);const s=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=s[0]||Cs(NT);const o=Sh(r,e.config.apiKey,e.name);let a=null;for(const c of n)try{const u=await c._get(o);if(u){const h=uo._fromJSON(e,u);c!==i&&(a=h),i=c;break}}catch{}const l=s.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new pa(i,e,r):(i=l[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==i)try{await c._remove(o)}catch{}})),new pa(i,e,r))}}/** * @license * Copyright 2020 Google LLC * @@ -2343,7 +2343,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function OT(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(kA(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(bA(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(CA(e))return"Blackberry";if(RA(e))return"Webos";if(Fv(e))return"Safari";if((e.includes("chrome/")||IA(e))&&!e.includes("edge/"))return"Chrome";if(SA(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function bA(t=Tn()){return/firefox\//i.test(t)}function Fv(t=Tn()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function IA(t=Tn()){return/crios\//i.test(t)}function kA(t=Tn()){return/iemobile/i.test(t)}function SA(t=Tn()){return/android/i.test(t)}function CA(t=Tn()){return/blackberry/i.test(t)}function RA(t=Tn()){return/webos/i.test(t)}function Zd(t=Tn()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function XH(t=Tn()){var e;return Zd(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function JH(){return RM()&&document.documentMode===10}function AA(t=Tn()){return Zd(t)||SA(t)||RA(t)||CA(t)||/windows phone/i.test(t)||kA(t)}function ZH(){try{return!!(window&&window!==window.top)}catch{return!1}}/** + */function DT(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(kA(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(bA(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(CA(e))return"Blackberry";if(RA(e))return"Webos";if(Uv(e))return"Safari";if((e.includes("chrome/")||IA(e))&&!e.includes("edge/"))return"Chrome";if(SA(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function bA(t=bn()){return/firefox\//i.test(t)}function Uv(t=bn()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function IA(t=bn()){return/crios\//i.test(t)}function kA(t=bn()){return/iemobile/i.test(t)}function SA(t=bn()){return/android/i.test(t)}function CA(t=bn()){return/blackberry/i.test(t)}function RA(t=bn()){return/webos/i.test(t)}function Zd(t=bn()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function JH(t=bn()){var e;return Zd(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function ZH(){return Ax()&&document.documentMode===10}function AA(t=bn()){return Zd(t)||SA(t)||RA(t)||CA(t)||/windows phone/i.test(t)||kA(t)}function e4(){try{return!!(window&&window!==window.top)}catch{return!1}}/** * @license * Copyright 2020 Google LLC * @@ -2358,7 +2358,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function PA(t,e=[]){let n;switch(t){case"Browser":n=OT(Tn());break;case"Worker":n=`${OT(Tn())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Di}/${r}`}/** + */function PA(t,e=[]){let n;switch(t){case"Browser":n=DT(bn());break;case"Worker":n=`${DT(bn())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Di}/${r}`}/** * @license * Copyright 2022 Google LLC * @@ -2373,7 +2373,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class e4{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((o,a)=>{try{const l=e(i);o(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** + */class t4{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((o,a)=>{try{const l=e(i);o(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** * @license * Copyright 2023 Google LLC * @@ -2388,7 +2388,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function t4(t,e={}){return mu(t,"GET","/v2/passwordPolicy",yA(t,e))}/** + */async function n4(t,e={}){return _u(t,"GET","/v2/passwordPolicy",yA(t,e))}/** * @license * Copyright 2023 Google LLC * @@ -2403,7 +2403,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const n4=6;class r4{constructor(e){var n,r,s,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:n4,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(i=e.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,s,i,o,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(s=l.containsLowercaseLetter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsNumericCharacter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),s&&(n.meetsMaxPasswordLength=e.length<=s)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/** + */const r4=6;class s4{constructor(e){var n,r,s,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:r4,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(i=e.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,s,i,o,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(s=l.containsLowercaseLetter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsNumericCharacter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),s&&(n.meetsMaxPasswordLength=e.length<=s)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/** * @license * Copyright 2020 Google LLC * @@ -2418,7 +2418,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class s4{constructor(e,n,r,s){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new NT(this),this.idTokenSubscription=new NT(this),this.beforeStateQueue=new e4(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=mA,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=e.name,this.clientVersion=s.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Ss(n)),this._initializationPromise=this.queue(async()=>{var r,s;if(!this._deleted&&(this.persistenceManager=await pa.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((s=this.currentUser)===null||s===void 0?void 0:s.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var n;const r=await this.assertedPersistence.getCurrentUser();let s=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=s==null?void 0:s._redirectEventId,l=await this.tryRedirectSignIn(e);(!o||o===a)&&(l!=null&&l.user)&&(s=l.user,i=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(s)}catch(o){s=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return Ae(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await yf(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=MH()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const n=e?Bt(e):null;return n&&Ae(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&Ae(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(Ss(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await t4(this),n=new r4(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new za("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Ss(e)||this._popupRedirectResolver;Ae(n,this,"argument-error"),this.redirectPersistenceManager=await pa.create(this,[Ss(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===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 e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ae(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,r,s);return()=>{o=!0,l()}}else{const l=e.addObserver(n);return()=>{o=!0,l()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ae(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=PA(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const s=await this._getAppCheckToken();return s&&(n["X-Firebase-AppCheck"]=s),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n!=null&&n.error&&NH(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function ep(t){return Bt(t)}class NT{constructor(e){this.auth=e,this.observer=null,this.addObserver=MM(n=>this.observer=n)}get next(){return Ae(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** + */class i4{constructor(e,n,r,s){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new LT(this),this.idTokenSubscription=new LT(this),this.beforeStateQueue=new t4(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=mA,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=e.name,this.clientVersion=s.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Cs(n)),this._initializationPromise=this.queue(async()=>{var r,s;if(!this._deleted&&(this.persistenceManager=await pa.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((s=this.currentUser)===null||s===void 0?void 0:s.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var n;const r=await this.assertedPersistence.getCurrentUser();let s=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=s==null?void 0:s._redirectEventId,l=await this.tryRedirectSignIn(e);(!o||o===a)&&(l!=null&&l.user)&&(s=l.user,i=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(s)}catch(o){s=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return Ae(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Ef(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=FH()}async _delete(){this._deleted=!0}async updateCurrentUser(e){const n=e?Bt(e):null;return n&&Ae(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&Ae(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(Cs(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await n4(this),n=new s4(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new za("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Cs(e)||this._popupRedirectResolver;Ae(n,this,"argument-error"),this.redirectPersistenceManager=await pa.create(this,[Cs(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===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 e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ae(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,r,s);return()=>{o=!0,l()}}else{const l=e.addObserver(n);return()=>{o=!0,l()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ae(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=PA(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const s=await this._getAppCheckToken();return s&&(n["X-Firebase-AppCheck"]=s),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n!=null&&n.error&&DH(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function ep(t){return Bt(t)}class LT{constructor(e){this.auth=e,this.observer=null,this.addObserver=Fx(n=>this.observer=n)}get next(){return Ae(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** * @license * Copyright 2020 Google LLC * @@ -2433,7 +2433,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function i4(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}function o4(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=s=>{const i=Xr("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",i4().appendChild(r)})}function a4(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** + */function o4(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}function a4(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=s=>{const i=Xr("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",o4().appendChild(r)})}function l4(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** * @license * Copyright 2020 Google LLC * @@ -2448,7 +2448,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function l4(t,e){const n=ky(t,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(Xh(i,e??{}))return s;ss(s,"already-initialized")}return n.initialize({options:e})}function c4(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Ss);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}function u4(t,e,n){const r=ep(t);Ae(r._canInitEmulator,r,"emulator-config-failed"),Ae(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const s=!!(n!=null&&n.disableWarnings),i=OA(e),{host:o,port:a}=h4(e),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${o}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:o,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:s})}),s||f4()}function OA(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function h4(t){const e=OA(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const i=s[1];return{host:i,port:DT(r.substr(i.length+1))}}else{const[i,o]=r.split(":");return{host:i,port:DT(o)}}}function DT(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function f4(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&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"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** + */function c4(t,e){const n=ky(t,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(Zh(i,e??{}))return s;is(s,"already-initialized")}return n.initialize({options:e})}function u4(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Cs);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}function h4(t,e,n){const r=ep(t);Ae(r._canInitEmulator,r,"emulator-config-failed"),Ae(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const s=!!(n!=null&&n.disableWarnings),i=OA(e),{host:o,port:a}=f4(e),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${o}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:o,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:s})}),s||d4()}function OA(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function f4(t){const e=OA(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const i=s[1];return{host:i,port:MT(r.substr(i.length+1))}}else{const[i,o]=r.split(":");return{host:i,port:MT(o)}}}function MT(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function d4(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&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"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** * @license * Copyright 2020 Google LLC * @@ -2463,7 +2463,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class NA{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return ks("not implemented")}_getIdTokenResponse(e){return ks("not implemented")}_linkToIdToken(e,n){return ks("not implemented")}_getReauthenticationResolver(e){return ks("not implemented")}}/** + */class NA{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Ss("not implemented")}_getIdTokenResponse(e){return Ss("not implemented")}_linkToIdToken(e,n){return Ss("not implemented")}_getReauthenticationResolver(e){return Ss("not implemented")}}/** * @license * Copyright 2020 Google LLC * @@ -2478,7 +2478,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function ma(t,e){return UH(t,"POST","/v1/accounts:signInWithIdp",yA(t,e))}/** + */async function ma(t,e){return jH(t,"POST","/v1/accounts:signInWithIdp",yA(t,e))}/** * @license * Copyright 2020 Google LLC * @@ -2493,7 +2493,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const d4="http://localhost";class vo extends NA{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new vo(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):ss("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:s}=n,i=Dv(n,["providerId","signInMethod"]);if(!r||!s)return null;const o=new vo(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return ma(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,ma(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,ma(e,n)}buildRequest(){const e={requestUri:d4,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Qa(n)}return e}}/** + */const p4="http://localhost";class vo extends NA{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new vo(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):is("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:s}=n,i=Mv(n,["providerId","signInMethod"]);if(!r||!s)return null;const o=new vo(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return ma(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,ma(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,ma(e,n)}buildRequest(){const e={requestUri:p4,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Qa(n)}return e}}/** * @license * Copyright 2020 Google LLC * @@ -2508,7 +2508,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Vv{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** + */class jv{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** * @license * Copyright 2019 Google LLC * @@ -2523,7 +2523,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class gu extends Vv{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** + */class yu extends jv{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** * @license * Copyright 2020 Google LLC * @@ -2538,7 +2538,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class oi extends gu{constructor(){super("facebook.com")}static credential(e){return vo._fromParams({providerId:oi.PROVIDER_ID,signInMethod:oi.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return oi.credentialFromTaggedObject(e)}static credentialFromError(e){return oi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return oi.credential(e.oauthAccessToken)}catch{return null}}}oi.FACEBOOK_SIGN_IN_METHOD="facebook.com";oi.PROVIDER_ID="facebook.com";/** + */class oi extends yu{constructor(){super("facebook.com")}static credential(e){return vo._fromParams({providerId:oi.PROVIDER_ID,signInMethod:oi.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return oi.credentialFromTaggedObject(e)}static credentialFromError(e){return oi.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return oi.credential(e.oauthAccessToken)}catch{return null}}}oi.FACEBOOK_SIGN_IN_METHOD="facebook.com";oi.PROVIDER_ID="facebook.com";/** * @license * Copyright 2020 Google LLC * @@ -2553,7 +2553,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ai extends gu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return vo._fromParams({providerId:ai.PROVIDER_ID,signInMethod:ai.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return ai.credentialFromTaggedObject(e)}static credentialFromError(e){return ai.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return ai.credential(n,r)}catch{return null}}}ai.GOOGLE_SIGN_IN_METHOD="google.com";ai.PROVIDER_ID="google.com";/** + */class ai extends yu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return vo._fromParams({providerId:ai.PROVIDER_ID,signInMethod:ai.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return ai.credentialFromTaggedObject(e)}static credentialFromError(e){return ai.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return ai.credential(n,r)}catch{return null}}}ai.GOOGLE_SIGN_IN_METHOD="google.com";ai.PROVIDER_ID="google.com";/** * @license * Copyright 2020 Google LLC * @@ -2568,7 +2568,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class li extends gu{constructor(){super("github.com")}static credential(e){return vo._fromParams({providerId:li.PROVIDER_ID,signInMethod:li.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return li.credentialFromTaggedObject(e)}static credentialFromError(e){return li.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return li.credential(e.oauthAccessToken)}catch{return null}}}li.GITHUB_SIGN_IN_METHOD="github.com";li.PROVIDER_ID="github.com";/** + */class li extends yu{constructor(){super("github.com")}static credential(e){return vo._fromParams({providerId:li.PROVIDER_ID,signInMethod:li.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return li.credentialFromTaggedObject(e)}static credentialFromError(e){return li.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return li.credential(e.oauthAccessToken)}catch{return null}}}li.GITHUB_SIGN_IN_METHOD="github.com";li.PROVIDER_ID="github.com";/** * @license * Copyright 2020 Google LLC * @@ -2583,7 +2583,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ci extends gu{constructor(){super("twitter.com")}static credential(e,n){return vo._fromParams({providerId:ci.PROVIDER_ID,signInMethod:ci.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return ci.credentialFromTaggedObject(e)}static credentialFromError(e){return ci.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return ci.credential(n,r)}catch{return null}}}ci.TWITTER_SIGN_IN_METHOD="twitter.com";ci.PROVIDER_ID="twitter.com";/** + */class ci extends yu{constructor(){super("twitter.com")}static credential(e,n){return vo._fromParams({providerId:ci.PROVIDER_ID,signInMethod:ci.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return ci.credentialFromTaggedObject(e)}static credentialFromError(e){return ci.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return ci.credential(n,r)}catch{return null}}}ci.TWITTER_SIGN_IN_METHOD="twitter.com";ci.PROVIDER_ID="twitter.com";/** * @license * Copyright 2020 Google LLC * @@ -2598,7 +2598,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Ma{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,s=!1){const i=await uo._fromIdTokenResponse(e,r,s),o=LT(r);return new Ma({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const s=LT(r);return new Ma({user:e,providerId:s,_tokenResponse:r,operationType:n})}}function LT(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** + */class xa{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,s=!1){const i=await uo._fromIdTokenResponse(e,r,s),o=xT(r);return new xa({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const s=xT(r);return new xa({user:e,providerId:s,_tokenResponse:r,operationType:n})}}function xT(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** * @license * Copyright 2020 Google LLC * @@ -2613,7 +2613,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class vf extends as{constructor(e,n,r,s){var i;super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,vf.prototype),this.customData={appName:e.name,tenantId:(i=e.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,s){return new vf(e,n,r,s)}}function DA(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?vf._fromErrorAndOperation(t,i,e,r):i})}async function p4(t,e,n=!1){const r=await Dc(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return Ma._forOperation(t,"link",r)}/** + */class wf extends ls{constructor(e,n,r,s){var i;super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,wf.prototype),this.customData={appName:e.name,tenantId:(i=e.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,s){return new wf(e,n,r,s)}}function DA(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?wf._fromErrorAndOperation(t,i,e,r):i})}async function m4(t,e,n=!1){const r=await Dc(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return xa._forOperation(t,"link",r)}/** * @license * Copyright 2019 Google LLC * @@ -2628,7 +2628,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function m4(t,e,n=!1){const{auth:r}=t,s="reauthenticate";try{const i=await Dc(t,DA(r,s,e,t),n);Ae(i.idToken,r,"internal-error");const o=Mv(i.idToken);Ae(o,r,"internal-error");const{sub:a}=o;return Ae(t.uid===a,r,"user-mismatch"),Ma._forOperation(t,s,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&ss(r,"user-mismatch"),i}}/** + */async function g4(t,e,n=!1){const{auth:r}=t,s="reauthenticate";try{const i=await Dc(t,DA(r,s,e,t),n);Ae(i.idToken,r,"internal-error");const o=Vv(i.idToken);Ae(o,r,"internal-error");const{sub:a}=o;return Ae(t.uid===a,r,"user-mismatch"),xa._forOperation(t,s,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&is(r,"user-mismatch"),i}}/** * @license * Copyright 2020 Google LLC * @@ -2643,7 +2643,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function g4(t,e,n=!1){const r="signIn",s=await DA(t,r,e),i=await Ma._fromIdTokenResponse(t,r,s);return n||await t._updateCurrentUser(i.user),i}function LA(t,e,n,r){return Bt(t).onIdTokenChanged(e,n,r)}function _4(t,e,n){return Bt(t).beforeAuthStateChanged(e,n)}function nJ(t){return Bt(t).signOut()}const Ef="__sak";/** + */async function _4(t,e,n=!1){const r="signIn",s=await DA(t,r,e),i=await xa._fromIdTokenResponse(t,r,s);return n||await t._updateCurrentUser(i.user),i}function LA(t,e,n,r){return Bt(t).onIdTokenChanged(e,n,r)}function y4(t,e,n){return Bt(t).beforeAuthStateChanged(e,n)}function rJ(t){return Bt(t).signOut()}const Tf="__sak";/** * @license * Copyright 2019 Google LLC * @@ -2658,7 +2658,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class xA{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Ef,"1"),this.storage.removeItem(Ef),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** + */class MA{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Tf,"1"),this.storage.removeItem(Tf),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** * @license * Copyright 2020 Google LLC * @@ -2673,7 +2673,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function y4(){const t=Tn();return Fv(t)||Zd(t)}const v4=1e3,E4=10;class MA extends xA{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=y4()&&ZH(),this.fallbackToPolling=AA(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&e(n,s,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,l)=>{this.notifyListeners(o,l)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(e.newValue!==o)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);JH()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(s,E4):s()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},v4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}MA.type="LOCAL";const w4=MA;/** + */function v4(){const t=bn();return Uv(t)||Zd(t)}const E4=1e3,w4=10;class xA extends MA{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=v4()&&e4(),this.fallbackToPolling=AA(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&e(n,s,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,l)=>{this.notifyListeners(o,l)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(e.newValue!==o)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);ZH()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(s,w4):s()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},E4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}xA.type="LOCAL";const T4=xA;/** * @license * Copyright 2020 Google LLC * @@ -2688,7 +2688,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class FA extends xA{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}FA.type="SESSION";const VA=FA;/** + */class FA extends MA{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}FA.type="SESSION";const VA=FA;/** * @license * Copyright 2019 Google LLC * @@ -2703,7 +2703,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function T4(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** + */function b4(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** * @license * Copyright 2019 Google LLC * @@ -2718,7 +2718,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class tp{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(s=>s.isListeningto(e));if(n)return n;const r=new tp(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:s,data:i}=n.data,o=this.handlersMap[s];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(o).map(async c=>c(n.origin,i)),l=await T4(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:l})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}tp.receivers=[];/** + */class tp{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(s=>s.isListeningto(e));if(n)return n;const r=new tp(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:s,data:i}=n.data,o=this.handlersMap[s];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(o).map(async c=>c(n.origin,i)),l=await b4(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:l})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}tp.receivers=[];/** * @license * Copyright 2020 Google LLC * @@ -2733,7 +2733,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Uv(t="",e=10){let n="";for(let r=0;r{const c=Uv("",20);s.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);o={messageChannel:s,onMessage(h){const f=h;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(o),s.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:c,data:n},[s.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/** + */class I4{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let i,o;return new Promise((a,l)=>{const c=Bv("",20);s.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);o={messageChannel:s,onMessage(h){const f=h;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(o),s.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:c,data:n},[s.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/** * @license * Copyright 2020 Google LLC * @@ -2763,7 +2763,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Jr(){return window}function I4(t){Jr().location.href=t}/** + */function Jr(){return window}function k4(t){Jr().location.href=t}/** * @license * Copyright 2020 Google LLC. * @@ -2778,7 +2778,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function UA(){return typeof Jr().WorkerGlobalScope<"u"&&typeof Jr().importScripts=="function"}async function k4(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function S4(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function C4(){return UA()?self:null}/** + */function UA(){return typeof Jr().WorkerGlobalScope<"u"&&typeof Jr().importScripts=="function"}async function S4(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function C4(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function R4(){return UA()?self:null}/** * @license * Copyright 2019 Google LLC * @@ -2793,7 +2793,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const jA="firebaseLocalStorageDb",R4=1,wf="firebaseLocalStorage",BA="fbase_key";class _u{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function np(t,e){return t.transaction([wf],e?"readwrite":"readonly").objectStore(wf)}function A4(){const t=indexedDB.deleteDatabase(jA);return new _u(t).toPromise()}function $g(){const t=indexedDB.open(jA,R4);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(wf,{keyPath:BA})}catch(s){n(s)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(wf)?e(r):(r.close(),await A4(),e(await $g()))})})}async function xT(t,e,n){const r=np(t,!0).put({[BA]:e,value:n});return new _u(r).toPromise()}async function P4(t,e){const n=np(t,!1).get(e),r=await new _u(n).toPromise();return r===void 0?null:r.value}function MT(t,e){const n=np(t,!0).delete(e);return new _u(n).toPromise()}const O4=800,N4=3;class $A{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(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await $g(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>N4)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return UA()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tp._getInstance(C4()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await k4(),!this.activeServiceWorker)return;this.sender=new b4(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||S4()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await $g();return await xT(e,Ef,"1"),await MT(e,Ef),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>xT(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>P4(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>MT(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(s=>{const i=np(s,!1).getAll();return new _u(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;for(const{fbase_key:s,value:i}of e)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(i)&&(this.notifyListeners(s,i),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),O4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&this.stopPolling()}}$A.type="LOCAL";const D4=$A;new pu(3e4,6e4);/** + */const jA="firebaseLocalStorageDb",A4=1,bf="firebaseLocalStorage",BA="fbase_key";class vu{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function np(t,e){return t.transaction([bf],e?"readwrite":"readonly").objectStore(bf)}function P4(){const t=indexedDB.deleteDatabase(jA);return new vu(t).toPromise()}function $g(){const t=indexedDB.open(jA,A4);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(bf,{keyPath:BA})}catch(s){n(s)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(bf)?e(r):(r.close(),await P4(),e(await $g()))})})}async function FT(t,e,n){const r=np(t,!0).put({[BA]:e,value:n});return new vu(r).toPromise()}async function O4(t,e){const n=np(t,!1).get(e),r=await new vu(n).toPromise();return r===void 0?null:r.value}function VT(t,e){const n=np(t,!0).delete(e);return new vu(n).toPromise()}const N4=800,D4=3;class $A{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(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await $g(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>D4)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return UA()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tp._getInstance(R4()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await S4(),!this.activeServiceWorker)return;this.sender=new I4(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||C4()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await $g();return await FT(e,Tf,"1"),await VT(e,Tf),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>FT(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>O4(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>VT(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(s=>{const i=np(s,!1).getAll();return new vu(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;for(const{fbase_key:s,value:i}of e)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(i)&&(this.notifyListeners(s,i),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),N4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&this.stopPolling()}}$A.type="LOCAL";const L4=$A;new gu(3e4,6e4);/** * @license * Copyright 2021 Google LLC * @@ -2808,7 +2808,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function HA(t,e){return e?Ss(e):(Ae(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** + */function HA(t,e){return e?Cs(e):(Ae(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** * @license * Copyright 2019 Google LLC * @@ -2823,7 +2823,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class jv extends NA{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ma(e,this._buildIdpRequest())}_linkToIdToken(e,n){return ma(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return ma(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={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 e&&(n.idToken=e),n}}function L4(t){return g4(t.auth,new jv(t),t.bypassAuthState)}function x4(t){const{auth:e,user:n}=t;return Ae(n,e,"internal-error"),m4(n,new jv(t),t.bypassAuthState)}async function M4(t){const{auth:e,user:n}=t;return Ae(n,e,"internal-error"),p4(n,new jv(t),t.bypassAuthState)}/** + */class $v extends NA{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ma(e,this._buildIdpRequest())}_linkToIdToken(e,n){return ma(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return ma(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={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 e&&(n.idToken=e),n}}function M4(t){return _4(t.auth,new $v(t),t.bypassAuthState)}function x4(t){const{auth:e,user:n}=t;return Ae(n,e,"internal-error"),g4(n,new $v(t),t.bypassAuthState)}async function F4(t){const{auth:e,user:n}=t;return Ae(n,e,"internal-error"),m4(n,new $v(t),t.bypassAuthState)}/** * @license * Copyright 2020 Google LLC * @@ -2838,7 +2838,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class WA{constructor(e,n,r,s,i=!1){this.auth=e,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=e;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return L4;case"linkViaPopup":case"linkViaRedirect":return M4;case"reauthViaPopup":case"reauthViaRedirect":return x4;default:ss(this.auth,"internal-error")}}resolve(e){Bs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Bs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** + */class WA{constructor(e,n,r,s,i=!1){this.auth=e,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=e;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return M4;case"linkViaPopup":case"linkViaRedirect":return F4;case"reauthViaPopup":case"reauthViaRedirect":return x4;default:is(this.auth,"internal-error")}}resolve(e){Bs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Bs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** * @license * Copyright 2020 Google LLC * @@ -2853,7 +2853,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const F4=new pu(2e3,1e4);async function rJ(t,e,n){const r=ep(t);DH(t,e,Vv);const s=HA(r,n);return new to(r,"signInViaPopup",e,s).executeNotNull()}class to extends WA{constructor(e,n,r,s,i){super(e,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,to.currentPopupAction&&to.currentPopupAction.cancel(),to.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ae(e,this.auth,"internal-error"),e}async onExecution(){Bs(this.filter.length===1,"Popup operations only handle one event");const e=Uv();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Xr(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(Xr(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,to.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Xr(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,F4.get())};e()}}to.currentPopupAction=null;/** + */const V4=new gu(2e3,1e4);async function sJ(t,e,n){const r=ep(t);LH(t,e,jv);const s=HA(r,n);return new to(r,"signInViaPopup",e,s).executeNotNull()}class to extends WA{constructor(e,n,r,s,i){super(e,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,to.currentPopupAction&&to.currentPopupAction.cancel(),to.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ae(e,this.auth,"internal-error"),e}async onExecution(){Bs(this.filter.length===1,"Popup operations only handle one event");const e=Bv();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Xr(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(Xr(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,to.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Xr(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,V4.get())};e()}}to.currentPopupAction=null;/** * @license * Copyright 2020 Google LLC * @@ -2868,7 +2868,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const V4="pendingRedirect",kh=new Map;class U4 extends WA{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=kh.get(this.auth._key());if(!e){try{const r=await j4(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}kh.set(this.auth._key(),e)}return this.bypassAuthState||kh.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function j4(t,e){const n=H4(e),r=$4(t);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function B4(t,e){kh.set(t._key(),e)}function $4(t){return Ss(t._redirectPersistence)}function H4(t){return Ih(V4,t.config.apiKey,t.name)}async function W4(t,e,n=!1){const r=ep(t),s=HA(r,e),o=await new U4(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/** + */const U4="pendingRedirect",Ch=new Map;class j4 extends WA{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=Ch.get(this.auth._key());if(!e){try{const r=await B4(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Ch.set(this.auth._key(),e)}return this.bypassAuthState||Ch.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function B4(t,e){const n=W4(e),r=H4(t);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function $4(t,e){Ch.set(t._key(),e)}function H4(t){return Cs(t._redirectPersistence)}function W4(t){return Sh(U4,t.config.apiKey,t.name)}async function G4(t,e,n=!1){const r=ep(t),s=HA(r,e),o=await new j4(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/** * @license * Copyright 2020 Google LLC * @@ -2883,7 +2883,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const G4=10*60*1e3;class Y4{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!q4(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!GA(e)){const s=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Xr(this.auth,s))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=G4&&this.cachedEventUids.clear(),this.cachedEventUids.has(FT(e))}saveEventToCache(e){this.cachedEventUids.add(FT(e)),this.lastProcessedEventTime=Date.now()}}function FT(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function GA({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function q4(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return GA(t);default:return!1}}/** + */const Y4=10*60*1e3;class q4{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!K4(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!GA(e)){const s=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Xr(this.auth,s))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Y4&&this.cachedEventUids.clear(),this.cachedEventUids.has(UT(e))}saveEventToCache(e){this.cachedEventUids.add(UT(e)),this.lastProcessedEventTime=Date.now()}}function UT(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function GA({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function K4(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return GA(t);default:return!1}}/** * @license * Copyright 2020 Google LLC * @@ -2898,7 +2898,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function K4(t,e={}){return mu(t,"GET","/v1/projects",e)}/** + */async function z4(t,e={}){return _u(t,"GET","/v1/projects",e)}/** * @license * Copyright 2020 Google LLC * @@ -2913,7 +2913,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const z4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Q4=/^https?/;async function X4(t){if(t.config.emulator)return;const{authorizedDomains:e}=await K4(t);for(const n of e)try{if(J4(n))return}catch{}ss(t,"unauthorized-domain")}function J4(t){const e=Bg(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!Q4.test(n))return!1;if(z4.test(t))return r===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}/** + */const Q4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,X4=/^https?/;async function J4(t){if(t.config.emulator)return;const{authorizedDomains:e}=await z4(t);for(const n of e)try{if(Z4(n))return}catch{}is(t,"unauthorized-domain")}function Z4(t){const e=Bg(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!X4.test(n))return!1;if(Q4.test(t))return r===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}/** * @license * Copyright 2020 Google LLC. * @@ -2928,7 +2928,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Z4=new pu(3e4,6e4);function VT(){const t=Jr().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n{var r,s,i;function o(){VT(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{VT(),n(Xr(t,"network-request-failed"))},timeout:Z4.get()})}if(!((s=(r=Jr().gapi)===null||r===void 0?void 0:r.iframes)===null||s===void 0)&&s.Iframe)e(gapi.iframes.getContext());else if(!((i=Jr().gapi)===null||i===void 0)&&i.load)o();else{const a=a4("iframefcb");return Jr()[a]=()=>{gapi.load?o():n(Xr(t,"network-request-failed"))},o4(`https://apis.google.com/js/api.js?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw Sh=null,e})}let Sh=null;function t9(t){return Sh=Sh||e9(t),Sh}/** + */const e9=new gu(3e4,6e4);function jT(){const t=Jr().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n{var r,s,i;function o(){jT(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{jT(),n(Xr(t,"network-request-failed"))},timeout:e9.get()})}if(!((s=(r=Jr().gapi)===null||r===void 0?void 0:r.iframes)===null||s===void 0)&&s.Iframe)e(gapi.iframes.getContext());else if(!((i=Jr().gapi)===null||i===void 0)&&i.load)o();else{const a=l4("iframefcb");return Jr()[a]=()=>{gapi.load?o():n(Xr(t,"network-request-failed"))},a4(`https://apis.google.com/js/api.js?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw Rh=null,e})}let Rh=null;function n9(t){return Rh=Rh||t9(t),Rh}/** * @license * Copyright 2020 Google LLC. * @@ -2943,7 +2943,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const n9=new pu(5e3,15e3),r9="__/auth/iframe",s9="emulator/auth/iframe",i9={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},o9=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function a9(t){const e=t.config;Ae(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?xv(e,s9):`https://${t.config.authDomain}/${r9}`,r={apiKey:e.apiKey,appName:t.name,v:Di},s=o9.get(t.config.apiHost);s&&(r.eid=s);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${Qa(r).slice(1)}`}async function l9(t){const e=await t9(t),n=Jr().gapi;return Ae(n,t,"internal-error"),e.open({where:document.body,url:a9(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:i9,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=Xr(t,"network-request-failed"),a=Jr().setTimeout(()=>{i(o)},n9.get());function l(){Jr().clearTimeout(a),s(r)}r.ping(l).then(l,()=>{i(o)})}))}/** + */const r9=new gu(5e3,15e3),s9="__/auth/iframe",i9="emulator/auth/iframe",o9={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},a9=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function l9(t){const e=t.config;Ae(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?Fv(e,i9):`https://${t.config.authDomain}/${s9}`,r={apiKey:e.apiKey,appName:t.name,v:Di},s=a9.get(t.config.apiHost);s&&(r.eid=s);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${Qa(r).slice(1)}`}async function c9(t){const e=await n9(t),n=Jr().gapi;return Ae(n,t,"internal-error"),e.open({where:document.body,url:l9(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:o9,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=Xr(t,"network-request-failed"),a=Jr().setTimeout(()=>{i(o)},r9.get());function l(){Jr().clearTimeout(a),s(r)}r.ping(l).then(l,()=>{i(o)})}))}/** * @license * Copyright 2020 Google LLC. * @@ -2958,7 +2958,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const c9={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},u9=500,h9=600,f9="_blank",d9="http://localhost";class UT{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function p9(t,e,n,r=u9,s=h9){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},c9),{width:r.toString(),height:s.toString(),top:i,left:o}),c=Tn().toLowerCase();n&&(a=IA(c)?f9:n),bA(c)&&(e=e||d9,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[v,k])=>`${f}${v}=${k},`,"");if(XH(c)&&a!=="_self")return m9(e||"",a),new UT(null);const h=window.open(e||"",a,u);Ae(h,t,"popup-blocked");try{h.focus()}catch{}return new UT(h)}function m9(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** + */const u9={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},h9=500,f9=600,d9="_blank",p9="http://localhost";class BT{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function m9(t,e,n,r=h9,s=f9){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},u9),{width:r.toString(),height:s.toString(),top:i,left:o}),c=bn().toLowerCase();n&&(a=IA(c)?d9:n),bA(c)&&(e=e||p9,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[v,k])=>`${f}${v}=${k},`,"");if(JH(c)&&a!=="_self")return g9(e||"",a),new BT(null);const h=window.open(e||"",a,u);Ae(h,t,"popup-blocked");try{h.focus()}catch{}return new BT(h)}function g9(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** * @license * Copyright 2021 Google LLC * @@ -2973,7 +2973,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const g9="__/auth/handler",_9="emulator/auth/handler",y9=encodeURIComponent("fac");async function jT(t,e,n,r,s,i){Ae(t.config.authDomain,t,"auth-domain-config-required"),Ae(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Di,eventId:s};if(e instanceof Vv){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",Qm(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[u,h]of Object.entries(i||{}))o[u]=h}if(e instanceof gu){const u=e.getScopes().filter(h=>h!=="");u.length>0&&(o.scopes=u.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await t._getAppCheckToken(),c=l?`#${y9}=${encodeURIComponent(l)}`:"";return`${v9(t)}?${Qa(a).slice(1)}${c}`}function v9({config:t}){return t.emulator?xv(t,_9):`https://${t.authDomain}/${g9}`}/** + */const _9="__/auth/handler",y9="emulator/auth/handler",v9=encodeURIComponent("fac");async function $T(t,e,n,r,s,i){Ae(t.config.authDomain,t,"auth-domain-config-required"),Ae(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Di,eventId:s};if(e instanceof jv){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",Qm(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[u,h]of Object.entries(i||{}))o[u]=h}if(e instanceof yu){const u=e.getScopes().filter(h=>h!=="");u.length>0&&(o.scopes=u.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await t._getAppCheckToken(),c=l?`#${v9}=${encodeURIComponent(l)}`:"";return`${E9(t)}?${Qa(a).slice(1)}${c}`}function E9({config:t}){return t.emulator?Fv(t,y9):`https://${t.authDomain}/${_9}`}/** * @license * Copyright 2020 Google LLC * @@ -2988,7 +2988,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const cm="webStorageSupport";class E9{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=VA,this._completeRedirectFn=W4,this._overrideRedirectResult=B4}async _openPopup(e,n,r,s){var i;Bs((i=this.eventManagers[e._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const o=await jT(e,n,r,Bg(),s);return p9(e,o,Uv())}async _openRedirect(e,n,r,s){await this._originValidation(e);const i=await jT(e,n,r,Bg(),s);return I4(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(Bs(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await l9(e),r=new Y4(e);return n.register("authEvent",s=>(Ae(s==null?void 0:s.authEvent,e,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(cm,{type:cm},s=>{var i;const o=(i=s==null?void 0:s[0])===null||i===void 0?void 0:i[cm];o!==void 0&&n(!!o),ss(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=X4(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return AA()||Fv()||Zd()}}const w9=E9;var BT="@firebase/auth",$T="1.3.0";/** + */const cm="webStorageSupport";class w9{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=VA,this._completeRedirectFn=G4,this._overrideRedirectResult=$4}async _openPopup(e,n,r,s){var i;Bs((i=this.eventManagers[e._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const o=await $T(e,n,r,Bg(),s);return m9(e,o,Bv())}async _openRedirect(e,n,r,s){await this._originValidation(e);const i=await $T(e,n,r,Bg(),s);return k4(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(Bs(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await c9(e),r=new q4(e);return n.register("authEvent",s=>(Ae(s==null?void 0:s.authEvent,e,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(cm,{type:cm},s=>{var i;const o=(i=s==null?void 0:s[0])===null||i===void 0?void 0:i[cm];o!==void 0&&n(!!o),is(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=J4(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return AA()||Uv()||Zd()}}const T9=w9;var HT="@firebase/auth",WT="1.3.0";/** * @license * Copyright 2020 Google LLC * @@ -3003,7 +3003,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class T9{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ae(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** + */class b9{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ae(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** * @license * Copyright 2020 Google LLC * @@ -3018,7 +3018,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function b9(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function I9(t){ns(new kr("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;Ae(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:PA(t)},c=new s4(r,s,i,l);return c4(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),ns(new kr("auth-internal",e=>{const n=ep(e.getProvider("auth").getImmediate());return(r=>new T9(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),zn(BT,$T,b9(t)),zn(BT,$T,"esm2017")}/** + */function I9(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}function k9(t){ns(new kr("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;Ae(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:PA(t)},c=new i4(r,s,i,l);return u4(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),ns(new kr("auth-internal",e=>{const n=ep(e.getProvider("auth").getImmediate());return(r=>new b9(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Qn(HT,WT,I9(t)),Qn(HT,WT,"esm2017")}/** * @license * Copyright 2021 Google LLC * @@ -3033,7 +3033,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const k9=5*60,S9=oS("authIdTokenMaxAge")||k9;let HT=null;const C9=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>S9)return;const s=n==null?void 0:n.token;HT!==s&&(HT=s,await fetch(t,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function YA(t=Sy()){const e=ky(t,"auth");if(e.isInitialized())return e.getImmediate();const n=l4(t,{popupRedirectResolver:w9,persistence:[D4,w4,VA]}),r=oS("authTokenSyncURL");if(r){const i=C9(r);_4(n,i,()=>i(n.currentUser)),LA(n,o=>i(o))}const s=sS("auth");return s&&u4(n,`http://${s}`),n}I9("Browser");const R9=!1,A9=!0;/** + */const S9=5*60,C9=lS("authIdTokenMaxAge")||S9;let GT=null;const R9=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>C9)return;const s=n==null?void 0:n.token;GT!==s&&(GT=s,await fetch(t,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function YA(t=Sy()){const e=ky(t,"auth");if(e.isInitialized())return e.getImmediate();const n=c4(t,{popupRedirectResolver:T9,persistence:[L4,T4,VA]}),r=lS("authTokenSyncURL");if(r){const i=R9(r);y4(n,i,()=>i(n.currentUser)),LA(n,o=>i(o))}const s=oS("auth");return s&&h4(n,`http://${s}`),n}k9("Browser");const A9=!1,P9=!0;/** * @license * Copyright 2020 Google LLC * @@ -3048,7 +3048,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const P9=new Map,O9={activated:!1,tokenObservers:[]};function Rr(t){return P9.get(t)||Object.assign({},O9)}const WT={OFFSET_DURATION:5*60*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:16*60*1e3};/** + */const O9=new Map,N9={activated:!1,tokenObservers:[]};function Rr(t){return O9.get(t)||Object.assign({},N9)}const YT={OFFSET_DURATION:5*60*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:16*60*1e3};/** * @license * Copyright 2020 Google LLC * @@ -3063,7 +3063,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class N9{constructor(e,n,r,s,i){if(this.operation=e,this.retryPolicy=n,this.getWaitDuration=r,this.lowerBound=s,this.upperBound=i,this.pending=null,this.nextErrorWaitInterval=s,s>i)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new pc,await D9(this.getNextRun(e)),this.pending.resolve(),await this.pending.promise,this.pending=new pc,await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(n){this.retryPolicy(n)?this.process(!1).catch(()=>{}):this.stop()}}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const n=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),n}}}function D9(t){return new Promise(e=>{setTimeout(e,t)})}/** + */class D9{constructor(e,n,r,s,i){if(this.operation=e,this.retryPolicy=n,this.getWaitDuration=r,this.lowerBound=s,this.upperBound=i,this.pending=null,this.nextErrorWaitInterval=s,s>i)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new pc,await L9(this.getNextRun(e)),this.pending.resolve(),await this.pending.promise,this.pending=new pc,await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(n){this.retryPolicy(n)?this.process(!1).catch(()=>{}):this.stop()}}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const n=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),n}}}function L9(t){return new Promise(e=>{setTimeout(e,t)})}/** * @license * Copyright 2020 Google LLC * @@ -3078,7 +3078,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const L9={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"},Tf=new za("appCheck","AppCheck",L9);function qA(t){if(!Rr(t).activated)throw Tf.create("use-before-activation",{appName:t.name})}/** + */const M9={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"},If=new za("appCheck","AppCheck",M9);function qA(t){if(!Rr(t).activated)throw If.create("use-before-activation",{appName:t.name})}/** * @license * Copyright 2020 Google LLC * @@ -3093,7 +3093,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const x9="firebase-app-check-database",M9=1,Hg="firebase-app-check-store";let sh=null;function F9(){return sh||(sh=new Promise((t,e)=>{try{const n=indexedDB.open(x9,M9);n.onsuccess=r=>{t(r.target.result)},n.onerror=r=>{var s;e(Tf.create("storage-open",{originalErrorMessage:(s=r.target.error)===null||s===void 0?void 0:s.message}))},n.onupgradeneeded=r=>{const s=r.target.result;switch(r.oldVersion){case 0:s.createObjectStore(Hg,{keyPath:"compositeKey"})}}}catch(n){e(Tf.create("storage-open",{originalErrorMessage:n==null?void 0:n.message}))}}),sh)}function V9(t,e){return U9(j9(t),e)}async function U9(t,e){const r=(await F9()).transaction(Hg,"readwrite"),i=r.objectStore(Hg).put({compositeKey:t,value:e});return new Promise((o,a)=>{i.onsuccess=l=>{o()},r.onerror=l=>{var c;a(Tf.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})}function j9(t){return`${t.options.appId}-${t.name}`}/** + */const x9="firebase-app-check-database",F9=1,Hg="firebase-app-check-store";let oh=null;function V9(){return oh||(oh=new Promise((t,e)=>{try{const n=indexedDB.open(x9,F9);n.onsuccess=r=>{t(r.target.result)},n.onerror=r=>{var s;e(If.create("storage-open",{originalErrorMessage:(s=r.target.error)===null||s===void 0?void 0:s.message}))},n.onupgradeneeded=r=>{const s=r.target.result;switch(r.oldVersion){case 0:s.createObjectStore(Hg,{keyPath:"compositeKey"})}}}catch(n){e(If.create("storage-open",{originalErrorMessage:n==null?void 0:n.message}))}}),oh)}function U9(t,e){return j9(B9(t),e)}async function j9(t,e){const r=(await V9()).transaction(Hg,"readwrite"),i=r.objectStore(Hg).put({compositeKey:t,value:e});return new Promise((o,a)=>{i.onsuccess=l=>{o()},r.onerror=l=>{var c;a(If.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})}function B9(t){return`${t.options.appId}-${t.name}`}/** * @license * Copyright 2020 Google LLC * @@ -3108,7 +3108,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Wg=new qc("@firebase/app-check");function GT(t,e){return cS()?V9(t,e).catch(n=>{Wg.warn(`Failed to write token to IndexedDB. Error: ${n}`)}):Promise.resolve()}/** + */const Wg=new qc("@firebase/app-check");function qT(t,e){return hS()?U9(t,e).catch(n=>{Wg.warn(`Failed to write token to IndexedDB. Error: ${n}`)}):Promise.resolve()}/** * @license * Copyright 2020 Google LLC * @@ -3123,7 +3123,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const B9={error:"UNKNOWN_ERROR"};function $9(t){return dd.encodeString(JSON.stringify(t),!1)}async function Gg(t,e=!1){const n=t.app;qA(n);const r=Rr(n);let s=r.token,i;if(s&&!Ll(s)&&(r.token=void 0,s=void 0),!s){const l=await r.cachedTokenPromise;l&&(Ll(l)?s=l:await GT(n,void 0))}if(!e&&s&&Ll(s))return{token:s.token};let o=!1;try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),o=!0),s=await Rr(n).exchangeTokenPromise}catch(l){l.code==="appCheck/throttled"?Wg.warn(l.message):Wg.error(l),i=l}let a;return s?i?Ll(s)?a={token:s.token,internalError:i}:a=qT(i):(a={token:s.token},r.token=s,await GT(n,s)):a=qT(i),o&&Y9(n,a),a}async function H9(t){const e=t.app;qA(e);const{provider:n}=Rr(e);{const{token:r}=await n.getToken();return{token:r}}}function W9(t,e,n,r){const{app:s}=t,i=Rr(s),o={next:n,error:r,type:e};if(i.tokenObservers=[...i.tokenObservers,o],i.token&&Ll(i.token)){const a=i.token;Promise.resolve().then(()=>{n({token:a.token}),YT(t)}).catch(()=>{})}i.cachedTokenPromise.then(()=>YT(t))}function KA(t,e){const n=Rr(t),r=n.tokenObservers.filter(s=>s.next!==e);r.length===0&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function YT(t){const{app:e}=t,n=Rr(e);let r=n.tokenRefresher;r||(r=G9(t),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function G9(t){const{app:e}=t;return new N9(async()=>{const n=Rr(e);let r;if(n.token?r=await Gg(t,!0):r=await Gg(t),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{const n=Rr(e);if(n.token){let r=n.token.issuedAtTimeMillis+(n.token.expireTimeMillis-n.token.issuedAtTimeMillis)*.5+3e5;const s=n.token.expireTimeMillis-5*60*1e3;return r=Math.min(r,s),Math.max(0,r-Date.now())}else return 0},WT.RETRIAL_MIN_WAIT,WT.RETRIAL_MAX_WAIT)}function Y9(t,e){const n=Rr(t).tokenObservers;for(const r of n)try{r.type==="EXTERNAL"&&e.error!=null?r.error(e.error):r.next(e)}catch{}}function Ll(t){return t.expireTimeMillis-Date.now()>0}function qT(t){return{token:$9(B9),error:t}}/** + */const $9={error:"UNKNOWN_ERROR"};function H9(t){return md.encodeString(JSON.stringify(t),!1)}async function Gg(t,e=!1){const n=t.app;qA(n);const r=Rr(n);let s=r.token,i;if(s&&!Ll(s)&&(r.token=void 0,s=void 0),!s){const l=await r.cachedTokenPromise;l&&(Ll(l)?s=l:await qT(n,void 0))}if(!e&&s&&Ll(s))return{token:s.token};let o=!1;try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),o=!0),s=await Rr(n).exchangeTokenPromise}catch(l){l.code==="appCheck/throttled"?Wg.warn(l.message):Wg.error(l),i=l}let a;return s?i?Ll(s)?a={token:s.token,internalError:i}:a=zT(i):(a={token:s.token},r.token=s,await qT(n,s)):a=zT(i),o&&q9(n,a),a}async function W9(t){const e=t.app;qA(e);const{provider:n}=Rr(e);{const{token:r}=await n.getToken();return{token:r}}}function G9(t,e,n,r){const{app:s}=t,i=Rr(s),o={next:n,error:r,type:e};if(i.tokenObservers=[...i.tokenObservers,o],i.token&&Ll(i.token)){const a=i.token;Promise.resolve().then(()=>{n({token:a.token}),KT(t)}).catch(()=>{})}i.cachedTokenPromise.then(()=>KT(t))}function KA(t,e){const n=Rr(t),r=n.tokenObservers.filter(s=>s.next!==e);r.length===0&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function KT(t){const{app:e}=t,n=Rr(e);let r=n.tokenRefresher;r||(r=Y9(t),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function Y9(t){const{app:e}=t;return new D9(async()=>{const n=Rr(e);let r;if(n.token?r=await Gg(t,!0):r=await Gg(t),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{const n=Rr(e);if(n.token){let r=n.token.issuedAtTimeMillis+(n.token.expireTimeMillis-n.token.issuedAtTimeMillis)*.5+3e5;const s=n.token.expireTimeMillis-5*60*1e3;return r=Math.min(r,s),Math.max(0,r-Date.now())}else return 0},YT.RETRIAL_MIN_WAIT,YT.RETRIAL_MAX_WAIT)}function q9(t,e){const n=Rr(t).tokenObservers;for(const r of n)try{r.type==="EXTERNAL"&&e.error!=null?r.error(e.error):r.next(e)}catch{}}function Ll(t){return t.expireTimeMillis-Date.now()>0}function zT(t){return{token:H9($9),error:t}}/** * @license * Copyright 2020 Google LLC * @@ -3138,7 +3138,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class q9{constructor(e,n){this.app=e,this.heartbeatServiceProvider=n}_delete(){const{tokenObservers:e}=Rr(this.app);for(const n of e)KA(this.app,n.next);return Promise.resolve()}}function K9(t,e){return new q9(t,e)}function z9(t){return{getToken:e=>Gg(t,e),getLimitedUseToken:()=>H9(t),addTokenListener:e=>W9(t,"INTERNAL",e),removeTokenListener:e=>KA(t.app,e)}}const Q9="@firebase/app-check",X9="0.8.0",J9="app-check",KT="app-check-internal";function Z9(){ns(new kr(J9,t=>{const e=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat");return K9(e,n)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,e,n)=>{t.getProvider(KT).initialize()})),ns(new kr(KT,t=>{const e=t.getProvider("app-check").getImmediate();return z9(e)},"PUBLIC").setInstantiationMode("EXPLICIT")),zn(Q9,X9)}Z9();var eW="firebase",tW="10.4.0";/** + */class K9{constructor(e,n){this.app=e,this.heartbeatServiceProvider=n}_delete(){const{tokenObservers:e}=Rr(this.app);for(const n of e)KA(this.app,n.next);return Promise.resolve()}}function z9(t,e){return new K9(t,e)}function Q9(t){return{getToken:e=>Gg(t,e),getLimitedUseToken:()=>W9(t),addTokenListener:e=>G9(t,"INTERNAL",e),removeTokenListener:e=>KA(t.app,e)}}const X9="@firebase/app-check",J9="0.8.0",Z9="app-check",QT="app-check-internal";function eW(){ns(new kr(Z9,t=>{const e=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat");return z9(e,n)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,e,n)=>{t.getProvider(QT).initialize()})),ns(new kr(QT,t=>{const e=t.getProvider("app-check").getImmediate();return Q9(e)},"PUBLIC").setInstantiationMode("EXPLICIT")),Qn(X9,J9)}eW();var tW="firebase",nW="10.4.0";/** * @license * Copyright 2020 Google LLC * @@ -3153,7 +3153,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */zn(eW,tW,"app");const zA=Symbol("firebaseApp");function No(t){return Or()&&Ut(zA,null)||Sy(t)}const qr=()=>{},nW=typeof window<"u";function Bv(t,e){return e.split(".").reduce((n,r)=>n&&n[r],t)}function rW(t,e,n){const r=(""+e).split("."),s=r.pop(),i=r.reduce((o,a)=>o&&o[a],t);if(i!=null)return Array.isArray(i)?i.splice(Number(s),1,n):i[s]=n}function Do(t){return!!t&&typeof t=="object"}const sW=Object.prototype;function iW(t){return Do(t)&&Object.getPrototypeOf(t)===sW}function $v(t){return Do(t)&&t.type==="document"}function oW(t){return Do(t)&&t.type==="collection"}function aW(t){return $v(t)||oW(t)}function lW(t){return Do(t)&&t.type==="query"}function cW(t){return Do(t)&&"ref"in t}function uW(t){return Do(t)&&typeof t.bucket=="string"}function hW(t,e){let n;return()=>{if(!n)return n=!0,t(e())}}const fW=Symbol.for("v-scx");function dW(){return!!Ut(fW,0)}const ih=new WeakMap;function pW(t,e){if(!ih.has(t)){const n=Wc(!0);ih.set(t,n);const{unmount:r}=e;e.unmount=()=>{r.call(e),n.stop(),ih.delete(t)}}return ih.get(t)}const QA=new WeakMap;function sJ(t){return QA.get(No(t))}const oh=new WeakMap;function XA(t){const e=No(t);if(!oh.has(e)){let n;const s=[new Promise(i=>{n=i}),i=>{oh.set(e,i),n(i.value)}];oh.set(e,s)}return oh.get(e)}function mW(t){const e=XA(t);return Array.isArray(e)?e[0]:Promise.resolve(e.value)}function gW(t,e){const n=YA(e);LA(n,r=>{const s=XA();t.value=r,Array.isArray(s)&&s[1](t)})}const zT="@firebase/database",QT="1.0.1";/** + */Qn(tW,nW,"app");const zA=Symbol("firebaseApp");function No(t){return Or()&&Ut(zA,null)||Sy(t)}const qr=()=>{},rW=typeof window<"u";function Hv(t,e){return e.split(".").reduce((n,r)=>n&&n[r],t)}function sW(t,e,n){const r=(""+e).split("."),s=r.pop(),i=r.reduce((o,a)=>o&&o[a],t);if(i!=null)return Array.isArray(i)?i.splice(Number(s),1,n):i[s]=n}function Do(t){return!!t&&typeof t=="object"}const iW=Object.prototype;function oW(t){return Do(t)&&Object.getPrototypeOf(t)===iW}function Wv(t){return Do(t)&&t.type==="document"}function aW(t){return Do(t)&&t.type==="collection"}function lW(t){return Wv(t)||aW(t)}function cW(t){return Do(t)&&t.type==="query"}function uW(t){return Do(t)&&"ref"in t}function hW(t){return Do(t)&&typeof t.bucket=="string"}function fW(t,e){let n;return()=>{if(!n)return n=!0,t(e())}}const dW=Symbol.for("v-scx");function pW(){return!!Ut(dW,0)}const ah=new WeakMap;function mW(t,e){if(!ah.has(t)){const n=Wc(!0);ah.set(t,n);const{unmount:r}=e;e.unmount=()=>{r.call(e),n.stop(),ah.delete(t)}}return ah.get(t)}const QA=new WeakMap;function iJ(t){return QA.get(No(t))}const lh=new WeakMap;function XA(t){const e=No(t);if(!lh.has(e)){let n;const s=[new Promise(i=>{n=i}),i=>{lh.set(e,i),n(i.value)}];lh.set(e,s)}return lh.get(e)}function gW(t){const e=XA(t);return Array.isArray(e)?e[0]:Promise.resolve(e.value)}function _W(t,e){const n=YA(e);LA(n,r=>{const s=XA();t.value=r,Array.isArray(s)&&s[1](t)})}const XT="@firebase/database",JT="1.0.1";/** * @license * Copyright 2019 Google LLC * @@ -3168,7 +3168,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let JA="";function _W(t){JA=t}/** + */let JA="";function yW(t){JA=t}/** * @license * Copyright 2017 Google LLC * @@ -3183,7 +3183,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class yW{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,n){n==null?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),on(n))}get(e){const n=this.domStorage_.getItem(this.prefixedName_(e));return n==null?null:mc(n)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}/** + */class vW{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,n){n==null?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),on(n))}get(e){const n=this.domStorage_.getItem(this.prefixedName_(e));return n==null?null:mc(n)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}/** * @license * Copyright 2017 Google LLC * @@ -3198,7 +3198,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class vW{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,n){n==null?delete this.cache_[e]:this.cache_[e]=n}get(e){return Ws(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}/** + */class EW{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,n){n==null?delete this.cache_[e]:this.cache_[e]=n}get(e){return Ws(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}/** * @license * Copyright 2017 Google LLC * @@ -3213,7 +3213,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ZA=function(t){try{if(typeof window<"u"&&typeof window[t]<"u"){const e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new yW(e)}}catch{}return new vW},no=ZA("localStorage"),Yg=ZA("sessionStorage");/** + */const ZA=function(t){try{if(typeof window<"u"&&typeof window[t]<"u"){const e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new vW(e)}}catch{}return new EW},no=ZA("localStorage"),Yg=ZA("sessionStorage");/** * @license * Copyright 2017 Google LLC * @@ -3228,7 +3228,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ga=new qc("@firebase/database"),EW=function(){let t=1;return function(){return t++}}(),eP=function(t){const e=jM(t),n=new xM;n.update(e);const r=n.digest();return dd.encodeByteArray(r)},yu=function(...t){let e="";for(let n=0;n{document.readyState==="complete"&&n()}),window.attachEvent("onload",n))}},Fa="[MIN_NAME]",wo="[MAX_NAME]",rl=function(t,e){if(t===e)return 0;if(t===Fa||e===wo)return-1;if(e===Fa||t===wo)return 1;{const n=JT(t),r=JT(e);return n!==null?r!==null?n-r===0?t.length-e.length:n-r:-1:r!==null?1:tn?r.push(t.substring(s,n)):r.push(t.substring(s,s+e));return r};function cr(t,e){for(const n in t)t.hasOwnProperty(n)&&e(n,t[n])}const rP=function(t){pe(!tP(t),"Invalid JSON number");const e=11,n=52,r=(1<=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(t)/Math.LN2),r),i=a+r,o=Math.round(t*Math.pow(2,n-a)-Math.pow(2,n))):(i=0,o=Math.round(t/Math.pow(2,1-r-n))));const c=[];for(l=n;l;l-=1)c.push(o%2?1:0),o=Math.floor(o/2);for(l=e;l;l-=1)c.push(i%2?1:0),i=Math.floor(i/2);c.push(s?1:0),c.reverse();const u=c.join("");let h="";for(l=0;l<64;l+=8){let f=parseInt(u.substr(l,8),2).toString(16);f.length===1&&(f="0"+f),h=h+f}return h.toLowerCase()},kW=function(){return!!(typeof window=="object"&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},SW=function(){return typeof Windows=="object"&&typeof Windows.UI=="object"},CW=new RegExp("^-?(0*)\\d{1,10}$"),RW=-2147483648,AW=2147483647,JT=function(t){if(CW.test(t)){const e=Number(t);if(e>=RW&&e<=AW)return e}return null},Eu=function(t){try{t()}catch(e){setTimeout(()=>{const n=e.stack||"";throw Xn("Exception was thrown by user callback.",n),e},Math.floor(0))}},PW=function(){return(typeof window=="object"&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Ql=function(t,e){const n=setTimeout(t,e);return typeof n=="number"&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(n):typeof n=="object"&&n.unref&&n.unref(),n};/** + */const ga=new qc("@firebase/database"),wW=function(){let t=1;return function(){return t++}}(),eP=function(t){const e=Bx(t),n=new xx;n.update(e);const r=n.digest();return md.encodeByteArray(r)},Eu=function(...t){let e="";for(let n=0;n{document.readyState==="complete"&&n()}),window.attachEvent("onload",n))}},Fa="[MIN_NAME]",wo="[MAX_NAME]",rl=function(t,e){if(t===e)return 0;if(t===Fa||e===wo)return-1;if(e===Fa||t===wo)return 1;{const n=eb(t),r=eb(e);return n!==null?r!==null?n-r===0?t.length-e.length:n-r:-1:r!==null?1:tn?r.push(t.substring(s,n)):r.push(t.substring(s,s+e));return r};function cr(t,e){for(const n in t)t.hasOwnProperty(n)&&e(n,t[n])}const rP=function(t){pe(!tP(t),"Invalid JSON number");const e=11,n=52,r=(1<=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(t)/Math.LN2),r),i=a+r,o=Math.round(t*Math.pow(2,n-a)-Math.pow(2,n))):(i=0,o=Math.round(t/Math.pow(2,1-r-n))));const c=[];for(l=n;l;l-=1)c.push(o%2?1:0),o=Math.floor(o/2);for(l=e;l;l-=1)c.push(i%2?1:0),i=Math.floor(i/2);c.push(s?1:0),c.reverse();const u=c.join("");let h="";for(l=0;l<64;l+=8){let f=parseInt(u.substr(l,8),2).toString(16);f.length===1&&(f="0"+f),h=h+f}return h.toLowerCase()},SW=function(){return!!(typeof window=="object"&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},CW=function(){return typeof Windows=="object"&&typeof Windows.UI=="object"},RW=new RegExp("^-?(0*)\\d{1,10}$"),AW=-2147483648,PW=2147483647,eb=function(t){if(RW.test(t)){const e=Number(t);if(e>=AW&&e<=PW)return e}return null},Tu=function(t){try{t()}catch(e){setTimeout(()=>{const n=e.stack||"";throw Xn("Exception was thrown by user callback.",n),e},Math.floor(0))}},OW=function(){return(typeof window=="object"&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Ql=function(t,e){const n=setTimeout(t,e);return typeof n=="number"&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(n):typeof n=="object"&&n.unref&&n.unref(),n};/** * @license * Copyright 2021 Google LLC * @@ -3243,7 +3243,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class OW{constructor(e,n){this.appName_=e,this.appCheckProvider=n,this.appCheck=n==null?void 0:n.getImmediate({optional:!0}),this.appCheck||n==null||n.get().then(r=>this.appCheck=r)}getToken(e){return this.appCheck?this.appCheck.getToken(e):new Promise((n,r)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(n,r):n(null)},0)})}addTokenChangeListener(e){var n;(n=this.appCheckProvider)===null||n===void 0||n.get().then(r=>r.addTokenListener(e))}notifyForInvalidToken(){Xn(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}/** + */class NW{constructor(e,n){this.appName_=e,this.appCheckProvider=n,this.appCheck=n==null?void 0:n.getImmediate({optional:!0}),this.appCheck||n==null||n.get().then(r=>this.appCheck=r)}getToken(e){return this.appCheck?this.appCheck.getToken(e):new Promise((n,r)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(n,r):n(null)},0)})}addTokenChangeListener(e){var n;(n=this.appCheckProvider)===null||n===void 0||n.get().then(r=>r.addTokenListener(e))}notifyForInvalidToken(){Xn(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}/** * @license * Copyright 2017 Google LLC * @@ -3258,7 +3258,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class NW{constructor(e,n,r){this.appName_=e,this.firebaseOptions_=n,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(s=>this.auth_=s)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(n=>n&&n.code==="auth/token-not-initialized"?(fn("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(n)):new Promise((n,r)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(n,r):n(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(n=>n.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(n=>n.removeAuthTokenListener(e))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Xn(e)}}class Kg{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Kg.OWNER="owner";/** + */class DW{constructor(e,n,r){this.appName_=e,this.firebaseOptions_=n,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(s=>this.auth_=s)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(n=>n&&n.code==="auth/token-not-initialized"?(fn("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(n)):new Promise((n,r)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(n,r):n(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(n=>n.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(n=>n.removeAuthTokenListener(e))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Xn(e)}}class Kg{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Kg.OWNER="owner";/** * @license * Copyright 2017 Google LLC * @@ -3273,7 +3273,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Wv="5",sP="v",iP="s",oP="r",aP="f",lP=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,cP="ls",uP="p",zg="ac",hP="websocket",fP="long_polling";/** + */const Yv="5",sP="v",iP="s",oP="r",aP="f",lP=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,cP="ls",uP="p",zg="ac",hP="websocket",fP="long_polling";/** * @license * Copyright 2017 Google LLC * @@ -3288,7 +3288,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class DW{constructor(e,n,r,s,i=!1,o="",a=!1,l=!1){this.secure=n,this.namespace=r,this.webSocketOnly=s,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=no.get("host:"+e)||this._host}isCacheableHost(){return this.internalHost.substr(0,2)==="s-"}isCustomHost(){return this._domain!=="firebaseio.com"&&this._domain!=="firebaseio-demo.com"}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&no.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",n=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${e}${this.host}/${n}`}}function LW(t){return t.host!==t.internalHost||t.isCustomHost()||t.includeNamespaceInQueryParams}function dP(t,e,n){pe(typeof e=="string","typeof type must == string"),pe(typeof n=="object","typeof params must == object");let r;if(e===hP)r=(t.secure?"wss://":"ws://")+t.internalHost+"/.ws?";else if(e===fP)r=(t.secure?"https://":"http://")+t.internalHost+"/.lp?";else throw new Error("Unknown connection type: "+e);LW(t)&&(n.ns=t.namespace);const s=[];return cr(n,(i,o)=>{s.push(i+"="+o)}),r+s.join("&")}/** + */class LW{constructor(e,n,r,s,i=!1,o="",a=!1,l=!1){this.secure=n,this.namespace=r,this.webSocketOnly=s,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=no.get("host:"+e)||this._host}isCacheableHost(){return this.internalHost.substr(0,2)==="s-"}isCustomHost(){return this._domain!=="firebaseio.com"&&this._domain!=="firebaseio-demo.com"}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&no.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",n=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${e}${this.host}/${n}`}}function MW(t){return t.host!==t.internalHost||t.isCustomHost()||t.includeNamespaceInQueryParams}function dP(t,e,n){pe(typeof e=="string","typeof type must == string"),pe(typeof n=="object","typeof params must == object");let r;if(e===hP)r=(t.secure?"wss://":"ws://")+t.internalHost+"/.ws?";else if(e===fP)r=(t.secure?"https://":"http://")+t.internalHost+"/.lp?";else throw new Error("Unknown connection type: "+e);MW(t)&&(n.ns=t.namespace);const s=[];return cr(n,(i,o)=>{s.push(i+"="+o)}),r+s.join("&")}/** * @license * Copyright 2017 Google LLC * @@ -3303,7 +3303,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class xW{constructor(){this.counters_={}}incrementCounter(e,n=1){Ws(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=n}get(){return vM(this.counters_)}}/** + */class xW{constructor(){this.counters_={}}incrementCounter(e,n=1){Ws(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=n}get(){return Ex(this.counters_)}}/** * @license * Copyright 2017 Google LLC * @@ -3318,7 +3318,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const um={},hm={};function Gv(t){const e=t.toString();return um[e]||(um[e]=new xW),um[e]}function MW(t,e){const n=t.toString();return hm[n]||(hm[n]=e()),hm[n]}/** + */const um={},hm={};function qv(t){const e=t.toString();return um[e]||(um[e]=new xW),um[e]}function FW(t,e){const n=t.toString();return hm[n]||(hm[n]=e()),hm[n]}/** * @license * Copyright 2017 Google LLC * @@ -3333,7 +3333,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class FW{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,n){this.closeAfterResponse=e,this.onClose=n,this.closeAfterResponse{this.onMessage_(r[s])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}/** + */class VW{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,n){this.closeAfterResponse=e,this.onClose=n,this.closeAfterResponse{this.onMessage_(r[s])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}/** * @license * Copyright 2017 Google LLC * @@ -3348,7 +3348,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ZT="start",VW="close",UW="pLPCommand",jW="pRTLPCB",pP="id",mP="pw",gP="ser",BW="cb",$W="seg",HW="ts",WW="d",GW="dframe",_P=1870,yP=30,YW=_P-yP,qW=25e3,KW=3e4;class ea{constructor(e,n,r,s,i,o,a){this.connId=e,this.repoInfo=n,this.applicationId=r,this.appCheckToken=s,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=vu(e),this.stats_=Gv(n),this.urlFn=l=>(this.appCheckToken&&(l[zg]=this.appCheckToken),dP(n,fP,l))}open(e,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new FW(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(KW)),bW(()=>{if(this.isClosed_)return;this.scriptTagHolder=new Yv((...i)=>{const[o,a,l,c,u]=i;if(this.incrementIncomingBytes_(i),!!this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,o===ZT)this.id=a,this.password=l;else if(o===VW)a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_();else throw new Error("Unrecognized command received: "+o)},(...i)=>{const[o,a]=i;this.incrementIncomingBytes_(i),this.myPacketOrderer.handleResponse(o,a)},()=>{this.onClosed_()},this.urlFn);const r={};r[ZT]="t",r[gP]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(r[BW]=this.scriptTagHolder.uniqueCallbackIdentifier),r[sP]=Wv,this.transportSessionId&&(r[iP]=this.transportSessionId),this.lastSessionId&&(r[cP]=this.lastSessionId),this.applicationId&&(r[uP]=this.applicationId),this.appCheckToken&&(r[zg]=this.appCheckToken),typeof location<"u"&&location.hostname&&lP.test(location.hostname)&&(r[oP]=aP);const s=this.urlFn(r);this.log_("Connecting via long-poll to "+s),this.scriptTagHolder.addTag(s,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){ea.forceAllow_=!0}static forceDisallow(){ea.forceDisallow_=!0}static isAvailable(){return ea.forceAllow_?!0:!ea.forceDisallow_&&typeof document<"u"&&document.createElement!=null&&!kW()&&!SW()}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const n=on(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=nS(n),s=nP(r,YW);for(let i=0;idocument.domain="'+document.domain+'";<\/script>');const o=""+i+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(o),this.myIFrame.doc.close()}catch(a){fn("frame writing exception"),a.stack&&fn(a.stack),fn(a)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",document.body){document.body.appendChild(e);try{e.contentWindow.document||fn("No IE domain setting required")}catch{const r=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}}else throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{this.myIFrame!==null&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,n){for(this.myID=e,this.myPW=n,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e[pP]=this.myID,e[mP]=this.myPW,e[gP]=this.currentSerial;let n=this.urlFn(e),r="",s=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+yP+r.length<=_P;){const o=this.pendingSegs.shift();r=r+"&"+$W+s+"="+o.seg+"&"+HW+s+"="+o.ts+"&"+WW+s+"="+o.d,s++}return n=n+r,this.addLongPollTag_(n,this.currentSerial),!0}else return!1}enqueueSegment(e,n,r){this.pendingSegs.push({seg:e,ts:n,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(e,n){this.outstandingRequests.add(n);const r=()=>{this.outstandingRequests.delete(n),this.newRequest_()},s=setTimeout(r,Math.floor(qW)),i=()=>{clearTimeout(s),r()};this.addTag(e,i)}addTag(e,n){setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){const s=r.readyState;(!s||s==="loaded"||s==="complete")&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{fn("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}/** + */const tb="start",UW="close",jW="pLPCommand",BW="pRTLPCB",pP="id",mP="pw",gP="ser",$W="cb",HW="seg",WW="ts",GW="d",YW="dframe",_P=1870,yP=30,qW=_P-yP,KW=25e3,zW=3e4;class ea{constructor(e,n,r,s,i,o,a){this.connId=e,this.repoInfo=n,this.applicationId=r,this.appCheckToken=s,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=wu(e),this.stats_=qv(n),this.urlFn=l=>(this.appCheckToken&&(l[zg]=this.appCheckToken),dP(n,fP,l))}open(e,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new VW(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(zW)),IW(()=>{if(this.isClosed_)return;this.scriptTagHolder=new Kv((...i)=>{const[o,a,l,c,u]=i;if(this.incrementIncomingBytes_(i),!!this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,o===tb)this.id=a,this.password=l;else if(o===UW)a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_();else throw new Error("Unrecognized command received: "+o)},(...i)=>{const[o,a]=i;this.incrementIncomingBytes_(i),this.myPacketOrderer.handleResponse(o,a)},()=>{this.onClosed_()},this.urlFn);const r={};r[tb]="t",r[gP]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(r[$W]=this.scriptTagHolder.uniqueCallbackIdentifier),r[sP]=Yv,this.transportSessionId&&(r[iP]=this.transportSessionId),this.lastSessionId&&(r[cP]=this.lastSessionId),this.applicationId&&(r[uP]=this.applicationId),this.appCheckToken&&(r[zg]=this.appCheckToken),typeof location<"u"&&location.hostname&&lP.test(location.hostname)&&(r[oP]=aP);const s=this.urlFn(r);this.log_("Connecting via long-poll to "+s),this.scriptTagHolder.addTag(s,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){ea.forceAllow_=!0}static forceDisallow(){ea.forceDisallow_=!0}static isAvailable(){return ea.forceAllow_?!0:!ea.forceDisallow_&&typeof document<"u"&&document.createElement!=null&&!SW()&&!CW()}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const n=on(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=sS(n),s=nP(r,qW);for(let i=0;idocument.domain="'+document.domain+'";<\/script>');const o=""+i+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(o),this.myIFrame.doc.close()}catch(a){fn("frame writing exception"),a.stack&&fn(a.stack),fn(a)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",document.body){document.body.appendChild(e);try{e.contentWindow.document||fn("No IE domain setting required")}catch{const r=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}}else throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{this.myIFrame!==null&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,n){for(this.myID=e,this.myPW=n,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e[pP]=this.myID,e[mP]=this.myPW,e[gP]=this.currentSerial;let n=this.urlFn(e),r="",s=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+yP+r.length<=_P;){const o=this.pendingSegs.shift();r=r+"&"+HW+s+"="+o.seg+"&"+WW+s+"="+o.ts+"&"+GW+s+"="+o.d,s++}return n=n+r,this.addLongPollTag_(n,this.currentSerial),!0}else return!1}enqueueSegment(e,n,r){this.pendingSegs.push({seg:e,ts:n,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(e,n){this.outstandingRequests.add(n);const r=()=>{this.outstandingRequests.delete(n),this.newRequest_()},s=setTimeout(r,Math.floor(KW)),i=()=>{clearTimeout(s),r()};this.addTag(e,i)}addTag(e,n){setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){const s=r.readyState;(!s||s==="loaded"||s==="complete")&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{fn("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}/** * @license * Copyright 2017 Google LLC * @@ -3363,7 +3363,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const zW=16384,QW=45e3;let bf=null;typeof MozWebSocket<"u"?bf=MozWebSocket:typeof WebSocket<"u"&&(bf=WebSocket);class vr{constructor(e,n,r,s,i,o,a){this.connId=e,this.applicationId=r,this.appCheckToken=s,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=vu(this.connId),this.stats_=Gv(n),this.connURL=vr.connectionURL_(n,o,a,s,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(e,n,r,s,i){const o={};return o[sP]=Wv,typeof location<"u"&&location.hostname&&lP.test(location.hostname)&&(o[oP]=aP),n&&(o[iP]=n),r&&(o[cP]=r),s&&(o[zg]=s),i&&(o[uP]=i),dP(e,hP,o)}open(e,n){this.onDisconnect=n,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,no.set("previous_websocket_failure",!0);try{let r;lS(),this.mySock=new bf(this.connURL,[],r)}catch(r){this.log_("Error instantiating WebSocket.");const s=r.message||r.data;s&&this.log_(s),this.onClosed_();return}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=r=>{this.handleIncomingFrame(r)},this.mySock.onerror=r=>{this.log_("WebSocket error. Closing connection.");const s=r.message||r.data;s&&this.log_(s),this.onClosed_()}}start(){}static forceDisallow(){vr.forceDisallow_=!0}static isAvailable(){let e=!1;if(typeof navigator<"u"&&navigator.userAgent){const n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(e=!0)}return!e&&bf!==null&&!vr.forceDisallow_}static previouslyFailed(){return no.isInMemoryStorage||no.get("previous_websocket_failure")===!0}markConnectionHealthy(){no.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const n=this.frames.join("");this.frames=null;const r=mc(n);this.onMessage(r)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(pe(this.frames===null,"We already have a frame buffer"),e.length<=6){const n=Number(e);if(!isNaN(n))return this.handleNewFrameCount_(n),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(this.mySock===null)return;const n=e.data;if(this.bytesReceived+=n.length,this.stats_.incrementCounter("bytes_received",n.length),this.resetKeepAlive(),this.frames!==null)this.appendFrame_(n);else{const r=this.extractFrameCount_(n);r!==null&&this.appendFrame_(r)}}send(e){this.resetKeepAlive();const n=on(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=nP(n,zW);r.length>1&&this.sendString_(String(r.length));for(let s=0;s{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(QW))}sendString_(e){try{this.mySock.send(e)}catch(n){this.log_("Exception thrown from WebSocket.send():",n.message||n.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}vr.responsesRequiredToBeHealthy=2;vr.healthyTimeout=3e4;/** + */const QW=16384,XW=45e3;let kf=null;typeof MozWebSocket<"u"?kf=MozWebSocket:typeof WebSocket<"u"&&(kf=WebSocket);class vr{constructor(e,n,r,s,i,o,a){this.connId=e,this.applicationId=r,this.appCheckToken=s,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=wu(this.connId),this.stats_=qv(n),this.connURL=vr.connectionURL_(n,o,a,s,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(e,n,r,s,i){const o={};return o[sP]=Yv,typeof location<"u"&&location.hostname&&lP.test(location.hostname)&&(o[oP]=aP),n&&(o[iP]=n),r&&(o[cP]=r),s&&(o[zg]=s),i&&(o[uP]=i),dP(e,hP,o)}open(e,n){this.onDisconnect=n,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,no.set("previous_websocket_failure",!0);try{let r;uS(),this.mySock=new kf(this.connURL,[],r)}catch(r){this.log_("Error instantiating WebSocket.");const s=r.message||r.data;s&&this.log_(s),this.onClosed_();return}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=r=>{this.handleIncomingFrame(r)},this.mySock.onerror=r=>{this.log_("WebSocket error. Closing connection.");const s=r.message||r.data;s&&this.log_(s),this.onClosed_()}}start(){}static forceDisallow(){vr.forceDisallow_=!0}static isAvailable(){let e=!1;if(typeof navigator<"u"&&navigator.userAgent){const n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(e=!0)}return!e&&kf!==null&&!vr.forceDisallow_}static previouslyFailed(){return no.isInMemoryStorage||no.get("previous_websocket_failure")===!0}markConnectionHealthy(){no.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const n=this.frames.join("");this.frames=null;const r=mc(n);this.onMessage(r)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(pe(this.frames===null,"We already have a frame buffer"),e.length<=6){const n=Number(e);if(!isNaN(n))return this.handleNewFrameCount_(n),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(this.mySock===null)return;const n=e.data;if(this.bytesReceived+=n.length,this.stats_.incrementCounter("bytes_received",n.length),this.resetKeepAlive(),this.frames!==null)this.appendFrame_(n);else{const r=this.extractFrameCount_(n);r!==null&&this.appendFrame_(r)}}send(e){this.resetKeepAlive();const n=on(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=nP(n,QW);r.length>1&&this.sendString_(String(r.length));for(let s=0;s{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(XW))}sendString_(e){try{this.mySock.send(e)}catch(n){this.log_("Exception thrown from WebSocket.send():",n.message||n.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}vr.responsesRequiredToBeHealthy=2;vr.healthyTimeout=3e4;/** * @license * Copyright 2017 Google LLC * @@ -3378,7 +3378,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class xc{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[ea,vr]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const n=vr&&vr.isAvailable();let r=n&&!vr.previouslyFailed();if(e.webSocketOnly&&(n||Xn("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[vr];else{const s=this.transports_=[];for(const i of xc.ALL_TRANSPORTS)i&&i.isAvailable()&&s.push(i);xc.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}xc.globalTransportInitialized_=!1;/** + */class Mc{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[ea,vr]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const n=vr&&vr.isAvailable();let r=n&&!vr.previouslyFailed();if(e.webSocketOnly&&(n||Xn("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[vr];else{const s=this.transports_=[];for(const i of Mc.ALL_TRANSPORTS)i&&i.isAvailable()&&s.push(i);Mc.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}Mc.globalTransportInitialized_=!1;/** * @license * Copyright 2017 Google LLC * @@ -3393,7 +3393,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const XW=6e4,JW=5e3,ZW=10*1024,e6=100*1024,fm="t",eb="d",t6="s",tb="r",n6="e",nb="o",rb="a",sb="n",ib="p",r6="h";class s6{constructor(e,n,r,s,i,o,a,l,c,u){this.id=e,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=s,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=l,this.onKill_=c,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=vu("c:"+this.id+":"),this.transportManager_=new xc(n),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(n,r)},Math.floor(0));const s=e.healthyTimeout||0;s>0&&(this.healthyTimeout_=Ql(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>e6?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>ZW?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(s)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return n=>{e===this.conn_?this.onConnectionLost_(n):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return n=>{this.state_!==2&&(e===this.rx_?this.onPrimaryMessageReceived_(n):e===this.secondaryConn_?this.onSecondaryMessageReceived_(n):this.log_("message on old connection"))}}sendRequest(e){const n={t:"d",d:e};this.sendData_(n)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if(fm in e){const n=e[fm];n===rb?this.upgradeIfSecondaryHealthy_():n===tb?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):n===nb&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const n=yl("t",e),r=yl("d",e);if(n==="c")this.onSecondaryControl_(r);else if(n==="d")this.pendingDataMessages.push(r);else throw new Error("Unknown protocol layer: "+n)}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:ib,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:rb,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:sb,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const n=yl("t",e),r=yl("d",e);n==="c"?this.onControl_(r):n==="d"&&this.onDataMessage_(r)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const n=yl(fm,e);if(eb in e){const r=e[eb];if(n===r6){const s=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(s.h=this.repoInfo_.host),this.onHandshake_(s)}else if(n===sb){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let s=0;s{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(XW))}onReset_(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,this.state_===1?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,n){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(n,this.sessionId),this.onReady_=null),this.primaryResponsesRequired_===0?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Ql(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(JW))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:ib,d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===e||this.rx_===e)&&this.close()}onConnectionLost_(e){this.conn_=null,!e&&this.state_===0?(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(no.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)):this.state_===1&&this.log_("Realtime connection lost."),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(this.state_!==1)throw"Connection is not connected";this.tx_.send(e)}close(){this.state_!==2&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}/** + */const JW=6e4,ZW=5e3,e6=10*1024,t6=100*1024,fm="t",nb="d",n6="s",rb="r",r6="e",sb="o",ib="a",ob="n",ab="p",s6="h";class i6{constructor(e,n,r,s,i,o,a,l,c,u){this.id=e,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=s,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=l,this.onKill_=c,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=wu("c:"+this.id+":"),this.transportManager_=new Mc(n),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(n,r)},Math.floor(0));const s=e.healthyTimeout||0;s>0&&(this.healthyTimeout_=Ql(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>t6?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>e6?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(s)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return n=>{e===this.conn_?this.onConnectionLost_(n):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return n=>{this.state_!==2&&(e===this.rx_?this.onPrimaryMessageReceived_(n):e===this.secondaryConn_?this.onSecondaryMessageReceived_(n):this.log_("message on old connection"))}}sendRequest(e){const n={t:"d",d:e};this.sendData_(n)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if(fm in e){const n=e[fm];n===ib?this.upgradeIfSecondaryHealthy_():n===rb?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):n===sb&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const n=yl("t",e),r=yl("d",e);if(n==="c")this.onSecondaryControl_(r);else if(n==="d")this.pendingDataMessages.push(r);else throw new Error("Unknown protocol layer: "+n)}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:ab,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:ib,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:ob,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const n=yl("t",e),r=yl("d",e);n==="c"?this.onControl_(r):n==="d"&&this.onDataMessage_(r)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const n=yl(fm,e);if(nb in e){const r=e[nb];if(n===s6){const s=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(s.h=this.repoInfo_.host),this.onHandshake_(s)}else if(n===ob){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let s=0;s{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(JW))}onReset_(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,this.state_===1?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,n){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(n,this.sessionId),this.onReady_=null),this.primaryResponsesRequired_===0?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Ql(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(ZW))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:ab,d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===e||this.rx_===e)&&this.close()}onConnectionLost_(e){this.conn_=null,!e&&this.state_===0?(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(no.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)):this.state_===1&&this.log_("Realtime connection lost."),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(this.state_!==1)throw"Connection is not connected";this.tx_.send(e)}close(){this.state_!==2&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}/** * @license * Copyright 2017 Google LLC * @@ -3438,7 +3438,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class If extends EP{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!by()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new If}getInitialEvent(e){return pe(e==="online","Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}/** + */class Sf extends EP{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!by()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new Sf}getInitialEvent(e){return pe(e==="online","Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}/** * @license * Copyright 2017 Google LLC * @@ -3453,7 +3453,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ob=32,ab=768;class vt{constructor(e,n){if(n===void 0){this.pieces_=e.split("/");let r=0;for(let s=0;s0&&(this.pieces_[r]=this.pieces_[s],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=n}toString(){let e="";for(let n=this.pieceNum_;n=t.pieces_.length?null:t.pieces_[t.pieceNum_]}function Oi(t){return t.pieces_.length-t.pieceNum_}function mt(t){let e=t.pieceNum_;return e=t.pieces_.length)return null;const e=[];for(let n=t.pieceNum_;n0&&n.push(r[s])}return new vt(n,0)}function Be(t){return t.pieceNum_>=t.pieces_.length}function ar(t,e){const n=We(t),r=We(e);if(n===null)return e;if(n===r)return ar(mt(t),mt(e));throw new Error("INTERNAL ERROR: innerPath ("+e+") is not within outerPath ("+t+")")}function IP(t,e){if(Oi(t)!==Oi(e))return!1;for(let n=t.pieceNum_,r=e.pieceNum_;n<=t.pieces_.length;n++,r++)if(t.pieces_[n]!==e.pieces_[r])return!1;return!0}function Er(t,e){let n=t.pieceNum_,r=e.pieceNum_;if(Oi(t)>Oi(e))return!1;for(;n0&&(t.byteLength_+=1),t.parts_.push(e),t.byteLength_+=pd(e),kP(t)}function l6(t){const e=t.parts_.pop();t.byteLength_-=pd(e),t.parts_.length>0&&(t.byteLength_-=1)}function kP(t){if(t.byteLength_>ab)throw new Error(t.errorPrefix_+"has a key path longer than "+ab+" bytes ("+t.byteLength_+").");if(t.parts_.length>ob)throw new Error(t.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+ob+") or object contains a cycle "+qi(t))}function qi(t){return t.parts_.length===0?"":"in property '"+t.parts_.join(".")+"'"}/** + */const lb=32,cb=768;class vt{constructor(e,n){if(n===void 0){this.pieces_=e.split("/");let r=0;for(let s=0;s0&&(this.pieces_[r]=this.pieces_[s],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=n}toString(){let e="";for(let n=this.pieceNum_;n=t.pieces_.length?null:t.pieces_[t.pieceNum_]}function Oi(t){return t.pieces_.length-t.pieceNum_}function mt(t){let e=t.pieceNum_;return e=t.pieces_.length)return null;const e=[];for(let n=t.pieceNum_;n0&&n.push(r[s])}return new vt(n,0)}function Be(t){return t.pieceNum_>=t.pieces_.length}function ar(t,e){const n=We(t),r=We(e);if(n===null)return e;if(n===r)return ar(mt(t),mt(e));throw new Error("INTERNAL ERROR: innerPath ("+e+") is not within outerPath ("+t+")")}function IP(t,e){if(Oi(t)!==Oi(e))return!1;for(let n=t.pieceNum_,r=e.pieceNum_;n<=t.pieces_.length;n++,r++)if(t.pieces_[n]!==e.pieces_[r])return!1;return!0}function Er(t,e){let n=t.pieceNum_,r=e.pieceNum_;if(Oi(t)>Oi(e))return!1;for(;n0&&(t.byteLength_+=1),t.parts_.push(e),t.byteLength_+=gd(e),kP(t)}function c6(t){const e=t.parts_.pop();t.byteLength_-=gd(e),t.parts_.length>0&&(t.byteLength_-=1)}function kP(t){if(t.byteLength_>cb)throw new Error(t.errorPrefix_+"has a key path longer than "+cb+" bytes ("+t.byteLength_+").");if(t.parts_.length>lb)throw new Error(t.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+lb+") or object contains a cycle "+qi(t))}function qi(t){return t.parts_.length===0?"":"in property '"+t.parts_.join(".")+"'"}/** * @license * Copyright 2017 Google LLC * @@ -3468,7 +3468,7 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class qv extends EP{constructor(){super(["visible"]);let e,n;typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(n="visibilitychange",e="hidden"):typeof document.mozHidden<"u"?(n="mozvisibilitychange",e="mozHidden"):typeof document.msHidden<"u"?(n="msvisibilitychange",e="msHidden"):typeof document.webkitHidden<"u"&&(n="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,n&&document.addEventListener(n,()=>{const r=!document[e];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new qv}getInitialEvent(e){return pe(e==="visible","Unknown event type: "+e),[this.visible_]}}/** + */class zv extends EP{constructor(){super(["visible"]);let e,n;typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(n="visibilitychange",e="hidden"):typeof document.mozHidden<"u"?(n="mozvisibilitychange",e="mozHidden"):typeof document.msHidden<"u"?(n="msvisibilitychange",e="msHidden"):typeof document.webkitHidden<"u"&&(n="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,n&&document.addEventListener(n,()=>{const r=!document[e];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new zv}getInitialEvent(e){return pe(e==="visible","Unknown event type: "+e),[this.visible_]}}/** * @license * Copyright 2017 Google LLC * @@ -3483,10 +3483,10 @@ This typically indicates that your device does not have a healthy Internet conne * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const vl=1e3,c6=60*5*1e3,lb=30*1e3,u6=1.3,h6=3e4,f6="server_kill",cb=3;class Ns extends vP{constructor(e,n,r,s,i,o,a,l){if(super(),this.repoInfo_=e,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=s,this.onServerInfoUpdate_=i,this.authTokenProvider_=o,this.appCheckTokenProvider_=a,this.authOverride_=l,this.id=Ns.nextPersistentConnectionId_++,this.log_=vu("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=vl,this.maxReconnectDelay_=c6,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,l&&!lS())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");qv.getInstance().on("visible",this.onVisible_,this),e.host.indexOf("fblocal")===-1&&If.getInstance().on("online",this.onOnline_,this)}sendRequest(e,n,r){const s=++this.requestNumber_,i={r:s,a:e,b:n};this.log_(on(i)),pe(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),r&&(this.requestCBHash_[s]=r)}get(e){this.initConnection_();const n=new pc,s={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:o=>{const a=o.d;o.s==="ok"?n.resolve(a):n.reject(a)}};this.outstandingGets_.push(s),this.outstandingGetCount_++;const i=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(i),n.promise}listen(e,n,r,s){this.initConnection_();const i=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),pe(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),pe(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");const a={onComplete:s,hashFn:n,query:e,tag:r};this.listens.get(o).set(i,a),this.connected_&&this.sendListen_(a)}sendGet_(e){const n=this.outstandingGets_[e];this.sendRequest("g",n.request,r=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,this.outstandingGetCount_===0&&(this.outstandingGets_=[]),n.onComplete&&n.onComplete(r)})}sendListen_(e){const n=e.query,r=n._path.toString(),s=n._queryIdentifier;this.log_("Listen on "+r+" for "+s);const i={p:r},o="q";e.tag&&(i.q=n._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest(o,i,a=>{const l=a.d,c=a.s;Ns.warnOnListenWarnings_(l,n),(this.listens.get(r)&&this.listens.get(r).get(s))===e&&(this.log_("listen response",a),c!=="ok"&&this.removeListen_(r,s),e.onComplete&&e.onComplete(c,l))})}static warnOnListenWarnings_(e,n){if(e&&typeof e=="object"&&Ws(e,"w")){const r=Sa(e,"w");if(Array.isArray(r)&&~r.indexOf("no_index")){const s='".indexOn": "'+n._queryParams.getIndex().toString()+'"',i=n._path.toString();Xn(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${s} at ${i} to your security rules for better performance.`)}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&e.length===40||LM(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=lb)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,n=DM(e)?"auth":"gauth",r={cred:e};this.authOverride_===null?r.noauth=!0:typeof this.authOverride_=="object"&&(r.authvar=this.authOverride_),this.sendRequest(n,r,s=>{const i=s.s,o=s.d||"error";this.authToken_===e&&(i==="ok"?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(i,o))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},e=>{const n=e.s,r=e.d||"error";n==="ok"?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(n,r)})}unlisten(e,n){const r=e._path.toString(),s=e._queryIdentifier;this.log_("Unlisten called for "+r+" "+s),pe(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(r,s)&&this.connected_&&this.sendUnlisten_(r,s,e._queryObject,n)}sendUnlisten_(e,n,r,s){this.log_("Unlisten on "+e+" for "+n);const i={p:e},o="n";s&&(i.q=r,i.t=s),this.sendRequest(o,i)}onDisconnectPut(e,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,n,r):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:n,onComplete:r})}onDisconnectMerge(e,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,n,r):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:n,onComplete:r})}onDisconnectCancel(e,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:n})}sendOnDisconnect_(e,n,r,s){const i={p:n,d:r};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,o=>{s&&setTimeout(()=>{s(o.s,o.d)},Math.floor(0))})}put(e,n,r,s){this.putInternal("p",e,n,r,s)}merge(e,n,r,s){this.putInternal("m",e,n,r,s)}putInternal(e,n,r,s,i){this.initConnection_();const o={p:n,d:r};i!==void 0&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:s}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+n)}sendPut_(e){const n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,s=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,i=>{this.log_(n+" response",i),delete this.outstandingPuts_[e],this.outstandingPutCount_--,this.outstandingPutCount_===0&&(this.outstandingPuts_=[]),s&&s(i.s,i.d)})}reportStats(e){if(this.connected_){const n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,r=>{if(r.s!=="ok"){const i=r.d;this.log_("reportStats","Error sending stats: "+i)}})}}onDataMessage_(e){if("r"in e){this.log_("from server: "+on(e));const n=e.r,r=this.requestCBHash_[n];r&&(delete this.requestCBHash_[n],r(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,n){this.log_("handleServerMessage",e,n),e==="d"?this.onDataUpdate_(n.p,n.d,!1,n.t):e==="m"?this.onDataUpdate_(n.p,n.d,!0,n.t):e==="c"?this.onListenRevoked_(n.p,n.q):e==="ac"?this.onAuthRevoked_(n.s,n.d):e==="apc"?this.onAppCheckRevoked_(n.s,n.d):e==="sd"?this.onSecurityDebugPacket_(n):qg("Unrecognized action received from server: "+on(e)+` -Are you using the latest client?`)}onReady_(e,n){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=new Date().getTime(),this.handleTimestamp_(e),this.lastSessionId=n,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){pe(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&(new Date().getTime()-this.lastConnectionEstablishedTime_>h6&&(this.reconnectDelay_=vl),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=new Date().getTime());const e=new Date().getTime()-this.lastConnectionAttemptTime_;let n=Math.max(0,this.reconnectDelay_-e);n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*u6)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=new Date().getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),s=this.id+":"+Ns.nextConnectionId_++,i=this.lastSessionId;let o=!1,a=null;const l=function(){a?a.close():(o=!0,r())},c=function(h){pe(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(h)};this.realtime_={close:l,sendRequest:c};const u=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[h,f]=await Promise.all([this.authTokenProvider_.getToken(u),this.appCheckTokenProvider_.getToken(u)]);o?fn("getToken() completed but was canceled"):(fn("getToken() completed. Creating connection."),this.authToken_=h&&h.accessToken,this.appCheckToken_=f&&f.token,a=new s6(s,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,n,r,v=>{Xn(v+" ("+this.repoInfo_.toString()+")"),this.interrupt(f6)},i))}catch(h){this.log_("Failed to get token: "+h),o||(this.repoInfo_.nodeAdmin&&Xn(h),l())}}}interrupt(e){fn("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){fn("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Qm(this.interruptReasons_)&&(this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const n=e-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:n})}cancelSentTransactions_(){for(let e=0;eHv(i)).join("$"):r="default";const s=this.removeListen_(e,r);s&&s.onComplete&&s.onComplete("permission_denied")}removeListen_(e,n){const r=new vt(e).toString();let s;if(this.listens.has(r)){const i=this.listens.get(r);s=i.get(n),i.delete(n),i.size===0&&this.listens.delete(r)}else s=void 0;return s}onAuthRevoked_(e,n){fn("Auth token revoked: "+e+"/"+n),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(e==="invalid_token"||e==="permission_denied")&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=cb&&(this.reconnectDelay_=lb,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,n){fn("App check token revoked: "+e+"/"+n),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(e==="invalid_token"||e==="permission_denied")&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=cb&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace(` + */const vl=1e3,u6=60*5*1e3,ub=30*1e3,h6=1.3,f6=3e4,d6="server_kill",hb=3;class Ds extends vP{constructor(e,n,r,s,i,o,a,l){if(super(),this.repoInfo_=e,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=s,this.onServerInfoUpdate_=i,this.authTokenProvider_=o,this.appCheckTokenProvider_=a,this.authOverride_=l,this.id=Ds.nextPersistentConnectionId_++,this.log_=wu("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=vl,this.maxReconnectDelay_=u6,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,l&&!uS())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");zv.getInstance().on("visible",this.onVisible_,this),e.host.indexOf("fblocal")===-1&&Sf.getInstance().on("online",this.onOnline_,this)}sendRequest(e,n,r){const s=++this.requestNumber_,i={r:s,a:e,b:n};this.log_(on(i)),pe(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),r&&(this.requestCBHash_[s]=r)}get(e){this.initConnection_();const n=new pc,s={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:o=>{const a=o.d;o.s==="ok"?n.resolve(a):n.reject(a)}};this.outstandingGets_.push(s),this.outstandingGetCount_++;const i=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(i),n.promise}listen(e,n,r,s){this.initConnection_();const i=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),pe(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),pe(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");const a={onComplete:s,hashFn:n,query:e,tag:r};this.listens.get(o).set(i,a),this.connected_&&this.sendListen_(a)}sendGet_(e){const n=this.outstandingGets_[e];this.sendRequest("g",n.request,r=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,this.outstandingGetCount_===0&&(this.outstandingGets_=[]),n.onComplete&&n.onComplete(r)})}sendListen_(e){const n=e.query,r=n._path.toString(),s=n._queryIdentifier;this.log_("Listen on "+r+" for "+s);const i={p:r},o="q";e.tag&&(i.q=n._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest(o,i,a=>{const l=a.d,c=a.s;Ds.warnOnListenWarnings_(l,n),(this.listens.get(r)&&this.listens.get(r).get(s))===e&&(this.log_("listen response",a),c!=="ok"&&this.removeListen_(r,s),e.onComplete&&e.onComplete(c,l))})}static warnOnListenWarnings_(e,n){if(e&&typeof e=="object"&&Ws(e,"w")){const r=Sa(e,"w");if(Array.isArray(r)&&~r.indexOf("no_index")){const s='".indexOn": "'+n._queryParams.getIndex().toString()+'"',i=n._path.toString();Xn(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${s} at ${i} to your security rules for better performance.`)}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&e.length===40||Mx(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=ub)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,n=Lx(e)?"auth":"gauth",r={cred:e};this.authOverride_===null?r.noauth=!0:typeof this.authOverride_=="object"&&(r.authvar=this.authOverride_),this.sendRequest(n,r,s=>{const i=s.s,o=s.d||"error";this.authToken_===e&&(i==="ok"?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(i,o))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},e=>{const n=e.s,r=e.d||"error";n==="ok"?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(n,r)})}unlisten(e,n){const r=e._path.toString(),s=e._queryIdentifier;this.log_("Unlisten called for "+r+" "+s),pe(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(r,s)&&this.connected_&&this.sendUnlisten_(r,s,e._queryObject,n)}sendUnlisten_(e,n,r,s){this.log_("Unlisten on "+e+" for "+n);const i={p:e},o="n";s&&(i.q=r,i.t=s),this.sendRequest(o,i)}onDisconnectPut(e,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,n,r):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:n,onComplete:r})}onDisconnectMerge(e,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,n,r):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:n,onComplete:r})}onDisconnectCancel(e,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:n})}sendOnDisconnect_(e,n,r,s){const i={p:n,d:r};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,o=>{s&&setTimeout(()=>{s(o.s,o.d)},Math.floor(0))})}put(e,n,r,s){this.putInternal("p",e,n,r,s)}merge(e,n,r,s){this.putInternal("m",e,n,r,s)}putInternal(e,n,r,s,i){this.initConnection_();const o={p:n,d:r};i!==void 0&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:s}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+n)}sendPut_(e){const n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,s=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,i=>{this.log_(n+" response",i),delete this.outstandingPuts_[e],this.outstandingPutCount_--,this.outstandingPutCount_===0&&(this.outstandingPuts_=[]),s&&s(i.s,i.d)})}reportStats(e){if(this.connected_){const n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,r=>{if(r.s!=="ok"){const i=r.d;this.log_("reportStats","Error sending stats: "+i)}})}}onDataMessage_(e){if("r"in e){this.log_("from server: "+on(e));const n=e.r,r=this.requestCBHash_[n];r&&(delete this.requestCBHash_[n],r(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}onDataPush_(e,n){this.log_("handleServerMessage",e,n),e==="d"?this.onDataUpdate_(n.p,n.d,!1,n.t):e==="m"?this.onDataUpdate_(n.p,n.d,!0,n.t):e==="c"?this.onListenRevoked_(n.p,n.q):e==="ac"?this.onAuthRevoked_(n.s,n.d):e==="apc"?this.onAppCheckRevoked_(n.s,n.d):e==="sd"?this.onSecurityDebugPacket_(n):qg("Unrecognized action received from server: "+on(e)+` +Are you using the latest client?`)}onReady_(e,n){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=new Date().getTime(),this.handleTimestamp_(e),this.lastSessionId=n,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){pe(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&(new Date().getTime()-this.lastConnectionEstablishedTime_>f6&&(this.reconnectDelay_=vl),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=new Date().getTime());const e=new Date().getTime()-this.lastConnectionAttemptTime_;let n=Math.max(0,this.reconnectDelay_-e);n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*h6)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=new Date().getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),s=this.id+":"+Ds.nextConnectionId_++,i=this.lastSessionId;let o=!1,a=null;const l=function(){a?a.close():(o=!0,r())},c=function(h){pe(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(h)};this.realtime_={close:l,sendRequest:c};const u=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[h,f]=await Promise.all([this.authTokenProvider_.getToken(u),this.appCheckTokenProvider_.getToken(u)]);o?fn("getToken() completed but was canceled"):(fn("getToken() completed. Creating connection."),this.authToken_=h&&h.accessToken,this.appCheckToken_=f&&f.token,a=new i6(s,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,n,r,v=>{Xn(v+" ("+this.repoInfo_.toString()+")"),this.interrupt(d6)},i))}catch(h){this.log_("Failed to get token: "+h),o||(this.repoInfo_.nodeAdmin&&Xn(h),l())}}}interrupt(e){fn("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){fn("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Qm(this.interruptReasons_)&&(this.reconnectDelay_=vl,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const n=e-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:n})}cancelSentTransactions_(){for(let e=0;eGv(i)).join("$"):r="default";const s=this.removeListen_(e,r);s&&s.onComplete&&s.onComplete("permission_denied")}removeListen_(e,n){const r=new vt(e).toString();let s;if(this.listens.has(r)){const i=this.listens.get(r);s=i.get(n),i.delete(n),i.size===0&&this.listens.delete(r)}else s=void 0;return s}onAuthRevoked_(e,n){fn("Auth token revoked: "+e+"/"+n),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(e==="invalid_token"||e==="permission_denied")&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=hb&&(this.reconnectDelay_=ub,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,n){fn("App check token revoked: "+e+"/"+n),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(e==="invalid_token"||e==="permission_denied")&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=hb&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace(` `,` -FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const n of e.values())this.sendListen_(n);for(let e=0;e0}peek(){if(this.nodeStack_.length===0)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}class qt{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??qt.RED,this.left=s??jn.EMPTY_NODE,this.right=i??jn.EMPTY_NODE}copy(e,n,r,s,i){return new qt(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,n,r){let s=this;const i=r(e,s.key);return i<0?s=s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s=s.copy(null,n,null,null,null):s=s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp_()}removeMin_(){if(this.left.isEmpty())return jn.EMPTY_NODE;let e=this;return!e.left.isRed_()&&!e.left.left.isRed_()&&(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,n){let r,s;if(r=this,n(e,r.key)<0)!r.left.isEmpty()&&!r.left.isRed_()&&!r.left.left.isRed_()&&(r=r.moveRedLeft_()),r=r.copy(null,null,null,r.left.remove(e,n),null);else{if(r.left.isRed_()&&(r=r.rotateRight_()),!r.right.isEmpty()&&!r.right.isRed_()&&!r.right.left.isRed_()&&(r=r.moveRedRight_()),n(e,r.key)===0){if(r.right.isEmpty())return jn.EMPTY_NODE;s=r.right.min_(),r=r.copy(s.key,s.value,null,null,r.right.removeMin_())}r=r.copy(null,null,null,null,r.right.remove(e,n))}return r.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,qt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,qt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}qt.RED=!0;qt.BLACK=!1;class d6{copy(e,n,r,s,i){return this}insert(e,n,r){return new qt(e,n,null)}remove(e,n){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}}class jn{constructor(e,n=jn.EMPTY_NODE){this.comparator_=e,this.root_=n}insert(e,n){return new jn(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,qt.BLACK,null,null))}remove(e){return new jn(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,qt.BLACK,null,null))}get(e){let n,r=this.root_;for(;!r.isEmpty();){if(n=this.comparator_(e,r.key),n===0)return r.value;n<0?r=r.left:n>0&&(r=r.right)}return null}getPredecessorKey(e){let n,r=this.root_,s=null;for(;!r.isEmpty();)if(n=this.comparator_(e,r.key),n===0){if(r.left.isEmpty())return s?s.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}else n<0?r=r.left:n>0&&(s=r,r=r.right);throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new lh(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,n){return new lh(this.root_,e,this.comparator_,!1,n)}getReverseIteratorFrom(e,n){return new lh(this.root_,e,this.comparator_,!0,n)}getReverseIterator(e){return new lh(this.root_,null,this.comparator_,!0,e)}}jn.EMPTY_NODE=new d6;/** + */class uh{constructor(e,n,r,s,i=null){this.isReverse_=s,this.resultGenerator_=i,this.nodeStack_=[];let o=1;for(;!e.isEmpty();)if(e=e,o=n?r(e.key,n):1,s&&(o*=-1),o<0)this.isReverse_?e=e.left:e=e.right;else if(o===0){this.nodeStack_.push(e);break}else this.nodeStack_.push(e),this.isReverse_?e=e.right:e=e.left}getNext(){if(this.nodeStack_.length===0)return null;let e=this.nodeStack_.pop(),n;if(this.resultGenerator_?n=this.resultGenerator_(e.key,e.value):n={key:e.key,value:e.value},this.isReverse_)for(e=e.left;!e.isEmpty();)this.nodeStack_.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack_.push(e),e=e.left;return n}hasNext(){return this.nodeStack_.length>0}peek(){if(this.nodeStack_.length===0)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}class qt{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??qt.RED,this.left=s??$n.EMPTY_NODE,this.right=i??$n.EMPTY_NODE}copy(e,n,r,s,i){return new qt(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,n,r){let s=this;const i=r(e,s.key);return i<0?s=s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s=s.copy(null,n,null,null,null):s=s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp_()}removeMin_(){if(this.left.isEmpty())return $n.EMPTY_NODE;let e=this;return!e.left.isRed_()&&!e.left.left.isRed_()&&(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,n){let r,s;if(r=this,n(e,r.key)<0)!r.left.isEmpty()&&!r.left.isRed_()&&!r.left.left.isRed_()&&(r=r.moveRedLeft_()),r=r.copy(null,null,null,r.left.remove(e,n),null);else{if(r.left.isRed_()&&(r=r.rotateRight_()),!r.right.isEmpty()&&!r.right.isRed_()&&!r.right.left.isRed_()&&(r=r.moveRedRight_()),n(e,r.key)===0){if(r.right.isEmpty())return $n.EMPTY_NODE;s=r.right.min_(),r=r.copy(s.key,s.value,null,null,r.right.removeMin_())}r=r.copy(null,null,null,null,r.right.remove(e,n))}return r.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,qt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,qt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}qt.RED=!0;qt.BLACK=!1;class p6{copy(e,n,r,s,i){return this}insert(e,n,r){return new qt(e,n,null)}remove(e,n){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}}class $n{constructor(e,n=$n.EMPTY_NODE){this.comparator_=e,this.root_=n}insert(e,n){return new $n(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,qt.BLACK,null,null))}remove(e){return new $n(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,qt.BLACK,null,null))}get(e){let n,r=this.root_;for(;!r.isEmpty();){if(n=this.comparator_(e,r.key),n===0)return r.value;n<0?r=r.left:n>0&&(r=r.right)}return null}getPredecessorKey(e){let n,r=this.root_,s=null;for(;!r.isEmpty();)if(n=this.comparator_(e,r.key),n===0){if(r.left.isEmpty())return s?s.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}else n<0?r=r.left:n>0&&(s=r,r=r.right);throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new uh(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,n){return new uh(this.root_,e,this.comparator_,!1,n)}getReverseIteratorFrom(e,n){return new uh(this.root_,e,this.comparator_,!0,n)}getReverseIterator(e){return new uh(this.root_,null,this.comparator_,!0,e)}}$n.EMPTY_NODE=new p6;/** * @license * Copyright 2017 Google LLC * @@ -3561,7 +3561,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function p6(t,e){return rl(t.name,e.name)}function Kv(t,e){return rl(t,e)}/** + */function m6(t,e){return rl(t.name,e.name)}function Qv(t,e){return rl(t,e)}/** * @license * Copyright 2017 Google LLC * @@ -3576,7 +3576,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let Qg;function m6(t){Qg=t}const CP=function(t){return typeof t=="number"?"number:"+rP(t):"string:"+t},RP=function(t){if(t.isLeafNode()){const e=t.val();pe(typeof e=="string"||typeof e=="number"||typeof e=="object"&&Ws(e,".sv"),"Priority must be a string or number.")}else pe(t===Qg||t.isEmpty(),"priority of unexpected type.");pe(t===Qg||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};/** + */let Qg;function g6(t){Qg=t}const CP=function(t){return typeof t=="number"?"number:"+rP(t):"string:"+t},RP=function(t){if(t.isLeafNode()){const e=t.val();pe(typeof e=="string"||typeof e=="number"||typeof e=="object"&&Ws(e,".sv"),"Priority must be a string or number.")}else pe(t===Qg||t.isEmpty(),"priority of unexpected type.");pe(t===Qg||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};/** * @license * Copyright 2017 Google LLC * @@ -3591,7 +3591,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let ub;class Gt{constructor(e,n=Gt.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=n,this.lazyHash_=null,pe(this.value_!==void 0&&this.value_!==null,"LeafNode shouldn't be created with null/undefined value."),RP(this.priorityNode_)}static set __childrenNodeConstructor(e){ub=e}static get __childrenNodeConstructor(){return ub}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new Gt(this.value_,e)}getImmediateChild(e){return e===".priority"?this.priorityNode_:Gt.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return Be(e)?this:We(e)===".priority"?this.priorityNode_:Gt.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,n){return null}updateImmediateChild(e,n){return e===".priority"?this.updatePriority(n):n.isEmpty()&&e!==".priority"?this:Gt.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)}updateChild(e,n){const r=We(e);return r===null?n:n.isEmpty()&&r!==".priority"?this:(pe(r!==".priority"||Oi(e)===1,".priority must be the last token in a path"),this.updateImmediateChild(r,Gt.__childrenNodeConstructor.EMPTY_NODE.updateChild(mt(e),n)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,n){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(this.lazyHash_===null){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+CP(this.priorityNode_.val())+":");const n=typeof this.value_;e+=n+":",n==="number"?e+=rP(this.value_):e+=this.value_,this.lazyHash_=eP(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===Gt.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof Gt.__childrenNodeConstructor?-1:(pe(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const n=typeof e.value_,r=typeof this.value_,s=Gt.VALUE_TYPE_ORDER.indexOf(n),i=Gt.VALUE_TYPE_ORDER.indexOf(r);return pe(s>=0,"Unknown leaf type: "+n),pe(i>=0,"Unknown leaf type: "+r),s===i?r==="object"?0:this.value_=0,"Unknown leaf type: "+n),pe(i>=0,"Unknown leaf type: "+r),s===i?r==="object"?0:this.value_parseInt(Math.log(i)/v6,10),r=i=>parseInt(Array(i+1).join("1"),2);this.count=n(e+1),this.current_=this.count-1;const s=r(this.count);this.bits_=e+1&s}nextBitIsOne(){const e=!(this.bits_&1<parseInt(Math.log(i)/E6,10),r=i=>parseInt(Array(i+1).join("1"),2);this.count=n(e+1),this.current_=this.count-1;const s=r(this.count);this.bits_=e+1&s}nextBitIsOne(){const e=!(this.bits_&1<{const o=Sa(this.indexSet_,i);if(pe(o,"Missing index implementation for "+i),s===Wo)if(o.isDefinedOn(e.node)){const a=[],l=n.getIterator(Ge.Wrap);let c=l.getNext();for(;c;)c.name!==e.name&&a.push(c),c=l.getNext();return a.push(e),kf(a,o.getCompare())}else return Wo;else{const a=n.get(e.name);let l=s;return a&&(l=l.remove(new Ge(e.name,a))),l.insert(e,e.node)}});return new Cs(r,this.indexSet_)}removeFromIndexes(e,n){const r=Qh(this.indexes_,s=>{if(s===Wo)return s;{const i=n.get(e.name);return i?s.remove(new Ge(e.name,i)):s}});return new Cs(r,this.indexSet_)}}/** + */let dm;const Wo={};class Rs{constructor(e,n){this.indexes_=e,this.indexSet_=n}static get Default(){return pe(Wo&&gn,"ChildrenNode.ts has not been loaded"),dm=dm||new Rs({".priority":Wo},{".priority":gn}),dm}get(e){const n=Sa(this.indexes_,e);if(!n)throw new Error("No index defined for "+e);return n instanceof $n?n:null}hasIndex(e){return Ws(this.indexSet_,e.toString())}addIndex(e,n){pe(e!==_a,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let s=!1;const i=n.getIterator(Ge.Wrap);let o=i.getNext();for(;o;)s=s||e.isDefinedOn(o.node),r.push(o),o=i.getNext();let a;s?a=Cf(r,e.getCompare()):a=Wo;const l=e.toString(),c=Object.assign({},this.indexSet_);c[l]=e;const u=Object.assign({},this.indexes_);return u[l]=a,new Rs(u,c)}addToIndexes(e,n){const r=Jh(this.indexes_,(s,i)=>{const o=Sa(this.indexSet_,i);if(pe(o,"Missing index implementation for "+i),s===Wo)if(o.isDefinedOn(e.node)){const a=[],l=n.getIterator(Ge.Wrap);let c=l.getNext();for(;c;)c.name!==e.name&&a.push(c),c=l.getNext();return a.push(e),Cf(a,o.getCompare())}else return Wo;else{const a=n.get(e.name);let l=s;return a&&(l=l.remove(new Ge(e.name,a))),l.insert(e,e.node)}});return new Rs(r,this.indexSet_)}removeFromIndexes(e,n){const r=Jh(this.indexes_,s=>{if(s===Wo)return s;{const i=n.get(e.name);return i?s.remove(new Ge(e.name,i)):s}});return new Rs(r,this.indexSet_)}}/** * @license * Copyright 2017 Google LLC * @@ -3651,7 +3651,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let El;class nt{constructor(e,n,r){this.children_=e,this.priorityNode_=n,this.indexMap_=r,this.lazyHash_=null,this.priorityNode_&&RP(this.priorityNode_),this.children_.isEmpty()&&pe(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return El||(El=new nt(new jn(Kv),null,Cs.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||El}updatePriority(e){return this.children_.isEmpty()?this:new nt(this.children_,e,this.indexMap_)}getImmediateChild(e){if(e===".priority")return this.getPriority();{const n=this.children_.get(e);return n===null?El:n}}getChild(e){const n=We(e);return n===null?this:this.getImmediateChild(n).getChild(mt(e))}hasChild(e){return this.children_.get(e)!==null}updateImmediateChild(e,n){if(pe(n,"We should always be passing snapshot nodes"),e===".priority")return this.updatePriority(n);{const r=new Ge(e,n);let s,i;n.isEmpty()?(s=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(r,this.children_)):(s=this.children_.insert(e,n),i=this.indexMap_.addToIndexes(r,this.children_));const o=s.isEmpty()?El:this.priorityNode_;return new nt(s,o,i)}}updateChild(e,n){const r=We(e);if(r===null)return n;{pe(We(e)!==".priority"||Oi(e)===1,".priority must be the last token in a path");const s=this.getImmediateChild(r).updateChild(mt(e),n);return this.updateImmediateChild(r,s)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const n={};let r=0,s=0,i=!0;if(this.forEachChild(gn,(o,a)=>{n[o]=a.val(e),r++,i&&nt.INTEGER_REGEXP_.test(o)?s=Math.max(s,Number(o)):i=!1}),!e&&i&&s<2*r){const o=[];for(const a in n)o[a]=n[a];return o}else return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let e="";this.getPriority().isEmpty()||(e+="priority:"+CP(this.getPriority().val())+":"),this.forEachChild(gn,(n,r)=>{const s=r.hash();s!==""&&(e+=":"+n+":"+s)}),this.lazyHash_=e===""?"":eP(e)}return this.lazyHash_}getPredecessorChildName(e,n,r){const s=this.resolveIndex_(r);if(s){const i=s.getPredecessorKey(new Ge(e,n));return i?i.name:null}else return this.children_.getPredecessorKey(e)}getFirstChildName(e){const n=this.resolveIndex_(e);if(n){const r=n.minKey();return r&&r.name}else return this.children_.minKey()}getFirstChild(e){const n=this.getFirstChildName(e);return n?new Ge(n,this.children_.get(n)):null}getLastChildName(e){const n=this.resolveIndex_(e);if(n){const r=n.maxKey();return r&&r.name}else return this.children_.maxKey()}getLastChild(e){const n=this.getLastChildName(e);return n?new Ge(n,this.children_.get(n)):null}forEachChild(e,n){const r=this.resolveIndex_(e);return r?r.inorderTraversal(s=>n(s.name,s.node)):this.children_.inorderTraversal(n)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,n){const r=this.resolveIndex_(n);if(r)return r.getIteratorFrom(e,s=>s);{const s=this.children_.getIteratorFrom(e.name,Ge.Wrap);let i=s.peek();for(;i!=null&&n.compare(i,e)<0;)s.getNext(),i=s.peek();return s}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,n){const r=this.resolveIndex_(n);if(r)return r.getReverseIteratorFrom(e,s=>s);{const s=this.children_.getReverseIteratorFrom(e.name,Ge.Wrap);let i=s.peek();for(;i!=null&&n.compare(i,e)>0;)s.getNext(),i=s.peek();return s}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===wu?-1:0}withIndex(e){if(e===_a||this.indexMap_.hasIndex(e))return this;{const n=this.indexMap_.addIndex(e,this.children_);return new nt(this.children_,this.priorityNode_,n)}}isIndexed(e){return e===_a||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const n=e;if(this.getPriority().equals(n.getPriority()))if(this.children_.count()===n.children_.count()){const r=this.getIterator(gn),s=n.getIterator(gn);let i=r.getNext(),o=s.getNext();for(;i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=r.getNext(),o=s.getNext()}return i===null&&o===null}else return!1;else return!1}}resolveIndex_(e){return e===_a?null:this.indexMap_.get(e.toString())}}nt.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class w6 extends nt{constructor(){super(new jn(Kv),nt.EMPTY_NODE,Cs.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return nt.EMPTY_NODE}isEmpty(){return!1}}const wu=new w6;Object.defineProperties(Ge,{MIN:{value:new Ge(Fa,nt.EMPTY_NODE)},MAX:{value:new Ge(wo,wu)}});SP.__EMPTY_NODE=nt.EMPTY_NODE;Gt.__childrenNodeConstructor=nt;m6(wu);_6(wu);/** + */let El;class nt{constructor(e,n,r){this.children_=e,this.priorityNode_=n,this.indexMap_=r,this.lazyHash_=null,this.priorityNode_&&RP(this.priorityNode_),this.children_.isEmpty()&&pe(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return El||(El=new nt(new $n(Qv),null,Rs.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||El}updatePriority(e){return this.children_.isEmpty()?this:new nt(this.children_,e,this.indexMap_)}getImmediateChild(e){if(e===".priority")return this.getPriority();{const n=this.children_.get(e);return n===null?El:n}}getChild(e){const n=We(e);return n===null?this:this.getImmediateChild(n).getChild(mt(e))}hasChild(e){return this.children_.get(e)!==null}updateImmediateChild(e,n){if(pe(n,"We should always be passing snapshot nodes"),e===".priority")return this.updatePriority(n);{const r=new Ge(e,n);let s,i;n.isEmpty()?(s=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(r,this.children_)):(s=this.children_.insert(e,n),i=this.indexMap_.addToIndexes(r,this.children_));const o=s.isEmpty()?El:this.priorityNode_;return new nt(s,o,i)}}updateChild(e,n){const r=We(e);if(r===null)return n;{pe(We(e)!==".priority"||Oi(e)===1,".priority must be the last token in a path");const s=this.getImmediateChild(r).updateChild(mt(e),n);return this.updateImmediateChild(r,s)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const n={};let r=0,s=0,i=!0;if(this.forEachChild(gn,(o,a)=>{n[o]=a.val(e),r++,i&&nt.INTEGER_REGEXP_.test(o)?s=Math.max(s,Number(o)):i=!1}),!e&&i&&s<2*r){const o=[];for(const a in n)o[a]=n[a];return o}else return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let e="";this.getPriority().isEmpty()||(e+="priority:"+CP(this.getPriority().val())+":"),this.forEachChild(gn,(n,r)=>{const s=r.hash();s!==""&&(e+=":"+n+":"+s)}),this.lazyHash_=e===""?"":eP(e)}return this.lazyHash_}getPredecessorChildName(e,n,r){const s=this.resolveIndex_(r);if(s){const i=s.getPredecessorKey(new Ge(e,n));return i?i.name:null}else return this.children_.getPredecessorKey(e)}getFirstChildName(e){const n=this.resolveIndex_(e);if(n){const r=n.minKey();return r&&r.name}else return this.children_.minKey()}getFirstChild(e){const n=this.getFirstChildName(e);return n?new Ge(n,this.children_.get(n)):null}getLastChildName(e){const n=this.resolveIndex_(e);if(n){const r=n.maxKey();return r&&r.name}else return this.children_.maxKey()}getLastChild(e){const n=this.getLastChildName(e);return n?new Ge(n,this.children_.get(n)):null}forEachChild(e,n){const r=this.resolveIndex_(e);return r?r.inorderTraversal(s=>n(s.name,s.node)):this.children_.inorderTraversal(n)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,n){const r=this.resolveIndex_(n);if(r)return r.getIteratorFrom(e,s=>s);{const s=this.children_.getIteratorFrom(e.name,Ge.Wrap);let i=s.peek();for(;i!=null&&n.compare(i,e)<0;)s.getNext(),i=s.peek();return s}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,n){const r=this.resolveIndex_(n);if(r)return r.getReverseIteratorFrom(e,s=>s);{const s=this.children_.getReverseIteratorFrom(e.name,Ge.Wrap);let i=s.peek();for(;i!=null&&n.compare(i,e)>0;)s.getNext(),i=s.peek();return s}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===bu?-1:0}withIndex(e){if(e===_a||this.indexMap_.hasIndex(e))return this;{const n=this.indexMap_.addIndex(e,this.children_);return new nt(this.children_,this.priorityNode_,n)}}isIndexed(e){return e===_a||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{const n=e;if(this.getPriority().equals(n.getPriority()))if(this.children_.count()===n.children_.count()){const r=this.getIterator(gn),s=n.getIterator(gn);let i=r.getNext(),o=s.getNext();for(;i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=r.getNext(),o=s.getNext()}return i===null&&o===null}else return!1;else return!1}}resolveIndex_(e){return e===_a?null:this.indexMap_.get(e.toString())}}nt.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class T6 extends nt{constructor(){super(new $n(Qv),nt.EMPTY_NODE,Rs.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return nt.EMPTY_NODE}isEmpty(){return!1}}const bu=new T6;Object.defineProperties(Ge,{MIN:{value:new Ge(Fa,nt.EMPTY_NODE)},MAX:{value:new Ge(wo,bu)}});SP.__EMPTY_NODE=nt.EMPTY_NODE;Gt.__childrenNodeConstructor=nt;g6(bu);y6(bu);/** * @license * Copyright 2017 Google LLC * @@ -3666,7 +3666,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const T6=!0;function dn(t,e=null){if(t===null)return nt.EMPTY_NODE;if(typeof t=="object"&&".priority"in t&&(e=t[".priority"]),pe(e===null||typeof e=="string"||typeof e=="number"||typeof e=="object"&&".sv"in e,"Invalid priority type found: "+typeof e),typeof t=="object"&&".value"in t&&t[".value"]!==null&&(t=t[".value"]),typeof t!="object"||".sv"in t){const n=t;return new Gt(n,dn(e))}if(!(t instanceof Array)&&T6){const n=[];let r=!1;if(cr(t,(o,a)=>{if(o.substring(0,1)!=="."){const l=dn(a);l.isEmpty()||(r=r||!l.getPriority().isEmpty(),n.push(new Ge(o,l)))}}),n.length===0)return nt.EMPTY_NODE;const i=kf(n,p6,o=>o.name,Kv);if(r){const o=kf(n,gn.getCompare());return new nt(i,dn(e),new Cs({".priority":o},{".priority":gn}))}else return new nt(i,dn(e),Cs.Default)}else{let n=nt.EMPTY_NODE;return cr(t,(r,s)=>{if(Ws(t,r)&&r.substring(0,1)!=="."){const i=dn(s);(i.isLeafNode()||!i.isEmpty())&&(n=n.updateImmediateChild(r,i))}}),n.updatePriority(dn(e))}}g6(dn);/** + */const b6=!0;function dn(t,e=null){if(t===null)return nt.EMPTY_NODE;if(typeof t=="object"&&".priority"in t&&(e=t[".priority"]),pe(e===null||typeof e=="string"||typeof e=="number"||typeof e=="object"&&".sv"in e,"Invalid priority type found: "+typeof e),typeof t=="object"&&".value"in t&&t[".value"]!==null&&(t=t[".value"]),typeof t!="object"||".sv"in t){const n=t;return new Gt(n,dn(e))}if(!(t instanceof Array)&&b6){const n=[];let r=!1;if(cr(t,(o,a)=>{if(o.substring(0,1)!=="."){const l=dn(a);l.isEmpty()||(r=r||!l.getPriority().isEmpty(),n.push(new Ge(o,l)))}}),n.length===0)return nt.EMPTY_NODE;const i=Cf(n,m6,o=>o.name,Qv);if(r){const o=Cf(n,gn.getCompare());return new nt(i,dn(e),new Rs({".priority":o},{".priority":gn}))}else return new nt(i,dn(e),Rs.Default)}else{let n=nt.EMPTY_NODE;return cr(t,(r,s)=>{if(Ws(t,r)&&r.substring(0,1)!=="."){const i=dn(s);(i.isLeafNode()||!i.isEmpty())&&(n=n.updateImmediateChild(r,i))}}),n.updatePriority(dn(e))}}_6(dn);/** * @license * Copyright 2017 Google LLC * @@ -3681,7 +3681,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class b6 extends rp{constructor(e){super(),this.indexPath_=e,pe(!Be(e)&&We(e)!==".priority","Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,n){const r=this.extractChild(e.node),s=this.extractChild(n.node),i=r.compareTo(s);return i===0?rl(e.name,n.name):i}makePost(e,n){const r=dn(e),s=nt.EMPTY_NODE.updateChild(this.indexPath_,r);return new Ge(n,s)}maxPost(){const e=nt.EMPTY_NODE.updateChild(this.indexPath_,wu);return new Ge(wo,e)}toString(){return TP(this.indexPath_,0).join("/")}}/** + */class I6 extends rp{constructor(e){super(),this.indexPath_=e,pe(!Be(e)&&We(e)!==".priority","Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,n){const r=this.extractChild(e.node),s=this.extractChild(n.node),i=r.compareTo(s);return i===0?rl(e.name,n.name):i}makePost(e,n){const r=dn(e),s=nt.EMPTY_NODE.updateChild(this.indexPath_,r);return new Ge(n,s)}maxPost(){const e=nt.EMPTY_NODE.updateChild(this.indexPath_,bu);return new Ge(wo,e)}toString(){return TP(this.indexPath_,0).join("/")}}/** * @license * Copyright 2017 Google LLC * @@ -3696,7 +3696,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class I6 extends rp{compare(e,n){const r=e.node.compareTo(n.node);return r===0?rl(e.name,n.name):r}isDefinedOn(e){return!0}indexedValueChanged(e,n){return!e.equals(n)}minPost(){return Ge.MIN}maxPost(){return Ge.MAX}makePost(e,n){const r=dn(e);return new Ge(n,r)}toString(){return".value"}}const k6=new I6;/** + */class k6 extends rp{compare(e,n){const r=e.node.compareTo(n.node);return r===0?rl(e.name,n.name):r}isDefinedOn(e){return!0}indexedValueChanged(e,n){return!e.equals(n)}minPost(){return Ge.MIN}maxPost(){return Ge.MAX}makePost(e,n){const r=dn(e);return new Ge(n,r)}toString(){return".value"}}const S6=new k6;/** * @license * Copyright 2017 Google LLC * @@ -3711,7 +3711,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function S6(t){return{type:"value",snapshotNode:t}}function C6(t,e){return{type:"child_added",snapshotNode:e,childName:t}}function R6(t,e){return{type:"child_removed",snapshotNode:e,childName:t}}function hb(t,e,n){return{type:"child_changed",snapshotNode:e,childName:t,oldSnap:n}}function A6(t,e){return{type:"child_moved",snapshotNode:e,childName:t}}/** + */function C6(t){return{type:"value",snapshotNode:t}}function R6(t,e){return{type:"child_added",snapshotNode:e,childName:t}}function A6(t,e){return{type:"child_removed",snapshotNode:e,childName:t}}function db(t,e,n){return{type:"child_changed",snapshotNode:e,childName:t,oldSnap:n}}function P6(t,e){return{type:"child_moved",snapshotNode:e,childName:t}}/** * @license * Copyright 2017 Google LLC * @@ -3726,7 +3726,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class zv{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=gn}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===""?this.startSet_:this.viewFrom_==="l"}getIndexStartValue(){return pe(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return pe(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Fa}hasEnd(){return this.endSet_}getIndexEndValue(){return pe(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return pe(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:wo}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==""}getLimit(){return pe(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===gn}copy(){const e=new zv;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function fb(t){const e={};if(t.isDefault())return e;let n;if(t.index_===gn?n="$priority":t.index_===k6?n="$value":t.index_===_a?n="$key":(pe(t.index_ instanceof b6,"Unrecognized index type!"),n=t.index_.toString()),e.orderBy=on(n),t.startSet_){const r=t.startAfterSet_?"startAfter":"startAt";e[r]=on(t.indexStartValue_),t.startNameSet_&&(e[r]+=","+on(t.indexStartName_))}if(t.endSet_){const r=t.endBeforeSet_?"endBefore":"endAt";e[r]=on(t.indexEndValue_),t.endNameSet_&&(e[r]+=","+on(t.indexEndName_))}return t.limitSet_&&(t.isViewFromLeft()?e.limitToFirst=t.limit_:e.limitToLast=t.limit_),e}function db(t){const e={};if(t.startSet_&&(e.sp=t.indexStartValue_,t.startNameSet_&&(e.sn=t.indexStartName_),e.sin=!t.startAfterSet_),t.endSet_&&(e.ep=t.indexEndValue_,t.endNameSet_&&(e.en=t.indexEndName_),e.ein=!t.endBeforeSet_),t.limitSet_){e.l=t.limit_;let n=t.viewFrom_;n===""&&(t.isViewFromLeft()?n="l":n="r"),e.vf=n}return t.index_!==gn&&(e.i=t.index_.toString()),e}/** + */class Xv{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=gn}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===""?this.startSet_:this.viewFrom_==="l"}getIndexStartValue(){return pe(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return pe(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Fa}hasEnd(){return this.endSet_}getIndexEndValue(){return pe(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return pe(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:wo}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==""}getLimit(){return pe(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===gn}copy(){const e=new Xv;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function pb(t){const e={};if(t.isDefault())return e;let n;if(t.index_===gn?n="$priority":t.index_===S6?n="$value":t.index_===_a?n="$key":(pe(t.index_ instanceof I6,"Unrecognized index type!"),n=t.index_.toString()),e.orderBy=on(n),t.startSet_){const r=t.startAfterSet_?"startAfter":"startAt";e[r]=on(t.indexStartValue_),t.startNameSet_&&(e[r]+=","+on(t.indexStartName_))}if(t.endSet_){const r=t.endBeforeSet_?"endBefore":"endAt";e[r]=on(t.indexEndValue_),t.endNameSet_&&(e[r]+=","+on(t.indexEndName_))}return t.limitSet_&&(t.isViewFromLeft()?e.limitToFirst=t.limit_:e.limitToLast=t.limit_),e}function mb(t){const e={};if(t.startSet_&&(e.sp=t.indexStartValue_,t.startNameSet_&&(e.sn=t.indexStartName_),e.sin=!t.startAfterSet_),t.endSet_&&(e.ep=t.indexEndValue_,t.endNameSet_&&(e.en=t.indexEndName_),e.ein=!t.endBeforeSet_),t.limitSet_){e.l=t.limit_;let n=t.viewFrom_;n===""&&(t.isViewFromLeft()?n="l":n="r"),e.vf=n}return t.index_!==gn&&(e.i=t.index_.toString()),e}/** * @license * Copyright 2017 Google LLC * @@ -3741,7 +3741,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Sf extends vP{constructor(e,n,r,s){super(),this.repoInfo_=e,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=s,this.log_=vu("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,n){return n!==void 0?"tag$"+n:(pe(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,n,r,s){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const o=Sf.getListenId_(e,r),a={};this.listens_[o]=a;const l=fb(e._queryParams);this.restRequest_(i+".json",l,(c,u)=>{let h=u;if(c===404&&(h=null,c=null),c===null&&this.onDataUpdate_(i,h,!1,r),Sa(this.listens_,o)===a){let f;c?c===401?f="permission_denied":f="rest_error:"+c:f="ok",s(f,null)}})}unlisten(e,n){const r=Sf.getListenId_(e,n);delete this.listens_[r]}get(e){const n=fb(e._queryParams),r=e._path.toString(),s=new pc;return this.restRequest_(r+".json",n,(i,o)=>{let a=o;i===404&&(a=null,i=null),i===null?(this.onDataUpdate_(r,a,!1,null),s.resolve(a)):s.reject(new Error(a))}),s.promise}refreshAuthToken(e){}restRequest_(e,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([s,i])=>{s&&s.accessToken&&(n.auth=s.accessToken),i&&i.token&&(n.ac=i.token);const o=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+Qa(n);this.log_("Sending REST request for "+o);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&a.readyState===4){this.log_("REST Response for "+o+" received. status:",a.status,"response:",a.responseText);let l=null;if(a.status>=200&&a.status<300){try{l=mc(a.responseText)}catch{Xn("Failed to parse JSON response for "+o+": "+a.responseText)}r(null,l)}else a.status!==401&&a.status!==404&&Xn("Got unsuccessful REST response for "+o+" Status: "+a.status),r(a.status);r=null}},a.open("GET",o,!0),a.send()})}}/** + */class Rf extends vP{constructor(e,n,r,s){super(),this.repoInfo_=e,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=s,this.log_=wu("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,n){return n!==void 0?"tag$"+n:(pe(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,n,r,s){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const o=Rf.getListenId_(e,r),a={};this.listens_[o]=a;const l=pb(e._queryParams);this.restRequest_(i+".json",l,(c,u)=>{let h=u;if(c===404&&(h=null,c=null),c===null&&this.onDataUpdate_(i,h,!1,r),Sa(this.listens_,o)===a){let f;c?c===401?f="permission_denied":f="rest_error:"+c:f="ok",s(f,null)}})}unlisten(e,n){const r=Rf.getListenId_(e,n);delete this.listens_[r]}get(e){const n=pb(e._queryParams),r=e._path.toString(),s=new pc;return this.restRequest_(r+".json",n,(i,o)=>{let a=o;i===404&&(a=null,i=null),i===null?(this.onDataUpdate_(r,a,!1,null),s.resolve(a)):s.reject(new Error(a))}),s.promise}refreshAuthToken(e){}restRequest_(e,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([s,i])=>{s&&s.accessToken&&(n.auth=s.accessToken),i&&i.token&&(n.ac=i.token);const o=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+Qa(n);this.log_("Sending REST request for "+o);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&a.readyState===4){this.log_("REST Response for "+o+" received. status:",a.status,"response:",a.responseText);let l=null;if(a.status>=200&&a.status<300){try{l=mc(a.responseText)}catch{Xn("Failed to parse JSON response for "+o+": "+a.responseText)}r(null,l)}else a.status!==401&&a.status!==404&&Xn("Got unsuccessful REST response for "+o+" Status: "+a.status),r(a.status);r=null}},a.open("GET",o,!0),a.send()})}}/** * @license * Copyright 2017 Google LLC * @@ -3756,7 +3756,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class P6{constructor(){this.rootNode_=nt.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,n){this.rootNode_=this.rootNode_.updateChild(e,n)}}/** + */class O6{constructor(){this.rootNode_=nt.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,n){this.rootNode_=this.rootNode_.updateChild(e,n)}}/** * @license * Copyright 2017 Google LLC * @@ -3771,7 +3771,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Cf(){return{value:null,children:new Map}}function OP(t,e,n){if(Be(e))t.value=n,t.children.clear();else if(t.value!==null)t.value=t.value.updateChild(e,n);else{const r=We(e);t.children.has(r)||t.children.set(r,Cf());const s=t.children.get(r);e=mt(e),OP(s,e,n)}}function Xg(t,e,n){t.value!==null?n(e,t.value):O6(t,(r,s)=>{const i=new vt(e.toString()+"/"+r);Xg(s,i,n)})}function O6(t,e){t.children.forEach((n,r)=>{e(r,n)})}/** + */function Af(){return{value:null,children:new Map}}function OP(t,e,n){if(Be(e))t.value=n,t.children.clear();else if(t.value!==null)t.value=t.value.updateChild(e,n);else{const r=We(e);t.children.has(r)||t.children.set(r,Af());const s=t.children.get(r);e=mt(e),OP(s,e,n)}}function Xg(t,e,n){t.value!==null?n(e,t.value):N6(t,(r,s)=>{const i=new vt(e.toString()+"/"+r);Xg(s,i,n)})}function N6(t,e){t.children.forEach((n,r)=>{e(r,n)})}/** * @license * Copyright 2017 Google LLC * @@ -3786,7 +3786,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class N6{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),n=Object.assign({},e);return this.last_&&cr(this.last_,(r,s)=>{n[r]=n[r]-s}),this.last_=e,n}}/** + */class D6{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),n=Object.assign({},e);return this.last_&&cr(this.last_,(r,s)=>{n[r]=n[r]-s}),this.last_=e,n}}/** * @license * Copyright 2017 Google LLC * @@ -3801,7 +3801,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const pb=10*1e3,D6=30*1e3,L6=5*60*1e3;class x6{constructor(e,n){this.server_=n,this.statsToReport_={},this.statsListener_=new N6(e);const r=pb+(D6-pb)*Math.random();Ql(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const e=this.statsListener_.get(),n={};let r=!1;cr(e,(s,i)=>{i>0&&Ws(this.statsToReport_,s)&&(n[s]=i,r=!0)}),r&&this.server_.reportStats(n),Ql(this.reportStats_.bind(this),Math.floor(Math.random()*2*L6))}}/** + */const gb=10*1e3,L6=30*1e3,M6=5*60*1e3;class x6{constructor(e,n){this.server_=n,this.statsToReport_={},this.statsListener_=new D6(e);const r=gb+(L6-gb)*Math.random();Ql(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const e=this.statsListener_.get(),n={};let r=!1;cr(e,(s,i)=>{i>0&&Ws(this.statsToReport_,s)&&(n[s]=i,r=!0)}),r&&this.server_.reportStats(n),Ql(this.reportStats_.bind(this),Math.floor(Math.random()*2*M6))}}/** * @license * Copyright 2017 Google LLC * @@ -3831,7 +3831,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Rf{constructor(e,n,r){this.path=e,this.affectedTree=n,this.revert=r,this.type=Kr.ACK_USER_WRITE,this.source=NP()}operationForChild(e){if(Be(this.path)){if(this.affectedTree.value!=null)return pe(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new vt(e));return new Rf(it(),n,this.revert)}}else return pe(We(this.path)===e,"operationForChild called for unrelated child."),new Rf(mt(this.path),this.affectedTree,this.revert)}}/** + */class Pf{constructor(e,n,r){this.path=e,this.affectedTree=n,this.revert=r,this.type=Kr.ACK_USER_WRITE,this.source=NP()}operationForChild(e){if(Be(this.path)){if(this.affectedTree.value!=null)return pe(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new vt(e));return new Pf(it(),n,this.revert)}}else return pe(We(this.path)===e,"operationForChild called for unrelated child."),new Pf(mt(this.path),this.affectedTree,this.revert)}}/** * @license * Copyright 2017 Google LLC * @@ -3861,7 +3861,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Mc{constructor(e,n,r){this.source=e,this.path=n,this.children=r,this.type=Kr.MERGE}operationForChild(e){if(Be(this.path)){const n=this.children.subtree(new vt(e));return n.isEmpty()?null:n.value?new To(this.source,it(),n.value):new Mc(this.source,it(),n)}else return pe(We(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new Mc(this.source,mt(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}/** + */class xc{constructor(e,n,r){this.source=e,this.path=n,this.children=r,this.type=Kr.MERGE}operationForChild(e){if(Be(this.path)){const n=this.children.subtree(new vt(e));return n.isEmpty()?null:n.value?new To(this.source,it(),n.value):new xc(this.source,it(),n)}else return pe(We(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new xc(this.source,mt(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}/** * @license * Copyright 2017 Google LLC * @@ -3876,7 +3876,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Qv{constructor(e,n,r){this.node_=e,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(Be(e))return this.isFullyInitialized()&&!this.filtered_;const n=We(e);return this.isCompleteForChild(n)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}function M6(t,e,n,r){const s=[],i=[];return e.forEach(o=>{o.type==="child_changed"&&t.index_.indexedValueChanged(o.oldSnap,o.snapshotNode)&&i.push(A6(o.childName,o.snapshotNode))}),wl(t,s,"child_removed",e,r,n),wl(t,s,"child_added",e,r,n),wl(t,s,"child_moved",i,r,n),wl(t,s,"child_changed",e,r,n),wl(t,s,"value",e,r,n),s}function wl(t,e,n,r,s,i){const o=r.filter(a=>a.type===n);o.sort((a,l)=>V6(t,a,l)),o.forEach(a=>{const l=F6(t,a,i);s.forEach(c=>{c.respondsTo(a.type)&&e.push(c.createEvent(l,t.query_))})})}function F6(t,e,n){return e.type==="value"||e.type==="child_removed"||(e.prevName=n.getPredecessorChildName(e.childName,e.snapshotNode,t.index_)),e}function V6(t,e,n){if(e.childName==null||n.childName==null)throw Ka("Should only compare child_ events.");const r=new Ge(e.childName,e.snapshotNode),s=new Ge(n.childName,n.snapshotNode);return t.index_.compare(r,s)}/** + */class Jv{constructor(e,n,r){this.node_=e,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(Be(e))return this.isFullyInitialized()&&!this.filtered_;const n=We(e);return this.isCompleteForChild(n)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}function F6(t,e,n,r){const s=[],i=[];return e.forEach(o=>{o.type==="child_changed"&&t.index_.indexedValueChanged(o.oldSnap,o.snapshotNode)&&i.push(P6(o.childName,o.snapshotNode))}),wl(t,s,"child_removed",e,r,n),wl(t,s,"child_added",e,r,n),wl(t,s,"child_moved",i,r,n),wl(t,s,"child_changed",e,r,n),wl(t,s,"value",e,r,n),s}function wl(t,e,n,r,s,i){const o=r.filter(a=>a.type===n);o.sort((a,l)=>U6(t,a,l)),o.forEach(a=>{const l=V6(t,a,i);s.forEach(c=>{c.respondsTo(a.type)&&e.push(c.createEvent(l,t.query_))})})}function V6(t,e,n){return e.type==="value"||e.type==="child_removed"||(e.prevName=n.getPredecessorChildName(e.childName,e.snapshotNode,t.index_)),e}function U6(t,e,n){if(e.childName==null||n.childName==null)throw Ka("Should only compare child_ events.");const r=new Ge(e.childName,e.snapshotNode),s=new Ge(n.childName,n.snapshotNode);return t.index_.compare(r,s)}/** * @license * Copyright 2017 Google LLC * @@ -3891,7 +3891,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function xP(t,e){return{eventCache:t,serverCache:e}}function Xl(t,e,n,r){return xP(new Qv(e,n,r),t.serverCache)}function MP(t,e,n,r){return xP(t.eventCache,new Qv(e,n,r))}function Jg(t){return t.eventCache.isFullyInitialized()?t.eventCache.getNode():null}function bo(t){return t.serverCache.isFullyInitialized()?t.serverCache.getNode():null}/** + */function MP(t,e){return{eventCache:t,serverCache:e}}function Xl(t,e,n,r){return MP(new Jv(e,n,r),t.serverCache)}function xP(t,e,n,r){return MP(t.eventCache,new Jv(e,n,r))}function Jg(t){return t.eventCache.isFullyInitialized()?t.eventCache.getNode():null}function bo(t){return t.serverCache.isFullyInitialized()?t.serverCache.getNode():null}/** * @license * Copyright 2017 Google LLC * @@ -3906,7 +3906,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let pm;const U6=()=>(pm||(pm=new jn(IW)),pm);class dt{constructor(e,n=U6()){this.value=e,this.children=n}static fromObject(e){let n=new dt(null);return cr(e,(r,s)=>{n=n.set(new vt(r),s)}),n}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,n){if(this.value!=null&&n(this.value))return{path:it(),value:this.value};if(Be(e))return null;{const r=We(e),s=this.children.get(r);if(s!==null){const i=s.findRootMostMatchingPathAndValue(mt(e),n);return i!=null?{path:zt(new vt(r),i.path),value:i.value}:null}else return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(Be(e))return this;{const n=We(e),r=this.children.get(n);return r!==null?r.subtree(mt(e)):new dt(null)}}set(e,n){if(Be(e))return new dt(n,this.children);{const r=We(e),i=(this.children.get(r)||new dt(null)).set(mt(e),n),o=this.children.insert(r,i);return new dt(this.value,o)}}remove(e){if(Be(e))return this.children.isEmpty()?new dt(null):new dt(null,this.children);{const n=We(e),r=this.children.get(n);if(r){const s=r.remove(mt(e));let i;return s.isEmpty()?i=this.children.remove(n):i=this.children.insert(n,s),this.value===null&&i.isEmpty()?new dt(null):new dt(this.value,i)}else return this}}get(e){if(Be(e))return this.value;{const n=We(e),r=this.children.get(n);return r?r.get(mt(e)):null}}setTree(e,n){if(Be(e))return n;{const r=We(e),i=(this.children.get(r)||new dt(null)).setTree(mt(e),n);let o;return i.isEmpty()?o=this.children.remove(r):o=this.children.insert(r,i),new dt(this.value,o)}}fold(e){return this.fold_(it(),e)}fold_(e,n){const r={};return this.children.inorderTraversal((s,i)=>{r[s]=i.fold_(zt(e,s),n)}),n(e,this.value,r)}findOnPath(e,n){return this.findOnPath_(e,it(),n)}findOnPath_(e,n,r){const s=this.value?r(n,this.value):!1;if(s)return s;if(Be(e))return null;{const i=We(e),o=this.children.get(i);return o?o.findOnPath_(mt(e),zt(n,i),r):null}}foreachOnPath(e,n){return this.foreachOnPath_(e,it(),n)}foreachOnPath_(e,n,r){if(Be(e))return this;{this.value&&r(n,this.value);const s=We(e),i=this.children.get(s);return i?i.foreachOnPath_(mt(e),zt(n,s),r):new dt(null)}}foreach(e){this.foreach_(it(),e)}foreach_(e,n){this.children.inorderTraversal((r,s)=>{s.foreach_(zt(e,r),n)}),this.value&&n(e,this.value)}foreachChild(e){this.children.inorderTraversal((n,r)=>{r.value&&e(n,r.value)})}}/** + */let pm;const j6=()=>(pm||(pm=new $n(kW)),pm);class dt{constructor(e,n=j6()){this.value=e,this.children=n}static fromObject(e){let n=new dt(null);return cr(e,(r,s)=>{n=n.set(new vt(r),s)}),n}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,n){if(this.value!=null&&n(this.value))return{path:it(),value:this.value};if(Be(e))return null;{const r=We(e),s=this.children.get(r);if(s!==null){const i=s.findRootMostMatchingPathAndValue(mt(e),n);return i!=null?{path:zt(new vt(r),i.path),value:i.value}:null}else return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(Be(e))return this;{const n=We(e),r=this.children.get(n);return r!==null?r.subtree(mt(e)):new dt(null)}}set(e,n){if(Be(e))return new dt(n,this.children);{const r=We(e),i=(this.children.get(r)||new dt(null)).set(mt(e),n),o=this.children.insert(r,i);return new dt(this.value,o)}}remove(e){if(Be(e))return this.children.isEmpty()?new dt(null):new dt(null,this.children);{const n=We(e),r=this.children.get(n);if(r){const s=r.remove(mt(e));let i;return s.isEmpty()?i=this.children.remove(n):i=this.children.insert(n,s),this.value===null&&i.isEmpty()?new dt(null):new dt(this.value,i)}else return this}}get(e){if(Be(e))return this.value;{const n=We(e),r=this.children.get(n);return r?r.get(mt(e)):null}}setTree(e,n){if(Be(e))return n;{const r=We(e),i=(this.children.get(r)||new dt(null)).setTree(mt(e),n);let o;return i.isEmpty()?o=this.children.remove(r):o=this.children.insert(r,i),new dt(this.value,o)}}fold(e){return this.fold_(it(),e)}fold_(e,n){const r={};return this.children.inorderTraversal((s,i)=>{r[s]=i.fold_(zt(e,s),n)}),n(e,this.value,r)}findOnPath(e,n){return this.findOnPath_(e,it(),n)}findOnPath_(e,n,r){const s=this.value?r(n,this.value):!1;if(s)return s;if(Be(e))return null;{const i=We(e),o=this.children.get(i);return o?o.findOnPath_(mt(e),zt(n,i),r):null}}foreachOnPath(e,n){return this.foreachOnPath_(e,it(),n)}foreachOnPath_(e,n,r){if(Be(e))return this;{this.value&&r(n,this.value);const s=We(e),i=this.children.get(s);return i?i.foreachOnPath_(mt(e),zt(n,s),r):new dt(null)}}foreach(e){this.foreach_(it(),e)}foreach_(e,n){this.children.inorderTraversal((r,s)=>{s.foreach_(zt(e,r),n)}),this.value&&n(e,this.value)}foreachChild(e){this.children.inorderTraversal((n,r)=>{r.value&&e(n,r.value)})}}/** * @license * Copyright 2017 Google LLC * @@ -3921,7 +3921,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Ir{constructor(e){this.writeTree_=e}static empty(){return new Ir(new dt(null))}}function Jl(t,e,n){if(Be(e))return new Ir(new dt(n));{const r=t.writeTree_.findRootMostValueAndPath(e);if(r!=null){const s=r.path;let i=r.value;const o=ar(s,e);return i=i.updateChild(o,n),new Ir(t.writeTree_.set(s,i))}else{const s=new dt(n),i=t.writeTree_.setTree(e,s);return new Ir(i)}}}function mb(t,e,n){let r=t;return cr(n,(s,i)=>{r=Jl(r,zt(e,s),i)}),r}function gb(t,e){if(Be(e))return Ir.empty();{const n=t.writeTree_.setTree(e,new dt(null));return new Ir(n)}}function Zg(t,e){return Lo(t,e)!=null}function Lo(t,e){const n=t.writeTree_.findRootMostValueAndPath(e);return n!=null?t.writeTree_.get(n.path).getChild(ar(n.path,e)):null}function _b(t){const e=[],n=t.writeTree_.value;return n!=null?n.isLeafNode()||n.forEachChild(gn,(r,s)=>{e.push(new Ge(r,s))}):t.writeTree_.children.inorderTraversal((r,s)=>{s.value!=null&&e.push(new Ge(r,s.value))}),e}function Ti(t,e){if(Be(e))return t;{const n=Lo(t,e);return n!=null?new Ir(new dt(n)):new Ir(t.writeTree_.subtree(e))}}function e_(t){return t.writeTree_.isEmpty()}function Va(t,e){return FP(it(),t.writeTree_,e)}function FP(t,e,n){if(e.value!=null)return n.updateChild(t,e.value);{let r=null;return e.children.inorderTraversal((s,i)=>{s===".priority"?(pe(i.value!==null,"Priority writes must always be leaf nodes"),r=i.value):n=FP(zt(t,s),i,n)}),!n.getChild(t).isEmpty()&&r!==null&&(n=n.updateChild(zt(t,".priority"),r)),n}}/** + */class Ir{constructor(e){this.writeTree_=e}static empty(){return new Ir(new dt(null))}}function Jl(t,e,n){if(Be(e))return new Ir(new dt(n));{const r=t.writeTree_.findRootMostValueAndPath(e);if(r!=null){const s=r.path;let i=r.value;const o=ar(s,e);return i=i.updateChild(o,n),new Ir(t.writeTree_.set(s,i))}else{const s=new dt(n),i=t.writeTree_.setTree(e,s);return new Ir(i)}}}function _b(t,e,n){let r=t;return cr(n,(s,i)=>{r=Jl(r,zt(e,s),i)}),r}function yb(t,e){if(Be(e))return Ir.empty();{const n=t.writeTree_.setTree(e,new dt(null));return new Ir(n)}}function Zg(t,e){return Lo(t,e)!=null}function Lo(t,e){const n=t.writeTree_.findRootMostValueAndPath(e);return n!=null?t.writeTree_.get(n.path).getChild(ar(n.path,e)):null}function vb(t){const e=[],n=t.writeTree_.value;return n!=null?n.isLeafNode()||n.forEachChild(gn,(r,s)=>{e.push(new Ge(r,s))}):t.writeTree_.children.inorderTraversal((r,s)=>{s.value!=null&&e.push(new Ge(r,s.value))}),e}function Ti(t,e){if(Be(e))return t;{const n=Lo(t,e);return n!=null?new Ir(new dt(n)):new Ir(t.writeTree_.subtree(e))}}function e_(t){return t.writeTree_.isEmpty()}function Va(t,e){return FP(it(),t.writeTree_,e)}function FP(t,e,n){if(e.value!=null)return n.updateChild(t,e.value);{let r=null;return e.children.inorderTraversal((s,i)=>{s===".priority"?(pe(i.value!==null,"Priority writes must always be leaf nodes"),r=i.value):n=FP(zt(t,s),i,n)}),!n.getChild(t).isEmpty()&&r!==null&&(n=n.updateChild(zt(t,".priority"),r)),n}}/** * @license * Copyright 2017 Google LLC * @@ -3936,7 +3936,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function VP(t,e){return HP(e,t)}function j6(t,e,n,r,s){pe(r>t.lastWriteId,"Stacking an older write on top of newer ones"),s===void 0&&(s=!0),t.allWrites.push({path:e,snap:n,writeId:r,visible:s}),s&&(t.visibleWrites=Jl(t.visibleWrites,e,n)),t.lastWriteId=r}function B6(t,e){for(let n=0;na.writeId===e);pe(n>=0,"removeWrite called with nonexistent writeId.");const r=t.allWrites[n];t.allWrites.splice(n,1);let s=r.visible,i=!1,o=t.allWrites.length-1;for(;s&&o>=0;){const a=t.allWrites[o];a.visible&&(o>=n&&H6(a,r.path)?s=!1:Er(r.path,a.path)&&(i=!0)),o--}if(s){if(i)return W6(t),!0;if(r.snap)t.visibleWrites=gb(t.visibleWrites,r.path);else{const a=r.children;cr(a,l=>{t.visibleWrites=gb(t.visibleWrites,zt(r.path,l))})}return!0}else return!1}function H6(t,e){if(t.snap)return Er(t.path,e);for(const n in t.children)if(t.children.hasOwnProperty(n)&&Er(zt(t.path,n),e))return!0;return!1}function W6(t){t.visibleWrites=UP(t.allWrites,G6,it()),t.allWrites.length>0?t.lastWriteId=t.allWrites[t.allWrites.length-1].writeId:t.lastWriteId=-1}function G6(t){return t.visible}function UP(t,e,n){let r=Ir.empty();for(let s=0;s{r=r.updateImmediateChild(i,o)}),r;if(n){const i=Ti(t.visibleWrites,e);return n.forEachChild(gn,(o,a)=>{const l=Va(Ti(i,new vt(o)),a);r=r.updateImmediateChild(o,l)}),_b(i).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}else{const i=Ti(t.visibleWrites,e);return _b(i).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}}function q6(t,e,n,r,s){pe(r||s,"Either existingEventSnap or existingServerSnap must exist");const i=zt(e,n);if(Zg(t.visibleWrites,i))return null;{const o=Ti(t.visibleWrites,i);return e_(o)?s.getChild(n):Va(o,s.getChild(n))}}function K6(t,e,n,r){const s=zt(e,n),i=Lo(t.visibleWrites,s);if(i!=null)return i;if(r.isCompleteForChild(n)){const o=Ti(t.visibleWrites,s);return Va(o,r.getNode().getImmediateChild(n))}else return null}function z6(t,e){return Lo(t.visibleWrites,e)}function Q6(t,e,n,r,s,i,o){let a;const l=Ti(t.visibleWrites,e),c=Lo(l,it());if(c!=null)a=c;else if(n!=null)a=Va(l,n);else return[];if(a=a.withIndex(o),!a.isEmpty()&&!a.isLeafNode()){const u=[],h=o.getCompare(),f=i?a.getReverseIteratorFrom(r,o):a.getIteratorFrom(r,o);let v=f.getNext();for(;v&&u.lengtht.lastWriteId,"Stacking an older write on top of newer ones"),s===void 0&&(s=!0),t.allWrites.push({path:e,snap:n,writeId:r,visible:s}),s&&(t.visibleWrites=Jl(t.visibleWrites,e,n)),t.lastWriteId=r}function $6(t,e){for(let n=0;na.writeId===e);pe(n>=0,"removeWrite called with nonexistent writeId.");const r=t.allWrites[n];t.allWrites.splice(n,1);let s=r.visible,i=!1,o=t.allWrites.length-1;for(;s&&o>=0;){const a=t.allWrites[o];a.visible&&(o>=n&&W6(a,r.path)?s=!1:Er(r.path,a.path)&&(i=!0)),o--}if(s){if(i)return G6(t),!0;if(r.snap)t.visibleWrites=yb(t.visibleWrites,r.path);else{const a=r.children;cr(a,l=>{t.visibleWrites=yb(t.visibleWrites,zt(r.path,l))})}return!0}else return!1}function W6(t,e){if(t.snap)return Er(t.path,e);for(const n in t.children)if(t.children.hasOwnProperty(n)&&Er(zt(t.path,n),e))return!0;return!1}function G6(t){t.visibleWrites=UP(t.allWrites,Y6,it()),t.allWrites.length>0?t.lastWriteId=t.allWrites[t.allWrites.length-1].writeId:t.lastWriteId=-1}function Y6(t){return t.visible}function UP(t,e,n){let r=Ir.empty();for(let s=0;s{r=r.updateImmediateChild(i,o)}),r;if(n){const i=Ti(t.visibleWrites,e);return n.forEachChild(gn,(o,a)=>{const l=Va(Ti(i,new vt(o)),a);r=r.updateImmediateChild(o,l)}),vb(i).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}else{const i=Ti(t.visibleWrites,e);return vb(i).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}}function K6(t,e,n,r,s){pe(r||s,"Either existingEventSnap or existingServerSnap must exist");const i=zt(e,n);if(Zg(t.visibleWrites,i))return null;{const o=Ti(t.visibleWrites,i);return e_(o)?s.getChild(n):Va(o,s.getChild(n))}}function z6(t,e,n,r){const s=zt(e,n),i=Lo(t.visibleWrites,s);if(i!=null)return i;if(r.isCompleteForChild(n)){const o=Ti(t.visibleWrites,s);return Va(o,r.getNode().getImmediateChild(n))}else return null}function Q6(t,e){return Lo(t.visibleWrites,e)}function X6(t,e,n,r,s,i,o){let a;const l=Ti(t.visibleWrites,e),c=Lo(l,it());if(c!=null)a=c;else if(n!=null)a=Va(l,n);else return[];if(a=a.withIndex(o),!a.isEmpty()&&!a.isLeafNode()){const u=[],h=o.getCompare(),f=i?a.getReverseIteratorFrom(r,o):a.getIteratorFrom(r,o);let v=f.getNext();for(;v&&u.length0||!t.eventCache.isFullyInitialized()||s&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPriority()))&&n.push(S6(Jg(e)))}}function GP(t,e,n,r,s,i){const o=e.eventCache;if(Af(r,n)!=null)return e;{let a,l;if(Be(n))if(pe(e.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),e.serverCache.isFiltered()){const c=bo(e),u=c instanceof nt?c:nt.EMPTY_NODE,h=BP(r,u);a=t.filter.updateFullNode(e.eventCache.getNode(),h,i)}else{const c=t_(r,bo(e));a=t.filter.updateFullNode(e.eventCache.getNode(),c,i)}else{const c=We(n);if(c===".priority"){pe(Oi(n)===1,"Can't have a priority with additional path components");const u=o.getNode();l=e.serverCache.getNode();const h=yb(r,n,u,l);h!=null?a=t.filter.updatePriority(u,h):a=o.getNode()}else{const u=mt(n);let h;if(o.isCompleteForChild(c)){l=e.serverCache.getNode();const f=yb(r,n,o.getNode(),l);f!=null?h=o.getNode().getImmediateChild(c).updateChild(u,f):h=o.getNode().getImmediateChild(c)}else h=Xv(r,c,e.serverCache);h!=null?a=t.filter.updateChild(o.getNode(),c,h,u,s,i):a=o.getNode()}}return Xl(e,a,o.isFullyInitialized()||Be(n),t.filter.filtersNodes())}}function Pf(t,e,n,r,s,i,o,a){const l=e.serverCache;let c;const u=o?t.filter:t.filter.getIndexedFilter();if(Be(n))c=u.updateFullNode(l.getNode(),r,null);else if(u.filtersNodes()&&!l.isFiltered()){const v=l.getNode().updateChild(n,r);c=u.updateFullNode(l.getNode(),v,null)}else{const v=We(n);if(!l.isCompleteForPath(n)&&Oi(n)>1)return e;const k=mt(n),T=l.getNode().getImmediateChild(v).updateChild(k,r);v===".priority"?c=u.updatePriority(l.getNode(),T):c=u.updateChild(l.getNode(),v,T,k,WP,null)}const h=MP(e,c,l.isFullyInitialized()||Be(n),u.filtersNodes()),f=new Jv(s,h,i);return GP(t,h,n,s,f,a)}function n_(t,e,n,r,s,i,o){const a=e.eventCache;let l,c;const u=new Jv(s,e,i);if(Be(n))c=t.filter.updateFullNode(e.eventCache.getNode(),r,o),l=Xl(e,c,!0,t.filter.filtersNodes());else{const h=We(n);if(h===".priority")c=t.filter.updatePriority(e.eventCache.getNode(),r),l=Xl(e,c,a.isFullyInitialized(),a.isFiltered());else{const f=mt(n),v=a.getNode().getImmediateChild(h);let k;if(Be(f))k=r;else{const I=u.getCompleteChild(h);I!=null?wP(f)===".priority"&&I.getChild(bP(f)).isEmpty()?k=I:k=I.updateChild(f,r):k=nt.EMPTY_NODE}if(v.equals(k))l=e;else{const I=t.filter.updateChild(a.getNode(),h,k,f,u,o);l=Xl(e,I,a.isFullyInitialized(),t.filter.filtersNodes())}}}return l}function vb(t,e){return t.eventCache.isCompleteForChild(e)}function s3(t,e,n,r,s,i,o){let a=e;return r.foreach((l,c)=>{const u=zt(n,l);vb(e,We(u))&&(a=n_(t,a,u,c,s,i,o))}),r.foreach((l,c)=>{const u=zt(n,l);vb(e,We(u))||(a=n_(t,a,u,c,s,i,o))}),a}function Eb(t,e,n){return n.foreach((r,s)=>{e=e.updateChild(r,s)}),e}function r_(t,e,n,r,s,i,o,a){if(e.serverCache.getNode().isEmpty()&&!e.serverCache.isFullyInitialized())return e;let l=e,c;Be(n)?c=r:c=new dt(null).setTree(n,r);const u=e.serverCache.getNode();return c.children.inorderTraversal((h,f)=>{if(u.hasChild(h)){const v=e.serverCache.getNode().getImmediateChild(h),k=Eb(t,v,f);l=Pf(t,l,new vt(h),k,s,i,o,a)}}),c.children.inorderTraversal((h,f)=>{const v=!e.serverCache.isCompleteForChild(h)&&f.value===null;if(!u.hasChild(h)&&!v){const k=e.serverCache.getNode().getImmediateChild(h),I=Eb(t,k,f);l=Pf(t,l,new vt(h),I,s,i,o,a)}}),l}function i3(t,e,n,r,s,i,o){if(Af(s,n)!=null)return e;const a=e.serverCache.isFiltered(),l=e.serverCache;if(r.value!=null){if(Be(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return Pf(t,e,n,l.getNode().getChild(n),s,i,a,o);if(Be(n)){let c=new dt(null);return l.getNode().forEachChild(_a,(u,h)=>{c=c.set(new vt(u),h)}),r_(t,e,n,c,s,i,a,o)}else return e}else{let c=new dt(null);return r.foreach((u,h)=>{const f=zt(n,u);l.isCompleteForPath(f)&&(c=c.set(u,l.getNode().getChild(f)))}),r_(t,e,n,c,s,i,a,o)}}function o3(t,e,n,r,s){const i=e.serverCache,o=MP(e,i.getNode(),i.isFullyInitialized()||Be(n),i.isFiltered());return GP(t,o,n,r,WP,s)}function a3(t,e,n,r,s,i){let o;if(Af(r,n)!=null)return e;{const a=new Jv(r,e,s),l=e.eventCache.getNode();let c;if(Be(n)||We(n)===".priority"){let u;if(e.serverCache.isFullyInitialized())u=t_(r,bo(e));else{const h=e.serverCache.getNode();pe(h instanceof nt,"serverChildren would be complete if leaf node"),u=BP(r,h)}u=u,c=t.filter.updateFullNode(l,u,i)}else{const u=We(n);let h=Xv(r,u,e.serverCache);h==null&&e.serverCache.isCompleteForChild(u)&&(h=l.getImmediateChild(u)),h!=null?c=t.filter.updateChild(l,u,h,mt(n),a,i):e.eventCache.getNode().hasChild(u)?c=t.filter.updateChild(l,u,nt.EMPTY_NODE,mt(n),a,i):c=l,c.isEmpty()&&e.serverCache.isFullyInitialized()&&(o=t_(r,bo(e)),o.isLeafNode()&&(c=t.filter.updateFullNode(c,o,i)))}return o=e.serverCache.isFullyInitialized()||Af(r,it())!=null,Xl(e,c,o,t.filter.filtersNodes())}}function l3(t,e){const n=bo(t.viewCache_);return n&&(t.query._queryParams.loadsAllData()||!Be(e)&&!n.getImmediateChild(We(e)).isEmpty())?n.getChild(e):null}function wb(t,e,n,r){e.type===Kr.MERGE&&e.source.queryId!==null&&(pe(bo(t.viewCache_),"We should always have a full cache before handling merges"),pe(Jg(t.viewCache_),"Missing event cache, even though we have a server cache"));const s=t.viewCache_,i=n3(t.processor_,s,e,n,r);return t3(t.processor_,i.viewCache),pe(i.viewCache.serverCache.isFullyInitialized()||!s.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),t.viewCache_=i.viewCache,c3(t,i.changes,i.viewCache.eventCache.getNode(),null)}function c3(t,e,n,r){const s=r?[r]:t.eventRegistrations_;return M6(t.eventGenerator_,e,n,s)}/** + */class t3{getCompleteChild(e){return null}getChildAfterChild(e,n,r){return null}}const WP=new t3;class e0{constructor(e,n,r=null){this.writes_=e,this.viewCache_=n,this.optCompleteServerCache_=r}getCompleteChild(e){const n=this.viewCache_.eventCache;if(n.isCompleteForChild(e))return n.getNode().getImmediateChild(e);{const r=this.optCompleteServerCache_!=null?new Jv(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Zv(this.writes_,e,r)}}getChildAfterChild(e,n,r){const s=this.optCompleteServerCache_!=null?this.optCompleteServerCache_:bo(this.viewCache_),i=Z6(this.writes_,s,n,1,r,e);return i.length===0?null:i[0]}}function n3(t,e){pe(e.eventCache.getNode().isIndexed(t.filter.getIndex()),"Event snap not indexed"),pe(e.serverCache.getNode().isIndexed(t.filter.getIndex()),"Server snap not indexed")}function r3(t,e,n,r,s){const i=new e3;let o,a;if(n.type===Kr.OVERWRITE){const c=n;c.source.fromUser?o=n_(t,e,c.path,c.snap,r,s,i):(pe(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.serverCache.isFiltered()&&!Be(c.path),o=Nf(t,e,c.path,c.snap,r,s,a,i))}else if(n.type===Kr.MERGE){const c=n;c.source.fromUser?o=i3(t,e,c.path,c.children,r,s,i):(pe(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.serverCache.isFiltered(),o=r_(t,e,c.path,c.children,r,s,a,i))}else if(n.type===Kr.ACK_USER_WRITE){const c=n;c.revert?o=l3(t,e,c.path,r,s,i):o=o3(t,e,c.path,c.affectedTree,r,s,i)}else if(n.type===Kr.LISTEN_COMPLETE)o=a3(t,e,n.path,r,i);else throw Ka("Unknown operation type: "+n.type);const l=i.getChanges();return s3(e,o,l),{viewCache:o,changes:l}}function s3(t,e,n){const r=e.eventCache;if(r.isFullyInitialized()){const s=r.getNode().isLeafNode()||r.getNode().isEmpty(),i=Jg(t);(n.length>0||!t.eventCache.isFullyInitialized()||s&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPriority()))&&n.push(C6(Jg(e)))}}function GP(t,e,n,r,s,i){const o=e.eventCache;if(Of(r,n)!=null)return e;{let a,l;if(Be(n))if(pe(e.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),e.serverCache.isFiltered()){const c=bo(e),u=c instanceof nt?c:nt.EMPTY_NODE,h=BP(r,u);a=t.filter.updateFullNode(e.eventCache.getNode(),h,i)}else{const c=t_(r,bo(e));a=t.filter.updateFullNode(e.eventCache.getNode(),c,i)}else{const c=We(n);if(c===".priority"){pe(Oi(n)===1,"Can't have a priority with additional path components");const u=o.getNode();l=e.serverCache.getNode();const h=Eb(r,n,u,l);h!=null?a=t.filter.updatePriority(u,h):a=o.getNode()}else{const u=mt(n);let h;if(o.isCompleteForChild(c)){l=e.serverCache.getNode();const f=Eb(r,n,o.getNode(),l);f!=null?h=o.getNode().getImmediateChild(c).updateChild(u,f):h=o.getNode().getImmediateChild(c)}else h=Zv(r,c,e.serverCache);h!=null?a=t.filter.updateChild(o.getNode(),c,h,u,s,i):a=o.getNode()}}return Xl(e,a,o.isFullyInitialized()||Be(n),t.filter.filtersNodes())}}function Nf(t,e,n,r,s,i,o,a){const l=e.serverCache;let c;const u=o?t.filter:t.filter.getIndexedFilter();if(Be(n))c=u.updateFullNode(l.getNode(),r,null);else if(u.filtersNodes()&&!l.isFiltered()){const v=l.getNode().updateChild(n,r);c=u.updateFullNode(l.getNode(),v,null)}else{const v=We(n);if(!l.isCompleteForPath(n)&&Oi(n)>1)return e;const k=mt(n),T=l.getNode().getImmediateChild(v).updateChild(k,r);v===".priority"?c=u.updatePriority(l.getNode(),T):c=u.updateChild(l.getNode(),v,T,k,WP,null)}const h=xP(e,c,l.isFullyInitialized()||Be(n),u.filtersNodes()),f=new e0(s,h,i);return GP(t,h,n,s,f,a)}function n_(t,e,n,r,s,i,o){const a=e.eventCache;let l,c;const u=new e0(s,e,i);if(Be(n))c=t.filter.updateFullNode(e.eventCache.getNode(),r,o),l=Xl(e,c,!0,t.filter.filtersNodes());else{const h=We(n);if(h===".priority")c=t.filter.updatePriority(e.eventCache.getNode(),r),l=Xl(e,c,a.isFullyInitialized(),a.isFiltered());else{const f=mt(n),v=a.getNode().getImmediateChild(h);let k;if(Be(f))k=r;else{const I=u.getCompleteChild(h);I!=null?wP(f)===".priority"&&I.getChild(bP(f)).isEmpty()?k=I:k=I.updateChild(f,r):k=nt.EMPTY_NODE}if(v.equals(k))l=e;else{const I=t.filter.updateChild(a.getNode(),h,k,f,u,o);l=Xl(e,I,a.isFullyInitialized(),t.filter.filtersNodes())}}}return l}function wb(t,e){return t.eventCache.isCompleteForChild(e)}function i3(t,e,n,r,s,i,o){let a=e;return r.foreach((l,c)=>{const u=zt(n,l);wb(e,We(u))&&(a=n_(t,a,u,c,s,i,o))}),r.foreach((l,c)=>{const u=zt(n,l);wb(e,We(u))||(a=n_(t,a,u,c,s,i,o))}),a}function Tb(t,e,n){return n.foreach((r,s)=>{e=e.updateChild(r,s)}),e}function r_(t,e,n,r,s,i,o,a){if(e.serverCache.getNode().isEmpty()&&!e.serverCache.isFullyInitialized())return e;let l=e,c;Be(n)?c=r:c=new dt(null).setTree(n,r);const u=e.serverCache.getNode();return c.children.inorderTraversal((h,f)=>{if(u.hasChild(h)){const v=e.serverCache.getNode().getImmediateChild(h),k=Tb(t,v,f);l=Nf(t,l,new vt(h),k,s,i,o,a)}}),c.children.inorderTraversal((h,f)=>{const v=!e.serverCache.isCompleteForChild(h)&&f.value===null;if(!u.hasChild(h)&&!v){const k=e.serverCache.getNode().getImmediateChild(h),I=Tb(t,k,f);l=Nf(t,l,new vt(h),I,s,i,o,a)}}),l}function o3(t,e,n,r,s,i,o){if(Of(s,n)!=null)return e;const a=e.serverCache.isFiltered(),l=e.serverCache;if(r.value!=null){if(Be(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return Nf(t,e,n,l.getNode().getChild(n),s,i,a,o);if(Be(n)){let c=new dt(null);return l.getNode().forEachChild(_a,(u,h)=>{c=c.set(new vt(u),h)}),r_(t,e,n,c,s,i,a,o)}else return e}else{let c=new dt(null);return r.foreach((u,h)=>{const f=zt(n,u);l.isCompleteForPath(f)&&(c=c.set(u,l.getNode().getChild(f)))}),r_(t,e,n,c,s,i,a,o)}}function a3(t,e,n,r,s){const i=e.serverCache,o=xP(e,i.getNode(),i.isFullyInitialized()||Be(n),i.isFiltered());return GP(t,o,n,r,WP,s)}function l3(t,e,n,r,s,i){let o;if(Of(r,n)!=null)return e;{const a=new e0(r,e,s),l=e.eventCache.getNode();let c;if(Be(n)||We(n)===".priority"){let u;if(e.serverCache.isFullyInitialized())u=t_(r,bo(e));else{const h=e.serverCache.getNode();pe(h instanceof nt,"serverChildren would be complete if leaf node"),u=BP(r,h)}u=u,c=t.filter.updateFullNode(l,u,i)}else{const u=We(n);let h=Zv(r,u,e.serverCache);h==null&&e.serverCache.isCompleteForChild(u)&&(h=l.getImmediateChild(u)),h!=null?c=t.filter.updateChild(l,u,h,mt(n),a,i):e.eventCache.getNode().hasChild(u)?c=t.filter.updateChild(l,u,nt.EMPTY_NODE,mt(n),a,i):c=l,c.isEmpty()&&e.serverCache.isFullyInitialized()&&(o=t_(r,bo(e)),o.isLeafNode()&&(c=t.filter.updateFullNode(c,o,i)))}return o=e.serverCache.isFullyInitialized()||Of(r,it())!=null,Xl(e,c,o,t.filter.filtersNodes())}}function c3(t,e){const n=bo(t.viewCache_);return n&&(t.query._queryParams.loadsAllData()||!Be(e)&&!n.getImmediateChild(We(e)).isEmpty())?n.getChild(e):null}function bb(t,e,n,r){e.type===Kr.MERGE&&e.source.queryId!==null&&(pe(bo(t.viewCache_),"We should always have a full cache before handling merges"),pe(Jg(t.viewCache_),"Missing event cache, even though we have a server cache"));const s=t.viewCache_,i=r3(t.processor_,s,e,n,r);return n3(t.processor_,i.viewCache),pe(i.viewCache.serverCache.isFullyInitialized()||!s.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),t.viewCache_=i.viewCache,u3(t,i.changes,i.viewCache.eventCache.getNode(),null)}function u3(t,e,n,r){const s=r?[r]:t.eventRegistrations_;return F6(t.eventGenerator_,e,n,s)}/** * @license * Copyright 2017 Google LLC * @@ -3981,7 +3981,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let Tb;function u3(t){pe(!Tb,"__referenceConstructor has already been defined"),Tb=t}function Zv(t,e,n,r){const s=e.source.queryId;if(s!==null){const i=t.views.get(s);return pe(i!=null,"SyncTree gave us an op for an invalid query."),wb(i,e,n,r)}else{let i=[];for(const o of t.views.values())i=i.concat(wb(o,e,n,r));return i}}function e0(t,e){let n=null;for(const r of t.views.values())n=n||l3(r,e);return n}/** + */let Ib;function h3(t){pe(!Ib,"__referenceConstructor has already been defined"),Ib=t}function t0(t,e,n,r){const s=e.source.queryId;if(s!==null){const i=t.views.get(s);return pe(i!=null,"SyncTree gave us an op for an invalid query."),bb(i,e,n,r)}else{let i=[];for(const o of t.views.values())i=i.concat(bb(o,e,n,r));return i}}function n0(t,e){let n=null;for(const r of t.views.values())n=n||c3(r,e);return n}/** * @license * Copyright 2017 Google LLC * @@ -3996,7 +3996,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */let bb;function h3(t){pe(!bb,"__referenceConstructor has already been defined"),bb=t}class Ib{constructor(e){this.listenProvider_=e,this.syncPointTree_=new dt(null),this.pendingWriteTree_=X6(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function f3(t,e,n,r,s){return j6(t.pendingWriteTree_,e,n,r,s),s?ip(t,new To(NP(),e,n)):[]}function ta(t,e,n=!1){const r=B6(t.pendingWriteTree_,e);if($6(t.pendingWriteTree_,e)){let i=new dt(null);return r.snap!=null?i=i.set(it(),!0):cr(r.children,o=>{i=i.set(new vt(o),!0)}),ip(t,new Rf(r.path,i,n))}else return[]}function sp(t,e,n){return ip(t,new To(DP(),e,n))}function d3(t,e,n){const r=dt.fromObject(n);return ip(t,new Mc(DP(),e,r))}function p3(t,e,n,r){const s=zP(t,r);if(s!=null){const i=QP(s),o=i.path,a=i.queryId,l=ar(o,e),c=new To(LP(a),l,n);return XP(t,o,c)}else return[]}function m3(t,e,n,r){const s=zP(t,r);if(s){const i=QP(s),o=i.path,a=i.queryId,l=ar(o,e),c=dt.fromObject(n),u=new Mc(LP(a),l,c);return XP(t,o,u)}else return[]}function YP(t,e,n){const s=t.pendingWriteTree_,i=t.syncPointTree_.findOnPath(e,(o,a)=>{const l=ar(o,e),c=e0(a,l);if(c)return c});return jP(s,e,i,n,!0)}function ip(t,e){return qP(e,t.syncPointTree_,null,VP(t.pendingWriteTree_,it()))}function qP(t,e,n,r){if(Be(t.path))return KP(t,e,n,r);{const s=e.get(it());n==null&&s!=null&&(n=e0(s,it()));let i=[];const o=We(t.path),a=t.operationForChild(o),l=e.children.get(o);if(l&&a){const c=n?n.getImmediateChild(o):null,u=$P(r,o);i=i.concat(qP(a,l,c,u))}return s&&(i=i.concat(Zv(s,t,r,n))),i}}function KP(t,e,n,r){const s=e.get(it());n==null&&s!=null&&(n=e0(s,it()));let i=[];return e.children.inorderTraversal((o,a)=>{const l=n?n.getImmediateChild(o):null,c=$P(r,o),u=t.operationForChild(o);u&&(i=i.concat(KP(u,a,l,c)))}),s&&(i=i.concat(Zv(s,t,r,n))),i}function zP(t,e){return t.tagToQueryMap.get(e)}function QP(t){const e=t.indexOf("$");return pe(e!==-1&&e{i=i.set(new vt(o),!0)}),ip(t,new Pf(r.path,i,n))}else return[]}function sp(t,e,n){return ip(t,new To(DP(),e,n))}function p3(t,e,n){const r=dt.fromObject(n);return ip(t,new xc(DP(),e,r))}function m3(t,e,n,r){const s=zP(t,r);if(s!=null){const i=QP(s),o=i.path,a=i.queryId,l=ar(o,e),c=new To(LP(a),l,n);return XP(t,o,c)}else return[]}function g3(t,e,n,r){const s=zP(t,r);if(s){const i=QP(s),o=i.path,a=i.queryId,l=ar(o,e),c=dt.fromObject(n),u=new xc(LP(a),l,c);return XP(t,o,u)}else return[]}function YP(t,e,n){const s=t.pendingWriteTree_,i=t.syncPointTree_.findOnPath(e,(o,a)=>{const l=ar(o,e),c=n0(a,l);if(c)return c});return jP(s,e,i,n,!0)}function ip(t,e){return qP(e,t.syncPointTree_,null,VP(t.pendingWriteTree_,it()))}function qP(t,e,n,r){if(Be(t.path))return KP(t,e,n,r);{const s=e.get(it());n==null&&s!=null&&(n=n0(s,it()));let i=[];const o=We(t.path),a=t.operationForChild(o),l=e.children.get(o);if(l&&a){const c=n?n.getImmediateChild(o):null,u=$P(r,o);i=i.concat(qP(a,l,c,u))}return s&&(i=i.concat(t0(s,t,r,n))),i}}function KP(t,e,n,r){const s=e.get(it());n==null&&s!=null&&(n=n0(s,it()));let i=[];return e.children.inorderTraversal((o,a)=>{const l=n?n.getImmediateChild(o):null,c=$P(r,o),u=t.operationForChild(o);u&&(i=i.concat(KP(u,a,l,c)))}),s&&(i=i.concat(t0(s,t,r,n))),i}function zP(t,e){return t.tagToQueryMap.get(e)}function QP(t){const e=t.indexOf("$");return pe(e!==-1&&e{const c=r0(l,e.getImmediateChild(a),n);c!==l&&(i=i.updateImmediateChild(a,c))}),i}}/** + */class r0{constructor(e){this.node_=e}getImmediateChild(e){const n=this.node_.getImmediateChild(e);return new r0(n)}node(){return this.node_}}class s0{constructor(e,n){this.syncTree_=e,this.path_=n}getImmediateChild(e){const n=zt(this.path_,e);return new s0(this.syncTree_,n)}node(){return YP(this.syncTree_,this.path_)}}const _3=function(t){return t=t||{},t.timestamp=t.timestamp||new Date().getTime(),t},Cb=function(t,e,n){if(!t||typeof t!="object")return t;if(pe(".sv"in t,"Unexpected leaf node or priority contents"),typeof t[".sv"]=="string")return y3(t[".sv"],e,n);if(typeof t[".sv"]=="object")return v3(t[".sv"],e);pe(!1,"Unexpected server value: "+JSON.stringify(t,null,2))},y3=function(t,e,n){switch(t){case"timestamp":return n.timestamp;default:pe(!1,"Unexpected server value: "+t)}},v3=function(t,e,n){t.hasOwnProperty("increment")||pe(!1,"Unexpected server value: "+JSON.stringify(t,null,2));const r=t.increment;typeof r!="number"&&pe(!1,"Unexpected increment value: "+r);const s=e.node();if(pe(s!==null&&typeof s<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!s.isLeafNode())return r;const o=s.getValue();return typeof o!="number"?r:o+r},E3=function(t,e,n,r){return i0(e,new s0(n,t),r)},w3=function(t,e,n){return i0(t,new r0(e),n)};function i0(t,e,n){const r=t.getPriority().val(),s=Cb(r,e.getImmediateChild(".priority"),n);let i;if(t.isLeafNode()){const o=t,a=Cb(o.getValue(),e,n);return a!==o.getValue()||s!==o.getPriority().val()?new Gt(a,dn(s)):t}else{const o=t;return i=o,s!==o.getPriority().val()&&(i=i.updatePriority(new Gt(s))),o.forEachChild(gn,(a,l)=>{const c=i0(l,e.getImmediateChild(a),n);c!==l&&(i=i.updateImmediateChild(a,c))}),i}}/** * @license * Copyright 2017 Google LLC * @@ -4026,7 +4026,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class s0{constructor(e="",n=null,r={children:{},childCount:0}){this.name=e,this.parent=n,this.node=r}}function i0(t,e){let n=e instanceof vt?e:new vt(e),r=t,s=We(n);for(;s!==null;){const i=Sa(r.node.children,s)||{children:{},childCount:0};r=new s0(s,r,i),n=mt(n),s=We(n)}return r}function sl(t){return t.node.value}function JP(t,e){t.node.value=e,s_(t)}function ZP(t){return t.node.childCount>0}function w3(t){return sl(t)===void 0&&!ZP(t)}function op(t,e){cr(t.node.children,(n,r)=>{e(new s0(n,t,r))})}function e1(t,e,n,r){n&&!r&&e(t),op(t,s=>{e1(s,e,!0,r)}),n&&r&&e(t)}function T3(t,e,n){let r=n?t:t.parent;for(;r!==null;){if(e(r))return!0;r=r.parent}return!1}function Tu(t){return new vt(t.parent===null?t.name:Tu(t.parent)+"/"+t.name)}function s_(t){t.parent!==null&&b3(t.parent,t.name,t)}function b3(t,e,n){const r=w3(n),s=Ws(t.node.children,e);r&&s?(delete t.node.children[e],t.node.childCount--,s_(t)):!r&&!s&&(t.node.children[e]=n.node,t.node.childCount++,s_(t))}/** + */class o0{constructor(e="",n=null,r={children:{},childCount:0}){this.name=e,this.parent=n,this.node=r}}function a0(t,e){let n=e instanceof vt?e:new vt(e),r=t,s=We(n);for(;s!==null;){const i=Sa(r.node.children,s)||{children:{},childCount:0};r=new o0(s,r,i),n=mt(n),s=We(n)}return r}function sl(t){return t.node.value}function JP(t,e){t.node.value=e,s_(t)}function ZP(t){return t.node.childCount>0}function T3(t){return sl(t)===void 0&&!ZP(t)}function op(t,e){cr(t.node.children,(n,r)=>{e(new o0(n,t,r))})}function e1(t,e,n,r){n&&!r&&e(t),op(t,s=>{e1(s,e,!0,r)}),n&&r&&e(t)}function b3(t,e,n){let r=n?t:t.parent;for(;r!==null;){if(e(r))return!0;r=r.parent}return!1}function Iu(t){return new vt(t.parent===null?t.name:Iu(t.parent)+"/"+t.name)}function s_(t){t.parent!==null&&I3(t.parent,t.name,t)}function I3(t,e,n){const r=T3(n),s=Ws(t.node.children,e);r&&s?(delete t.node.children[e],t.node.childCount--,s_(t)):!r&&!s&&(t.node.children[e]=n.node,t.node.childCount++,s_(t))}/** * @license * Copyright 2017 Google LLC * @@ -4041,7 +4041,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const I3=/[\[\].#$\/\u0000-\u001F\u007F]/,k3=/[\[\].#$\u0000-\u001F\u007F]/,mm=10*1024*1024,t1=function(t){return typeof t=="string"&&t.length!==0&&!I3.test(t)},S3=function(t){return typeof t=="string"&&t.length!==0&&!k3.test(t)},C3=function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),S3(t)},n1=function(t,e,n){const r=n instanceof vt?new o6(n,t):n;if(e===void 0)throw new Error(t+"contains undefined "+qi(r));if(typeof e=="function")throw new Error(t+"contains a function "+qi(r)+" with contents = "+e.toString());if(tP(e))throw new Error(t+"contains "+e.toString()+" "+qi(r));if(typeof e=="string"&&e.length>mm/3&&pd(e)>mm)throw new Error(t+"contains a string greater than "+mm+" utf8 bytes "+qi(r)+" ('"+e.substring(0,50)+"...')");if(e&&typeof e=="object"){let s=!1,i=!1;if(cr(e,(o,a)=>{if(o===".value")s=!0;else if(o!==".priority"&&o!==".sv"&&(i=!0,!t1(o)))throw new Error(t+" contains an invalid key ("+o+") "+qi(r)+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);a6(r,o),n1(t,a,r),l6(r)}),s&&i)throw new Error(t+' contains ".value" child '+qi(r)+" in addition to actual children.")}},R3=function(t,e){const n=e.path.toString();if(typeof e.repoInfo.host!="string"||e.repoInfo.host.length===0||!t1(e.repoInfo.namespace)&&e.repoInfo.host.split(":")[0]!=="localhost"||n.length!==0&&!C3(n))throw new Error(UM(t,"url")+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)};/** + */const k3=/[\[\].#$\/\u0000-\u001F\u007F]/,S3=/[\[\].#$\u0000-\u001F\u007F]/,mm=10*1024*1024,t1=function(t){return typeof t=="string"&&t.length!==0&&!k3.test(t)},C3=function(t){return typeof t=="string"&&t.length!==0&&!S3.test(t)},R3=function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),C3(t)},n1=function(t,e,n){const r=n instanceof vt?new a6(n,t):n;if(e===void 0)throw new Error(t+"contains undefined "+qi(r));if(typeof e=="function")throw new Error(t+"contains a function "+qi(r)+" with contents = "+e.toString());if(tP(e))throw new Error(t+"contains "+e.toString()+" "+qi(r));if(typeof e=="string"&&e.length>mm/3&&gd(e)>mm)throw new Error(t+"contains a string greater than "+mm+" utf8 bytes "+qi(r)+" ('"+e.substring(0,50)+"...')");if(e&&typeof e=="object"){let s=!1,i=!1;if(cr(e,(o,a)=>{if(o===".value")s=!0;else if(o!==".priority"&&o!==".sv"&&(i=!0,!t1(o)))throw new Error(t+" contains an invalid key ("+o+") "+qi(r)+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);l6(r,o),n1(t,a,r),c6(r)}),s&&i)throw new Error(t+' contains ".value" child '+qi(r)+" in addition to actual children.")}},A3=function(t,e){const n=e.path.toString();if(typeof e.repoInfo.host!="string"||e.repoInfo.host.length===0||!t1(e.repoInfo.namespace)&&e.repoInfo.host.split(":")[0]!=="localhost"||n.length!==0&&!R3(n))throw new Error(jx(t,"url")+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)};/** * @license * Copyright 2017 Google LLC * @@ -4056,7 +4056,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class A3{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function P3(t,e){let n=null;for(let r=0;rEr(r,e)||Er(e,r))}function O3(t,e){t.recursionDepth_++;let n=!0;for(let r=0;rEr(r,e)||Er(e,r))}function N3(t,e){t.recursionDepth_++;let n=!0;for(let r=0;r{Sb(t,r,s,i,o)},t.authTokenProvider_,t.appCheckProvider_),setTimeout(()=>Cb(t,!0),0);else{if(typeof n<"u"&&n!==null){if(typeof n!="object")throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{on(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}t.persistentConnection_=new Ns(t.repoInfo_,e,(r,s,i,o)=>{Sb(t,r,s,i,o)},r=>{Cb(t,r)},r=>{V3(t,r)},t.authTokenProvider_,t.appCheckProvider_,n),t.server_=t.persistentConnection_}t.authTokenProvider_.addTokenChangeListener(r=>{t.server_.refreshAuthToken(r)}),t.appCheckProvider_.addTokenChangeListener(r=>{t.server_.refreshAppCheckToken(r.token)}),t.statsReporter_=MW(t.repoInfo_,()=>new x6(t.stats_,t.server_)),t.infoData_=new P6,t.infoSyncTree_=new Ib({startListening:(r,s,i,o)=>{let a=[];const l=t.infoData_.getNode(r._path);return l.isEmpty()||(a=sp(t.infoSyncTree_,r._path,l),setTimeout(()=>{o("ok")},0)),a},stopListening:()=>{}}),o0(t,"connected",!1),t.serverSyncTree_=new Ib({startListening:(r,s,i,o)=>(t.server_.listen(r,i,s,(a,l)=>{const c=o(a,l);xo(t.eventQueue_,r._path,c)}),[]),stopListening:(r,s)=>{t.server_.unlisten(r,s)}})}function F3(t){const n=t.infoData_.getNode(new vt(".info/serverTimeOffset")).val()||0;return new Date().getTime()+n}function r1(t){return g3({timestamp:F3(t)})}function Sb(t,e,n,r,s){t.dataUpdateCount++;const i=new vt(e);n=t.interceptServerDataCallback_?t.interceptServerDataCallback_(e,n):n;let o=[];if(s)if(r){const l=Qh(n,c=>dn(c));o=m3(t.serverSyncTree_,i,l,s)}else{const l=dn(n);o=p3(t.serverSyncTree_,i,l,s)}else if(r){const l=Qh(n,c=>dn(c));o=d3(t.serverSyncTree_,i,l)}else{const l=dn(n);o=sp(t.serverSyncTree_,i,l)}let a=i;o.length>0&&(a=l0(t,i)),xo(t.eventQueue_,a,o)}function Cb(t,e){o0(t,"connected",e),e===!1&&j3(t)}function V3(t,e){cr(e,(n,r)=>{o0(t,n,r)})}function o0(t,e,n){const r=new vt("/.info/"+e),s=dn(n);t.infoData_.updateSnapshot(r,s);const i=sp(t.infoSyncTree_,r,s);xo(t.eventQueue_,r,i)}function U3(t){return t.nextWriteId_++}function j3(t){s1(t,"onDisconnectEvents");const e=r1(t),n=Cf();Xg(t.onDisconnect_,it(),(s,i)=>{const o=v3(s,i,t.serverSyncTree_,e);OP(n,s,o)});let r=[];Xg(n,it(),(s,i)=>{r=r.concat(sp(t.serverSyncTree_,s,i));const o=W3(t,s);l0(t,o)}),t.onDisconnect_=Cf(),xo(t.eventQueue_,it(),r)}function B3(t){t.persistentConnection_&&t.persistentConnection_.interrupt(D3)}function s1(t,...e){let n="";t.persistentConnection_&&(n=t.persistentConnection_.id+":"),fn(n,...e)}function i1(t,e,n){return YP(t.serverSyncTree_,e,n)||nt.EMPTY_NODE}function a0(t,e=t.transactionQueueTree_){if(e||ap(t,e),sl(e)){const n=a1(t,e);pe(n.length>0,"Sending zero length transaction queue"),n.every(s=>s.status===0)&&$3(t,Tu(e),n)}else ZP(e)&&op(e,n=>{a0(t,n)})}function $3(t,e,n){const r=n.map(c=>c.currentWriteId),s=i1(t,e,r);let i=s;const o=s.hash();for(let c=0;c{s1(t,"transaction put response",{path:l.toString(),status:c});let u=[];if(c==="ok"){const h=[];for(let f=0;fn[f].onComplete(null,!0,n[f].currentOutputSnapshotResolved)),n[f].unwatcher();ap(t,i0(t.transactionQueueTree_,e)),a0(t,t.transactionQueueTree_),xo(t.eventQueue_,e,u);for(let f=0;fa.status===0).map(a=>a.currentWriteId);for(let a=0;a=L3)u=!0,h="maxretry",s=s.concat(ta(t.serverSyncTree_,l.currentWriteId,!0));else{const f=i1(t,l.path,o);l.currentInputSnapshot=f;const v=e[a].update(f.val());if(v!==void 0){n1("transaction failed: Data returned ",v,l.path);let k=dn(v);typeof v=="object"&&v!=null&&Ws(v,".priority")||(k=k.updatePriority(f.getPriority()));const T=l.currentWriteId,g=r1(t),m=E3(k,f,g);l.currentOutputSnapshotRaw=k,l.currentOutputSnapshotResolved=m,l.currentWriteId=U3(t),o.splice(o.indexOf(T),1),s=s.concat(f3(t.serverSyncTree_,l.path,m,l.currentWriteId,l.applyLocally)),s=s.concat(ta(t.serverSyncTree_,T,!0))}else u=!0,h="nodata",s=s.concat(ta(t.serverSyncTree_,l.currentWriteId,!0))}xo(t.eventQueue_,n,s),s=[],u&&(e[a].status=2,function(f){setTimeout(f,Math.floor(0))}(e[a].unwatcher),e[a].onComplete&&(h==="nodata"?r.push(()=>e[a].onComplete(null,!1,e[a].currentInputSnapshot)):r.push(()=>e[a].onComplete(new Error(h),!1,null))))}ap(t,t.transactionQueueTree_);for(let a=0;ar.order-s.order),n}function l1(t,e,n){const r=sl(e);if(r)for(let s=0;s{l1(t,s,n)})}function ap(t,e){const n=sl(e);if(n){let r=0;for(let s=0;s0?n:void 0)}op(e,r=>{ap(t,r)})}function W3(t,e){const n=Tu(o1(t,e)),r=i0(t.transactionQueueTree_,e);return T3(r,s=>{gm(t,s)}),gm(t,r),e1(r,s=>{gm(t,s)}),n}function gm(t,e){const n=sl(e);if(n){const r=[];let s=[],i=-1;for(let o=0;o{Rb(t,r,s,i,o)},t.authTokenProvider_,t.appCheckProvider_),setTimeout(()=>Ab(t,!0),0);else{if(typeof n<"u"&&n!==null){if(typeof n!="object")throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{on(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}t.persistentConnection_=new Ds(t.repoInfo_,e,(r,s,i,o)=>{Rb(t,r,s,i,o)},r=>{Ab(t,r)},r=>{U3(t,r)},t.authTokenProvider_,t.appCheckProvider_,n),t.server_=t.persistentConnection_}t.authTokenProvider_.addTokenChangeListener(r=>{t.server_.refreshAuthToken(r)}),t.appCheckProvider_.addTokenChangeListener(r=>{t.server_.refreshAppCheckToken(r.token)}),t.statsReporter_=FW(t.repoInfo_,()=>new x6(t.stats_,t.server_)),t.infoData_=new O6,t.infoSyncTree_=new Sb({startListening:(r,s,i,o)=>{let a=[];const l=t.infoData_.getNode(r._path);return l.isEmpty()||(a=sp(t.infoSyncTree_,r._path,l),setTimeout(()=>{o("ok")},0)),a},stopListening:()=>{}}),l0(t,"connected",!1),t.serverSyncTree_=new Sb({startListening:(r,s,i,o)=>(t.server_.listen(r,i,s,(a,l)=>{const c=o(a,l);Mo(t.eventQueue_,r._path,c)}),[]),stopListening:(r,s)=>{t.server_.unlisten(r,s)}})}function V3(t){const n=t.infoData_.getNode(new vt(".info/serverTimeOffset")).val()||0;return new Date().getTime()+n}function r1(t){return _3({timestamp:V3(t)})}function Rb(t,e,n,r,s){t.dataUpdateCount++;const i=new vt(e);n=t.interceptServerDataCallback_?t.interceptServerDataCallback_(e,n):n;let o=[];if(s)if(r){const l=Jh(n,c=>dn(c));o=g3(t.serverSyncTree_,i,l,s)}else{const l=dn(n);o=m3(t.serverSyncTree_,i,l,s)}else if(r){const l=Jh(n,c=>dn(c));o=p3(t.serverSyncTree_,i,l)}else{const l=dn(n);o=sp(t.serverSyncTree_,i,l)}let a=i;o.length>0&&(a=u0(t,i)),Mo(t.eventQueue_,a,o)}function Ab(t,e){l0(t,"connected",e),e===!1&&B3(t)}function U3(t,e){cr(e,(n,r)=>{l0(t,n,r)})}function l0(t,e,n){const r=new vt("/.info/"+e),s=dn(n);t.infoData_.updateSnapshot(r,s);const i=sp(t.infoSyncTree_,r,s);Mo(t.eventQueue_,r,i)}function j3(t){return t.nextWriteId_++}function B3(t){s1(t,"onDisconnectEvents");const e=r1(t),n=Af();Xg(t.onDisconnect_,it(),(s,i)=>{const o=E3(s,i,t.serverSyncTree_,e);OP(n,s,o)});let r=[];Xg(n,it(),(s,i)=>{r=r.concat(sp(t.serverSyncTree_,s,i));const o=G3(t,s);u0(t,o)}),t.onDisconnect_=Af(),Mo(t.eventQueue_,it(),r)}function $3(t){t.persistentConnection_&&t.persistentConnection_.interrupt(L3)}function s1(t,...e){let n="";t.persistentConnection_&&(n=t.persistentConnection_.id+":"),fn(n,...e)}function i1(t,e,n){return YP(t.serverSyncTree_,e,n)||nt.EMPTY_NODE}function c0(t,e=t.transactionQueueTree_){if(e||ap(t,e),sl(e)){const n=a1(t,e);pe(n.length>0,"Sending zero length transaction queue"),n.every(s=>s.status===0)&&H3(t,Iu(e),n)}else ZP(e)&&op(e,n=>{c0(t,n)})}function H3(t,e,n){const r=n.map(c=>c.currentWriteId),s=i1(t,e,r);let i=s;const o=s.hash();for(let c=0;c{s1(t,"transaction put response",{path:l.toString(),status:c});let u=[];if(c==="ok"){const h=[];for(let f=0;fn[f].onComplete(null,!0,n[f].currentOutputSnapshotResolved)),n[f].unwatcher();ap(t,a0(t.transactionQueueTree_,e)),c0(t,t.transactionQueueTree_),Mo(t.eventQueue_,e,u);for(let f=0;fa.status===0).map(a=>a.currentWriteId);for(let a=0;a=M3)u=!0,h="maxretry",s=s.concat(ta(t.serverSyncTree_,l.currentWriteId,!0));else{const f=i1(t,l.path,o);l.currentInputSnapshot=f;const v=e[a].update(f.val());if(v!==void 0){n1("transaction failed: Data returned ",v,l.path);let k=dn(v);typeof v=="object"&&v!=null&&Ws(v,".priority")||(k=k.updatePriority(f.getPriority()));const T=l.currentWriteId,g=r1(t),m=w3(k,f,g);l.currentOutputSnapshotRaw=k,l.currentOutputSnapshotResolved=m,l.currentWriteId=j3(t),o.splice(o.indexOf(T),1),s=s.concat(d3(t.serverSyncTree_,l.path,m,l.currentWriteId,l.applyLocally)),s=s.concat(ta(t.serverSyncTree_,T,!0))}else u=!0,h="nodata",s=s.concat(ta(t.serverSyncTree_,l.currentWriteId,!0))}Mo(t.eventQueue_,n,s),s=[],u&&(e[a].status=2,function(f){setTimeout(f,Math.floor(0))}(e[a].unwatcher),e[a].onComplete&&(h==="nodata"?r.push(()=>e[a].onComplete(null,!1,e[a].currentInputSnapshot)):r.push(()=>e[a].onComplete(new Error(h),!1,null))))}ap(t,t.transactionQueueTree_);for(let a=0;ar.order-s.order),n}function l1(t,e,n){const r=sl(e);if(r)for(let s=0;s{l1(t,s,n)})}function ap(t,e){const n=sl(e);if(n){let r=0;for(let s=0;s0?n:void 0)}op(e,r=>{ap(t,r)})}function G3(t,e){const n=Iu(o1(t,e)),r=a0(t.transactionQueueTree_,e);return b3(r,s=>{gm(t,s)}),gm(t,r),e1(r,s=>{gm(t,s)}),n}function gm(t,e){const n=sl(e);if(n){const r=[];let s=[],i=-1;for(let o=0;o0){let s=n[r];try{s=decodeURIComponent(s.replace(/\+/g," "))}catch{}e+="/"+s}return e}function Y3(t){const e={};t.charAt(0)==="?"&&(t=t.substring(1));for(const n of t.split("&")){if(n.length===0)continue;const r=n.split("=");r.length===2?e[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Xn(`Invalid query segment '${n}' in query '${t}'`)}return e}const Rb=function(t,e){const n=q3(t),r=n.namespace;n.domain==="firebase.com"&&Eo(n.host+" is no longer supported. Please use .firebaseio.com instead"),(!r||r==="undefined")&&n.domain!=="localhost"&&Eo("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.secure||TW();const s=n.scheme==="ws"||n.scheme==="wss";return{repoInfo:new DW(n.host,n.secure,r,s,e,"",r!==n.subdomain),path:new vt(n.pathString)}},q3=function(t){let e="",n="",r="",s="",i="",o=!0,a="https",l=443;if(typeof t=="string"){let c=t.indexOf("//");c>=0&&(a=t.substring(0,c-1),t=t.substring(c+2));let u=t.indexOf("/");u===-1&&(u=t.length);let h=t.indexOf("?");h===-1&&(h=t.length),e=t.substring(0,Math.min(u,h)),u=0?(o=a==="https"||a==="wss",l=parseInt(e.substring(c+1),10)):c=e.length;const v=e.slice(0,c);if(v.toLowerCase()==="localhost")n="localhost";else if(v.split(".").length<=2)n=v;else{const k=e.indexOf(".");r=e.substring(0,k).toLowerCase(),n=e.substring(k+1),i=r}"ns"in f&&(i=f.ns)}return{host:e,port:l,domain:n,subdomain:r,secure:o,scheme:a,pathString:s,namespace:i}};/** + */function Y3(t){let e="";const n=t.split("/");for(let r=0;r0){let s=n[r];try{s=decodeURIComponent(s.replace(/\+/g," "))}catch{}e+="/"+s}return e}function q3(t){const e={};t.charAt(0)==="?"&&(t=t.substring(1));for(const n of t.split("&")){if(n.length===0)continue;const r=n.split("=");r.length===2?e[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Xn(`Invalid query segment '${n}' in query '${t}'`)}return e}const Pb=function(t,e){const n=K3(t),r=n.namespace;n.domain==="firebase.com"&&Eo(n.host+" is no longer supported. Please use .firebaseio.com instead"),(!r||r==="undefined")&&n.domain!=="localhost"&&Eo("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.secure||bW();const s=n.scheme==="ws"||n.scheme==="wss";return{repoInfo:new LW(n.host,n.secure,r,s,e,"",r!==n.subdomain),path:new vt(n.pathString)}},K3=function(t){let e="",n="",r="",s="",i="",o=!0,a="https",l=443;if(typeof t=="string"){let c=t.indexOf("//");c>=0&&(a=t.substring(0,c-1),t=t.substring(c+2));let u=t.indexOf("/");u===-1&&(u=t.length);let h=t.indexOf("?");h===-1&&(h=t.length),e=t.substring(0,Math.min(u,h)),u=0?(o=a==="https"||a==="wss",l=parseInt(e.substring(c+1),10)):c=e.length;const v=e.slice(0,c);if(v.toLowerCase()==="localhost")n="localhost";else if(v.split(".").length<=2)n=v;else{const k=e.indexOf(".");r=e.substring(0,k).toLowerCase(),n=e.substring(k+1),i=r}"ns"in f&&(i=f.ns)}return{host:e,port:l,domain:n,subdomain:r,secure:o,scheme:a,pathString:s,namespace:i}};/** * @license * Copyright 2020 Google LLC * @@ -4101,7 +4101,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class c0{constructor(e,n,r,s){this._repo=e,this._path=n,this._queryParams=r,this._orderByCalled=s}get key(){return Be(this._path)?null:wP(this._path)}get ref(){return new il(this._repo,this._path)}get _queryIdentifier(){const e=db(this._queryParams),n=Hv(e);return n==="{}"?"default":n}get _queryObject(){return db(this._queryParams)}isEqual(e){if(e=Bt(e),!(e instanceof c0))return!1;const n=this._repo===e._repo,r=IP(this._path,e._path),s=this._queryIdentifier===e._queryIdentifier;return n&&r&&s}toJSON(){return this.toString()}toString(){return this._repo.toString()+i6(this._path)}}class il extends c0{constructor(e,n){super(e,n,new zv,!1)}get parent(){const e=bP(this._path);return e===null?null:new il(this._repo,e)}get root(){let e=this;for(;e.parent!==null;)e=e.parent;return e}}u3(il);h3(il);/** + */class h0{constructor(e,n,r,s){this._repo=e,this._path=n,this._queryParams=r,this._orderByCalled=s}get key(){return Be(this._path)?null:wP(this._path)}get ref(){return new il(this._repo,this._path)}get _queryIdentifier(){const e=mb(this._queryParams),n=Gv(e);return n==="{}"?"default":n}get _queryObject(){return mb(this._queryParams)}isEqual(e){if(e=Bt(e),!(e instanceof h0))return!1;const n=this._repo===e._repo,r=IP(this._path,e._path),s=this._queryIdentifier===e._queryIdentifier;return n&&r&&s}toJSON(){return this.toString()}toString(){return this._repo.toString()+o6(this._path)}}class il extends h0{constructor(e,n){super(e,n,new Xv,!1)}get parent(){const e=bP(this._path);return e===null?null:new il(this._repo,e)}get root(){let e=this;for(;e.parent!==null;)e=e.parent;return e}}h3(il);f3(il);/** * @license * Copyright 2020 Google LLC * @@ -4116,7 +4116,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const K3="FIREBASE_DATABASE_EMULATOR_HOST",i_={};let z3=!1;function Q3(t,e,n,r,s){let i=r||t.options.databaseURL;i===void 0&&(t.options.projectId||Eo("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),fn("Using default host for project ",t.options.projectId),i=`${t.options.projectId}-default-rtdb.firebaseio.com`);let o=Rb(i,s),a=o.repoInfo,l,c;typeof process<"u"&&process.env&&(c=process.env[K3]),c?(l=!0,i=`http://${c}?ns=${a.namespace}`,o=Rb(i,s),a=o.repoInfo):l=!o.repoInfo.secure;const u=s&&l?new Kg(Kg.OWNER):new NW(t.name,t.options,e);R3("Invalid Firebase Database URL",o),Be(o.path)||Eo("Database URL must point to the root of a Firebase Database (not including a child path).");const h=J3(a,t,u,new OW(t.name,n));return new Z3(h,t)}function X3(t,e){const n=i_[e];(!n||n[t.key]!==t)&&Eo(`Database ${e}(${t.repoInfo_}) has already been deleted.`),B3(t),delete n[t.key]}function J3(t,e,n,r){let s=i_[e.name];s||(s={},i_[e.name]=s);let i=s[t.toURLString()];return i&&Eo("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new x3(t,z3,n,r),s[t.toURLString()]=i,i}class Z3{constructor(e,n){this._repoInternal=e,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(M3(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new il(this._repo,it())),this._rootInternal}_delete(){return this._rootInternal!==null&&(X3(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){this._rootInternal===null&&Eo("Cannot call "+e+" on a deleted database.")}}/** + */const z3="FIREBASE_DATABASE_EMULATOR_HOST",i_={};let Q3=!1;function X3(t,e,n,r,s){let i=r||t.options.databaseURL;i===void 0&&(t.options.projectId||Eo("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),fn("Using default host for project ",t.options.projectId),i=`${t.options.projectId}-default-rtdb.firebaseio.com`);let o=Pb(i,s),a=o.repoInfo,l,c;typeof process<"u"&&process.env&&(c=process.env[z3]),c?(l=!0,i=`http://${c}?ns=${a.namespace}`,o=Pb(i,s),a=o.repoInfo):l=!o.repoInfo.secure;const u=s&&l?new Kg(Kg.OWNER):new DW(t.name,t.options,e);A3("Invalid Firebase Database URL",o),Be(o.path)||Eo("Database URL must point to the root of a Firebase Database (not including a child path).");const h=Z3(a,t,u,new NW(t.name,n));return new eG(h,t)}function J3(t,e){const n=i_[e];(!n||n[t.key]!==t)&&Eo(`Database ${e}(${t.repoInfo_}) has already been deleted.`),$3(t),delete n[t.key]}function Z3(t,e,n,r){let s=i_[e.name];s||(s={},i_[e.name]=s);let i=s[t.toURLString()];return i&&Eo("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new x3(t,Q3,n,r),s[t.toURLString()]=i,i}class eG{constructor(e,n){this._repoInternal=e,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(F3(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new il(this._repo,it())),this._rootInternal}_delete(){return this._rootInternal!==null&&(J3(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){this._rootInternal===null&&Eo("Cannot call "+e+" on a deleted database.")}}/** * @license * Copyright 2021 Google LLC * @@ -4131,7 +4131,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function eG(t){_W(Di),ns(new kr("database",(e,{instanceIdentifier:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return Q3(r,s,i,n)},"PUBLIC").setMultipleInstances(!0)),zn(zT,QT,t),zn(zT,QT,"esm2017")}Ns.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)};Ns.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};eG();/** + */function tG(t){yW(Di),ns(new kr("database",(e,{instanceIdentifier:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return X3(r,s,i,n)},"PUBLIC").setMultipleInstances(!0)),Qn(XT,JT,t),Qn(XT,JT,"esm2017")}Ds.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)};Ds.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};tG();/** * @license * Copyright 2017 Google LLC * @@ -4146,7 +4146,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const c1="firebasestorage.googleapis.com",tG="storageBucket",nG=2*60*1e3,rG=10*60*1e3;/** + */const c1="firebasestorage.googleapis.com",nG="storageBucket",rG=2*60*1e3,sG=10*60*1e3;/** * @license * Copyright 2017 Google LLC * @@ -4161,8 +4161,8 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ls extends as{constructor(e,n,r=0){super(_m(e),`Firebase Storage: ${n} (${_m(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,ls.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return _m(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} -${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(function(t){t.UNKNOWN="unknown",t.OBJECT_NOT_FOUND="object-not-found",t.BUCKET_NOT_FOUND="bucket-not-found",t.PROJECT_NOT_FOUND="project-not-found",t.QUOTA_EXCEEDED="quota-exceeded",t.UNAUTHENTICATED="unauthenticated",t.UNAUTHORIZED="unauthorized",t.UNAUTHORIZED_APP="unauthorized-app",t.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",t.INVALID_CHECKSUM="invalid-checksum",t.CANCELED="canceled",t.INVALID_EVENT_NAME="invalid-event-name",t.INVALID_URL="invalid-url",t.INVALID_DEFAULT_BUCKET="invalid-default-bucket",t.NO_DEFAULT_BUCKET="no-default-bucket",t.CANNOT_SLICE_BLOB="cannot-slice-blob",t.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",t.NO_DOWNLOAD_URL="no-download-url",t.INVALID_ARGUMENT="invalid-argument",t.INVALID_ARGUMENT_COUNT="invalid-argument-count",t.APP_DELETED="app-deleted",t.INVALID_ROOT_OPERATION="invalid-root-operation",t.INVALID_FORMAT="invalid-format",t.INTERNAL_ERROR="internal-error",t.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(is||(is={}));function _m(t){return"storage/"+t}function sG(){const t="An unknown error occurred, please check the error payload for server response.";return new ls(is.UNKNOWN,t)}function iG(){return new ls(is.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function oG(){return new ls(is.CANCELED,"User canceled the upload/download.")}function aG(t){return new ls(is.INVALID_URL,"Invalid URL '"+t+"'.")}function lG(t){return new ls(is.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function Ab(t){return new ls(is.INVALID_ARGUMENT,t)}function u1(){return new ls(is.APP_DELETED,"The Firebase app was deleted.")}function cG(t){return new ls(is.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}/** + */class cs extends ls{constructor(e,n,r=0){super(_m(e),`Firebase Storage: ${n} (${_m(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,cs.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return _m(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} +${this.customData.serverResponse}`:this.message=this._baseMessage}}var os;(function(t){t.UNKNOWN="unknown",t.OBJECT_NOT_FOUND="object-not-found",t.BUCKET_NOT_FOUND="bucket-not-found",t.PROJECT_NOT_FOUND="project-not-found",t.QUOTA_EXCEEDED="quota-exceeded",t.UNAUTHENTICATED="unauthenticated",t.UNAUTHORIZED="unauthorized",t.UNAUTHORIZED_APP="unauthorized-app",t.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",t.INVALID_CHECKSUM="invalid-checksum",t.CANCELED="canceled",t.INVALID_EVENT_NAME="invalid-event-name",t.INVALID_URL="invalid-url",t.INVALID_DEFAULT_BUCKET="invalid-default-bucket",t.NO_DEFAULT_BUCKET="no-default-bucket",t.CANNOT_SLICE_BLOB="cannot-slice-blob",t.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",t.NO_DOWNLOAD_URL="no-download-url",t.INVALID_ARGUMENT="invalid-argument",t.INVALID_ARGUMENT_COUNT="invalid-argument-count",t.APP_DELETED="app-deleted",t.INVALID_ROOT_OPERATION="invalid-root-operation",t.INVALID_FORMAT="invalid-format",t.INTERNAL_ERROR="internal-error",t.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(os||(os={}));function _m(t){return"storage/"+t}function iG(){const t="An unknown error occurred, please check the error payload for server response.";return new cs(os.UNKNOWN,t)}function oG(){return new cs(os.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function aG(){return new cs(os.CANCELED,"User canceled the upload/download.")}function lG(t){return new cs(os.INVALID_URL,"Invalid URL '"+t+"'.")}function cG(t){return new cs(os.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function Ob(t){return new cs(os.INVALID_ARGUMENT,t)}function u1(){return new cs(os.APP_DELETED,"The Firebase app was deleted.")}function uG(t){return new cs(os.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}/** * @license * Copyright 2017 Google LLC * @@ -4177,7 +4177,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class wr{constructor(e,n){this.bucket=e,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,n){let r;try{r=wr.makeFromUrl(e,n)}catch{return new wr(e,"")}if(r.path==="")return r;throw lG(e)}static makeFromUrl(e,n){let r=null;const s="([A-Za-z0-9.\\-_]+)";function i(d){d.path.charAt(d.path.length-1)==="/"&&(d.path_=d.path_.slice(0,-1))}const o="(/(.*))?$",a=new RegExp("^gs://"+s+o,"i"),l={bucket:1,path:3};function c(d){d.path_=decodeURIComponent(d.path)}const u="v[A-Za-z0-9_]+",h=n.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",v=new RegExp(`^https?://${h}/${u}/b/${s}/o${f}`,"i"),k={bucket:1,path:3},I=n===c1?"(?:storage.googleapis.com|storage.cloud.google.com)":n,T="([^?#]*)",g=new RegExp(`^https?://${I}/${s}/${T}`,"i"),_=[{regex:a,indices:l,postModify:i},{regex:v,indices:k,postModify:c},{regex:g,indices:{bucket:1,path:2},postModify:c}];for(let d=0;d<_.length;d++){const E=_[d],p=E.regex.exec(e);if(p){const y=p[E.indices.bucket];let w=p[E.indices.path];w||(w=""),r=new wr(y,w),E.postModify(r);break}}if(r==null)throw aG(e);return r}}class uG{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}/** + */class wr{constructor(e,n){this.bucket=e,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,n){let r;try{r=wr.makeFromUrl(e,n)}catch{return new wr(e,"")}if(r.path==="")return r;throw cG(e)}static makeFromUrl(e,n){let r=null;const s="([A-Za-z0-9.\\-_]+)";function i(d){d.path.charAt(d.path.length-1)==="/"&&(d.path_=d.path_.slice(0,-1))}const o="(/(.*))?$",a=new RegExp("^gs://"+s+o,"i"),l={bucket:1,path:3};function c(d){d.path_=decodeURIComponent(d.path)}const u="v[A-Za-z0-9_]+",h=n.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",v=new RegExp(`^https?://${h}/${u}/b/${s}/o${f}`,"i"),k={bucket:1,path:3},I=n===c1?"(?:storage.googleapis.com|storage.cloud.google.com)":n,T="([^?#]*)",g=new RegExp(`^https?://${I}/${s}/${T}`,"i"),_=[{regex:a,indices:l,postModify:i},{regex:v,indices:k,postModify:c},{regex:g,indices:{bucket:1,path:2},postModify:c}];for(let d=0;d<_.length;d++){const E=_[d],p=E.regex.exec(e);if(p){const y=p[E.indices.bucket];let w=p[E.indices.path];w||(w=""),r=new wr(y,w),E.postModify(r);break}}if(r==null)throw lG(e);return r}}class hG{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}/** * @license * Copyright 2017 Google LLC * @@ -4192,7 +4192,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function hG(t,e,n){let r=1,s=null,i=null,o=!1,a=0;function l(){return a===2}let c=!1;function u(...T){c||(c=!0,e.apply(null,T))}function h(T){s=setTimeout(()=>{s=null,t(v,l())},T)}function f(){i&&clearTimeout(i)}function v(T,...g){if(c){f();return}if(T){f(),u.call(null,T,...g);return}if(l()||o){f(),u.call(null,T,...g);return}r<64&&(r*=2);let _;a===1?(a=2,_=0):_=(r+Math.random())*1e3,h(_)}let k=!1;function I(T){k||(k=!0,f(),!c&&(s!==null?(T||(a=2),clearTimeout(s),h(0)):T||(a=1)))}return h(0),i=setTimeout(()=>{o=!0,I(!0)},n),I}function fG(t){t(!1)}/** + */function fG(t,e,n){let r=1,s=null,i=null,o=!1,a=0;function l(){return a===2}let c=!1;function u(...T){c||(c=!0,e.apply(null,T))}function h(T){s=setTimeout(()=>{s=null,t(v,l())},T)}function f(){i&&clearTimeout(i)}function v(T,...g){if(c){f();return}if(T){f(),u.call(null,T,...g);return}if(l()||o){f(),u.call(null,T,...g);return}r<64&&(r*=2);let _;a===1?(a=2,_=0):_=(r+Math.random())*1e3,h(_)}let k=!1;function I(T){k||(k=!0,f(),!c&&(s!==null?(T||(a=2),clearTimeout(s),h(0)):T||(a=1)))}return h(0),i=setTimeout(()=>{o=!0,I(!0)},n),I}function dG(t){t(!1)}/** * @license * Copyright 2017 Google LLC * @@ -4207,7 +4207,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function dG(t){return t!==void 0}function Pb(t,e,n,r){if(rn)throw Ab(`Invalid value for '${t}'. Expected ${n} or less.`)}function pG(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const s=e(r)+"="+e(t[r]);n=n+s+"&"}return n=n.slice(0,-1),n}/** + */function pG(t){return t!==void 0}function Nb(t,e,n,r){if(rn)throw Ob(`Invalid value for '${t}'. Expected ${n} or less.`)}function mG(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const s=e(r)+"="+e(t[r]);n=n+s+"&"}return n=n.slice(0,-1),n}/** * @license * Copyright 2017 Google LLC * @@ -4222,7 +4222,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var Of;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(Of||(Of={}));/** + */var Df;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(Df||(Df={}));/** * @license * Copyright 2022 Google LLC * @@ -4237,7 +4237,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function mG(t,e){const n=t>=500&&t<600,s=[408,429].indexOf(t)!==-1,i=e.indexOf(t)!==-1;return n||s||i}/** + */function gG(t,e){const n=t>=500&&t<600,s=[408,429].indexOf(t)!==-1,i=e.indexOf(t)!==-1;return n||s||i}/** * @license * Copyright 2017 Google LLC * @@ -4252,7 +4252,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class gG{constructor(e,n,r,s,i,o,a,l,c,u,h,f=!0){this.url_=e,this.method_=n,this.headers_=r,this.body_=s,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=h,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((v,k)=>{this.resolve_=v,this.reject_=k,this.start_()})}start_(){const e=(r,s)=>{if(s){r(!1,new ch(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const o=a=>{const l=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&i.addUploadProgressListener(o),i.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(o),this.pendingConnection_=null;const a=i.getErrorCode()===Of.NO_ERROR,l=i.getStatus();if(!a||mG(l,this.additionalRetryCodes_)&&this.retry){const u=i.getErrorCode()===Of.ABORT;r(!1,new ch(!1,null,u));return}const c=this.successCodes_.indexOf(l)!==-1;r(!0,new ch(c,i))})},n=(r,s)=>{const i=this.resolve_,o=this.reject_,a=s.connection;if(s.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());dG(l)?i(l):i()}catch(l){o(l)}else if(a!==null){const l=sG();l.serverResponse=a.getErrorText(),this.errorCallback_?o(this.errorCallback_(a,l)):o(l)}else if(s.canceled){const l=this.appDelete_?u1():oG();o(l)}else{const l=iG();o(l)}};this.canceled_?n(!1,new ch(!1,null,!0)):this.backoffId_=hG(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&fG(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class ch{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function _G(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function yG(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function vG(t,e){e&&(t["X-Firebase-GMPID"]=e)}function EG(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}function wG(t,e,n,r,s,i,o=!0){const a=pG(t.urlParams),l=t.url+a,c=Object.assign({},t.headers);return vG(c,e),_G(c,n),yG(c,i),EG(c,r),new gG(l,t.method,c,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,s,o)}/** + */class _G{constructor(e,n,r,s,i,o,a,l,c,u,h,f=!0){this.url_=e,this.method_=n,this.headers_=r,this.body_=s,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=h,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((v,k)=>{this.resolve_=v,this.reject_=k,this.start_()})}start_(){const e=(r,s)=>{if(s){r(!1,new hh(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const o=a=>{const l=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&i.addUploadProgressListener(o),i.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(o),this.pendingConnection_=null;const a=i.getErrorCode()===Df.NO_ERROR,l=i.getStatus();if(!a||gG(l,this.additionalRetryCodes_)&&this.retry){const u=i.getErrorCode()===Df.ABORT;r(!1,new hh(!1,null,u));return}const c=this.successCodes_.indexOf(l)!==-1;r(!0,new hh(c,i))})},n=(r,s)=>{const i=this.resolve_,o=this.reject_,a=s.connection;if(s.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());pG(l)?i(l):i()}catch(l){o(l)}else if(a!==null){const l=iG();l.serverResponse=a.getErrorText(),this.errorCallback_?o(this.errorCallback_(a,l)):o(l)}else if(s.canceled){const l=this.appDelete_?u1():aG();o(l)}else{const l=oG();o(l)}};this.canceled_?n(!1,new hh(!1,null,!0)):this.backoffId_=fG(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&dG(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class hh{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function yG(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function vG(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function EG(t,e){e&&(t["X-Firebase-GMPID"]=e)}function wG(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}function TG(t,e,n,r,s,i,o=!0){const a=mG(t.urlParams),l=t.url+a,c=Object.assign({},t.headers);return EG(c,e),yG(c,n),vG(c,i),wG(c,r),new _G(l,t.method,c,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,s,o)}/** * @license * Copyright 2017 Google LLC * @@ -4267,7 +4267,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function TG(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function bG(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/** + */function bG(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function IG(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/** * @license * Copyright 2019 Google LLC * @@ -4282,7 +4282,7 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Nf{constructor(e,n){this._service=e,n instanceof wr?this._location=n:this._location=wr.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new Nf(e,n)}get root(){const e=new wr(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return bG(this._location.path)}get storage(){return this._service}get parent(){const e=TG(this._location.path);if(e===null)return null;const n=new wr(this._location.bucket,e);return new Nf(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw cG(e)}}function Ob(t,e){const n=e==null?void 0:e[tG];return n==null?null:wr.makeFromBucketSpec(n,t)}class IG{constructor(e,n,r,s,i){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=s,this._firebaseVersion=i,this._bucket=null,this._host=c1,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=nG,this._maxUploadRetryTime=rG,this._requests=new Set,s!=null?this._bucket=wr.makeFromBucketSpec(s,this._host):this._bucket=Ob(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=wr.makeFromBucketSpec(this._url,e):this._bucket=Ob(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){Pb("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){Pb("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const n=await e.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new Nf(this,e)}_makeRequest(e,n,r,s,i=!0){if(this._deleted)return new uG(u1());{const o=wG(e,this._appId,r,s,n,this._firebaseVersion,i);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,n){const[r,s]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,s).getPromise()}}const Nb="@firebase/storage",Db="0.11.2";/** + */class Lf{constructor(e,n){this._service=e,n instanceof wr?this._location=n:this._location=wr.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new Lf(e,n)}get root(){const e=new wr(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return IG(this._location.path)}get storage(){return this._service}get parent(){const e=bG(this._location.path);if(e===null)return null;const n=new wr(this._location.bucket,e);return new Lf(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw uG(e)}}function Db(t,e){const n=e==null?void 0:e[nG];return n==null?null:wr.makeFromBucketSpec(n,t)}class kG{constructor(e,n,r,s,i){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=s,this._firebaseVersion=i,this._bucket=null,this._host=c1,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=rG,this._maxUploadRetryTime=sG,this._requests=new Set,s!=null?this._bucket=wr.makeFromBucketSpec(s,this._host):this._bucket=Db(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=wr.makeFromBucketSpec(this._url,e):this._bucket=Db(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){Nb("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){Nb("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const n=await e.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new Lf(this,e)}_makeRequest(e,n,r,s,i=!0){if(this._deleted)return new hG(u1());{const o=TG(e,this._appId,r,s,n,this._firebaseVersion,i);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,n){const[r,s]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,s).getPromise()}}const Lb="@firebase/storage",Mb="0.11.2";/** * @license * Copyright 2020 Google LLC * @@ -4297,58 +4297,58 @@ ${this.customData.serverResponse}`:this.message=this._baseMessage}}var is;(funct * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const kG="storage";function SG(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),s=t.getProvider("app-check-internal");return new IG(n,r,s,e,Di)}function CG(){ns(new kr(kG,SG,"PUBLIC").setMultipleInstances(!0)),zn(Nb,Db,""),zn(Nb,Db,"esm2017")}CG();const ym=new WeakMap;function h1(t,e){return ym.has(e)||ym.set(e,t||{f:{},r:{},s:{},u:{}}),ym.get(e)}function RG(t,e,n,r){if(!t)return n;const[s,i]=f1(t);if(!s)return n;const o=h1(void 0,r)[s]||{},a=e||i;return a&&a in o?o[a]:n}function AG(t,e,n,r){if(!t)return;const[s,i]=f1(t);if(!s)return;const o=h1(void 0,r)[s],a=e||i;if(a)return n.then(l=>{o[a]=l}).catch(qr),a}function f1(t){return aW(t)||lW(t)?["f",t.path]:cW(t)?["r",t.toString()]:uW(t)?["s",t.toString()]:[]}const Zl=new WeakMap;function PG(t,e,n){const r=No();Zl.has(r)||Zl.set(r,new Map);const s=Zl.get(r),i=AG(e,n,t,r);return i&&s.set(i,t),i?()=>s.delete(i):qr}function iJ(t){t=t||No();const e=Zl.get(t),n=e?Promise.all(Array.from(e).map(([r,s])=>s.then(i=>[r,i]))):Promise.resolve([]);return Zl.delete(t),n}const OG={toFirestore(t){return t},fromFirestore(t,e){return t.exists()?Object.defineProperties(t.data(e),{id:{value:t.id}}):null}};function o_(t,e,n,r){if(!iW(t))return[t,{}];const s=[{},{}],i=Object.keys(n).reduce((a,l)=>{const c=n[l];return a[c.path]=c.data(),a},{});function o(a,l,c,u){l=l||{};const[h,f]=u;Object.getOwnPropertyNames(a).forEach(v=>{const k=Object.getOwnPropertyDescriptor(a,v);k&&!k.enumerable&&Object.defineProperty(h,v,k)});for(const v in a){const k=a[v];if(k==null||k instanceof Date||k instanceof Dt||k instanceof hu)h[v]=k;else if($v(k)){const I=c+v;h[v]=I in n?l[v]:k.path,f[I]=k.converter?k:k.withConverter(r.converter)}else if(Array.isArray(k)){h[v]=Array(k.length);for(let I=0;I{u.exists()?a_(a,e,n,u,l,o,r,s,i):(o.set(e,n,null),s())}).catch(i):c=Rv(t,u=>{u.exists()?a_(a,e,n,u,l,o,r,s,i):(o.set(e,n,null),s())},i),()=>{c(),Df(l)}}function l_(t,e,n,r,s,i,o,a,l){const c=Object.keys(s);if(Object.keys(r).filter(I=>c.indexOf(I)<0).forEach(I=>{r[I].unsub(),delete r[I]}),!c.length||++o>t.maxRefDepth)return a(n);let h=0;const f=c.length,v=Object.create(null);function k(I){I in v&&++h>=f&&a(n)}c.forEach(I=>{const T=r[I],g=s[I],m=`${n}.${I}`;if(v[m]=!0,T)if(T.path!==g.path)T.unsub();else return;r[I]={data:()=>Bv(e,m),unsub:NG({ref:g,target:e,path:m,depth:o,ops:i,resolve:k.bind(null,m),reject:l},t),path:g.path}})}function DG(t,e,n,r,s,i){const o=Object.assign({},u0,i),{snapshotListenOptions:a,snapshotOptions:l,wait:c,once:u}=o,h="value";let f=Ze(c?[]:t.value);c||n.set(t,h,[]);const v=r;let k,I=qr;const T=[],g={added:({newIndex:_,doc:d})=>{T.splice(_,0,Object.create(null));const E=T[_],[p,y]=o_(d.data(l),void 0,E,o);n.add(vs(f),_,p),l_(o,f,`${h}.${_}`,E,y,n,0,r.bind(null,d),s)},modified:({oldIndex:_,newIndex:d,doc:E})=>{const p=vs(f),y=T[_],w=p[_],[A,S]=o_(E.data(l),w,y,o);T.splice(d,0,y),n.remove(p,_),n.add(p,d,A),l_(o,f,`${h}.${d}`,y,S,n,0,r,s)},removed:({oldIndex:_})=>{const d=vs(f);n.remove(d,_),Df(T.splice(_,1)[0])}};function m(_){const d=_.docChanges(a);if(!k&&d.length){k=!0;let E=0;const p=d.length,y=Object.create(null);for(let w=0;w{w&&w.id in y&&++E>=p&&(c&&(n.set(t,h,vs(f)),f=t),v(vs(f)),r=qr)}}d.forEach(E=>{g[E.type](E)}),d.length||(c&&(n.set(t,h,vs(f)),f=t),r(vs(f)))}return u?Yj(e).then(m).catch(s):I=Rv(e,m,s),_=>{if(I(),_){const d=typeof _=="function"?_():[];n.set(t,h,d)}T.forEach(Df)}}function LG(t,e,n,r,s,i){const o=Object.assign({},u0,i),a="value",l=Object.create(null);r=hW(r,()=>Bv(t,a));let c=qr;function u(h){h.exists()?a_(o,t,a,h,l,n,0,r,s):(n.set(t,a,null),r(null))}return o.once?LR(e).then(u).catch(s):c=Rv(e,u,s),h=>{if(c(),h){const f=typeof h=="function"?h():null;n.set(t,a,f)}Df(l)}}const Lb=Symbol();function xG(t,e){let n=qr;const r=Object.assign({},u0,e),s=vs(t),i=r.target||Ze();dW()&&(r.once=!0);const o=RG(s,r.ssrKey,Lb,No()),a=o!==Lb;a&&(i.value=o);let l=!a;const c=Ze(!1),u=Ze(),h=wa(),f=Xf();let v=qr;function k(){let g=vs(t);const m=new Promise((_,d)=>{if(n(r.reset),!g)return n=qr,_(null);c.value=l,l=!0,g.converter||(g=g.withConverter(r.converter)),n=($v(g)?LG:DG)(i,g,MG,_,d,r)}).catch(_=>(h.value===m&&(u.value=_),Promise.reject(_))).finally(()=>{h.value===m&&(c.value=!1)});h.value=m}let I=qr;rt(t)&&(I=Vt(t,k)),k(),s&&(v=PG(h.value,s,r.ssrKey)),f&&K_(T);function T(g=r.reset){I(),v(),n(g)}return Object.defineProperties(i,{error:{get:()=>u},data:{get:()=>i},pending:{get:()=>c},promise:{get:()=>h},stop:{get:()=>T}})}const MG={set:(t,e,n)=>rW(t,e,n),add:(t,e,n)=>t.splice(e,0,n),remove:(t,e)=>t.splice(e,1)};function oJ(t,e){return xG(t,{target:Ze([]),...e})}function aJ(t){return xj(No(t))}function FG(t){return(e,n)=>{const r=pW(e,n).run(()=>Ze(t));QA.set(e,r),gW(r,e)}}function lJ(t){return nW?YA(No(t)):null}function VG(t,{firebaseApp:e,modules:n=[]}){t.provide(zA,e);for(const r of n)r(e,t)}const UG=()=>ct().$firebaseApp,jG=t=>mW(t??UG().name);/*! + */const SG="storage";function CG(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),s=t.getProvider("app-check-internal");return new kG(n,r,s,e,Di)}function RG(){ns(new kr(SG,CG,"PUBLIC").setMultipleInstances(!0)),Qn(Lb,Mb,""),Qn(Lb,Mb,"esm2017")}RG();const ym=new WeakMap;function h1(t,e){return ym.has(e)||ym.set(e,t||{f:{},r:{},s:{},u:{}}),ym.get(e)}function AG(t,e,n,r){if(!t)return n;const[s,i]=f1(t);if(!s)return n;const o=h1(void 0,r)[s]||{},a=e||i;return a&&a in o?o[a]:n}function PG(t,e,n,r){if(!t)return;const[s,i]=f1(t);if(!s)return;const o=h1(void 0,r)[s],a=e||i;if(a)return n.then(l=>{o[a]=l}).catch(qr),a}function f1(t){return lW(t)||cW(t)?["f",t.path]:uW(t)?["r",t.toString()]:hW(t)?["s",t.toString()]:[]}const Zl=new WeakMap;function OG(t,e,n){const r=No();Zl.has(r)||Zl.set(r,new Map);const s=Zl.get(r),i=PG(e,n,t,r);return i&&s.set(i,t),i?()=>s.delete(i):qr}function oJ(t){t=t||No();const e=Zl.get(t),n=e?Promise.all(Array.from(e).map(([r,s])=>s.then(i=>[r,i]))):Promise.resolve([]);return Zl.delete(t),n}const NG={toFirestore(t){return t},fromFirestore(t,e){return t.exists()?Object.defineProperties(t.data(e),{id:{value:t.id}}):null}};function o_(t,e,n,r){if(!oW(t))return[t,{}];const s=[{},{}],i=Object.keys(n).reduce((a,l)=>{const c=n[l];return a[c.path]=c.data(),a},{});function o(a,l,c,u){l=l||{};const[h,f]=u;Object.getOwnPropertyNames(a).forEach(v=>{const k=Object.getOwnPropertyDescriptor(a,v);k&&!k.enumerable&&Object.defineProperty(h,v,k)});for(const v in a){const k=a[v];if(k==null||k instanceof Date||k instanceof Dt||k instanceof hu)h[v]=k;else if(Wv(k)){const I=c+v;h[v]=I in n?l[v]:k.path,f[I]=k.converter?k:k.withConverter(r.converter)}else if(Array.isArray(k)){h[v]=Array(k.length);for(let I=0;I{u.exists()?a_(a,e,n,u,l,o,r,s,i):(o.set(e,n,null),s())}).catch(i):c=Pv(t,u=>{u.exists()?a_(a,e,n,u,l,o,r,s,i):(o.set(e,n,null),s())},i),()=>{c(),Mf(l)}}function l_(t,e,n,r,s,i,o,a,l){const c=Object.keys(s);if(Object.keys(r).filter(I=>c.indexOf(I)<0).forEach(I=>{r[I].unsub(),delete r[I]}),!c.length||++o>t.maxRefDepth)return a(n);let h=0;const f=c.length,v=Object.create(null);function k(I){I in v&&++h>=f&&a(n)}c.forEach(I=>{const T=r[I],g=s[I],m=`${n}.${I}`;if(v[m]=!0,T)if(T.path!==g.path)T.unsub();else return;r[I]={data:()=>Hv(e,m),unsub:DG({ref:g,target:e,path:m,depth:o,ops:i,resolve:k.bind(null,m),reject:l},t),path:g.path}})}function LG(t,e,n,r,s,i){const o=Object.assign({},f0,i),{snapshotListenOptions:a,snapshotOptions:l,wait:c,once:u}=o,h="value";let f=Ze(c?[]:t.value);c||n.set(t,h,[]);const v=r;let k,I=qr;const T=[],g={added:({newIndex:_,doc:d})=>{T.splice(_,0,Object.create(null));const E=T[_],[p,y]=o_(d.data(l),void 0,E,o);n.add(Es(f),_,p),l_(o,f,`${h}.${_}`,E,y,n,0,r.bind(null,d),s)},modified:({oldIndex:_,newIndex:d,doc:E})=>{const p=Es(f),y=T[_],w=p[_],[A,S]=o_(E.data(l),w,y,o);T.splice(d,0,y),n.remove(p,_),n.add(p,d,A),l_(o,f,`${h}.${d}`,y,S,n,0,r,s)},removed:({oldIndex:_})=>{const d=Es(f);n.remove(d,_),Mf(T.splice(_,1)[0])}};function m(_){const d=_.docChanges(a);if(!k&&d.length){k=!0;let E=0;const p=d.length,y=Object.create(null);for(let w=0;w{w&&w.id in y&&++E>=p&&(c&&(n.set(t,h,Es(f)),f=t),v(Es(f)),r=qr)}}d.forEach(E=>{g[E.type](E)}),d.length||(c&&(n.set(t,h,Es(f)),f=t),r(Es(f)))}return u?qj(e).then(m).catch(s):I=Pv(e,m,s),_=>{if(I(),_){const d=typeof _=="function"?_():[];n.set(t,h,d)}T.forEach(Mf)}}function MG(t,e,n,r,s,i){const o=Object.assign({},f0,i),a="value",l=Object.create(null);r=fW(r,()=>Hv(t,a));let c=qr;function u(h){h.exists()?a_(o,t,a,h,l,n,0,r,s):(n.set(t,a,null),r(null))}return o.once?LR(e).then(u).catch(s):c=Pv(e,u,s),h=>{if(c(),h){const f=typeof h=="function"?h():null;n.set(t,a,f)}Mf(l)}}const xb=Symbol();function d1(t,e){let n=qr;const r=Object.assign({},f0,e),s=Es(t),i=r.target||Ze();pW()&&(r.once=!0);const o=AG(s,r.ssrKey,xb,No()),a=o!==xb;a&&(i.value=o);let l=!a;const c=Ze(!1),u=Ze(),h=wa(),f=Zf();let v=qr;function k(){let g=Es(t);const m=new Promise((_,d)=>{if(n(r.reset),!g)return n=qr,_(null);c.value=l,l=!0,g.converter||(g=g.withConverter(r.converter)),n=(Wv(g)?MG:LG)(i,g,xG,_,d,r)}).catch(_=>(h.value===m&&(u.value=_),Promise.reject(_))).finally(()=>{h.value===m&&(c.value=!1)});h.value=m}let I=qr;rt(t)&&(I=Vt(t,k)),k(),s&&(v=OG(h.value,s,r.ssrKey)),f&&K_(T);function T(g=r.reset){I(),v(),n(g)}return Object.defineProperties(i,{error:{get:()=>u},data:{get:()=>i},pending:{get:()=>c},promise:{get:()=>h},stop:{get:()=>T}})}const xG={set:(t,e,n)=>sW(t,e,n),add:(t,e,n)=>t.splice(e,0,n),remove:(t,e)=>t.splice(e,1)};function aJ(t,e){return d1(t,{target:Ze([]),...e})}function lJ(t,e){return d1(t,e)}function cJ(t){return xj(No(t))}function FG(t){return(e,n)=>{const r=mW(e,n).run(()=>Ze(t));QA.set(e,r),_W(r,e)}}function uJ(t){return rW?YA(No(t)):null}function VG(t,{firebaseApp:e,modules:n=[]}){t.provide(zA,e);for(const r of n)r(e,t)}const UG=()=>ct().$firebaseApp,jG=t=>gW(t??UG().name);/*! * shared v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const c_=typeof window<"u",cs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),BG=(t,e,n)=>$G({l:t,k:e,s:n}),$G=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Qt=t=>typeof t=="number"&&isFinite(t),HG=t=>p1(t)==="[object Date]",Lf=t=>p1(t)==="[object RegExp]",lp=t=>Ye(t)&&Object.keys(t).length===0,Jt=Object.assign;let xb;const h0=()=>xb||(xb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mb(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const WG=Object.prototype.hasOwnProperty;function f0(t,e){return WG.call(t,e)}const Rt=Array.isArray,St=t=>typeof t=="function",ge=t=>typeof t=="string",Ct=t=>typeof t=="boolean",$e=t=>t!==null&&typeof t=="object",d1=Object.prototype.toString,p1=t=>d1.call(t),Ye=t=>{if(!$e(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},GG=t=>t==null?"":Rt(t)||Ye(t)&&t.toString===d1?JSON.stringify(t,null,2):String(t);function d0(t,e=""){return t.reduce((n,r,s)=>s===0?n+r:n+e+r,"")}function p0(t){let e=t;return()=>++e}function YG(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function m1(){const t=new Map;return{events:t,on(n,r){const s=t.get(n);s&&s.push(r)||t.set(n,[r])},off(n,r){const s=t.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(s=>s(r)),(t.get("*")||[]).slice().map(s=>s(n,r))}}}/*! + */const c_=typeof window<"u",us=(t,e=!1)=>e?Symbol.for(t):Symbol(t),BG=(t,e,n)=>$G({l:t,k:e,s:n}),$G=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Qt=t=>typeof t=="number"&&isFinite(t),HG=t=>m1(t)==="[object Date]",xf=t=>m1(t)==="[object RegExp]",lp=t=>Ye(t)&&Object.keys(t).length===0,Jt=Object.assign;let Fb;const d0=()=>Fb||(Fb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vb(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const WG=Object.prototype.hasOwnProperty;function p0(t,e){return WG.call(t,e)}const Rt=Array.isArray,St=t=>typeof t=="function",ge=t=>typeof t=="string",Ct=t=>typeof t=="boolean",$e=t=>t!==null&&typeof t=="object",p1=Object.prototype.toString,m1=t=>p1.call(t),Ye=t=>{if(!$e(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},GG=t=>t==null?"":Rt(t)||Ye(t)&&t.toString===p1?JSON.stringify(t,null,2):String(t);function m0(t,e=""){return t.reduce((n,r,s)=>s===0?n+r:n+e+r,"")}function g0(t){let e=t;return()=>++e}function YG(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function g1(){const t=new Map;return{events:t,on(n,r){const s=t.get(n);s&&s.push(r)||t.set(n,[r])},off(n,r){const s=t.get(n);s&&s.splice(s.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(s=>s(r)),(t.get("*")||[]).slice().map(s=>s(n,r))}}}/*! * message-compiler v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function qG(t,e,n){return{line:t,column:e,offset:n}}function u_(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Xe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function cp(t,e,n={}){const{domain:r,messages:s,args:i}=n,o=t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function KG(t){throw t}const ps=" ",zG="\r",An=` -`,QG=String.fromCharCode(8232),XG=String.fromCharCode(8233);function JG(t){const e=t;let n=0,r=1,s=1,i=0;const o=y=>e[y]===zG&&e[y+1]===An,a=y=>e[y]===An,l=y=>e[y]===XG,c=y=>e[y]===QG,u=y=>o(y)||a(y)||l(y)||c(y),h=()=>n,f=()=>r,v=()=>s,k=()=>i,I=y=>o(y)||l(y)||c(y)?An:e[y],T=()=>I(n),g=()=>I(n+i);function m(){return i=0,u(n)&&(r++,s=0),o(n)&&n++,n++,s++,e[n]}function _(){return o(n+i)&&i++,i++,e[n+i]}function d(){n=0,r=1,s=1,i=0}function E(y=0){i=y}function p(){const y=n+i;for(;y!==n;)m();i=0}return{index:h,line:f,column:v,peekOffset:k,charAt:I,currentChar:T,currentPeek:g,next:m,peek:_,reset:d,resetPeek:E,skipToPeek:p}}const ti=void 0,ZG=".",Fb="'",eY="tokenizer";function tY(t,e={}){const n=e.location!==!1,r=JG(t),s=()=>r.index(),i=()=>qG(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=e;function h(b,P,M,...$){const q=c();if(P.column+=M,P.offset+=M,u){const X=n?u_(q.startLoc,P):null,te=cp(b,X,{domain:eY,args:$});u(te)}}function f(b,P,M){b.endLoc=i(),b.currentType=P;const $={type:P};return n&&($.loc=u_(b.startLoc,b.endLoc)),M!=null&&($.value=M),$}const v=b=>f(b,14);function k(b,P){return b.currentChar()===P?(b.next(),P):(h(Xe.EXPECTED_TOKEN,i(),0,P),"")}function I(b){let P="";for(;b.currentPeek()===ps||b.currentPeek()===An;)P+=b.currentPeek(),b.peek();return P}function T(b){const P=I(b);return b.skipToPeek(),P}function g(b){if(b===ti)return!1;const P=b.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function m(b){if(b===ti)return!1;const P=b.charCodeAt(0);return P>=48&&P<=57}function _(b,P){const{currentType:M}=P;if(M!==2)return!1;I(b);const $=g(b.currentPeek());return b.resetPeek(),$}function d(b,P){const{currentType:M}=P;if(M!==2)return!1;I(b);const $=b.currentPeek()==="-"?b.peek():b.currentPeek(),q=m($);return b.resetPeek(),q}function E(b,P){const{currentType:M}=P;if(M!==2)return!1;I(b);const $=b.currentPeek()===Fb;return b.resetPeek(),$}function p(b,P){const{currentType:M}=P;if(M!==8)return!1;I(b);const $=b.currentPeek()===".";return b.resetPeek(),$}function y(b,P){const{currentType:M}=P;if(M!==9)return!1;I(b);const $=g(b.currentPeek());return b.resetPeek(),$}function w(b,P){const{currentType:M}=P;if(!(M===8||M===12))return!1;I(b);const $=b.currentPeek()===":";return b.resetPeek(),$}function A(b,P){const{currentType:M}=P;if(M!==10)return!1;const $=()=>{const X=b.currentPeek();return X==="{"?g(b.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===ps||!X?!1:X===An?(b.peek(),$()):g(X)},q=$();return b.resetPeek(),q}function S(b){I(b);const P=b.currentPeek()==="|";return b.resetPeek(),P}function O(b){const P=I(b),M=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:M,hasSpace:P.length>0}}function C(b,P=!0){const M=(q=!1,X="",te=!1)=>{const ne=b.currentPeek();return ne==="{"?X==="%"?!1:q:ne==="@"||!ne?X==="%"?!0:q:ne==="%"?(b.peek(),M(q,"%",!0)):ne==="|"?X==="%"||te?!0:!(X===ps||X===An):ne===ps?(b.peek(),M(!0,ps,te)):ne===An?(b.peek(),M(!0,An,te)):!0},$=M();return P&&b.resetPeek(),$}function R(b,P){const M=b.currentChar();return M===ti?ti:P(M)?(b.next(),M):null}function L(b){return R(b,M=>{const $=M.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36})}function G(b){return R(b,M=>{const $=M.charCodeAt(0);return $>=48&&$<=57})}function U(b){return R(b,M=>{const $=M.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102})}function B(b){let P="",M="";for(;P=G(b);)M+=P;return M}function Y(b){T(b);const P=b.currentChar();return P!=="%"&&h(Xe.EXPECTED_TOKEN,i(),0,P),b.next(),"%"}function F(b){let P="";for(;;){const M=b.currentChar();if(M==="{"||M==="}"||M==="@"||M==="|"||!M)break;if(M==="%")if(C(b))P+=M,b.next();else break;else if(M===ps||M===An)if(C(b))P+=M,b.next();else{if(S(b))break;P+=M,b.next()}else P+=M,b.next()}return P}function j(b){T(b);let P="",M="";for(;P=L(b);)M+=P;return b.currentChar()===ti&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),M}function Z(b){T(b);let P="";return b.currentChar()==="-"?(b.next(),P+=`-${B(b)}`):P+=B(b),b.currentChar()===ti&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),P}function J(b){T(b),k(b,"'");let P="",M="";const $=X=>X!==Fb&&X!==An;for(;P=R(b,$);)P==="\\"?M+=se(b):M+=P;const q=b.currentChar();return q===An||q===ti?(h(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),q===An&&(b.next(),k(b,"'")),M):(k(b,"'"),M)}function se(b){const P=b.currentChar();switch(P){case"\\":case"'":return b.next(),`\\${P}`;case"u":return le(b,P,4);case"U":return le(b,P,6);default:return h(Xe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,P),""}}function le(b,P,M){k(b,P);let $="";for(let q=0;qq!=="{"&&q!=="}"&&q!==ps&&q!==An;for(;P=R(b,$);)M+=P;return M}function oe(b){let P="",M="";for(;P=L(b);)M+=P;return M}function N(b){const P=(M=!1,$)=>{const q=b.currentChar();return q==="{"||q==="%"||q==="@"||q==="|"||q==="("||q===")"||!q||q===ps?$:q===An||q===ZG?($+=q,b.next(),P(M,$)):($+=q,b.next(),P(!0,$))};return P(!1,"")}function x(b){T(b);const P=k(b,"|");return T(b),P}function V(b,P){let M=null;switch(b.currentChar()){case"{":return P.braceNest>=1&&h(Xe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),b.next(),M=f(P,2,"{"),T(b),P.braceNest++,M;case"}":return P.braceNest>0&&P.currentType===2&&h(Xe.EMPTY_PLACEHOLDER,i(),0),b.next(),M=f(P,3,"}"),P.braceNest--,P.braceNest>0&&T(b),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),M;case"@":return P.braceNest>0&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),M=z(b,P)||v(P),P.braceNest=0,M;default:let q=!0,X=!0,te=!0;if(S(b))return P.braceNest>0&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),M=f(P,1,x(b)),P.braceNest=0,P.inLinked=!1,M;if(P.braceNest>0&&(P.currentType===5||P.currentType===6||P.currentType===7))return h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),P.braceNest=0,H(b,P);if(q=_(b,P))return M=f(P,5,j(b)),T(b),M;if(X=d(b,P))return M=f(P,6,Z(b)),T(b),M;if(te=E(b,P))return M=f(P,7,J(b)),T(b),M;if(!q&&!X&&!te)return M=f(P,13,ie(b)),h(Xe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,M.value),T(b),M;break}return M}function z(b,P){const{currentType:M}=P;let $=null;const q=b.currentChar();switch((M===8||M===9||M===12||M===10)&&(q===An||q===ps)&&h(Xe.INVALID_LINKED_FORMAT,i(),0),q){case"@":return b.next(),$=f(P,8,"@"),P.inLinked=!0,$;case".":return T(b),b.next(),f(P,9,".");case":":return T(b),b.next(),f(P,10,":");default:return S(b)?($=f(P,1,x(b)),P.braceNest=0,P.inLinked=!1,$):p(b,P)||w(b,P)?(T(b),z(b,P)):y(b,P)?(T(b),f(P,12,oe(b))):A(b,P)?(T(b),q==="{"?V(b,P)||$:f(P,11,N(b))):(M===8&&h(Xe.INVALID_LINKED_FORMAT,i(),0),P.braceNest=0,P.inLinked=!1,H(b,P))}}function H(b,P){let M={type:14};if(P.braceNest>0)return V(b,P)||v(P);if(P.inLinked)return z(b,P)||v(P);switch(b.currentChar()){case"{":return V(b,P)||v(P);case"}":return h(Xe.UNBALANCED_CLOSING_BRACE,i(),0),b.next(),f(P,3,"}");case"@":return z(b,P)||v(P);default:if(S(b))return M=f(P,1,x(b)),P.braceNest=0,P.inLinked=!1,M;const{isModulo:q,hasSpace:X}=O(b);if(q)return X?f(P,0,F(b)):f(P,4,Y(b));if(C(b))return f(P,0,F(b));break}return M}function D(){const{currentType:b,offset:P,startLoc:M,endLoc:$}=l;return l.lastType=b,l.lastOffset=P,l.lastStartLoc=M,l.lastEndLoc=$,l.offset=s(),l.startLoc=i(),r.currentChar()===ti?f(l,14):H(r,l)}return{nextToken:D,currentOffset:s,currentPosition:i,context:c}}const nY="parser",rY=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function sY(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function iY(t={}){const e=t.location!==!1,{onError:n}=t;function r(g,m,_,d,...E){const p=g.currentPosition();if(p.offset+=d,p.column+=d,n){const y=e?u_(_,p):null,w=cp(m,y,{domain:nY,args:E});n(w)}}function s(g,m,_){const d={type:g};return e&&(d.start=m,d.end=m,d.loc={start:_,end:_}),d}function i(g,m,_,d){d&&(g.type=d),e&&(g.end=m,g.loc&&(g.loc.end=_))}function o(g,m){const _=g.context(),d=s(3,_.offset,_.startLoc);return d.value=m,i(d,g.currentOffset(),g.currentPosition()),d}function a(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(5,d,E);return p.index=parseInt(m,10),g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function l(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(4,d,E);return p.key=m,g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function c(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(9,d,E);return p.value=m.replace(rY,sY),g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function u(g){const m=g.nextToken(),_=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(8,d,E);return m.type!==12?(r(g,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),p.value="",i(p,d,E),{nextConsumeToken:m,node:p}):(m.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fr(m)),p.value=m.value||"",i(p,g.currentOffset(),g.currentPosition()),{node:p})}function h(g,m){const _=g.context(),d=s(7,_.offset,_.startLoc);return d.value=m,i(d,g.currentOffset(),g.currentPosition()),d}function f(g){const m=g.context(),_=s(6,m.offset,m.startLoc);let d=g.nextToken();if(d.type===9){const E=u(g);_.modifier=E.node,d=E.nextConsumeToken||g.nextToken()}switch(d.type!==10&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),d=g.nextToken(),d.type===2&&(d=g.nextToken()),d.type){case 11:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=h(g,d.value||"");break;case 5:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=l(g,d.value||"");break;case 6:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=a(g,d.value||"");break;case 7:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=c(g,d.value||"");break;default:r(g,Xe.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const E=g.context(),p=s(7,E.offset,E.startLoc);return p.value="",i(p,E.offset,E.startLoc),_.key=p,i(_,E.offset,E.startLoc),{nextConsumeToken:d,node:_}}return i(_,g.currentOffset(),g.currentPosition()),{node:_}}function v(g){const m=g.context(),_=m.currentType===1?g.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,E=s(2,_,d);E.items=[];let p=null;do{const A=p||g.nextToken();switch(p=null,A.type){case 0:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(o(g,A.value||""));break;case 6:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(a(g,A.value||""));break;case 5:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(l(g,A.value||""));break;case 7:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(c(g,A.value||""));break;case 8:const S=f(g);E.items.push(S.node),p=S.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const y=m.currentType===1?m.lastOffset:g.currentOffset(),w=m.currentType===1?m.lastEndLoc:g.currentPosition();return i(E,y,w),E}function k(g,m,_,d){const E=g.context();let p=d.items.length===0;const y=s(1,m,_);y.cases=[],y.cases.push(d);do{const w=v(g);p||(p=w.items.length===0),y.cases.push(w)}while(E.currentType!==14);return p&&r(g,Xe.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),i(y,g.currentOffset(),g.currentPosition()),y}function I(g){const m=g.context(),{offset:_,startLoc:d}=m,E=v(g);return m.currentType===14?E:k(g,_,d,E)}function T(g){const m=tY(g,Jt({},t)),_=m.context(),d=s(0,_.offset,_.startLoc);return e&&d.loc&&(d.loc.source=g),d.body=I(m),t.onCacheKey&&(d.cacheKey=t.onCacheKey(g)),_.currentType!==14&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),i(d,m.currentOffset(),m.currentPosition()),d}return{parse:T}}function Fr(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function oY(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Vb(t,e){for(let n=0;nUb(n)),t}function Ub(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;na;function c(T,g){a.code+=T}function u(T,g=!0){const m=g?s:"";c(i?m+" ".repeat(T):m)}function h(T=!0){const g=++a.indentLevel;T&&u(g)}function f(T=!0){const g=--a.indentLevel;T&&u(g)}function v(){u(a.indentLevel)}return{context:l,push:c,indent:h,deindent:f,newline:v,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function uY(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ua(t,e.key),e.modifier?(t.push(", "),Ua(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function hY(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const s=e.items.length;for(let i=0;i1){t.push(`${n("plural")}([`),t.indent(r());const s=e.cases.length;for(let i=0;i{const n=ge(e.mode)?e.mode:"normal",r=ge(e.filename)?e.filename:"message.intl",s=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` -`,o=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=cY(t,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${d0(a.map(h=>`${h}: _${h}`),", ")} } = ctx`),l.newline()),l.push("return "),Ua(l,t),l.deindent(o),l.push("}"),delete t.helpers;const{code:c,map:u}=l.context();return{ast:t,code:c,map:u?u.toJSON():void 0}};function mY(t,e={}){const n=Jt({},e),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=iY(n).parse(t);return r?(i&&lY(a),s&&Qo(a),{ast:a,code:""}):(aY(a,n),pY(a,n))}/*! + */function qG(t,e,n){return{line:t,column:e,offset:n}}function u_(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const Xe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function cp(t,e,n={}){const{domain:r,messages:s,args:i}=n,o=t,a=new SyntaxError(String(o));return a.code=t,e&&(a.location=e),a.domain=r,a}function KG(t){throw t}const ms=" ",zG="\r",Pn=` +`,QG=String.fromCharCode(8232),XG=String.fromCharCode(8233);function JG(t){const e=t;let n=0,r=1,s=1,i=0;const o=y=>e[y]===zG&&e[y+1]===Pn,a=y=>e[y]===Pn,l=y=>e[y]===XG,c=y=>e[y]===QG,u=y=>o(y)||a(y)||l(y)||c(y),h=()=>n,f=()=>r,v=()=>s,k=()=>i,I=y=>o(y)||l(y)||c(y)?Pn:e[y],T=()=>I(n),g=()=>I(n+i);function m(){return i=0,u(n)&&(r++,s=0),o(n)&&n++,n++,s++,e[n]}function _(){return o(n+i)&&i++,i++,e[n+i]}function d(){n=0,r=1,s=1,i=0}function E(y=0){i=y}function p(){const y=n+i;for(;y!==n;)m();i=0}return{index:h,line:f,column:v,peekOffset:k,charAt:I,currentChar:T,currentPeek:g,next:m,peek:_,reset:d,resetPeek:E,skipToPeek:p}}const ti=void 0,ZG=".",Ub="'",eY="tokenizer";function tY(t,e={}){const n=e.location!==!1,r=JG(t),s=()=>r.index(),i=()=>qG(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=e;function h(b,P,x,...$){const q=c();if(P.column+=x,P.offset+=x,u){const X=n?u_(q.startLoc,P):null,te=cp(b,X,{domain:eY,args:$});u(te)}}function f(b,P,x){b.endLoc=i(),b.currentType=P;const $={type:P};return n&&($.loc=u_(b.startLoc,b.endLoc)),x!=null&&($.value=x),$}const v=b=>f(b,14);function k(b,P){return b.currentChar()===P?(b.next(),P):(h(Xe.EXPECTED_TOKEN,i(),0,P),"")}function I(b){let P="";for(;b.currentPeek()===ms||b.currentPeek()===Pn;)P+=b.currentPeek(),b.peek();return P}function T(b){const P=I(b);return b.skipToPeek(),P}function g(b){if(b===ti)return!1;const P=b.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function m(b){if(b===ti)return!1;const P=b.charCodeAt(0);return P>=48&&P<=57}function _(b,P){const{currentType:x}=P;if(x!==2)return!1;I(b);const $=g(b.currentPeek());return b.resetPeek(),$}function d(b,P){const{currentType:x}=P;if(x!==2)return!1;I(b);const $=b.currentPeek()==="-"?b.peek():b.currentPeek(),q=m($);return b.resetPeek(),q}function E(b,P){const{currentType:x}=P;if(x!==2)return!1;I(b);const $=b.currentPeek()===Ub;return b.resetPeek(),$}function p(b,P){const{currentType:x}=P;if(x!==8)return!1;I(b);const $=b.currentPeek()===".";return b.resetPeek(),$}function y(b,P){const{currentType:x}=P;if(x!==9)return!1;I(b);const $=g(b.currentPeek());return b.resetPeek(),$}function w(b,P){const{currentType:x}=P;if(!(x===8||x===12))return!1;I(b);const $=b.currentPeek()===":";return b.resetPeek(),$}function A(b,P){const{currentType:x}=P;if(x!==10)return!1;const $=()=>{const X=b.currentPeek();return X==="{"?g(b.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===ms||!X?!1:X===Pn?(b.peek(),$()):g(X)},q=$();return b.resetPeek(),q}function S(b){I(b);const P=b.currentPeek()==="|";return b.resetPeek(),P}function O(b){const P=I(b),x=b.currentPeek()==="%"&&b.peek()==="{";return b.resetPeek(),{isModulo:x,hasSpace:P.length>0}}function C(b,P=!0){const x=(q=!1,X="",te=!1)=>{const ne=b.currentPeek();return ne==="{"?X==="%"?!1:q:ne==="@"||!ne?X==="%"?!0:q:ne==="%"?(b.peek(),x(q,"%",!0)):ne==="|"?X==="%"||te?!0:!(X===ms||X===Pn):ne===ms?(b.peek(),x(!0,ms,te)):ne===Pn?(b.peek(),x(!0,Pn,te)):!0},$=x();return P&&b.resetPeek(),$}function R(b,P){const x=b.currentChar();return x===ti?ti:P(x)?(b.next(),x):null}function L(b){return R(b,x=>{const $=x.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36})}function G(b){return R(b,x=>{const $=x.charCodeAt(0);return $>=48&&$<=57})}function U(b){return R(b,x=>{const $=x.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102})}function B(b){let P="",x="";for(;P=G(b);)x+=P;return x}function Y(b){T(b);const P=b.currentChar();return P!=="%"&&h(Xe.EXPECTED_TOKEN,i(),0,P),b.next(),"%"}function F(b){let P="";for(;;){const x=b.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x==="%")if(C(b))P+=x,b.next();else break;else if(x===ms||x===Pn)if(C(b))P+=x,b.next();else{if(S(b))break;P+=x,b.next()}else P+=x,b.next()}return P}function j(b){T(b);let P="",x="";for(;P=L(b);)x+=P;return b.currentChar()===ti&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Z(b){T(b);let P="";return b.currentChar()==="-"?(b.next(),P+=`-${B(b)}`):P+=B(b),b.currentChar()===ti&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),P}function J(b){T(b),k(b,"'");let P="",x="";const $=X=>X!==Ub&&X!==Pn;for(;P=R(b,$);)P==="\\"?x+=se(b):x+=P;const q=b.currentChar();return q===Pn||q===ti?(h(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),q===Pn&&(b.next(),k(b,"'")),x):(k(b,"'"),x)}function se(b){const P=b.currentChar();switch(P){case"\\":case"'":return b.next(),`\\${P}`;case"u":return le(b,P,4);case"U":return le(b,P,6);default:return h(Xe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,P),""}}function le(b,P,x){k(b,P);let $="";for(let q=0;qq!=="{"&&q!=="}"&&q!==ms&&q!==Pn;for(;P=R(b,$);)x+=P;return x}function oe(b){let P="",x="";for(;P=L(b);)x+=P;return x}function N(b){const P=(x=!1,$)=>{const q=b.currentChar();return q==="{"||q==="%"||q==="@"||q==="|"||q==="("||q===")"||!q||q===ms?$:q===Pn||q===ZG?($+=q,b.next(),P(x,$)):($+=q,b.next(),P(!0,$))};return P(!1,"")}function M(b){T(b);const P=k(b,"|");return T(b),P}function V(b,P){let x=null;switch(b.currentChar()){case"{":return P.braceNest>=1&&h(Xe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),b.next(),x=f(P,2,"{"),T(b),P.braceNest++,x;case"}":return P.braceNest>0&&P.currentType===2&&h(Xe.EMPTY_PLACEHOLDER,i(),0),b.next(),x=f(P,3,"}"),P.braceNest--,P.braceNest>0&&T(b),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),x;case"@":return P.braceNest>0&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),x=z(b,P)||v(P),P.braceNest=0,x;default:let q=!0,X=!0,te=!0;if(S(b))return P.braceNest>0&&h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),x=f(P,1,M(b)),P.braceNest=0,P.inLinked=!1,x;if(P.braceNest>0&&(P.currentType===5||P.currentType===6||P.currentType===7))return h(Xe.UNTERMINATED_CLOSING_BRACE,i(),0),P.braceNest=0,H(b,P);if(q=_(b,P))return x=f(P,5,j(b)),T(b),x;if(X=d(b,P))return x=f(P,6,Z(b)),T(b),x;if(te=E(b,P))return x=f(P,7,J(b)),T(b),x;if(!q&&!X&&!te)return x=f(P,13,ie(b)),h(Xe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),T(b),x;break}return x}function z(b,P){const{currentType:x}=P;let $=null;const q=b.currentChar();switch((x===8||x===9||x===12||x===10)&&(q===Pn||q===ms)&&h(Xe.INVALID_LINKED_FORMAT,i(),0),q){case"@":return b.next(),$=f(P,8,"@"),P.inLinked=!0,$;case".":return T(b),b.next(),f(P,9,".");case":":return T(b),b.next(),f(P,10,":");default:return S(b)?($=f(P,1,M(b)),P.braceNest=0,P.inLinked=!1,$):p(b,P)||w(b,P)?(T(b),z(b,P)):y(b,P)?(T(b),f(P,12,oe(b))):A(b,P)?(T(b),q==="{"?V(b,P)||$:f(P,11,N(b))):(x===8&&h(Xe.INVALID_LINKED_FORMAT,i(),0),P.braceNest=0,P.inLinked=!1,H(b,P))}}function H(b,P){let x={type:14};if(P.braceNest>0)return V(b,P)||v(P);if(P.inLinked)return z(b,P)||v(P);switch(b.currentChar()){case"{":return V(b,P)||v(P);case"}":return h(Xe.UNBALANCED_CLOSING_BRACE,i(),0),b.next(),f(P,3,"}");case"@":return z(b,P)||v(P);default:if(S(b))return x=f(P,1,M(b)),P.braceNest=0,P.inLinked=!1,x;const{isModulo:q,hasSpace:X}=O(b);if(q)return X?f(P,0,F(b)):f(P,4,Y(b));if(C(b))return f(P,0,F(b));break}return x}function D(){const{currentType:b,offset:P,startLoc:x,endLoc:$}=l;return l.lastType=b,l.lastOffset=P,l.lastStartLoc=x,l.lastEndLoc=$,l.offset=s(),l.startLoc=i(),r.currentChar()===ti?f(l,14):H(r,l)}return{nextToken:D,currentOffset:s,currentPosition:i,context:c}}const nY="parser",rY=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function sY(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function iY(t={}){const e=t.location!==!1,{onError:n}=t;function r(g,m,_,d,...E){const p=g.currentPosition();if(p.offset+=d,p.column+=d,n){const y=e?u_(_,p):null,w=cp(m,y,{domain:nY,args:E});n(w)}}function s(g,m,_){const d={type:g};return e&&(d.start=m,d.end=m,d.loc={start:_,end:_}),d}function i(g,m,_,d){d&&(g.type=d),e&&(g.end=m,g.loc&&(g.loc.end=_))}function o(g,m){const _=g.context(),d=s(3,_.offset,_.startLoc);return d.value=m,i(d,g.currentOffset(),g.currentPosition()),d}function a(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(5,d,E);return p.index=parseInt(m,10),g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function l(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(4,d,E);return p.key=m,g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function c(g,m){const _=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(9,d,E);return p.value=m.replace(rY,sY),g.nextToken(),i(p,g.currentOffset(),g.currentPosition()),p}function u(g){const m=g.nextToken(),_=g.context(),{lastOffset:d,lastStartLoc:E}=_,p=s(8,d,E);return m.type!==12?(r(g,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),p.value="",i(p,d,E),{nextConsumeToken:m,node:p}):(m.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Fr(m)),p.value=m.value||"",i(p,g.currentOffset(),g.currentPosition()),{node:p})}function h(g,m){const _=g.context(),d=s(7,_.offset,_.startLoc);return d.value=m,i(d,g.currentOffset(),g.currentPosition()),d}function f(g){const m=g.context(),_=s(6,m.offset,m.startLoc);let d=g.nextToken();if(d.type===9){const E=u(g);_.modifier=E.node,d=E.nextConsumeToken||g.nextToken()}switch(d.type!==10&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),d=g.nextToken(),d.type===2&&(d=g.nextToken()),d.type){case 11:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=h(g,d.value||"");break;case 5:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=l(g,d.value||"");break;case 6:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=a(g,d.value||"");break;case 7:d.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(d)),_.key=c(g,d.value||"");break;default:r(g,Xe.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const E=g.context(),p=s(7,E.offset,E.startLoc);return p.value="",i(p,E.offset,E.startLoc),_.key=p,i(_,E.offset,E.startLoc),{nextConsumeToken:d,node:_}}return i(_,g.currentOffset(),g.currentPosition()),{node:_}}function v(g){const m=g.context(),_=m.currentType===1?g.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,E=s(2,_,d);E.items=[];let p=null;do{const A=p||g.nextToken();switch(p=null,A.type){case 0:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(o(g,A.value||""));break;case 6:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(a(g,A.value||""));break;case 5:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(l(g,A.value||""));break;case 7:A.value==null&&r(g,Xe.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Fr(A)),E.items.push(c(g,A.value||""));break;case 8:const S=f(g);E.items.push(S.node),p=S.nextConsumeToken||null;break}}while(m.currentType!==14&&m.currentType!==1);const y=m.currentType===1?m.lastOffset:g.currentOffset(),w=m.currentType===1?m.lastEndLoc:g.currentPosition();return i(E,y,w),E}function k(g,m,_,d){const E=g.context();let p=d.items.length===0;const y=s(1,m,_);y.cases=[],y.cases.push(d);do{const w=v(g);p||(p=w.items.length===0),y.cases.push(w)}while(E.currentType!==14);return p&&r(g,Xe.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),i(y,g.currentOffset(),g.currentPosition()),y}function I(g){const m=g.context(),{offset:_,startLoc:d}=m,E=v(g);return m.currentType===14?E:k(g,_,d,E)}function T(g){const m=tY(g,Jt({},t)),_=m.context(),d=s(0,_.offset,_.startLoc);return e&&d.loc&&(d.loc.source=g),d.body=I(m),t.onCacheKey&&(d.cacheKey=t.onCacheKey(g)),_.currentType!==14&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),i(d,m.currentOffset(),m.currentPosition()),d}return{parse:T}}function Fr(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function oY(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function jb(t,e){for(let n=0;nBb(n)),t}function Bb(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;na;function c(T,g){a.code+=T}function u(T,g=!0){const m=g?s:"";c(i?m+" ".repeat(T):m)}function h(T=!0){const g=++a.indentLevel;T&&u(g)}function f(T=!0){const g=--a.indentLevel;T&&u(g)}function v(){u(a.indentLevel)}return{context:l,push:c,indent:h,deindent:f,newline:v,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function uY(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ua(t,e.key),e.modifier?(t.push(", "),Ua(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function hY(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const s=e.items.length;for(let i=0;i1){t.push(`${n("plural")}([`),t.indent(r());const s=e.cases.length;for(let i=0;i{const n=ge(e.mode)?e.mode:"normal",r=ge(e.filename)?e.filename:"message.intl",s=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` +`,o=e.needIndent?e.needIndent:n!=="arrow",a=t.helpers||[],l=cY(t,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${m0(a.map(h=>`${h}: _${h}`),", ")} } = ctx`),l.newline()),l.push("return "),Ua(l,t),l.deindent(o),l.push("}"),delete t.helpers;const{code:c,map:u}=l.context();return{ast:t,code:c,map:u?u.toJSON():void 0}};function mY(t,e={}){const n=Jt({},e),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=iY(n).parse(t);return r?(i&&lY(a),s&&Qo(a),{ast:a,code:""}):(aY(a,n),pY(a,n))}/*! * core-base v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function gY(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(h0().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fi=[];Fi[0]={w:[0],i:[3,0],"[":[4],o:[7]};Fi[1]={w:[1],".":[2],"[":[4],o:[7]};Fi[2]={w:[2],i:[3,0],0:[3,0]};Fi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Fi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Fi[5]={"'":[4,0],o:8,l:[5,0]};Fi[6]={'"':[4,0],o:8,l:[6,0]};const _Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function yY(t){return _Y.test(t)}function vY(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function EY(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function wY(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:yY(e)?vY(e):"*"+e}function TY(t){const e=[];let n=-1,r=0,s=0,i,o,a,l,c,u,h;const f=[];f[0]=()=>{o===void 0?o=a:o+=a},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,r=4,f[0]();else{if(s=0,o===void 0||(o=wY(o),o===!1))return!1;f[1]()}};function v(){const k=t[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,a="\\"+k,f[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&v())){if(l=EY(i),h=Fi[r],c=h[l]||h.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return e}}const jb=new Map;function bY(t,e){return $e(t)?t[e]:null}function IY(t,e){if(!$e(t))return null;let n=jb.get(e);if(n||(n=TY(e),n&&jb.set(e,n)),!n)return null;const r=n.length;let s=t,i=0;for(;it,SY=t=>"",CY="text",RY=t=>t.length===0?"":d0(t),AY=GG;function Bb(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function PY(t){const e=Qt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Qt(t.named.count)||Qt(t.named.n))?Qt(t.named.count)?t.named.count:Qt(t.named.n)?t.named.n:e:e}function OY(t,e){e.count||(e.count=t),e.n||(e.n=t)}function NY(t={}){const e=t.locale,n=PY(t),r=$e(t.pluralRules)&&ge(e)&&St(t.pluralRules[e])?t.pluralRules[e]:Bb,s=$e(t.pluralRules)&&ge(e)&&St(t.pluralRules[e])?Bb:void 0,i=g=>g[r(n,g.length,s)],o=t.list||[],a=g=>o[g],l=t.named||{};Qt(t.pluralIndex)&&OY(n,l);const c=g=>l[g];function u(g){const m=St(t.messages)?t.messages(g):$e(t.messages)?t.messages[g]:!1;return m||(t.parent?t.parent.message(g):SY)}const h=g=>t.modifiers?t.modifiers[g]:kY,f=Ye(t.processor)&&St(t.processor.normalize)?t.processor.normalize:RY,v=Ye(t.processor)&&St(t.processor.interpolate)?t.processor.interpolate:AY,k=Ye(t.processor)&&ge(t.processor.type)?t.processor.type:CY,T={list:a,named:c,plural:i,linked:(g,...m)=>{const[_,d]=m;let E="text",p="";m.length===1?$e(_)?(p=_.modifier||p,E=_.type||E):ge(_)&&(p=_||p):m.length===2&&(ge(_)&&(p=_||p),ge(d)&&(E=d||E));const y=u(g)(T),w=E==="vnode"&&Rt(y)&&p?y[0]:y;return p?h(p)(w,E):w},message:u,type:k,interpolate:v,normalize:f,values:Jt({},o,l)};return T}let Fc=null;function DY(t){Fc=t}function LY(t,e,n){Fc&&Fc.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const xY=MY("function:translate");function MY(t){return e=>Fc&&Fc.emit(t,e)}const FY={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function g0(t,e){return e.locale!=null?$b(e.locale):$b(t.locale)}let vm;function $b(t){return ge(t)?t:vm!=null&&t.resolvedOnce?vm:vm=t()}function VY(t,e,n){return[...new Set([n,...Rt(e)?e:$e(e)?Object.keys(e):ge(e)?[e]:[n]])]}function g1(t,e,n){const r=ge(n)?n:xf,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;Rt(o);)o=Hb(i,o,e);const a=Rt(e)||!Ye(e)?e:e.default?e.default:null;o=ge(a)?[a]:a,Rt(o)&&Hb(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Hb(t,e,n){let r=!0;for(let s=0;s`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function $Y(){return{upper:(t,e)=>e==="text"&&ge(t)?t.toUpperCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&ge(t)?t.toLowerCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&ge(t)?Gb(t):e==="vnode"&&$e(t)&&"__v_isVNode"in t?Gb(t.children):t}}let _1;function HY(t){_1=t}let y1;function WY(t){y1=t}let v1;function GY(t){v1=t}let E1=null;const Yb=t=>{E1=t},YY=()=>E1;let w1=null;const qb=t=>{w1=t},qY=()=>w1;let Kb=0;function KY(t={}){const e=St(t.onWarn)?t.onWarn:YG,n=ge(t.version)?t.version:BY,r=ge(t.locale)||St(t.locale)?t.locale:xf,s=St(r)?xf:r,i=Rt(t.fallbackLocale)||Ye(t.fallbackLocale)||ge(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s,o=Ye(t.messages)?t.messages:{[s]:{}},a=Ye(t.datetimeFormats)?t.datetimeFormats:{[s]:{}},l=Ye(t.numberFormats)?t.numberFormats:{[s]:{}},c=Jt({},t.modifiers||{},$Y()),u=t.pluralRules||{},h=St(t.missing)?t.missing:null,f=Ct(t.missingWarn)||Lf(t.missingWarn)?t.missingWarn:!0,v=Ct(t.fallbackWarn)||Lf(t.fallbackWarn)?t.fallbackWarn:!0,k=!!t.fallbackFormat,I=!!t.unresolving,T=St(t.postTranslation)?t.postTranslation:null,g=Ye(t.processor)?t.processor:null,m=Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter,d=St(t.messageCompiler)?t.messageCompiler:_1,E=St(t.messageResolver)?t.messageResolver:y1||bY,p=St(t.localeFallbacker)?t.localeFallbacker:v1||VY,y=$e(t.fallbackContext)?t.fallbackContext:void 0,w=t,A=$e(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,S=$e(w.__numberFormatters)?w.__numberFormatters:new Map,O=$e(w.__meta)?w.__meta:{};Kb++;const C={version:n,cid:Kb,locale:r,fallbackLocale:i,messages:o,modifiers:c,pluralRules:u,missing:h,missingWarn:f,fallbackWarn:v,fallbackFormat:k,unresolving:I,postTranslation:T,processor:g,warnHtmlMessage:m,escapeParameter:_,messageCompiler:d,messageResolver:E,localeFallbacker:p,fallbackContext:y,onWarn:e,__meta:O};return C.datetimeFormats=a,C.numberFormats=l,C.__datetimeFormatters=A,C.__numberFormatters=S,__INTLIFY_PROD_DEVTOOLS__&&LY(C,n,O),C}function _0(t,e,n,r,s){const{missing:i,onWarn:o}=t;if(i!==null){const a=i(t,n,e,s);return ge(a)?a:e}else return e}function Tl(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Em(t){return n=>zY(n,t)}function zY(t,e){const n=e.b||e.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return t.plural(s.reduce((i,o)=>[...i,zb(t,o)],[]))}else return zb(t,n)}function zb(t,e){const n=e.s||e.static;if(n)return t.type==="text"?n:t.normalize([n]);{const r=(e.i||e.items).reduce((s,i)=>[...s,h_(t,i)],[]);return t.normalize(r)}}function h_(t,e){const n=e.t||e.type;switch(n){case 3:const r=e;return r.v||r.value;case 9:const s=e;return s.v||s.value;case 4:const i=e;return t.interpolate(t.named(i.k||i.key));case 5:const o=e;return t.interpolate(t.list(o.i!=null?o.i:o.index));case 6:const a=e,l=a.m||a.modifier;return t.linked(h_(t,a.k||a.key),l?h_(t,l):void 0,t.type);case 7:const c=e;return c.v||c.value;case 8:const u=e;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const T1=Xe.__EXTEND_POINT__,uh=p0(T1),ro={INVALID_ARGUMENT:T1,INVALID_DATE_ARGUMENT:uh(),INVALID_ISO_DATE_ARGUMENT:uh(),NOT_SUPPORT_NON_STRING_MESSAGE:uh(),__EXTEND_POINT__:uh()};function na(t){return cp(t,null,void 0)}const QY=t=>t;let hh=Object.create(null);const ja=t=>$e(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function XY(t,e={}){let n=!1;const r=e.onError||KG;return e.onError=s=>{n=!0,r(s)},{...mY(t,e),detectError:n}}function JY(t,e){if(ge(t)){Ct(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||QY)(t),s=hh[r];if(s)return s;const{ast:i,detectError:o}=XY(t,{...e,location:!1,jit:!0}),a=Em(i);return o?a:hh[r]=a}else{const n=t.cacheKey;if(n){const r=hh[n];return r||(hh[n]=Em(t))}else return Em(t)}}const Qb=()=>"",gr=t=>St(t);function Xb(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=t,[l,c]=f_(...e),u=Ct(c.missingWarn)?c.missingWarn:t.missingWarn,h=Ct(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=Ct(c.escapeParameter)?c.escapeParameter:t.escapeParameter,v=!!c.resolvedMessage,k=ge(c.default)||Ct(c.default)?Ct(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",I=n||k!=="",T=g0(t,c);f&&ZY(c);let[g,m,_]=v?[l,T,a[T]||{}]:b1(t,l,T,o,h,u),d=g,E=l;if(!v&&!(ge(d)||ja(d)||gr(d))&&I&&(d=k,E=d),!v&&(!(ge(d)||ja(d)||gr(d))||!ge(m)))return s?up:l;let p=!1;const y=()=>{p=!0},w=gr(d)?d:I1(t,l,m,d,E,y);if(p)return d;const A=nq(t,m,_,c),S=NY(A),O=eq(t,w,S),C=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:ge(l)?l:gr(d)?d.key:"",locale:m||(gr(d)?d.locale:""),format:ge(d)?d:gr(d)?d.source:"",message:C};R.meta=Jt({},t.__meta,YY()||{}),xY(R)}return C}function ZY(t){Rt(t.list)?t.list=t.list.map(e=>ge(e)?Mb(e):e):$e(t.named)&&Object.keys(t.named).forEach(e=>{ge(t.named[e])&&(t.named[e]=Mb(t.named[e]))})}function b1(t,e,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=t,u=c(t,r,n);let h={},f,v=null;const k="translate";for(let I=0;Ir;return c.locale=n,c.key=e,c}const l=o(r,tq(t,n,s,r,a,i));return l.locale=n,l.key=e,l.source=r,l}function eq(t,e,n){return e(n)}function f_(...t){const[e,n,r]=t,s={};if(!ge(e)&&!Qt(e)&&!gr(e)&&!ja(e))throw na(ro.INVALID_ARGUMENT);const i=Qt(e)?String(e):(gr(e),e);return Qt(n)?s.plural=n:ge(n)?s.default=n:Ye(n)&&!lp(n)?s.named=n:Rt(n)&&(s.list=n),Qt(r)?s.plural=r:ge(r)?s.default=r:Ye(r)&&Jt(s,r),[i,s]}function tq(t,e,n,r,s,i){return{locale:e,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>BG(e,n,o)}}function nq(t,e,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=t,f={locale:e,modifiers:s,pluralRules:i,messages:v=>{let k=o(n,v);if(k==null&&u){const[,,I]=b1(u,v,e,a,l,c);k=o(I,v)}if(ge(k)||ja(k)){let I=!1;const g=I1(t,v,e,k,v,()=>{I=!0});return I?Qb:g}else return gr(k)?k:Qb}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Qt(r.plural)&&(f.pluralIndex=r.plural),f}function Jb(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:a}=t,[l,c,u,h]=d_(...e),f=Ct(u.missingWarn)?u.missingWarn:t.missingWarn;Ct(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const v=!!u.part,k=g0(t,u),I=o(t,s,k);if(!ge(l)||l==="")return new Intl.DateTimeFormat(k,h).format(c);let T={},g,m=null;const _="datetime format";for(let p=0;p{k1.includes(l)?o[l]=n[l]:i[l]=n[l]}),ge(r)?i.locale=r:Ye(r)&&(o=r),Ye(s)&&(o=s),[i.key||"",a,i,o]}function Zb(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function eI(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:a}=t,[l,c,u,h]=p_(...e),f=Ct(u.missingWarn)?u.missingWarn:t.missingWarn;Ct(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const v=!!u.part,k=g0(t,u),I=o(t,s,k);if(!ge(l)||l==="")return new Intl.NumberFormat(k,h).format(c);let T={},g,m=null;const _="number format";for(let p=0;p{S1.includes(l)?o[l]=n[l]:i[l]=n[l]}),ge(r)?i.locale=r:Ye(r)&&(o=r),Ye(s)&&(o=s),[i.key||"",a,i,o]}function tI(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}gY();/*! + */function gY(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(d0().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fi=[];Fi[0]={w:[0],i:[3,0],"[":[4],o:[7]};Fi[1]={w:[1],".":[2],"[":[4],o:[7]};Fi[2]={w:[2],i:[3,0],0:[3,0]};Fi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Fi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Fi[5]={"'":[4,0],o:8,l:[5,0]};Fi[6]={'"':[4,0],o:8,l:[6,0]};const _Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function yY(t){return _Y.test(t)}function vY(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function EY(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function wY(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:yY(e)?vY(e):"*"+e}function TY(t){const e=[];let n=-1,r=0,s=0,i,o,a,l,c,u,h;const f=[];f[0]=()=>{o===void 0?o=a:o+=a},f[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,r=4,f[0]();else{if(s=0,o===void 0||(o=wY(o),o===!1))return!1;f[1]()}};function v(){const k=t[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,a="\\"+k,f[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&v())){if(l=EY(i),h=Fi[r],c=h[l]||h.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return e}}const $b=new Map;function bY(t,e){return $e(t)?t[e]:null}function IY(t,e){if(!$e(t))return null;let n=$b.get(e);if(n||(n=TY(e),n&&$b.set(e,n)),!n)return null;const r=n.length;let s=t,i=0;for(;it,SY=t=>"",CY="text",RY=t=>t.length===0?"":m0(t),AY=GG;function Hb(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function PY(t){const e=Qt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Qt(t.named.count)||Qt(t.named.n))?Qt(t.named.count)?t.named.count:Qt(t.named.n)?t.named.n:e:e}function OY(t,e){e.count||(e.count=t),e.n||(e.n=t)}function NY(t={}){const e=t.locale,n=PY(t),r=$e(t.pluralRules)&&ge(e)&&St(t.pluralRules[e])?t.pluralRules[e]:Hb,s=$e(t.pluralRules)&&ge(e)&&St(t.pluralRules[e])?Hb:void 0,i=g=>g[r(n,g.length,s)],o=t.list||[],a=g=>o[g],l=t.named||{};Qt(t.pluralIndex)&&OY(n,l);const c=g=>l[g];function u(g){const m=St(t.messages)?t.messages(g):$e(t.messages)?t.messages[g]:!1;return m||(t.parent?t.parent.message(g):SY)}const h=g=>t.modifiers?t.modifiers[g]:kY,f=Ye(t.processor)&&St(t.processor.normalize)?t.processor.normalize:RY,v=Ye(t.processor)&&St(t.processor.interpolate)?t.processor.interpolate:AY,k=Ye(t.processor)&&ge(t.processor.type)?t.processor.type:CY,T={list:a,named:c,plural:i,linked:(g,...m)=>{const[_,d]=m;let E="text",p="";m.length===1?$e(_)?(p=_.modifier||p,E=_.type||E):ge(_)&&(p=_||p):m.length===2&&(ge(_)&&(p=_||p),ge(d)&&(E=d||E));const y=u(g)(T),w=E==="vnode"&&Rt(y)&&p?y[0]:y;return p?h(p)(w,E):w},message:u,type:k,interpolate:v,normalize:f,values:Jt({},o,l)};return T}let Fc=null;function DY(t){Fc=t}function LY(t,e,n){Fc&&Fc.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const MY=xY("function:translate");function xY(t){return e=>Fc&&Fc.emit(t,e)}const FY={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function y0(t,e){return e.locale!=null?Wb(e.locale):Wb(t.locale)}let vm;function Wb(t){return ge(t)?t:vm!=null&&t.resolvedOnce?vm:vm=t()}function VY(t,e,n){return[...new Set([n,...Rt(e)?e:$e(e)?Object.keys(e):ge(e)?[e]:[n]])]}function _1(t,e,n){const r=ge(n)?n:Ff,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;Rt(o);)o=Gb(i,o,e);const a=Rt(e)||!Ye(e)?e:e.default?e.default:null;o=ge(a)?[a]:a,Rt(o)&&Gb(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Gb(t,e,n){let r=!0;for(let s=0;s`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function $Y(){return{upper:(t,e)=>e==="text"&&ge(t)?t.toUpperCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&ge(t)?t.toLowerCase():e==="vnode"&&$e(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&ge(t)?qb(t):e==="vnode"&&$e(t)&&"__v_isVNode"in t?qb(t.children):t}}let y1;function HY(t){y1=t}let v1;function WY(t){v1=t}let E1;function GY(t){E1=t}let w1=null;const Kb=t=>{w1=t},YY=()=>w1;let T1=null;const zb=t=>{T1=t},qY=()=>T1;let Qb=0;function KY(t={}){const e=St(t.onWarn)?t.onWarn:YG,n=ge(t.version)?t.version:BY,r=ge(t.locale)||St(t.locale)?t.locale:Ff,s=St(r)?Ff:r,i=Rt(t.fallbackLocale)||Ye(t.fallbackLocale)||ge(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s,o=Ye(t.messages)?t.messages:{[s]:{}},a=Ye(t.datetimeFormats)?t.datetimeFormats:{[s]:{}},l=Ye(t.numberFormats)?t.numberFormats:{[s]:{}},c=Jt({},t.modifiers||{},$Y()),u=t.pluralRules||{},h=St(t.missing)?t.missing:null,f=Ct(t.missingWarn)||xf(t.missingWarn)?t.missingWarn:!0,v=Ct(t.fallbackWarn)||xf(t.fallbackWarn)?t.fallbackWarn:!0,k=!!t.fallbackFormat,I=!!t.unresolving,T=St(t.postTranslation)?t.postTranslation:null,g=Ye(t.processor)?t.processor:null,m=Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter,d=St(t.messageCompiler)?t.messageCompiler:y1,E=St(t.messageResolver)?t.messageResolver:v1||bY,p=St(t.localeFallbacker)?t.localeFallbacker:E1||VY,y=$e(t.fallbackContext)?t.fallbackContext:void 0,w=t,A=$e(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,S=$e(w.__numberFormatters)?w.__numberFormatters:new Map,O=$e(w.__meta)?w.__meta:{};Qb++;const C={version:n,cid:Qb,locale:r,fallbackLocale:i,messages:o,modifiers:c,pluralRules:u,missing:h,missingWarn:f,fallbackWarn:v,fallbackFormat:k,unresolving:I,postTranslation:T,processor:g,warnHtmlMessage:m,escapeParameter:_,messageCompiler:d,messageResolver:E,localeFallbacker:p,fallbackContext:y,onWarn:e,__meta:O};return C.datetimeFormats=a,C.numberFormats=l,C.__datetimeFormatters=A,C.__numberFormatters=S,__INTLIFY_PROD_DEVTOOLS__&&LY(C,n,O),C}function v0(t,e,n,r,s){const{missing:i,onWarn:o}=t;if(i!==null){const a=i(t,n,e,s);return ge(a)?a:e}else return e}function Tl(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Em(t){return n=>zY(n,t)}function zY(t,e){const n=e.b||e.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return t.plural(s.reduce((i,o)=>[...i,Xb(t,o)],[]))}else return Xb(t,n)}function Xb(t,e){const n=e.s||e.static;if(n)return t.type==="text"?n:t.normalize([n]);{const r=(e.i||e.items).reduce((s,i)=>[...s,h_(t,i)],[]);return t.normalize(r)}}function h_(t,e){const n=e.t||e.type;switch(n){case 3:const r=e;return r.v||r.value;case 9:const s=e;return s.v||s.value;case 4:const i=e;return t.interpolate(t.named(i.k||i.key));case 5:const o=e;return t.interpolate(t.list(o.i!=null?o.i:o.index));case 6:const a=e,l=a.m||a.modifier;return t.linked(h_(t,a.k||a.key),l?h_(t,l):void 0,t.type);case 7:const c=e;return c.v||c.value;case 8:const u=e;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const b1=Xe.__EXTEND_POINT__,fh=g0(b1),ro={INVALID_ARGUMENT:b1,INVALID_DATE_ARGUMENT:fh(),INVALID_ISO_DATE_ARGUMENT:fh(),NOT_SUPPORT_NON_STRING_MESSAGE:fh(),__EXTEND_POINT__:fh()};function na(t){return cp(t,null,void 0)}const QY=t=>t;let dh=Object.create(null);const ja=t=>$e(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function XY(t,e={}){let n=!1;const r=e.onError||KG;return e.onError=s=>{n=!0,r(s)},{...mY(t,e),detectError:n}}function JY(t,e){if(ge(t)){Ct(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||QY)(t),s=dh[r];if(s)return s;const{ast:i,detectError:o}=XY(t,{...e,location:!1,jit:!0}),a=Em(i);return o?a:dh[r]=a}else{const n=t.cacheKey;if(n){const r=dh[n];return r||(dh[n]=Em(t))}else return Em(t)}}const Jb=()=>"",gr=t=>St(t);function Zb(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=t,[l,c]=f_(...e),u=Ct(c.missingWarn)?c.missingWarn:t.missingWarn,h=Ct(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=Ct(c.escapeParameter)?c.escapeParameter:t.escapeParameter,v=!!c.resolvedMessage,k=ge(c.default)||Ct(c.default)?Ct(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",I=n||k!=="",T=y0(t,c);f&&ZY(c);let[g,m,_]=v?[l,T,a[T]||{}]:I1(t,l,T,o,h,u),d=g,E=l;if(!v&&!(ge(d)||ja(d)||gr(d))&&I&&(d=k,E=d),!v&&(!(ge(d)||ja(d)||gr(d))||!ge(m)))return s?up:l;let p=!1;const y=()=>{p=!0},w=gr(d)?d:k1(t,l,m,d,E,y);if(p)return d;const A=nq(t,m,_,c),S=NY(A),O=eq(t,w,S),C=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:ge(l)?l:gr(d)?d.key:"",locale:m||(gr(d)?d.locale:""),format:ge(d)?d:gr(d)?d.source:"",message:C};R.meta=Jt({},t.__meta,YY()||{}),MY(R)}return C}function ZY(t){Rt(t.list)?t.list=t.list.map(e=>ge(e)?Vb(e):e):$e(t.named)&&Object.keys(t.named).forEach(e=>{ge(t.named[e])&&(t.named[e]=Vb(t.named[e]))})}function I1(t,e,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=t,u=c(t,r,n);let h={},f,v=null;const k="translate";for(let I=0;Ir;return c.locale=n,c.key=e,c}const l=o(r,tq(t,n,s,r,a,i));return l.locale=n,l.key=e,l.source=r,l}function eq(t,e,n){return e(n)}function f_(...t){const[e,n,r]=t,s={};if(!ge(e)&&!Qt(e)&&!gr(e)&&!ja(e))throw na(ro.INVALID_ARGUMENT);const i=Qt(e)?String(e):(gr(e),e);return Qt(n)?s.plural=n:ge(n)?s.default=n:Ye(n)&&!lp(n)?s.named=n:Rt(n)&&(s.list=n),Qt(r)?s.plural=r:ge(r)?s.default=r:Ye(r)&&Jt(s,r),[i,s]}function tq(t,e,n,r,s,i){return{locale:e,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>BG(e,n,o)}}function nq(t,e,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=t,f={locale:e,modifiers:s,pluralRules:i,messages:v=>{let k=o(n,v);if(k==null&&u){const[,,I]=I1(u,v,e,a,l,c);k=o(I,v)}if(ge(k)||ja(k)){let I=!1;const g=k1(t,v,e,k,v,()=>{I=!0});return I?Jb:g}else return gr(k)?k:Jb}};return t.processor&&(f.processor=t.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),Qt(r.plural)&&(f.pluralIndex=r.plural),f}function eI(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:a}=t,[l,c,u,h]=d_(...e),f=Ct(u.missingWarn)?u.missingWarn:t.missingWarn;Ct(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const v=!!u.part,k=y0(t,u),I=o(t,s,k);if(!ge(l)||l==="")return new Intl.DateTimeFormat(k,h).format(c);let T={},g,m=null;const _="datetime format";for(let p=0;p{S1.includes(l)?o[l]=n[l]:i[l]=n[l]}),ge(r)?i.locale=r:Ye(r)&&(o=r),Ye(s)&&(o=s),[i.key||"",a,i,o]}function tI(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function nI(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:a}=t,[l,c,u,h]=p_(...e),f=Ct(u.missingWarn)?u.missingWarn:t.missingWarn;Ct(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const v=!!u.part,k=y0(t,u),I=o(t,s,k);if(!ge(l)||l==="")return new Intl.NumberFormat(k,h).format(c);let T={},g,m=null;const _="number format";for(let p=0;p{C1.includes(l)?o[l]=n[l]:i[l]=n[l]}),ge(r)?i.locale=r:Ye(r)&&(o=r),Ye(s)&&(o=s),[i.key||"",a,i,o]}function rI(t,e,n){const r=t;for(const s in n){const i=`${e}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}gY();/*! * vue-i18n v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const rq="9.5.0";function sq(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(h0().__INTLIFY_PROD_DEVTOOLS__=!1)}const C1=FY.__EXTEND_POINT__,ni=p0(C1);ni(),ni(),ni(),ni(),ni(),ni(),ni(),ni();const R1=ro.__EXTEND_POINT__,Mn=p0(R1),Hn={UNEXPECTED_RETURN_TYPE:R1,INVALID_ARGUMENT:Mn(),MUST_BE_CALL_SETUP_TOP:Mn(),NOT_INSTALLED:Mn(),NOT_AVAILABLE_IN_LEGACY_MODE:Mn(),REQUIRED_VALUE:Mn(),INVALID_VALUE:Mn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Mn(),NOT_INSTALLED_WITH_PROVIDE:Mn(),UNEXPECTED_ERROR:Mn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Mn(),BRIDGE_SUPPORT_VUE_2_ONLY:Mn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Mn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Mn(),__EXTEND_POINT__:Mn()};function er(t,...e){return cp(t,null,void 0)}const m_=cs("__translateVNode"),g_=cs("__datetimeParts"),__=cs("__numberParts"),Mf=cs("__enableEmitter"),nI=cs("__disableEmitter"),iq=cs("__setPluralRules"),oq=cs("__injectWithOption"),y_=cs("__dispose");function v_(t){if(!$e(t))return t;for(const e in t)if(f0(t,e))if(!e.includes("."))$e(t[e])&&v_(t[e]);else{const n=e.split("."),r=n.length-1;let s=t,i=!1;for(let o=0;o{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},ec(c,o[l])):ec(c,o)}else ge(a)&&ec(JSON.parse(a),o)}),s==null&&i)for(const a in o)f0(o,a)&&v_(o[a]);return o}const fh=t=>!$e(t)||Rt(t);function ec(t,e){if(fh(t)||fh(e))throw er(Hn.INVALID_VALUE);for(const n in t)f0(t,n)&&(fh(t[n])||fh(e[n])?e[n]=t[n]:ec(t[n],e[n]))}function P1(t){return t.type}function aq(t,e,n){let r=$e(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=A1(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if($e(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if($e(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function rI(t){return It(ki,null,t,0)}const sI="__INTLIFY_META__";let iI=0;function oI(t){return(e,n,r,s)=>t(n,r,Or()||void 0,s)}const lq=()=>{const t=Or();let e=null;return t&&(e=P1(t)[sI])?{[sI]:e}:null};function O1(t={},e){const{__root:n,__injectWithOption:r}=t,s=n===void 0;let i=Ct(t.inheritLocale)?t.inheritLocale:!0;const o=Ze(n&&i?n.locale.value:ge(t.locale)?t.locale:xf),a=Ze(n&&i?n.fallbackLocale.value:ge(t.fallbackLocale)||Rt(t.fallbackLocale)||Ye(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o.value),l=Ze(A1(o.value,t)),c=Ze(Ye(t.datetimeFormats)?t.datetimeFormats:{[o.value]:{}}),u=Ze(Ye(t.numberFormats)?t.numberFormats:{[o.value]:{}});let h=n?n.missingWarn:Ct(t.missingWarn)||Lf(t.missingWarn)?t.missingWarn:!0,f=n?n.fallbackWarn:Ct(t.fallbackWarn)||Lf(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Ct(t.fallbackRoot)?t.fallbackRoot:!0,k=!!t.fallbackFormat,I=St(t.missing)?t.missing:null,T=St(t.missing)?oI(t.missing):null,g=St(t.postTranslation)?t.postTranslation:null,m=n?n.warnHtmlMessage:Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const d=n?n.modifiers:Ye(t.modifiers)?t.modifiers:{};let E=t.pluralRules||n&&n.pluralRules,p;p=(()=>{s&&qb(null);const W={version:rq,locale:o.value,fallbackLocale:a.value,messages:l.value,modifiers:d,pluralRules:E,missing:T===null?void 0:T,missingWarn:h,fallbackWarn:f,fallbackFormat:k,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:m,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=c.value,W.numberFormats=u.value,W.__datetimeFormatters=Ye(p)?p.__datetimeFormatters:void 0,W.__numberFormatters=Ye(p)?p.__numberFormatters:void 0;const K=KY(W);return s&&qb(K),K})(),Tl(p,o.value,a.value);function w(){return[o.value,a.value,l.value,c.value,u.value]}const A=lt({get:()=>o.value,set:W=>{o.value=W,p.locale=o.value}}),S=lt({get:()=>a.value,set:W=>{a.value=W,p.fallbackLocale=a.value,Tl(p,o.value,W)}}),O=lt(()=>l.value),C=lt(()=>c.value),R=lt(()=>u.value);function L(){return St(g)?g:null}function G(W){g=W,p.postTranslation=W}function U(){return I}function B(W){W!==null&&(T=oI(W)),I=W,p.missing=T}const Y=(W,K,de,he,Te,Ee)=>{w();let De;try{__INTLIFY_PROD_DEVTOOLS__&&Yb(lq()),s||(p.fallbackContext=n?qY():void 0),De=W(p)}finally{__INTLIFY_PROD_DEVTOOLS__&&Yb(null),s||(p.fallbackContext=void 0)}if(Qt(De)&&De===up){const[Oe,Ht]=K();return n&&v?he(n):Te(Oe)}else{if(Ee(De))return De;throw er(Hn.UNEXPECTED_RETURN_TYPE)}};function F(...W){return Y(K=>Reflect.apply(Xb,null,[K,...W]),()=>f_(...W),"translate",K=>Reflect.apply(K.t,K,[...W]),K=>K,K=>ge(K))}function j(...W){const[K,de,he]=W;if(he&&!$e(he))throw er(Hn.INVALID_ARGUMENT);return F(K,de,Jt({resolvedMessage:!0},he||{}))}function Z(...W){return Y(K=>Reflect.apply(Jb,null,[K,...W]),()=>d_(...W),"datetime format",K=>Reflect.apply(K.d,K,[...W]),()=>Wb,K=>ge(K))}function J(...W){return Y(K=>Reflect.apply(eI,null,[K,...W]),()=>p_(...W),"number format",K=>Reflect.apply(K.n,K,[...W]),()=>Wb,K=>ge(K))}function se(W){return W.map(K=>ge(K)||Qt(K)||Ct(K)?rI(String(K)):K)}const ie={normalize:se,interpolate:W=>W,type:"vnode"};function oe(...W){return Y(K=>{let de;const he=K;try{he.processor=ie,de=Reflect.apply(Xb,null,[he,...W])}finally{he.processor=null}return de},()=>f_(...W),"translate",K=>K[m_](...W),K=>[rI(K)],K=>Rt(K))}function N(...W){return Y(K=>Reflect.apply(eI,null,[K,...W]),()=>p_(...W),"number format",K=>K[__](...W),()=>[],K=>ge(K)||Rt(K))}function x(...W){return Y(K=>Reflect.apply(Jb,null,[K,...W]),()=>d_(...W),"datetime format",K=>K[g_](...W),()=>[],K=>ge(K)||Rt(K))}function V(W){E=W,p.pluralRules=E}function z(W,K){if(!W)return!1;const de=ge(K)?K:o.value,he=b(de);return p.messageResolver(he,W)!==null}function H(W){let K=null;const de=g1(p,a.value,o.value);for(let he=0;he{i&&(o.value=W,p.locale=W,Tl(p,o.value,a.value))}),Vt(n.fallbackLocale,W=>{i&&(a.value=W,p.fallbackLocale=W,Tl(p,o.value,a.value))}));const re={id:iI,locale:A,fallbackLocale:S,get inheritLocale(){return i},set inheritLocale(W){i=W,W&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Tl(p,o.value,a.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return d},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(W){h=W,p.missingWarn=h},get fallbackWarn(){return f},set fallbackWarn(W){f=W,p.fallbackWarn=f},get fallbackRoot(){return v},set fallbackRoot(W){v=W},get fallbackFormat(){return k},set fallbackFormat(W){k=W,p.fallbackFormat=k},get warnHtmlMessage(){return m},set warnHtmlMessage(W){m=W,p.warnHtmlMessage=W},get escapeParameter(){return _},set escapeParameter(W){_=W,p.escapeParameter=W},t:F,getLocaleMessage:b,setLocaleMessage:P,mergeLocaleMessage:M,getPostTranslationHandler:L,setPostTranslationHandler:G,getMissingHandler:U,setMissingHandler:B,[iq]:V};return re.datetimeFormats=C,re.numberFormats=R,re.rt=j,re.te=z,re.tm=D,re.d=Z,re.n=J,re.getDateTimeFormat=$,re.setDateTimeFormat=q,re.mergeDateTimeFormat=X,re.getNumberFormat=te,re.setNumberFormat=ne,re.mergeNumberFormat=Q,re[oq]=r,re[m_]=oe,re[g_]=x,re[__]=N,re}const y0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function cq({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,s)=>[...r,...s.type===rn?s.children:[s]],[]):e.reduce((n,r)=>{const s=t[r];return s&&(n[r]=s()),n},{})}function N1(t){return rn}const uq=ur({name:"i18n-t",props:Jt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Qt(t)||!isNaN(t)}},y0),setup(t,e){const{slots:n,attrs:r}=e,s=t.i18n||ol({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(h=>h!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=ge(t.plural)?+t.plural:t.plural);const a=cq(e,i),l=s[m_](t.keypath,a,o),c=Jt({},r),u=ge(t.tag)||$e(t.tag)?t.tag:N1();return On(u,c,l)}}}),aI=uq;function hq(t){return Rt(t)&&!ge(t[0])}function D1(t,e,n,r){const{slots:s,attrs:i}=e;return()=>{const o={part:!0};let a={};t.locale&&(o.locale=t.locale),ge(t.format)?o.key=t.format:$e(t.format)&&(ge(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((f,v)=>n.includes(v)?Jt({},f,{[v]:t.format[v]}):f,{}));const l=r(t.value,o,a);let c=[o.key];Rt(l)?c=l.map((f,v)=>{const k=s[f.type],I=k?k({[f.type]:f.value,index:v,parts:l}):[f.value];return hq(I)&&(I[0].key=`${f.type}-${v}`),I}):ge(l)&&(c=[l]);const u=Jt({},i),h=ge(t.tag)||$e(t.tag)?t.tag:N1();return On(h,u,c)}}const fq=ur({name:"i18n-n",props:Jt({value:{type:Number,required:!0},format:{type:[String,Object]}},y0),setup(t,e){const n=t.i18n||ol({useScope:"parent",__useComponent:!0});return D1(t,e,S1,(...r)=>n[__](...r))}}),lI=fq,dq=ur({name:"i18n-d",props:Jt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},y0),setup(t,e){const n=t.i18n||ol({useScope:"parent",__useComponent:!0});return D1(t,e,k1,(...r)=>n[g_](...r))}}),cI=dq;function pq(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function mq(t){const e=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw er(Hn.UNEXPECTED_ERROR);const u=pq(t,a.$),h=uI(c);return[Reflect.apply(u.t,u,[...hI(h)]),u]};return{created:(o,a)=>{const[l,c]=e(a);c_&&t.global===c&&(o.__i18nWatcher=Vt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{c_&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=uI(a);o.textContent=Reflect.apply(l.t,l,[...hI(c)])}},getSSRProps:o=>{const[a]=e(o);return{textContent:a}}}}function uI(t){if(ge(t))return{path:t};if(Ye(t)){if(!("path"in t))throw er(Hn.REQUIRED_VALUE,"path");return t}else throw er(Hn.INVALID_VALUE)}function hI(t){const{path:e,locale:n,args:r,choice:s,plural:i}=t,o={},a=r||{};return ge(n)&&(o.locale=n),Qt(s)&&(o.plural=s),Qt(i)&&(o.plural=i),[e,a,o]}function gq(t,e,...n){const r=Ye(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Ct(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":aI.name,"I18nT"].forEach(o=>t.component(o,aI)),[lI.name,"I18nN"].forEach(o=>t.component(o,lI)),[cI.name,"I18nD"].forEach(o=>t.component(o,cI))),t.directive("t",mq(e))}const wm={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},_q={"vue-i18n-resource-inspector":"Search for scopes ..."},yq={"vue-i18n-timeline":16764185},L1="vue-i18n: composer properties";let E_;async function vq(t,e){return new Promise((n,r)=>{try{zd({id:"vue-devtools-plugin-vue-i18n",label:wm["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[L1],app:t},s=>{E_=s,s.on.visitComponentTree(({componentInstance:o,treeNode:a})=>{Eq(o,a,e)}),s.on.inspectComponent(({componentInstance:o,instanceData:a})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&a&&(e.mode==="legacy"?o.vnode.el.__VUE_I18N__!==e.global.__composer&&fI(a,o.vnode.el.__VUE_I18N__):fI(a,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:wm["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:_q["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&kq(o,e)});const i=new Map;s.on.getInspectorState(async o=>{if(o.app===t&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Cq(o,e),o.nodeId==="global"){if(!i.has(o.app)){const[a]=await s.getComponentInstances(o.app);i.set(o.app,a)}s.highlightElement(i.get(o.app))}else{const a=Sq(o.nodeId,e);a&&s.highlightElement(a)}}),s.on.editInspectorState(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&Aq(o,e)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:wm["vue-i18n-timeline"],color:yq["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function x1(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function Eq(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const s={label:`i18n (${x1(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(s)}}function fI(t,e){const n=L1;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:v0(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function v0(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];St(r)&&"source"in r?e[n]=Iq(r):ja(r)&&r.loc&&r.loc.source?e[n]=r.loc.source:$e(r)?e[n]=v0(r):e[n]=r}),e}const wq={"<":"<",">":">",'"':""","&":"&"};function Tq(t){return t.replace(/[<>"&]/g,bq)}function bq(t){return wq[t]||t}function Iq(t){return{_custom:{type:"function",display:`ƒ ${t.source?`("${Tq(t.source)}")`:"(?)"}`}}}function kq(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,s]of e.__instances){const i=e.mode==="composition"?s:s.__composer;n!==i&&t.rootNodes.push({id:i.id.toString(),label:`${x1(r)} Scope`})}}function Sq(t,e){let n=null;if(t!=="global"){for(const[r,s]of e.__instances.entries())if(s.id.toString()===t){n=r;break}}return n}function M1(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function Cq(t,e){const n=M1(t.nodeId,e);return n&&(t.state=Rq(n)),null}function Rq(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const s="Locale messages info",i=[{type:s,key:"messages",editable:!1,value:v0(t.messages.value)}];e[s]=i;{const o="Datetime formats info",a=[{type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[o]=a;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[l]=c}return e}function w_(t,e){if(E_){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),E_.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function Aq(t,e){const n=M1(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&ge(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(ge(t.state.value)||Rt(t.state.value)||$e(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&Ct(t.state.value)&&(n.inheritLocale=t.state.value)}}const Pq=cs("global-vue-i18n");function Oq(t={},e){const n=Ct(t.globalInjection)?t.globalInjection:!0,r=!0,s=new Map,[i,o]=Nq(t),a=cs("");function l(h){return s.get(h)||null}function c(h,f){s.set(h,f)}function u(h){s.delete(h)}{const h={get mode(){return"composition"},get allowComposition(){return r},async install(f,...v){if(f.__VUE_I18N__=h,f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,h),Ye(v[0])){const T=v[0];h.__composerExtend=T.__composerExtend,h.__vueI18nExtend=T.__vueI18nExtend}let k=null;n&&(k=jq(f,h.global)),gq(f,h,...v);const I=f.unmount;f.unmount=()=>{k&&k(),h.dispose(),I()};{if(!await vq(f,h))throw er(Hn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=m1();{const m=o;m[Mf]&&m[Mf](g)}g.on("*",w_)}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:u};return h}}function ol(t={}){const e=Or();if(e==null)throw er(Hn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw er(Hn.NOT_INSTALLED);const n=Dq(e),r=xq(n),s=P1(e),i=Lq(t,s);if(i==="global")return aq(r,t,s),r;if(i==="parent"){let l=Mq(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(e);if(a==null){const l=Jt({},t);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=O1(l),o.__composerExtend&&(a[y_]=o.__composerExtend(a)),Vq(o,e,a),o.__setInstance(e,a)}return a}function Nq(t,e,n){const r=Wc();{const s=r.run(()=>O1(t));if(s==null)throw er(Hn.UNEXPECTED_ERROR);return[r,s]}}function Dq(t){{const e=Ut(t.isCE?Pq:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw er(t.isCE?Hn.NOT_INSTALLED_WITH_PROVIDE:Hn.UNEXPECTED_ERROR);return e}}function Lq(t,e){return lp(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function xq(t){return t.mode==="composition"?t.global:t.global.__composer}function Mq(t,e,n=!1){let r=null;const s=e.root;let i=Fq(e,n);for(;i!=null;){const o=t;if(t.mode==="composition"&&(r=o.__getInstance(i)),r!=null||s===i)break;i=i.parent}return r}function Fq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function Vq(t,e,n){let r=null;od(()=>{if(e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=m1();const s=n;s[Mf]&&s[Mf](r),r.on("*",w_)}},e),hy(()=>{const s=n;e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",w_),s[nI]&&s[nI](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=s[y_];i&&(i(),delete s[y_])},e)}const Uq=["locale","fallbackLocale","availableLocales"],dI=["t","rt","d","n","tm","te"];function jq(t,e){const n=Object.create(null);return Uq.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i)throw er(Hn.UNEXPECTED_ERROR);const o=rt(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),t.config.globalProperties.$i18n=n,dI.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i||!i.value)throw er(Hn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,i)}),()=>{delete t.config.globalProperties.$i18n,dI.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}sq();HY(JY);WY(IY);GY(g1);if(__INTLIFY_PROD_DEVTOOLS__){const t=h0();t.__INTLIFY__=!0,DY(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const F1={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},Bq="",$q=F1.PREFIX_EXCEPT_DEFAULT,Hq=!1,Wq="___",Gq="default",Yq="ltr",qq="",V1="";/*! + */const rq="9.5.0";function sq(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(d0().__INTLIFY_PROD_DEVTOOLS__=!1)}const R1=FY.__EXTEND_POINT__,ni=g0(R1);ni(),ni(),ni(),ni(),ni(),ni(),ni(),ni();const A1=ro.__EXTEND_POINT__,Vn=g0(A1),Wn={UNEXPECTED_RETURN_TYPE:A1,INVALID_ARGUMENT:Vn(),MUST_BE_CALL_SETUP_TOP:Vn(),NOT_INSTALLED:Vn(),NOT_AVAILABLE_IN_LEGACY_MODE:Vn(),REQUIRED_VALUE:Vn(),INVALID_VALUE:Vn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Vn(),NOT_INSTALLED_WITH_PROVIDE:Vn(),UNEXPECTED_ERROR:Vn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Vn(),BRIDGE_SUPPORT_VUE_2_ONLY:Vn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Vn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Vn(),__EXTEND_POINT__:Vn()};function er(t,...e){return cp(t,null,void 0)}const m_=us("__translateVNode"),g_=us("__datetimeParts"),__=us("__numberParts"),Vf=us("__enableEmitter"),sI=us("__disableEmitter"),iq=us("__setPluralRules"),oq=us("__injectWithOption"),y_=us("__dispose");function v_(t){if(!$e(t))return t;for(const e in t)if(p0(t,e))if(!e.includes("."))$e(t[e])&&v_(t[e]);else{const n=e.split("."),r=n.length-1;let s=t,i=!1;for(let o=0;o{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},ec(c,o[l])):ec(c,o)}else ge(a)&&ec(JSON.parse(a),o)}),s==null&&i)for(const a in o)p0(o,a)&&v_(o[a]);return o}const ph=t=>!$e(t)||Rt(t);function ec(t,e){if(ph(t)||ph(e))throw er(Wn.INVALID_VALUE);for(const n in t)p0(t,n)&&(ph(t[n])||ph(e[n])?e[n]=t[n]:ec(t[n],e[n]))}function O1(t){return t.type}function aq(t,e,n){let r=$e(e.messages)?e.messages:{};"__i18nGlobal"in n&&(r=P1(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if($e(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if($e(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function iI(t){return It(ki,null,t,0)}const oI="__INTLIFY_META__";let aI=0;function lI(t){return(e,n,r,s)=>t(n,r,Or()||void 0,s)}const lq=()=>{const t=Or();let e=null;return t&&(e=O1(t)[oI])?{[oI]:e}:null};function N1(t={},e){const{__root:n,__injectWithOption:r}=t,s=n===void 0;let i=Ct(t.inheritLocale)?t.inheritLocale:!0;const o=Ze(n&&i?n.locale.value:ge(t.locale)?t.locale:Ff),a=Ze(n&&i?n.fallbackLocale.value:ge(t.fallbackLocale)||Rt(t.fallbackLocale)||Ye(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o.value),l=Ze(P1(o.value,t)),c=Ze(Ye(t.datetimeFormats)?t.datetimeFormats:{[o.value]:{}}),u=Ze(Ye(t.numberFormats)?t.numberFormats:{[o.value]:{}});let h=n?n.missingWarn:Ct(t.missingWarn)||xf(t.missingWarn)?t.missingWarn:!0,f=n?n.fallbackWarn:Ct(t.fallbackWarn)||xf(t.fallbackWarn)?t.fallbackWarn:!0,v=n?n.fallbackRoot:Ct(t.fallbackRoot)?t.fallbackRoot:!0,k=!!t.fallbackFormat,I=St(t.missing)?t.missing:null,T=St(t.missing)?lI(t.missing):null,g=St(t.postTranslation)?t.postTranslation:null,m=n?n.warnHtmlMessage:Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const d=n?n.modifiers:Ye(t.modifiers)?t.modifiers:{};let E=t.pluralRules||n&&n.pluralRules,p;p=(()=>{s&&zb(null);const W={version:rq,locale:o.value,fallbackLocale:a.value,messages:l.value,modifiers:d,pluralRules:E,missing:T===null?void 0:T,missingWarn:h,fallbackWarn:f,fallbackFormat:k,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:m,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=c.value,W.numberFormats=u.value,W.__datetimeFormatters=Ye(p)?p.__datetimeFormatters:void 0,W.__numberFormatters=Ye(p)?p.__numberFormatters:void 0;const K=KY(W);return s&&zb(K),K})(),Tl(p,o.value,a.value);function w(){return[o.value,a.value,l.value,c.value,u.value]}const A=lt({get:()=>o.value,set:W=>{o.value=W,p.locale=o.value}}),S=lt({get:()=>a.value,set:W=>{a.value=W,p.fallbackLocale=a.value,Tl(p,o.value,W)}}),O=lt(()=>l.value),C=lt(()=>c.value),R=lt(()=>u.value);function L(){return St(g)?g:null}function G(W){g=W,p.postTranslation=W}function U(){return I}function B(W){W!==null&&(T=lI(W)),I=W,p.missing=T}const Y=(W,K,de,he,Te,Ee)=>{w();let De;try{__INTLIFY_PROD_DEVTOOLS__&&Kb(lq()),s||(p.fallbackContext=n?qY():void 0),De=W(p)}finally{__INTLIFY_PROD_DEVTOOLS__&&Kb(null),s||(p.fallbackContext=void 0)}if(Qt(De)&&De===up){const[Oe,Ht]=K();return n&&v?he(n):Te(Oe)}else{if(Ee(De))return De;throw er(Wn.UNEXPECTED_RETURN_TYPE)}};function F(...W){return Y(K=>Reflect.apply(Zb,null,[K,...W]),()=>f_(...W),"translate",K=>Reflect.apply(K.t,K,[...W]),K=>K,K=>ge(K))}function j(...W){const[K,de,he]=W;if(he&&!$e(he))throw er(Wn.INVALID_ARGUMENT);return F(K,de,Jt({resolvedMessage:!0},he||{}))}function Z(...W){return Y(K=>Reflect.apply(eI,null,[K,...W]),()=>d_(...W),"datetime format",K=>Reflect.apply(K.d,K,[...W]),()=>Yb,K=>ge(K))}function J(...W){return Y(K=>Reflect.apply(nI,null,[K,...W]),()=>p_(...W),"number format",K=>Reflect.apply(K.n,K,[...W]),()=>Yb,K=>ge(K))}function se(W){return W.map(K=>ge(K)||Qt(K)||Ct(K)?iI(String(K)):K)}const ie={normalize:se,interpolate:W=>W,type:"vnode"};function oe(...W){return Y(K=>{let de;const he=K;try{he.processor=ie,de=Reflect.apply(Zb,null,[he,...W])}finally{he.processor=null}return de},()=>f_(...W),"translate",K=>K[m_](...W),K=>[iI(K)],K=>Rt(K))}function N(...W){return Y(K=>Reflect.apply(nI,null,[K,...W]),()=>p_(...W),"number format",K=>K[__](...W),()=>[],K=>ge(K)||Rt(K))}function M(...W){return Y(K=>Reflect.apply(eI,null,[K,...W]),()=>d_(...W),"datetime format",K=>K[g_](...W),()=>[],K=>ge(K)||Rt(K))}function V(W){E=W,p.pluralRules=E}function z(W,K){if(!W)return!1;const de=ge(K)?K:o.value,he=b(de);return p.messageResolver(he,W)!==null}function H(W){let K=null;const de=_1(p,a.value,o.value);for(let he=0;he{i&&(o.value=W,p.locale=W,Tl(p,o.value,a.value))}),Vt(n.fallbackLocale,W=>{i&&(a.value=W,p.fallbackLocale=W,Tl(p,o.value,a.value))}));const re={id:aI,locale:A,fallbackLocale:S,get inheritLocale(){return i},set inheritLocale(W){i=W,W&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Tl(p,o.value,a.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,get modifiers(){return d},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(W){h=W,p.missingWarn=h},get fallbackWarn(){return f},set fallbackWarn(W){f=W,p.fallbackWarn=f},get fallbackRoot(){return v},set fallbackRoot(W){v=W},get fallbackFormat(){return k},set fallbackFormat(W){k=W,p.fallbackFormat=k},get warnHtmlMessage(){return m},set warnHtmlMessage(W){m=W,p.warnHtmlMessage=W},get escapeParameter(){return _},set escapeParameter(W){_=W,p.escapeParameter=W},t:F,getLocaleMessage:b,setLocaleMessage:P,mergeLocaleMessage:x,getPostTranslationHandler:L,setPostTranslationHandler:G,getMissingHandler:U,setMissingHandler:B,[iq]:V};return re.datetimeFormats=C,re.numberFormats=R,re.rt=j,re.te=z,re.tm=D,re.d=Z,re.n=J,re.getDateTimeFormat=$,re.setDateTimeFormat=q,re.mergeDateTimeFormat=X,re.getNumberFormat=te,re.setNumberFormat=ne,re.mergeNumberFormat=Q,re[oq]=r,re[m_]=oe,re[g_]=M,re[__]=N,re}const E0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function cq({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,s)=>[...r,...s.type===rn?s.children:[s]],[]):e.reduce((n,r)=>{const s=t[r];return s&&(n[r]=s()),n},{})}function D1(t){return rn}const uq=ur({name:"i18n-t",props:Jt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Qt(t)||!isNaN(t)}},E0),setup(t,e){const{slots:n,attrs:r}=e,s=t.i18n||ol({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(h=>h!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=ge(t.plural)?+t.plural:t.plural);const a=cq(e,i),l=s[m_](t.keypath,a,o),c=Jt({},r),u=ge(t.tag)||$e(t.tag)?t.tag:D1();return Nn(u,c,l)}}}),cI=uq;function hq(t){return Rt(t)&&!ge(t[0])}function L1(t,e,n,r){const{slots:s,attrs:i}=e;return()=>{const o={part:!0};let a={};t.locale&&(o.locale=t.locale),ge(t.format)?o.key=t.format:$e(t.format)&&(ge(t.format.key)&&(o.key=t.format.key),a=Object.keys(t.format).reduce((f,v)=>n.includes(v)?Jt({},f,{[v]:t.format[v]}):f,{}));const l=r(t.value,o,a);let c=[o.key];Rt(l)?c=l.map((f,v)=>{const k=s[f.type],I=k?k({[f.type]:f.value,index:v,parts:l}):[f.value];return hq(I)&&(I[0].key=`${f.type}-${v}`),I}):ge(l)&&(c=[l]);const u=Jt({},i),h=ge(t.tag)||$e(t.tag)?t.tag:D1();return Nn(h,u,c)}}const fq=ur({name:"i18n-n",props:Jt({value:{type:Number,required:!0},format:{type:[String,Object]}},E0),setup(t,e){const n=t.i18n||ol({useScope:"parent",__useComponent:!0});return L1(t,e,C1,(...r)=>n[__](...r))}}),uI=fq,dq=ur({name:"i18n-d",props:Jt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},E0),setup(t,e){const n=t.i18n||ol({useScope:"parent",__useComponent:!0});return L1(t,e,S1,(...r)=>n[g_](...r))}}),hI=dq;function pq(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const r=n.__getInstance(e);return r!=null?r.__composer:t.global.__composer}}function mq(t){const e=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw er(Wn.UNEXPECTED_ERROR);const u=pq(t,a.$),h=fI(c);return[Reflect.apply(u.t,u,[...dI(h)]),u]};return{created:(o,a)=>{const[l,c]=e(a);c_&&t.global===c&&(o.__i18nWatcher=Vt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{c_&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=fI(a);o.textContent=Reflect.apply(l.t,l,[...dI(c)])}},getSSRProps:o=>{const[a]=e(o);return{textContent:a}}}}function fI(t){if(ge(t))return{path:t};if(Ye(t)){if(!("path"in t))throw er(Wn.REQUIRED_VALUE,"path");return t}else throw er(Wn.INVALID_VALUE)}function dI(t){const{path:e,locale:n,args:r,choice:s,plural:i}=t,o={},a=r||{};return ge(n)&&(o.locale=n),Qt(s)&&(o.plural=s),Qt(i)&&(o.plural=i),[e,a,o]}function gq(t,e,...n){const r=Ye(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Ct(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":cI.name,"I18nT"].forEach(o=>t.component(o,cI)),[uI.name,"I18nN"].forEach(o=>t.component(o,uI)),[hI.name,"I18nD"].forEach(o=>t.component(o,hI))),t.directive("t",mq(e))}const wm={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},_q={"vue-i18n-resource-inspector":"Search for scopes ..."},yq={"vue-i18n-timeline":16764185},M1="vue-i18n: composer properties";let E_;async function vq(t,e){return new Promise((n,r)=>{try{zd({id:"vue-devtools-plugin-vue-i18n",label:wm["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[M1],app:t},s=>{E_=s,s.on.visitComponentTree(({componentInstance:o,treeNode:a})=>{Eq(o,a,e)}),s.on.inspectComponent(({componentInstance:o,instanceData:a})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&a&&(e.mode==="legacy"?o.vnode.el.__VUE_I18N__!==e.global.__composer&&pI(a,o.vnode.el.__VUE_I18N__):pI(a,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:wm["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:_q["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&kq(o,e)});const i=new Map;s.on.getInspectorState(async o=>{if(o.app===t&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),Cq(o,e),o.nodeId==="global"){if(!i.has(o.app)){const[a]=await s.getComponentInstances(o.app);i.set(o.app,a)}s.highlightElement(i.get(o.app))}else{const a=Sq(o.nodeId,e);a&&s.highlightElement(a)}}),s.on.editInspectorState(o=>{o.app===t&&o.inspectorId==="vue-i18n-resource-inspector"&&Aq(o,e)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:wm["vue-i18n-timeline"],color:yq["vue-i18n-timeline"]}),n(!0)})}catch(s){console.error(s),r(!1)}})}function x1(t){return t.type.name||t.type.displayName||t.type.__file||"Anonymous"}function Eq(t,e,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(t&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&t.vnode.el.__VUE_I18N__!==r){const s={label:`i18n (${x1(t)} Scope)`,textColor:0,backgroundColor:16764185};e.tags.push(s)}}function pI(t,e){const n=M1;t.state.push({type:n,key:"locale",editable:!0,value:e.locale.value}),t.state.push({type:n,key:"availableLocales",editable:!1,value:e.availableLocales}),t.state.push({type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value}),t.state.push({type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}),t.state.push({type:n,key:"messages",editable:!1,value:w0(e.messages.value)}),t.state.push({type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}),t.state.push({type:n,key:"numberFormats",editable:!1,value:e.numberFormats.value})}function w0(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];St(r)&&"source"in r?e[n]=Iq(r):ja(r)&&r.loc&&r.loc.source?e[n]=r.loc.source:$e(r)?e[n]=w0(r):e[n]=r}),e}const wq={"<":"<",">":">",'"':""","&":"&"};function Tq(t){return t.replace(/[<>"&]/g,bq)}function bq(t){return wq[t]||t}function Iq(t){return{_custom:{type:"function",display:`ƒ ${t.source?`("${Tq(t.source)}")`:"(?)"}`}}}function kq(t,e){t.rootNodes.push({id:"global",label:"Global Scope"});const n=e.mode==="composition"?e.global:e.global.__composer;for(const[r,s]of e.__instances){const i=e.mode==="composition"?s:s.__composer;n!==i&&t.rootNodes.push({id:i.id.toString(),label:`${x1(r)} Scope`})}}function Sq(t,e){let n=null;if(t!=="global"){for(const[r,s]of e.__instances.entries())if(s.id.toString()===t){n=r;break}}return n}function F1(t,e){if(t==="global")return e.mode==="composition"?e.global:e.global.__composer;{const n=Array.from(e.__instances.values()).find(r=>r.id.toString()===t);return n?e.mode==="composition"?n:n.__composer:null}}function Cq(t,e){const n=F1(t.nodeId,e);return n&&(t.state=Rq(n)),null}function Rq(t){const e={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:t.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:t.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}];e[n]=r;const s="Locale messages info",i=[{type:s,key:"messages",editable:!1,value:w0(t.messages.value)}];e[s]=i;{const o="Datetime formats info",a=[{type:o,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}];e[o]=a;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:t.numberFormats.value}];e[l]=c}return e}function w_(t,e){if(E_){let n;e&&"groupId"in e&&(n=e.groupId,delete e.groupId),E_.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:t,groupId:n,time:Date.now(),meta:{},data:e||{},logType:t==="compile-error"?"error":t==="fallback"||t==="missing"?"warning":"default"}})}}function Aq(t,e){const n=F1(t.nodeId,e);if(n){const[r]=t.path;r==="locale"&&ge(t.state.value)?n.locale.value=t.state.value:r==="fallbackLocale"&&(ge(t.state.value)||Rt(t.state.value)||$e(t.state.value))?n.fallbackLocale.value=t.state.value:r==="inheritLocale"&&Ct(t.state.value)&&(n.inheritLocale=t.state.value)}}const Pq=us("global-vue-i18n");function Oq(t={},e){const n=Ct(t.globalInjection)?t.globalInjection:!0,r=!0,s=new Map,[i,o]=Nq(t),a=us("");function l(h){return s.get(h)||null}function c(h,f){s.set(h,f)}function u(h){s.delete(h)}{const h={get mode(){return"composition"},get allowComposition(){return r},async install(f,...v){if(f.__VUE_I18N__=h,f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,h),Ye(v[0])){const T=v[0];h.__composerExtend=T.__composerExtend,h.__vueI18nExtend=T.__vueI18nExtend}let k=null;n&&(k=jq(f,h.global)),gq(f,h,...v);const I=f.unmount;f.unmount=()=>{k&&k(),h.dispose(),I()};{if(!await vq(f,h))throw er(Wn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=g1();{const m=o;m[Vf]&&m[Vf](g)}g.on("*",w_)}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:u};return h}}function ol(t={}){const e=Or();if(e==null)throw er(Wn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw er(Wn.NOT_INSTALLED);const n=Dq(e),r=Mq(n),s=O1(e),i=Lq(t,s);if(i==="global")return aq(r,t,s),r;if(i==="parent"){let l=xq(n,e,t.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(e);if(a==null){const l=Jt({},t);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=N1(l),o.__composerExtend&&(a[y_]=o.__composerExtend(a)),Vq(o,e,a),o.__setInstance(e,a)}return a}function Nq(t,e,n){const r=Wc();{const s=r.run(()=>N1(t));if(s==null)throw er(Wn.UNEXPECTED_ERROR);return[r,s]}}function Dq(t){{const e=Ut(t.isCE?Pq:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw er(t.isCE?Wn.NOT_INSTALLED_WITH_PROVIDE:Wn.UNEXPECTED_ERROR);return e}}function Lq(t,e){return lp(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function Mq(t){return t.mode==="composition"?t.global:t.global.__composer}function xq(t,e,n=!1){let r=null;const s=e.root;let i=Fq(e,n);for(;i!=null;){const o=t;if(t.mode==="composition"&&(r=o.__getInstance(i)),r!=null||s===i)break;i=i.parent}return r}function Fq(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function Vq(t,e,n){let r=null;ld(()=>{if(e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=g1();const s=n;s[Vf]&&s[Vf](r),r.on("*",w_)}},e),hy(()=>{const s=n;e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",w_),s[sI]&&s[sI](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=s[y_];i&&(i(),delete s[y_])},e)}const Uq=["locale","fallbackLocale","availableLocales"],mI=["t","rt","d","n","tm","te"];function jq(t,e){const n=Object.create(null);return Uq.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i)throw er(Wn.UNEXPECTED_ERROR);const o=rt(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),t.config.globalProperties.$i18n=n,mI.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i||!i.value)throw er(Wn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,i)}),()=>{delete t.config.globalProperties.$i18n,mI.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}sq();HY(JY);WY(IY);GY(_1);if(__INTLIFY_PROD_DEVTOOLS__){const t=d0();t.__INTLIFY__=!0,DY(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const V1={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},Bq="",$q=V1.PREFIX_EXCEPT_DEFAULT,Hq=!1,Wq="___",Gq="default",Yq="ltr",qq="",U1="";/*! * shared v9.4.1 * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const Kq=(t,e=!1)=>e?Symbol.for(t):Symbol(t),hp=Object.assign,U1=Array.isArray,T_=t=>typeof t=="function",Ba=t=>typeof t=="string",zq=t=>typeof t=="symbol",E0=t=>t!==null&&typeof t=="object",Qq=/\/$|\/\?/;function b_(t="",e=!1){return e?Qq.test(t):t.endsWith("/")}function Xq(t="",e=!1){if(!e)return(b_(t)?t.slice(0,-1):t)||"/";if(!b_(t,!0))return t||"/";const[n,...r]=t.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Jq(t="",e=!1){if(!e)return t.endsWith("/")?t:t+"/";if(b_(t,!0))return t||"/";const[n,...r]=t.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}const Zq=typeof window<"u";function j1(t,e){typeof console<"u"&&(console.warn("[vue-i18n-routing] "+t),e&&console.warn(e.stack))}function eK(t){t=t||[];const e=[];for(const n of t)Ba(n)?e.push({code:n}):e.push(n);return e}function Mo(t){return t!=null&&"global"in t&&"mode"in t}function al(t){return t!=null&&!("__composer"in t)&&rt(t.locale)}function Fo(t){return t!=null&&"__composer"in t}function bu(t){return t!=null&&!("__composer"in t)&&!rt(t.locale)}function fp(t){return t!=null&&("__VUE_I18N_BRIDGE__"in t||"_sync"in t)}function Io(t){return Mo(t)?al(t.global)?t.global:t.global.__composer:Fo(t)?t.__composer:t}function dp(t){const e=Mo(t)?t.global:t;return al(e)?e.locale.value:(bu(e)||Fo(e)||fp(e),e.locale)}function tK(t){const e=Mo(t)?t.global:t;return al(e)?e.locales.value:(bu(e)||Fo(e)||fp(e),e.locales)}function nK(t){const e=Mo(t)?t.global:t;return al(e)?e.localeCodes.value:(bu(e)||Fo(e)||fp(e),e.localeCodes)}function B1(t,e){const n=Mo(t)?t.global:t;if(al(n))n.locale.value=e;else if(bu(n)||Fo(n)||fp(n))n.locale=e;else throw new Error("TODO:")}function $1(t){return Ba(t)?t:zq(t)?t.toString():"(null)"}function pI(t,e,{defaultLocale:n,strategy:r,routesNameSeparator:s,defaultLocaleRouteNameSuffix:i}){let o=$1(t)+(r==="no_prefix"?"":s+e);return e===n&&r==="prefix_and_default"&&(o+=s+i),o}function mI(t,e){return T_(t)?t(e):t}function rK(t,e){const n=[];for(const[r,s]of e.entries()){const i=t.find(o=>o.iso.toLowerCase()===s.toLowerCase());if(i){n.push({code:i.code,score:1-r/e.length});break}}for(const[r,s]of e.entries()){const i=s.split("-")[0].toLowerCase(),o=t.find(a=>a.iso.split("-")[0].toLowerCase()===i);if(o){n.push({code:o.code,score:.999-r/e.length});break}}return n}const sK=rK;function iK(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}const oK=iK;function aK(t,e,{matcher:n=sK,comparer:r=oK}={}){const s=[];for(const o of t){const{code:a}=o,l=o.iso||a;s.push({code:a,iso:l})}const i=n(s,e);return i.length>1&&i.sort(r),i.length?i[0].code:""}function Bi(t){return function(){return Reflect.apply(t,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function lK(t,{locales:e=[],localeCodes:n=[],baseUrl:r=qq,hooks:s={},context:i={}}={}){const o=Wc(),a=t.install;return t.install=(l,...c)=>{const u=hK(c[0])?hp({},c[0]):{inject:!0};u.inject==null&&(u.inject=!0);const h=u.__composerExtend;if(u.__composerExtend=I=>{const T=Io(t);I.locales=lt(()=>T.locales.value),I.localeCodes=lt(()=>T.localeCodes.value),I.baseUrl=lt(()=>T.baseUrl.value);let g;return T_(h)&&(g=Reflect.apply(h,u,[I])),()=>{g&&g()}},t.mode==="legacy"){const I=u.__vueI18nExtend;u.__vueI18nExtend=T=>{gI(T,s.onExtendVueI18n);let g;return T_(I)&&(g=Reflect.apply(I,u,[T])),()=>{g&&g()}}}c[0]=u,Reflect.apply(a,t,[l,...c]);const f=Io(t);o.run(()=>{cK(f,{locales:e,localeCodes:n,baseUrl:r,hooks:s,context:i}),t.mode==="legacy"&&Fo(t.global)&&gI(t.global,s.onExtendVueI18n)});const v=l,k=t.mode==="composition"?v.config.globalProperties.$i18n:null;if(k&&uK(k,f,s.onExtendExportedGlobal),u.inject&&l.mixin({methods:{resolveRoute:Bi(mp),localePath:Bi(pp),localeRoute:Bi(w0),localeLocation:Bi(EK),switchLocalePath:Bi(Vc),getRouteBaseName:Bi(ko),localeHead:Bi(Y1)}}),v.unmount){const I=v.unmount;v.unmount=()=>{o.stop(),I()}}},o}function cK(t,e){const{locales:n,localeCodes:r,baseUrl:s,context:i}=e,o=Ze(n),a=Ze(r),l=Ze("");t.locales=lt(()=>o.value),t.localeCodes=lt(()=>a.value),t.baseUrl=lt(()=>l.value),Zq?Vt(t.locale,()=>{l.value=mI(s,i)},{immediate:!0}):l.value=mI(s,i),e.hooks&&e.hooks.onExtendComposer&&e.hooks.onExtendComposer(t)}function H1(t,e,n){const r=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},baseUrl:{get(){return t.baseUrl.value}}}];n&&r.push(n(t));for(const s of r)for(const[i,o]of Object.entries(s))Object.defineProperty(e,i,o)}function uK(t,e,n){H1(e,t,n)}function gI(t,e){const n=Io(t);H1(n,t,e)}function hK(t){return E0(t)&&("inject"in t||"__composerExtend"in t||"__vueI18nExtend"in t)}const I_=Kq("vue-i18n-routing-gor");function fK(t,e){t[I_]?j1("already registered global options"):t[I_]=e}function dK(t){return t[I_]??{}}function k_(t){return new RegExp(`^/(${t.join("|")})(?:/|$)`,"i")}function pK(t,e,n){const r=`(${t.join("|")})`,s=`(?:${e}${n})?`,i=new RegExp(`${e}${r}${s}$`,"i"),o=k_(t);return l=>{if(E0(l)){if(l.name){const u=(Ba(l.name)?l.name:l.name.toString()).match(i);if(u&&u.length>1)return u[1]}else if(l.path){const c=l.path.match(o);if(c&&c.length>1)return c[1]}}else if(Ba(l)){const c=l.match(o);if(c&&c.length>1)return c[1]}return""}}function Iu(t,e,{defaultLocale:n=Bq,defaultDirection:r=Yq,defaultLocaleRouteNameSuffix:s=Gq,routesNameSeparator:i=Wq,strategy:o=$q,trailingSlash:a=Hq,localeCodes:l=[],prefixable:c=W1,switchLocalePathIntercepter:u=G1,dynamicRouteParamsKey:h=V1}={}){const f=dK(t);return{defaultLocale:e.defaultLocale||f.defaultLocale||n,defaultDirection:e.defaultDirection||f.defaultDirection||r,defaultLocaleRouteNameSuffix:e.defaultLocaleRouteNameSuffix||f.defaultLocaleRouteNameSuffix||s,routesNameSeparator:e.routesNameSeparator||f.routesNameSeparator||i,strategy:e.strategy||f.strategy||o,trailingSlash:e.trailingSlash||f.trailingSlash||a,localeCodes:e.localeCodes||f.localeCodes||l,prefixable:e.prefixable||f.prefixable||c,switchLocalePathIntercepter:e.switchLocalePathIntercepter||f.switchLocalePathIntercepter||u,dynamicRouteParamsKey:e.dynamicRouteParamsKey||f.dynamicRouteParamsKey||h}}function mK(t,e){return[t.slice(0,e),t.slice(e)]}function gK(t){const{fullPath:e,query:n,hash:r,name:s,path:i,params:o,meta:a,redirectedFrom:l,matched:c}=t;return{fullPath:e,params:o,query:n,hash:r,name:s,path:i,meta:a,matched:c,redirectedFrom:l}}function _K(t,e,n,r){if(n==="prefix"){if(U1(e.matched)&&e.matched.length>0)return e.matched[0];const[s,i]=mK(e.path,1),o=`${s}${r}${i===""?i:`/${i}`}`,a=t.options.routes.find(l=>l.path===o);if(a==null)return e;{const l=hp({},e,a);return l.path=o,t.resolve(l)}}else return t.resolve(e)}const yK=new Set(["prefix_and_default","prefix_except_default"]);function vK(t){const{currentLocale:e,defaultLocale:n,strategy:r}=t;return!(e===n&&yK.has(r))&&r!=="no_prefix"}const W1=vK;function ko(t){const e=this.router,{routesNameSeparator:n}=Iu(e,this),r=t!=null?rt(t)?tt(t):t:this.route;return r==null||!r.name?void 0:$1(r.name).split(n)[0]}function pp(t,e){const n=mp.call(this,t,e);return n==null?"":n.redirectedFrom||n.fullPath}function w0(t,e){const n=mp.call(this,t,e);return n??void 0}function EK(t,e){const n=mp.call(this,t,e);return n??void 0}function mp(t,e){const n=this.router,r=this.i18n,s=e||dp(r),{routesNameSeparator:i,defaultLocale:o,defaultLocaleRouteNameSuffix:a,strategy:l,trailingSlash:c,prefixable:u}=Iu(n,this);let h=t;if(Ba(t))if(h[0]==="/"){const[v,k]=t.split("?"),I=Object.fromEntries(new URLSearchParams(k));h={path:v,query:I}}else h={name:t};let f=hp({},h);if(f.path&&!f.name){let v=null;try{v=_K(n,f,l,s)}catch{}const k=v,I=ko.call(this,k);Ba(I)?(f={name:pI(I,s,{defaultLocale:o,strategy:l,routesNameSeparator:i,defaultLocaleRouteNameSuffix:a}),params:k.params,query:k.query,hash:k.hash},f.state=k.state):(u({currentLocale:s,defaultLocale:o,strategy:l})&&(f.path=`/${s}${f.path}`),f.path=c?Jq(f.path,!0):Xq(f.path,!0))}else!f.name&&!f.path&&(f.name=ko.call(this,this.route)),f.name=pI(f.name,s,{defaultLocale:o,strategy:l,routesNameSeparator:i,defaultLocaleRouteNameSuffix:a});try{const v=n.resolve(f);return(A9?v.name:v.route.name)?v:n.resolve(t)}catch(v){if(v.type===1)return null}}const G1=t=>t;function wK(t,e){const n={};if(e===V1)return n;const r=t.meta;return rt(r)?r.value[e]||n:r[e]||n}function Vc(t){const e=this.route,n=ko.call(this,e);if(!n)return"";const{switchLocalePathIntercepter:r,dynamicRouteParamsKey:s}=Iu(this.router,this),o=gK(e),a=wK(e,s)[t]||{},l={name:n,params:{...o.params,...a}},c=hp({},o,l);let u=pp.call(this,c,t);return u=r(u,t),u}function Y1({addDirAttribute:t=!1,addSeoAttributes:e=!1,identifierAttribute:n="hid"}={}){const r=this.router,s=this.i18n,{defaultDirection:i}=Iu(r,this),o={htmlAttrs:{},link:[],meta:[]};if(s.locales==null||s.baseUrl==null)return o;const a=dp(s),l=tK(s),c=eK(l).find(f=>f.code===a)||{code:a},u=c.iso,h=c.dir||i;return t&&(o.htmlAttrs.dir=h),e&&a&&s.locales&&(u&&(o.htmlAttrs.lang=u),TK.call(this,l,tt(s.baseUrl),o.link,n),bK.call(this,tt(s.baseUrl),o.link,o.meta,n,e),IK(c,u,o.meta,n),kK(l,u,o.meta,n)),o}function TK(t,e,n,r){const s=this.router,{defaultLocale:i,strategy:o}=Iu(s,this);if(o===F1.NO_PREFIX)return;const a=new Map;for(const l of t){const c=l.iso;if(!c){j1("Locale ISO code is required to generate alternate link");continue}const[u,h]=c.split("-");u&&h&&(l.isCatchallLocale||!a.has(u))&&a.set(u,l),a.set(c,l)}for(const[l,c]of a.entries()){const u=Vc.call(this,c.code);u&&n.push({[r]:`i18n-alt-${l}`,rel:"alternate",href:S_(u,e),hreflang:l})}if(i){const l=Vc.call(this,i);l&&n.push({[r]:"i18n-xd",rel:"alternate",href:S_(l,e),hreflang:"x-default"})}}function bK(t,e,n,r,s){const i=this.route,o=w0.call(this,{...i,name:ko.call(this,i)});if(o){let a=S_(o.path,t);const l=E0(s)&&s.canonicalQueries||[];if(l.length){const c=o.query,u=new URLSearchParams;for(const f of l)if(f in c){const v=c[f];U1(v)?v.forEach(k=>u.append(f,k||"")):u.append(f,v||"")}const h=u.toString();h&&(a=`${a}?${h}`)}e.push({[r]:"i18n-can",rel:"canonical",href:a}),n.push({[r]:"i18n-og-url",property:"og:url",content:a})}}function IK(t,e,n,r){t&&e&&n.push({[r]:"i18n-og",property:"og:locale",content:q1(e)})}function kK(t,e,n,r){const s=t.filter(i=>{const o=i.iso;return o&&o!==e});if(s.length){const i=s.map(o=>({[r]:`i18n-og-alt-${o.iso}`,property:"og:locale:alternate",content:q1(o.iso)}));n.push(...i)}}function q1(t){return(t||"").replace(/-/g,"_")}function S_(t,e){return t.match(/^https?:\/\//)?t:e+t}function T0(t,e){const{router:n,route:r,i18n:s,defaultLocale:i,strategy:o,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:c}=t;return function(...u){return Reflect.apply(e,{router:n,route:r,i18n:s,defaultLocale:i,strategy:o,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:c},u)}}function SK({router:t=Nv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return T0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},ko)}function CK({router:t=Nv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return T0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},pp)}function RK({router:t=Nv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return T0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},Vc)}/*! js-cookie v3.0.5 | MIT */function dh(t){for(var e=1;e"u")){o=dh({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;aPromise.resolve(PK),cache:!0}],en:[{key:"../src/i18n/en.json",load:()=>Promise.resolve(OK),cache:!0}]},DK=async t=>{const e={experimental:{jsTsFormatResource:!1},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:[{code:"fr",name:"Français",iso:"fr-CA",files:["i18n/fr.json"]},{code:"en",name:"English",iso:"en-CA",files:["i18n/en.json"]}],defaultLocale:"fr",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:"i18n/",rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1,i18nModules:[]},n=async i=>{const o=await i().then(a=>a.default||a);return typeof o=="object"?o:typeof o=="function"?await o():{}},r=(i,o,a)=>{for(const l in i)typeof i[l]=="object"?(typeof o[l]!="object"&&(o[l]={}),r(i[l],o[l],a)):a?a(i[l],o[l])&&(o[l]=i[l]):o[l]=i[l]},s=async i=>{var l,c;const a=await n(i)||{};for(const[u,h]of Object.entries(a))((l=e.vueI18n)==null?void 0:l[u])===void 0||typeof((c=e.vueI18n)==null?void 0:c[u])!="object"?e.vueI18n[u]=h:r(h,e.vueI18n[u])};return e.vueI18n={messages:{}},await s(()=>mr(()=>import("./i18n.config.6e063eee.js"),[],import.meta.url)),e},qn={experimental:{jsTsFormatResource:!1},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:[],defaultLocale:"",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1},Ch={__normalizedLocales:[{code:"fr",name:"Français",iso:"fr-CA",files:[{path:"i18n/fr.json"}]},{code:"en",name:"English",iso:"en-CA",files:[{path:"i18n/en.json"}]}]},z1="@nuxtjs/i18n",LK=!1;function Ff(t){return z1+" "+t}function xK(t){return t!=null&&("__VUE_I18N_BRIDGE__"in t||"_sync"in t)}function ku(t,e,...n){const r=Mo(t)?t.global:t,[s,i]=[r,r[e]];return Reflect.apply(i,s,[...n])}function MK(t,e){const n=Mo(t)?t.global:t;return al(n)?n[e].value:(bu(n)||Fo(n)||xK(n),n[e])}function _I(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function FK(t,e){return function(){return Reflect.apply(e,{i18n:t.$i18n,getRouteBaseName:t.$getRouteBaseName,localePath:t.$localePath,localeRoute:t.$localeRoute,switchLocalePath:t.$switchLocalePath,localeHead:t.$localeHead,route:t.$router.currentRoute.value,router:t.$router},arguments)}}function R_(t,e,n){for(const r in t)Rt(t[r])?(Rt(e[r])||(e[r]=[]),t[r].forEach((s,i)=>{if(!e[r][i]){const o={};R_(s,o,n),e[r].push(o)}})):$e(t[r])?($e(e[r])||(e[r]={}),R_(t[r],e[r],n)):n?n(t[r],e[r])&&(e[r]=t[r]):e[r]=t[r]}const A_=new Map;async function VK(t,{key:e,load:n},r){var o,a;const s=(o=t.$config.public)==null?void 0:o.i18n;let i=null;try{const l=await n().then(c=>c.default||c);St(l)?(a=s.experimental)!=null&&a.jsTsFormatResource?i=await l(r):console.warn(Ff("JS / TS extension format is not supported by default. This can be enabled by setting `i18n.experimental.jsTsFormatResource: true` (experimental)")):(i=l,i!=null&&A_.set(e,i))}catch(l){console.error(Ff("Failed locale loading: "+l.message))}return i}async function Vf(t,e,n){const r=NK[e];if(r==null){console.warn(Ff("Could not find messages for locale code"+e));return}const s={};for(const i of r){let o=null;A_.has(i.key)&&i.cache?o=A_.get(i.key):o=await VK(t,i,e),o!=null&&R_(o,s)}n(e,s)}function Q1(t,e){let n;return navigator.languages&&(n=aK(t.__normalizedLocales,navigator.languages)),n}function b0(t,{useCookie:e=qn.detectBrowserLanguage.useCookie,cookieKey:n=qn.detectBrowserLanguage.cookieKey,localeCodes:r=[]}={}){if(e){let s;if(s=K1.get(n),s&&r.includes(s))return s}}function UK(t,e,{useCookie:n=qn.detectBrowserLanguage.useCookie,cookieKey:r=qn.detectBrowserLanguage.cookieKey,cookieDomain:s=qn.detectBrowserLanguage.cookieDomain,cookieSecure:i=qn.detectBrowserLanguage.cookieSecure,cookieCrossOrigin:o=qn.detectBrowserLanguage.cookieCrossOrigin}={}){if(!n)return;const a=new Date,l={expires:new Date(a.setDate(a.getDate()+365)),path:"/",sameSite:o?"none":"lax",secure:o||i};s&&(l.domain=s),K1.set(r,t,l)}const X1={locale:"",stat:!1,reason:"unknown",from:"unknown"};function J1(t,e,n,r,s,i=[],o=""){const{strategy:a}=n,{ssg:l,callType:c,firstAccess:u}=s;if(a==="no_prefix"&&l==="ssg_ignore")return{locale:"",stat:!0,reason:"detect_ignore_on_ssg"};if(!u)return{locale:"",stat:!1,reason:"first_access_only"};const{redirectOn:h,alwaysRedirect:f,useCookie:v,fallbackLocale:k}=n.detectBrowserLanguage,I=ge(t)?t:t.path;if(a!=="no_prefix"){if(h==="root"){if(I!=="/")return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if(h==="no prefix"&&!f&&I.match(k_(i)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"}}let T="unknown",g,m;v&&(m=g=b0(e,{...n.detectBrowserLanguage,localeCodes:i}),T="cookie"),m||(m=Q1(r),T="navigator_or_header");const _=m||k;!m&&k&&(T="fallback");const d=o||n.vueI18n.locale;if(_&&(!v||f||!g)){if(a==="no_prefix")return{locale:_,stat:!0,from:T};if(c==="setup"&&_!==d)return{locale:_,stat:!0,from:T};if(f){const E=I==="/",p=h==="all",y=h==="no prefix"&&!I.match(k_(i));if(E||p||y)return{locale:_,stat:!0,from:T}}}return l==="ssg_setup"&&_?{locale:_,stat:!0,from:T}:(T==="navigator_or_header"||T==="cookie")&&_?{locale:_,stat:!0,from:T}:{locale:"",stat:!1,reason:"not_found_match"}}function jK(){let t;return t=window.location.host,t}function BK(t){let e=jK()||"";if(e){const n=t.find(r=>{if(r&&r.domain){let s=r.domain;return Co(r.domain)&&(s=r.domain.replace(/(http|https):\/\//,"")),s===e}return!1});if(n)return n.code;e=""}return e}function Z1(t,e,n){var o,a;const r=n==null?void 0:n.$config.public.i18n,s=e.find(l=>l.code===t),i=((a=(o=r==null?void 0:r.locales)==null?void 0:o[t])==null?void 0:a.domain)??(s==null?void 0:s.domain);if(i){if(Co(i,{strict:!0}))return i;let l;return l=new URL(window.location.origin).protocol,l+"//"+i}console.warn(Ff("Could not find domain name for locale "+t))}function $K(t){const{route:e,router:n,i18n:r}=t||{};return SK({route:e||nl(),router:n||Nr(),i18n:r||Io(ct().$i18n)})}function HK(t){const{route:e,router:n,i18n:r}=t||{};return CK({route:e||nl(),router:n||Nr(),i18n:r||Io(ct().$i18n)})}const WK=async(t,e)=>{let n,r;const s=([n,r]=_i(()=>jG()),n=await n,r(),n),i=$K({route:t}),o=HK({route:t}),{auth:a=!0}=t.meta;if(a==="guest"&&s&&i(t)!=="index")return Lg({path:o({name:"index"})});if(a===!0&&!s&&i(t)!=="login")return Lg({path:o({name:"login"})})},GK=[PH,WK],tc={};function YK(t,e,n){const{pathname:r,search:s,hash:i}=e,o=t.indexOf("#");if(o>-1){const c=i.includes(t.slice(o))?t.slice(o).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),$E(u,"")}const a=$E(r,t),l=!n||qm(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const qK=en({name:"nuxt:router",enforce:"pre",async setup(t){var I,T;let e,n,r=fd().app.baseURL;xn.hashMode&&!r.includes("#")&&(r+="#");const s=((I=xn.history)==null?void 0:I.call(xn,r))??(xn.hashMode?D$(r):XR(r)),i=((T=xn.routes)==null?void 0:T.call(xn,ST))??ST;let o;const a=YK(r,window.location,t.payload.path),l=kH({...xn,scrollBehavior:(g,m,_)=>{var d;if(m===Vr){o=_;return}return l.options.scrollBehavior=xn.scrollBehavior,(d=xn.scrollBehavior)==null?void 0:d.call(xn,g,Vr,o||_)},history:s,routes:i});t.vueApp.use(l);const c=wa(l.currentRoute.value);l.afterEach((g,m)=>{c.value=m}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=wa(l.resolve(a)),h=()=>{u.value=l.currentRoute.value};t.hook("page:finish",h),l.afterEach((g,m)=>{var _,d,E,p;((d=(_=g.matched[0])==null?void 0:_.components)==null?void 0:d.default)===((p=(E=m.matched[0])==null?void 0:E.components)==null?void 0:p.default)&&h()});const f={};for(const g in u.value)Object.defineProperty(f,g,{get:()=>u.value[g]});t._route=Gc(f),t._middleware=t._middleware||{global:[],named:{}};const v=Kd();try{[e,n]=_i(()=>l.isReady()),await e,n()}catch(g){[e,n]=_i(()=>t.runWithContext(()=>Zo(g))),await e,n()}const k=t.payload.state._layout;return l.beforeEach(async(g,m)=>{var _;g.meta=ts(g.meta),t.isHydrating&&k&&!po(g.meta.layout)&&(g.meta.layout=k),t._processingMiddleware=!0;{const d=new Set([...GK,...t._middleware.global]);for(const E of g.matched){const p=E.meta.middleware;if(p)if(Array.isArray(p))for(const y of p)d.add(y);else d.add(p)}for(const E of d){const p=typeof E=="string"?t._middleware.named[E]||await((_=tc[E])==null?void 0:_.call(tc).then(w=>w.default||w)):E;if(!p)throw new Error(`Unknown route middleware: '${E}'.`);const y=await t.runWithContext(()=>p(g,m));if(!t.payload.serverRendered&&t.isHydrating&&(y===!1||y instanceof Error)){const w=y||Ng({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await t.runWithContext(()=>Zo(w)),!1}if(y!==!0&&(y||y===!1))return y}}}),l.onError(()=>{delete t._processingMiddleware}),l.afterEach(async(g,m,_)=>{delete t._processingMiddleware,!t.isHydrating&&v.value&&await t.runWithContext(FB),g.matched.length===0&&await t.runWithContext(()=>Zo(Ng({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),t.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=xn.scrollBehavior}catch(g){await t.runWithContext(()=>Zo(g))}}),{provide:{router:l}}}}),KK=en({name:"nuxt:payload",setup(t){Nr().beforeResolve(async(e,n)=>{if(e.path===n.path)return;const r=await aT(e.path);r&&Object.assign(t.static.data,r.data)}),UB(()=>{t.hooks.hook("link:prefetch",async e=>{hd(e).protocol||await aT(e)})})}});/*! + */const Kq=(t,e=!1)=>e?Symbol.for(t):Symbol(t),hp=Object.assign,j1=Array.isArray,T_=t=>typeof t=="function",Ba=t=>typeof t=="string",zq=t=>typeof t=="symbol",T0=t=>t!==null&&typeof t=="object",Qq=/\/$|\/\?/;function b_(t="",e=!1){return e?Qq.test(t):t.endsWith("/")}function Xq(t="",e=!1){if(!e)return(b_(t)?t.slice(0,-1):t)||"/";if(!b_(t,!0))return t||"/";const[n,...r]=t.split("?");return(n.slice(0,-1)||"/")+(r.length>0?`?${r.join("?")}`:"")}function Jq(t="",e=!1){if(!e)return t.endsWith("/")?t:t+"/";if(b_(t,!0))return t||"/";const[n,...r]=t.split("?");return n+"/"+(r.length>0?`?${r.join("?")}`:"")}const Zq=typeof window<"u";function B1(t,e){typeof console<"u"&&(console.warn("[vue-i18n-routing] "+t),e&&console.warn(e.stack))}function eK(t){t=t||[];const e=[];for(const n of t)Ba(n)?e.push({code:n}):e.push(n);return e}function xo(t){return t!=null&&"global"in t&&"mode"in t}function al(t){return t!=null&&!("__composer"in t)&&rt(t.locale)}function Fo(t){return t!=null&&"__composer"in t}function ku(t){return t!=null&&!("__composer"in t)&&!rt(t.locale)}function fp(t){return t!=null&&("__VUE_I18N_BRIDGE__"in t||"_sync"in t)}function Io(t){return xo(t)?al(t.global)?t.global:t.global.__composer:Fo(t)?t.__composer:t}function dp(t){const e=xo(t)?t.global:t;return al(e)?e.locale.value:(ku(e)||Fo(e)||fp(e),e.locale)}function tK(t){const e=xo(t)?t.global:t;return al(e)?e.locales.value:(ku(e)||Fo(e)||fp(e),e.locales)}function nK(t){const e=xo(t)?t.global:t;return al(e)?e.localeCodes.value:(ku(e)||Fo(e)||fp(e),e.localeCodes)}function $1(t,e){const n=xo(t)?t.global:t;if(al(n))n.locale.value=e;else if(ku(n)||Fo(n)||fp(n))n.locale=e;else throw new Error("TODO:")}function H1(t){return Ba(t)?t:zq(t)?t.toString():"(null)"}function gI(t,e,{defaultLocale:n,strategy:r,routesNameSeparator:s,defaultLocaleRouteNameSuffix:i}){let o=H1(t)+(r==="no_prefix"?"":s+e);return e===n&&r==="prefix_and_default"&&(o+=s+i),o}function _I(t,e){return T_(t)?t(e):t}function rK(t,e){const n=[];for(const[r,s]of e.entries()){const i=t.find(o=>o.iso.toLowerCase()===s.toLowerCase());if(i){n.push({code:i.code,score:1-r/e.length});break}}for(const[r,s]of e.entries()){const i=s.split("-")[0].toLowerCase(),o=t.find(a=>a.iso.split("-")[0].toLowerCase()===i);if(o){n.push({code:o.code,score:.999-r/e.length});break}}return n}const sK=rK;function iK(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}const oK=iK;function aK(t,e,{matcher:n=sK,comparer:r=oK}={}){const s=[];for(const o of t){const{code:a}=o,l=o.iso||a;s.push({code:a,iso:l})}const i=n(s,e);return i.length>1&&i.sort(r),i.length?i[0].code:""}function Bi(t){return function(){return Reflect.apply(t,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function lK(t,{locales:e=[],localeCodes:n=[],baseUrl:r=qq,hooks:s={},context:i={}}={}){const o=Wc(),a=t.install;return t.install=(l,...c)=>{const u=hK(c[0])?hp({},c[0]):{inject:!0};u.inject==null&&(u.inject=!0);const h=u.__composerExtend;if(u.__composerExtend=I=>{const T=Io(t);I.locales=lt(()=>T.locales.value),I.localeCodes=lt(()=>T.localeCodes.value),I.baseUrl=lt(()=>T.baseUrl.value);let g;return T_(h)&&(g=Reflect.apply(h,u,[I])),()=>{g&&g()}},t.mode==="legacy"){const I=u.__vueI18nExtend;u.__vueI18nExtend=T=>{yI(T,s.onExtendVueI18n);let g;return T_(I)&&(g=Reflect.apply(I,u,[T])),()=>{g&&g()}}}c[0]=u,Reflect.apply(a,t,[l,...c]);const f=Io(t);o.run(()=>{cK(f,{locales:e,localeCodes:n,baseUrl:r,hooks:s,context:i}),t.mode==="legacy"&&Fo(t.global)&&yI(t.global,s.onExtendVueI18n)});const v=l,k=t.mode==="composition"?v.config.globalProperties.$i18n:null;if(k&&uK(k,f,s.onExtendExportedGlobal),u.inject&&l.mixin({methods:{resolveRoute:Bi(mp),localePath:Bi(pp),localeRoute:Bi(b0),localeLocation:Bi(EK),switchLocalePath:Bi(Vc),getRouteBaseName:Bi(ko),localeHead:Bi(q1)}}),v.unmount){const I=v.unmount;v.unmount=()=>{o.stop(),I()}}},o}function cK(t,e){const{locales:n,localeCodes:r,baseUrl:s,context:i}=e,o=Ze(n),a=Ze(r),l=Ze("");t.locales=lt(()=>o.value),t.localeCodes=lt(()=>a.value),t.baseUrl=lt(()=>l.value),Zq?Vt(t.locale,()=>{l.value=_I(s,i)},{immediate:!0}):l.value=_I(s,i),e.hooks&&e.hooks.onExtendComposer&&e.hooks.onExtendComposer(t)}function W1(t,e,n){const r=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},baseUrl:{get(){return t.baseUrl.value}}}];n&&r.push(n(t));for(const s of r)for(const[i,o]of Object.entries(s))Object.defineProperty(e,i,o)}function uK(t,e,n){W1(e,t,n)}function yI(t,e){const n=Io(t);W1(n,t,e)}function hK(t){return T0(t)&&("inject"in t||"__composerExtend"in t||"__vueI18nExtend"in t)}const I_=Kq("vue-i18n-routing-gor");function fK(t,e){t[I_]?B1("already registered global options"):t[I_]=e}function dK(t){return t[I_]??{}}function k_(t){return new RegExp(`^/(${t.join("|")})(?:/|$)`,"i")}function pK(t,e,n){const r=`(${t.join("|")})`,s=`(?:${e}${n})?`,i=new RegExp(`${e}${r}${s}$`,"i"),o=k_(t);return l=>{if(T0(l)){if(l.name){const u=(Ba(l.name)?l.name:l.name.toString()).match(i);if(u&&u.length>1)return u[1]}else if(l.path){const c=l.path.match(o);if(c&&c.length>1)return c[1]}}else if(Ba(l)){const c=l.match(o);if(c&&c.length>1)return c[1]}return""}}function Su(t,e,{defaultLocale:n=Bq,defaultDirection:r=Yq,defaultLocaleRouteNameSuffix:s=Gq,routesNameSeparator:i=Wq,strategy:o=$q,trailingSlash:a=Hq,localeCodes:l=[],prefixable:c=G1,switchLocalePathIntercepter:u=Y1,dynamicRouteParamsKey:h=U1}={}){const f=dK(t);return{defaultLocale:e.defaultLocale||f.defaultLocale||n,defaultDirection:e.defaultDirection||f.defaultDirection||r,defaultLocaleRouteNameSuffix:e.defaultLocaleRouteNameSuffix||f.defaultLocaleRouteNameSuffix||s,routesNameSeparator:e.routesNameSeparator||f.routesNameSeparator||i,strategy:e.strategy||f.strategy||o,trailingSlash:e.trailingSlash||f.trailingSlash||a,localeCodes:e.localeCodes||f.localeCodes||l,prefixable:e.prefixable||f.prefixable||c,switchLocalePathIntercepter:e.switchLocalePathIntercepter||f.switchLocalePathIntercepter||u,dynamicRouteParamsKey:e.dynamicRouteParamsKey||f.dynamicRouteParamsKey||h}}function mK(t,e){return[t.slice(0,e),t.slice(e)]}function gK(t){const{fullPath:e,query:n,hash:r,name:s,path:i,params:o,meta:a,redirectedFrom:l,matched:c}=t;return{fullPath:e,params:o,query:n,hash:r,name:s,path:i,meta:a,matched:c,redirectedFrom:l}}function _K(t,e,n,r){if(n==="prefix"){if(j1(e.matched)&&e.matched.length>0)return e.matched[0];const[s,i]=mK(e.path,1),o=`${s}${r}${i===""?i:`/${i}`}`,a=t.options.routes.find(l=>l.path===o);if(a==null)return e;{const l=hp({},e,a);return l.path=o,t.resolve(l)}}else return t.resolve(e)}const yK=new Set(["prefix_and_default","prefix_except_default"]);function vK(t){const{currentLocale:e,defaultLocale:n,strategy:r}=t;return!(e===n&&yK.has(r))&&r!=="no_prefix"}const G1=vK;function ko(t){const e=this.router,{routesNameSeparator:n}=Su(e,this),r=t!=null?rt(t)?tt(t):t:this.route;return r==null||!r.name?void 0:H1(r.name).split(n)[0]}function pp(t,e){const n=mp.call(this,t,e);return n==null?"":n.redirectedFrom||n.fullPath}function b0(t,e){const n=mp.call(this,t,e);return n??void 0}function EK(t,e){const n=mp.call(this,t,e);return n??void 0}function mp(t,e){const n=this.router,r=this.i18n,s=e||dp(r),{routesNameSeparator:i,defaultLocale:o,defaultLocaleRouteNameSuffix:a,strategy:l,trailingSlash:c,prefixable:u}=Su(n,this);let h=t;if(Ba(t))if(h[0]==="/"){const[v,k]=t.split("?"),I=Object.fromEntries(new URLSearchParams(k));h={path:v,query:I}}else h={name:t};let f=hp({},h);if(f.path&&!f.name){let v=null;try{v=_K(n,f,l,s)}catch{}const k=v,I=ko.call(this,k);Ba(I)?(f={name:gI(I,s,{defaultLocale:o,strategy:l,routesNameSeparator:i,defaultLocaleRouteNameSuffix:a}),params:k.params,query:k.query,hash:k.hash},f.state=k.state):(u({currentLocale:s,defaultLocale:o,strategy:l})&&(f.path=`/${s}${f.path}`),f.path=c?Jq(f.path,!0):Xq(f.path,!0))}else!f.name&&!f.path&&(f.name=ko.call(this,this.route)),f.name=gI(f.name,s,{defaultLocale:o,strategy:l,routesNameSeparator:i,defaultLocaleRouteNameSuffix:a});try{const v=n.resolve(f);return(P9?v.name:v.route.name)?v:n.resolve(t)}catch(v){if(v.type===1)return null}}const Y1=t=>t;function wK(t,e){const n={};if(e===U1)return n;const r=t.meta;return rt(r)?r.value[e]||n:r[e]||n}function Vc(t){const e=this.route,n=ko.call(this,e);if(!n)return"";const{switchLocalePathIntercepter:r,dynamicRouteParamsKey:s}=Su(this.router,this),o=gK(e),a=wK(e,s)[t]||{},l={name:n,params:{...o.params,...a}},c=hp({},o,l);let u=pp.call(this,c,t);return u=r(u,t),u}function q1({addDirAttribute:t=!1,addSeoAttributes:e=!1,identifierAttribute:n="hid"}={}){const r=this.router,s=this.i18n,{defaultDirection:i}=Su(r,this),o={htmlAttrs:{},link:[],meta:[]};if(s.locales==null||s.baseUrl==null)return o;const a=dp(s),l=tK(s),c=eK(l).find(f=>f.code===a)||{code:a},u=c.iso,h=c.dir||i;return t&&(o.htmlAttrs.dir=h),e&&a&&s.locales&&(u&&(o.htmlAttrs.lang=u),TK.call(this,l,tt(s.baseUrl),o.link,n),bK.call(this,tt(s.baseUrl),o.link,o.meta,n,e),IK(c,u,o.meta,n),kK(l,u,o.meta,n)),o}function TK(t,e,n,r){const s=this.router,{defaultLocale:i,strategy:o}=Su(s,this);if(o===V1.NO_PREFIX)return;const a=new Map;for(const l of t){const c=l.iso;if(!c){B1("Locale ISO code is required to generate alternate link");continue}const[u,h]=c.split("-");u&&h&&(l.isCatchallLocale||!a.has(u))&&a.set(u,l),a.set(c,l)}for(const[l,c]of a.entries()){const u=Vc.call(this,c.code);u&&n.push({[r]:`i18n-alt-${l}`,rel:"alternate",href:S_(u,e),hreflang:l})}if(i){const l=Vc.call(this,i);l&&n.push({[r]:"i18n-xd",rel:"alternate",href:S_(l,e),hreflang:"x-default"})}}function bK(t,e,n,r,s){const i=this.route,o=b0.call(this,{...i,name:ko.call(this,i)});if(o){let a=S_(o.path,t);const l=T0(s)&&s.canonicalQueries||[];if(l.length){const c=o.query,u=new URLSearchParams;for(const f of l)if(f in c){const v=c[f];j1(v)?v.forEach(k=>u.append(f,k||"")):u.append(f,v||"")}const h=u.toString();h&&(a=`${a}?${h}`)}e.push({[r]:"i18n-can",rel:"canonical",href:a}),n.push({[r]:"i18n-og-url",property:"og:url",content:a})}}function IK(t,e,n,r){t&&e&&n.push({[r]:"i18n-og",property:"og:locale",content:K1(e)})}function kK(t,e,n,r){const s=t.filter(i=>{const o=i.iso;return o&&o!==e});if(s.length){const i=s.map(o=>({[r]:`i18n-og-alt-${o.iso}`,property:"og:locale:alternate",content:K1(o.iso)}));n.push(...i)}}function K1(t){return(t||"").replace(/-/g,"_")}function S_(t,e){return t.match(/^https?:\/\//)?t:e+t}function I0(t,e){const{router:n,route:r,i18n:s,defaultLocale:i,strategy:o,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:c}=t;return function(...u){return Reflect.apply(e,{router:n,route:r,i18n:s,defaultLocale:i,strategy:o,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:c},u)}}function SK({router:t=Lv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return I0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},ko)}function CK({router:t=Lv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return I0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},pp)}function RK({router:t=Lv(),route:e=Jd(),i18n:n=ol(),defaultLocale:r=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:i=void 0,strategy:o=void 0,trailingSlash:a=void 0}={}){return I0({router:t,route:e,i18n:n,defaultLocale:r,defaultLocaleRouteNameSuffix:s,routesNameSeparator:i,strategy:o,trailingSlash:a},Vc)}/*! js-cookie v3.0.5 | MIT */function mh(t){for(var e=1;e"u")){o=mh({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;aPromise.resolve(PK),cache:!0}],en:[{key:"../src/i18n/en.json",load:()=>Promise.resolve(OK),cache:!0}]},DK=async t=>{const e={experimental:{jsTsFormatResource:!1},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:[{code:"fr",name:"Français",iso:"fr-CA",files:["i18n/fr.json"]},{code:"en",name:"English",iso:"en-CA",files:["i18n/en.json"]}],defaultLocale:"fr",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:"i18n/",rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1,i18nModules:[]},n=async i=>{const o=await i().then(a=>a.default||a);return typeof o=="object"?o:typeof o=="function"?await o():{}},r=(i,o,a)=>{for(const l in i)typeof i[l]=="object"?(typeof o[l]!="object"&&(o[l]={}),r(i[l],o[l],a)):a?a(i[l],o[l])&&(o[l]=i[l]):o[l]=i[l]},s=async i=>{var l,c;const a=await n(i)||{};for(const[u,h]of Object.entries(a))((l=e.vueI18n)==null?void 0:l[u])===void 0||typeof((c=e.vueI18n)==null?void 0:c[u])!="object"?e.vueI18n[u]=h:r(h,e.vueI18n[u])};return e.vueI18n={messages:{}},await s(()=>mr(()=>import("./i18n.config.6e063eee.js"),[],import.meta.url)),e},Kn={experimental:{jsTsFormatResource:!1},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:[],defaultLocale:"",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1},Ah={__normalizedLocales:[{code:"fr",name:"Français",iso:"fr-CA",files:[{path:"i18n/fr.json"}]},{code:"en",name:"English",iso:"en-CA",files:[{path:"i18n/en.json"}]}]},Q1="@nuxtjs/i18n",LK=!1;function Uf(t){return Q1+" "+t}function MK(t){return t!=null&&("__VUE_I18N_BRIDGE__"in t||"_sync"in t)}function Cu(t,e,...n){const r=xo(t)?t.global:t,[s,i]=[r,r[e]];return Reflect.apply(i,s,[...n])}function xK(t,e){const n=xo(t)?t.global:t;return al(n)?n[e].value:(ku(n)||Fo(n)||MK(n),n[e])}function vI(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function FK(t,e){return function(){return Reflect.apply(e,{i18n:t.$i18n,getRouteBaseName:t.$getRouteBaseName,localePath:t.$localePath,localeRoute:t.$localeRoute,switchLocalePath:t.$switchLocalePath,localeHead:t.$localeHead,route:t.$router.currentRoute.value,router:t.$router},arguments)}}function R_(t,e,n){for(const r in t)Rt(t[r])?(Rt(e[r])||(e[r]=[]),t[r].forEach((s,i)=>{if(!e[r][i]){const o={};R_(s,o,n),e[r].push(o)}})):$e(t[r])?($e(e[r])||(e[r]={}),R_(t[r],e[r],n)):n?n(t[r],e[r])&&(e[r]=t[r]):e[r]=t[r]}const A_=new Map;async function VK(t,{key:e,load:n},r){var o,a;const s=(o=t.$config.public)==null?void 0:o.i18n;let i=null;try{const l=await n().then(c=>c.default||c);St(l)?(a=s.experimental)!=null&&a.jsTsFormatResource?i=await l(r):console.warn(Uf("JS / TS extension format is not supported by default. This can be enabled by setting `i18n.experimental.jsTsFormatResource: true` (experimental)")):(i=l,i!=null&&A_.set(e,i))}catch(l){console.error(Uf("Failed locale loading: "+l.message))}return i}async function jf(t,e,n){const r=NK[e];if(r==null){console.warn(Uf("Could not find messages for locale code"+e));return}const s={};for(const i of r){let o=null;A_.has(i.key)&&i.cache?o=A_.get(i.key):o=await VK(t,i,e),o!=null&&R_(o,s)}n(e,s)}function X1(t,e){let n;return navigator.languages&&(n=aK(t.__normalizedLocales,navigator.languages)),n}function k0(t,{useCookie:e=Kn.detectBrowserLanguage.useCookie,cookieKey:n=Kn.detectBrowserLanguage.cookieKey,localeCodes:r=[]}={}){if(e){let s;if(s=z1.get(n),s&&r.includes(s))return s}}function UK(t,e,{useCookie:n=Kn.detectBrowserLanguage.useCookie,cookieKey:r=Kn.detectBrowserLanguage.cookieKey,cookieDomain:s=Kn.detectBrowserLanguage.cookieDomain,cookieSecure:i=Kn.detectBrowserLanguage.cookieSecure,cookieCrossOrigin:o=Kn.detectBrowserLanguage.cookieCrossOrigin}={}){if(!n)return;const a=new Date,l={expires:new Date(a.setDate(a.getDate()+365)),path:"/",sameSite:o?"none":"lax",secure:o||i};s&&(l.domain=s),z1.set(r,t,l)}const J1={locale:"",stat:!1,reason:"unknown",from:"unknown"};function Z1(t,e,n,r,s,i=[],o=""){const{strategy:a}=n,{ssg:l,callType:c,firstAccess:u}=s;if(a==="no_prefix"&&l==="ssg_ignore")return{locale:"",stat:!0,reason:"detect_ignore_on_ssg"};if(!u)return{locale:"",stat:!1,reason:"first_access_only"};const{redirectOn:h,alwaysRedirect:f,useCookie:v,fallbackLocale:k}=n.detectBrowserLanguage,I=ge(t)?t:t.path;if(a!=="no_prefix"){if(h==="root"){if(I!=="/")return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if(h==="no prefix"&&!f&&I.match(k_(i)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"}}let T="unknown",g,m;v&&(m=g=k0(e,{...n.detectBrowserLanguage,localeCodes:i}),T="cookie"),m||(m=X1(r),T="navigator_or_header");const _=m||k;!m&&k&&(T="fallback");const d=o||n.vueI18n.locale;if(_&&(!v||f||!g)){if(a==="no_prefix")return{locale:_,stat:!0,from:T};if(c==="setup"&&_!==d)return{locale:_,stat:!0,from:T};if(f){const E=I==="/",p=h==="all",y=h==="no prefix"&&!I.match(k_(i));if(E||p||y)return{locale:_,stat:!0,from:T}}}return l==="ssg_setup"&&_?{locale:_,stat:!0,from:T}:(T==="navigator_or_header"||T==="cookie")&&_?{locale:_,stat:!0,from:T}:{locale:"",stat:!1,reason:"not_found_match"}}function jK(){let t;return t=window.location.host,t}function BK(t){let e=jK()||"";if(e){const n=t.find(r=>{if(r&&r.domain){let s=r.domain;return Co(r.domain)&&(s=r.domain.replace(/(http|https):\/\//,"")),s===e}return!1});if(n)return n.code;e=""}return e}function eO(t,e,n){var o,a;const r=n==null?void 0:n.$config.public.i18n,s=e.find(l=>l.code===t),i=((a=(o=r==null?void 0:r.locales)==null?void 0:o[t])==null?void 0:a.domain)??(s==null?void 0:s.domain);if(i){if(Co(i,{strict:!0}))return i;let l;return l=new URL(window.location.origin).protocol,l+"//"+i}console.warn(Uf("Could not find domain name for locale "+t))}function $K(t){const{route:e,router:n,i18n:r}=t||{};return SK({route:e||nl(),router:n||Nr(),i18n:r||Io(ct().$i18n)})}function HK(t){const{route:e,router:n,i18n:r}=t||{};return CK({route:e||nl(),router:n||Nr(),i18n:r||Io(ct().$i18n)})}const WK=async(t,e)=>{let n,r;const s=([n,r]=_i(()=>jG()),n=await n,r(),n),i=$K({route:t}),o=HK({route:t}),{auth:a=!0}=t.meta;if(a==="guest"&&s&&i(t)!=="index")return Lg({path:o({name:"index"})});if(a===!0&&!s&&i(t)!=="login")return Lg({path:o({name:"login"})})},GK=[OH,WK],tc={};function YK(t,e,n){const{pathname:r,search:s,hash:i}=e,o=t.indexOf("#");if(o>-1){const c=i.includes(t.slice(o))?t.slice(o).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),WE(u,"")}const a=WE(r,t),l=!n||qm(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const qK=en({name:"nuxt:router",enforce:"pre",async setup(t){var I,T;let e,n,r=pd().app.baseURL;Fn.hashMode&&!r.includes("#")&&(r+="#");const s=((I=Fn.history)==null?void 0:I.call(Fn,r))??(Fn.hashMode?L$(r):XR(r)),i=((T=Fn.routes)==null?void 0:T.call(Fn,RT))??RT;let o;const a=YK(r,window.location,t.payload.path),l=SH({...Fn,scrollBehavior:(g,m,_)=>{var d;if(m===Vr){o=_;return}return l.options.scrollBehavior=Fn.scrollBehavior,(d=Fn.scrollBehavior)==null?void 0:d.call(Fn,g,Vr,o||_)},history:s,routes:i});t.vueApp.use(l);const c=wa(l.currentRoute.value);l.afterEach((g,m)=>{c.value=m}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const u=wa(l.resolve(a)),h=()=>{u.value=l.currentRoute.value};t.hook("page:finish",h),l.afterEach((g,m)=>{var _,d,E,p;((d=(_=g.matched[0])==null?void 0:_.components)==null?void 0:d.default)===((p=(E=m.matched[0])==null?void 0:E.components)==null?void 0:p.default)&&h()});const f={};for(const g in u.value)Object.defineProperty(f,g,{get:()=>u.value[g]});t._route=Gc(f),t._middleware=t._middleware||{global:[],named:{}};const v=Kd();try{[e,n]=_i(()=>l.isReady()),await e,n()}catch(g){[e,n]=_i(()=>t.runWithContext(()=>Zo(g))),await e,n()}const k=t.payload.state._layout;return l.beforeEach(async(g,m)=>{var _;g.meta=ts(g.meta),t.isHydrating&&k&&!po(g.meta.layout)&&(g.meta.layout=k),t._processingMiddleware=!0;{const d=new Set([...GK,...t._middleware.global]);for(const E of g.matched){const p=E.meta.middleware;if(p)if(Array.isArray(p))for(const y of p)d.add(y);else d.add(p)}for(const E of d){const p=typeof E=="string"?t._middleware.named[E]||await((_=tc[E])==null?void 0:_.call(tc).then(w=>w.default||w)):E;if(!p)throw new Error(`Unknown route middleware: '${E}'.`);const y=await t.runWithContext(()=>p(g,m));if(!t.payload.serverRendered&&t.isHydrating&&(y===!1||y instanceof Error)){const w=y||Ng({statusCode:404,statusMessage:`Page Not Found: ${a}`});return await t.runWithContext(()=>Zo(w)),!1}if(y!==!0&&(y||y===!1))return y}}}),l.onError(()=>{delete t._processingMiddleware}),l.afterEach(async(g,m,_)=>{delete t._processingMiddleware,!t.isHydrating&&v.value&&await t.runWithContext(VB),g.matched.length===0&&await t.runWithContext(()=>Zo(Ng({statusCode:404,fatal:!1,statusMessage:`Page not found: ${g.fullPath}`})))}),t.hooks.hookOnce("app:created",async()=>{try{await l.replace({...l.resolve(a),name:void 0,force:!0}),l.options.scrollBehavior=Fn.scrollBehavior}catch(g){await t.runWithContext(()=>Zo(g))}}),{provide:{router:l}}}}),KK=en({name:"nuxt:payload",setup(t){Nr().beforeResolve(async(e,n)=>{if(e.path===n.path)return;const r=await cT(e.path);r&&Object.assign(t.static.data,r.data)}),jB(()=>{t.hooks.hook("link:prefetch",async e=>{dd(e).protocol||await cT(e)})})}});/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let eO;const Su=t=>eO=t,tO=Symbol();function P_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Zr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Zr||(Zr={}));const nO=typeof window<"u",nc=nO,yI=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function zK(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function I0(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){iO(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function rO(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Rh(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Ah=typeof navigator=="object"?navigator:{userAgent:""},sO=(()=>/Macintosh/.test(Ah.userAgent)&&/AppleWebKit/.test(Ah.userAgent)&&!/Safari/.test(Ah.userAgent))(),iO=nO?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!sO?QK:"msSaveOrOpenBlob"in Ah?XK:JK:()=>{};function QK(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?rO(r.href)?I0(t,e,n):(r.target="_blank",Rh(r)):Rh(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Rh(r)},0))}function XK(t,e="download",n){if(typeof t=="string")if(rO(t))I0(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Rh(r)})}else navigator.msSaveOrOpenBlob(zK(t,n),e)}function JK(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return I0(t,e,n);const s=t.type==="application/octet-stream",i=/constructor/i.test(String(yI.HTMLElement))||"safari"in yI,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||s&&i||sO)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=o?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(t)}else{const a=URL.createObjectURL(t);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function Kt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function k0(t){return"_a"in t&&"install"in t}function oO(){if(!("clipboard"in navigator))return Kt("Your browser doesn't support the Clipboard API","error"),!0}function aO(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(Kt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ZK(t){if(!oO())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),Kt("Global state copied to clipboard.")}catch(e){if(aO(e))return;Kt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function e5(t){if(!oO())try{lO(t,JSON.parse(await navigator.clipboard.readText())),Kt("Global state pasted from clipboard.")}catch(e){if(aO(e))return;Kt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function t5(t){try{iO(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Kt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let ms;function n5(){ms||(ms=document.createElement("input"),ms.type="file",ms.accept=".json");function t(){return new Promise((e,n)=>{ms.onchange=async()=>{const r=ms.files;if(!r)return e(null);const s=r.item(0);return e(s?{text:await s.text(),file:s}:null)},ms.oncancel=()=>e(null),ms.onerror=n,ms.click()})}return t}async function r5(t){try{const n=await n5()();if(!n)return;const{text:r,file:s}=n;lO(t,JSON.parse(r)),Kt(`Global state imported from "${s.name}".`)}catch(e){Kt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function lO(t,e){for(const n in e){const r=t.state.value[n];r&&Object.assign(r,e[n])}}function pr(t){return{_custom:{display:t}}}const cO="🍍 Pinia (root)",O_="_root";function s5(t){return k0(t)?{id:O_,label:cO}:{id:t.$id,label:t.$id}}function i5(t){if(k0(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(i=>({editable:!0,key:i,value:t.state.value[i]})),getters:n.filter(i=>r.get(i)._getters).map(i=>{const o=r.get(i);return{editable:!1,key:i,value:o._getters.reduce((a,l)=>(a[l]=o[l],a),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function o5(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:pr(t.type),key:pr(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function a5(t){switch(t){case Zr.direct:return"mutation";case Zr.patchFunction:return"$patch";case Zr.patchObject:return"$patch";default:return"unknown"}}let ra=!0;const Ph=[],Ki="pinia:mutations",un="pinia",{assign:l5}=Object,Uf=t=>"🍍 "+t;function c5(t,e){zd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ph,app:t},n=>{typeof n.now!="function"&&Kt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ki,label:"Pinia 🍍",color:15064968}),n.addInspector({id:un,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ZK(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await e5(e),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{t5(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await r5(e),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const s=e._s.get(r);s?typeof s.$reset!="function"?Kt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),Kt(`Store "${r}" reset.`)):Kt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const i=r.componentInstance&&r.componentInstance.proxy;if(i&&i._pStores){const o=r.componentInstance.proxy._pStores;Object.values(o).forEach(a=>{r.instanceData.state.push({type:Uf(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:Ve(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Uf(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===un){let s=[e];s=s.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?s.filter(i=>"$id"in i?i.$id.toLowerCase().includes(r.filter.toLowerCase()):cO.toLowerCase().includes(r.filter.toLowerCase())):s).map(s5)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===un){const s=r.nodeId===O_?e:e._s.get(r.nodeId);if(!s)return;s&&(r.state=i5(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===t&&r.inspectorId===un){const i=r.nodeId===O_?e:e._s.get(r.nodeId);if(!i)return Kt(`store "${r.nodeId}" not found`,"error");const{path:o}=r;k0(i)?o.unshift("state"):(o.length!==1||!i._customProperties.has(o[0])||o[0]in i.$state)&&o.unshift("$state"),ra=!1,r.set(i,o,r.state.value),ra=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),i=e._s.get(s);if(!i)return Kt(`store "${s}" not found`,"error");const{path:o}=r;if(o[0]!=="state")return Kt(`Invalid path for store "${s}": + */let tO;const Ru=t=>tO=t,nO=Symbol();function P_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Zr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Zr||(Zr={}));const rO=typeof window<"u",nc=rO,EI=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function zK(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function S0(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){oO(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function sO(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ph(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Oh=typeof navigator=="object"?navigator:{userAgent:""},iO=(()=>/Macintosh/.test(Oh.userAgent)&&/AppleWebKit/.test(Oh.userAgent)&&!/Safari/.test(Oh.userAgent))(),oO=rO?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!iO?QK:"msSaveOrOpenBlob"in Oh?XK:JK:()=>{};function QK(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?sO(r.href)?S0(t,e,n):(r.target="_blank",Ph(r)):Ph(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ph(r)},0))}function XK(t,e="download",n){if(typeof t=="string")if(sO(t))S0(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ph(r)})}else navigator.msSaveOrOpenBlob(zK(t,n),e)}function JK(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return S0(t,e,n);const s=t.type==="application/octet-stream",i=/constructor/i.test(String(EI.HTMLElement))||"safari"in EI,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||s&&i||iO)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=o?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(t)}else{const a=URL.createObjectURL(t);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function Kt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function C0(t){return"_a"in t&&"install"in t}function aO(){if(!("clipboard"in navigator))return Kt("Your browser doesn't support the Clipboard API","error"),!0}function lO(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(Kt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function ZK(t){if(!aO())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),Kt("Global state copied to clipboard.")}catch(e){if(lO(e))return;Kt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function e5(t){if(!aO())try{cO(t,JSON.parse(await navigator.clipboard.readText())),Kt("Global state pasted from clipboard.")}catch(e){if(lO(e))return;Kt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function t5(t){try{oO(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Kt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let gs;function n5(){gs||(gs=document.createElement("input"),gs.type="file",gs.accept=".json");function t(){return new Promise((e,n)=>{gs.onchange=async()=>{const r=gs.files;if(!r)return e(null);const s=r.item(0);return e(s?{text:await s.text(),file:s}:null)},gs.oncancel=()=>e(null),gs.onerror=n,gs.click()})}return t}async function r5(t){try{const n=await n5()();if(!n)return;const{text:r,file:s}=n;cO(t,JSON.parse(r)),Kt(`Global state imported from "${s.name}".`)}catch(e){Kt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function cO(t,e){for(const n in e){const r=t.state.value[n];r&&Object.assign(r,e[n])}}function pr(t){return{_custom:{display:t}}}const uO="🍍 Pinia (root)",O_="_root";function s5(t){return C0(t)?{id:O_,label:uO}:{id:t.$id,label:t.$id}}function i5(t){if(C0(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(i=>({editable:!0,key:i,value:t.state.value[i]})),getters:n.filter(i=>r.get(i)._getters).map(i=>{const o=r.get(i);return{editable:!1,key:i,value:o._getters.reduce((a,l)=>(a[l]=o[l],a),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function o5(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:pr(t.type),key:pr(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function a5(t){switch(t){case Zr.direct:return"mutation";case Zr.patchFunction:return"$patch";case Zr.patchObject:return"$patch";default:return"unknown"}}let ra=!0;const Nh=[],Ki="pinia:mutations",un="pinia",{assign:l5}=Object,Bf=t=>"🍍 "+t;function c5(t,e){zd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Nh,app:t},n=>{typeof n.now!="function"&&Kt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ki,label:"Pinia 🍍",color:15064968}),n.addInspector({id:un,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{ZK(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await e5(e),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{t5(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await r5(e),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const s=e._s.get(r);s?typeof s.$reset!="function"?Kt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),Kt(`Store "${r}" reset.`)):Kt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const i=r.componentInstance&&r.componentInstance.proxy;if(i&&i._pStores){const o=r.componentInstance.proxy._pStores;Object.values(o).forEach(a=>{r.instanceData.state.push({type:Bf(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:Ve(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Bf(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===un){let s=[e];s=s.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?s.filter(i=>"$id"in i?i.$id.toLowerCase().includes(r.filter.toLowerCase()):uO.toLowerCase().includes(r.filter.toLowerCase())):s).map(s5)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===un){const s=r.nodeId===O_?e:e._s.get(r.nodeId);if(!s)return;s&&(r.state=i5(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===t&&r.inspectorId===un){const i=r.nodeId===O_?e:e._s.get(r.nodeId);if(!i)return Kt(`store "${r.nodeId}" not found`,"error");const{path:o}=r;C0(i)?o.unshift("state"):(o.length!==1||!i._customProperties.has(o[0])||o[0]in i.$state)&&o.unshift("$state"),ra=!1,r.set(i,o,r.state.value),ra=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),i=e._s.get(s);if(!i)return Kt(`store "${s}" not found`,"error");const{path:o}=r;if(o[0]!=="state")return Kt(`Invalid path for store "${s}": ${o} -Only state can be modified.`);o[0]="$state",ra=!1,r.set(i,o,r.state.value),ra=!0}})})}function u5(t,e){Ph.includes(Uf(e.$id))||Ph.push(Uf(e.$id)),zd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ph,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:o,onError:a,name:l,args:c})=>{const u=uO++;n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:pr(e.$id),action:pr(l),args:c},groupId:u}}),o(h=>{hi=void 0,n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:pr(e.$id),action:pr(l),args:c,result:h},groupId:u}})}),a(h=>{hi=void 0,n.addTimelineEvent({layerId:Ki,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:pr(e.$id),action:pr(l),args:c,error:h},groupId:u}})})},!0),e._customProperties.forEach(o=>{Vt(()=>tt(e[o]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(un),ra&&n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"Change",subtitle:o,data:{newValue:a,oldValue:l},groupId:hi}})},{deep:!0})}),e.$subscribe(({events:o,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(un),!ra)return;const c={time:r(),title:a5(a),data:l5({store:pr(e.$id)},o5(o)),groupId:hi};a===Zr.patchFunction?c.subtitle="⤵️":a===Zr.patchObject?c.subtitle="🧩":o&&!Array.isArray(o)&&(c.subtitle=o.type),o&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),n.addTimelineEvent({layerId:Ki,event:c})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=xs(o=>{s(o),n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:pr(e.$id),info:pr("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un)});const{$dispose:i}=e;e.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Kt(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Kt(`"${e.$id}" store installed 🆕`)})}let uO=0,hi;function vI(t,e,n){const r=e.reduce((s,i)=>(s[i]=Ve(t)[i],s),{});for(const s in r)t[s]=function(){const i=uO,o=n?new Proxy(t,{get(...l){return hi=i,Reflect.get(...l)},set(...l){return hi=i,Reflect.set(...l)}}):t;hi=i;const a=r[s].apply(o,arguments);return hi=void 0,a}}function h5({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,vI(e,Object.keys(n.actions),e._isOptionsAPI);const r=e._hotUpdate;Ve(e)._hotUpdate=function(s){r.apply(this,arguments),vI(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)},u5(t,e)}function f5(){const t=Wc(!0),e=t.run(()=>Ze({}));let n=[],r=[];const s=xs({install(i){Su(s),s._a=i,i.provide(tO,s),i.config.globalProperties.$pinia=s,nc&&c5(i,s),r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!R9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return nc&&typeof Proxy<"u"&&s.use(h5),s}const hO=()=>{};function EI(t,e,n,r=hO){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Xf()&&K_(s),s}function Go(t,...e){t.slice().forEach(n=>{n(...e)})}const d5=t=>t();function N_(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];P_(s)&&P_(r)&&t.hasOwnProperty(n)&&!rt(r)&&!Ps(r)?t[n]=N_(s,r):t[n]=r}return t}const p5=Symbol();function m5(t){return!P_(t)||!t.hasOwnProperty(p5)}const{assign:dr}=Object;function g5(t){return!!(rt(t)&&t.effect)}function _5(t,e,n,r){const{state:s,actions:i,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=s?s():{});const u=_D(n.state.value[t]);return dr(u,i,Object.keys(o||{}).reduce((h,f)=>(h[f]=xs(lt(()=>{Su(n);const v=n._s.get(t);return o[f].call(v,v)})),h),{}))}return l=fO(t,c,e,n,r,!0),l}function fO(t,e,n={},r,s,i){let o;const a=dr({actions:{}},n),l={deep:!0};let c,u,h=[],f=[],v;const k=r.state.value[t];!i&&!k&&(r.state.value[t]={});const I=Ze({});let T;function g(S){let O;c=u=!1,typeof S=="function"?(S(r.state.value[t]),O={type:Zr.patchFunction,storeId:t,events:v}):(N_(r.state.value[t],S),O={type:Zr.patchObject,payload:S,storeId:t,events:v});const C=T=Symbol();Ni().then(()=>{T===C&&(c=!0)}),u=!0,Go(h,O,r.state.value[t])}const m=i?function(){const{state:O}=n,C=O?O():{};this.$patch(R=>{dr(R,C)})}:hO;function _(){o.stop(),h=[],f=[],r._s.delete(t)}function d(S,O){return function(){Su(r);const C=Array.from(arguments),R=[],L=[];function G(Y){R.push(Y)}function U(Y){L.push(Y)}Go(f,{args:C,name:S,store:y,after:G,onError:U});let B;try{B=O.apply(this&&this.$id===t?this:y,C)}catch(Y){throw Go(L,Y),Y}return B instanceof Promise?B.then(Y=>(Go(R,Y),Y)).catch(Y=>(Go(L,Y),Promise.reject(Y))):(Go(R,B),B)}}const E=xs({actions:{},getters:{},state:[],hotState:I}),p={_p:r,$id:t,$onAction:EI.bind(null,f),$patch:g,$reset:m,$subscribe(S,O={}){const C=EI(h,S,O.detached,()=>R()),R=o.run(()=>Vt(()=>r.state.value[t],L=>{(O.flush==="sync"?u:c)&&S({storeId:t,type:Zr.direct,events:v},L)},dr({},l,O)));return C},$dispose:_},y=ts(nc?dr({_hmrPayload:E,_customProperties:xs(new Set)},p):p);r._s.set(t,y);const w=r._a&&r._a.runWithContext||d5,A=r._e.run(()=>(o=Wc(),w(()=>o.run(e))));for(const S in A){const O=A[S];if(rt(O)&&!g5(O)||Ps(O))i||(k&&m5(O)&&(rt(O)?O.value=k[S]:N_(O,k[S])),r.state.value[t][S]=O);else if(typeof O=="function"){const C=d(S,O);A[S]=C,a.actions[S]=O}}if(dr(y,A),dr(Ve(y),A),Object.defineProperty(y,"$state",{get:()=>r.state.value[t],set:S=>{g(O=>{dr(O,S)})}}),nc){const S={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(O=>{Object.defineProperty(y,O,dr({value:y[O]},S))})}return r._p.forEach(S=>{if(nc){const O=o.run(()=>S({store:y,app:r._a,pinia:r,options:a}));Object.keys(O||{}).forEach(C=>y._customProperties.add(C)),dr(y,O)}else dr(y,o.run(()=>S({store:y,app:r._a,pinia:r,options:a})))}),k&&i&&n.hydrate&&n.hydrate(y.$state,k),c=!0,u=!0,y}function cJ(t,e,n){let r,s;const i=typeof e=="function";typeof t=="string"?(r=t,s=i?n:e):(s=t,r=t.id);function o(a,l){const c=my();return a=a||(c?Ut(tO,null):null),a&&Su(a),a=eO,a._s.has(r)||(i?fO(r,e,s,a):_5(r,s,a)),a._s.get(r)}return o.$id=r,o}function uJ(t){{t=Ve(t);const e={};for(const n in t){const r=t[n];(rt(r)||Ps(r))&&(e[n]=ed(t,n))}return e}}const y5=en(t=>{const e=f5();return t.vueApp.use(e),Su(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}),v5=en({name:"nuxt:global-components"}),so={default:()=>mr(()=>import("./default.a5b5264c.js"),["./default.a5b5264c.js","./Logo.c24d64fa.js","./Logo.419c1083.css","./hamburger.6acfa935.js","./index.892f0c33.js","./auth.ef97e35f.js"],import.meta.url).then(t=>t.default||t),login:()=>mr(()=>import("./login.7d8cee7d.js"),["./login.7d8cee7d.js","./Logo.c24d64fa.js","./Logo.419c1083.css"],import.meta.url).then(t=>t.default||t)},E5=en({name:"nuxt:prefetch",setup(t){const e=Nr();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof so[r]=="function"&&await so[r]()})}),t.hooks.hook("link:prefetch",n=>{var o,a,l,c;if(Co(n))return;const r=e.resolve(n);if(!r)return;const s=(o=r==null?void 0:r.meta)==null?void 0:o.layout;let i=Array.isArray((a=r==null?void 0:r.meta)==null?void 0:a.middleware)?(l=r==null?void 0:r.meta)==null?void 0:l.middleware:[(c=r==null?void 0:r.meta)==null?void 0:c.middleware];i=i.filter(u=>typeof u=="string");for(const u of i)typeof tc[u]=="function"&&tc[u]();s&&typeof so[s]=="function"&&so[s]()})}}),w5=en(()=>({provide:{firebaseApp:dS(fd().public.vuefire.config)}})),T5=en(t=>{const e=t.$firebaseApp;FG(t.payload.vuefireUser)(e,t.vueApp)}),b5=en(t=>{const e=t.$firebaseApp;t.vueApp.use(VG,{firebaseApp:e})}),I5="__NUXT_COLOR_MODE__",hJ="ColorScheme",k5="nuxt-color-mode",gs=window[I5],S5=en(t=>{const e=GR("color-mode",()=>ts({preference:gs.preference,value:gs.value,unknown:!1,forced:!1})).value;Nr().afterEach(s=>{const i=s.meta.colorMode;i&&i!=="system"?(e.value=i,e.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?gs.getColorScheme():e.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!e.forced&&e.preference==="system"&&(e.value=gs.getColorScheme())}))}Vt(()=>e.preference,s=>{var i;e.forced||(s==="system"?(e.value=gs.getColorScheme(),r()):e.value=s,(i=window.localStorage)==null||i.setItem(k5,s))},{immediate:!0}),Vt(()=>e.value,(s,i)=>{gs.removeColorScheme(i),gs.addColorScheme(s)}),e.preference==="system"&&r(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=gs.preference,e.value=gs.value,e.unknown=!1)}),t.provide("colorMode",e)}),C5=en(()=>{});function R5(t,e){return ku(t,"setLocale",e)}function A5(t,e){return ku(t,"setLocaleCookie",e)}function P5(t,e,n){return ku(t,"mergeLocaleMessage",e,n)}function O5(t,e,n,r,s){return ku(t,"onBeforeLanguageSwitch",e,n,r,s)}function N5(t,e,n){return ku(t,"onLanguageSwitched",e,n)}function dO(t,e){let n=[];if(Rt(t))n=t;else if($e(t)){const r=[...e,"default"];for(const s of r)t[s]&&(n=[...n,...t[s].filter(Boolean)])}else ge(t)&&e.every(r=>r!==t)&&n.push(t);return n}async function D5(t,e,n){const{defaultLocale:r,initialLocale:s,localeCodes:i,fallbackLocale:o,lazy:a}=n,l=(u,h)=>{const f=e[u]||{};e[u]={...f,...h}};if(a&&o){const u=dO(o,[r,s]);await Promise.all(u.map(h=>Vf(t,h,l)))}const c=a?[...new Set().add(r).add(s)]:i;return await Promise.all(c.map(u=>Vf(t,u,l))),e}async function wI(t,e,n,{useCookie:r=qn.detectBrowserLanguage.useCookie,skipSettingLocaleOnNavigate:s=qn.skipSettingLocaleOnNavigate,differentDomains:i=qn.differentDomains,initial:o=!1,lazy:a=!1}={}){let l=!1;const c=dp(n);if(!t)return[l,c];if(!o&&i)return[l,c];if(c===t)return[l,c];const u=await O5(n,c,t,o,e),h=nK(n);if(u&&h&&h.includes(u)){if(u===c)return[l,c];t=u}const f=MK(n,"fallbackLocale");if(a){const v=(k,I)=>P5(n,k,I);if(f){const k=dO(f,[t]);await Promise.all(k.map(I=>Vf(e,I,v)))}await Vf(e,t,v)}return s?[l,c]:(r&&A5(n,t),B1(n,t),await N5(n,c,t),l=!0,[l,c])}function TI(t,e,n,r,s,i,o,a=[]){const{strategy:l,defaultLocale:c,differentDomains:u}=r,h=St(s)?s():s,{locale:f,stat:v,reason:k,from:I}=r.detectBrowserLanguage?J1(t,e,r,Ch,i,a,h):X1;if(k==="detect_ignore_on_ssg")return h;if((I==="navigator_or_header"||I==="cookie"||I==="fallback")&&f)return f;let T=f;return T||(u?T=BK(o):l!=="no_prefix"?T=n(t):r.detectBrowserLanguage||(T=h)),!T&&r.detectBrowserLanguage&&r.detectBrowserLanguage.useCookie&&(T=b0(e,{...r.detectBrowserLanguage,localeCodes:a})||""),T||(T=c||""),T}function bI({route:t,context:e,targetLocale:n,routeLocaleGetter:r,nuxtI18nOptions:s,calledWithRouting:i=!1}){const{strategy:o,differentDomains:a}=s;let l="";const{fullPath:c}=t.to;if(!a&&(i||o!=="no_prefix"&&o!=="prefix_and_default")&&r(t.to)!==n){const u=e.$switchLocalePath(n)||e.$localePath(c,n);ge(u)&&u&&!qm(u,c)&&!u.startsWith("//")&&(l=t.from&&t.from.fullPath===u?"":u)}if((a||!0)&&r(t.to)!==n){const h=RK({i18n:Io(e.$i18n),route:t.to,router:e.$router})(n);ge(h)&&h&&!qm(h,c)&&!h.startsWith("//")&&(l=h)}return l}function L5(t){return $e(t)&&"path"in t&&"statusCode"in t}const x5=()=>GR(z1+":redirect",()=>"");function II(t,e){return Lg(t,{redirectCode:e})}async function kI(t,{status:e=302,rootRedirect:n=qn.rootRedirect,differentDomains:r=qn.differentDomains,skipSettingLocaleOnNavigate:s=qn.skipSettingLocaleOnNavigate,enableNavigate:i=!1}={}){const{i18n:o,locale:a,route:l}=t;let{redirectPath:c}=t;if(l.path==="/"&&n)return ge(n)?c="/"+n:L5(n)&&(c="/"+n.path,e=n.statusCode),II(c,e);if(!(s&&(o.__pendingLocale=a,o.__pendingLocalePromise=new Promise(u=>{o.__resolvePendingLocalePromise=u}),!i))){if(r){const u=x5();u.value&&u.value!==c&&(u.value="",window.location.assign(c))}else if(c)return II(c,e)}}function M5(t,e){_I(t,"$i18n",e.global);for(const n of[["getRouteBaseName",ko],["localePath",pp],["localeRoute",w0],["switchLocalePath",Vc],["localeHead",Y1]])_I(t,"$"+n[0],FK(t,n[1]))}function F5(t){return e=>W1(e)&&!t}function V5(t,e,n){return(r,s)=>{if(t){const i=Z1(s,e,n);return i?qa(i,r):r}else return G1(r)}}function U5(t,e){return n=>{var l,c;if(St(t))return t(n);const{differentDomains:r,localeCodeLoader:s,normalizedLocales:i}=e,o=St(s)?s():s;if(r&&o){const u=Z1(o,i,e.nuxt);if(u)return u}const a=(c=(l=n.$config)==null?void 0:l.public)==null?void 0:c.i18n;return a!=null&&a.baseUrl?a.baseUrl:t}}const j5=en({name:"i18n:plugin",parallel:LK,async setup(t){let e,n;const r=Nr(),s=nl(),{vueApp:i}=t,o=t,a=([e,n]=_i(()=>DK()),e=await e,n(),e),l=a.detectBrowserLanguage&&a.detectBrowserLanguage.useCookie,{__normalizedLocales:c}=Ch,{defaultLocale:u,differentDomains:h,skipSettingLocaleOnNavigate:f,lazy:v,routesNameSeparator:k,defaultLocaleRouteNameSuffix:I,strategy:T,rootRedirect:g}=a;a.baseUrl=U5(a.baseUrl,{differentDomains:h,nuxt:o,localeCodeLoader:u,normalizedLocales:c});const m=pK($i,k,I),_=a.vueI18n;_.messages=_.messages||{},_.fallbackLocale=_.fallbackLocale??!1,fK(r,{...a,dynamicRouteParamsKey:"nuxtI18n",switchLocalePathIntercepter:V5(h,c,o),prefixable:F5(h)});const d=R=>R||_.locale||"en-US";let E=TI(s,t.ssrContext,m,a,d(u),{ssg:T==="no_prefix"?"ssg_ignore":"normal",callType:"setup",firstAccess:!0},c,$i);_.messages=([e,n]=_i(()=>D5(o,_.messages,{...a,initialLocale:E,fallbackLocale:_.fallbackLocale,localeCodes:$i})),e=await e,n(),e),E=d(E);const p=Oq({..._,locale:E});let y=!0;const w=R=>E!==R&&y;let A=!0;const S=()=>A;S()&&T==="no_prefix"&&t.hook("app:mounted",async()=>{const{locale:R,stat:L,reason:G,from:U}=a.detectBrowserLanguage?J1(s,o,a,Ch,{ssg:"ssg_setup",callType:"setup",firstAccess:!0},$i,E):X1;R5(p,R),A=!1}),lK(p,{locales:a.locales,localeCodes:$i,baseUrl:a.baseUrl,context:o,hooks:{onExtendComposer(R){R.strategy=T,R.localeProperties=lt(()=>c.find(L=>L.code===R.locale.value)||{code:R.locale.value}),R.setLocale=async L=>{const G=w(L),[U]=await wI(L,o,p,{useCookie:l,differentDomains:h,initial:G,skipSettingLocaleOnNavigate:f,lazy:v});U&&G&&(y=!1);const B=bI({route:{to:s},context:o,targetLocale:L,routeLocaleGetter:m,nuxtI18nOptions:a});await kI({i18n:p,redirectPath:B,locale:L,route:s},{differentDomains:h,skipSettingLocaleOnNavigate:f,rootRedirect:g,enableNavigate:!0})},R.differentDomains=h,R.defaultLocale=u,R.getBrowserLocale=()=>Q1(Ch,t.ssrContext),R.getLocaleCookie=()=>b0(t.ssrContext,{...a.detectBrowserLanguage,localeCodes:$i}),R.setLocaleCookie=L=>UK(L,t.ssrContext,a.detectBrowserLanguage||void 0),R.onBeforeLanguageSwitch=(L,G,U,B)=>t.callHook("i18n:beforeLocaleSwitch",{oldLocale:L,newLocale:G,initialSetup:U,context:B}),R.onLanguageSwitched=(L,G)=>t.callHook("i18n:localeSwitched",{oldLocale:L,newLocale:G}),R.finalizePendingLocaleChange=async()=>{p.__pendingLocale&&(B1(p,p.__pendingLocale),p.__resolvePendingLocalePromise&&await p.__resolvePendingLocalePromise(),p.__pendingLocale=void 0)},R.waitForPendingLocaleChange=async()=>{p.__pendingLocale&&p.__pendingLocalePromise&&await p.__pendingLocalePromise}},onExtendExportedGlobal(R){return{strategy:{get(){return R.strategy}},localeProperties:{get(){return R.localeProperties.value}},setLocale:{get(){return async L=>Reflect.apply(R.setLocale,R,[L])}},differentDomains:{get(){return R.differentDomains}},defaultLocale:{get(){return R.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(R.getBrowserLocale,R,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(R.getLocaleCookie,R,[])}},setLocaleCookie:{get(){return L=>Reflect.apply(R.setLocaleCookie,R,[L])}},onBeforeLanguageSwitch:{get(){return(L,G,U,B)=>Reflect.apply(R.onBeforeLanguageSwitch,R,[L,G,U,B])}},onLanguageSwitched:{get(){return(L,G)=>Reflect.apply(R.onLanguageSwitched,R,[L,G])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(R.finalizePendingLocaleChange,R,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(R.waitForPendingLocaleChange,R,[])}}}},onExtendVueI18n(R){return{strategy:{get(){return R.strategy}},localeProperties:{get(){return R.localeProperties.value}},setLocale:{get(){return async L=>Reflect.apply(R.setLocale,R,[L])}},differentDomains:{get(){return R.differentDomains}},defaultLocale:{get(){return R.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(R.getBrowserLocale,R,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(R.getLocaleCookie,R,[])}},setLocaleCookie:{get(){return L=>Reflect.apply(R.setLocaleCookie,R,[L])}},onBeforeLanguageSwitch:{get(){return(L,G,U,B)=>Reflect.apply(R.onBeforeLanguageSwitch,R,[L,G,U,B])}},onLanguageSwitched:{get(){return(L,G)=>Reflect.apply(R.onLanguageSwitched,R,[L,G])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(R.finalizePendingLocaleChange,R,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(R.waitForPendingLocaleChange,R,[])}}}}}});const O={__composerExtend:R=>{const L=Io(p);return R.strategy=L.strategy,R.localeProperties=lt(()=>L.localeProperties.value),R.setLocale=L.setLocale,R.differentDomains=L.differentDomains,R.getBrowserLocale=L.getBrowserLocale,R.getLocaleCookie=L.getLocaleCookie,R.setLocaleCookie=L.setLocaleCookie,R.onBeforeLanguageSwitch=L.onBeforeLanguageSwitch,R.onLanguageSwitched=L.onLanguageSwitched,R.finalizePendingLocaleChange=L.finalizePendingLocaleChange,R.waitForPendingLocaleChange=L.waitForPendingLocaleChange,()=>{}}};i.use(p,O),M5(o,p);let C=0;xB("locale-changing",async(R,L)=>{let G,U;const B=TI(R,t.ssrContext,m,a,()=>dp(p)||d(u),{ssg:S()&&T==="no_prefix"?"ssg_ignore":"normal",callType:"routing",firstAccess:C===0},c,$i),Y=w(B),[F]=([G,U]=_i(()=>wI(B,o,p,{useCookie:l,differentDomains:h,initial:Y,skipSettingLocaleOnNavigate:f,lazy:v})),G=await G,U(),G);F&&Y&&(y=!1);const j=bI({route:{to:R,from:L},context:o,targetLocale:B,routeLocaleGetter:m,nuxtI18nOptions:a,calledWithRouting:!0});return C++,kI({i18n:p,redirectPath:j,locale:B,route:R},{differentDomains:h,skipSettingLocaleOnNavigate:f,rootRedirect:g})},{global:!0})}}),B5=en({name:"nuxt:chunk-reload",setup(t){const e=Nr(),n=fd(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:qa(n.app.baseURL,i.fullPath);s$({path:a,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(s)}),e.onError((i,o)=>{r.has(i)&&s(o)})}});var pO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mO(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $5(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var gO={exports:{}};/*! +Only state can be modified.`);o[0]="$state",ra=!1,r.set(i,o,r.state.value),ra=!0}})})}function u5(t,e){Nh.includes(Bf(e.$id))||Nh.push(Bf(e.$id)),zd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Nh,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:o,onError:a,name:l,args:c})=>{const u=hO++;n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:pr(e.$id),action:pr(l),args:c},groupId:u}}),o(h=>{hi=void 0,n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:pr(e.$id),action:pr(l),args:c,result:h},groupId:u}})}),a(h=>{hi=void 0,n.addTimelineEvent({layerId:Ki,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:pr(e.$id),action:pr(l),args:c,error:h},groupId:u}})})},!0),e._customProperties.forEach(o=>{Vt(()=>tt(e[o]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(un),ra&&n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"Change",subtitle:o,data:{newValue:a,oldValue:l},groupId:hi}})},{deep:!0})}),e.$subscribe(({events:o,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(un),!ra)return;const c={time:r(),title:a5(a),data:l5({store:pr(e.$id)},o5(o)),groupId:hi};a===Zr.patchFunction?c.subtitle="⤵️":a===Zr.patchObject?c.subtitle="🧩":o&&!Array.isArray(o)&&(c.subtitle=o.type),o&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),n.addTimelineEvent({layerId:Ki,event:c})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=xs(o=>{s(o),n.addTimelineEvent({layerId:Ki,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:pr(e.$id),info:pr("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un)});const{$dispose:i}=e;e.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Kt(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Kt(`"${e.$id}" store installed 🆕`)})}let hO=0,hi;function wI(t,e,n){const r=e.reduce((s,i)=>(s[i]=Ve(t)[i],s),{});for(const s in r)t[s]=function(){const i=hO,o=n?new Proxy(t,{get(...l){return hi=i,Reflect.get(...l)},set(...l){return hi=i,Reflect.set(...l)}}):t;hi=i;const a=r[s].apply(o,arguments);return hi=void 0,a}}function h5({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,wI(e,Object.keys(n.actions),e._isOptionsAPI);const r=e._hotUpdate;Ve(e)._hotUpdate=function(s){r.apply(this,arguments),wI(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)},u5(t,e)}function f5(){const t=Wc(!0),e=t.run(()=>Ze({}));let n=[],r=[];const s=xs({install(i){Ru(s),s._a=i,i.provide(nO,s),i.config.globalProperties.$pinia=s,nc&&c5(i,s),r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!A9?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return nc&&typeof Proxy<"u"&&s.use(h5),s}const fO=()=>{};function TI(t,e,n,r=fO){t.push(e);const s=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Zf()&&K_(s),s}function Go(t,...e){t.slice().forEach(n=>{n(...e)})}const d5=t=>t();function N_(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];P_(s)&&P_(r)&&t.hasOwnProperty(n)&&!rt(r)&&!Os(r)?t[n]=N_(s,r):t[n]=r}return t}const p5=Symbol();function m5(t){return!P_(t)||!t.hasOwnProperty(p5)}const{assign:dr}=Object;function g5(t){return!!(rt(t)&&t.effect)}function _5(t,e,n,r){const{state:s,actions:i,getters:o}=e,a=n.state.value[t];let l;function c(){a||(n.state.value[t]=s?s():{});const u=yD(n.state.value[t]);return dr(u,i,Object.keys(o||{}).reduce((h,f)=>(h[f]=xs(lt(()=>{Ru(n);const v=n._s.get(t);return o[f].call(v,v)})),h),{}))}return l=dO(t,c,e,n,r,!0),l}function dO(t,e,n={},r,s,i){let o;const a=dr({actions:{}},n),l={deep:!0};let c,u,h=[],f=[],v;const k=r.state.value[t];!i&&!k&&(r.state.value[t]={});const I=Ze({});let T;function g(S){let O;c=u=!1,typeof S=="function"?(S(r.state.value[t]),O={type:Zr.patchFunction,storeId:t,events:v}):(N_(r.state.value[t],S),O={type:Zr.patchObject,payload:S,storeId:t,events:v});const C=T=Symbol();Ni().then(()=>{T===C&&(c=!0)}),u=!0,Go(h,O,r.state.value[t])}const m=i?function(){const{state:O}=n,C=O?O():{};this.$patch(R=>{dr(R,C)})}:fO;function _(){o.stop(),h=[],f=[],r._s.delete(t)}function d(S,O){return function(){Ru(r);const C=Array.from(arguments),R=[],L=[];function G(Y){R.push(Y)}function U(Y){L.push(Y)}Go(f,{args:C,name:S,store:y,after:G,onError:U});let B;try{B=O.apply(this&&this.$id===t?this:y,C)}catch(Y){throw Go(L,Y),Y}return B instanceof Promise?B.then(Y=>(Go(R,Y),Y)).catch(Y=>(Go(L,Y),Promise.reject(Y))):(Go(R,B),B)}}const E=xs({actions:{},getters:{},state:[],hotState:I}),p={_p:r,$id:t,$onAction:TI.bind(null,f),$patch:g,$reset:m,$subscribe(S,O={}){const C=TI(h,S,O.detached,()=>R()),R=o.run(()=>Vt(()=>r.state.value[t],L=>{(O.flush==="sync"?u:c)&&S({storeId:t,type:Zr.direct,events:v},L)},dr({},l,O)));return C},$dispose:_},y=ts(nc?dr({_hmrPayload:E,_customProperties:xs(new Set)},p):p);r._s.set(t,y);const w=r._a&&r._a.runWithContext||d5,A=r._e.run(()=>(o=Wc(),w(()=>o.run(e))));for(const S in A){const O=A[S];if(rt(O)&&!g5(O)||Os(O))i||(k&&m5(O)&&(rt(O)?O.value=k[S]:N_(O,k[S])),r.state.value[t][S]=O);else if(typeof O=="function"){const C=d(S,O);A[S]=C,a.actions[S]=O}}if(dr(y,A),dr(Ve(y),A),Object.defineProperty(y,"$state",{get:()=>r.state.value[t],set:S=>{g(O=>{dr(O,S)})}}),nc){const S={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(O=>{Object.defineProperty(y,O,dr({value:y[O]},S))})}return r._p.forEach(S=>{if(nc){const O=o.run(()=>S({store:y,app:r._a,pinia:r,options:a}));Object.keys(O||{}).forEach(C=>y._customProperties.add(C)),dr(y,O)}else dr(y,o.run(()=>S({store:y,app:r._a,pinia:r,options:a})))}),k&&i&&n.hydrate&&n.hydrate(y.$state,k),c=!0,u=!0,y}function hJ(t,e,n){let r,s;const i=typeof e=="function";typeof t=="string"?(r=t,s=i?n:e):(s=t,r=t.id);function o(a,l){const c=my();return a=a||(c?Ut(nO,null):null),a&&Ru(a),a=tO,a._s.has(r)||(i?dO(r,e,s,a):_5(r,s,a)),a._s.get(r)}return o.$id=r,o}function fJ(t){{t=Ve(t);const e={};for(const n in t){const r=t[n];(rt(r)||Os(r))&&(e[n]=nd(t,n))}return e}}const y5=en(t=>{const e=f5();return t.vueApp.use(e),Ru(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}),v5=en({name:"nuxt:global-components"}),so={default:()=>mr(()=>import("./default.fa8eb834.js"),["./default.fa8eb834.js","./Logo.09e938a8.js","./Logo.419c1083.css","./hamburger.040db4da.js","./index.bafef1ea.js","./auth.f7a3445a.js"],import.meta.url).then(t=>t.default||t),login:()=>mr(()=>import("./login.8a39a11a.js"),["./login.8a39a11a.js","./Logo.09e938a8.js","./Logo.419c1083.css"],import.meta.url).then(t=>t.default||t)},E5=en({name:"nuxt:prefetch",setup(t){const e=Nr();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof so[r]=="function"&&await so[r]()})}),t.hooks.hook("link:prefetch",n=>{var o,a,l,c;if(Co(n))return;const r=e.resolve(n);if(!r)return;const s=(o=r==null?void 0:r.meta)==null?void 0:o.layout;let i=Array.isArray((a=r==null?void 0:r.meta)==null?void 0:a.middleware)?(l=r==null?void 0:r.meta)==null?void 0:l.middleware:[(c=r==null?void 0:r.meta)==null?void 0:c.middleware];i=i.filter(u=>typeof u=="string");for(const u of i)typeof tc[u]=="function"&&tc[u]();s&&typeof so[s]=="function"&&so[s]()})}}),w5=en(()=>({provide:{firebaseApp:mS(pd().public.vuefire.config)}})),T5=en(t=>{const e=t.$firebaseApp;FG(t.payload.vuefireUser)(e,t.vueApp)}),b5=en(t=>{const e=t.$firebaseApp;t.vueApp.use(VG,{firebaseApp:e})}),I5="__NUXT_COLOR_MODE__",dJ="ColorScheme",k5="nuxt-color-mode",_s=window[I5],S5=en(t=>{const e=GR("color-mode",()=>ts({preference:_s.preference,value:_s.value,unknown:!1,forced:!1})).value;Nr().afterEach(s=>{const i=s.meta.colorMode;i&&i!=="system"?(e.value=i,e.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?_s.getColorScheme():e.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!e.forced&&e.preference==="system"&&(e.value=_s.getColorScheme())}))}Vt(()=>e.preference,s=>{var i;e.forced||(s==="system"?(e.value=_s.getColorScheme(),r()):e.value=s,(i=window.localStorage)==null||i.setItem(k5,s))},{immediate:!0}),Vt(()=>e.value,(s,i)=>{_s.removeColorScheme(i),_s.addColorScheme(s)}),e.preference==="system"&&r(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=_s.preference,e.value=_s.value,e.unknown=!1)}),t.provide("colorMode",e)}),C5=en(()=>{});function R5(t,e){return Cu(t,"setLocale",e)}function A5(t,e){return Cu(t,"setLocaleCookie",e)}function P5(t,e,n){return Cu(t,"mergeLocaleMessage",e,n)}function O5(t,e,n,r,s){return Cu(t,"onBeforeLanguageSwitch",e,n,r,s)}function N5(t,e,n){return Cu(t,"onLanguageSwitched",e,n)}function pO(t,e){let n=[];if(Rt(t))n=t;else if($e(t)){const r=[...e,"default"];for(const s of r)t[s]&&(n=[...n,...t[s].filter(Boolean)])}else ge(t)&&e.every(r=>r!==t)&&n.push(t);return n}async function D5(t,e,n){const{defaultLocale:r,initialLocale:s,localeCodes:i,fallbackLocale:o,lazy:a}=n,l=(u,h)=>{const f=e[u]||{};e[u]={...f,...h}};if(a&&o){const u=pO(o,[r,s]);await Promise.all(u.map(h=>jf(t,h,l)))}const c=a?[...new Set().add(r).add(s)]:i;return await Promise.all(c.map(u=>jf(t,u,l))),e}async function bI(t,e,n,{useCookie:r=Kn.detectBrowserLanguage.useCookie,skipSettingLocaleOnNavigate:s=Kn.skipSettingLocaleOnNavigate,differentDomains:i=Kn.differentDomains,initial:o=!1,lazy:a=!1}={}){let l=!1;const c=dp(n);if(!t)return[l,c];if(!o&&i)return[l,c];if(c===t)return[l,c];const u=await O5(n,c,t,o,e),h=nK(n);if(u&&h&&h.includes(u)){if(u===c)return[l,c];t=u}const f=xK(n,"fallbackLocale");if(a){const v=(k,I)=>P5(n,k,I);if(f){const k=pO(f,[t]);await Promise.all(k.map(I=>jf(e,I,v)))}await jf(e,t,v)}return s?[l,c]:(r&&A5(n,t),$1(n,t),await N5(n,c,t),l=!0,[l,c])}function II(t,e,n,r,s,i,o,a=[]){const{strategy:l,defaultLocale:c,differentDomains:u}=r,h=St(s)?s():s,{locale:f,stat:v,reason:k,from:I}=r.detectBrowserLanguage?Z1(t,e,r,Ah,i,a,h):J1;if(k==="detect_ignore_on_ssg")return h;if((I==="navigator_or_header"||I==="cookie"||I==="fallback")&&f)return f;let T=f;return T||(u?T=BK(o):l!=="no_prefix"?T=n(t):r.detectBrowserLanguage||(T=h)),!T&&r.detectBrowserLanguage&&r.detectBrowserLanguage.useCookie&&(T=k0(e,{...r.detectBrowserLanguage,localeCodes:a})||""),T||(T=c||""),T}function kI({route:t,context:e,targetLocale:n,routeLocaleGetter:r,nuxtI18nOptions:s,calledWithRouting:i=!1}){const{strategy:o,differentDomains:a}=s;let l="";const{fullPath:c}=t.to;if(!a&&(i||o!=="no_prefix"&&o!=="prefix_and_default")&&r(t.to)!==n){const u=e.$switchLocalePath(n)||e.$localePath(c,n);ge(u)&&u&&!qm(u,c)&&!u.startsWith("//")&&(l=t.from&&t.from.fullPath===u?"":u)}if((a||!0)&&r(t.to)!==n){const h=RK({i18n:Io(e.$i18n),route:t.to,router:e.$router})(n);ge(h)&&h&&!qm(h,c)&&!h.startsWith("//")&&(l=h)}return l}function L5(t){return $e(t)&&"path"in t&&"statusCode"in t}const M5=()=>GR(Q1+":redirect",()=>"");function SI(t,e){return Lg(t,{redirectCode:e})}async function CI(t,{status:e=302,rootRedirect:n=Kn.rootRedirect,differentDomains:r=Kn.differentDomains,skipSettingLocaleOnNavigate:s=Kn.skipSettingLocaleOnNavigate,enableNavigate:i=!1}={}){const{i18n:o,locale:a,route:l}=t;let{redirectPath:c}=t;if(l.path==="/"&&n)return ge(n)?c="/"+n:L5(n)&&(c="/"+n.path,e=n.statusCode),SI(c,e);if(!(s&&(o.__pendingLocale=a,o.__pendingLocalePromise=new Promise(u=>{o.__resolvePendingLocalePromise=u}),!i))){if(r){const u=M5();u.value&&u.value!==c&&(u.value="",window.location.assign(c))}else if(c)return SI(c,e)}}function x5(t,e){vI(t,"$i18n",e.global);for(const n of[["getRouteBaseName",ko],["localePath",pp],["localeRoute",b0],["switchLocalePath",Vc],["localeHead",q1]])vI(t,"$"+n[0],FK(t,n[1]))}function F5(t){return e=>G1(e)&&!t}function V5(t,e,n){return(r,s)=>{if(t){const i=eO(s,e,n);return i?qa(i,r):r}else return Y1(r)}}function U5(t,e){return n=>{var l,c;if(St(t))return t(n);const{differentDomains:r,localeCodeLoader:s,normalizedLocales:i}=e,o=St(s)?s():s;if(r&&o){const u=eO(o,i,e.nuxt);if(u)return u}const a=(c=(l=n.$config)==null?void 0:l.public)==null?void 0:c.i18n;return a!=null&&a.baseUrl?a.baseUrl:t}}const j5=en({name:"i18n:plugin",parallel:LK,async setup(t){let e,n;const r=Nr(),s=nl(),{vueApp:i}=t,o=t,a=([e,n]=_i(()=>DK()),e=await e,n(),e),l=a.detectBrowserLanguage&&a.detectBrowserLanguage.useCookie,{__normalizedLocales:c}=Ah,{defaultLocale:u,differentDomains:h,skipSettingLocaleOnNavigate:f,lazy:v,routesNameSeparator:k,defaultLocaleRouteNameSuffix:I,strategy:T,rootRedirect:g}=a;a.baseUrl=U5(a.baseUrl,{differentDomains:h,nuxt:o,localeCodeLoader:u,normalizedLocales:c});const m=pK($i,k,I),_=a.vueI18n;_.messages=_.messages||{},_.fallbackLocale=_.fallbackLocale??!1,fK(r,{...a,dynamicRouteParamsKey:"nuxtI18n",switchLocalePathIntercepter:V5(h,c,o),prefixable:F5(h)});const d=R=>R||_.locale||"en-US";let E=II(s,t.ssrContext,m,a,d(u),{ssg:T==="no_prefix"?"ssg_ignore":"normal",callType:"setup",firstAccess:!0},c,$i);_.messages=([e,n]=_i(()=>D5(o,_.messages,{...a,initialLocale:E,fallbackLocale:_.fallbackLocale,localeCodes:$i})),e=await e,n(),e),E=d(E);const p=Oq({..._,locale:E});let y=!0;const w=R=>E!==R&&y;let A=!0;const S=()=>A;S()&&T==="no_prefix"&&t.hook("app:mounted",async()=>{const{locale:R,stat:L,reason:G,from:U}=a.detectBrowserLanguage?Z1(s,o,a,Ah,{ssg:"ssg_setup",callType:"setup",firstAccess:!0},$i,E):J1;R5(p,R),A=!1}),lK(p,{locales:a.locales,localeCodes:$i,baseUrl:a.baseUrl,context:o,hooks:{onExtendComposer(R){R.strategy=T,R.localeProperties=lt(()=>c.find(L=>L.code===R.locale.value)||{code:R.locale.value}),R.setLocale=async L=>{const G=w(L),[U]=await bI(L,o,p,{useCookie:l,differentDomains:h,initial:G,skipSettingLocaleOnNavigate:f,lazy:v});U&&G&&(y=!1);const B=kI({route:{to:s},context:o,targetLocale:L,routeLocaleGetter:m,nuxtI18nOptions:a});await CI({i18n:p,redirectPath:B,locale:L,route:s},{differentDomains:h,skipSettingLocaleOnNavigate:f,rootRedirect:g,enableNavigate:!0})},R.differentDomains=h,R.defaultLocale=u,R.getBrowserLocale=()=>X1(Ah,t.ssrContext),R.getLocaleCookie=()=>k0(t.ssrContext,{...a.detectBrowserLanguage,localeCodes:$i}),R.setLocaleCookie=L=>UK(L,t.ssrContext,a.detectBrowserLanguage||void 0),R.onBeforeLanguageSwitch=(L,G,U,B)=>t.callHook("i18n:beforeLocaleSwitch",{oldLocale:L,newLocale:G,initialSetup:U,context:B}),R.onLanguageSwitched=(L,G)=>t.callHook("i18n:localeSwitched",{oldLocale:L,newLocale:G}),R.finalizePendingLocaleChange=async()=>{p.__pendingLocale&&($1(p,p.__pendingLocale),p.__resolvePendingLocalePromise&&await p.__resolvePendingLocalePromise(),p.__pendingLocale=void 0)},R.waitForPendingLocaleChange=async()=>{p.__pendingLocale&&p.__pendingLocalePromise&&await p.__pendingLocalePromise}},onExtendExportedGlobal(R){return{strategy:{get(){return R.strategy}},localeProperties:{get(){return R.localeProperties.value}},setLocale:{get(){return async L=>Reflect.apply(R.setLocale,R,[L])}},differentDomains:{get(){return R.differentDomains}},defaultLocale:{get(){return R.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(R.getBrowserLocale,R,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(R.getLocaleCookie,R,[])}},setLocaleCookie:{get(){return L=>Reflect.apply(R.setLocaleCookie,R,[L])}},onBeforeLanguageSwitch:{get(){return(L,G,U,B)=>Reflect.apply(R.onBeforeLanguageSwitch,R,[L,G,U,B])}},onLanguageSwitched:{get(){return(L,G)=>Reflect.apply(R.onLanguageSwitched,R,[L,G])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(R.finalizePendingLocaleChange,R,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(R.waitForPendingLocaleChange,R,[])}}}},onExtendVueI18n(R){return{strategy:{get(){return R.strategy}},localeProperties:{get(){return R.localeProperties.value}},setLocale:{get(){return async L=>Reflect.apply(R.setLocale,R,[L])}},differentDomains:{get(){return R.differentDomains}},defaultLocale:{get(){return R.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(R.getBrowserLocale,R,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(R.getLocaleCookie,R,[])}},setLocaleCookie:{get(){return L=>Reflect.apply(R.setLocaleCookie,R,[L])}},onBeforeLanguageSwitch:{get(){return(L,G,U,B)=>Reflect.apply(R.onBeforeLanguageSwitch,R,[L,G,U,B])}},onLanguageSwitched:{get(){return(L,G)=>Reflect.apply(R.onLanguageSwitched,R,[L,G])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(R.finalizePendingLocaleChange,R,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(R.waitForPendingLocaleChange,R,[])}}}}}});const O={__composerExtend:R=>{const L=Io(p);return R.strategy=L.strategy,R.localeProperties=lt(()=>L.localeProperties.value),R.setLocale=L.setLocale,R.differentDomains=L.differentDomains,R.getBrowserLocale=L.getBrowserLocale,R.getLocaleCookie=L.getLocaleCookie,R.setLocaleCookie=L.setLocaleCookie,R.onBeforeLanguageSwitch=L.onBeforeLanguageSwitch,R.onLanguageSwitched=L.onLanguageSwitched,R.finalizePendingLocaleChange=L.finalizePendingLocaleChange,R.waitForPendingLocaleChange=L.waitForPendingLocaleChange,()=>{}}};i.use(p,O),x5(o,p);let C=0;xB("locale-changing",async(R,L)=>{let G,U;const B=II(R,t.ssrContext,m,a,()=>dp(p)||d(u),{ssg:S()&&T==="no_prefix"?"ssg_ignore":"normal",callType:"routing",firstAccess:C===0},c,$i),Y=w(B),[F]=([G,U]=_i(()=>bI(B,o,p,{useCookie:l,differentDomains:h,initial:Y,skipSettingLocaleOnNavigate:f,lazy:v})),G=await G,U(),G);F&&Y&&(y=!1);const j=kI({route:{to:R,from:L},context:o,targetLocale:B,routeLocaleGetter:m,nuxtI18nOptions:a,calledWithRouting:!0});return C++,CI({i18n:p,redirectPath:j,locale:B,route:R},{differentDomains:h,skipSettingLocaleOnNavigate:f,rootRedirect:g})},{global:!0})}}),B5=en({name:"nuxt:chunk-reload",setup(t){const e=Nr(),n=pd(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:qa(n.app.baseURL,i.fullPath);i$({path:a,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(s)}),e.onError((i,o)=>{r.has(i)&&s(o)})}});var mO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gO(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $5(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var _O={exports:{}};/*! * dist/inputmask * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2023 Robin Herbots * Licensed under the MIT license * Version: 5.0.8 - */(function(t,e){(function(n,r){t.exports=r()})(typeof self<"u"?self:pO,function(){return function(){var n={8741:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=!(typeof window>"u"||!window.document||!window.document.createElement);a.default=l},3976:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(2839),u={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(h,f){return typeof f.onBeforeMask=="function"?f.onBeforeMask.call(this,h,f):h},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[c.keys.Backspace,c.keys.Tab,c.keys.Pause,c.keys.Escape,c.keys.PageUp,c.keys.PageDown,c.keys.End,c.keys.Home,c.keys.ArrowLeft,c.keys.ArrowUp,c.keys.ArrowRight,c.keys.ArrowDown,c.keys.Insert,c.keys.Delete,c.keys.ContextMenu,c.keys.F1,c.keys.F2,c.keys.F3,c.keys.F4,c.keys.F5,c.keys.F6,c.keys.F7,c.keys.F8,c.keys.F9,c.keys.F10,c.keys.F11,c.keys.F12,c.keys.Process,c.keys.Unidentified,c.keys.Shift,c.keys.Control,c.keys.Alt,c.keys.Tab,c.keys.AltGraph,c.keys.CapsLock],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};a.default=u},7392:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(l,c,u){if(u===void 0)return l.__data?l.__data[c]:null;l.__data=l.__data||{},l.__data[c]=u}},3776:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.Event=void 0,a.off=function(m,_){var d,E;return g(this[0])&&m&&(d=this[0].eventRegistry,E=this[0],m.split(" ").forEach(function(p){var y=k(p.split("."),2);(function(w,A){var S,O,C=[];if(w.length>0)if(_===void 0)for(S=0,O=d[w][A].length;S0?A:"global",handler:d[w][A][S]});else C.push({ev:w,namespace:A&&A.length>0?A:"global",handler:_});else if(A.length>0){for(var R in d)for(var L in d[R])if(L===A)if(_===void 0)for(S=0,O=d[R][L].length;S"u"||!window.document||!window.document.createElement);a.default=l},3976:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(2839),u={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(h,f){return typeof f.onBeforeMask=="function"?f.onBeforeMask.call(this,h,f):h},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[c.keys.Backspace,c.keys.Tab,c.keys.Pause,c.keys.Escape,c.keys.PageUp,c.keys.PageDown,c.keys.End,c.keys.Home,c.keys.ArrowLeft,c.keys.ArrowUp,c.keys.ArrowRight,c.keys.ArrowDown,c.keys.Insert,c.keys.Delete,c.keys.ContextMenu,c.keys.F1,c.keys.F2,c.keys.F3,c.keys.F4,c.keys.F5,c.keys.F6,c.keys.F7,c.keys.F8,c.keys.F9,c.keys.F10,c.keys.F11,c.keys.F12,c.keys.Process,c.keys.Unidentified,c.keys.Shift,c.keys.Control,c.keys.Alt,c.keys.Tab,c.keys.AltGraph,c.keys.CapsLock],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};a.default=u},7392:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,a.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(l,c,u){if(u===void 0)return l.__data?l.__data[c]:null;l.__data=l.__data||{},l.__data[c]=u}},3776:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.Event=void 0,a.off=function(m,_){var d,E;return g(this[0])&&m&&(d=this[0].eventRegistry,E=this[0],m.split(" ").forEach(function(p){var y=k(p.split("."),2);(function(w,A){var S,O,C=[];if(w.length>0)if(_===void 0)for(S=0,O=d[w][A].length;S0?A:"global",handler:d[w][A][S]});else C.push({ev:w,namespace:A&&A.length>0?A:"global",handler:_});else if(A.length>0){for(var R in d)for(var L in d[R])if(L===A)if(_===void 0)for(S=0,O=d[R][L].length;Sm.length)&&(_=m.length);for(var d=0,E=new Array(_);d<_;d++)E[d]=m[d];return E}function T(m){return m&&m.__esModule?m:{default:m}}function g(m){return m instanceof Element}a.Event=c,typeof h.default.CustomEvent=="function"?a.Event=c=h.default.CustomEvent:v.default&&(a.Event=c=function(m,_){_=_||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var d=document.createEvent("CustomEvent");return d.initCustomEvent(m,_.bubbles,_.cancelable,_.detail),d},c.prototype=h.default.Event.prototype)},600:function(o,a){function l(c){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},l(c)}Object.defineProperty(a,"__esModule",{value:!0}),a.default=function c(){var u,h,f,v,k,I,T=arguments[0]||{},g=1,m=arguments.length,_=!1;for(typeof T=="boolean"&&(_=T,T=arguments[g]||{},g++),l(T)!=="object"&&typeof T!="function"&&(T={});g0||h.indexOf("Trident/")>0,v=navigator.userAgentData&&navigator.userAgentData.mobile||u.default.navigator&&u.default.navigator.maxTouchPoints||"ontouchstart"in u.default,k=/iphone/i.test(h);a.iphone=k,a.mobile=v,a.ie=f},7184:function(o,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(c){return c.replace(l,"\\$1")};var l=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.EventHandlers=void 0;var c=l(8711),u=l(2839),h=l(9845),f=l(7215),v=l(7760),k=l(4713);function I(m,_){var d=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!d){if(Array.isArray(m)||(d=function(S,O){if(S){if(typeof S=="string")return T(S,O);var C=Object.prototype.toString.call(S).slice(8,-1);if(C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set")return Array.from(S);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return T(S,O)}}(m))||_&&m&&typeof m.length=="number"){d&&(m=d);var E=0,p=function(){};return{s:p,n:function(){return E>=m.length?{done:!0}:{done:!1,value:m[E++]}},e:function(S){throw S},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,w=!0,A=!1;return{s:function(){d=d.call(m)},n:function(){var S=d.next();return w=S.done,S},e:function(S){A=!0,y=S},f:function(){try{w||d.return==null||d.return()}finally{if(A)throw y}}}}function T(m,_){(_==null||_>m.length)&&(_=m.length);for(var d=0,E=new Array(_);d<_;d++)E[d]=m[d];return E}var g={keyEvent:function(m,_,d,E,p){var y=this.inputmask,w=y.opts,A=y.dependencyLib,S=y.maskset,O=this,C=A(O),R=m.key,L=c.caret.call(y,O),G=w.onKeyDown.call(this,m,c.getBuffer.call(y),L,w);if(G!==void 0)return G;if(R===u.keys.Backspace||R===u.keys.Delete||h.iphone&&R===u.keys.BACKSPACE_SAFARI||m.ctrlKey&&R===u.keys.x&&!("oncut"in O))m.preventDefault(),f.handleRemove.call(y,O,R,L),(0,v.writeBuffer)(O,c.getBuffer.call(y,!0),S.p,m,O.inputmask._valueGet()!==c.getBuffer.call(y).join(""));else if(R===u.keys.End||R===u.keys.PageDown){m.preventDefault();var U=c.seekNext.call(y,c.getLastValidPosition.call(y));c.caret.call(y,O,m.shiftKey?L.begin:U,U,!0)}else R===u.keys.Home&&!m.shiftKey||R===u.keys.PageUp?(m.preventDefault(),c.caret.call(y,O,0,m.shiftKey?L.begin:0,!0)):w.undoOnEscape&&R===u.keys.Escape&&m.altKey!==!0?((0,v.checkVal)(O,!0,!1,y.undoValue.split("")),C.trigger("click")):R!==u.keys.Insert||m.shiftKey||m.ctrlKey||y.userOptions.insertMode!==void 0?w.tabThrough===!0&&R===u.keys.Tab?m.shiftKey===!0?(L.end=c.seekPrevious.call(y,L.end,!0),k.getTest.call(y,L.end-1).match.static===!0&&L.end--,L.begin=c.seekPrevious.call(y,L.end,!0),L.begin>=0&&L.end>0&&(m.preventDefault(),c.caret.call(y,O,L.begin,L.end))):(L.begin=c.seekNext.call(y,L.begin,!0),L.end=c.seekNext.call(y,L.begin,!0),L.end=j.length?Y.length:j.length,se=F.length>=Z.length?F.length:Z.length,le="",ie=[],oe="~";Y.length0;){var E=d.pop();["submit","reset"].includes(_)?I.form!==null&&g(I.form).off(_,E):g(I).off(_,E)}delete I.inputmask.events[_]}}}};a.EventRuler=k},219:function(o,a,l){var c=m(l(2394)),u=l(2839),h=m(l(7184)),f=l(8711),v=l(4713);function k(F,j){return function(Z){if(Array.isArray(Z))return Z}(F)||function(Z,J){var se=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(se!=null){var le,ie,oe,N,x=[],V=!0,z=!1;try{if(oe=(se=se.call(Z)).next,J===0){if(Object(se)!==se)return;V=!1}else for(;!(V=(le=oe.call(se)).done)&&(x.push(le.value),x.length!==J);V=!0);}catch(H){z=!0,ie=H}finally{try{if(!V&&se.return!=null&&(N=se.return(),Object(N)!==N))return}finally{if(z)throw ie}}return x}}(F,j)||function(Z,J){if(Z){if(typeof Z=="string")return I(Z,J);var se=Object.prototype.toString.call(Z).slice(8,-1);if(se==="Object"&&Z.constructor&&(se=Z.constructor.name),se==="Map"||se==="Set")return Array.from(Z);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return I(Z,J)}}(F,j)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function I(F,j){(j==null||j>F.length)&&(j=F.length);for(var Z=0,J=new Array(j);Z0&&j--,Date.prototype.setMonth.call(this,j)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(F){var j=F?parseInt(F):0;return j>0&&j--,Date.prototype.setMonth.call(this,j)},"month",function(){return G(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],Hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return function(){return G(Date.prototype.getHours.call(this),F)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return G(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return G(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",A,"ampm",S,1],tt:["[ap]m",A,"ampm",S,2],T:["[AP]",A,"ampm",S,1],TT:["[AP]M",A,"ampm",S,2],Z:[".*",void 0,"Z",function(){var F=this.toString().match(/\((.+)\)/)[1];return F.includes(" ")&&(F=(F=F.replace("-"," ").toUpperCase()).split(" ").map(function(j){return k(j,1)[0]}).join("")),F}],o:[""],S:[""]},w={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function A(F){var j=this.getHours();F.toLowerCase().includes("p")?this.setHours(j+12):F.toLowerCase().includes("a")&&j>=12&&this.setHours(j-12)}function S(){var F=this.getHours();return(F=F||12)>=12?"PM":"AM"}function O(F){var j=new RegExp("\\d+$").exec(F[0]);if(j&&j[0]!==void 0){var Z=y[F[0][0]+"x"].slice("");return Z[0]=Z[0](j[0]),Z[3]=Z[3](j[0]),Z}if(y[F[0]])return y[F[0]]}function C(F){if(!F.tokenizer){var j=[],Z=[];for(var J in y)if(/\.*x$/.test(J)){var se=J[0]+"\\d+";Z.indexOf(se)===-1&&Z.push(se)}else j.indexOf(J[0])===-1&&j.push(J[0]);F.tokenizer="("+(Z.length>0?Z.join("|")+"|":"")+j.join("+|")+")+?|.",F.tokenizer=new RegExp(F.tokenizer,"g")}return F.tokenizer}function R(F,j,Z){if(!p)return!0;if(F.rawday===void 0||!isFinite(F.rawday)&&new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day||F.day=="29"&&(!isFinite(F.rawyear)||F.rawyear===void 0||F.rawyear==="")||new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day)return j;if(F.day=="29"){var J=Y(j.pos,Z);if(J.targetMatch[0]==="yyyy"&&j.pos-J.targetMatchIndex==2)return j.remove=j.pos+1,j}else if(F.month=="02"&&F.day=="30"&&j.c!==void 0)return F.day="03",F.date.setDate(3),F.date.setMonth(1),j.insert=[{pos:j.pos,c:"0"},{pos:j.pos+1,c:j.c}],j.caret=f.seekNext.call(this,j.pos+1),j;return!1}function L(F,j,Z,J){var se,le,ie="";for(C(Z).lastIndex=0;se=C(Z).exec(F);)if(j===void 0)if(le=O(se))ie+="("+le[0]+")";else switch(se[0]){case"[":ie+="(";break;case"]":ie+=")?";break;default:ie+=(0,h.default)(se[0])}else(le=O(se))?J!==!0&&le[3]?ie+=le[3].call(j.date):le[2]?ie+=j["raw"+le[2]]:ie+=se[0]:ie+=se[0];return ie}function G(F,j,Z){for(F=String(F),j=j||2;F.length=F+1){Z=J,J=C(j).exec(j.inputFormat);break}}return{targetMatchIndex:se-le,nextMatch:J,targetMatch:Z}}c.default.extendAliases({datetime:{mask:function(F){return F.numericInput=!1,y.S=F.i18n.ordinalSuffix.join("|"),F.inputFormat=w[F.inputFormat]||F.inputFormat,F.displayFormat=w[F.displayFormat]||F.displayFormat||F.inputFormat,F.outputFormat=w[F.outputFormat]||F.outputFormat||F.inputFormat,F.placeholder=F.placeholder!==""?F.placeholder:F.inputFormat.replace(/[[\]]/,""),F.regex=L(F.inputFormat,void 0,F),F.min=U(F.min,F.inputFormat,F),F.max=U(F.max,F.inputFormat,F),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(F,j,Z,J,se,le,ie,oe){if(oe)return!0;if(isNaN(Z)&&F[j]!==Z){var N=Y(j,se);if(N.nextMatch&&N.nextMatch[0]===Z&&N.targetMatch[0].length>1){var x=y[N.targetMatch[0]][0];if(new RegExp(x).test("0"+F[j-1]))return F[j]=F[j-1],F[j-1]="0",{fuzzy:!0,buffer:F,refreshFromBuffer:{start:j-1,end:j+1},pos:j+1}}}return!0},postValidation:function(F,j,Z,J,se,le,ie,oe){var N,x;if(ie)return!0;if(J===!1&&(((N=Y(j+1,se)).targetMatch&&N.targetMatchIndex===j&&N.targetMatch[0].length>1&&y[N.targetMatch[0]]!==void 0||(N=Y(j+2,se)).targetMatch&&N.targetMatchIndex===j+1&&N.targetMatch[0].length>1&&y[N.targetMatch[0]]!==void 0)&&(x=y[N.targetMatch[0]][0]),x!==void 0&&(le.validPositions[j+1]!==void 0&&new RegExp(x).test(Z+"0")?(F[j]=Z,F[j+1]="0",J={pos:j+2,caret:j}):new RegExp(x).test("0"+Z)&&(F[j]="0",F[j+1]=Z,J={pos:j+2})),J===!1))return J;if(J.fuzzy&&(F=J.buffer,j=J.pos),(N=Y(j,se)).targetMatch&&N.targetMatch[0]&&y[N.targetMatch[0]]!==void 0){var V=y[N.targetMatch[0]];x=V[0];var z=F.slice(N.targetMatchIndex,N.targetMatchIndex+N.targetMatch[0].length);if(new RegExp(x).test(z.join(""))===!1&&N.targetMatch[0].length===2&&le.validPositions[N.targetMatchIndex]&&le.validPositions[N.targetMatchIndex+1]&&(le.validPositions[N.targetMatchIndex+1].input="0"),V[2]=="year")for(var H=v.getMaskTemplate.call(this,!1,1,void 0,!0),D=j+1;D=re.getTime())&&(M.date.setFullYear(E),M.year=X,$.insert=[{pos:$.pos+1,c:Q[0]},{pos:$.pos+2,c:Q[1]}])}}return $}(P,b,se)),b=function(M,$,q,X,te){if(!$)return $;if($&&q.min&&!isNaN(q.min.date.getTime())){var ne;for(M.reset(),C(q).lastIndex=0;ne=C(q).exec(q.inputFormat);){var Q;if((Q=O(ne))&&Q[3]){for(var re=Q[1],W=M[Q[2]],K=q.min[Q[2]],de=q.max?q.max[Q[2]]:K,he=[],Te=!1,Ee=0;EeK[Ee]):(he[Ee]=K[Ee],Q[2]==="year"&&W.length-1==Ee&&K!=de&&(he=(parseInt(he.join(""))+1).toString().split("")),Q[2]==="ampm"&&K!=de&&q.min.date.getTime()>M.date.getTime()&&(he[Ee]=de[Ee]));re.call(M._date,he.join(""))}}$=q.min.date.getTime()<=M.date.getTime(),M.reInit()}return $&&q.max&&(isNaN(q.max.date.getTime())||($=q.max.date.getTime()>=M.date.getTime())),$}(P,b=R.call(this,P,b,se),se,le)),j!==void 0&&b&&J.pos!==j?{buffer:L(se.inputFormat,P,se).split(""),refreshFromBuffer:{start:j,end:J.pos},pos:J.caret||J.pos}:b},onKeyDown:function(F,j,Z,J){F.ctrlKey&&F.key===u.keys.ArrowRight&&(this.inputmask._valueSet(B(new Date,J)),_(this).trigger("setvalue"))},onUnMask:function(F,j,Z){return j&&L(Z.outputFormat,U(F,Z.inputFormat,Z),Z,!0)},casing:function(F,j,Z,J){return j.nativeDef.indexOf("[ap]")==0?F.toLowerCase():j.nativeDef.indexOf("[AP]")==0?F.toUpperCase():F},onBeforeMask:function(F,j){return Object.prototype.toString.call(F)==="[object Date]"&&(F=B(F,j)),F},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(o,a,l){var c,u=(c=l(2394))&&c.__esModule?c:{default:c},h=l(8711),f=l(4713);u.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var v=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function k(I,T,g,m,_){return g-1>-1&&T.buffer[g-1]!=="."?(I=T.buffer[g-1]+I,I=g-2>-1&&T.buffer[g-2]!=="."?T.buffer[g-2]+I:"0"+I):I="00"+I,v.test(I)}u.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:k},j:{validator:k},k:{validator:k},l:{validator:k}},onUnMask:function(I,T,g){return I},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(I){var T=I.separator,g=I.quantifier,m="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",_=m;if(T)for(var d=0;d0&&E>0&&(!p.digitsOptional||y)){var w=d.indexOf(p.radixPoint),A=!1;p.negationSymbol.back===d[d.length-1]&&(A=!0,d.length--),w===-1&&(d.push(p.radixPoint),w=d.length-1);for(var S=1;S<=E;S++)isFinite(d[w+S])||(d[w+S]="0")}return A&&d.push(p.negationSymbol.back),d}function g(d,E){var p=0;for(var y in d==="+"&&(p=h.seekNext.call(this,E.validPositions.length-1)),E.tests)if((y=parseInt(y))>=p){for(var w=0,A=E.tests[y].length;w1&&(d.placeholder=d.placeholder.charAt(0)),d.positionCaretOnClick==="radixFocus"&&d.placeholder===""&&(d.positionCaretOnClick="lvp");var E="0",p=d.radixPoint;d.numericInput===!0&&d.__financeInput===void 0?(E="1",d.positionCaretOnClick=d.positionCaretOnClick==="radixFocus"?"lvp":d.positionCaretOnClick,d.digitsOptional=!1,isNaN(d.digits)&&(d.digits=2),d._radixDance=!1,p=d.radixPoint===","?"?":"!",d.radixPoint!==""&&d.definitions[p]===void 0&&(d.definitions[p]={},d.definitions[p].validator="["+d.radixPoint+"]",d.definitions[p].placeholder=d.radixPoint,d.definitions[p].static=!0,d.definitions[p].generated=!0)):(d.__financeInput=!1,d.numericInput=!0);var y,w="[+]";if(w+=I(d.prefix,d),d.groupSeparator!==""?(d.definitions[d.groupSeparator]===void 0&&(d.definitions[d.groupSeparator]={},d.definitions[d.groupSeparator].validator="["+d.groupSeparator+"]",d.definitions[d.groupSeparator].placeholder=d.groupSeparator,d.definitions[d.groupSeparator].static=!0,d.definitions[d.groupSeparator].generated=!0),w+=d._mask(d)):w+="9{+}",d.digits!==void 0&&d.digits!==0){var A=d.digits.toString().split(",");isFinite(A[0])&&A[1]&&isFinite(A[1])?w+=p+E+"{"+d.digits+"}":(isNaN(d.digits)||parseInt(d.digits)>0)&&(d.digitsOptional||d.jitMasking?(y=w+p+E+"{0,"+d.digits+"}",d.keepStatic=!0):w+=p+E+"{"+d.digits+"}")}else d.inputmode="numeric";return w+=I(d.suffix,d),w+="[-]",y&&(w=[y+I(d.suffix,d)+"[-]",w]),d.greedy=!1,function(S){S.parseMinMaxOptions===void 0&&(S.min!==null&&(S.min=S.min.toString().replace(new RegExp((0,u.default)(S.groupSeparator),"g"),""),S.radixPoint===","&&(S.min=S.min.replace(S.radixPoint,".")),S.min=isFinite(S.min)?parseFloat(S.min):NaN,isNaN(S.min)&&(S.min=Number.MIN_VALUE)),S.max!==null&&(S.max=S.max.toString().replace(new RegExp((0,u.default)(S.groupSeparator),"g"),""),S.radixPoint===","&&(S.max=S.max.replace(S.radixPoint,".")),S.max=isFinite(S.max)?parseFloat(S.max):NaN,isNaN(S.max)&&(S.max=Number.MAX_VALUE)),S.parseMinMaxOptions="done")}(d),d.radixPoint!==""&&d.substituteRadixPoint&&(d.substitutes[d.radixPoint=="."?",":"."]=d.radixPoint),w},_mask:function(d){return"("+d.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:_},1:{validator:_,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(d,E,p,y,w){return w.allowMinus&&(d==="-"||d===w.negationSymbol.front)}},"-":{validator:function(d,E,p,y,w){return w.allowMinus&&d===w.negationSymbol.back}}},preValidation:function(d,E,p,y,w,A,S,O){if(w.__financeInput!==!1&&p===w.radixPoint)return!1;var C=d.indexOf(w.radixPoint),R=E;if(E=function(B,Y,F,j,Z){return Z._radixDance&&Z.numericInput&&Y!==Z.negationSymbol.back&&B<=F&&(F>0||Y==Z.radixPoint)&&(j.validPositions[B-1]===void 0||j.validPositions[B-1].input!==Z.negationSymbol.back)&&(B-=1),B}(E,p,C,A,w),p==="-"||p===w.negationSymbol.front){if(w.allowMinus!==!0)return!1;var L=!1,G=m("+",A),U=m("-",A);return G!==-1&&(L=[G,U]),L!==!1?{remove:L,caret:R-w.negationSymbol.back.length}:{insert:[{pos:g.call(this,"+",A),c:w.negationSymbol.front,fromIsValid:!0},{pos:g.call(this,"-",A),c:w.negationSymbol.back,fromIsValid:void 0}],caret:R+w.negationSymbol.back.length}}if(p===w.groupSeparator)return{caret:R};if(O)return!0;if(C!==-1&&w._radixDance===!0&&y===!1&&p===w.radixPoint&&w.digits!==void 0&&(isNaN(w.digits)||parseInt(w.digits)>0)&&C!==E)return{caret:w._radixDance&&E===C-1?C+1:C};if(w.__financeInput===!1){if(y){if(w.digitsOptional)return{rewritePosition:S.end};if(!w.digitsOptional){if(S.begin>C&&S.end<=C)return p===w.radixPoint?{insert:{pos:C+1,c:"0",fromIsValid:!0},rewritePosition:C}:{rewritePosition:C+1};if(S.begin0&&this.__valueGet.call(this.el)==="")return{rewritePosition:C}}return{rewritePosition:E}},postValidation:function(d,E,p,y,w,A,S){if(y===!1)return y;if(S)return!0;if(w.min!==null||w.max!==null){var O=w.onUnMask(d.slice().reverse().join(""),void 0,k.extend({},w,{unmaskAsNumber:!0}));if(w.min!==null&&Ow.min.toString().length||O<0))return!1;if(w.max!==null&&O>w.max)return!!w.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:T(w.max.toString().replace(".",w.radixPoint).split(""),w.digits,w).reverse()}}return y},onUnMask:function(d,E,p){if(E===""&&p.nullable===!0)return E;var y=d.replace(p.prefix,"");return y=(y=y.replace(p.suffix,"")).replace(new RegExp((0,u.default)(p.groupSeparator),"g"),""),p.placeholder.charAt(0)!==""&&(y=y.replace(new RegExp(p.placeholder.charAt(0),"g"),"0")),p.unmaskAsNumber?(p.radixPoint!==""&&y.indexOf(p.radixPoint)!==-1&&(y=y.replace(u.default.call(this,p.radixPoint),".")),y=(y=y.replace(new RegExp("^"+(0,u.default)(p.negationSymbol.front)),"-")).replace(new RegExp((0,u.default)(p.negationSymbol.back)+"$"),""),Number(y)):y},isComplete:function(d,E){var p=(E.numericInput?d.slice().reverse():d).join("");return p=(p=(p=(p=(p=p.replace(new RegExp("^"+(0,u.default)(E.negationSymbol.front)),"-")).replace(new RegExp((0,u.default)(E.negationSymbol.back)+"$"),"")).replace(E.prefix,"")).replace(E.suffix,"")).replace(new RegExp((0,u.default)(E.groupSeparator)+"([0-9]{3})","g"),"$1"),E.radixPoint===","&&(p=p.replace((0,u.default)(E.radixPoint),".")),isFinite(p)},onBeforeMask:function(d,E){var p=E.radixPoint||",";isFinite(E.digits)&&(E.digits=parseInt(E.digits)),typeof d!="number"&&E.inputType!=="number"||p===""||(d=d.toString().replace(".",p));var y=d.charAt(0)==="-"||d.charAt(0)===E.negationSymbol.front,w=d.split(p),A=w[0].replace(/[^\-0-9]/g,""),S=w.length>1?w[1].replace(/[^0-9]/g,""):"",O=w.length>1;d=A+(S!==""?p+S:S);var C=0;if(p!==""&&(C=E.digitsOptional?E.digitsE.max&&(d=E.max.toString().replace(".",p))}return y&&d.charAt(0)!=="-"&&(d="-"+d),T(d.toString().split(""),C,E,O).join("")},onBeforeWrite:function(d,E,p,y){function w(B,Y){if(y.__financeInput!==!1||Y){var F=B.indexOf(y.radixPoint);F!==-1&&B.splice(F,1)}if(y.groupSeparator!=="")for(;(F=B.indexOf(y.groupSeparator))!==-1;)B.splice(F,1);return B}var A,S;if(y.stripLeadingZeroes&&(S=function(B,Y){var F=new RegExp("(^"+(Y.negationSymbol.front!==""?(0,u.default)(Y.negationSymbol.front)+"?":"")+(0,u.default)(Y.prefix)+")(.*)("+(0,u.default)(Y.suffix)+(Y.negationSymbol.back!=""?(0,u.default)(Y.negationSymbol.back)+"?":"")+"$)").exec(B.slice().reverse().join("")),j=F?F[2]:"",Z=!1;return j&&(j=j.split(Y.radixPoint.charAt(0))[0],Z=new RegExp("^[0"+Y.groupSeparator+"]*").exec(j)),!(!Z||!(Z[0].length>1||Z[0].length>0&&Z[0].length0;R--)delete this.maskset.validPositions[O+R],delete E[O+R];if(d)switch(d.type){case"blur":case"checkval":if(y.min!==null){var L=y.onUnMask(E.slice().reverse().join(""),void 0,k.extend({},y,{unmaskAsNumber:!0}));if(y.min!==null&&L1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(S)),A.trigger("setvalue"),!1}if(d.ctrlKey)switch(d.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(y.step)),A.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(y.step)),A.trigger("setvalue"),!1}if(!d.shiftKey&&(d.key===f.keys.Delete||d.key===f.keys.Backspace||d.key===f.keys.BACKSPACE_SAFARI)&&p.begin!==E.length){if(E[d.key===f.keys.Delete?p.begin-1:p.end]===y.negationSymbol.front)return w=E.slice().reverse(),y.negationSymbol.front!==""&&w.shift(),y.negationSymbol.back!==""&&w.pop(),A.trigger("setvalue",[w.join(""),p.begin]),!1;if(y._radixDance===!0){var C=E.indexOf(y.radixPoint);if(y.digitsOptional){if(C===0)return(w=E.slice().reverse()).pop(),A.trigger("setvalue",[w.join(""),p.begin>=w.length?w.length:p.begin]),!1}else if(C!==-1&&(p.begin=w.length?C+1:p.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(d){return"("+d.groupSeparator+"99){*|1}("+d.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(o,a,l){var c;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=((c=l(8741))&&c.__esModule?c:{default:c}).default?window:{};a.default=u},7760:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.HandleNativePlaceholder=function(_,d){var E=_?_.inputmask:this;if(v.ie){if(_.inputmask._valueGet()!==d&&(_.placeholder!==d||_.placeholder==="")){var p=h.getBuffer.call(E).slice(),y=_.inputmask._valueGet();if(y!==d){var w=h.getLastValidPosition.call(E);w===-1&&y===h.getBufferTemplate.call(E).join("")?p=[]:w!==-1&&T.call(E,p),m(_,p)}}}else _.placeholder!==d&&(_.placeholder=d,_.placeholder===""&&_.removeAttribute("placeholder"))},a.applyInputValue=I,a.checkVal=g,a.clearOptionalTail=T,a.unmaskedvalue=function(_){var d=_?_.inputmask:this,E=d.opts,p=d.maskset;if(_){if(_.inputmask===void 0)return _.value;_.inputmask&&_.inputmask.refreshValue&&I(_,_.inputmask._valueGet(!0))}for(var y=[],w=p.validPositions,A=0,S=w.length;A0&&z[H-1]===" ";)H--;var D=H===0&&!h.isMask.call(w,x)&&(u.getTest.call(w,x).match.nativeDef===V.charAt(0)||u.getTest.call(w,x).match.static===!0&&u.getTest.call(w,x).match.nativeDef==="'"+V.charAt(0)||u.getTest.call(w,x).match.nativeDef===" "&&(u.getTest.call(w,x+1).match.nativeDef===V.charAt(0)||u.getTest.call(w,x+1).match.static===!0&&u.getTest.call(w,x+1).match.nativeDef==="'"+V.charAt(0)));if(!D&&H>0&&!h.isMask.call(w,x,!1,!0)){var b=h.seekNext.call(w,x);w.caretPos.begin0){var F,j,Z=h.seekNext.call(w,-1,void 0,!1);if(!f.isComplete.call(w,h.getBuffer.call(w))&&B.length<=Z||f.isComplete.call(w,h.getBuffer.call(w))&&B.length>0&&B.length!==Z&&B[0]===0)for(var J=Z;(F=B.shift())!==void 0;){var se=new O.Event("_checkval");if((j=A.validPositions[F]).generatedInput=!0,se.key=j.input,(G=k.EventHandlers.keypressEvent.call(w,se,!0,!1,E,J))&&G.pos!==void 0&&G.pos!==F&&A.validPositions[G.pos]&&A.validPositions[G.pos].match.static===!0)B.push(G.pos);else if(!G)break;J++}}d&&m.call(w,_,h.getBuffer.call(w),G?G.forwardPosition:w.caretPos.begin,y||new O.Event("checkval"),y&&(y.type==="input"&&w.undoValue!==h.getBuffer.call(w).join("")||y.type==="paste")),S.skipOptionalPartCharacter=U}function m(_,d,E,p,y){var w=_?_.inputmask:this,A=w.opts,S=w.dependencyLib;if(p&&typeof A.onBeforeWrite=="function"){var O=A.onBeforeWrite.call(w,p,d,E,A);if(O){if(O.refreshFromBuffer){var C=O.refreshFromBuffer;f.refreshFromBuffer.call(w,C===!0?C:C.start,C.end,O.buffer||d),d=h.getBuffer.call(w,!0)}E!==void 0&&(E=O.caret!==void 0?O.caret:E)}}if(_!==void 0&&(_.inputmask._valueSet(d.join("")),E===void 0||p!==void 0&&p.type==="blur"||h.caret.call(w,_,E,void 0,void 0,p!==void 0&&p.type==="keydown"&&(p.key===c.keys.Delete||p.key===c.keys.Backspace)),y===!0)){var R=S(_),L=_.inputmask._valueGet();_.inputmask.skipInputEvent=!0,R.trigger("input"),setTimeout(function(){L===h.getBufferTemplate.call(w).join("")?R.trigger("cleared"):f.isComplete.call(w,d)===!0&&R.trigger("complete")},0)}}},2394:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(157),u=p(l(4963)),h=p(l(9380)),f=l(2391),v=l(4713),k=l(8711),I=l(7215),T=l(7760),g=l(9716),m=p(l(7392)),_=p(l(3976)),d=p(l(8741));function E(C){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},E(C)}function p(C){return C&&C.__esModule?C:{default:C}}var y=h.default.document,w="_inputmask_opts";function A(C,R,L){if(d.default){if(!(this instanceof A))return new A(C,R,L);this.dependencyLib=u.default,this.el=void 0,this.events={},this.maskset=void 0,L!==!0&&(Object.prototype.toString.call(C)==="[object Object]"?R=C:(R=R||{},C&&(R.alias=C)),this.opts=u.default.extend(!0,{},this.defaults,R),this.noMasksCache=R&&R.definitions!==void 0,this.userOptions=R||{},S(this.opts.alias,R,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function S(C,R,L){var G=A.prototype.aliases[C];return G?(G.alias&&S(G.alias,void 0,L),u.default.extend(!0,L,G),u.default.extend(!0,L,R),!0):(L.mask===null&&(L.mask=C),!1)}A.prototype={dataAttribute:"data-inputmask",defaults:_.default,definitions:m.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(C){var R=this;return typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:Array.isArray(C)?C:[].slice.call(C)).forEach(function(L,G){var U=u.default.extend(!0,{},R.opts);if(function(Y,F,j,Z){function J(x,V){var z=Z===""?x:Z+"-"+x;(V=V!==void 0?V:Y.getAttribute(z))!==null&&(typeof V=="string"&&(x.indexOf("on")===0?V=h.default[V]:V==="false"?V=!1:V==="true"&&(V=!0)),j[x]=V)}if(F.importDataAttributes===!0){var se,le,ie,oe,N=Y.getAttribute(Z);if(N&&N!==""&&(N=N.replace(/'/g,'"'),le=JSON.parse("{"+N+"}")),le){for(oe in ie=void 0,le)if(oe.toLowerCase()==="alias"){ie=le[oe];break}}for(se in J("alias",ie),j.alias&&S(j.alias,j,F),F){if(le){for(oe in ie=void 0,le)if(oe.toLowerCase()===se.toLowerCase()){ie=le[oe];break}}J(se,ie)}}return u.default.extend(!0,F,j),(Y.dir==="rtl"||F.rightAlign)&&(Y.style.textAlign="right"),(Y.dir==="rtl"||F.numericInput)&&(Y.dir="ltr",Y.removeAttribute("dir"),F.isRTL=!0),Object.keys(j).length}(L,U,u.default.extend(!0,{},R.userOptions),R.dataAttribute)){var B=(0,f.generateMaskSet)(U,R.noMasksCache);B!==void 0&&(L.inputmask!==void 0&&(L.inputmask.opts.autoUnmask=!0,L.inputmask.remove()),L.inputmask=new A(void 0,void 0,!0),L.inputmask.opts=U,L.inputmask.noMasksCache=R.noMasksCache,L.inputmask.userOptions=u.default.extend(!0,{},R.userOptions),L.inputmask.el=L,L.inputmask.$el=(0,u.default)(L),L.inputmask.maskset=B,u.default.data(L,w,R.userOptions),c.mask.call(L.inputmask))}}),C&&C[0]&&C[0].inputmask||this},option:function(C,R){return typeof C=="string"?this.opts[C]:E(C)==="object"?(u.default.extend(this.userOptions,C),this.el&&R!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(C){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||C!==void 0){var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!1,!1,R),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,k.getBuffer.call(this),0,this.opts)}return T.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){u.default.data(this.el,w,null);var C=this.opts.autoUnmask?(0,T.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);C!==k.getBufferTemplate.call(this).join("")?this._valueSet(C,this.opts.autoUnmask):this._valueSet(""),g.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?k.getBufferTemplate.call(this).reverse():k.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),I.isComplete.call(this,k.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var C=v.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(R){return R.mask!==C||(C=R,!1)}),C}return this.maskset.metadata},isValid:function(C){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),C){var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!0,!1,R)}else C=this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join("");for(var L=k.getBuffer.call(this),G=k.determineLastRequiredPosition.call(this),U=L.length-1;U>G&&!k.isMask.call(this,U);U--);return L.splice(G,U+1-G),I.isComplete.call(this,L)&&C===(this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join(""))},format:function(C,R){this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache);var L=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!0,!1,L);var G=this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join("");return R?{value:G,metadata:this.getmetadata()}:G},setValue:function(C){this.el&&(0,u.default)(this.el).trigger("setvalue",[C])},analyseMask:f.analyseMask},A.extendDefaults=function(C){u.default.extend(!0,A.prototype.defaults,C)},A.extendDefinitions=function(C){u.default.extend(!0,A.prototype.definitions,C)},A.extendAliases=function(C){u.default.extend(!0,A.prototype.aliases,C)},A.format=function(C,R,L){return A(R).format(C,L)},A.unmask=function(C,R){return A(R).unmaskedvalue(C)},A.isValid=function(C,R){return A(R).isValid(C)},A.remove=function(C){typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:C).forEach(function(R){R.inputmask&&R.inputmask.remove()})},A.setValue=function(C,R){typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:C).forEach(function(L){L.inputmask?L.inputmask.setValue(R):(0,u.default)(L).trigger("setvalue",[R])})},A.dependencyLib=u.default,h.default.Inputmask=A;var O=A;a.default=O},5296:function(o,a,l){function c(p){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},c(p)}var u=_(l(9380)),h=_(l(2394)),f=_(l(8741));function v(p){var y=T();return function(){var w,A=m(p);if(y){var S=m(this).constructor;w=Reflect.construct(A,arguments,S)}else w=A.apply(this,arguments);return function(O,C){if(C&&(c(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(O)}(this,w)}}function k(p){var y=typeof Map=="function"?new Map:void 0;return k=function(w){if(w===null||(A=w,Function.toString.call(A).indexOf("[native code]")===-1))return w;var A;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(y!==void 0){if(y.has(w))return y.get(w);y.set(w,S)}function S(){return I(w,arguments,m(this).constructor)}return S.prototype=Object.create(w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),g(S,w)},k(p)}function I(p,y,w){return I=T()?Reflect.construct.bind():function(A,S,O){var C=[null];C.push.apply(C,S);var R=new(Function.bind.apply(A,C));return O&&g(R,O.prototype),R},I.apply(null,arguments)}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(p,y){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},g(p,y)}function m(p){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},m(p)}function _(p){return p&&p.__esModule?p:{default:p}}var d=u.default.document;if(f.default&&d&&d.head&&d.head.attachShadow&&u.default.customElements&&u.default.customElements.get("input-mask")===void 0){var E=function(p){(function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),O&&g(S,O)})(A,p);var y,w=v(A);function A(){var S;(function(U,B){if(!(U instanceof B))throw new TypeError("Cannot call a class as a function")})(this,A);var O=(S=w.call(this)).getAttributeNames(),C=S.attachShadow({mode:"closed"}),R=d.createElement("input");for(var L in R.type="text",C.appendChild(R),O)Object.prototype.hasOwnProperty.call(O,L)&&R.setAttribute(O[L],S.getAttribute(O[L]));var G=new h.default;return G.dataAttribute="",G.mask(R),R.inputmask.shadowRoot=C,S}return y=A,Object.defineProperty(y,"prototype",{writable:!1}),y}(k(HTMLElement));u.default.customElements.define("input-mask",E)}},2839:function(o,a){function l(v,k){return function(I){if(Array.isArray(I))return I}(v)||function(I,T){var g=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(g!=null){var m,_,d,E,p=[],y=!0,w=!1;try{if(d=(g=g.call(I)).next,T===0){if(Object(g)!==g)return;y=!1}else for(;!(y=(m=d.call(g)).done)&&(p.push(m.value),p.length!==T);y=!0);}catch(A){w=!0,_=A}finally{try{if(!y&&g.return!=null&&(E=g.return(),Object(E)!==E))return}finally{if(w)throw _}}return p}}(v,k)||function(I,T){if(I){if(typeof I=="string")return c(I,T);var g=Object.prototype.toString.call(I).slice(8,-1);if(g==="Object"&&I.constructor&&(g=I.constructor.name),g==="Map"||g==="Set")return Array.from(I);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return c(I,T)}}(v,k)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c(v,k){(k==null||k>v.length)&&(k=v.length);for(var I=0,T=new Array(k);I0){if(G(E=C[C.length-1],_),E.isAlternator){p=C.pop();for(var z=0;z0?(E=C[C.length-1]).matches.push(p):O.matches.push(p)}}else G(O,_)}function B(z){var H=new u.default(!0);return H.openGroup=!1,H.matches=z,H}function Y(){if((d=C.pop()).openGroup=!1,d!==void 0)if(C.length>0){if((E=C[C.length-1]).matches.push(d),E.isAlternator){for(var z=(p=C.pop()).matches[0].matches?p.matches[0].matches.length:1,H=0;H0?(E=C[C.length-1]).matches.push(p):O.matches.push(p)}}else O.matches.push(d);else U()}function F(z){var H=z.pop();return H.isQuantifier&&(H=B([z.pop(),H])),H}for(T&&(g.optionalmarker[0]=void 0,g.optionalmarker[1]=void 0);m=T?A.exec(I):w.exec(I);){if(_=m[0],T){switch(_.charAt(0)){case"?":_="{0,1}";break;case"+":case"*":_="{"+_+"}";break;case"|":if(C.length===0){var j=B(O.matches);j.openGroup=!0,C.push(j),O.matches=[],L=!0}}switch(_){case"\\d":_="[0-9]";break;case"\\p":_+=A.exec(I)[0],_+=A.exec(I)[0]}}if(S)U();else switch(_.charAt(0)){case"$":case"^":T||U();break;case g.escapeChar:S=!0,T&&U();break;case g.optionalmarker[1]:case g.groupmarker[1]:Y();break;case g.optionalmarker[0]:C.push(new u.default(!1,!0));break;case g.groupmarker[0]:C.push(new u.default(!0));break;case g.quantifiermarker[0]:var Z=new u.default(!1,!1,!0),J=(_=_.replace(/[{}?]/g,"")).split("|"),se=J[0].split(","),le=isNaN(se[0])?se[0]:parseInt(se[0]),ie=se.length===1?le:isNaN(se[1])?se[1]:parseInt(se[1]),oe=isNaN(J[1])?J[1]:parseInt(J[1]);le!=="*"&&le!=="+"||(le=ie==="*"?0:1),Z.quantifier={min:le,max:ie,jit:oe};var N=C.length>0?C[C.length-1].matches:O.matches;(m=N.pop()).isGroup||(m=B([m])),N.push(m),N.push(Z);break;case g.alternatormarker:if(C.length>0){var x=(E=C[C.length-1]).matches[E.matches.length-1];y=E.openGroup&&(x.matches===void 0||x.isGroup===!1&&x.isAlternator===!1)?C.pop():F(E.matches)}else y=F(O.matches);if(y.isAlternator)C.push(y);else if(y.alternatorGroup?(p=C.pop(),y.alternatorGroup=!1):p=new u.default(!1,!1,!1,!0),p.matches.push(y),C.push(p),y.openGroup){y.openGroup=!1;var V=new u.default(!0);V.alternatorGroup=!0,C.push(V)}break;default:U()}}for(L&&Y();C.length>0;)d=C.pop(),O.matches.push(d);return O.matches.length>0&&(function z(H){H&&H.matches&&H.matches.forEach(function(D,b){var P=H.matches[b+1];(P===void 0||P.matches===void 0||P.isQuantifier===!1)&&D&&D.isGroup&&(D.isGroup=!1,T||(G(D,g.groupmarker[0],0),D.openGroup!==!0&&G(D,g.groupmarker[1]))),z(D)})}(O),R.push(O)),(g.numericInput||g.isRTL)&&function z(H){for(var D in H.matches=H.matches.reverse(),H.matches)if(Object.prototype.hasOwnProperty.call(H.matches,D)){var b=parseInt(D);if(H.matches[D].isQuantifier&&H.matches[b+1]&&H.matches[b+1].isGroup){var P=H.matches[D];H.matches.splice(D,1),H.matches.splice(b+1,0,P)}H.matches[D].matches!==void 0?H.matches[D]=z(H.matches[D]):H.matches[D]=((M=H.matches[D])===g.optionalmarker[0]?M=g.optionalmarker[1]:M===g.optionalmarker[1]?M=g.optionalmarker[0]:M===g.groupmarker[0]?M=g.groupmarker[1]:M===g.groupmarker[1]&&(M=g.groupmarker[0]),M)}var M;return H}(R[0]),R},a.generateMaskSet=function(I,T){var g;function m(E,p){var y=p.repeat,w=p.groupmarker,A=p.quantifiermarker,S=p.keepStatic;if(y>0||y==="*"||y==="+"){var O=y==="*"?0:y==="+"?1:y;E=w[0]+E+w[1]+A[0]+O+","+y+A[1]}if(S===!0){var C=E.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));C&&C.forEach(function(R,L){var G=function(Y,F){return function(j){if(Array.isArray(j))return j}(Y)||function(j,Z){var J=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(J!=null){var se,le,ie,oe,N=[],x=!0,V=!1;try{if(ie=(J=J.call(j)).next,Z===0){if(Object(J)!==J)return;x=!1}else for(;!(x=(se=ie.call(J)).done)&&(N.push(se.value),N.length!==Z);x=!0);}catch(z){V=!0,le=z}finally{try{if(!x&&J.return!=null&&(oe=J.return(),Object(oe)!==oe))return}finally{if(V)throw le}}return N}}(Y,F)||function(j,Z){if(j){if(typeof j=="string")return v(j,Z);var J=Object.prototype.toString.call(j).slice(8,-1);if(J==="Object"&&j.constructor&&(J=j.constructor.name),J==="Map"||J==="Set")return Array.from(j);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return v(j,Z)}}(Y,F)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(R.split("["),2),U=G[0],B=G[1];B=B.replace("]",""),E=E.replace(new RegExp("".concat((0,f.default)(U),"\\[").concat((0,f.default)(B),"\\]")),U.charAt(0)===B.charAt(0)?"(".concat(U,"|").concat(U).concat(B,")"):"".concat(U,"[").concat(B,"]"))})}return E}function _(E,p,y){var w,A,S=!1;return E!==null&&E!==""||((S=y.regex!==null)?E=(E=y.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(S=!0,E=".*")),E.length===1&&y.greedy===!1&&y.repeat!==0&&(y.placeholder=""),E=m(E,y),A=S?"regex_"+y.regex:y.numericInput?E.split("").reverse().join(""):E,y.keepStatic!==null&&(A="ks_"+y.keepStatic+A),h.default.prototype.masksCache[A]===void 0||T===!0?(w={mask:E,maskToken:h.default.prototype.analyseMask(E,S,y),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:p,maskLength:void 0,jitOffset:{}},T!==!0&&(h.default.prototype.masksCache[A]=w,w=c.default.extend(!0,{},h.default.prototype.masksCache[A]))):w=c.default.extend(!0,{},h.default.prototype.masksCache[A]),w}if(typeof I.mask=="function"&&(I.mask=I.mask(I)),Array.isArray(I.mask)){if(I.mask.length>1){I.keepStatic===null&&(I.keepStatic=!0);var d=I.groupmarker[0];return(I.isRTL?I.mask.reverse():I.mask).forEach(function(E){d.length>1&&(d+=I.alternatormarker),E.mask!==void 0&&typeof E.mask!="function"?d+=E.mask:d+=E}),_(d+=I.groupmarker[1],I.mask,I)}I.mask=I.mask.pop()}return g=I.mask&&I.mask.mask!==void 0&&typeof I.mask.mask!="function"?_(I.mask.mask,I.mask,I):_(I.mask,I.mask,I),I.keepStatic===null&&(I.keepStatic=!1),g};var c=k(l(4963)),u=k(l(9695)),h=k(l(2394)),f=k(l(7184));function v(I,T){(T==null||T>I.length)&&(T=I.length);for(var g=0,m=new Array(T);g>>0;if(c===0)return!1;for(var u=0|a,h=Math.max(u>=0?u:c-Math.abs(u),0);hthis.length)&&this.indexOf(o,a)!==-1})},8711:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.caret=function(T,g,m,_,d){var E,p=this,y=this.opts;if(g===void 0)return"selectionStart"in T&&"selectionEnd"in T?(g=T.selectionStart,m=T.selectionEnd):window.getSelection?(E=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==T&&E.commonAncestorContainer!==T||(g=E.startOffset,m=E.endOffset):document.selection&&document.selection.createRange&&(m=(g=0-(E=document.selection.createRange()).duplicate().moveStart("character",-T.inputmask._valueGet().length))+E.text.length),{begin:_?g:I.call(p,g),end:_?m:I.call(p,m)};if(Array.isArray(g)&&(m=p.isRTL?g[0]:g[1],g=p.isRTL?g[1]:g[0]),g.begin!==void 0&&(m=p.isRTL?g.begin:g.end,g=p.isRTL?g.end:g.begin),typeof g=="number"){g=_?g:I.call(p,g),m=typeof(m=_?m:I.call(p,m))=="number"?m:g;var w=parseInt(((T.ownerDocument.defaultView||window).getComputedStyle?(T.ownerDocument.defaultView||window).getComputedStyle(T,null):T.currentStyle).fontSize)*m;if(T.scrollLeft=w>T.scrollWidth?w:0,T.inputmask.caretPos={begin:g,end:m},y.insertModeVisual&&y.insertMode===!1&&g===m&&(d||m++),T===(T.inputmask.shadowRoot||T.ownerDocument).activeElement)if("setSelectionRange"in T)T.setSelectionRange(g,m);else if(window.getSelection){if(E=document.createRange(),T.firstChild===void 0||T.firstChild===null){var A=document.createTextNode("");T.appendChild(A)}E.setStart(T.firstChild,gw&&((m=A[g]).match.optionality||m.match.optionalQuantifier&&m.match.newBlockMarker||C&&(C!==A[g].locator[S.alternation]&&m.match.static!=1||m.match.static===!0&&m.locator[S.alternation]&&u.checkAlternationMatch.call(_,m.locator[S.alternation].toString().split(","),C.toString().split(","))&&c.getTests.call(_,g)[0].def!==""))&&p[g]===c.getPlaceholder.call(_,g,m.match);g--)y--;return T?{l:y,def:A[y]?A[y].match:void 0}:y},a.determineNewCaretPosition=function(T,g,m){var _=this,d=_.maskset,E=_.opts;if(g&&(_.isRTL?T.end=T.begin:T.begin=T.end),T.begin===T.end){switch(m=m||E.positionCaretOnClick){case"none":break;case"select":T={begin:0,end:h.call(_).length};break;case"ignore":T.end=T.begin=k.call(_,f.call(_));break;case"radixFocus":if(_.clicked>1&&d.validPositions.length==0)break;if(function(L){if(E.radixPoint!==""&&E.digits!==0){var G=d.validPositions;if(G[L]===void 0||G[L].input===c.getPlaceholder.call(_,L)){if(L=R||y===A)&&(A=R)}T.end=T.begin=A}}return T}},a.getBuffer=h,a.getBufferTemplate=function(){var T=this.maskset;return T._buffer===void 0&&(T._buffer=c.getMaskTemplate.call(this,!1,1),T.buffer===void 0&&(T.buffer=T._buffer.slice())),T._buffer},a.getLastValidPosition=f,a.isMask=v,a.resetMaskSet=function(T){var g=this.maskset;g.buffer=void 0,T!==!0&&(g.validPositions=[],g.p=0)},a.seekNext=k,a.seekPrevious=function(T,g){var m=this,_=T-1;if(T<=0)return 0;for(;_>0&&(g===!0&&(c.getTest.call(m,_).match.newBlockMarker!==!0||!v.call(m,_,void 0,!0))||g!==!0&&!v.call(m,_,void 0,!0));)_--;return _},a.translatePosition=I;var c=l(4713),u=l(7215);function h(T){var g=this,m=g.maskset;return m.buffer!==void 0&&T!==!0||(m.buffer=c.getMaskTemplate.call(g,!0,f.call(g),!0),m._buffer===void 0&&(m._buffer=m.buffer.slice())),m.buffer}function f(T,g,m){var _=this.maskset,d=-1,E=-1,p=m||_.validPositions;T===void 0&&(T=-1);for(var y=0,w=p.length;y=T&&(E=y));return d===-1||d==T?E:E==-1||T-d-1){if(m){var p=c.getTests.call(_,T);return p.length>1+(p[p.length-1].match.def===""?1:0)}var y=c.determineTestTemplate.call(_,T,c.getTests.call(_,T)),w=c.getPlaceholder.call(_,T,y.match);return y.match.def!==w}return!1}function k(T,g,m){var _=this;m===void 0&&(m=!0);for(var d=T+1;c.getTest.call(_,d).match.def!==""&&(g===!0&&(c.getTest.call(_,d).match.newBlockMarker!==!0||!v.call(_,d,void 0,!0))||g!==!0&&!v.call(_,d,void 0,m));)d++;return d}function I(T){var g=this.opts,m=this.el;return!this.isRTL||typeof T!="number"||g.greedy&&g.placeholder===""||!m||(T=this._valueGet().length-T)<0&&(T=0),T}},4713:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.determineTestTemplate=I,a.getDecisionTaker=f,a.getMaskTemplate=function(_,d,E,p,y){var w=this,A=this.opts,S=this.maskset,O=A.greedy;y&&A.greedy&&(A.greedy=!1,w.maskset.tests={}),d=d||0;var C,R,L,G,U=[],B=0;do{if(_===!0&&S.validPositions[B])R=(L=y&&S.validPositions[B].match.optionality&&S.validPositions[B+1]===void 0&&(S.validPositions[B].generatedInput===!0||S.validPositions[B].input==A.skipOptionalPartCharacter&&B>0)?I.call(w,B,m.call(w,B,C,B-1)):S.validPositions[B]).match,C=L.locator.slice(),U.push(E===!0?L.input:E===!1?R.nativeDef:v.call(w,B,R));else{R=(L=k.call(w,B,C,B-1)).match,C=L.locator.slice();var Y=p!==!0&&(A.jitMasking!==!1?A.jitMasking:R.jit);(G=(G&&R.static&&R.def!==A.groupSeparator&&R.fn===null||S.validPositions[B-1]&&R.static&&R.def!==A.groupSeparator&&R.fn===null)&&S.tests[B])||Y===!1||Y===void 0||typeof Y=="number"&&isFinite(Y)&&Y>B?U.push(E===!1?R.nativeDef:v.call(w,U.length,R)):G=!1}B++}while(R.static!==!0||R.def!==""||d>B);return U[U.length-1]===""&&U.pop(),E===!1&&S.maskLength!==void 0||(S.maskLength=B-1),A.greedy=O,U},a.getPlaceholder=v,a.getTest=T,a.getTestTemplate=k,a.getTests=m,a.isSubsetOf=g;var c,u=(c=l(2394))&&c.__esModule?c:{default:c};function h(_,d){var E=(_.alternation!=null?_.mloc[f(_)]:_.locator).join("");if(E!=="")for(;E.length0&&(d=d.split(",")[0]),d!==void 0?d.toString():""}function v(_,d,E){var p=this.opts,y=this.maskset;if((d=d||T.call(this,_).match).placeholder!==void 0||E===!0)return typeof d.placeholder=="function"?d.placeholder(p):d.placeholder;if(d.static===!0){if(_>-1&&y.validPositions[_]===void 0){var w,A=m.call(this,_),S=[];if(A.length>1+(A[A.length-1].match.def===""?1:0)){for(var O=0;O1&&/[0-9a-bA-Z]/.test(S[0].match.def)))return p.placeholder.charAt(_%p.placeholder.length)}}return d.def}return p.placeholder.charAt(_%p.placeholder.length)}function k(_,d,E){return this.maskset.validPositions[_]||I.call(this,_,m.call(this,_,d&&d.slice(),E))}function I(_,d){var E=this.opts,p=0,y=function(G,U){var B=0,Y=!1;return U.forEach(function(F){F.match.optionality&&(B!==0&&B!==F.match.optionality&&(Y=!0),(B===0||B>F.match.optionality)&&(B=F.match.optionality))}),B&&(G==0||U.length==1?B=0:Y||(B=0)),B}(_,d);_=_>0?_-1:0;var w,A,S,O=h(T.call(this,_));E.greedy&&d.length>1&&d[d.length-1].match.def===""&&(p=1);for(var C=0;C0&&S.match.newBlockMarker==="master"&&(!R.match.optionality||R.match.optionality-y<1||!R.match.newBlockMarker)||S&&!E.greedy&&S.match.optionalQuantifier&&!R.match.optionalQuantifier)&&(A=L,S=R)}return S}function T(_,d){var E=this.maskset;return E.validPositions[_]?E.validPositions[_]:(d||m.call(this,_))[0]}function g(_,d,E){function p(y){for(var w,A=[],S=-1,O=0,C=y.length;Ote.alternation){for(var re=te.alternation;re_+O._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+S.mask;if(L===_&&H.matches===void 0){if(U.push({match:H,locator:D.reverse(),cd:Y,mloc:{}}),!H.optionality||b!==void 0||!(O.definitions&&O.definitions[H.nativeDef]&&O.definitions[H.nativeDef].optional||u.default.prototype.definitions[H.nativeDef]&&u.default.prototype.definitions[H.nativeDef].optional))return!0;B=!0,L=_}else if(H.matches!==void 0){if(H.isGroup&&b!==H)return function(){if(H=x(le.matches[le.matches.indexOf(H)+1],D,b))return!0}();if(H.isOptional)return function(){var X=H,te=U.length;if(H=F(H,ie,D,b),U.length>0){if(U.forEach(function(ne,Q){Q>=te&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),p=U[U.length-1].match,b!==void 0||!P(p,X))return H;B=!0,L=_}}();if(H.isAlternator)return function(){w.hasAlternator=!0;var X,te,ne,Q=H,re=[],W=U.slice(),K=D.length,de=!1,he=ie.length>0?ie.shift():-1;if(he===-1||typeof he=="string"){var Te,Ee=L,De=ie.slice(),Oe=[];if(typeof he=="string")Oe=he.split(",");else for(Te=0;Te=O.keepStatic)&&(Oe=Oe.slice(0,1));for(var ft=0;ftQ.matches[0].matches.length)break;X=U.slice(),L=Ee,U=[];for(var Dn=0;Dn0,H=re.length>0,ie=De.slice()}else H=x(Q.matches[he]||le.matches[he],[he].concat(D),b);if(H)return!0}();if(H.isQuantifier&&b!==le.matches[le.matches.indexOf(H)-1])return function(){for(var X=H,te=!1,ne=ie.length>0?ie.shift():0;ne<(isNaN(X.quantifier.max)?ne+1:X.quantifier.max)&&L<=_;ne++){var Q=le.matches[le.matches.indexOf(X)-1];if(H=x(Q,[ne].concat(D),Q)){if(U.forEach(function(re,W){(p=j(Q,re.match)?re.match:U[U.length-1].match).optionalQuantifier=ne>=X.quantifier.min,p.jit=(ne+1)*(Q.matches.indexOf(p)+1)>X.quantifier.jit,p.optionalQuantifier&&P(p,Q)&&(B=!0,L=_,O.greedy&&S.validPositions[_-1]==null&&ne>X.quantifier.min&&["*","+"].indexOf(X.quantifier.max)!=-1&&(U.pop(),Y=void 0),te=!0,H=!1),!te&&p.jit&&(S.jitOffset[_]=Q.matches.length-Q.matches.indexOf(p))}),te)break;return!0}}}();if(H=F(H,ie,D,b))return!0}else L++}for(var V=ie.length>0?ie.shift():0;V_)break}}function j(le,ie){var oe=le.matches.indexOf(ie)!=-1;return oe||le.matches.forEach(function(N,x){N.matches===void 0||oe||(oe=j(N,ie))}),oe}if(_>-1){if(d===void 0){for(var Z,J=_-1;(Z=S.validPositions[J]||S.tests[J])===void 0&&J>-1;)J--;Z!==void 0&&J>-1&&(G=function(le,ie){var oe,N=[];return Array.isArray(ie)||(ie=[ie]),ie.length>0&&(ie[0].alternation===void 0||O.keepStatic===!0?(N=I.call(w,le,ie.slice()).locator.slice()).length===0&&(N=ie[0].locator.slice()):ie.forEach(function(x){x.def!==""&&(N.length===0?(oe=x.alternation,N=x.locator.slice()):x.locator[oe]&&N[oe].toString().indexOf(x.locator[oe])===-1&&(N[oe]+=","+x.locator[oe]))})),N}(J,Z),Y=G.join(""),L=J)}if(S.tests[_]&&S.tests[_][0].cd===Y)return S.tests[_];for(var se=G.shift();se_);se++);}return(U.length===0||B)&&U.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:Y}),d!==void 0&&S.tests[_]?y=A.extend(!0,[],U):(S.tests[_]=A.extend(!0,[],U),y=S.tests[_]),U.forEach(function(le){le.match.optionality=le.match.defOptionality||!1}),y}},7215:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.alternate=v,a.checkAlternationMatch=function(p,y,w){for(var A,S=this.opts.greedy?y:y.slice(0,1),O=!1,C=w!==void 0?w.split(","):[],R=0;R=h.getBuffer.call(O).length&&U>=w.end&&(w.end=U+1),y===u.keys.Backspace?w.end-w.begin<1&&(w.begin=h.seekPrevious.call(O,w.begin)):y===u.keys.Delete&&w.begin===w.end&&(w.end=h.isMask.call(O,w.end,!0,!0)?w.end+1:h.seekNext.call(O,w.end)+1),(G=E.call(O,w))!==!1){if(A!==!0&&R.keepStatic!==!1||R.regex!==null&&c.getTest.call(O,w.begin).match.def.indexOf("|")!==-1){var B=v.call(O,!0);if(B){var Y=B.caret!==void 0?B.caret:B.pos?h.seekNext.call(O,B.pos.begin?B.pos.begin:B.pos):h.getLastValidPosition.call(O,-1,!0);(y!==u.keys.Delete||w.begin>Y)&&w.begin}}A!==!0&&(C.p=y===u.keys.Delete?w.begin+G:w.begin,C.p=h.determineNewCaretPosition.call(O,{begin:C.p,end:C.p},!1,R.insertMode===!1&&y===u.keys.Backspace?"none":void 0).begin)}},a.isComplete=I,a.isSelection=T,a.isValid=g,a.refreshFromBuffer=_,a.revalidateMask=E;var c=l(4713),u=l(2839),h=l(8711),f=l(6030);function v(p,y,w,A,S,O){var C,R,L,G,U,B,Y,F,j,Z,J,se=this,le=this.dependencyLib,ie=this.opts,oe=se.maskset,N=le.extend(!0,[],oe.validPositions),x=le.extend(!0,{},oe.tests),V=!1,z=!1,H=S!==void 0?S:h.getLastValidPosition.call(se);if(O&&(Z=O.begin,J=O.end,O.begin>O.end&&(Z=O.end,J=O.begin)),H===-1&&S===void 0)C=0,R=(G=c.getTest.call(se,C)).alternation;else for(;H>=0;H--)if((L=oe.validPositions[H])&&L.alternation!==void 0){if(H<=(p||0)&&G&&G.locator[L.alternation]!==L.locator[L.alternation])break;C=H,R=oe.validPositions[C].alternation,G=L}if(R!==void 0){Y=parseInt(C),oe.excludes[Y]=oe.excludes[Y]||[],p!==!0&&oe.excludes[Y].push((0,c.getDecisionTaker)(G)+":"+G.alternation);var D=[],b=-1;for(U=Y;U=J)&&D.push(B.input),delete oe.validPositions[U];for(b===-1&&y!==void 0&&(D.push(y),b=D.length-1);oe.excludes[Y]!==void 0&&oe.excludes[Y].length<10;){for(oe.tests={},h.resetMaskSet.call(se,!0),V=!0,U=0;Uy:p.end-p.begin>y}function g(p,y,w,A,S,O,C){var R=this,L=this.dependencyLib,G=this.opts,U=R.maskset;w=w===!0;var B=p;function Y(V){if(V!==void 0){if(V.remove!==void 0&&(Array.isArray(V.remove)||(V.remove=[V.remove]),V.remove.sort(function(H,D){return R.isRTL?H.pos-D.pos:D.pos-H.pos}).forEach(function(H){E.call(R,{begin:H,end:H+1})}),V.remove=void 0),V.insert!==void 0&&(Array.isArray(V.insert)||(V.insert=[V.insert]),V.insert.sort(function(H,D){return R.isRTL?D.pos-H.pos:H.pos-D.pos}).forEach(function(H){H.c!==""&&g.call(R,H.pos,H.c,H.strict===void 0||H.strict,H.fromIsValid!==void 0?H.fromIsValid:A)}),V.insert=void 0),V.refreshFromBuffer&&V.buffer){var z=V.refreshFromBuffer;_.call(R,z===!0?z:z.start,z.end,V.buffer),V.refreshFromBuffer=void 0}V.rewritePosition!==void 0&&(B=V.rewritePosition,V=!0)}return V}function F(V,z,H){var D=!1;return c.getTests.call(R,V).every(function(b,P){var M=b.match;if(h.getBuffer.call(R,!0),(D=(!M.jit||U.validPositions[h.seekPrevious.call(R,V)]!==void 0)&&(M.fn!=null?M.fn.test(z,U,V,H,G,T.call(R,p)):(z===M.def||z===G.skipOptionalPartCharacter)&&M.def!==""&&{c:c.getPlaceholder.call(R,V,M,!0)||M.def,pos:V}))!==!1){var $=D.c!==void 0?D.c:z,q=V;return $=$===G.skipOptionalPartCharacter&&M.static===!0?c.getPlaceholder.call(R,V,M,!0)||M.def:$,(D=Y(D))!==!0&&D.pos!==void 0&&D.pos!==V&&(q=D.pos),D!==!0&&D.pos===void 0&&D.c===void 0||E.call(R,p,L.extend({},b,{input:k.call(R,$,M,q)}),A,q)===!1&&(D=!1),!1}return!0}),D}p.begin!==void 0&&(B=R.isRTL?p.end:p.begin);var j=!0,Z=L.extend(!0,{},U.validPositions);if(G.keepStatic===!1&&U.excludes[B]!==void 0&&S!==!0&&A!==!0)for(var J=B;J<(R.isRTL?p.begin:p.end);J++)U.excludes[J]!==void 0&&(U.excludes[J]=void 0,delete U.tests[J]);if(typeof G.preValidation=="function"&&A!==!0&&O!==!0&&(j=Y(j=G.preValidation.call(R,h.getBuffer.call(R),B,y,T.call(R,p),G,U,p,w||S))),j===!0){if(j=F(B,y,w),(!w||A===!0)&&j===!1&&O!==!0){var se=U.validPositions[B];if(!se||se.match.static!==!0||se.match.def!==y&&y!==G.skipOptionalPartCharacter){if(G.insertMode||U.validPositions[h.seekNext.call(R,B)]===void 0||p.end>B){var le=!1;if(U.jitOffset[B]&&U.validPositions[h.seekNext.call(R,B)]===void 0&&(j=g.call(R,B+U.jitOffset[B],y,!0,!0))!==!1&&(S!==!0&&(j.caret=B),le=!0),p.end>B&&(U.validPositions[B]=void 0),!le&&!h.isMask.call(R,B,G.keepStatic&&B===0)){for(var ie=B+1,oe=h.seekNext.call(R,B,!1,B!==0);ie<=oe;ie++)if((j=F(ie,y,w))!==!1){j=d.call(R,B,j.pos!==void 0?j.pos:ie)||j,B=ie;break}}}}else j={caret:h.seekNext.call(R,B)}}R.hasAlternator&&S!==!0&&!w&&(j===!1&&G.keepStatic&&(I.call(R,h.getBuffer.call(R))||B===0)?j=v.call(R,B,y,w,A,void 0,p):(T.call(R,p)&&U.tests[B]&&U.tests[B].length>1&&G.keepStatic||j==1&&G.numericInput!==!0&&U.tests[B]&&U.tests[B].length>1&&h.getLastValidPosition.call(R,void 0,!0)>B)&&(j=v.call(R,!0))),j===!0&&(j={pos:B})}if(typeof G.postValidation=="function"&&A!==!0&&O!==!0){var N=G.postValidation.call(R,h.getBuffer.call(R,!0),p.begin!==void 0?R.isRTL?p.end:p.begin:p,y,j,G,U,w,C);N!==void 0&&(j=N===!0?j:N)}j&&j.pos===void 0&&(j.pos=B),j===!1||O===!0?(h.resetMaskSet.call(R,!0),U.validPositions=L.extend(!0,[],Z)):d.call(R,void 0,B,!0);var x=Y(j);return R.maxLength!==void 0&&h.getBuffer.call(R).length>R.maxLength&&!A&&(h.resetMaskSet.call(R,!0),U.validPositions=L.extend(!0,[],Z),x=!1),x}function m(p,y,w){for(var A=this.maskset,S=!1,O=c.getTests.call(this,p),C=0;C0&&!S.validPositions[p];p--);for(var C=p;CN+1?x[N+1]&&x[N+1].match.static===!0&&x[N+1]:x[N+1];return H&&D}return!1}var G=0,U=p.begin!==void 0?p.begin:p,B=p.end!==void 0?p.end:p,Y=!0;if(p.begin>p.end&&(U=p.end,B=p.begin),A=A!==void 0?A:U,w===void 0&&(U!==B||C.insertMode&&O.validPositions[A]!==void 0||y===void 0||y.match.optionalQuantifier||y.match.optionality)){var F,j=R.extend(!0,{},O.validPositions),Z=h.getLastValidPosition.call(S,void 0,!0);for(O.p=U,F=Z;F>=U;F--)delete O.validPositions[F],y===void 0&&delete O.tests[F+1];var J,se,le=A,ie=le;for(y&&(O.validPositions[A]=R.extend(!0,{},y),ie++,le++),F=y?B:B-1;F<=Z;F++){if((J=j[F])!==void 0&&J.generatedInput!==!0&&(F>=B||F>=U&&L(F,j,{begin:U,end:B}))){for(;c.getTest.call(S,ie).match.def!=="";){if((se=m.call(S,ie,J,C))!==!1||J.match.def==="+"){J.match.def==="+"&&h.getBuffer.call(S,!0);var oe=g.call(S,ie,J.input,J.match.def!=="+",!0);if(Y=oe!==!1,le=(oe.pos||ie)+1,!Y&&se)break}else Y=!1;if(Y){y===void 0&&J.match.static&&F===p.begin&&G++;break}if(!Y&&h.getBuffer.call(S),ie>O.maskLength)break;ie++}c.getTest.call(S,ie).match.def==""&&(Y=!1),ie=le}if(!Y)break}if(!Y)return O.validPositions=R.extend(!0,[],j),h.resetMaskSet.call(S,!0),!1}else y&&c.getTest.call(S,A).match.cd===y.match.cd&&(O.validPositions[A]=R.extend(!0,{},y));return h.resetMaskSet.call(S,!0),G}}},r={};function s(o){var a=r[o];if(a!==void 0)return a.exports;var l=r[o]={exports:{}};return n[o](l,l.exports,s),l.exports}var i={};return function(){var o,a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,s(7149),s(3194),s(9302),s(4013),s(3851),s(219),s(207),s(5296);var l=((o=s(2394))&&o.__esModule?o:{default:o}).default;a.default=l}(),i}()})})(gO);var H5=gO.exports;const W5=mO(H5),G5=en(t=>({provide:{inputmask:W5}}));//! moment.js +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,w=!0,A=!1;return{s:function(){d=d.call(m)},n:function(){var S=d.next();return w=S.done,S},e:function(S){A=!0,y=S},f:function(){try{w||d.return==null||d.return()}finally{if(A)throw y}}}}function T(m,_){(_==null||_>m.length)&&(_=m.length);for(var d=0,E=new Array(_);d<_;d++)E[d]=m[d];return E}var g={keyEvent:function(m,_,d,E,p){var y=this.inputmask,w=y.opts,A=y.dependencyLib,S=y.maskset,O=this,C=A(O),R=m.key,L=c.caret.call(y,O),G=w.onKeyDown.call(this,m,c.getBuffer.call(y),L,w);if(G!==void 0)return G;if(R===u.keys.Backspace||R===u.keys.Delete||h.iphone&&R===u.keys.BACKSPACE_SAFARI||m.ctrlKey&&R===u.keys.x&&!("oncut"in O))m.preventDefault(),f.handleRemove.call(y,O,R,L),(0,v.writeBuffer)(O,c.getBuffer.call(y,!0),S.p,m,O.inputmask._valueGet()!==c.getBuffer.call(y).join(""));else if(R===u.keys.End||R===u.keys.PageDown){m.preventDefault();var U=c.seekNext.call(y,c.getLastValidPosition.call(y));c.caret.call(y,O,m.shiftKey?L.begin:U,U,!0)}else R===u.keys.Home&&!m.shiftKey||R===u.keys.PageUp?(m.preventDefault(),c.caret.call(y,O,0,m.shiftKey?L.begin:0,!0)):w.undoOnEscape&&R===u.keys.Escape&&m.altKey!==!0?((0,v.checkVal)(O,!0,!1,y.undoValue.split("")),C.trigger("click")):R!==u.keys.Insert||m.shiftKey||m.ctrlKey||y.userOptions.insertMode!==void 0?w.tabThrough===!0&&R===u.keys.Tab?m.shiftKey===!0?(L.end=c.seekPrevious.call(y,L.end,!0),k.getTest.call(y,L.end-1).match.static===!0&&L.end--,L.begin=c.seekPrevious.call(y,L.end,!0),L.begin>=0&&L.end>0&&(m.preventDefault(),c.caret.call(y,O,L.begin,L.end))):(L.begin=c.seekNext.call(y,L.begin,!0),L.end=c.seekNext.call(y,L.begin,!0),L.end=j.length?Y.length:j.length,se=F.length>=Z.length?F.length:Z.length,le="",ie=[],oe="~";Y.length0;){var E=d.pop();["submit","reset"].includes(_)?I.form!==null&&g(I.form).off(_,E):g(I).off(_,E)}delete I.inputmask.events[_]}}}};a.EventRuler=k},219:function(o,a,l){var c=m(l(2394)),u=l(2839),h=m(l(7184)),f=l(8711),v=l(4713);function k(F,j){return function(Z){if(Array.isArray(Z))return Z}(F)||function(Z,J){var se=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(se!=null){var le,ie,oe,N,M=[],V=!0,z=!1;try{if(oe=(se=se.call(Z)).next,J===0){if(Object(se)!==se)return;V=!1}else for(;!(V=(le=oe.call(se)).done)&&(M.push(le.value),M.length!==J);V=!0);}catch(H){z=!0,ie=H}finally{try{if(!V&&se.return!=null&&(N=se.return(),Object(N)!==N))return}finally{if(z)throw ie}}return M}}(F,j)||function(Z,J){if(Z){if(typeof Z=="string")return I(Z,J);var se=Object.prototype.toString.call(Z).slice(8,-1);if(se==="Object"&&Z.constructor&&(se=Z.constructor.name),se==="Map"||se==="Set")return Array.from(Z);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return I(Z,J)}}(F,j)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function I(F,j){(j==null||j>F.length)&&(j=F.length);for(var Z=0,J=new Array(j);Z0&&j--,Date.prototype.setMonth.call(this,j)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(F){var j=F?parseInt(F):0;return j>0&&j--,Date.prototype.setMonth.call(this,j)},"month",function(){return G(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return G(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return G(Date.prototype.getHours.call(this),2)}],Hx:[function(F){return"[0-9]{".concat(F,"}")},Date.prototype.setHours,"hours",function(F){return function(){return G(Date.prototype.getHours.call(this),F)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return G(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return G(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return G(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",A,"ampm",S,1],tt:["[ap]m",A,"ampm",S,2],T:["[AP]",A,"ampm",S,1],TT:["[AP]M",A,"ampm",S,2],Z:[".*",void 0,"Z",function(){var F=this.toString().match(/\((.+)\)/)[1];return F.includes(" ")&&(F=(F=F.replace("-"," ").toUpperCase()).split(" ").map(function(j){return k(j,1)[0]}).join("")),F}],o:[""],S:[""]},w={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function A(F){var j=this.getHours();F.toLowerCase().includes("p")?this.setHours(j+12):F.toLowerCase().includes("a")&&j>=12&&this.setHours(j-12)}function S(){var F=this.getHours();return(F=F||12)>=12?"PM":"AM"}function O(F){var j=new RegExp("\\d+$").exec(F[0]);if(j&&j[0]!==void 0){var Z=y[F[0][0]+"x"].slice("");return Z[0]=Z[0](j[0]),Z[3]=Z[3](j[0]),Z}if(y[F[0]])return y[F[0]]}function C(F){if(!F.tokenizer){var j=[],Z=[];for(var J in y)if(/\.*x$/.test(J)){var se=J[0]+"\\d+";Z.indexOf(se)===-1&&Z.push(se)}else j.indexOf(J[0])===-1&&j.push(J[0]);F.tokenizer="("+(Z.length>0?Z.join("|")+"|":"")+j.join("+|")+")+?|.",F.tokenizer=new RegExp(F.tokenizer,"g")}return F.tokenizer}function R(F,j,Z){if(!p)return!0;if(F.rawday===void 0||!isFinite(F.rawday)&&new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day||F.day=="29"&&(!isFinite(F.rawyear)||F.rawyear===void 0||F.rawyear==="")||new Date(F.date.getFullYear(),isFinite(F.rawmonth)?F.month:F.date.getMonth()+1,0).getDate()>=F.day)return j;if(F.day=="29"){var J=Y(j.pos,Z);if(J.targetMatch[0]==="yyyy"&&j.pos-J.targetMatchIndex==2)return j.remove=j.pos+1,j}else if(F.month=="02"&&F.day=="30"&&j.c!==void 0)return F.day="03",F.date.setDate(3),F.date.setMonth(1),j.insert=[{pos:j.pos,c:"0"},{pos:j.pos+1,c:j.c}],j.caret=f.seekNext.call(this,j.pos+1),j;return!1}function L(F,j,Z,J){var se,le,ie="";for(C(Z).lastIndex=0;se=C(Z).exec(F);)if(j===void 0)if(le=O(se))ie+="("+le[0]+")";else switch(se[0]){case"[":ie+="(";break;case"]":ie+=")?";break;default:ie+=(0,h.default)(se[0])}else(le=O(se))?J!==!0&&le[3]?ie+=le[3].call(j.date):le[2]?ie+=j["raw"+le[2]]:ie+=se[0]:ie+=se[0];return ie}function G(F,j,Z){for(F=String(F),j=j||2;F.length=F+1){Z=J,J=C(j).exec(j.inputFormat);break}}return{targetMatchIndex:se-le,nextMatch:J,targetMatch:Z}}c.default.extendAliases({datetime:{mask:function(F){return F.numericInput=!1,y.S=F.i18n.ordinalSuffix.join("|"),F.inputFormat=w[F.inputFormat]||F.inputFormat,F.displayFormat=w[F.displayFormat]||F.displayFormat||F.inputFormat,F.outputFormat=w[F.outputFormat]||F.outputFormat||F.inputFormat,F.placeholder=F.placeholder!==""?F.placeholder:F.inputFormat.replace(/[[\]]/,""),F.regex=L(F.inputFormat,void 0,F),F.min=U(F.min,F.inputFormat,F),F.max=U(F.max,F.inputFormat,F),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(F,j,Z,J,se,le,ie,oe){if(oe)return!0;if(isNaN(Z)&&F[j]!==Z){var N=Y(j,se);if(N.nextMatch&&N.nextMatch[0]===Z&&N.targetMatch[0].length>1){var M=y[N.targetMatch[0]][0];if(new RegExp(M).test("0"+F[j-1]))return F[j]=F[j-1],F[j-1]="0",{fuzzy:!0,buffer:F,refreshFromBuffer:{start:j-1,end:j+1},pos:j+1}}}return!0},postValidation:function(F,j,Z,J,se,le,ie,oe){var N,M;if(ie)return!0;if(J===!1&&(((N=Y(j+1,se)).targetMatch&&N.targetMatchIndex===j&&N.targetMatch[0].length>1&&y[N.targetMatch[0]]!==void 0||(N=Y(j+2,se)).targetMatch&&N.targetMatchIndex===j+1&&N.targetMatch[0].length>1&&y[N.targetMatch[0]]!==void 0)&&(M=y[N.targetMatch[0]][0]),M!==void 0&&(le.validPositions[j+1]!==void 0&&new RegExp(M).test(Z+"0")?(F[j]=Z,F[j+1]="0",J={pos:j+2,caret:j}):new RegExp(M).test("0"+Z)&&(F[j]="0",F[j+1]=Z,J={pos:j+2})),J===!1))return J;if(J.fuzzy&&(F=J.buffer,j=J.pos),(N=Y(j,se)).targetMatch&&N.targetMatch[0]&&y[N.targetMatch[0]]!==void 0){var V=y[N.targetMatch[0]];M=V[0];var z=F.slice(N.targetMatchIndex,N.targetMatchIndex+N.targetMatch[0].length);if(new RegExp(M).test(z.join(""))===!1&&N.targetMatch[0].length===2&&le.validPositions[N.targetMatchIndex]&&le.validPositions[N.targetMatchIndex+1]&&(le.validPositions[N.targetMatchIndex+1].input="0"),V[2]=="year")for(var H=v.getMaskTemplate.call(this,!1,1,void 0,!0),D=j+1;D=re.getTime())&&(x.date.setFullYear(E),x.year=X,$.insert=[{pos:$.pos+1,c:Q[0]},{pos:$.pos+2,c:Q[1]}])}}return $}(P,b,se)),b=function(x,$,q,X,te){if(!$)return $;if($&&q.min&&!isNaN(q.min.date.getTime())){var ne;for(x.reset(),C(q).lastIndex=0;ne=C(q).exec(q.inputFormat);){var Q;if((Q=O(ne))&&Q[3]){for(var re=Q[1],W=x[Q[2]],K=q.min[Q[2]],de=q.max?q.max[Q[2]]:K,he=[],Te=!1,Ee=0;EeK[Ee]):(he[Ee]=K[Ee],Q[2]==="year"&&W.length-1==Ee&&K!=de&&(he=(parseInt(he.join(""))+1).toString().split("")),Q[2]==="ampm"&&K!=de&&q.min.date.getTime()>x.date.getTime()&&(he[Ee]=de[Ee]));re.call(x._date,he.join(""))}}$=q.min.date.getTime()<=x.date.getTime(),x.reInit()}return $&&q.max&&(isNaN(q.max.date.getTime())||($=q.max.date.getTime()>=x.date.getTime())),$}(P,b=R.call(this,P,b,se),se,le)),j!==void 0&&b&&J.pos!==j?{buffer:L(se.inputFormat,P,se).split(""),refreshFromBuffer:{start:j,end:J.pos},pos:J.caret||J.pos}:b},onKeyDown:function(F,j,Z,J){F.ctrlKey&&F.key===u.keys.ArrowRight&&(this.inputmask._valueSet(B(new Date,J)),_(this).trigger("setvalue"))},onUnMask:function(F,j,Z){return j&&L(Z.outputFormat,U(F,Z.inputFormat,Z),Z,!0)},casing:function(F,j,Z,J){return j.nativeDef.indexOf("[ap]")==0?F.toLowerCase():j.nativeDef.indexOf("[AP]")==0?F.toUpperCase():F},onBeforeMask:function(F,j){return Object.prototype.toString.call(F)==="[object Date]"&&(F=B(F,j)),F},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(o,a,l){var c,u=(c=l(2394))&&c.__esModule?c:{default:c},h=l(8711),f=l(4713);u.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var v=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function k(I,T,g,m,_){return g-1>-1&&T.buffer[g-1]!=="."?(I=T.buffer[g-1]+I,I=g-2>-1&&T.buffer[g-2]!=="."?T.buffer[g-2]+I:"0"+I):I="00"+I,v.test(I)}u.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:k},j:{validator:k},k:{validator:k},l:{validator:k}},onUnMask:function(I,T,g){return I},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(I){var T=I.separator,g=I.quantifier,m="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",_=m;if(T)for(var d=0;d0&&E>0&&(!p.digitsOptional||y)){var w=d.indexOf(p.radixPoint),A=!1;p.negationSymbol.back===d[d.length-1]&&(A=!0,d.length--),w===-1&&(d.push(p.radixPoint),w=d.length-1);for(var S=1;S<=E;S++)isFinite(d[w+S])||(d[w+S]="0")}return A&&d.push(p.negationSymbol.back),d}function g(d,E){var p=0;for(var y in d==="+"&&(p=h.seekNext.call(this,E.validPositions.length-1)),E.tests)if((y=parseInt(y))>=p){for(var w=0,A=E.tests[y].length;w1&&(d.placeholder=d.placeholder.charAt(0)),d.positionCaretOnClick==="radixFocus"&&d.placeholder===""&&(d.positionCaretOnClick="lvp");var E="0",p=d.radixPoint;d.numericInput===!0&&d.__financeInput===void 0?(E="1",d.positionCaretOnClick=d.positionCaretOnClick==="radixFocus"?"lvp":d.positionCaretOnClick,d.digitsOptional=!1,isNaN(d.digits)&&(d.digits=2),d._radixDance=!1,p=d.radixPoint===","?"?":"!",d.radixPoint!==""&&d.definitions[p]===void 0&&(d.definitions[p]={},d.definitions[p].validator="["+d.radixPoint+"]",d.definitions[p].placeholder=d.radixPoint,d.definitions[p].static=!0,d.definitions[p].generated=!0)):(d.__financeInput=!1,d.numericInput=!0);var y,w="[+]";if(w+=I(d.prefix,d),d.groupSeparator!==""?(d.definitions[d.groupSeparator]===void 0&&(d.definitions[d.groupSeparator]={},d.definitions[d.groupSeparator].validator="["+d.groupSeparator+"]",d.definitions[d.groupSeparator].placeholder=d.groupSeparator,d.definitions[d.groupSeparator].static=!0,d.definitions[d.groupSeparator].generated=!0),w+=d._mask(d)):w+="9{+}",d.digits!==void 0&&d.digits!==0){var A=d.digits.toString().split(",");isFinite(A[0])&&A[1]&&isFinite(A[1])?w+=p+E+"{"+d.digits+"}":(isNaN(d.digits)||parseInt(d.digits)>0)&&(d.digitsOptional||d.jitMasking?(y=w+p+E+"{0,"+d.digits+"}",d.keepStatic=!0):w+=p+E+"{"+d.digits+"}")}else d.inputmode="numeric";return w+=I(d.suffix,d),w+="[-]",y&&(w=[y+I(d.suffix,d)+"[-]",w]),d.greedy=!1,function(S){S.parseMinMaxOptions===void 0&&(S.min!==null&&(S.min=S.min.toString().replace(new RegExp((0,u.default)(S.groupSeparator),"g"),""),S.radixPoint===","&&(S.min=S.min.replace(S.radixPoint,".")),S.min=isFinite(S.min)?parseFloat(S.min):NaN,isNaN(S.min)&&(S.min=Number.MIN_VALUE)),S.max!==null&&(S.max=S.max.toString().replace(new RegExp((0,u.default)(S.groupSeparator),"g"),""),S.radixPoint===","&&(S.max=S.max.replace(S.radixPoint,".")),S.max=isFinite(S.max)?parseFloat(S.max):NaN,isNaN(S.max)&&(S.max=Number.MAX_VALUE)),S.parseMinMaxOptions="done")}(d),d.radixPoint!==""&&d.substituteRadixPoint&&(d.substitutes[d.radixPoint=="."?",":"."]=d.radixPoint),w},_mask:function(d){return"("+d.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:_},1:{validator:_,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(d,E,p,y,w){return w.allowMinus&&(d==="-"||d===w.negationSymbol.front)}},"-":{validator:function(d,E,p,y,w){return w.allowMinus&&d===w.negationSymbol.back}}},preValidation:function(d,E,p,y,w,A,S,O){if(w.__financeInput!==!1&&p===w.radixPoint)return!1;var C=d.indexOf(w.radixPoint),R=E;if(E=function(B,Y,F,j,Z){return Z._radixDance&&Z.numericInput&&Y!==Z.negationSymbol.back&&B<=F&&(F>0||Y==Z.radixPoint)&&(j.validPositions[B-1]===void 0||j.validPositions[B-1].input!==Z.negationSymbol.back)&&(B-=1),B}(E,p,C,A,w),p==="-"||p===w.negationSymbol.front){if(w.allowMinus!==!0)return!1;var L=!1,G=m("+",A),U=m("-",A);return G!==-1&&(L=[G,U]),L!==!1?{remove:L,caret:R-w.negationSymbol.back.length}:{insert:[{pos:g.call(this,"+",A),c:w.negationSymbol.front,fromIsValid:!0},{pos:g.call(this,"-",A),c:w.negationSymbol.back,fromIsValid:void 0}],caret:R+w.negationSymbol.back.length}}if(p===w.groupSeparator)return{caret:R};if(O)return!0;if(C!==-1&&w._radixDance===!0&&y===!1&&p===w.radixPoint&&w.digits!==void 0&&(isNaN(w.digits)||parseInt(w.digits)>0)&&C!==E)return{caret:w._radixDance&&E===C-1?C+1:C};if(w.__financeInput===!1){if(y){if(w.digitsOptional)return{rewritePosition:S.end};if(!w.digitsOptional){if(S.begin>C&&S.end<=C)return p===w.radixPoint?{insert:{pos:C+1,c:"0",fromIsValid:!0},rewritePosition:C}:{rewritePosition:C+1};if(S.begin0&&this.__valueGet.call(this.el)==="")return{rewritePosition:C}}return{rewritePosition:E}},postValidation:function(d,E,p,y,w,A,S){if(y===!1)return y;if(S)return!0;if(w.min!==null||w.max!==null){var O=w.onUnMask(d.slice().reverse().join(""),void 0,k.extend({},w,{unmaskAsNumber:!0}));if(w.min!==null&&Ow.min.toString().length||O<0))return!1;if(w.max!==null&&O>w.max)return!!w.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:T(w.max.toString().replace(".",w.radixPoint).split(""),w.digits,w).reverse()}}return y},onUnMask:function(d,E,p){if(E===""&&p.nullable===!0)return E;var y=d.replace(p.prefix,"");return y=(y=y.replace(p.suffix,"")).replace(new RegExp((0,u.default)(p.groupSeparator),"g"),""),p.placeholder.charAt(0)!==""&&(y=y.replace(new RegExp(p.placeholder.charAt(0),"g"),"0")),p.unmaskAsNumber?(p.radixPoint!==""&&y.indexOf(p.radixPoint)!==-1&&(y=y.replace(u.default.call(this,p.radixPoint),".")),y=(y=y.replace(new RegExp("^"+(0,u.default)(p.negationSymbol.front)),"-")).replace(new RegExp((0,u.default)(p.negationSymbol.back)+"$"),""),Number(y)):y},isComplete:function(d,E){var p=(E.numericInput?d.slice().reverse():d).join("");return p=(p=(p=(p=(p=p.replace(new RegExp("^"+(0,u.default)(E.negationSymbol.front)),"-")).replace(new RegExp((0,u.default)(E.negationSymbol.back)+"$"),"")).replace(E.prefix,"")).replace(E.suffix,"")).replace(new RegExp((0,u.default)(E.groupSeparator)+"([0-9]{3})","g"),"$1"),E.radixPoint===","&&(p=p.replace((0,u.default)(E.radixPoint),".")),isFinite(p)},onBeforeMask:function(d,E){var p=E.radixPoint||",";isFinite(E.digits)&&(E.digits=parseInt(E.digits)),typeof d!="number"&&E.inputType!=="number"||p===""||(d=d.toString().replace(".",p));var y=d.charAt(0)==="-"||d.charAt(0)===E.negationSymbol.front,w=d.split(p),A=w[0].replace(/[^\-0-9]/g,""),S=w.length>1?w[1].replace(/[^0-9]/g,""):"",O=w.length>1;d=A+(S!==""?p+S:S);var C=0;if(p!==""&&(C=E.digitsOptional?E.digitsE.max&&(d=E.max.toString().replace(".",p))}return y&&d.charAt(0)!=="-"&&(d="-"+d),T(d.toString().split(""),C,E,O).join("")},onBeforeWrite:function(d,E,p,y){function w(B,Y){if(y.__financeInput!==!1||Y){var F=B.indexOf(y.radixPoint);F!==-1&&B.splice(F,1)}if(y.groupSeparator!=="")for(;(F=B.indexOf(y.groupSeparator))!==-1;)B.splice(F,1);return B}var A,S;if(y.stripLeadingZeroes&&(S=function(B,Y){var F=new RegExp("(^"+(Y.negationSymbol.front!==""?(0,u.default)(Y.negationSymbol.front)+"?":"")+(0,u.default)(Y.prefix)+")(.*)("+(0,u.default)(Y.suffix)+(Y.negationSymbol.back!=""?(0,u.default)(Y.negationSymbol.back)+"?":"")+"$)").exec(B.slice().reverse().join("")),j=F?F[2]:"",Z=!1;return j&&(j=j.split(Y.radixPoint.charAt(0))[0],Z=new RegExp("^[0"+Y.groupSeparator+"]*").exec(j)),!(!Z||!(Z[0].length>1||Z[0].length>0&&Z[0].length0;R--)delete this.maskset.validPositions[O+R],delete E[O+R];if(d)switch(d.type){case"blur":case"checkval":if(y.min!==null){var L=y.onUnMask(E.slice().reverse().join(""),void 0,k.extend({},y,{unmaskAsNumber:!0}));if(y.min!==null&&L1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(S)),A.trigger("setvalue"),!1}if(d.ctrlKey)switch(d.key){case f.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(y.step)),A.trigger("setvalue"),!1;case f.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(y.step)),A.trigger("setvalue"),!1}if(!d.shiftKey&&(d.key===f.keys.Delete||d.key===f.keys.Backspace||d.key===f.keys.BACKSPACE_SAFARI)&&p.begin!==E.length){if(E[d.key===f.keys.Delete?p.begin-1:p.end]===y.negationSymbol.front)return w=E.slice().reverse(),y.negationSymbol.front!==""&&w.shift(),y.negationSymbol.back!==""&&w.pop(),A.trigger("setvalue",[w.join(""),p.begin]),!1;if(y._radixDance===!0){var C=E.indexOf(y.radixPoint);if(y.digitsOptional){if(C===0)return(w=E.slice().reverse()).pop(),A.trigger("setvalue",[w.join(""),p.begin>=w.length?w.length:p.begin]),!1}else if(C!==-1&&(p.begin=w.length?C+1:p.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(d){return"("+d.groupSeparator+"99){*|1}("+d.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(o,a,l){var c;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=((c=l(8741))&&c.__esModule?c:{default:c}).default?window:{};a.default=u},7760:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.HandleNativePlaceholder=function(_,d){var E=_?_.inputmask:this;if(v.ie){if(_.inputmask._valueGet()!==d&&(_.placeholder!==d||_.placeholder==="")){var p=h.getBuffer.call(E).slice(),y=_.inputmask._valueGet();if(y!==d){var w=h.getLastValidPosition.call(E);w===-1&&y===h.getBufferTemplate.call(E).join("")?p=[]:w!==-1&&T.call(E,p),m(_,p)}}}else _.placeholder!==d&&(_.placeholder=d,_.placeholder===""&&_.removeAttribute("placeholder"))},a.applyInputValue=I,a.checkVal=g,a.clearOptionalTail=T,a.unmaskedvalue=function(_){var d=_?_.inputmask:this,E=d.opts,p=d.maskset;if(_){if(_.inputmask===void 0)return _.value;_.inputmask&&_.inputmask.refreshValue&&I(_,_.inputmask._valueGet(!0))}for(var y=[],w=p.validPositions,A=0,S=w.length;A0&&z[H-1]===" ";)H--;var D=H===0&&!h.isMask.call(w,M)&&(u.getTest.call(w,M).match.nativeDef===V.charAt(0)||u.getTest.call(w,M).match.static===!0&&u.getTest.call(w,M).match.nativeDef==="'"+V.charAt(0)||u.getTest.call(w,M).match.nativeDef===" "&&(u.getTest.call(w,M+1).match.nativeDef===V.charAt(0)||u.getTest.call(w,M+1).match.static===!0&&u.getTest.call(w,M+1).match.nativeDef==="'"+V.charAt(0)));if(!D&&H>0&&!h.isMask.call(w,M,!1,!0)){var b=h.seekNext.call(w,M);w.caretPos.begin0){var F,j,Z=h.seekNext.call(w,-1,void 0,!1);if(!f.isComplete.call(w,h.getBuffer.call(w))&&B.length<=Z||f.isComplete.call(w,h.getBuffer.call(w))&&B.length>0&&B.length!==Z&&B[0]===0)for(var J=Z;(F=B.shift())!==void 0;){var se=new O.Event("_checkval");if((j=A.validPositions[F]).generatedInput=!0,se.key=j.input,(G=k.EventHandlers.keypressEvent.call(w,se,!0,!1,E,J))&&G.pos!==void 0&&G.pos!==F&&A.validPositions[G.pos]&&A.validPositions[G.pos].match.static===!0)B.push(G.pos);else if(!G)break;J++}}d&&m.call(w,_,h.getBuffer.call(w),G?G.forwardPosition:w.caretPos.begin,y||new O.Event("checkval"),y&&(y.type==="input"&&w.undoValue!==h.getBuffer.call(w).join("")||y.type==="paste")),S.skipOptionalPartCharacter=U}function m(_,d,E,p,y){var w=_?_.inputmask:this,A=w.opts,S=w.dependencyLib;if(p&&typeof A.onBeforeWrite=="function"){var O=A.onBeforeWrite.call(w,p,d,E,A);if(O){if(O.refreshFromBuffer){var C=O.refreshFromBuffer;f.refreshFromBuffer.call(w,C===!0?C:C.start,C.end,O.buffer||d),d=h.getBuffer.call(w,!0)}E!==void 0&&(E=O.caret!==void 0?O.caret:E)}}if(_!==void 0&&(_.inputmask._valueSet(d.join("")),E===void 0||p!==void 0&&p.type==="blur"||h.caret.call(w,_,E,void 0,void 0,p!==void 0&&p.type==="keydown"&&(p.key===c.keys.Delete||p.key===c.keys.Backspace)),y===!0)){var R=S(_),L=_.inputmask._valueGet();_.inputmask.skipInputEvent=!0,R.trigger("input"),setTimeout(function(){L===h.getBufferTemplate.call(w).join("")?R.trigger("cleared"):f.isComplete.call(w,d)===!0&&R.trigger("complete")},0)}}},2394:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var c=l(157),u=p(l(4963)),h=p(l(9380)),f=l(2391),v=l(4713),k=l(8711),I=l(7215),T=l(7760),g=l(9716),m=p(l(7392)),_=p(l(3976)),d=p(l(8741));function E(C){return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},E(C)}function p(C){return C&&C.__esModule?C:{default:C}}var y=h.default.document,w="_inputmask_opts";function A(C,R,L){if(d.default){if(!(this instanceof A))return new A(C,R,L);this.dependencyLib=u.default,this.el=void 0,this.events={},this.maskset=void 0,L!==!0&&(Object.prototype.toString.call(C)==="[object Object]"?R=C:(R=R||{},C&&(R.alias=C)),this.opts=u.default.extend(!0,{},this.defaults,R),this.noMasksCache=R&&R.definitions!==void 0,this.userOptions=R||{},S(this.opts.alias,R,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function S(C,R,L){var G=A.prototype.aliases[C];return G?(G.alias&&S(G.alias,void 0,L),u.default.extend(!0,L,G),u.default.extend(!0,L,R),!0):(L.mask===null&&(L.mask=C),!1)}A.prototype={dataAttribute:"data-inputmask",defaults:_.default,definitions:m.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(C){var R=this;return typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:Array.isArray(C)?C:[].slice.call(C)).forEach(function(L,G){var U=u.default.extend(!0,{},R.opts);if(function(Y,F,j,Z){function J(M,V){var z=Z===""?M:Z+"-"+M;(V=V!==void 0?V:Y.getAttribute(z))!==null&&(typeof V=="string"&&(M.indexOf("on")===0?V=h.default[V]:V==="false"?V=!1:V==="true"&&(V=!0)),j[M]=V)}if(F.importDataAttributes===!0){var se,le,ie,oe,N=Y.getAttribute(Z);if(N&&N!==""&&(N=N.replace(/'/g,'"'),le=JSON.parse("{"+N+"}")),le){for(oe in ie=void 0,le)if(oe.toLowerCase()==="alias"){ie=le[oe];break}}for(se in J("alias",ie),j.alias&&S(j.alias,j,F),F){if(le){for(oe in ie=void 0,le)if(oe.toLowerCase()===se.toLowerCase()){ie=le[oe];break}}J(se,ie)}}return u.default.extend(!0,F,j),(Y.dir==="rtl"||F.rightAlign)&&(Y.style.textAlign="right"),(Y.dir==="rtl"||F.numericInput)&&(Y.dir="ltr",Y.removeAttribute("dir"),F.isRTL=!0),Object.keys(j).length}(L,U,u.default.extend(!0,{},R.userOptions),R.dataAttribute)){var B=(0,f.generateMaskSet)(U,R.noMasksCache);B!==void 0&&(L.inputmask!==void 0&&(L.inputmask.opts.autoUnmask=!0,L.inputmask.remove()),L.inputmask=new A(void 0,void 0,!0),L.inputmask.opts=U,L.inputmask.noMasksCache=R.noMasksCache,L.inputmask.userOptions=u.default.extend(!0,{},R.userOptions),L.inputmask.el=L,L.inputmask.$el=(0,u.default)(L),L.inputmask.maskset=B,u.default.data(L,w,R.userOptions),c.mask.call(L.inputmask))}}),C&&C[0]&&C[0].inputmask||this},option:function(C,R){return typeof C=="string"?this.opts[C]:E(C)==="object"?(u.default.extend(this.userOptions,C),this.el&&R!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(C){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||C!==void 0){var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!1,!1,R),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,k.getBuffer.call(this),0,this.opts)}return T.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){u.default.data(this.el,w,null);var C=this.opts.autoUnmask?(0,T.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);C!==k.getBufferTemplate.call(this).join("")?this._valueSet(C,this.opts.autoUnmask):this._valueSet(""),g.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):y.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?k.getBufferTemplate.call(this).reverse():k.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),I.isComplete.call(this,k.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var C=v.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(R){return R.mask!==C||(C=R,!1)}),C}return this.maskset.metadata},isValid:function(C){if(this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache),C){var R=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!0,!1,R)}else C=this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join("");for(var L=k.getBuffer.call(this),G=k.determineLastRequiredPosition.call(this),U=L.length-1;U>G&&!k.isMask.call(this,U);U--);return L.splice(G,U+1-G),I.isComplete.call(this,L)&&C===(this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join(""))},format:function(C,R){this.maskset=this.maskset||(0,f.generateMaskSet)(this.opts,this.noMasksCache);var L=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,C,this.opts)||C).split("");T.checkVal.call(this,void 0,!0,!1,L);var G=this.isRTL?k.getBuffer.call(this).slice().reverse().join(""):k.getBuffer.call(this).join("");return R?{value:G,metadata:this.getmetadata()}:G},setValue:function(C){this.el&&(0,u.default)(this.el).trigger("setvalue",[C])},analyseMask:f.analyseMask},A.extendDefaults=function(C){u.default.extend(!0,A.prototype.defaults,C)},A.extendDefinitions=function(C){u.default.extend(!0,A.prototype.definitions,C)},A.extendAliases=function(C){u.default.extend(!0,A.prototype.aliases,C)},A.format=function(C,R,L){return A(R).format(C,L)},A.unmask=function(C,R){return A(R).unmaskedvalue(C)},A.isValid=function(C,R){return A(R).isValid(C)},A.remove=function(C){typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:C).forEach(function(R){R.inputmask&&R.inputmask.remove()})},A.setValue=function(C,R){typeof C=="string"&&(C=y.getElementById(C)||y.querySelectorAll(C)),(C=C.nodeName?[C]:C).forEach(function(L){L.inputmask?L.inputmask.setValue(R):(0,u.default)(L).trigger("setvalue",[R])})},A.dependencyLib=u.default,h.default.Inputmask=A;var O=A;a.default=O},5296:function(o,a,l){function c(p){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},c(p)}var u=_(l(9380)),h=_(l(2394)),f=_(l(8741));function v(p){var y=T();return function(){var w,A=m(p);if(y){var S=m(this).constructor;w=Reflect.construct(A,arguments,S)}else w=A.apply(this,arguments);return function(O,C){if(C&&(c(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(O)}(this,w)}}function k(p){var y=typeof Map=="function"?new Map:void 0;return k=function(w){if(w===null||(A=w,Function.toString.call(A).indexOf("[native code]")===-1))return w;var A;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(y!==void 0){if(y.has(w))return y.get(w);y.set(w,S)}function S(){return I(w,arguments,m(this).constructor)}return S.prototype=Object.create(w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),g(S,w)},k(p)}function I(p,y,w){return I=T()?Reflect.construct.bind():function(A,S,O){var C=[null];C.push.apply(C,S);var R=new(Function.bind.apply(A,C));return O&&g(R,O.prototype),R},I.apply(null,arguments)}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(p,y){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},g(p,y)}function m(p){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},m(p)}function _(p){return p&&p.__esModule?p:{default:p}}var d=u.default.document;if(f.default&&d&&d.head&&d.head.attachShadow&&u.default.customElements&&u.default.customElements.get("input-mask")===void 0){var E=function(p){(function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),O&&g(S,O)})(A,p);var y,w=v(A);function A(){var S;(function(U,B){if(!(U instanceof B))throw new TypeError("Cannot call a class as a function")})(this,A);var O=(S=w.call(this)).getAttributeNames(),C=S.attachShadow({mode:"closed"}),R=d.createElement("input");for(var L in R.type="text",C.appendChild(R),O)Object.prototype.hasOwnProperty.call(O,L)&&R.setAttribute(O[L],S.getAttribute(O[L]));var G=new h.default;return G.dataAttribute="",G.mask(R),R.inputmask.shadowRoot=C,S}return y=A,Object.defineProperty(y,"prototype",{writable:!1}),y}(k(HTMLElement));u.default.customElements.define("input-mask",E)}},2839:function(o,a){function l(v,k){return function(I){if(Array.isArray(I))return I}(v)||function(I,T){var g=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(g!=null){var m,_,d,E,p=[],y=!0,w=!1;try{if(d=(g=g.call(I)).next,T===0){if(Object(g)!==g)return;y=!1}else for(;!(y=(m=d.call(g)).done)&&(p.push(m.value),p.length!==T);y=!0);}catch(A){w=!0,_=A}finally{try{if(!y&&g.return!=null&&(E=g.return(),Object(E)!==E))return}finally{if(w)throw _}}return p}}(v,k)||function(I,T){if(I){if(typeof I=="string")return c(I,T);var g=Object.prototype.toString.call(I).slice(8,-1);if(g==="Object"&&I.constructor&&(g=I.constructor.name),g==="Map"||g==="Set")return Array.from(I);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return c(I,T)}}(v,k)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c(v,k){(k==null||k>v.length)&&(k=v.length);for(var I=0,T=new Array(k);I0){if(G(E=C[C.length-1],_),E.isAlternator){p=C.pop();for(var z=0;z0?(E=C[C.length-1]).matches.push(p):O.matches.push(p)}}else G(O,_)}function B(z){var H=new u.default(!0);return H.openGroup=!1,H.matches=z,H}function Y(){if((d=C.pop()).openGroup=!1,d!==void 0)if(C.length>0){if((E=C[C.length-1]).matches.push(d),E.isAlternator){for(var z=(p=C.pop()).matches[0].matches?p.matches[0].matches.length:1,H=0;H0?(E=C[C.length-1]).matches.push(p):O.matches.push(p)}}else O.matches.push(d);else U()}function F(z){var H=z.pop();return H.isQuantifier&&(H=B([z.pop(),H])),H}for(T&&(g.optionalmarker[0]=void 0,g.optionalmarker[1]=void 0);m=T?A.exec(I):w.exec(I);){if(_=m[0],T){switch(_.charAt(0)){case"?":_="{0,1}";break;case"+":case"*":_="{"+_+"}";break;case"|":if(C.length===0){var j=B(O.matches);j.openGroup=!0,C.push(j),O.matches=[],L=!0}}switch(_){case"\\d":_="[0-9]";break;case"\\p":_+=A.exec(I)[0],_+=A.exec(I)[0]}}if(S)U();else switch(_.charAt(0)){case"$":case"^":T||U();break;case g.escapeChar:S=!0,T&&U();break;case g.optionalmarker[1]:case g.groupmarker[1]:Y();break;case g.optionalmarker[0]:C.push(new u.default(!1,!0));break;case g.groupmarker[0]:C.push(new u.default(!0));break;case g.quantifiermarker[0]:var Z=new u.default(!1,!1,!0),J=(_=_.replace(/[{}?]/g,"")).split("|"),se=J[0].split(","),le=isNaN(se[0])?se[0]:parseInt(se[0]),ie=se.length===1?le:isNaN(se[1])?se[1]:parseInt(se[1]),oe=isNaN(J[1])?J[1]:parseInt(J[1]);le!=="*"&&le!=="+"||(le=ie==="*"?0:1),Z.quantifier={min:le,max:ie,jit:oe};var N=C.length>0?C[C.length-1].matches:O.matches;(m=N.pop()).isGroup||(m=B([m])),N.push(m),N.push(Z);break;case g.alternatormarker:if(C.length>0){var M=(E=C[C.length-1]).matches[E.matches.length-1];y=E.openGroup&&(M.matches===void 0||M.isGroup===!1&&M.isAlternator===!1)?C.pop():F(E.matches)}else y=F(O.matches);if(y.isAlternator)C.push(y);else if(y.alternatorGroup?(p=C.pop(),y.alternatorGroup=!1):p=new u.default(!1,!1,!1,!0),p.matches.push(y),C.push(p),y.openGroup){y.openGroup=!1;var V=new u.default(!0);V.alternatorGroup=!0,C.push(V)}break;default:U()}}for(L&&Y();C.length>0;)d=C.pop(),O.matches.push(d);return O.matches.length>0&&(function z(H){H&&H.matches&&H.matches.forEach(function(D,b){var P=H.matches[b+1];(P===void 0||P.matches===void 0||P.isQuantifier===!1)&&D&&D.isGroup&&(D.isGroup=!1,T||(G(D,g.groupmarker[0],0),D.openGroup!==!0&&G(D,g.groupmarker[1]))),z(D)})}(O),R.push(O)),(g.numericInput||g.isRTL)&&function z(H){for(var D in H.matches=H.matches.reverse(),H.matches)if(Object.prototype.hasOwnProperty.call(H.matches,D)){var b=parseInt(D);if(H.matches[D].isQuantifier&&H.matches[b+1]&&H.matches[b+1].isGroup){var P=H.matches[D];H.matches.splice(D,1),H.matches.splice(b+1,0,P)}H.matches[D].matches!==void 0?H.matches[D]=z(H.matches[D]):H.matches[D]=((x=H.matches[D])===g.optionalmarker[0]?x=g.optionalmarker[1]:x===g.optionalmarker[1]?x=g.optionalmarker[0]:x===g.groupmarker[0]?x=g.groupmarker[1]:x===g.groupmarker[1]&&(x=g.groupmarker[0]),x)}var x;return H}(R[0]),R},a.generateMaskSet=function(I,T){var g;function m(E,p){var y=p.repeat,w=p.groupmarker,A=p.quantifiermarker,S=p.keepStatic;if(y>0||y==="*"||y==="+"){var O=y==="*"?0:y==="+"?1:y;E=w[0]+E+w[1]+A[0]+O+","+y+A[1]}if(S===!0){var C=E.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));C&&C.forEach(function(R,L){var G=function(Y,F){return function(j){if(Array.isArray(j))return j}(Y)||function(j,Z){var J=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(J!=null){var se,le,ie,oe,N=[],M=!0,V=!1;try{if(ie=(J=J.call(j)).next,Z===0){if(Object(J)!==J)return;M=!1}else for(;!(M=(se=ie.call(J)).done)&&(N.push(se.value),N.length!==Z);M=!0);}catch(z){V=!0,le=z}finally{try{if(!M&&J.return!=null&&(oe=J.return(),Object(oe)!==oe))return}finally{if(V)throw le}}return N}}(Y,F)||function(j,Z){if(j){if(typeof j=="string")return v(j,Z);var J=Object.prototype.toString.call(j).slice(8,-1);if(J==="Object"&&j.constructor&&(J=j.constructor.name),J==="Map"||J==="Set")return Array.from(j);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return v(j,Z)}}(Y,F)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(R.split("["),2),U=G[0],B=G[1];B=B.replace("]",""),E=E.replace(new RegExp("".concat((0,f.default)(U),"\\[").concat((0,f.default)(B),"\\]")),U.charAt(0)===B.charAt(0)?"(".concat(U,"|").concat(U).concat(B,")"):"".concat(U,"[").concat(B,"]"))})}return E}function _(E,p,y){var w,A,S=!1;return E!==null&&E!==""||((S=y.regex!==null)?E=(E=y.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(S=!0,E=".*")),E.length===1&&y.greedy===!1&&y.repeat!==0&&(y.placeholder=""),E=m(E,y),A=S?"regex_"+y.regex:y.numericInput?E.split("").reverse().join(""):E,y.keepStatic!==null&&(A="ks_"+y.keepStatic+A),h.default.prototype.masksCache[A]===void 0||T===!0?(w={mask:E,maskToken:h.default.prototype.analyseMask(E,S,y),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:p,maskLength:void 0,jitOffset:{}},T!==!0&&(h.default.prototype.masksCache[A]=w,w=c.default.extend(!0,{},h.default.prototype.masksCache[A]))):w=c.default.extend(!0,{},h.default.prototype.masksCache[A]),w}if(typeof I.mask=="function"&&(I.mask=I.mask(I)),Array.isArray(I.mask)){if(I.mask.length>1){I.keepStatic===null&&(I.keepStatic=!0);var d=I.groupmarker[0];return(I.isRTL?I.mask.reverse():I.mask).forEach(function(E){d.length>1&&(d+=I.alternatormarker),E.mask!==void 0&&typeof E.mask!="function"?d+=E.mask:d+=E}),_(d+=I.groupmarker[1],I.mask,I)}I.mask=I.mask.pop()}return g=I.mask&&I.mask.mask!==void 0&&typeof I.mask.mask!="function"?_(I.mask.mask,I.mask,I):_(I.mask,I.mask,I),I.keepStatic===null&&(I.keepStatic=!1),g};var c=k(l(4963)),u=k(l(9695)),h=k(l(2394)),f=k(l(7184));function v(I,T){(T==null||T>I.length)&&(T=I.length);for(var g=0,m=new Array(T);g>>0;if(c===0)return!1;for(var u=0|a,h=Math.max(u>=0?u:c-Math.abs(u),0);hthis.length)&&this.indexOf(o,a)!==-1})},8711:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.caret=function(T,g,m,_,d){var E,p=this,y=this.opts;if(g===void 0)return"selectionStart"in T&&"selectionEnd"in T?(g=T.selectionStart,m=T.selectionEnd):window.getSelection?(E=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==T&&E.commonAncestorContainer!==T||(g=E.startOffset,m=E.endOffset):document.selection&&document.selection.createRange&&(m=(g=0-(E=document.selection.createRange()).duplicate().moveStart("character",-T.inputmask._valueGet().length))+E.text.length),{begin:_?g:I.call(p,g),end:_?m:I.call(p,m)};if(Array.isArray(g)&&(m=p.isRTL?g[0]:g[1],g=p.isRTL?g[1]:g[0]),g.begin!==void 0&&(m=p.isRTL?g.begin:g.end,g=p.isRTL?g.end:g.begin),typeof g=="number"){g=_?g:I.call(p,g),m=typeof(m=_?m:I.call(p,m))=="number"?m:g;var w=parseInt(((T.ownerDocument.defaultView||window).getComputedStyle?(T.ownerDocument.defaultView||window).getComputedStyle(T,null):T.currentStyle).fontSize)*m;if(T.scrollLeft=w>T.scrollWidth?w:0,T.inputmask.caretPos={begin:g,end:m},y.insertModeVisual&&y.insertMode===!1&&g===m&&(d||m++),T===(T.inputmask.shadowRoot||T.ownerDocument).activeElement)if("setSelectionRange"in T)T.setSelectionRange(g,m);else if(window.getSelection){if(E=document.createRange(),T.firstChild===void 0||T.firstChild===null){var A=document.createTextNode("");T.appendChild(A)}E.setStart(T.firstChild,gw&&((m=A[g]).match.optionality||m.match.optionalQuantifier&&m.match.newBlockMarker||C&&(C!==A[g].locator[S.alternation]&&m.match.static!=1||m.match.static===!0&&m.locator[S.alternation]&&u.checkAlternationMatch.call(_,m.locator[S.alternation].toString().split(","),C.toString().split(","))&&c.getTests.call(_,g)[0].def!==""))&&p[g]===c.getPlaceholder.call(_,g,m.match);g--)y--;return T?{l:y,def:A[y]?A[y].match:void 0}:y},a.determineNewCaretPosition=function(T,g,m){var _=this,d=_.maskset,E=_.opts;if(g&&(_.isRTL?T.end=T.begin:T.begin=T.end),T.begin===T.end){switch(m=m||E.positionCaretOnClick){case"none":break;case"select":T={begin:0,end:h.call(_).length};break;case"ignore":T.end=T.begin=k.call(_,f.call(_));break;case"radixFocus":if(_.clicked>1&&d.validPositions.length==0)break;if(function(L){if(E.radixPoint!==""&&E.digits!==0){var G=d.validPositions;if(G[L]===void 0||G[L].input===c.getPlaceholder.call(_,L)){if(L=R||y===A)&&(A=R)}T.end=T.begin=A}}return T}},a.getBuffer=h,a.getBufferTemplate=function(){var T=this.maskset;return T._buffer===void 0&&(T._buffer=c.getMaskTemplate.call(this,!1,1),T.buffer===void 0&&(T.buffer=T._buffer.slice())),T._buffer},a.getLastValidPosition=f,a.isMask=v,a.resetMaskSet=function(T){var g=this.maskset;g.buffer=void 0,T!==!0&&(g.validPositions=[],g.p=0)},a.seekNext=k,a.seekPrevious=function(T,g){var m=this,_=T-1;if(T<=0)return 0;for(;_>0&&(g===!0&&(c.getTest.call(m,_).match.newBlockMarker!==!0||!v.call(m,_,void 0,!0))||g!==!0&&!v.call(m,_,void 0,!0));)_--;return _},a.translatePosition=I;var c=l(4713),u=l(7215);function h(T){var g=this,m=g.maskset;return m.buffer!==void 0&&T!==!0||(m.buffer=c.getMaskTemplate.call(g,!0,f.call(g),!0),m._buffer===void 0&&(m._buffer=m.buffer.slice())),m.buffer}function f(T,g,m){var _=this.maskset,d=-1,E=-1,p=m||_.validPositions;T===void 0&&(T=-1);for(var y=0,w=p.length;y=T&&(E=y));return d===-1||d==T?E:E==-1||T-d-1){if(m){var p=c.getTests.call(_,T);return p.length>1+(p[p.length-1].match.def===""?1:0)}var y=c.determineTestTemplate.call(_,T,c.getTests.call(_,T)),w=c.getPlaceholder.call(_,T,y.match);return y.match.def!==w}return!1}function k(T,g,m){var _=this;m===void 0&&(m=!0);for(var d=T+1;c.getTest.call(_,d).match.def!==""&&(g===!0&&(c.getTest.call(_,d).match.newBlockMarker!==!0||!v.call(_,d,void 0,!0))||g!==!0&&!v.call(_,d,void 0,m));)d++;return d}function I(T){var g=this.opts,m=this.el;return!this.isRTL||typeof T!="number"||g.greedy&&g.placeholder===""||!m||(T=this._valueGet().length-T)<0&&(T=0),T}},4713:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.determineTestTemplate=I,a.getDecisionTaker=f,a.getMaskTemplate=function(_,d,E,p,y){var w=this,A=this.opts,S=this.maskset,O=A.greedy;y&&A.greedy&&(A.greedy=!1,w.maskset.tests={}),d=d||0;var C,R,L,G,U=[],B=0;do{if(_===!0&&S.validPositions[B])R=(L=y&&S.validPositions[B].match.optionality&&S.validPositions[B+1]===void 0&&(S.validPositions[B].generatedInput===!0||S.validPositions[B].input==A.skipOptionalPartCharacter&&B>0)?I.call(w,B,m.call(w,B,C,B-1)):S.validPositions[B]).match,C=L.locator.slice(),U.push(E===!0?L.input:E===!1?R.nativeDef:v.call(w,B,R));else{R=(L=k.call(w,B,C,B-1)).match,C=L.locator.slice();var Y=p!==!0&&(A.jitMasking!==!1?A.jitMasking:R.jit);(G=(G&&R.static&&R.def!==A.groupSeparator&&R.fn===null||S.validPositions[B-1]&&R.static&&R.def!==A.groupSeparator&&R.fn===null)&&S.tests[B])||Y===!1||Y===void 0||typeof Y=="number"&&isFinite(Y)&&Y>B?U.push(E===!1?R.nativeDef:v.call(w,U.length,R)):G=!1}B++}while(R.static!==!0||R.def!==""||d>B);return U[U.length-1]===""&&U.pop(),E===!1&&S.maskLength!==void 0||(S.maskLength=B-1),A.greedy=O,U},a.getPlaceholder=v,a.getTest=T,a.getTestTemplate=k,a.getTests=m,a.isSubsetOf=g;var c,u=(c=l(2394))&&c.__esModule?c:{default:c};function h(_,d){var E=(_.alternation!=null?_.mloc[f(_)]:_.locator).join("");if(E!=="")for(;E.length0&&(d=d.split(",")[0]),d!==void 0?d.toString():""}function v(_,d,E){var p=this.opts,y=this.maskset;if((d=d||T.call(this,_).match).placeholder!==void 0||E===!0)return typeof d.placeholder=="function"?d.placeholder(p):d.placeholder;if(d.static===!0){if(_>-1&&y.validPositions[_]===void 0){var w,A=m.call(this,_),S=[];if(A.length>1+(A[A.length-1].match.def===""?1:0)){for(var O=0;O1&&/[0-9a-bA-Z]/.test(S[0].match.def)))return p.placeholder.charAt(_%p.placeholder.length)}}return d.def}return p.placeholder.charAt(_%p.placeholder.length)}function k(_,d,E){return this.maskset.validPositions[_]||I.call(this,_,m.call(this,_,d&&d.slice(),E))}function I(_,d){var E=this.opts,p=0,y=function(G,U){var B=0,Y=!1;return U.forEach(function(F){F.match.optionality&&(B!==0&&B!==F.match.optionality&&(Y=!0),(B===0||B>F.match.optionality)&&(B=F.match.optionality))}),B&&(G==0||U.length==1?B=0:Y||(B=0)),B}(_,d);_=_>0?_-1:0;var w,A,S,O=h(T.call(this,_));E.greedy&&d.length>1&&d[d.length-1].match.def===""&&(p=1);for(var C=0;C0&&S.match.newBlockMarker==="master"&&(!R.match.optionality||R.match.optionality-y<1||!R.match.newBlockMarker)||S&&!E.greedy&&S.match.optionalQuantifier&&!R.match.optionalQuantifier)&&(A=L,S=R)}return S}function T(_,d){var E=this.maskset;return E.validPositions[_]?E.validPositions[_]:(d||m.call(this,_))[0]}function g(_,d,E){function p(y){for(var w,A=[],S=-1,O=0,C=y.length;Ote.alternation){for(var re=te.alternation;re_+O._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+S.mask;if(L===_&&H.matches===void 0){if(U.push({match:H,locator:D.reverse(),cd:Y,mloc:{}}),!H.optionality||b!==void 0||!(O.definitions&&O.definitions[H.nativeDef]&&O.definitions[H.nativeDef].optional||u.default.prototype.definitions[H.nativeDef]&&u.default.prototype.definitions[H.nativeDef].optional))return!0;B=!0,L=_}else if(H.matches!==void 0){if(H.isGroup&&b!==H)return function(){if(H=M(le.matches[le.matches.indexOf(H)+1],D,b))return!0}();if(H.isOptional)return function(){var X=H,te=U.length;if(H=F(H,ie,D,b),U.length>0){if(U.forEach(function(ne,Q){Q>=te&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),p=U[U.length-1].match,b!==void 0||!P(p,X))return H;B=!0,L=_}}();if(H.isAlternator)return function(){w.hasAlternator=!0;var X,te,ne,Q=H,re=[],W=U.slice(),K=D.length,de=!1,he=ie.length>0?ie.shift():-1;if(he===-1||typeof he=="string"){var Te,Ee=L,De=ie.slice(),Oe=[];if(typeof he=="string")Oe=he.split(",");else for(Te=0;Te=O.keepStatic)&&(Oe=Oe.slice(0,1));for(var ft=0;ftQ.matches[0].matches.length)break;X=U.slice(),L=Ee,U=[];for(var Mn=0;Mn0,H=re.length>0,ie=De.slice()}else H=M(Q.matches[he]||le.matches[he],[he].concat(D),b);if(H)return!0}();if(H.isQuantifier&&b!==le.matches[le.matches.indexOf(H)-1])return function(){for(var X=H,te=!1,ne=ie.length>0?ie.shift():0;ne<(isNaN(X.quantifier.max)?ne+1:X.quantifier.max)&&L<=_;ne++){var Q=le.matches[le.matches.indexOf(X)-1];if(H=M(Q,[ne].concat(D),Q)){if(U.forEach(function(re,W){(p=j(Q,re.match)?re.match:U[U.length-1].match).optionalQuantifier=ne>=X.quantifier.min,p.jit=(ne+1)*(Q.matches.indexOf(p)+1)>X.quantifier.jit,p.optionalQuantifier&&P(p,Q)&&(B=!0,L=_,O.greedy&&S.validPositions[_-1]==null&&ne>X.quantifier.min&&["*","+"].indexOf(X.quantifier.max)!=-1&&(U.pop(),Y=void 0),te=!0,H=!1),!te&&p.jit&&(S.jitOffset[_]=Q.matches.length-Q.matches.indexOf(p))}),te)break;return!0}}}();if(H=F(H,ie,D,b))return!0}else L++}for(var V=ie.length>0?ie.shift():0;V_)break}}function j(le,ie){var oe=le.matches.indexOf(ie)!=-1;return oe||le.matches.forEach(function(N,M){N.matches===void 0||oe||(oe=j(N,ie))}),oe}if(_>-1){if(d===void 0){for(var Z,J=_-1;(Z=S.validPositions[J]||S.tests[J])===void 0&&J>-1;)J--;Z!==void 0&&J>-1&&(G=function(le,ie){var oe,N=[];return Array.isArray(ie)||(ie=[ie]),ie.length>0&&(ie[0].alternation===void 0||O.keepStatic===!0?(N=I.call(w,le,ie.slice()).locator.slice()).length===0&&(N=ie[0].locator.slice()):ie.forEach(function(M){M.def!==""&&(N.length===0?(oe=M.alternation,N=M.locator.slice()):M.locator[oe]&&N[oe].toString().indexOf(M.locator[oe])===-1&&(N[oe]+=","+M.locator[oe]))})),N}(J,Z),Y=G.join(""),L=J)}if(S.tests[_]&&S.tests[_][0].cd===Y)return S.tests[_];for(var se=G.shift();se_);se++);}return(U.length===0||B)&&U.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:Y}),d!==void 0&&S.tests[_]?y=A.extend(!0,[],U):(S.tests[_]=A.extend(!0,[],U),y=S.tests[_]),U.forEach(function(le){le.match.optionality=le.match.defOptionality||!1}),y}},7215:function(o,a,l){Object.defineProperty(a,"__esModule",{value:!0}),a.alternate=v,a.checkAlternationMatch=function(p,y,w){for(var A,S=this.opts.greedy?y:y.slice(0,1),O=!1,C=w!==void 0?w.split(","):[],R=0;R=h.getBuffer.call(O).length&&U>=w.end&&(w.end=U+1),y===u.keys.Backspace?w.end-w.begin<1&&(w.begin=h.seekPrevious.call(O,w.begin)):y===u.keys.Delete&&w.begin===w.end&&(w.end=h.isMask.call(O,w.end,!0,!0)?w.end+1:h.seekNext.call(O,w.end)+1),(G=E.call(O,w))!==!1){if(A!==!0&&R.keepStatic!==!1||R.regex!==null&&c.getTest.call(O,w.begin).match.def.indexOf("|")!==-1){var B=v.call(O,!0);if(B){var Y=B.caret!==void 0?B.caret:B.pos?h.seekNext.call(O,B.pos.begin?B.pos.begin:B.pos):h.getLastValidPosition.call(O,-1,!0);(y!==u.keys.Delete||w.begin>Y)&&w.begin}}A!==!0&&(C.p=y===u.keys.Delete?w.begin+G:w.begin,C.p=h.determineNewCaretPosition.call(O,{begin:C.p,end:C.p},!1,R.insertMode===!1&&y===u.keys.Backspace?"none":void 0).begin)}},a.isComplete=I,a.isSelection=T,a.isValid=g,a.refreshFromBuffer=_,a.revalidateMask=E;var c=l(4713),u=l(2839),h=l(8711),f=l(6030);function v(p,y,w,A,S,O){var C,R,L,G,U,B,Y,F,j,Z,J,se=this,le=this.dependencyLib,ie=this.opts,oe=se.maskset,N=le.extend(!0,[],oe.validPositions),M=le.extend(!0,{},oe.tests),V=!1,z=!1,H=S!==void 0?S:h.getLastValidPosition.call(se);if(O&&(Z=O.begin,J=O.end,O.begin>O.end&&(Z=O.end,J=O.begin)),H===-1&&S===void 0)C=0,R=(G=c.getTest.call(se,C)).alternation;else for(;H>=0;H--)if((L=oe.validPositions[H])&&L.alternation!==void 0){if(H<=(p||0)&&G&&G.locator[L.alternation]!==L.locator[L.alternation])break;C=H,R=oe.validPositions[C].alternation,G=L}if(R!==void 0){Y=parseInt(C),oe.excludes[Y]=oe.excludes[Y]||[],p!==!0&&oe.excludes[Y].push((0,c.getDecisionTaker)(G)+":"+G.alternation);var D=[],b=-1;for(U=Y;U=J)&&D.push(B.input),delete oe.validPositions[U];for(b===-1&&y!==void 0&&(D.push(y),b=D.length-1);oe.excludes[Y]!==void 0&&oe.excludes[Y].length<10;){for(oe.tests={},h.resetMaskSet.call(se,!0),V=!0,U=0;Uy:p.end-p.begin>y}function g(p,y,w,A,S,O,C){var R=this,L=this.dependencyLib,G=this.opts,U=R.maskset;w=w===!0;var B=p;function Y(V){if(V!==void 0){if(V.remove!==void 0&&(Array.isArray(V.remove)||(V.remove=[V.remove]),V.remove.sort(function(H,D){return R.isRTL?H.pos-D.pos:D.pos-H.pos}).forEach(function(H){E.call(R,{begin:H,end:H+1})}),V.remove=void 0),V.insert!==void 0&&(Array.isArray(V.insert)||(V.insert=[V.insert]),V.insert.sort(function(H,D){return R.isRTL?D.pos-H.pos:H.pos-D.pos}).forEach(function(H){H.c!==""&&g.call(R,H.pos,H.c,H.strict===void 0||H.strict,H.fromIsValid!==void 0?H.fromIsValid:A)}),V.insert=void 0),V.refreshFromBuffer&&V.buffer){var z=V.refreshFromBuffer;_.call(R,z===!0?z:z.start,z.end,V.buffer),V.refreshFromBuffer=void 0}V.rewritePosition!==void 0&&(B=V.rewritePosition,V=!0)}return V}function F(V,z,H){var D=!1;return c.getTests.call(R,V).every(function(b,P){var x=b.match;if(h.getBuffer.call(R,!0),(D=(!x.jit||U.validPositions[h.seekPrevious.call(R,V)]!==void 0)&&(x.fn!=null?x.fn.test(z,U,V,H,G,T.call(R,p)):(z===x.def||z===G.skipOptionalPartCharacter)&&x.def!==""&&{c:c.getPlaceholder.call(R,V,x,!0)||x.def,pos:V}))!==!1){var $=D.c!==void 0?D.c:z,q=V;return $=$===G.skipOptionalPartCharacter&&x.static===!0?c.getPlaceholder.call(R,V,x,!0)||x.def:$,(D=Y(D))!==!0&&D.pos!==void 0&&D.pos!==V&&(q=D.pos),D!==!0&&D.pos===void 0&&D.c===void 0||E.call(R,p,L.extend({},b,{input:k.call(R,$,x,q)}),A,q)===!1&&(D=!1),!1}return!0}),D}p.begin!==void 0&&(B=R.isRTL?p.end:p.begin);var j=!0,Z=L.extend(!0,{},U.validPositions);if(G.keepStatic===!1&&U.excludes[B]!==void 0&&S!==!0&&A!==!0)for(var J=B;J<(R.isRTL?p.begin:p.end);J++)U.excludes[J]!==void 0&&(U.excludes[J]=void 0,delete U.tests[J]);if(typeof G.preValidation=="function"&&A!==!0&&O!==!0&&(j=Y(j=G.preValidation.call(R,h.getBuffer.call(R),B,y,T.call(R,p),G,U,p,w||S))),j===!0){if(j=F(B,y,w),(!w||A===!0)&&j===!1&&O!==!0){var se=U.validPositions[B];if(!se||se.match.static!==!0||se.match.def!==y&&y!==G.skipOptionalPartCharacter){if(G.insertMode||U.validPositions[h.seekNext.call(R,B)]===void 0||p.end>B){var le=!1;if(U.jitOffset[B]&&U.validPositions[h.seekNext.call(R,B)]===void 0&&(j=g.call(R,B+U.jitOffset[B],y,!0,!0))!==!1&&(S!==!0&&(j.caret=B),le=!0),p.end>B&&(U.validPositions[B]=void 0),!le&&!h.isMask.call(R,B,G.keepStatic&&B===0)){for(var ie=B+1,oe=h.seekNext.call(R,B,!1,B!==0);ie<=oe;ie++)if((j=F(ie,y,w))!==!1){j=d.call(R,B,j.pos!==void 0?j.pos:ie)||j,B=ie;break}}}}else j={caret:h.seekNext.call(R,B)}}R.hasAlternator&&S!==!0&&!w&&(j===!1&&G.keepStatic&&(I.call(R,h.getBuffer.call(R))||B===0)?j=v.call(R,B,y,w,A,void 0,p):(T.call(R,p)&&U.tests[B]&&U.tests[B].length>1&&G.keepStatic||j==1&&G.numericInput!==!0&&U.tests[B]&&U.tests[B].length>1&&h.getLastValidPosition.call(R,void 0,!0)>B)&&(j=v.call(R,!0))),j===!0&&(j={pos:B})}if(typeof G.postValidation=="function"&&A!==!0&&O!==!0){var N=G.postValidation.call(R,h.getBuffer.call(R,!0),p.begin!==void 0?R.isRTL?p.end:p.begin:p,y,j,G,U,w,C);N!==void 0&&(j=N===!0?j:N)}j&&j.pos===void 0&&(j.pos=B),j===!1||O===!0?(h.resetMaskSet.call(R,!0),U.validPositions=L.extend(!0,[],Z)):d.call(R,void 0,B,!0);var M=Y(j);return R.maxLength!==void 0&&h.getBuffer.call(R).length>R.maxLength&&!A&&(h.resetMaskSet.call(R,!0),U.validPositions=L.extend(!0,[],Z),M=!1),M}function m(p,y,w){for(var A=this.maskset,S=!1,O=c.getTests.call(this,p),C=0;C0&&!S.validPositions[p];p--);for(var C=p;CN+1?M[N+1]&&M[N+1].match.static===!0&&M[N+1]:M[N+1];return H&&D}return!1}var G=0,U=p.begin!==void 0?p.begin:p,B=p.end!==void 0?p.end:p,Y=!0;if(p.begin>p.end&&(U=p.end,B=p.begin),A=A!==void 0?A:U,w===void 0&&(U!==B||C.insertMode&&O.validPositions[A]!==void 0||y===void 0||y.match.optionalQuantifier||y.match.optionality)){var F,j=R.extend(!0,{},O.validPositions),Z=h.getLastValidPosition.call(S,void 0,!0);for(O.p=U,F=Z;F>=U;F--)delete O.validPositions[F],y===void 0&&delete O.tests[F+1];var J,se,le=A,ie=le;for(y&&(O.validPositions[A]=R.extend(!0,{},y),ie++,le++),F=y?B:B-1;F<=Z;F++){if((J=j[F])!==void 0&&J.generatedInput!==!0&&(F>=B||F>=U&&L(F,j,{begin:U,end:B}))){for(;c.getTest.call(S,ie).match.def!=="";){if((se=m.call(S,ie,J,C))!==!1||J.match.def==="+"){J.match.def==="+"&&h.getBuffer.call(S,!0);var oe=g.call(S,ie,J.input,J.match.def!=="+",!0);if(Y=oe!==!1,le=(oe.pos||ie)+1,!Y&&se)break}else Y=!1;if(Y){y===void 0&&J.match.static&&F===p.begin&&G++;break}if(!Y&&h.getBuffer.call(S),ie>O.maskLength)break;ie++}c.getTest.call(S,ie).match.def==""&&(Y=!1),ie=le}if(!Y)break}if(!Y)return O.validPositions=R.extend(!0,[],j),h.resetMaskSet.call(S,!0),!1}else y&&c.getTest.call(S,A).match.cd===y.match.cd&&(O.validPositions[A]=R.extend(!0,{},y));return h.resetMaskSet.call(S,!0),G}}},r={};function s(o){var a=r[o];if(a!==void 0)return a.exports;var l=r[o]={exports:{}};return n[o](l,l.exports,s),l.exports}var i={};return function(){var o,a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,s(7149),s(3194),s(9302),s(4013),s(3851),s(219),s(207),s(5296);var l=((o=s(2394))&&o.__esModule?o:{default:o}).default;a.default=l}(),i}()})})(_O);var H5=_O.exports;const W5=gO(H5),G5=en(t=>({provide:{inputmask:W5}}));//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var _O;function fe(){return _O.apply(null,arguments)}function Y5(t){_O=t}function Ar(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function fo(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function ze(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function S0(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(ze(t,e))return!1;return!0}function Fn(t){return t===void 0}function $s(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Cu(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function yO(t,e){var n=[],r,s=t.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var P0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ph=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bm={},ya={};function be(t,e,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(ya[t]=s),e&&(ya[e[0]]=function(){return os(s.apply(this,arguments),e[1],e[2])}),n&&(ya[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function X5(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function J5(t){var e=t.match(P0),n,r;for(n=0,r=e.length;n=0&&ph.test(t);)t=t.replace(ph,r),ph.lastIndex=0,n-=1;return t}var Z5={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function e8(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(P0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var t8="Invalid date";function n8(){return this._invalidDate}var r8="%d",s8=/\d{1,2}/;function i8(t){return this._ordinal.replace("%d",t)}var o8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a8(t,e,n,r){var s=this._relativeTime[n];return hs(s)?s(t,e,n,r):s.replace(/%d/i,t)}function l8(t,e){var n=this._relativeTime[t>0?"future":"past"];return hs(n)?n(e):n.replace(/%s/i,e)}var rc={};function In(t,e){var n=t.toLowerCase();rc[n]=rc[n+"s"]=rc[e]=t}function fr(t){return typeof t=="string"?rc[t]||rc[t.toLowerCase()]:void 0}function O0(t){var e={},n,r;for(r in t)ze(t,r)&&(n=fr(r),n&&(e[n]=t[r]));return e}var TO={};function kn(t,e){TO[t]=e}function c8(t){var e=[],n;for(n in t)ze(t,n)&&e.push({unit:n,priority:TO[n]});return e.sort(function(r,s){return r.priority-s.priority}),e}function _p(t){return t%4===0&&t%100!==0||t%400===0}function sr(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Fe(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=sr(e)),n}function ll(t,e){return function(n){return n!=null?(bO(this,t,n),fe.updateOffset(this,e),this):jf(this,t)}}function jf(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function bO(t,e,n){t.isValid()&&!isNaN(n)&&(e==="FullYear"&&_p(t.year())&&t.month()===1&&t.date()===29?(n=Fe(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),bp(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function u8(t){return t=fr(t),hs(this[t])?this[t]():this}function h8(t,e){if(typeof t=="object"){t=O0(t);var n=c8(t),r,s=n.length;for(r=0;r68?1900:2e3)};var DO=ll("FullYear",!0);function P8(){return _p(this.year())}function O8(t,e,n,r,s,i,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,s,i,o),a}function Uc(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function $f(t,e,n){var r=7+e-n,s=(7+Uc(t,0,r).getUTCDay()-e)%7;return-s+r-1}function LO(t,e,n,r,s){var i=(7+n-r)%7,o=$f(t,r,s),a=1+7*(e-1)+i+o,l,c;return a<=0?(l=t-1,c=sc(l)+a):a>sc(t)?(l=t+1,c=a-sc(t)):(l=t,c=a),{year:l,dayOfYear:c}}function jc(t,e,n){var r=$f(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=t.year()-1,i=s+Ds(o,e,n)):s>Ds(t.year(),e,n)?(i=s-Ds(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function Ds(t,e,n){var r=$f(t,e,n),s=$f(t+1,e,n);return(sc(t)-r+s)/7}be("w",["ww",2],"wo","week");be("W",["WW",2],"Wo","isoWeek");In("week","w");In("isoWeek","W");kn("week",5);kn("isoWeek",5);ye("w",wt);ye("ww",wt,tr);ye("W",wt);ye("WW",wt,tr);Pu(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Fe(t)});function N8(t){return jc(t,this._week.dow,this._week.doy).week}var D8={dow:0,doy:6};function L8(){return this._week.dow}function x8(){return this._week.doy}function M8(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function F8(t){var e=jc(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}be("d",0,"do","day");be("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});be("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});be("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});be("e",0,0,"weekday");be("E",0,0,"isoWeekday");In("day","d");In("weekday","e");In("isoWeekday","E");kn("day",11);kn("weekday",11);kn("isoWeekday",11);ye("d",wt);ye("e",wt);ye("E",wt);ye("dd",function(t,e){return e.weekdaysMinRegex(t)});ye("ddd",function(t,e){return e.weekdaysShortRegex(t)});ye("dddd",function(t,e){return e.weekdaysRegex(t)});Pu(["dd","ddd","dddd"],function(t,e,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?e.d=s:Ne(n).invalidWeekday=t});Pu(["d","e","E"],function(t,e,n,r){e[r]=Fe(t)});function V8(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function U8(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function L0(t,e){return t.slice(e,7).concat(t.slice(0,e))}var j8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xO="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),B8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$8=Au,H8=Au,W8=Au;function G8(t,e){var n=Ar(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?L0(n,this._week.dow):t?n[t.day()]:n}function Y8(t){return t===!0?L0(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function q8(t){return t===!0?L0(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function K8(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=us([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(s=Nt.call(this._weekdaysParse,o),s!==-1?s:null):e==="ddd"?(s=Nt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null):e==="dddd"?(s=Nt.call(this._weekdaysParse,o),s!==-1||(s=Nt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null)):e==="ddd"?(s=Nt.call(this._shortWeekdaysParse,o),s!==-1||(s=Nt.call(this._weekdaysParse,o),s!==-1)?s:(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=Nt.call(this._minWeekdaysParse,o),s!==-1||(s=Nt.call(this._weekdaysParse,o),s!==-1)?s:(s=Nt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function z8(t,e,n){var r,s,i;if(this._weekdaysParseExact)return K8.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=us([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Q8(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=V8(t,this.localeData()),this.add(t-e,"d")):e}function X8(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function J8(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=U8(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Z8(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||x0.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(ze(this,"_weekdaysRegex")||(this._weekdaysRegex=$8),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function ez(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||x0.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ze(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=H8),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tz(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||x0.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ze(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=W8),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function x0(){function t(u,h){return h.length-u.length}var e=[],n=[],r=[],s=[],i,o,a,l,c;for(i=0;i<7;i++)o=us([2e3,1]).day(i),a=Yn(this.weekdaysMin(o,"")),l=Yn(this.weekdaysShort(o,"")),c=Yn(this.weekdays(o,"")),e.push(a),n.push(l),r.push(c),s.push(a),s.push(l),s.push(c);e.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function M0(){return this.hours()%12||12}function nz(){return this.hours()||24}be("H",["HH",2],0,"hour");be("h",["hh",2],0,M0);be("k",["kk",2],0,nz);be("hmm",0,0,function(){return""+M0.apply(this)+os(this.minutes(),2)});be("hmmss",0,0,function(){return""+M0.apply(this)+os(this.minutes(),2)+os(this.seconds(),2)});be("Hmm",0,0,function(){return""+this.hours()+os(this.minutes(),2)});be("Hmmss",0,0,function(){return""+this.hours()+os(this.minutes(),2)+os(this.seconds(),2)});function MO(t,e){be(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}MO("a",!0);MO("A",!1);In("hour","h");kn("hour",13);function FO(t,e){return e._meridiemParse}ye("a",FO);ye("A",FO);ye("H",wt);ye("h",wt);ye("k",wt);ye("HH",wt,tr);ye("hh",wt,tr);ye("kk",wt,tr);ye("hmm",SO);ye("hmmss",CO);ye("Hmm",SO);ye("Hmmss",CO);at(["H","HH"],Wt);at(["k","kk"],function(t,e,n){var r=Fe(t);e[Wt]=r===24?0:r});at(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});at(["h","hh"],function(t,e,n){e[Wt]=Fe(t),Ne(n).bigHour=!0});at("hmm",function(t,e,n){var r=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r)),Ne(n).bigHour=!0});at("hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r,2)),e[As]=Fe(t.substr(s)),Ne(n).bigHour=!0});at("Hmm",function(t,e,n){var r=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r))});at("Hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r,2)),e[As]=Fe(t.substr(s))});function rz(t){return(t+"").toLowerCase().charAt(0)==="p"}var sz=/[ap]\.?m?\.?/i,iz=ll("Hours",!0);function oz(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var VO={calendar:z5,longDateFormat:Z5,invalidDate:t8,ordinal:r8,dayOfMonthOrdinalParse:s8,relativeTime:o8,months:E8,monthsShort:RO,week:D8,weekdays:j8,weekdaysMin:B8,weekdaysShort:xO,meridiemParse:sz},bt={},bl={},Bc;function az(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n0;){if(s=Ip(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&az(i,r)>=n-1)break;n--}e++}return Bc}function cz(t){return t.match("^[^/\\\\]*$")!=null}function Ip(t){var e=null,n;if(bt[t]===void 0&&typeof module<"u"&&module&&module.exports&&cz(t))try{e=Bc._abbr,n=require,n("./locale/"+t),bi(e)}catch{bt[t]=null}return bt[t]}function bi(t,e){var n;return t&&(Fn(e)?n=Gs(t):n=F0(t,e),n?Bc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Bc._abbr}function F0(t,e){if(e!==null){var n,r=VO;if(e.abbr=t,bt[t]!=null)EO("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=bt[t]._config;else if(e.parentLocale!=null)if(bt[e.parentLocale]!=null)r=bt[e.parentLocale]._config;else if(n=Ip(e.parentLocale),n!=null)r=n._config;else return bl[e.parentLocale]||(bl[e.parentLocale]=[]),bl[e.parentLocale].push({name:t,config:e}),null;return bt[t]=new A0(L_(r,e)),bl[t]&&bl[t].forEach(function(s){F0(s.name,s.config)}),bi(t),bt[t]}else return delete bt[t],null}function uz(t,e){if(e!=null){var n,r,s=VO;bt[t]!=null&&bt[t].parentLocale!=null?bt[t].set(L_(bt[t]._config,e)):(r=Ip(t),r!=null&&(s=r._config),e=L_(s,e),r==null&&(e.abbr=t),n=new A0(e),n.parentLocale=bt[t],bt[t]=n),bi(t)}else bt[t]!=null&&(bt[t].parentLocale!=null?(bt[t]=bt[t].parentLocale,t===bi()&&bi(t)):bt[t]!=null&&delete bt[t]);return bt[t]}function Gs(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Bc;if(!Ar(t)){if(e=Ip(t),e)return e;t=[t]}return lz(t)}function hz(){return x_(bt)}function V0(t){var e,n=t._a;return n&&Ne(t).overflow===-2&&(e=n[Rs]<0||n[Rs]>11?Rs:n[Wr]<1||n[Wr]>bp(n[wn],n[Rs])?Wr:n[Wt]<0||n[Wt]>24||n[Wt]===24&&(n[Tr]!==0||n[As]!==0||n[io]!==0)?Wt:n[Tr]<0||n[Tr]>59?Tr:n[As]<0||n[As]>59?As:n[io]<0||n[io]>999?io:-1,Ne(t)._overflowDayOfYear&&(eWr)&&(e=Wr),Ne(t)._overflowWeeks&&e===-1&&(e=_8),Ne(t)._overflowWeekday&&e===-1&&(e=y8),Ne(t).overflow=e),t}var fz=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dz=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pz=/Z|[+-]\d\d(?::?\d\d)?/,mh=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Im=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mz=/^\/?Date\((-?\d+)/i,gz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_z={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function UO(t){var e,n,r=t._i,s=fz.exec(r)||dz.exec(r),i,o,a,l,c=mh.length,u=Im.length;if(s){for(Ne(t).iso=!0,e=0,n=c;esc(o)||t._dayOfYear===0)&&(Ne(t)._overflowDayOfYear=!0),n=Uc(o,0,t._dayOfYear),t._a[Rs]=n.getUTCMonth(),t._a[Wr]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=s[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Wt]===24&&t._a[Tr]===0&&t._a[As]===0&&t._a[io]===0&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?Uc:O8).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(Ne(t).weekdayMismatch=!0)}}function kz(t){var e,n,r,s,i,o,a,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,n=Xo(e.GG,t._a[wn],jc(Et(),1,4).year),r=Xo(e.W,1),s=Xo(e.E,1),(s<1||s>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,c=jc(Et(),i,o),n=Xo(e.gg,t._a[wn],c.year),r=Xo(e.w,c.week),e.d!=null?(s=e.d,(s<0||s>6)&&(l=!0)):e.e!=null?(s=e.e+i,(e.e<0||e.e>6)&&(l=!0)):s=i),r<1||r>Ds(n,i,o)?Ne(t)._overflowWeeks=!0:l!=null?Ne(t)._overflowWeekday=!0:(a=LO(n,r,s,i,o),t._a[wn]=a.year,t._dayOfYear=a.dayOfYear)}fe.ISO_8601=function(){};fe.RFC_2822=function(){};function j0(t){if(t._f===fe.ISO_8601){UO(t);return}if(t._f===fe.RFC_2822){jO(t);return}t._a=[],Ne(t).empty=!0;var e=""+t._i,n,r,s,i,o,a=e.length,l=0,c,u;for(s=wO(t._f,t._locale).match(P0)||[],u=s.length,n=0;n0&&Ne(t).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),ya[i]?(r?Ne(t).empty=!1:Ne(t).unusedTokens.push(i),g8(i,r,t)):t._strict&&!r&&Ne(t).unusedTokens.push(i);Ne(t).charsLeftOver=a-l,e.length>0&&Ne(t).unusedInput.push(e),t._a[Wt]<=12&&Ne(t).bigHour===!0&&t._a[Wt]>0&&(Ne(t).bigHour=void 0),Ne(t).parsedDateParts=t._a.slice(0),Ne(t).meridiem=t._meridiem,t._a[Wt]=Sz(t._locale,t._a[Wt],t._meridiem),c=Ne(t).era,c!==null&&(t._a[wn]=t._locale.erasConvertYear(c,t._a[wn])),U0(t),V0(t)}function Sz(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function Cz(t){var e,n,r,s,i,o,a=!1,l=t._f.length;if(l===0){Ne(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;sthis?this:t:gp()});function HO(t,e){var n,r;if(e.length===1&&Ar(e[0])&&(e=e[0]),!e.length)return Et();for(n=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kz(){if(!Fn(this._isDSTShifted))return this._isDSTShifted;var t={},e;return R0(t,this),t=BO(t),t._a?(e=t._isUTC?us(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&Uz(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zz(){return this.isValid()?!this._isUTC:!1}function Qz(){return this.isValid()?this._isUTC:!1}function GO(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Xz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(t,e){var n=t,r=null,s,i,o;return Nh(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:$s(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=Xz.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:Fe(r[Wr])*s,h:Fe(r[Wt])*s,m:Fe(r[Tr])*s,s:Fe(r[As])*s,ms:Fe(F_(r[io]*1e3))*s}):(r=Jz.exec(t))?(s=r[1]==="-"?-1:1,n={y:Hi(r[2],s),M:Hi(r[3],s),w:Hi(r[4],s),d:Hi(r[5],s),h:Hi(r[6],s),m:Hi(r[7],s),s:Hi(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Zz(Et(n.from),Et(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new kp(n),Nh(t)&&ze(t,"_locale")&&(i._locale=t._locale),Nh(t)&&ze(t,"_isValid")&&(i._isValid=t._isValid),i}Dr.fn=kp.prototype;Dr.invalid=Vz;function Hi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function AI(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zz(t,e){var n;return t.isValid()&&e.isValid()?(e=$0(e,t),t.isBefore(e)?n=AI(t,e):(n=AI(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function YO(t,e){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(EO(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=Dr(n,r),qO(this,s,t),this}}function qO(t,e,n,r){var s=e._milliseconds,i=F_(e._days),o=F_(e._months);t.isValid()&&(r=r??!0,o&&PO(t,jf(t,"Month")+o*n),i&&bO(t,"Date",jf(t,"Date")+i*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&fe.updateOffset(t,i||o))}var e7=YO(1,"add"),t7=YO(-1,"subtract");function KO(t){return typeof t=="string"||t instanceof String}function n7(t){return Pr(t)||Cu(t)||KO(t)||$s(t)||s7(t)||r7(t)||t===null||t===void 0}function r7(t){var e=fo(t)&&!S0(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;sn.valueOf():n.valueOf()9999?Oh(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):hs(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oh(n,"Z")):Oh(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function y7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,s,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+r+s+i)}function v7(t){t||(t=this.isUtc()?fe.defaultFormatUtc:fe.defaultFormat);var e=Oh(this,t);return this.localeData().postformat(e)}function E7(t,e){return this.isValid()&&(Pr(t)&&t.isValid()||Et(t).isValid())?Dr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function w7(t){return this.from(Et(),t)}function T7(t,e){return this.isValid()&&(Pr(t)&&t.isValid()||Et(t).isValid())?Dr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function b7(t){return this.to(Et(),t)}function zO(t){var e;return t===void 0?this._locale._abbr:(e=Gs(t),e!=null&&(this._locale=e),this)}var QO=hr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function XO(){return this._locale}var Hf=1e3,va=60*Hf,Wf=60*va,JO=(365*400+97)*24*Wf;function Ea(t,e){return(t%e+e)%e}function ZO(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-JO:new Date(t,e,n).valueOf()}function eN(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-JO:Date.UTC(t,e,n)}function I7(t){var e,n;if(t=fr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?eN:ZO,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ea(e+(this._isUTC?0:this.utcOffset()*va),Wf);break;case"minute":e=this._d.valueOf(),e-=Ea(e,va);break;case"second":e=this._d.valueOf(),e-=Ea(e,Hf);break}return this._d.setTime(e),fe.updateOffset(this,!0),this}function k7(t){var e,n;if(t=fr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?eN:ZO,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Wf-Ea(e+(this._isUTC?0:this.utcOffset()*va),Wf)-1;break;case"minute":e=this._d.valueOf(),e+=va-Ea(e,va)-1;break;case"second":e=this._d.valueOf(),e+=Hf-Ea(e,Hf)-1;break}return this._d.setTime(e),fe.updateOffset(this,!0),this}function S7(){return this._d.valueOf()-(this._offset||0)*6e4}function C7(){return Math.floor(this.valueOf()/1e3)}function R7(){return new Date(this.valueOf())}function A7(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function P7(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function O7(){return this.isValid()?this.toISOString():null}function N7(){return C0(this)}function D7(){return fi({},Ne(this))}function L7(){return Ne(this).overflow}function x7(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}be("N",0,0,"eraAbbr");be("NN",0,0,"eraAbbr");be("NNN",0,0,"eraAbbr");be("NNNN",0,0,"eraName");be("NNNNN",0,0,"eraNarrow");be("y",["y",1],"yo","eraYear");be("y",["yy",2],0,"eraYear");be("y",["yyy",3],0,"eraYear");be("y",["yyyy",4],0,"eraYear");ye("N",H0);ye("NN",H0);ye("NNN",H0);ye("NNNN",Y7);ye("NNNNN",q7);at(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var s=n._locale.erasParse(t,r,n._strict);s?Ne(n).era=s:Ne(n).invalidEra=t});ye("y",cl);ye("yy",cl);ye("yyy",cl);ye("yyyy",cl);ye("yo",K7);at(["y","yy","yyy","yyyy"],wn);at(["yo"],function(t,e,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[wn]=n._locale.eraYearOrdinalParse(t,s):e[wn]=parseInt(t,10)});function M7(t,e){var n,r,s,i=this._eras||Gs("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function V7(t,e){var n=t.since<=t.until?1:-1;return e===void 0?fe(t.since).year():fe(t.since).year()+(e-t.offset)*n}function U7(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;ti&&(e=i),tQ.call(this,t,e,n,r,s))}function tQ(t,e,n,r,s){var i=LO(t,e,n,r,s),o=Uc(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}be("Q",0,"Qo","quarter");In("quarter","Q");kn("quarter",7);ye("Q",IO);at("Q",function(t,e){e[Rs]=(Fe(t)-1)*3});function nQ(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}be("D",["DD",2],"Do","date");In("date","D");kn("date",9);ye("D",wt);ye("DD",wt,tr);ye("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});at(["D","DD"],Wr);at("Do",function(t,e){e[Wr]=Fe(t.match(wt)[0])});var nN=ll("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear");In("dayOfYear","DDD");kn("dayOfYear",4);ye("DDD",vp);ye("DDDD",kO);at(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Fe(t)});function rQ(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}be("m",["mm",2],0,"minute");In("minute","m");kn("minute",14);ye("m",wt);ye("mm",wt,tr);at(["m","mm"],Tr);var sQ=ll("Minutes",!1);be("s",["ss",2],0,"second");In("second","s");kn("second",15);ye("s",wt);ye("ss",wt,tr);at(["s","ss"],As);var iQ=ll("Seconds",!1);be("S",0,0,function(){return~~(this.millisecond()/100)});be(0,["SS",2],0,function(){return~~(this.millisecond()/10)});be(0,["SSS",3],0,"millisecond");be(0,["SSSS",4],0,function(){return this.millisecond()*10});be(0,["SSSSS",5],0,function(){return this.millisecond()*100});be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});In("millisecond","ms");kn("millisecond",16);ye("S",vp,IO);ye("SS",vp,tr);ye("SSS",vp,kO);var di,rN;for(di="SSSS";di.length<=9;di+="S")ye(di,cl);function oQ(t,e){e[io]=Fe(("0."+t)*1e3)}for(di="S";di.length<=9;di+="S")at(di,oQ);rN=ll("Milliseconds",!1);be("z",0,0,"zoneAbbr");be("zz",0,0,"zoneName");function aQ(){return this._isUTC?"UTC":""}function lQ(){return this._isUTC?"Coordinated Universal Time":""}var ue=Ru.prototype;ue.add=e7;ue.calendar=a7;ue.clone=l7;ue.diff=m7;ue.endOf=k7;ue.format=v7;ue.from=E7;ue.fromNow=w7;ue.to=T7;ue.toNow=b7;ue.get=u8;ue.invalidAt=L7;ue.isAfter=c7;ue.isBefore=u7;ue.isBetween=h7;ue.isSame=f7;ue.isSameOrAfter=d7;ue.isSameOrBefore=p7;ue.isValid=N7;ue.lang=QO;ue.locale=zO;ue.localeData=XO;ue.max=Nz;ue.min=Oz;ue.parsingFlags=D7;ue.set=h8;ue.startOf=I7;ue.subtract=t7;ue.toArray=A7;ue.toObject=P7;ue.toDate=R7;ue.toISOString=_7;ue.inspect=y7;typeof Symbol<"u"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=O7;ue.toString=g7;ue.unix=C7;ue.valueOf=S7;ue.creationData=x7;ue.eraName=U7;ue.eraNarrow=j7;ue.eraAbbr=B7;ue.eraYear=$7;ue.year=DO;ue.isLeapYear=P8;ue.weekYear=z7;ue.isoWeekYear=Q7;ue.quarter=ue.quarters=nQ;ue.month=OO;ue.daysInMonth=C8;ue.week=ue.weeks=M8;ue.isoWeek=ue.isoWeeks=F8;ue.weeksInYear=Z7;ue.weeksInWeekYear=eQ;ue.isoWeeksInYear=X7;ue.isoWeeksInISOWeekYear=J7;ue.date=nN;ue.day=ue.days=Q8;ue.weekday=X8;ue.isoWeekday=J8;ue.dayOfYear=rQ;ue.hour=ue.hours=iz;ue.minute=ue.minutes=sQ;ue.second=ue.seconds=iQ;ue.millisecond=ue.milliseconds=rN;ue.utcOffset=Bz;ue.utc=Hz;ue.local=Wz;ue.parseZone=Gz;ue.hasAlignedHourOffset=Yz;ue.isDST=qz;ue.isLocal=zz;ue.isUtcOffset=Qz;ue.isUtc=GO;ue.isUTC=GO;ue.zoneAbbr=aQ;ue.zoneName=lQ;ue.dates=hr("dates accessor is deprecated. Use date instead.",nN);ue.months=hr("months accessor is deprecated. Use month instead",OO);ue.years=hr("years accessor is deprecated. Use year instead",DO);ue.zone=hr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$z);ue.isDSTShifted=hr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kz);function cQ(t){return Et(t*1e3)}function uQ(){return Et.apply(null,arguments).parseZone()}function sN(t){return t}var Qe=A0.prototype;Qe.calendar=Q5;Qe.longDateFormat=e8;Qe.invalidDate=n8;Qe.ordinal=i8;Qe.preparse=sN;Qe.postformat=sN;Qe.relativeTime=a8;Qe.pastFuture=l8;Qe.set=K5;Qe.eras=M7;Qe.erasParse=F7;Qe.erasConvertYear=V7;Qe.erasAbbrRegex=W7;Qe.erasNameRegex=H7;Qe.erasNarrowRegex=G7;Qe.months=b8;Qe.monthsShort=I8;Qe.monthsParse=S8;Qe.monthsRegex=A8;Qe.monthsShortRegex=R8;Qe.week=N8;Qe.firstDayOfYear=x8;Qe.firstDayOfWeek=L8;Qe.weekdays=G8;Qe.weekdaysMin=q8;Qe.weekdaysShort=Y8;Qe.weekdaysParse=z8;Qe.weekdaysRegex=Z8;Qe.weekdaysShortRegex=ez;Qe.weekdaysMinRegex=tz;Qe.isPM=rz;Qe.meridiem=oz;function Gf(t,e,n,r){var s=Gs(),i=us().set(r,e);return s[n](i,t)}function iN(t,e,n){if($s(t)&&(e=t,t=void 0),t=t||"",e!=null)return Gf(t,e,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Gf(t,r,n,"month");return s}function G0(t,e,n,r){typeof t=="boolean"?($s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,$s(e)&&(n=e,e=void 0),e=e||"");var s=Gs(),i=t?s._week.dow:0,o,a=[];if(n!=null)return Gf(e,(n+i)%7,r,"day");for(o=0;o<7;o++)a[o]=Gf(e,(o+i)%7,r,"day");return a}function hQ(t,e){return iN(t,e,"months")}function fQ(t,e){return iN(t,e,"monthsShort")}function dQ(t,e,n){return G0(t,e,n,"weekdays")}function pQ(t,e,n){return G0(t,e,n,"weekdaysShort")}function mQ(t,e,n){return G0(t,e,n,"weekdaysMin")}bi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Fe(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});fe.lang=hr("moment.lang is deprecated. Use moment.locale instead.",bi);fe.langData=hr("moment.langData is deprecated. Use moment.localeData instead.",Gs);var _s=Math.abs;function gQ(){var t=this._data;return this._milliseconds=_s(this._milliseconds),this._days=_s(this._days),this._months=_s(this._months),t.milliseconds=_s(t.milliseconds),t.seconds=_s(t.seconds),t.minutes=_s(t.minutes),t.hours=_s(t.hours),t.months=_s(t.months),t.years=_s(t.years),this}function oN(t,e,n,r){var s=Dr(e,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function _Q(t,e){return oN(this,t,e,1)}function yQ(t,e){return oN(this,t,e,-1)}function PI(t){return t<0?Math.floor(t):Math.ceil(t)}function vQ(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,s,i,o,a,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=PI(U_(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,s=sr(t/1e3),r.seconds=s%60,i=sr(s/60),r.minutes=i%60,o=sr(i/60),r.hours=o%24,e+=sr(o/24),l=sr(aN(e)),n+=l,e-=PI(U_(l)),a=sr(n/12),n%=12,r.days=e,r.months=n,r.years=a,this}function aN(t){return t*4800/146097}function U_(t){return t*146097/4800}function EQ(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=fr(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+aN(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(U_(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function wQ(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Fe(this._months/12)*31536e6:NaN}function Ys(t){return function(){return this.as(t)}}var TQ=Ys("ms"),bQ=Ys("s"),IQ=Ys("m"),kQ=Ys("h"),SQ=Ys("d"),CQ=Ys("w"),RQ=Ys("M"),AQ=Ys("Q"),PQ=Ys("y");function OQ(){return Dr(this)}function NQ(t){return t=fr(t),this.isValid()?this[t+"s"]():NaN}function Vo(t){return function(){return this.isValid()?this._data[t]:NaN}}var DQ=Vo("milliseconds"),LQ=Vo("seconds"),xQ=Vo("minutes"),MQ=Vo("hours"),FQ=Vo("days"),VQ=Vo("months"),UQ=Vo("years");function jQ(){return sr(this.days()/7)}var ws=Math.round,sa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function BQ(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}function $Q(t,e,n,r){var s=Dr(t).abs(),i=ws(s.as("s")),o=ws(s.as("m")),a=ws(s.as("h")),l=ws(s.as("d")),c=ws(s.as("M")),u=ws(s.as("w")),h=ws(s.as("y")),f=i<=n.ss&&["s",i]||i0,f[4]=r,BQ.apply(null,f)}function HQ(t){return t===void 0?ws:typeof t=="function"?(ws=t,!0):!1}function WQ(t,e){return sa[t]===void 0?!1:e===void 0?sa[t]:(sa[t]=e,t==="s"&&(sa.ss=e-1),!0)}function GQ(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=sa,s,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},sa,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),s=this.localeData(),i=$Q(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var km=Math.abs;function Yo(t){return(t>0)-(t<0)||+t}function Cp(){if(!this.isValid())return this.localeData().invalidDate();var t=km(this._milliseconds)/1e3,e=km(this._days),n=km(this._months),r,s,i,o,a=this.asSeconds(),l,c,u,h;return a?(r=sr(t/60),s=sr(r/60),t%=60,r%=60,i=sr(n/12),n%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=Yo(this._months)!==Yo(a)?"-":"",u=Yo(this._days)!==Yo(a)?"-":"",h=Yo(this._milliseconds)!==Yo(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(e?u+e+"D":"")+(s||r||t?"T":"")+(s?h+s+"H":"")+(r?h+r+"M":"")+(t?h+o+"S":"")):"P0D"}var qe=kp.prototype;qe.isValid=Fz;qe.abs=gQ;qe.add=_Q;qe.subtract=yQ;qe.as=EQ;qe.asMilliseconds=TQ;qe.asSeconds=bQ;qe.asMinutes=IQ;qe.asHours=kQ;qe.asDays=SQ;qe.asWeeks=CQ;qe.asMonths=RQ;qe.asQuarters=AQ;qe.asYears=PQ;qe.valueOf=wQ;qe._bubble=vQ;qe.clone=OQ;qe.get=NQ;qe.milliseconds=DQ;qe.seconds=LQ;qe.minutes=xQ;qe.hours=MQ;qe.days=FQ;qe.weeks=jQ;qe.months=VQ;qe.years=UQ;qe.humanize=GQ;qe.toISOString=Cp;qe.toString=Cp;qe.toJSON=Cp;qe.locale=zO;qe.localeData=XO;qe.toIsoString=hr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cp);qe.lang=QO;be("X",0,0,"unix");be("x",0,0,"valueOf");ye("x",wp);ye("X",d8);at("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});at("x",function(t,e,n){n._d=new Date(Fe(t))});//! moment.js -fe.version="2.29.4";Y5(Et);fe.fn=ue;fe.min=Dz;fe.max=Lz;fe.now=xz;fe.utc=us;fe.unix=cQ;fe.months=hQ;fe.isDate=Cu;fe.locale=bi;fe.invalid=gp;fe.duration=Dr;fe.isMoment=Pr;fe.weekdays=dQ;fe.parseZone=uQ;fe.localeData=Gs;fe.isDuration=Nh;fe.monthsShort=fQ;fe.weekdaysMin=mQ;fe.defineLocale=F0;fe.updateLocale=uz;fe.locales=hz;fe.weekdaysShort=pQ;fe.normalizeUnits=fr;fe.relativeTimeRounding=HQ;fe.relativeTimeThreshold=WQ;fe.calendarFormat=o7;fe.prototype=ue;fe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const YQ=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"}));//! moment.js locale configuration +`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var AI={};function wO(t,e){fe.deprecationHandler!=null&&fe.deprecationHandler(t,e),AI[t]||(EO(e),AI[t]=!0)}fe.suppressDeprecationWarnings=!1;fe.deprecationHandler=null;function fs(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function K5(t){var e,n;for(n in t)ze(t,n)&&(e=t[n],fs(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L_(t,e){var n=fi({},t),r;for(r in e)ze(e,r)&&(fo(t[r])&&fo(e[r])?(n[r]={},fi(n[r],t[r]),fi(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)ze(t,r)&&!ze(e,r)&&fo(t[r])&&(n[r]=fi({},n[r]));return n}function O0(t){t!=null&&this.set(t)}var M_;Object.keys?M_=Object.keys:M_=function(t){var e,n=[];for(e in t)ze(t,e)&&n.push(e);return n};var z5={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Q5(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return fs(r)?r.call(e,n):r}function as(t,e,n){var r=""+Math.abs(t),s=e-r.length,i=t>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var N0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,gh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bm={},ya={};function be(t,e,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(ya[t]=s),e&&(ya[e[0]]=function(){return as(s.apply(this,arguments),e[1],e[2])}),n&&(ya[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function X5(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function J5(t){var e=t.match(N0),n,r;for(n=0,r=e.length;n=0&&gh.test(t);)t=t.replace(gh,r),gh.lastIndex=0,n-=1;return t}var Z5={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function e8(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(N0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var t8="Invalid date";function n8(){return this._invalidDate}var r8="%d",s8=/\d{1,2}/;function i8(t){return this._ordinal.replace("%d",t)}var o8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a8(t,e,n,r){var s=this._relativeTime[n];return fs(s)?s(t,e,n,r):s.replace(/%d/i,t)}function l8(t,e){var n=this._relativeTime[t>0?"future":"past"];return fs(n)?n(e):n.replace(/%s/i,e)}var rc={};function kn(t,e){var n=t.toLowerCase();rc[n]=rc[n+"s"]=rc[e]=t}function fr(t){return typeof t=="string"?rc[t]||rc[t.toLowerCase()]:void 0}function D0(t){var e={},n,r;for(r in t)ze(t,r)&&(n=fr(r),n&&(e[n]=t[r]));return e}var bO={};function Sn(t,e){bO[t]=e}function c8(t){var e=[],n;for(n in t)ze(t,n)&&e.push({unit:n,priority:bO[n]});return e.sort(function(r,s){return r.priority-s.priority}),e}function _p(t){return t%4===0&&t%100!==0||t%400===0}function sr(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Fe(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=sr(e)),n}function ll(t,e){return function(n){return n!=null?(IO(this,t,n),fe.updateOffset(this,e),this):$f(this,t)}}function $f(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function IO(t,e,n){t.isValid()&&!isNaN(n)&&(e==="FullYear"&&_p(t.year())&&t.month()===1&&t.date()===29?(n=Fe(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),bp(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function u8(t){return t=fr(t),fs(this[t])?this[t]():this}function h8(t,e){if(typeof t=="object"){t=D0(t);var n=c8(t),r,s=n.length;for(r=0;r68?1900:2e3)};var LO=ll("FullYear",!0);function P8(){return _p(this.year())}function O8(t,e,n,r,s,i,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,s,i,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,s,i,o),a}function Uc(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Wf(t,e,n){var r=7+e-n,s=(7+Uc(t,0,r).getUTCDay()-e)%7;return-s+r-1}function MO(t,e,n,r,s){var i=(7+n-r)%7,o=Wf(t,r,s),a=1+7*(e-1)+i+o,l,c;return a<=0?(l=t-1,c=sc(l)+a):a>sc(t)?(l=t+1,c=a-sc(t)):(l=t,c=a),{year:l,dayOfYear:c}}function jc(t,e,n){var r=Wf(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return s<1?(o=t.year()-1,i=s+Ls(o,e,n)):s>Ls(t.year(),e,n)?(i=s-Ls(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function Ls(t,e,n){var r=Wf(t,e,n),s=Wf(t+1,e,n);return(sc(t)-r+s)/7}be("w",["ww",2],"wo","week");be("W",["WW",2],"Wo","isoWeek");kn("week","w");kn("isoWeek","W");Sn("week",5);Sn("isoWeek",5);ye("w",wt);ye("ww",wt,tr);ye("W",wt);ye("WW",wt,tr);Nu(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Fe(t)});function N8(t){return jc(t,this._week.dow,this._week.doy).week}var D8={dow:0,doy:6};function L8(){return this._week.dow}function M8(){return this._week.doy}function x8(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function F8(t){var e=jc(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}be("d",0,"do","day");be("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});be("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});be("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});be("e",0,0,"weekday");be("E",0,0,"isoWeekday");kn("day","d");kn("weekday","e");kn("isoWeekday","E");Sn("day",11);Sn("weekday",11);Sn("isoWeekday",11);ye("d",wt);ye("e",wt);ye("E",wt);ye("dd",function(t,e){return e.weekdaysMinRegex(t)});ye("ddd",function(t,e){return e.weekdaysShortRegex(t)});ye("dddd",function(t,e){return e.weekdaysRegex(t)});Nu(["dd","ddd","dddd"],function(t,e,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?e.d=s:Ne(n).invalidWeekday=t});Nu(["d","e","E"],function(t,e,n,r){e[r]=Fe(t)});function V8(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function U8(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function x0(t,e){return t.slice(e,7).concat(t.slice(0,e))}var j8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xO="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),B8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$8=Ou,H8=Ou,W8=Ou;function G8(t,e){var n=Ar(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?x0(n,this._week.dow):t?n[t.day()]:n}function Y8(t){return t===!0?x0(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function q8(t){return t===!0?x0(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function K8(t,e,n){var r,s,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=hs([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(s=Nt.call(this._weekdaysParse,o),s!==-1?s:null):e==="ddd"?(s=Nt.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null):e==="dddd"?(s=Nt.call(this._weekdaysParse,o),s!==-1||(s=Nt.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null)):e==="ddd"?(s=Nt.call(this._shortWeekdaysParse,o),s!==-1||(s=Nt.call(this._weekdaysParse,o),s!==-1)?s:(s=Nt.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=Nt.call(this._minWeekdaysParse,o),s!==-1||(s=Nt.call(this._weekdaysParse,o),s!==-1)?s:(s=Nt.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function z8(t,e,n){var r,s,i;if(this._weekdaysParseExact)return K8.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=hs([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Q8(t){if(!this.isValid())return t!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return t!=null?(t=V8(t,this.localeData()),this.add(t-e,"d")):e}function X8(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function J8(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=U8(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Z8(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||F0.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(ze(this,"_weekdaysRegex")||(this._weekdaysRegex=$8),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function ez(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||F0.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ze(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=H8),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tz(t){return this._weekdaysParseExact?(ze(this,"_weekdaysRegex")||F0.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ze(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=W8),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function F0(){function t(u,h){return h.length-u.length}var e=[],n=[],r=[],s=[],i,o,a,l,c;for(i=0;i<7;i++)o=hs([2e3,1]).day(i),a=qn(this.weekdaysMin(o,"")),l=qn(this.weekdaysShort(o,"")),c=qn(this.weekdays(o,"")),e.push(a),n.push(l),r.push(c),s.push(a),s.push(l),s.push(c);e.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function V0(){return this.hours()%12||12}function nz(){return this.hours()||24}be("H",["HH",2],0,"hour");be("h",["hh",2],0,V0);be("k",["kk",2],0,nz);be("hmm",0,0,function(){return""+V0.apply(this)+as(this.minutes(),2)});be("hmmss",0,0,function(){return""+V0.apply(this)+as(this.minutes(),2)+as(this.seconds(),2)});be("Hmm",0,0,function(){return""+this.hours()+as(this.minutes(),2)});be("Hmmss",0,0,function(){return""+this.hours()+as(this.minutes(),2)+as(this.seconds(),2)});function FO(t,e){be(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}FO("a",!0);FO("A",!1);kn("hour","h");Sn("hour",13);function VO(t,e){return e._meridiemParse}ye("a",VO);ye("A",VO);ye("H",wt);ye("h",wt);ye("k",wt);ye("HH",wt,tr);ye("hh",wt,tr);ye("kk",wt,tr);ye("hmm",CO);ye("hmmss",RO);ye("Hmm",CO);ye("Hmmss",RO);at(["H","HH"],Wt);at(["k","kk"],function(t,e,n){var r=Fe(t);e[Wt]=r===24?0:r});at(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t});at(["h","hh"],function(t,e,n){e[Wt]=Fe(t),Ne(n).bigHour=!0});at("hmm",function(t,e,n){var r=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r)),Ne(n).bigHour=!0});at("hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r,2)),e[Ps]=Fe(t.substr(s)),Ne(n).bigHour=!0});at("Hmm",function(t,e,n){var r=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r))});at("Hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[Wt]=Fe(t.substr(0,r)),e[Tr]=Fe(t.substr(r,2)),e[Ps]=Fe(t.substr(s))});function rz(t){return(t+"").toLowerCase().charAt(0)==="p"}var sz=/[ap]\.?m?\.?/i,iz=ll("Hours",!0);function oz(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var UO={calendar:z5,longDateFormat:Z5,invalidDate:t8,ordinal:r8,dayOfMonthOrdinalParse:s8,relativeTime:o8,months:E8,monthsShort:AO,week:D8,weekdays:j8,weekdaysMin:B8,weekdaysShort:xO,meridiemParse:sz},bt={},bl={},Bc;function az(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n0;){if(s=Ip(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&az(i,r)>=n-1)break;n--}e++}return Bc}function cz(t){return t.match("^[^/\\\\]*$")!=null}function Ip(t){var e=null,n;if(bt[t]===void 0&&typeof module<"u"&&module&&module.exports&&cz(t))try{e=Bc._abbr,n=require,n("./locale/"+t),bi(e)}catch{bt[t]=null}return bt[t]}function bi(t,e){var n;return t&&(Un(e)?n=Gs(t):n=U0(t,e),n?Bc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Bc._abbr}function U0(t,e){if(e!==null){var n,r=UO;if(e.abbr=t,bt[t]!=null)wO("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=bt[t]._config;else if(e.parentLocale!=null)if(bt[e.parentLocale]!=null)r=bt[e.parentLocale]._config;else if(n=Ip(e.parentLocale),n!=null)r=n._config;else return bl[e.parentLocale]||(bl[e.parentLocale]=[]),bl[e.parentLocale].push({name:t,config:e}),null;return bt[t]=new O0(L_(r,e)),bl[t]&&bl[t].forEach(function(s){U0(s.name,s.config)}),bi(t),bt[t]}else return delete bt[t],null}function uz(t,e){if(e!=null){var n,r,s=UO;bt[t]!=null&&bt[t].parentLocale!=null?bt[t].set(L_(bt[t]._config,e)):(r=Ip(t),r!=null&&(s=r._config),e=L_(s,e),r==null&&(e.abbr=t),n=new O0(e),n.parentLocale=bt[t],bt[t]=n),bi(t)}else bt[t]!=null&&(bt[t].parentLocale!=null?(bt[t]=bt[t].parentLocale,t===bi()&&bi(t)):bt[t]!=null&&delete bt[t]);return bt[t]}function Gs(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Bc;if(!Ar(t)){if(e=Ip(t),e)return e;t=[t]}return lz(t)}function hz(){return M_(bt)}function j0(t){var e,n=t._a;return n&&Ne(t).overflow===-2&&(e=n[As]<0||n[As]>11?As:n[Wr]<1||n[Wr]>bp(n[Tn],n[As])?Wr:n[Wt]<0||n[Wt]>24||n[Wt]===24&&(n[Tr]!==0||n[Ps]!==0||n[io]!==0)?Wt:n[Tr]<0||n[Tr]>59?Tr:n[Ps]<0||n[Ps]>59?Ps:n[io]<0||n[io]>999?io:-1,Ne(t)._overflowDayOfYear&&(eWr)&&(e=Wr),Ne(t)._overflowWeeks&&e===-1&&(e=_8),Ne(t)._overflowWeekday&&e===-1&&(e=y8),Ne(t).overflow=e),t}var fz=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dz=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pz=/Z|[+-]\d\d(?::?\d\d)?/,_h=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Im=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mz=/^\/?Date\((-?\d+)/i,gz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_z={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jO(t){var e,n,r=t._i,s=fz.exec(r)||dz.exec(r),i,o,a,l,c=_h.length,u=Im.length;if(s){for(Ne(t).iso=!0,e=0,n=c;esc(o)||t._dayOfYear===0)&&(Ne(t)._overflowDayOfYear=!0),n=Uc(o,0,t._dayOfYear),t._a[As]=n.getUTCMonth(),t._a[Wr]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=s[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Wt]===24&&t._a[Tr]===0&&t._a[Ps]===0&&t._a[io]===0&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?Uc:O8).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(Ne(t).weekdayMismatch=!0)}}function kz(t){var e,n,r,s,i,o,a,l,c;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,n=Xo(e.GG,t._a[Tn],jc(Et(),1,4).year),r=Xo(e.W,1),s=Xo(e.E,1),(s<1||s>7)&&(l=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,c=jc(Et(),i,o),n=Xo(e.gg,t._a[Tn],c.year),r=Xo(e.w,c.week),e.d!=null?(s=e.d,(s<0||s>6)&&(l=!0)):e.e!=null?(s=e.e+i,(e.e<0||e.e>6)&&(l=!0)):s=i),r<1||r>Ls(n,i,o)?Ne(t)._overflowWeeks=!0:l!=null?Ne(t)._overflowWeekday=!0:(a=MO(n,r,s,i,o),t._a[Tn]=a.year,t._dayOfYear=a.dayOfYear)}fe.ISO_8601=function(){};fe.RFC_2822=function(){};function $0(t){if(t._f===fe.ISO_8601){jO(t);return}if(t._f===fe.RFC_2822){BO(t);return}t._a=[],Ne(t).empty=!0;var e=""+t._i,n,r,s,i,o,a=e.length,l=0,c,u;for(s=TO(t._f,t._locale).match(N0)||[],u=s.length,n=0;n0&&Ne(t).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),ya[i]?(r?Ne(t).empty=!1:Ne(t).unusedTokens.push(i),g8(i,r,t)):t._strict&&!r&&Ne(t).unusedTokens.push(i);Ne(t).charsLeftOver=a-l,e.length>0&&Ne(t).unusedInput.push(e),t._a[Wt]<=12&&Ne(t).bigHour===!0&&t._a[Wt]>0&&(Ne(t).bigHour=void 0),Ne(t).parsedDateParts=t._a.slice(0),Ne(t).meridiem=t._meridiem,t._a[Wt]=Sz(t._locale,t._a[Wt],t._meridiem),c=Ne(t).era,c!==null&&(t._a[Tn]=t._locale.erasConvertYear(c,t._a[Tn])),B0(t),j0(t)}function Sz(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function Cz(t){var e,n,r,s,i,o,a=!1,l=t._f.length;if(l===0){Ne(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;sthis?this:t:gp()});function WO(t,e){var n,r;if(e.length===1&&Ar(e[0])&&(e=e[0]),!e.length)return Et();for(n=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kz(){if(!Un(this._isDSTShifted))return this._isDSTShifted;var t={},e;return P0(t,this),t=$O(t),t._a?(e=t._isUTC?hs(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&Uz(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zz(){return this.isValid()?!this._isUTC:!1}function Qz(){return this.isValid()?this._isUTC:!1}function YO(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Xz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dr(t,e){var n=t,r=null,s,i,o;return Lh(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:$s(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=Xz.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:Fe(r[Wr])*s,h:Fe(r[Wt])*s,m:Fe(r[Tr])*s,s:Fe(r[Ps])*s,ms:Fe(F_(r[io]*1e3))*s}):(r=Jz.exec(t))?(s=r[1]==="-"?-1:1,n={y:Hi(r[2],s),M:Hi(r[3],s),w:Hi(r[4],s),d:Hi(r[5],s),h:Hi(r[6],s),m:Hi(r[7],s),s:Hi(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Zz(Et(n.from),Et(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new kp(n),Lh(t)&&ze(t,"_locale")&&(i._locale=t._locale),Lh(t)&&ze(t,"_isValid")&&(i._isValid=t._isValid),i}Dr.fn=kp.prototype;Dr.invalid=Vz;function Hi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function OI(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zz(t,e){var n;return t.isValid()&&e.isValid()?(e=W0(e,t),t.isBefore(e)?n=OI(t,e):(n=OI(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qO(t,e){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(wO(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=Dr(n,r),KO(this,s,t),this}}function KO(t,e,n,r){var s=e._milliseconds,i=F_(e._days),o=F_(e._months);t.isValid()&&(r=r??!0,o&&OO(t,$f(t,"Month")+o*n),i&&IO(t,"Date",$f(t,"Date")+i*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&fe.updateOffset(t,i||o))}var e7=qO(1,"add"),t7=qO(-1,"subtract");function zO(t){return typeof t=="string"||t instanceof String}function n7(t){return Pr(t)||Au(t)||zO(t)||$s(t)||s7(t)||r7(t)||t===null||t===void 0}function r7(t){var e=fo(t)&&!R0(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,o=r.length;for(s=0;sn.valueOf():n.valueOf()9999?Dh(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fs(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Dh(n,"Z")):Dh(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function y7(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,s,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+r+s+i)}function v7(t){t||(t=this.isUtc()?fe.defaultFormatUtc:fe.defaultFormat);var e=Dh(this,t);return this.localeData().postformat(e)}function E7(t,e){return this.isValid()&&(Pr(t)&&t.isValid()||Et(t).isValid())?Dr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function w7(t){return this.from(Et(),t)}function T7(t,e){return this.isValid()&&(Pr(t)&&t.isValid()||Et(t).isValid())?Dr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function b7(t){return this.to(Et(),t)}function QO(t){var e;return t===void 0?this._locale._abbr:(e=Gs(t),e!=null&&(this._locale=e),this)}var XO=hr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function JO(){return this._locale}var Gf=1e3,va=60*Gf,Yf=60*va,ZO=(365*400+97)*24*Yf;function Ea(t,e){return(t%e+e)%e}function eN(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ZO:new Date(t,e,n).valueOf()}function tN(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ZO:Date.UTC(t,e,n)}function I7(t){var e,n;if(t=fr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tN:eN,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ea(e+(this._isUTC?0:this.utcOffset()*va),Yf);break;case"minute":e=this._d.valueOf(),e-=Ea(e,va);break;case"second":e=this._d.valueOf(),e-=Ea(e,Gf);break}return this._d.setTime(e),fe.updateOffset(this,!0),this}function k7(t){var e,n;if(t=fr(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tN:eN,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Yf-Ea(e+(this._isUTC?0:this.utcOffset()*va),Yf)-1;break;case"minute":e=this._d.valueOf(),e+=va-Ea(e,va)-1;break;case"second":e=this._d.valueOf(),e+=Gf-Ea(e,Gf)-1;break}return this._d.setTime(e),fe.updateOffset(this,!0),this}function S7(){return this._d.valueOf()-(this._offset||0)*6e4}function C7(){return Math.floor(this.valueOf()/1e3)}function R7(){return new Date(this.valueOf())}function A7(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function P7(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function O7(){return this.isValid()?this.toISOString():null}function N7(){return A0(this)}function D7(){return fi({},Ne(this))}function L7(){return Ne(this).overflow}function M7(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}be("N",0,0,"eraAbbr");be("NN",0,0,"eraAbbr");be("NNN",0,0,"eraAbbr");be("NNNN",0,0,"eraName");be("NNNNN",0,0,"eraNarrow");be("y",["y",1],"yo","eraYear");be("y",["yy",2],0,"eraYear");be("y",["yyy",3],0,"eraYear");be("y",["yyyy",4],0,"eraYear");ye("N",G0);ye("NN",G0);ye("NNN",G0);ye("NNNN",Y7);ye("NNNNN",q7);at(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var s=n._locale.erasParse(t,r,n._strict);s?Ne(n).era=s:Ne(n).invalidEra=t});ye("y",cl);ye("yy",cl);ye("yyy",cl);ye("yyyy",cl);ye("yo",K7);at(["y","yy","yyy","yyyy"],Tn);at(["yo"],function(t,e,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Tn]=n._locale.eraYearOrdinalParse(t,s):e[Tn]=parseInt(t,10)});function x7(t,e){var n,r,s,i=this._eras||Gs("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function V7(t,e){var n=t.since<=t.until?1:-1;return e===void 0?fe(t.since).year():fe(t.since).year()+(e-t.offset)*n}function U7(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;ti&&(e=i),tQ.call(this,t,e,n,r,s))}function tQ(t,e,n,r,s){var i=MO(t,e,n,r,s),o=Uc(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}be("Q",0,"Qo","quarter");kn("quarter","Q");Sn("quarter",7);ye("Q",kO);at("Q",function(t,e){e[As]=(Fe(t)-1)*3});function nQ(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}be("D",["DD",2],"Do","date");kn("date","D");Sn("date",9);ye("D",wt);ye("DD",wt,tr);ye("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});at(["D","DD"],Wr);at("Do",function(t,e){e[Wr]=Fe(t.match(wt)[0])});var rN=ll("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear");kn("dayOfYear","DDD");Sn("dayOfYear",4);ye("DDD",vp);ye("DDDD",SO);at(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Fe(t)});function rQ(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}be("m",["mm",2],0,"minute");kn("minute","m");Sn("minute",14);ye("m",wt);ye("mm",wt,tr);at(["m","mm"],Tr);var sQ=ll("Minutes",!1);be("s",["ss",2],0,"second");kn("second","s");Sn("second",15);ye("s",wt);ye("ss",wt,tr);at(["s","ss"],Ps);var iQ=ll("Seconds",!1);be("S",0,0,function(){return~~(this.millisecond()/100)});be(0,["SS",2],0,function(){return~~(this.millisecond()/10)});be(0,["SSS",3],0,"millisecond");be(0,["SSSS",4],0,function(){return this.millisecond()*10});be(0,["SSSSS",5],0,function(){return this.millisecond()*100});be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});kn("millisecond","ms");Sn("millisecond",16);ye("S",vp,kO);ye("SS",vp,tr);ye("SSS",vp,SO);var di,sN;for(di="SSSS";di.length<=9;di+="S")ye(di,cl);function oQ(t,e){e[io]=Fe(("0."+t)*1e3)}for(di="S";di.length<=9;di+="S")at(di,oQ);sN=ll("Milliseconds",!1);be("z",0,0,"zoneAbbr");be("zz",0,0,"zoneName");function aQ(){return this._isUTC?"UTC":""}function lQ(){return this._isUTC?"Coordinated Universal Time":""}var ue=Pu.prototype;ue.add=e7;ue.calendar=a7;ue.clone=l7;ue.diff=m7;ue.endOf=k7;ue.format=v7;ue.from=E7;ue.fromNow=w7;ue.to=T7;ue.toNow=b7;ue.get=u8;ue.invalidAt=L7;ue.isAfter=c7;ue.isBefore=u7;ue.isBetween=h7;ue.isSame=f7;ue.isSameOrAfter=d7;ue.isSameOrBefore=p7;ue.isValid=N7;ue.lang=XO;ue.locale=QO;ue.localeData=JO;ue.max=Nz;ue.min=Oz;ue.parsingFlags=D7;ue.set=h8;ue.startOf=I7;ue.subtract=t7;ue.toArray=A7;ue.toObject=P7;ue.toDate=R7;ue.toISOString=_7;ue.inspect=y7;typeof Symbol<"u"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=O7;ue.toString=g7;ue.unix=C7;ue.valueOf=S7;ue.creationData=M7;ue.eraName=U7;ue.eraNarrow=j7;ue.eraAbbr=B7;ue.eraYear=$7;ue.year=LO;ue.isLeapYear=P8;ue.weekYear=z7;ue.isoWeekYear=Q7;ue.quarter=ue.quarters=nQ;ue.month=NO;ue.daysInMonth=C8;ue.week=ue.weeks=x8;ue.isoWeek=ue.isoWeeks=F8;ue.weeksInYear=Z7;ue.weeksInWeekYear=eQ;ue.isoWeeksInYear=X7;ue.isoWeeksInISOWeekYear=J7;ue.date=rN;ue.day=ue.days=Q8;ue.weekday=X8;ue.isoWeekday=J8;ue.dayOfYear=rQ;ue.hour=ue.hours=iz;ue.minute=ue.minutes=sQ;ue.second=ue.seconds=iQ;ue.millisecond=ue.milliseconds=sN;ue.utcOffset=Bz;ue.utc=Hz;ue.local=Wz;ue.parseZone=Gz;ue.hasAlignedHourOffset=Yz;ue.isDST=qz;ue.isLocal=zz;ue.isUtcOffset=Qz;ue.isUtc=YO;ue.isUTC=YO;ue.zoneAbbr=aQ;ue.zoneName=lQ;ue.dates=hr("dates accessor is deprecated. Use date instead.",rN);ue.months=hr("months accessor is deprecated. Use month instead",NO);ue.years=hr("years accessor is deprecated. Use year instead",LO);ue.zone=hr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$z);ue.isDSTShifted=hr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kz);function cQ(t){return Et(t*1e3)}function uQ(){return Et.apply(null,arguments).parseZone()}function iN(t){return t}var Qe=O0.prototype;Qe.calendar=Q5;Qe.longDateFormat=e8;Qe.invalidDate=n8;Qe.ordinal=i8;Qe.preparse=iN;Qe.postformat=iN;Qe.relativeTime=a8;Qe.pastFuture=l8;Qe.set=K5;Qe.eras=x7;Qe.erasParse=F7;Qe.erasConvertYear=V7;Qe.erasAbbrRegex=W7;Qe.erasNameRegex=H7;Qe.erasNarrowRegex=G7;Qe.months=b8;Qe.monthsShort=I8;Qe.monthsParse=S8;Qe.monthsRegex=A8;Qe.monthsShortRegex=R8;Qe.week=N8;Qe.firstDayOfYear=M8;Qe.firstDayOfWeek=L8;Qe.weekdays=G8;Qe.weekdaysMin=q8;Qe.weekdaysShort=Y8;Qe.weekdaysParse=z8;Qe.weekdaysRegex=Z8;Qe.weekdaysShortRegex=ez;Qe.weekdaysMinRegex=tz;Qe.isPM=rz;Qe.meridiem=oz;function qf(t,e,n,r){var s=Gs(),i=hs().set(r,e);return s[n](i,t)}function oN(t,e,n){if($s(t)&&(e=t,t=void 0),t=t||"",e!=null)return qf(t,e,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=qf(t,r,n,"month");return s}function q0(t,e,n,r){typeof t=="boolean"?($s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,$s(e)&&(n=e,e=void 0),e=e||"");var s=Gs(),i=t?s._week.dow:0,o,a=[];if(n!=null)return qf(e,(n+i)%7,r,"day");for(o=0;o<7;o++)a[o]=qf(e,(o+i)%7,r,"day");return a}function hQ(t,e){return oN(t,e,"months")}function fQ(t,e){return oN(t,e,"monthsShort")}function dQ(t,e,n){return q0(t,e,n,"weekdays")}function pQ(t,e,n){return q0(t,e,n,"weekdaysShort")}function mQ(t,e,n){return q0(t,e,n,"weekdaysMin")}bi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Fe(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}});fe.lang=hr("moment.lang is deprecated. Use moment.locale instead.",bi);fe.langData=hr("moment.langData is deprecated. Use moment.localeData instead.",Gs);var ys=Math.abs;function gQ(){var t=this._data;return this._milliseconds=ys(this._milliseconds),this._days=ys(this._days),this._months=ys(this._months),t.milliseconds=ys(t.milliseconds),t.seconds=ys(t.seconds),t.minutes=ys(t.minutes),t.hours=ys(t.hours),t.months=ys(t.months),t.years=ys(t.years),this}function aN(t,e,n,r){var s=Dr(e,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function _Q(t,e){return aN(this,t,e,1)}function yQ(t,e){return aN(this,t,e,-1)}function NI(t){return t<0?Math.floor(t):Math.ceil(t)}function vQ(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,s,i,o,a,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=NI(U_(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,s=sr(t/1e3),r.seconds=s%60,i=sr(s/60),r.minutes=i%60,o=sr(i/60),r.hours=o%24,e+=sr(o/24),l=sr(lN(e)),n+=l,e-=NI(U_(l)),a=sr(n/12),n%=12,r.days=e,r.months=n,r.years=a,this}function lN(t){return t*4800/146097}function U_(t){return t*146097/4800}function EQ(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=fr(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+lN(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(U_(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function wQ(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Fe(this._months/12)*31536e6:NaN}function Ys(t){return function(){return this.as(t)}}var TQ=Ys("ms"),bQ=Ys("s"),IQ=Ys("m"),kQ=Ys("h"),SQ=Ys("d"),CQ=Ys("w"),RQ=Ys("M"),AQ=Ys("Q"),PQ=Ys("y");function OQ(){return Dr(this)}function NQ(t){return t=fr(t),this.isValid()?this[t+"s"]():NaN}function Vo(t){return function(){return this.isValid()?this._data[t]:NaN}}var DQ=Vo("milliseconds"),LQ=Vo("seconds"),MQ=Vo("minutes"),xQ=Vo("hours"),FQ=Vo("days"),VQ=Vo("months"),UQ=Vo("years");function jQ(){return sr(this.days()/7)}var Ts=Math.round,sa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function BQ(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}function $Q(t,e,n,r){var s=Dr(t).abs(),i=Ts(s.as("s")),o=Ts(s.as("m")),a=Ts(s.as("h")),l=Ts(s.as("d")),c=Ts(s.as("M")),u=Ts(s.as("w")),h=Ts(s.as("y")),f=i<=n.ss&&["s",i]||i0,f[4]=r,BQ.apply(null,f)}function HQ(t){return t===void 0?Ts:typeof t=="function"?(Ts=t,!0):!1}function WQ(t,e){return sa[t]===void 0?!1:e===void 0?sa[t]:(sa[t]=e,t==="s"&&(sa.ss=e-1),!0)}function GQ(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=sa,s,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},sa,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),s=this.localeData(),i=$Q(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var km=Math.abs;function Yo(t){return(t>0)-(t<0)||+t}function Cp(){if(!this.isValid())return this.localeData().invalidDate();var t=km(this._milliseconds)/1e3,e=km(this._days),n=km(this._months),r,s,i,o,a=this.asSeconds(),l,c,u,h;return a?(r=sr(t/60),s=sr(r/60),t%=60,r%=60,i=sr(n/12),n%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=Yo(this._months)!==Yo(a)?"-":"",u=Yo(this._days)!==Yo(a)?"-":"",h=Yo(this._milliseconds)!==Yo(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(e?u+e+"D":"")+(s||r||t?"T":"")+(s?h+s+"H":"")+(r?h+r+"M":"")+(t?h+o+"S":"")):"P0D"}var qe=kp.prototype;qe.isValid=Fz;qe.abs=gQ;qe.add=_Q;qe.subtract=yQ;qe.as=EQ;qe.asMilliseconds=TQ;qe.asSeconds=bQ;qe.asMinutes=IQ;qe.asHours=kQ;qe.asDays=SQ;qe.asWeeks=CQ;qe.asMonths=RQ;qe.asQuarters=AQ;qe.asYears=PQ;qe.valueOf=wQ;qe._bubble=vQ;qe.clone=OQ;qe.get=NQ;qe.milliseconds=DQ;qe.seconds=LQ;qe.minutes=MQ;qe.hours=xQ;qe.days=FQ;qe.weeks=jQ;qe.months=VQ;qe.years=UQ;qe.humanize=GQ;qe.toISOString=Cp;qe.toString=Cp;qe.toJSON=Cp;qe.locale=QO;qe.localeData=JO;qe.toIsoString=hr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cp);qe.lang=XO;be("X",0,0,"unix");be("x",0,0,"valueOf");ye("x",wp);ye("X",d8);at("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)});at("x",function(t,e,n){n._d=new Date(Fe(t))});//! moment.js +fe.version="2.29.4";Y5(Et);fe.fn=ue;fe.min=Dz;fe.max=Lz;fe.now=Mz;fe.utc=hs;fe.unix=cQ;fe.months=hQ;fe.isDate=Au;fe.locale=bi;fe.invalid=gp;fe.duration=Dr;fe.isMoment=Pr;fe.weekdays=dQ;fe.parseZone=uQ;fe.localeData=Gs;fe.isDuration=Lh;fe.monthsShort=fQ;fe.weekdaysMin=mQ;fe.defineLocale=U0;fe.updateLocale=uz;fe.locales=hz;fe.weekdaysShort=pQ;fe.normalizeUnits=fr;fe.relativeTimeRounding=HQ;fe.relativeTimeThreshold=WQ;fe.calendarFormat=o7;fe.prototype=ue;fe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const YQ=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"}));//! moment.js locale configuration //! locale : French (Canada) [fr-ca] //! author : Jonathan Abourbih : https://github.com/jonbca -fe.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}}});var lN={exports:{}};const qQ=$5(YQ);/*! Moment Duration Format v2.2.2 +fe.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}}});var cN={exports:{}};const qQ=$5(YQ);/*! Moment Duration Format v2.2.2 * https://github.com/jsmreese/moment-duration-format * Date: 2018-02-16 * @@ -4357,6 +4357,6 @@ fe.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_ao * * Copyright 2018 John Madhavan-Reese * Released under the MIT license - */(function(t,e){(function(n,r){try{t.exports=r(qQ)}catch{t.exports=r}n&&(n.momentDurationFormatSetup=n.moment?r(n.moment):r)})(pO,function(n){var r=!1,s=!1,i=!1,o=!1,a="escape years months weeks days hours minutes seconds milliseconds general".split(" "),l=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function c(N,x){return x.length>N.length?!1:N.indexOf(x)!==-1}function u(N){for(var x="";N;)x+="0",N-=1;return x}function h(N){for(var x=N.split("").reverse(),V=0,z=!0;z&&V0&&(X.maximumSignificantDigits=b),i){if(!o){var te=L({},x);te.useGrouping=!1,te.decimalSeparator=".",N=parseFloat(v(N,te),10)}return f(V,X).format(N)}else{if(!s){var te=L({},x);te.useGrouping=!1,te.decimalSeparator=".",N=parseFloat(v(N,te),10)}return N.toLocaleString(V,X)}}var ne;b?ne=N.toPrecision(b+1):ne=N.toFixed(M+1);var Q,re,W,K=ne.split("e");W=K[1]||"",K=K[0].split("."),re=K[1]||"",Q=K[0]||"";var de=Q.length,he=re.length,Te=de+he,Ee=Q+re;(b&&Te===b+1||!b&&he===M+1)&&(Ee=h(Ee),Ee.length===Te+1&&(de=de+1),he&&(Ee=Ee.slice(0,-1)),Q=Ee.slice(0,de),re=Ee.slice(de)),b&&(re=re.replace(/0*$/,""));var De=parseInt(W,10);De>0?re.length<=De?(re=re+u(De-re.length),Q=Q+re,re=""):(Q=Q+re.slice(0,De),re=re.slice(De)):De<0&&(re=u(Math.abs(De)-Q.length)+Q+re,Q="0"),b||(re=re.slice(0,M),re.lengthx.label.length?-1:N.label.length0,Sn=Ht?x.precision:0,fs=Sn,Lr=x.minValue,ft=!1,Pt=x.maxValue,Dn=!1,Tt=x.useToLocaleString,Uo=x.groupingSeparator,ul=x.decimalSeparator,Wn=x.grouping;Tt=Tt&&(r||i);var Cn=x.trim;m(Cn)&&(Cn=Cn.join(" ")),Cn===null&&(Q||Pt||Ht)&&(Cn="all"),(Cn===null||Cn===!0||Cn==="left"||Cn==="right")&&(Cn="large"),Cn===!1&&(Cn="");var Ou=function(ee){return ee.test(Cn)},mN=/large/,gN=/small/,q0=/both/,_N=/mid/,Nu=/^all|[^sm]all/,yN=/final/,vN=Q>0||U([mN,q0,Nu],Ou),EN=U([gN,q0,Nu],Ou),wN=U([_N,Nu],Ou),TN=U([yN,Nu],Ou),K0=y(X.match(q),function(ee,Me){var xe=$(ee);return ee.slice(0,1)==="*"&&(ee=ee.slice(1),xe!=="escape"&&xe!=="general"&&re.push(xe)),{index:Me,length:ee.length,text:"",token:xe==="escape"?ee.replace(M.escape,"$1"):ee,type:xe==="escape"||xe==="general"?null:xe}}),xr={index:0,length:0,token:"",text:"",type:null},Mr=[];de&&K0.reverse(),p(K0,function(ee){if(ee.type){(xr.type||xr.text)&&Mr.push(xr),xr=ee;return}de?xr.text=ee.token+xr.text:xr.text+=ee.token}),(xr.type||xr.text)&&Mr.push(xr),de&&Mr.reverse();var Le=O(a,S(A(w(Mr,"type"))));if(!Le.length)return w(Mr,"text").join("");Le=y(Le,function(ee,Me){var xe=Me+1===Le.length,Ot=!Me,qs;ee==="years"||ee==="months"?qs=b.as(ee):qs=D.as(ee);var Ks=Math.floor(qs),xu=qs-Ks,jo=E(Mr,function(Ln){return ee===Ln.type});return Ot&&Pt&&qs>Pt&&(Dn=!0),xe&&Lr&&Math.abs(x.duration.as(ee))1&&(Ee=!0),D.subtract(Ks,ee),b.subtract(Ks,ee),{rawValue:qs,wholeValue:Ks,decimalValue:xe?xu:0,isSmallest:xe,isLargest:Ot,type:ee,tokenLength:jo.length}});var z0=Oe?Math.floor:Math.round,Du=function(ee,Me){var xe=Math.pow(10,Me);return z0(ee*xe)/xe},Lu=!1,hl=!1,Q0=function(ee,Me){var xe={useGrouping:De,groupingSeparator:Uo,decimalSeparator:ul,grouping:Wn,useToLocaleString:Tt};return Ht&&(Sn<=0?(ee.rawValue=0,ee.wholeValue=0,ee.decimalValue=0):(xe.maximumSignificantDigits=Sn,ee.significantDigits=Sn)),Dn&&!hl&&(ee.isLargest?(ee.wholeValue=Pt,ee.decimalValue=0):(ee.wholeValue=0,ee.decimalValue=0)),ft&&!hl&&(ee.isSmallest?(ee.wholeValue=Lr,ee.decimalValue=0):(ee.wholeValue=0,ee.decimalValue=0)),ee.isSmallest||ee.significantDigits&&ee.significantDigits-ee.wholeValue.toString().length<=0?Te<0?ee.value=Du(ee.wholeValue,Te):Te===0?ee.value=z0(ee.wholeValue+ee.decimalValue):Ht?(Oe?ee.value=Du(ee.rawValue,Sn-ee.wholeValue.toString().length):ee.value=ee.rawValue,ee.wholeValue&&(Sn-=ee.wholeValue.toString().length)):(xe.fractionDigits=Te,Oe?ee.value=ee.wholeValue+Du(ee.decimalValue,Te):ee.value=ee.wholeValue+ee.decimalValue):Ht&&ee.wholeValue?(ee.value=Math.round(Du(ee.wholeValue,ee.significantDigits-ee.wholeValue.toString().length)),Sn-=ee.wholeValue.toString().length):ee.value=ee.wholeValue,ee.tokenLength>1&&(Ee||Lu)&&(xe.minimumIntegerDigits=ee.tokenLength,hl&&xe.maximumSignificantDigits0||Cn===""||E(re,ee.type)||E(te,ee.type))&&(Lu=!0),ee.formattedValue=v(ee.value,xe,K),xe.useGrouping=!1,xe.decimalSeparator=".",ee.formattedValueEn=v(ee.value,xe,"en"),ee.tokenLength===2&&ee.type==="milliseconds"&&(ee.formattedValueMS=v(ee.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),ee};if(Le=y(Le,Q0),Le=A(Le),Le.length>1){var X0=function(ee){return E(Le,function(Me){return Me.type===ee})},bN=function(ee){var Me=X0(ee.type);Me&&p(ee.targets,function(xe){var Ot=X0(xe.type);Ot&&parseInt(Me.formattedValueEn,10)===xe.value&&(Me.rawValue=0,Me.wholeValue=0,Me.decimalValue=0,Ot.rawValue+=1,Ot.wholeValue+=1,Ot.decimalValue=0,Ot.formattedValueEn=Ot.wholeValue.toString(),hl=!0)})};p(l,bN)}return hl&&(Lu=!1,Sn=fs,Le=y(Le,Q0),Le=A(Le)),te&&!(Dn&&!x.trim)?(Le=y(Le,function(ee){return E(te,function(Me){return ee.type===Me})?ee:null}),Le=A(Le)):(vN&&(Le=C(Le,function(ee){return!ee.isSmallest&&!ee.wholeValue&&!E(re,ee.type)})),Q&&Le.length&&(Le=Le.slice(0,Q)),EN&&Le.length>1&&(Le=R(Le,function(ee){return!ee.wholeValue&&!E(re,ee.type)&&!ee.isLargest})),wN&&(Le=y(Le,function(ee,Me){return Me>0&&Me ",Dn=!1,ft=!1),H&&(Me.value>0||Cn===""||E(re,Me.type)||E(te,Me.type))&&(xe+="-",H=!1),ee.type==="milliseconds"&&Me.formattedValueMS?xe+=Me.formattedValueMS:xe+=Me.formattedValue,de||(xe+=ee.text),xe}),Mr.join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function se(){var N=this.duration,x=function(D){return N._data[D]},V=E(this.types,x),z=d(this.types,x);switch(V){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(V===z)return"d __";case"weeks":return V===z?"w __":(this.trim===null&&(this.trim="both"),"w __, d __, h __");case"months":if(V===z)return"M __";case"years":return V===z?"y __":(this.trim===null&&(this.trim="both"),"y __, M __, d __");default:return this.trim===null&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function le(N){if(!N)throw"Moment Duration Format init cannot find moment instance.";N.duration.format=Z,N.duration.fn.format=J,N.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:se,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},N.updateLocale("en",g)}var ie=function(N,x,V){return N.toLocaleString(x,V)};r=Y()&&j(ie),s=r&&F(ie);var oe=function(N,x,V){if(typeof window<"u"&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(x,V).format(N)};return i=j(oe),o=i&&F(oe),le(n),le})})(lN);var KQ=lN.exports;const zQ=mO(KQ),QQ=en(t=>{var i;const e=t.$i18n,{locale:n,locales:r}=e,s=(i=r.value.find(o=>o.code===n.value))==null?void 0:i.iso;return zQ(fe),fe.locale(s),t.hook("i18n:localeSwitched",({oldLocale:o,newLocale:a})=>{var c;const l=(c=r.value.find(u=>u.code===a))==null?void 0:c.iso;fe.locale(l)}),{provide:{moment:fe}}});function cN(t){return Xf()?(K_(t),!0):!1}function ic(t){return typeof t=="function"?t():tt(t)}const uN=typeof window<"u"&&typeof document<"u",XQ=Object.prototype.toString,JQ=t=>XQ.call(t)==="[object Object]",Yf=()=>{},j_=ZQ();function ZQ(){var t;return uN&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function eX(t,e){function n(...r){return new Promise((s,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(s).catch(i)})}return n}const hN=t=>t();function tX(t=hN){const e=Ze(!0);function n(){e.value=!1}function r(){e.value=!0}const s=(...i)=>{e.value&&t(...i)};return{isActive:Zf(e),pause:n,resume:r,eventFilter:s}}const OI={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function fJ(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",s=t.slice(r.length),i=Number.parseFloat(r)+e;return Number.isNaN(i)?t:i+s}function nX(...t){if(t.length!==1)return ed(...t);const e=t[0];return typeof e=="function"?Zf(gD(()=>({get:e,set:Yf}))):Ze(e)}function rX(t,e,n={}){const{eventFilter:r=hN,...s}=n;return Vt(t,eX(r,e),s)}function dJ(t,e,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:o,resume:a,isActive:l}=tX(r);return{stop:rX(t,e,{...s,eventFilter:i}),pause:o,resume:a,isActive:l}}function xl(t){var e;const n=ic(t);return(e=n==null?void 0:n.$el)!=null?e:n}const fN=uN?window:void 0;function Lh(...t){let e,n,r,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,s]=t,e=fN):[e,n,r,s]=t,!e)return Yf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,f,v)=>(u.addEventListener(h,f,v),()=>u.removeEventListener(h,f,v)),l=Vt(()=>[xl(e),ic(s)],([u,h])=>{if(o(),!u)return;const f=JQ(h)?{...h}:h;i.push(...n.flatMap(v=>r.map(k=>a(u,v,k,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return cN(c),c}let NI=!1;function DI(t,e,n={}){const{window:r=fN,ignore:s=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;j_&&!NI&&(NI=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Yf)),r.document.documentElement.addEventListener("click",Yf));let a=!0;const l=f=>s.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(k=>k===f.target||f.composedPath().includes(k));{const k=xl(v);return k&&(f.target===k||f.composedPath().includes(k))}}),u=[Lh(r,"click",f=>{const v=xl(t);if(!(!v||v===f.target||f.composedPath().includes(v))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:i}),Lh(r,"pointerdown",f=>{const v=xl(t);v&&(a=!f.composedPath().includes(v)&&!l(f))},{passive:!0}),o&&Lh(r,"blur",f=>{setTimeout(()=>{var v;const k=xl(t);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(k!=null&&k.contains(r.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const sX={[OI.mounted](t,e){const n=!e.modifiers.bubble;if(typeof e.value=="function")t.__onClickOutside_stop=DI(t,e.value,{capture:n});else{const[r,s]=e.value;t.__onClickOutside_stop=DI(t,r,Object.assign({capture:n},s))}},[OI.unmounted](t){t.__onClickOutside_stop()}};function Sm(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function dN(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth1?!0:(e.preventDefault&&e.preventDefault(),!1)}function oX(t,e=!1){const n=Ze(e);let r=null,s;Vt(nX(t),a=>{const l=Sm(ic(a));if(l){const c=l;s=c.style.overflow,n.value&&(c.style.overflow="hidden")}},{immediate:!0});const i=()=>{const a=Sm(ic(t));!a||n.value||(j_&&(r=Lh(a,"touchmove",l=>{iX(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},o=()=>{const a=Sm(ic(t));!a||!n.value||(j_&&(r==null||r()),a.style.overflow=s,n.value=!1)};return cN(o),lt({get(){return n.value},set(a){a?i():o()}})}function aX(){let t=!1;const e=Ze(!1);return(n,r)=>{if(e.value=r.value,t)return;t=!0;const s=oX(n,r.value);Vt(e,i=>s.value=i)}}aX();const lX=en(t=>{t.vueApp.directive("on-click-outside",sX)}),cX=[i$,o$,l$,qK,KK,y5,v5,E5,w5,T5,b5,S5,C5,j5,B5,G5,QQ,lX],uX=(t,e)=>e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=t.params[n.slice(1)])==null?void 0:r.toString())||""}),B_=(t,e)=>{const n=t.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===t.Component.type}),r=e??(n==null?void 0:n.meta.key)??(n&&uX(t.route,n));return typeof r=="function"?r(t.route):r},hX=(t,e)=>({default:()=>t?On(qD,t===!0?{}:t,e):e}),fX=ur({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,n=t.route,r={};for(const s in t.route)Object.defineProperty(r,s,{get:()=>e===t.renderKey?t.route[s]:n[s]});return lo(du,Gc(r)),()=>On(t.vnode,{ref:t.vnodeRef})}}),pN=(t,e,n)=>(e=e===!0?{}:e,{default:()=>{var r;return e?On(t,e,n):(r=n.default)==null?void 0:r.call(n)}}),dX=ur({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,expose:n}){const r=ct(),s=Ze(),i=Ut(du,null);n({pageRef:s});const o=Ut(WR,null);let a;const l=r.deferHydration();return()=>On(oA,{name:t.name,route:t.route,...e},{default:c=>{const u=gX(i,c.route,c.Component),h=i&&i.matched.length===c.route.matched.length;if(!c.Component)return a&&!h?a:void 0;if(a&&o&&!o.isCurrent(c.route))return a;if(u&&i&&(!o||o!=null&&o.isCurrent(i)))return h?a:null;const f=B_(c,t.pageKey),v=!!(t.transition??c.route.meta.pageTransition??xg),k=v&&mX([t.transition,c.route.meta.pageTransition,xg,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return a=pN(ud,v&&k,hX(t.keepalive??c.route.meta.keepalive??ZB,On(ly,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{Ni(()=>r.callHook("page:finish",c.Component).finally(l))}},{default:()=>On(fX,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:v,vnodeRef:s})}))).default(),a}})}});function pX(t){return Array.isArray(t)?t:t?[t]:[]}function mX(t){const e=t.map(n=>({...n,onAfterLeave:pX(n.onAfterLeave)}));return AB(...e)}function gX(t,e,n){if(!t)return!1;const r=e.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:e.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=t.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&B_({route:e,Component:n})!==B_({route:t,Component:n})}const _X=ur({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(t,e){const n=await so[t.name]().then(r=>r.default||r);return()=>On(n,t.layoutProps,e.slots)}}),yX=ur({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(t,e){const n=ct(),r=Ut(du),s=r===nl()?Jd():r,i=lt(()=>tt(t.name)??s.meta.layout??"default"),o=Ze();e.expose({layoutRef:o});const a=n.deferHydration();return()=>{const l=i.value&&i.value in so,c=s.meta.layoutTransition??JB;return pN(ud,l&&c,{default:()=>On(ly,{suspensible:!0,onResolve:()=>{Ni(a)}},{default:()=>On(vX,{layoutProps:Vk(e.attrs,{ref:o}),key:i.value,name:i.value,shouldProvide:!t.name,hasTransition:!!c},e.slots)})}).default()}}}),vX=ur({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const n=t.name;return t.shouldProvide&&lo(WR,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in so)?(s=(r=e.slots).default)==null?void 0:s.call(r):On(_X,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}}),EX=ur({__name:"app",setup(t){return SB({title:"NeoBigben",meta:[{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0"}],link:[{rel:"icon",href:"/neobigben/favicon.svg",type:"image/svg+xml"},{rel:"manifest",href:"/neobigben/manifest.json"}],bodyAttrs:{class:"antialiased overflow-x-clip text-gray-700 leading-normal bg-white dark:bg-gray-900 dark:text-gray-300"}}),(e,n)=>{const r=dX,s=yX;return $r(),bs(s,null,{default:oy(()=>[It(r)]),_:1})}}}),Y0=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},wX=Y0(EX,[["__file","app.vue"]]),TX={__name:"nuxt-error-page",props:{error:Object},setup(t){const n=t.error;(n.stack||"").split(` + */(function(t,e){(function(n,r){try{t.exports=r(qQ)}catch{t.exports=r}n&&(n.momentDurationFormatSetup=n.moment?r(n.moment):r)})(mO,function(n){var r=!1,s=!1,i=!1,o=!1,a="escape years months weeks days hours minutes seconds milliseconds general".split(" "),l=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function c(N,M){return M.length>N.length?!1:N.indexOf(M)!==-1}function u(N){for(var M="";N;)M+="0",N-=1;return M}function h(N){for(var M=N.split("").reverse(),V=0,z=!0;z&&V0&&(X.maximumSignificantDigits=b),i){if(!o){var te=L({},M);te.useGrouping=!1,te.decimalSeparator=".",N=parseFloat(v(N,te),10)}return f(V,X).format(N)}else{if(!s){var te=L({},M);te.useGrouping=!1,te.decimalSeparator=".",N=parseFloat(v(N,te),10)}return N.toLocaleString(V,X)}}var ne;b?ne=N.toPrecision(b+1):ne=N.toFixed(x+1);var Q,re,W,K=ne.split("e");W=K[1]||"",K=K[0].split("."),re=K[1]||"",Q=K[0]||"";var de=Q.length,he=re.length,Te=de+he,Ee=Q+re;(b&&Te===b+1||!b&&he===x+1)&&(Ee=h(Ee),Ee.length===Te+1&&(de=de+1),he&&(Ee=Ee.slice(0,-1)),Q=Ee.slice(0,de),re=Ee.slice(de)),b&&(re=re.replace(/0*$/,""));var De=parseInt(W,10);De>0?re.length<=De?(re=re+u(De-re.length),Q=Q+re,re=""):(Q=Q+re.slice(0,De),re=re.slice(De)):De<0&&(re=u(Math.abs(De)-Q.length)+Q+re,Q="0"),b||(re=re.slice(0,x),re.lengthM.label.length?-1:N.label.length0,Cn=Ht?M.precision:0,ds=Cn,Lr=M.minValue,ft=!1,Pt=M.maxValue,Mn=!1,Tt=M.useToLocaleString,Uo=M.groupingSeparator,ul=M.decimalSeparator,Gn=M.grouping;Tt=Tt&&(r||i);var Rn=M.trim;m(Rn)&&(Rn=Rn.join(" ")),Rn===null&&(Q||Pt||Ht)&&(Rn="all"),(Rn===null||Rn===!0||Rn==="left"||Rn==="right")&&(Rn="large"),Rn===!1&&(Rn="");var Du=function(ee){return ee.test(Rn)},gN=/large/,_N=/small/,z0=/both/,yN=/mid/,Lu=/^all|[^sm]all/,vN=/final/,EN=Q>0||U([gN,z0,Lu],Du),wN=U([_N,z0,Lu],Du),TN=U([yN,Lu],Du),bN=U([vN,Lu],Du),Q0=y(X.match(q),function(ee,xe){var Me=$(ee);return ee.slice(0,1)==="*"&&(ee=ee.slice(1),Me!=="escape"&&Me!=="general"&&re.push(Me)),{index:xe,length:ee.length,text:"",token:Me==="escape"?ee.replace(x.escape,"$1"):ee,type:Me==="escape"||Me==="general"?null:Me}}),Mr={index:0,length:0,token:"",text:"",type:null},xr=[];de&&Q0.reverse(),p(Q0,function(ee){if(ee.type){(Mr.type||Mr.text)&&xr.push(Mr),Mr=ee;return}de?Mr.text=ee.token+Mr.text:Mr.text+=ee.token}),(Mr.type||Mr.text)&&xr.push(Mr),de&&xr.reverse();var Le=O(a,S(A(w(xr,"type"))));if(!Le.length)return w(xr,"text").join("");Le=y(Le,function(ee,xe){var Me=xe+1===Le.length,Ot=!xe,qs;ee==="years"||ee==="months"?qs=b.as(ee):qs=D.as(ee);var Ks=Math.floor(qs),Fu=qs-Ks,jo=E(xr,function(xn){return ee===xn.type});return Ot&&Pt&&qs>Pt&&(Mn=!0),Me&&Lr&&Math.abs(M.duration.as(ee))1&&(Ee=!0),D.subtract(Ks,ee),b.subtract(Ks,ee),{rawValue:qs,wholeValue:Ks,decimalValue:Me?Fu:0,isSmallest:Me,isLargest:Ot,type:ee,tokenLength:jo.length}});var X0=Oe?Math.floor:Math.round,Mu=function(ee,xe){var Me=Math.pow(10,xe);return X0(ee*Me)/Me},xu=!1,hl=!1,J0=function(ee,xe){var Me={useGrouping:De,groupingSeparator:Uo,decimalSeparator:ul,grouping:Gn,useToLocaleString:Tt};return Ht&&(Cn<=0?(ee.rawValue=0,ee.wholeValue=0,ee.decimalValue=0):(Me.maximumSignificantDigits=Cn,ee.significantDigits=Cn)),Mn&&!hl&&(ee.isLargest?(ee.wholeValue=Pt,ee.decimalValue=0):(ee.wholeValue=0,ee.decimalValue=0)),ft&&!hl&&(ee.isSmallest?(ee.wholeValue=Lr,ee.decimalValue=0):(ee.wholeValue=0,ee.decimalValue=0)),ee.isSmallest||ee.significantDigits&&ee.significantDigits-ee.wholeValue.toString().length<=0?Te<0?ee.value=Mu(ee.wholeValue,Te):Te===0?ee.value=X0(ee.wholeValue+ee.decimalValue):Ht?(Oe?ee.value=Mu(ee.rawValue,Cn-ee.wholeValue.toString().length):ee.value=ee.rawValue,ee.wholeValue&&(Cn-=ee.wholeValue.toString().length)):(Me.fractionDigits=Te,Oe?ee.value=ee.wholeValue+Mu(ee.decimalValue,Te):ee.value=ee.wholeValue+ee.decimalValue):Ht&&ee.wholeValue?(ee.value=Math.round(Mu(ee.wholeValue,ee.significantDigits-ee.wholeValue.toString().length)),Cn-=ee.wholeValue.toString().length):ee.value=ee.wholeValue,ee.tokenLength>1&&(Ee||xu)&&(Me.minimumIntegerDigits=ee.tokenLength,hl&&Me.maximumSignificantDigits0||Rn===""||E(re,ee.type)||E(te,ee.type))&&(xu=!0),ee.formattedValue=v(ee.value,Me,K),Me.useGrouping=!1,Me.decimalSeparator=".",ee.formattedValueEn=v(ee.value,Me,"en"),ee.tokenLength===2&&ee.type==="milliseconds"&&(ee.formattedValueMS=v(ee.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),ee};if(Le=y(Le,J0),Le=A(Le),Le.length>1){var Z0=function(ee){return E(Le,function(xe){return xe.type===ee})},IN=function(ee){var xe=Z0(ee.type);xe&&p(ee.targets,function(Me){var Ot=Z0(Me.type);Ot&&parseInt(xe.formattedValueEn,10)===Me.value&&(xe.rawValue=0,xe.wholeValue=0,xe.decimalValue=0,Ot.rawValue+=1,Ot.wholeValue+=1,Ot.decimalValue=0,Ot.formattedValueEn=Ot.wholeValue.toString(),hl=!0)})};p(l,IN)}return hl&&(xu=!1,Cn=ds,Le=y(Le,J0),Le=A(Le)),te&&!(Mn&&!M.trim)?(Le=y(Le,function(ee){return E(te,function(xe){return ee.type===xe})?ee:null}),Le=A(Le)):(EN&&(Le=C(Le,function(ee){return!ee.isSmallest&&!ee.wholeValue&&!E(re,ee.type)})),Q&&Le.length&&(Le=Le.slice(0,Q)),wN&&Le.length>1&&(Le=R(Le,function(ee){return!ee.wholeValue&&!E(re,ee.type)&&!ee.isLargest})),TN&&(Le=y(Le,function(ee,xe){return xe>0&&xe ",Mn=!1,ft=!1),H&&(xe.value>0||Rn===""||E(re,xe.type)||E(te,xe.type))&&(Me+="-",H=!1),ee.type==="milliseconds"&&xe.formattedValueMS?Me+=xe.formattedValueMS:Me+=xe.formattedValue,de||(Me+=ee.text),Me}),xr.join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function se(){var N=this.duration,M=function(D){return N._data[D]},V=E(this.types,M),z=d(this.types,M);switch(V){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(V===z)return"d __";case"weeks":return V===z?"w __":(this.trim===null&&(this.trim="both"),"w __, d __, h __");case"months":if(V===z)return"M __";case"years":return V===z?"y __":(this.trim===null&&(this.trim="both"),"y __, M __, d __");default:return this.trim===null&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function le(N){if(!N)throw"Moment Duration Format init cannot find moment instance.";N.duration.format=Z,N.duration.fn.format=J,N.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:se,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},N.updateLocale("en",g)}var ie=function(N,M,V){return N.toLocaleString(M,V)};r=Y()&&j(ie),s=r&&F(ie);var oe=function(N,M,V){if(typeof window<"u"&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(M,V).format(N)};return i=j(oe),o=i&&F(oe),le(n),le})})(cN);var KQ=cN.exports;const zQ=gO(KQ),QQ=en(t=>{var i;const e=t.$i18n,{locale:n,locales:r}=e,s=(i=r.value.find(o=>o.code===n.value))==null?void 0:i.iso;return zQ(fe),fe.locale(s),t.hook("i18n:localeSwitched",({oldLocale:o,newLocale:a})=>{var c;const l=(c=r.value.find(u=>u.code===a))==null?void 0:c.iso;fe.locale(l)}),{provide:{moment:fe}}});function uN(t){return Zf()?(K_(t),!0):!1}function ic(t){return typeof t=="function"?t():tt(t)}const hN=typeof window<"u"&&typeof document<"u",XQ=Object.prototype.toString,JQ=t=>XQ.call(t)==="[object Object]",Kf=()=>{},j_=ZQ();function ZQ(){var t;return hN&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function eX(t,e){function n(...r){return new Promise((s,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(s).catch(i)})}return n}const fN=t=>t();function tX(t=fN){const e=Ze(!0);function n(){e.value=!1}function r(){e.value=!0}const s=(...i)=>{e.value&&t(...i)};return{isActive:td(e),pause:n,resume:r,eventFilter:s}}const DI={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function pJ(t,e){var n;if(typeof t=="number")return t+e;const r=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",s=t.slice(r.length),i=Number.parseFloat(r)+e;return Number.isNaN(i)?t:i+s}function nX(...t){if(t.length!==1)return nd(...t);const e=t[0];return typeof e=="function"?td(_D(()=>({get:e,set:Kf}))):Ze(e)}function rX(t,e,n={}){const{eventFilter:r=fN,...s}=n;return Vt(t,eX(r,e),s)}function mJ(t,e,n={}){const{eventFilter:r,...s}=n,{eventFilter:i,pause:o,resume:a,isActive:l}=tX(r);return{stop:rX(t,e,{...s,eventFilter:i}),pause:o,resume:a,isActive:l}}function Ml(t){var e;const n=ic(t);return(e=n==null?void 0:n.$el)!=null?e:n}const dN=hN?window:void 0;function xh(...t){let e,n,r,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,s]=t,e=dN):[e,n,r,s]=t,!e)return Kf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,f,v)=>(u.addEventListener(h,f,v),()=>u.removeEventListener(h,f,v)),l=Vt(()=>[Ml(e),ic(s)],([u,h])=>{if(o(),!u)return;const f=JQ(h)?{...h}:h;i.push(...n.flatMap(v=>r.map(k=>a(u,v,k,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return uN(c),c}let LI=!1;function MI(t,e,n={}){const{window:r=dN,ignore:s=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;j_&&!LI&&(LI=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Kf)),r.document.documentElement.addEventListener("click",Kf));let a=!0;const l=f=>s.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(k=>k===f.target||f.composedPath().includes(k));{const k=Ml(v);return k&&(f.target===k||f.composedPath().includes(k))}}),u=[xh(r,"click",f=>{const v=Ml(t);if(!(!v||v===f.target||f.composedPath().includes(v))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:i}),xh(r,"pointerdown",f=>{const v=Ml(t);v&&(a=!f.composedPath().includes(v)&&!l(f))},{passive:!0}),o&&xh(r,"blur",f=>{setTimeout(()=>{var v;const k=Ml(t);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(k!=null&&k.contains(r.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const sX={[DI.mounted](t,e){const n=!e.modifiers.bubble;if(typeof e.value=="function")t.__onClickOutside_stop=MI(t,e.value,{capture:n});else{const[r,s]=e.value;t.__onClickOutside_stop=MI(t,r,Object.assign({capture:n},s))}},[DI.unmounted](t){t.__onClickOutside_stop()}};function Sm(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function pN(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth1?!0:(e.preventDefault&&e.preventDefault(),!1)}function oX(t,e=!1){const n=Ze(e);let r=null,s;Vt(nX(t),a=>{const l=Sm(ic(a));if(l){const c=l;s=c.style.overflow,n.value&&(c.style.overflow="hidden")}},{immediate:!0});const i=()=>{const a=Sm(ic(t));!a||n.value||(j_&&(r=xh(a,"touchmove",l=>{iX(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},o=()=>{const a=Sm(ic(t));!a||!n.value||(j_&&(r==null||r()),a.style.overflow=s,n.value=!1)};return uN(o),lt({get(){return n.value},set(a){a?i():o()}})}function aX(){let t=!1;const e=Ze(!1);return(n,r)=>{if(e.value=r.value,t)return;t=!0;const s=oX(n,r.value);Vt(e,i=>s.value=i)}}aX();const lX=en(t=>{t.vueApp.directive("on-click-outside",sX)}),cX=[o$,a$,c$,qK,KK,y5,v5,E5,w5,T5,b5,S5,C5,j5,B5,G5,QQ,lX],uX=(t,e)=>e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=t.params[n.slice(1)])==null?void 0:r.toString())||""}),B_=(t,e)=>{const n=t.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===t.Component.type}),r=e??(n==null?void 0:n.meta.key)??(n&&uX(t.route,n));return typeof r=="function"?r(t.route):r},hX=(t,e)=>({default:()=>t?Nn(KD,t===!0?{}:t,e):e}),fX=ur({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,n=t.route,r={};for(const s in t.route)Object.defineProperty(r,s,{get:()=>e===t.renderKey?t.route[s]:n[s]});return lo(mu,Gc(r)),()=>Nn(t.vnode,{ref:t.vnodeRef})}}),mN=(t,e,n)=>(e=e===!0?{}:e,{default:()=>{var r;return e?Nn(t,e,n):(r=n.default)==null?void 0:r.call(n)}}),dX=ur({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,expose:n}){const r=ct(),s=Ze(),i=Ut(mu,null);n({pageRef:s});const o=Ut(WR,null);let a;const l=r.deferHydration();return()=>Nn(oA,{name:t.name,route:t.route,...e},{default:c=>{const u=gX(i,c.route,c.Component),h=i&&i.matched.length===c.route.matched.length;if(!c.Component)return a&&!h?a:void 0;if(a&&o&&!o.isCurrent(c.route))return a;if(u&&i&&(!o||o!=null&&o.isCurrent(i)))return h?a:null;const f=B_(c,t.pageKey),v=!!(t.transition??c.route.meta.pageTransition??Mg),k=v&&mX([t.transition,c.route.meta.pageTransition,Mg,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return a=mN(fd,v&&k,hX(t.keepalive??c.route.meta.keepalive??e$,Nn(ly,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{Ni(()=>r.callHook("page:finish",c.Component).finally(l))}},{default:()=>Nn(fX,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:v,vnodeRef:s})}))).default(),a}})}});function pX(t){return Array.isArray(t)?t:t?[t]:[]}function mX(t){const e=t.map(n=>({...n,onAfterLeave:pX(n.onAfterLeave)}));return PB(...e)}function gX(t,e,n){if(!t)return!1;const r=e.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:e.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=t.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&B_({route:e,Component:n})!==B_({route:t,Component:n})}const _X=ur({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(t,e){const n=await so[t.name]().then(r=>r.default||r);return()=>Nn(n,t.layoutProps,e.slots)}}),yX=ur({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(t,e){const n=ct(),r=Ut(mu),s=r===nl()?Jd():r,i=lt(()=>tt(t.name)??s.meta.layout??"default"),o=Ze();e.expose({layoutRef:o});const a=n.deferHydration();return()=>{const l=i.value&&i.value in so,c=s.meta.layoutTransition??ZB;return mN(fd,l&&c,{default:()=>Nn(ly,{suspensible:!0,onResolve:()=>{Ni(a)}},{default:()=>Nn(vX,{layoutProps:jk(e.attrs,{ref:o}),key:i.value,name:i.value,shouldProvide:!t.name,hasTransition:!!c},e.slots)})}).default()}}}),vX=ur({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const n=t.name;return t.shouldProvide&&lo(WR,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in so)?(s=(r=e.slots).default)==null?void 0:s.call(r):Nn(_X,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}}),EX=ur({__name:"app",setup(t){return CB({title:"NeoBigben",meta:[{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0"}],link:[{rel:"icon",href:"/neobigben/favicon.svg",type:"image/svg+xml"},{rel:"manifest",href:"/neobigben/manifest.json"}],bodyAttrs:{class:"antialiased overflow-x-clip text-gray-700 leading-normal bg-white dark:bg-gray-900 dark:text-gray-300"}}),(e,n)=>{const r=dX,s=yX;return $r(),Is(s,null,{default:oy(()=>[It(r)]),_:1})}}}),K0=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},wX=K0(EX,[["__file","app.vue"]]),TX={__name:"nuxt-error-page",props:{error:Object},setup(t){const n=t.error;(n.stack||"").split(` `).splice(1).map(h=>({text:h.replace("webpack:/","").replace(".vue",".js").trim(),internal:h.includes("node_modules")&&!h.includes(".cache")||h.includes("internal")||h.includes("new Promise")})).map(h=>`${h.text}`).join(` -`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,u=s?fE(()=>mr(()=>import("./error-404.9c7482e8.js"),["./error-404.9c7482e8.js","./error-404.390435f0.css"],import.meta.url).then(h=>h.default||h)):fE(()=>mr(()=>import("./error-500.8c13879b.js"),["./error-500.8c13879b.js","./error-500.c4764fa2.css"],import.meta.url).then(h=>h.default||h));return(h,f)=>($r(),bs(tt(u),xN(Mk({statusCode:tt(r),statusMessage:tt(i),description:tt(o),stack:tt(a)})),null,16))}},bX=Y0(TX,[["__file","nuxt-error-page.vue"]]),IX={__name:"nuxt-root",setup(t){const e=()=>null,n=ct(),r=n.deferHydration(),s=!1;lo(du,nl()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=Kd();Ek((a,l,c)=>{if(n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),VB(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Zo(a)),!1});const o=!1;return(a,l)=>($r(),bs(ly,{onResolve:tt(r)},{default:oy(()=>[tt(i)?($r(),bs(tt(bX),{key:0,error:tt(i)},null,8,["error"])):tt(o)?($r(),bs(tt(e),{key:1,context:tt(o)},null,8,["context"])):tt(s)?($r(),bs(tL(tt(s)),{key:2})):($r(),bs(tt(wX),{key:3}))]),_:1},8,["onResolve"]))}},LI=Y0(IX,[["__file","nuxt-root.vue"]]);globalThis.$fetch||(globalThis.$fetch=Xx.create({baseURL:Zx()}));let xI;{let t;xI=async function(){var i,o;if(t)return t;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?ax(LI):ox(LI),s=fM({vueApp:r});try{await pM(s,cX)}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(e$),await s.hooks.callHook("app:mounted",r),await Ni()}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}return r},t=xI().catch(e=>{console.error("Error while mounting app:",e)})}export{ud as $,SX as A,CX as B,uJ as C,tt as D,RX as E,UX as F,rt as G,VX as H,Vk as I,$X as J,Qf as K,rn as L,OX as M,NX as N,HX as O,bs as P,zf as Q,_D as R,Or as S,xX as T,Vt as U,Ni as V,DX as W,PX as X,BX as Y,jX as Z,Y0 as _,UB as a,LX as a0,iJ as a1,lJ as a2,HK as a3,nJ as a4,nl as a5,ol as a6,hJ as a7,GR as a8,sJ as a9,ai as aa,cJ as ab,rJ as ac,uN as ad,Yf as ae,JQ as af,ic as ag,cN as ah,hk as ai,fJ as aj,wa as ak,dJ as al,aJ as am,oJ as an,zX as ao,QX as ap,KX as aq,OG as ar,ZX as as,Dj as at,XX as au,JX as av,eJ as aw,FX as ax,iT as b,lt as c,ur as d,ad as e,tJ as f,On as g,Co as h,AX as i,bx as j,Yk as k,ct as l,SB as m,Lg as n,od as o,hd as p,$r as q,Ze as r,MX as s,xk as t,Nr as u,kX as v,Ym as w,It as x,oy as y,Fk as z}; +`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,u=s?pE(()=>mr(()=>import("./error-404.b238389b.js"),["./error-404.b238389b.js","./error-404.390435f0.css"],import.meta.url).then(h=>h.default||h)):pE(()=>mr(()=>import("./error-500.bd67db4b.js"),["./error-500.bd67db4b.js","./error-500.c4764fa2.css"],import.meta.url).then(h=>h.default||h));return(h,f)=>($r(),Is(tt(u),xN(Vk({statusCode:tt(r),statusMessage:tt(i),description:tt(o),stack:tt(a)})),null,16))}},bX=K0(TX,[["__file","nuxt-error-page.vue"]]),IX={__name:"nuxt-root",setup(t){const e=()=>null,n=ct(),r=n.deferHydration(),s=!1;lo(mu,nl()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const i=Kd();Tk((a,l,c)=>{if(n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),UB(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>Zo(a)),!1});const o=!1;return(a,l)=>($r(),Is(ly,{onResolve:tt(r)},{default:oy(()=>[tt(i)?($r(),Is(tt(bX),{key:0,error:tt(i)},null,8,["error"])):tt(o)?($r(),Is(tt(e),{key:1,context:tt(o)},null,8,["context"])):tt(s)?($r(),Is(nL(tt(s)),{key:2})):($r(),Is(tt(wX),{key:3}))]),_:1},8,["onResolve"]))}},xI=K0(IX,[["__file","nuxt-root.vue"]]);globalThis.$fetch||(globalThis.$fetch=JM.create({baseURL:ex()}));let FI;{let t;FI=async function(){var i,o;if(t)return t;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?lM(xI):aM(xI),s=dx({vueApp:r});try{await mx(s,cX)}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(t$),await s.hooks.callHook("app:mounted",r),await Ni()}catch(a){await s.callHook("app:error",a),s.payload.error=s.payload.error||a}return r},t=FI().catch(e=>{console.error("Error while mounting app:",e)})}export{fd as $,SX as A,CX as B,fJ as C,tt as D,RX as E,UX as F,rt as G,VX as H,jk as I,$X as J,Jf as K,rn as L,OX as M,NX as N,HX as O,Is as P,Xf as Q,yD as R,Or as S,MX as T,Vt as U,Ni as V,DX as W,PX as X,BX as Y,jX as Z,K0 as _,jB as a,LX as a0,oJ as a1,uJ as a2,HK as a3,rJ as a4,nl as a5,ol as a6,dJ as a7,GR as a8,iJ as a9,FX as aA,ai as aa,hJ as ab,sJ as ac,hN as ad,Kf as ae,JQ as af,ic as ag,uN as ah,dk as ai,pJ as aj,wa as ak,mJ as al,cJ as am,lJ as an,Lj as ao,KX as ap,aJ as aq,zX as ar,QX as as,NG as at,eJ as au,JX as av,ZX as aw,tJ as ax,LR as ay,XX as az,aT as b,lt as c,ur as d,cd as e,nJ as f,Nn as g,Co as h,AX as i,IM as j,Kk as k,ct as l,CB as m,Lg as n,ld as o,dd as p,$r as q,Ze as r,xX as s,Fk as t,Nr as u,kX as v,Ym as w,It as x,oy as y,Uk as z}; diff --git a/_nuxt/entry.93a0662a.css b/_nuxt/entry.44bb02a5.css similarity index 70% rename from _nuxt/entry.93a0662a.css rename to _nuxt/entry.44bb02a5.css index 9d6ac2f..f3f54bf 100644 --- a/_nuxt/entry.93a0662a.css +++ b/_nuxt/entry.44bb02a5.css @@ -1 +1 @@ -/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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:rgba(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: }::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:rgba(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: }.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}}.form-input,.form-multiselect,.form-select,.form-textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}.form-input:focus,.form-multiselect:focus,.form-select:focus,.form-textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.form-input::-moz-placeholder,.form-textarea::-moz-placeholder{color:#6b7280;opacity:1}.form-input::placeholder,.form-textarea::placeholder{color:#6b7280;opacity:1}.form-input::-webkit-datetime-edit-fields-wrapper{padding:0}.form-input::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}.form-input::-webkit-datetime-edit{display:inline-flex}.form-input::-webkit-datetime-edit,.form-input::-webkit-datetime-edit-day-field,.form-input::-webkit-datetime-edit-hour-field,.form-input::-webkit-datetime-edit-meridiem-field,.form-input::-webkit-datetime-edit-millisecond-field,.form-input::-webkit-datetime-edit-minute-field,.form-input::-webkit-datetime-edit-month-field,.form-input::-webkit-datetime-edit-second-field,.form-input::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}.form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-select:where([size]:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}.form-control{height:2.25rem}.form-control::-moz-placeholder{--tw-placeholder-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.form-control::placeholder{--tw-placeholder-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-placeholder-opacity))}:is(.dark .form-control)::-moz-placeholder{--tw-placeholder-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-placeholder-opacity))}:is(.dark .form-control)::placeholder{--tw-placeholder-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.form-control{box-sizing:border-box;line-height:normal}.form-input,.form-select{--tw-bg-opacity:1;--tw-text-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity));padding-left:.75rem;padding-right:.75rem}:is(.dark .form-input),:is(.dark .form-select){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity));color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.form-input,.form-select{--tw-ring-opacity:1!important;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))!important}.form-input:focus,.form-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}:is(.dark .form-input),:is(.dark .form-select){--tw-ring-opacity:1!important;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))!important}:is(.dark .form-input:focus),:is(.dark .form-select:focus){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.form-input,.form-select{font-size:.875rem;line-height:1.25rem}.form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");background-position:calc(100% - 14px);background-repeat:no-repeat;background-size:10px 16px;padding-left:.75rem;padding-right:2rem}.dark .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.form-input-bordered,.form-select-bordered{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity));border-width:1px}.form-input-bordered:focus,.form-select-bordered:focus{--tw-border-opacity:1;border-color:#7dd3fc;border-color:rgb(125 211 252/var(--tw-border-opacity))}:is(.dark .form-input-bordered),:is(.dark .form-select-bordered){--tw-border-opacity:1;border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .form-input-bordered:focus),:is(.dark .form-select-bordered:focus){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.dark .form-input,.dark .form-select,.dark input.sr-only{color-scheme:dark}input[type=date]::-webkit-datetime-edit{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}input[type=date].has-value::-webkit-datetime-edit{color:inherit}textarea[rows="2"]{min-height:66px}.bg-multiselect-caret{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.dark .bg-multiselect-caret{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.bg-multiselect-spinner{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E")}.dark .bg-multiselect-spinner{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 512 512'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E")}.bg-multiselect-remove{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E")}.dark .bg-multiselect-remove{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E")}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-px{bottom:-1px}.-left-px{left:-1px}.-right-px{right:-1px}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-auto{bottom:auto}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-full{top:100%}.top-px{top:1px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.row-start-1{grid-row-start:1}.-m-2{margin:-.5rem}.m-0{margin:0}.m-3{margin:.75rem}.m-3\.5{margin:.875rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-6{margin-top:-1.5rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mr-1{margin-right:.25rem}.mr-3{margin-right:.75rem}.mr-3\.5{margin-right:.875rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-16{height:4rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-5xl{max-width:64rem}.max-w-full{max-width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(-50%,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));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))}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),-50%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),-100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.translate-x-full{--tw-translate-x:100%;transform:translate(100%,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));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))}.translate-y-2{--tw-translate-y:.5rem;transform:translate(var(--tw-translate-x),.5rem) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.translate-y-full{--tw-translate-y:100%;transform:translate(var(--tw-translate-x),100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(180deg) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.scale-100{--tw-scale-x:1;--tw-scale-y:1;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(1) scaleY(1);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))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95;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(.95) scaleY(.95)}.scale-95,.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))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-row{grid-auto-flow:row}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.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}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-clip{overflow-x:clip}.overflow-y-scroll{overflow-y:scroll}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.\!border-red-500{--tw-border-opacity:1!important;border-color:#ef4444!important;border-color:rgb(239 68 68/var(--tw-border-opacity))!important}.border-gray-100{--tw-border-opacity:1;border-color:#f3f4f6;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-primary-300{--tw-border-opacity:1;border-color:#7dd3fc;border-color:rgb(125 211 252/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:#ef4444;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-b-transparent{border-bottom-color:transparent}.bg-gray-100{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:#22c55e;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity:1;background-color:#0ea5e9;background-color:rgb(14 165 233/var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity:1;background-color:#0284c7;background-color:rgb(2 132 199/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:#ef4444;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:#f43f5e;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-px{padding-bottom:1px;padding-top:1px}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-3\.5{padding-left:.875rem}.pr-12{padding-right:3rem}.pr-16{padding-right:4rem}.pr-2{padding-right:.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.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-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) tabular-nums var(--tw-numeric-fraction);font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-10{line-height:2.5rem}.leading-\[1\]{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-gray-300{--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:#374151;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-100{--tw-text-opacity:1;color:#dcfce7;color:rgb(220 252 231/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:#22c55e;color:rgb(34 197 94/var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity:1;color:#0ea5e9;color:rgb(14 165 233/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:#ef4444;color:rgb(239 68 68/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:#eab308;color:rgb(234 179 8/var(--tw-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-primary-200{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px);filter:blur(8px) 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)}.blur,.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)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[form-sizing\:content\]{form-sizing:content}svg{fill:currentColor}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-1:after{bottom:-.25rem;content:var(--tw-content)}.after\:left-0:after{content:var(--tw-content);left:0}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:border-b-4:after{border-bottom-width:4px;content:var(--tw-content)}.after\:border-b-primary-500:after{--tw-border-opacity:1;border-bottom-color:#0ea5e9;border-bottom-color:rgb(14 165 233/var(--tw-border-opacity));content:var(--tw-content)}.first\:border-l-0:first-child{border-left-width:0}.read-only\:pointer-events-none:-moz-read-only{pointer-events:none}.read-only\:pointer-events-none:read-only{pointer-events:none}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:#000;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity:1;background-color:#4ade80;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.hover\:bg-primary-400:hover{--tw-bg-opacity:1;background-color:#38bdf8;background-color:rgb(56 189 248/var(--tw-bg-opacity))}.hover\:bg-red-400:hover{--tw-bg-opacity:1;background-color:#f87171;background-color:rgb(248 113 113/var(--tw-bg-opacity))}.hover\:bg-rose-400:hover{--tw-bg-opacity:1;background-color:#fb7185;background-color:rgb(251 113 133/var(--tw-bg-opacity))}.hover\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\:text-gray-300:hover{--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}.hover\:text-primary-400:hover{--tw-text-opacity:1;color:#38bdf8;color:rgb(56 189 248/var(--tw-text-opacity))}.hover\:opacity-80:hover{opacity:.8}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-transparent:focus{--tw-ring-color:transparent}.active\:bg-green-600:active{--tw-bg-opacity:1;background-color:#16a34a;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.active\:bg-primary-600:active{--tw-bg-opacity:1;background-color:#0284c7;background-color:rgb(2 132 199/var(--tw-bg-opacity))}.active\:bg-red-600:active{--tw-bg-opacity:1;background-color:#dc2626;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.active\:bg-rose-600:active{--tw-bg-opacity:1;background-color:#e11d48;background-color:rgb(225 29 72/var(--tw-bg-opacity))}.active\:text-gray-500:active{--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity))}.active\:text-primary-400:active{--tw-text-opacity:1;color:#38bdf8;color:rgb(56 189 248/var(--tw-text-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}.group:first-child .group-first\:opacity-70,.group:last-child .group-last\:opacity-70{opacity:.7}.group:hover .group-hover\:opacity-60{opacity:.6}:is(.dark .dark\:\!border-gray-500){--tw-border-opacity:1!important;border-color:#6b7280!important;border-color:rgb(107 114 128/var(--tw-border-opacity))!important}:is(.dark .dark\:border-gray-500){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity:1;border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity:1;border-color:#1f2937;border-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:border-l-gray-800){--tw-border-opacity:1;border-left-color:#1f2937;border-left-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity:1;color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-900){--tw-text-opacity:1;color:#111827;color:rgb(17 24 39/var(--tw-text-opacity))}:is(.dark .dark\:text-primary-500){--tw-text-opacity:1;color:#0ea5e9;color:rgb(14 165 233/var(--tw-text-opacity))}:is(.dark .dark\:ring-gray-600){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}:is(.dark .after\:dark\:border-b-primary-500):after{--tw-border-opacity:1;border-bottom-color:#0ea5e9;border-bottom-color:rgb(14 165 233/var(--tw-border-opacity));content:var(--tw-content)}:is(.dark .dark\:checked\:bg-primary-500:checked){--tw-bg-opacity:1;background-color:#0ea5e9;background-color:rgb(14 165 233/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-gray-400:hover){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-gray-500:focus){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}:is(.dark .dark\:focus\:bg-gray-900:focus){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:active\:text-gray-600:active){--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}.group:first-child :is(.dark .group-first\:dark\:opacity-30){opacity:.3}.group:last-child :is(.dark .group-last\:dark\:opacity-30){opacity:.3}@media (min-width:640px){.sm\:w-\[28rem\]{width:28rem}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-2{gap:.5rem}}@media (min-width:768px){.md\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width:1024px){.lg\:inline-block{display:inline-block}.lg\:hidden{display:none}.lg\:h-7{height:1.75rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:hidden{display:none}.xl\:pr-\[28rem\]{padding-right:28rem}.xl\:shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:0 0 #0000,0 0 #0000,0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@font-face{font-display:swap;font-family:DM Sans;font-style:italic;font-weight:400;src:url(./DM_Sans-400-1.77134a49.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:italic;font-weight:400;src:url(./DM_Sans-400-2.a0c152ba.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:500;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:500;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:700;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:700;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:900;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:900;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd} +/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:0 0 0 2px #fff,0 0 0 4px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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:rgba(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: }::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:rgba(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: }.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}}.form-input,.form-multiselect,.form-select,.form-textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}.form-input:focus,.form-multiselect:focus,.form-select:focus,.form-textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:0 0 #fff,0 0 0 1px #2563eb,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.form-input::-moz-placeholder,.form-textarea::-moz-placeholder{color:#6b7280;opacity:1}.form-input::placeholder,.form-textarea::placeholder{color:#6b7280;opacity:1}.form-input::-webkit-datetime-edit-fields-wrapper{padding:0}.form-input::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}.form-input::-webkit-datetime-edit{display:inline-flex}.form-input::-webkit-datetime-edit,.form-input::-webkit-datetime-edit-day-field,.form-input::-webkit-datetime-edit-hour-field,.form-input::-webkit-datetime-edit-meridiem-field,.form-input::-webkit-datetime-edit-millisecond-field,.form-input::-webkit-datetime-edit-minute-field,.form-input::-webkit-datetime-edit-month-field,.form-input::-webkit-datetime-edit-second-field,.form-input::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}.form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-select:where([size]:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}.form-control{height:2.25rem}.form-control::-moz-placeholder{--tw-placeholder-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.form-control::placeholder{--tw-placeholder-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-placeholder-opacity))}:is(.dark .form-control)::-moz-placeholder{--tw-placeholder-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-placeholder-opacity))}:is(.dark .form-control)::placeholder{--tw-placeholder-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-placeholder-opacity))}.form-control{box-sizing:border-box;line-height:normal}.form-input,.form-select{--tw-bg-opacity:1;--tw-text-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.25rem;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity));padding-left:.75rem;padding-right:.75rem}:is(.dark .form-input),:is(.dark .form-select){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity));color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.form-input,.form-select{--tw-ring-opacity:1!important;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))!important}.form-input:focus,.form-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}:is(.dark .form-input),:is(.dark .form-select){--tw-ring-opacity:1!important;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))!important}:is(.dark .form-input:focus),:is(.dark .form-select:focus){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.form-input,.form-select{font-size:.875rem;line-height:1.25rem}.form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");background-position:calc(100% - 14px);background-repeat:no-repeat;background-size:10px 16px;padding-left:.75rem;padding-right:2rem}.dark .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.form-input-bordered,.form-select-bordered{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity));border-width:1px}.form-input-bordered:focus,.form-select-bordered:focus{--tw-border-opacity:1;border-color:#7dd3fc;border-color:rgb(125 211 252/var(--tw-border-opacity))}:is(.dark .form-input-bordered),:is(.dark .form-select-bordered){--tw-border-opacity:1;border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .form-input-bordered:focus),:is(.dark .form-select-bordered:focus){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}.dark .form-input,.dark .form-select,.dark input.sr-only{color-scheme:dark}input[type=date]::-webkit-datetime-edit{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}input[type=date].has-value::-webkit-datetime-edit{color:inherit}textarea[rows="2"]{min-height:66px}.bg-multiselect-caret{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.dark .bg-multiselect-caret{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E")}.bg-multiselect-spinner{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E")}.dark .bg-multiselect-spinner{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 512 512'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E")}.bg-multiselect-remove{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E")}.dark .bg-multiselect-remove{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 320 512'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E")}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-px{bottom:-1px}.-left-px{left:-1px}.-right-px{right:-1px}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-auto{bottom:auto}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-full{top:100%}.top-px{top:1px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.row-start-1{grid-row-start:1}.-m-2{margin:-.5rem}.m-0{margin:0}.m-3{margin:.75rem}.m-3\.5{margin:.875rem}.mx-0{margin-left:0;margin-right:0}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-6{margin-top:-1.5rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mr-1{margin-right:.25rem}.mr-3{margin-right:.75rem}.mr-3\.5{margin-right:.875rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-16{height:4rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:15rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-5xl{max-width:64rem}.max-w-full{max-width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-top-right{transform-origin:top right}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(-50%,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));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))}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),-50%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),-100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.translate-x-full{--tw-translate-x:100%;transform:translate(100%,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));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))}.translate-y-2{--tw-translate-y:.5rem;transform:translate(var(--tw-translate-x),.5rem) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.translate-y-full{--tw-translate-y:100%;transform:translate(var(--tw-translate-x),100%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(180deg) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}.scale-100{--tw-scale-x:1;--tw-scale-y:1;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(1) scaleY(1);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))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95;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(.95) scaleY(.95)}.scale-95,.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))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-row{grid-auto-flow:row}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.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}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-clip{overflow-x:clip}.overflow-y-scroll{overflow-y:scroll}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.\!border-red-500{--tw-border-opacity:1!important;border-color:#ef4444!important;border-color:rgb(239 68 68/var(--tw-border-opacity))!important}.border-gray-100{--tw-border-opacity:1;border-color:#f3f4f6;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:#9ca3af;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-primary-300{--tw-border-opacity:1;border-color:#7dd3fc;border-color:rgb(125 211 252/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:#ef4444;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-b-transparent{border-bottom-color:transparent}.bg-gray-100{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:#e5e7eb;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:#22c55e;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity:1;background-color:#0ea5e9;background-color:rgb(14 165 233/var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity:1;background-color:#0284c7;background-color:rgb(2 132 199/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:#ef4444;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-rose-500{--tw-bg-opacity:1;background-color:#f43f5e;background-color:rgb(244 63 94/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-px{padding-bottom:1px;padding-top:1px}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-3\.5{padding-left:.875rem}.pr-12{padding-right:3rem}.pr-16{padding-right:4rem}.pr-2{padding-right:.5rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.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-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) tabular-nums var(--tw-numeric-fraction);font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-10{line-height:2.5rem}.leading-\[1\]{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-gray-300{--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:#374151;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-100{--tw-text-opacity:1;color:#dcfce7;color:rgb(220 252 231/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:#22c55e;color:rgb(34 197 94/var(--tw-text-opacity))}.text-lime-500{--tw-text-opacity:1;color:#84cc16;color:rgb(132 204 22/var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity:1;color:#0ea5e9;color:rgb(14 165 233/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:#ef4444;color:rgb(239 68 68/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:#eab308;color:rgb(234 179 8/var(--tw-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 3px #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-primary-200{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px);filter:blur(8px) 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)}.blur,.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)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[form-sizing\:content\]{form-sizing:content}svg{fill:currentColor}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-1:after{bottom:-.25rem;content:var(--tw-content)}.after\:left-0:after{content:var(--tw-content);left:0}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:border-b-4:after{border-bottom-width:4px;content:var(--tw-content)}.after\:border-b-primary-500:after{--tw-border-opacity:1;border-bottom-color:#0ea5e9;border-bottom-color:rgb(14 165 233/var(--tw-border-opacity));content:var(--tw-content)}.first\:border-l-0:first-child{border-left-width:0}.read-only\:pointer-events-none:-moz-read-only{pointer-events:none}.read-only\:pointer-events-none:read-only{pointer-events:none}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:#000;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-green-400:hover{--tw-bg-opacity:1;background-color:#4ade80;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.hover\:bg-primary-400:hover{--tw-bg-opacity:1;background-color:#38bdf8;background-color:rgb(56 189 248/var(--tw-bg-opacity))}.hover\:bg-red-400:hover{--tw-bg-opacity:1;background-color:#f87171;background-color:rgb(248 113 113/var(--tw-bg-opacity))}.hover\:bg-rose-400:hover{--tw-bg-opacity:1;background-color:#fb7185;background-color:rgb(251 113 133/var(--tw-bg-opacity))}.hover\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\:text-gray-300:hover{--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}.hover\:text-primary-400:hover{--tw-text-opacity:1;color:#38bdf8;color:rgb(56 189 248/var(--tw-text-opacity))}.hover\:opacity-80:hover{opacity:.8}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color),var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color),0 0 #0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-transparent:focus{--tw-ring-color:transparent}.active\:bg-green-600:active{--tw-bg-opacity:1;background-color:#16a34a;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.active\:bg-primary-600:active{--tw-bg-opacity:1;background-color:#0284c7;background-color:rgb(2 132 199/var(--tw-bg-opacity))}.active\:bg-red-600:active{--tw-bg-opacity:1;background-color:#dc2626;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.active\:bg-rose-600:active{--tw-bg-opacity:1;background-color:#e11d48;background-color:rgb(225 29 72/var(--tw-bg-opacity))}.active\:text-gray-500:active{--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity))}.active\:text-primary-400:active{--tw-text-opacity:1;color:#38bdf8;color:rgb(56 189 248/var(--tw-text-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}.group:first-child .group-first\:opacity-70,.group:last-child .group-last\:opacity-70{opacity:.7}.group:hover .group-hover\:opacity-60{opacity:.6}:is(.dark .dark\:\!border-gray-500){--tw-border-opacity:1!important;border-color:#6b7280!important;border-color:rgb(107 114 128/var(--tw-border-opacity))!important}:is(.dark .dark\:border-gray-500){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity:1;border-color:#374151;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity:1;border-color:#1f2937;border-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:border-l-gray-800){--tw-border-opacity:1;border-left-color:#1f2937;border-left-color:rgb(31 41 55/var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:#d1d5db;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity:1;color:#1f2937;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-900){--tw-text-opacity:1;color:#111827;color:rgb(17 24 39/var(--tw-text-opacity))}:is(.dark .dark\:text-primary-500){--tw-text-opacity:1;color:#0ea5e9;color:rgb(14 165 233/var(--tw-text-opacity))}:is(.dark .dark\:ring-gray-600){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}:is(.dark .after\:dark\:border-b-primary-500):after{--tw-border-opacity:1;border-bottom-color:#0ea5e9;border-bottom-color:rgb(14 165 233/var(--tw-border-opacity));content:var(--tw-content)}:is(.dark .dark\:checked\:bg-primary-500:checked){--tw-bg-opacity:1;background-color:#0ea5e9;background-color:rgb(14 165 233/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity:1;background-color:#1f2937;background-color:rgb(31 41 55/var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-gray-400:hover){--tw-text-opacity:1;color:#9ca3af;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-gray-500:focus){--tw-border-opacity:1;border-color:#6b7280;border-color:rgb(107 114 128/var(--tw-border-opacity))}:is(.dark .dark\:focus\:bg-gray-900:focus){--tw-bg-opacity:1;background-color:#111827;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:active\:text-gray-600:active){--tw-text-opacity:1;color:#4b5563;color:rgb(75 85 99/var(--tw-text-opacity))}.group:first-child :is(.dark .group-first\:dark\:opacity-30){opacity:.3}.group:last-child :is(.dark .group-last\:dark\:opacity-30){opacity:.3}@media (min-width:640px){.sm\:w-\[28rem\]{width:28rem}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-2{gap:.5rem}}@media (min-width:768px){.md\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width:1024px){.lg\:inline-block{display:inline-block}.lg\:hidden{display:none}.lg\:h-7{height:1.75rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:hidden{display:none}.xl\:pr-\[28rem\]{padding-right:28rem}.xl\:shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:0 0 #0000,0 0 #0000,0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@font-face{font-display:swap;font-family:DM Sans;font-style:italic;font-weight:400;src:url(./DM_Sans-400-1.77134a49.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:italic;font-weight:400;src:url(./DM_Sans-400-2.a0c152ba.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:500;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:500;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:700;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:700;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:900;src:url(./DM_Sans-400-3.4944a9f1.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:900;src:url(./DM_Sans-400-4.f2113de8.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd} diff --git a/_nuxt/error-404.9c7482e8.js b/_nuxt/error-404.b238389b.js similarity index 98% rename from _nuxt/error-404.9c7482e8.js rename to _nuxt/error-404.b238389b.js index 7d1a3be..911f4f9 100644 --- a/_nuxt/error-404.9c7482e8.js +++ b/_nuxt/error-404.b238389b.js @@ -1 +1 @@ -import{u as w,d as N,c as y,h as P,r as _,o as q,a as A,b as R,e as B,f as z,g as S,i as E,p as I,j as T,w as j,k as L,l as C,n as U,_ as V,m as H,q as M,s as O,t as p,v as x,x as $,y as F,z as D,A as G,B as Q}from"./entry.ffb9f67d.js";async function k(t,a=w()){const{path:c,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(c)))return;const n=a._preloadPromises=a._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,a));a._routePreloaded.add(c);const s=e.map(r=>{var l;return(l=r.components)==null?void 0:l.default}).filter(r=>typeof r=="function");for(const r of s){const l=Promise.resolve(r()).catch(()=>{}).finally(()=>n.splice(n.indexOf(l)));n.push(l)}await Promise.all(n)}const X=(...t)=>t.find(a=>a!==void 0),J="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function K(t){const a=t.componentName||"NuxtLink",c=(e,n)=>{if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;const s=t.trailingSlash==="append"?j:L;if(typeof e=="string")return s(e,!0);const r="path"in e?e.path:n(e).path;return{...e,name:void 0,path:s(r,!0)}};return N({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const s=w(),r=y(()=>{const o=e.to||e.href||"";return c(o,s.resolve)}),l=y(()=>e.external||e.target&&e.target!=="_self"?!0:typeof r.value=="object"?!1:r.value===""||P(r.value,{acceptRelative:!0})),h=_(!1),d=_(null),b=o=>{var f;d.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!Z()){const f=C();let v,i=null;q(()=>{const g=Y();A(()=>{v=R(()=>{var m;(m=d==null?void 0:d.value)!=null&&m.tagName&&(i=g.observe(d.value,async()=>{i==null||i(),i=null;const u=typeof r.value=="string"?r.value:s.resolve(r.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",u).catch(()=>{}),!l.value&&k(r.value,s).catch(()=>{})]),h.value=!0}))})})}),B(()=>{v&&z(v),i==null||i(),i=null})}return()=>{var g,m;if(!l.value){const u={ref:b,to:r.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(h.value&&(u.class=e.prefetchedClass||t.prefetchedClass),u.rel=e.rel),S(E("RouterLink"),u,n.default)}const o=typeof r.value=="object"?((g=s.resolve(r.value))==null?void 0:g.href)??null:r.value||null,f=e.target||null,v=e.noRel?null:X(e.rel,t.externalRelAttribute,o?J:"")||null,i=()=>U(o,{replace:e.replace});return e.custom?n.default?n.default({href:o,navigate:i,get route(){if(!o)return;const u=I(o);return{path:u.pathname,fullPath:u.pathname,get query(){return T(u.search)},hash:u.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:v,target:f,isExternal:l.value,isActive:!1,isExactActive:!1}):null:S("a",{ref:d,href:o,rel:v,target:f},(m=n.default)==null?void 0:m.call(n))}}})}const W=K({componentName:"NuxtLink"});function Y(){const t=C();if(t._observer)return t._observer;let a=null;const c=new Map,e=(s,r)=>(a||(a=new IntersectionObserver(l=>{for(const h of l){const d=c.get(h.target);(h.isIntersecting||h.intersectionRatio>0)&&d&&d()}})),c.set(s,r),a.observe(s),()=>{c.delete(s),a.unobserve(s),c.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function Z(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const ee=t=>(G("data-v-8e38b8ef"),t=t(),Q(),t),te={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},ae=ee(()=>p("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),re={class:"max-w-520px text-center z-20"},ne=["textContent"],oe=["textContent"],se={class:"w-full flex items-center justify-center"},le={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return H({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(c,e)=>{const n=W;return M(),O("div",te,[ae,p("div",re,[p("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:x(t.statusCode)},null,8,ne),p("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:x(t.description)},null,8,oe),p("div",se,[$(n,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:F(()=>[D(x(t.backHome),1)]),_:1})])])])}}},ce=V(le,[["__scopeId","data-v-8e38b8ef"],["__file","error-404.vue"]]);export{ce as default}; +import{u as w,d as N,c as y,h as P,r as _,o as q,a as A,b as R,e as B,f as z,g as S,i as E,p as I,j as T,w as j,k as L,l as C,n as U,_ as V,m as H,q as M,s as O,t as p,v as x,x as $,y as F,z as D,A as G,B as Q}from"./entry.2efdeb07.js";async function k(t,a=w()){const{path:c,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(c)))return;const n=a._preloadPromises=a._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,a));a._routePreloaded.add(c);const s=e.map(r=>{var l;return(l=r.components)==null?void 0:l.default}).filter(r=>typeof r=="function");for(const r of s){const l=Promise.resolve(r()).catch(()=>{}).finally(()=>n.splice(n.indexOf(l)));n.push(l)}await Promise.all(n)}const X=(...t)=>t.find(a=>a!==void 0),J="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function K(t){const a=t.componentName||"NuxtLink",c=(e,n)=>{if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;const s=t.trailingSlash==="append"?j:L;if(typeof e=="string")return s(e,!0);const r="path"in e?e.path:n(e).path;return{...e,name:void 0,path:s(r,!0)}};return N({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const s=w(),r=y(()=>{const o=e.to||e.href||"";return c(o,s.resolve)}),l=y(()=>e.external||e.target&&e.target!=="_self"?!0:typeof r.value=="object"?!1:r.value===""||P(r.value,{acceptRelative:!0})),h=_(!1),d=_(null),b=o=>{var f;d.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!Z()){const f=C();let v,i=null;q(()=>{const g=Y();A(()=>{v=R(()=>{var m;(m=d==null?void 0:d.value)!=null&&m.tagName&&(i=g.observe(d.value,async()=>{i==null||i(),i=null;const u=typeof r.value=="string"?r.value:s.resolve(r.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",u).catch(()=>{}),!l.value&&k(r.value,s).catch(()=>{})]),h.value=!0}))})})}),B(()=>{v&&z(v),i==null||i(),i=null})}return()=>{var g,m;if(!l.value){const u={ref:b,to:r.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(h.value&&(u.class=e.prefetchedClass||t.prefetchedClass),u.rel=e.rel),S(E("RouterLink"),u,n.default)}const o=typeof r.value=="object"?((g=s.resolve(r.value))==null?void 0:g.href)??null:r.value||null,f=e.target||null,v=e.noRel?null:X(e.rel,t.externalRelAttribute,o?J:"")||null,i=()=>U(o,{replace:e.replace});return e.custom?n.default?n.default({href:o,navigate:i,get route(){if(!o)return;const u=I(o);return{path:u.pathname,fullPath:u.pathname,get query(){return T(u.search)},hash:u.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:v,target:f,isExternal:l.value,isActive:!1,isExactActive:!1}):null:S("a",{ref:d,href:o,rel:v,target:f},(m=n.default)==null?void 0:m.call(n))}}})}const W=K({componentName:"NuxtLink"});function Y(){const t=C();if(t._observer)return t._observer;let a=null;const c=new Map,e=(s,r)=>(a||(a=new IntersectionObserver(l=>{for(const h of l){const d=c.get(h.target);(h.isIntersecting||h.intersectionRatio>0)&&d&&d()}})),c.set(s,r),a.observe(s),()=>{c.delete(s),a.unobserve(s),c.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function Z(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const ee=t=>(G("data-v-8e38b8ef"),t=t(),Q(),t),te={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},ae=ee(()=>p("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),re={class:"max-w-520px text-center z-20"},ne=["textContent"],oe=["textContent"],se={class:"w-full flex items-center justify-center"},le={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return H({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(c,e)=>{const n=W;return M(),O("div",te,[ae,p("div",re,[p("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:x(t.statusCode)},null,8,ne),p("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:x(t.description)},null,8,oe),p("div",se,[$(n,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:F(()=>[D(x(t.backHome),1)]),_:1})])])])}}},ce=V(le,[["__scopeId","data-v-8e38b8ef"],["__file","error-404.vue"]]);export{ce as default}; diff --git a/_nuxt/error-500.8c13879b.js b/_nuxt/error-500.bd67db4b.js similarity index 96% rename from _nuxt/error-500.8c13879b.js rename to _nuxt/error-500.bd67db4b.js index a52865e..f9523e2 100644 --- a/_nuxt/error-500.8c13879b.js +++ b/_nuxt/error-500.bd67db4b.js @@ -1 +1 @@ -import{_ as i,m as r,q as a,s as n,t as e,v as s,A as l,B as d}from"./entry.ffb9f67d.js";const c=t=>(l("data-v-5741bfc2"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return r({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(a(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-5741bfc2"],["__file","error-500.vue"]]);export{w as default}; +import{_ as i,m as r,q as a,s as n,t as e,v as s,A as l,B as d}from"./entry.2efdeb07.js";const c=t=>(l("data-v-5741bfc2"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return r({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(a(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-5741bfc2"],["__file","error-500.vue"]]);export{w as default}; diff --git a/_nuxt/hamburger.6acfa935.js b/_nuxt/hamburger.040db4da.js similarity index 97% rename from _nuxt/hamburger.6acfa935.js rename to _nuxt/hamburger.040db4da.js index 1360049..681dd37 100644 --- a/_nuxt/hamburger.6acfa935.js +++ b/_nuxt/hamburger.040db4da.js @@ -1 +1 @@ -import{d as _,r as p,c,o as f,q as l,s as r,D as h,l as C,_ as v,t}from"./entry.ffb9f67d.js";const w=["value","placeholder"],g=_({__name:"TimeInput",props:{type:{default:"datetime"},mask:{},modelValue:{},placeholder:{default:"HH:MM"}},emits:["update:modelValue"],setup(o,{emit:a}){const s=o,n=p(null),{$inputmask:d}=C(),i=c({get(){return s.modelValue},set(e){a("update:modelValue",e)}});return f(()=>{s.mask?new d({mask:s.mask,insertModeVisual:!1,placeholder:"HH:MM"}).mask(n.value):new d("datetime",{inputFormat:"HH:MM",insertModeVisual:!1}).mask(n.value)}),(e,u)=>(l(),r("input",{ref_key:"timeInput",ref:n,class:"form-control form-input-bordered form-input w-full",type:"text",value:h(i),placeholder:e.placeholder,onBlur:u[0]||(u[0]=m=>e.$emit("update:modelValue",m.target.value))},null,40,w))}}),Z=v(g,[["__file","TimeInput.vue"]]),L={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},k=t("g",{id:"edit_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[t("g",{id:"edit_svg__edit",transform:"translate(0.000000, 0.475349)","fill-rule":"nonzero"},[t("path",{d:"M8,2.02465077 C8.55228475,2.02465077 9,2.47236602 9,3.02465077 C9,3.57693552 8.55228475,4.02465077 8,4.02465077 L3,4.02465077 C2.44771525,4.02465077 2,4.47236602 2,5.02465077 L2,16.0246508 C2,16.5769355 2.44771525,17.0246508 3,17.0246508 L14,17.0246508 C14.5522847,17.0246508 15,16.5769355 15,16.0246508 L15,11.0246508 C15,10.472366 15.4477153,10.0246508 16,10.0246508 C16.5522847,10.0246508 17,10.472366 17,11.0246508 L17,16.0246508 C17,17.681505 15.6568542,19.0246508 14,19.0246508 L3,19.0246508 C1.34314575,19.0246508 0,17.681505 0,16.0246508 L0,5.02465077 C0,3.36779652 1.34314575,2.02465077 3,2.02465077 L8,2.02465077 Z M13.8667118,0.91593898 C14.6199352,0.136069227 15.7353455,-0.176698812 16.7842338,0.0978475103 C17.8331221,0.372393832 18.6522569,1.19152871 18.9268033,2.24041701 C19.2013496,3.2893053 18.8885815,4.40471557 18.1211068,5.14575756 L9.53510678,13.7317576 C9.3475704,13.9192939 9.09321649,14.0246508 8.828,14.0246508 L6,14.0246508 C5.44771525,14.0246508 5,13.5769355 5,13.0246508 L5,10.1966508 C5,9.93143428 5.10535684,9.67708037 5.29289322,9.48954399 Z M16.2777955,2.03266541 C15.9281661,1.94114997 15.5563627,2.04540598 15.2931068,2.31775756 L7,10.6100248 L7,12.0240248 L8.413,12.0240248 L16.7192882,3.71936257 C16.9503607,3.49618526 17.0584106,3.17761718 17.0152947,2.86402362 L16.9919854,2.74685524 C16.9004699,2.39722581 16.627425,2.12418085 16.2777955,2.03266541 Z",id:"edit_svg__Combined-Shape"})])],-1),x=[k];function M(o,a){return l(),r("svg",L,x)}const b={render:M},H={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 12"},V=t("path",{d:"M0 1a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Z","fill-rule":"nonzero"},null,-1),I=[V];function $(o,a){return l(),r("svg",H,I)}const y={render:$};export{b as I,Z as _,y as a}; +import{d as _,r as p,c,o as f,q as l,s as r,D as h,l as C,_ as v,t}from"./entry.2efdeb07.js";const w=["value","placeholder"],g=_({__name:"TimeInput",props:{type:{default:"datetime"},mask:{},modelValue:{},placeholder:{default:"HH:MM"}},emits:["update:modelValue"],setup(o,{emit:a}){const s=o,n=p(null),{$inputmask:d}=C(),i=c({get(){return s.modelValue},set(e){a("update:modelValue",e)}});return f(()=>{s.mask?new d({mask:s.mask,insertModeVisual:!1,placeholder:"HH:MM"}).mask(n.value):new d("datetime",{inputFormat:"HH:MM",insertModeVisual:!1}).mask(n.value)}),(e,u)=>(l(),r("input",{ref_key:"timeInput",ref:n,class:"form-control form-input-bordered form-input w-full",type:"text",value:h(i),placeholder:e.placeholder,onBlur:u[0]||(u[0]=m=>e.$emit("update:modelValue",m.target.value))},null,40,w))}}),Z=v(g,[["__file","TimeInput.vue"]]),L={viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},k=t("g",{id:"edit_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[t("g",{id:"edit_svg__edit",transform:"translate(0.000000, 0.475349)","fill-rule":"nonzero"},[t("path",{d:"M8,2.02465077 C8.55228475,2.02465077 9,2.47236602 9,3.02465077 C9,3.57693552 8.55228475,4.02465077 8,4.02465077 L3,4.02465077 C2.44771525,4.02465077 2,4.47236602 2,5.02465077 L2,16.0246508 C2,16.5769355 2.44771525,17.0246508 3,17.0246508 L14,17.0246508 C14.5522847,17.0246508 15,16.5769355 15,16.0246508 L15,11.0246508 C15,10.472366 15.4477153,10.0246508 16,10.0246508 C16.5522847,10.0246508 17,10.472366 17,11.0246508 L17,16.0246508 C17,17.681505 15.6568542,19.0246508 14,19.0246508 L3,19.0246508 C1.34314575,19.0246508 0,17.681505 0,16.0246508 L0,5.02465077 C0,3.36779652 1.34314575,2.02465077 3,2.02465077 L8,2.02465077 Z M13.8667118,0.91593898 C14.6199352,0.136069227 15.7353455,-0.176698812 16.7842338,0.0978475103 C17.8331221,0.372393832 18.6522569,1.19152871 18.9268033,2.24041701 C19.2013496,3.2893053 18.8885815,4.40471557 18.1211068,5.14575756 L9.53510678,13.7317576 C9.3475704,13.9192939 9.09321649,14.0246508 8.828,14.0246508 L6,14.0246508 C5.44771525,14.0246508 5,13.5769355 5,13.0246508 L5,10.1966508 C5,9.93143428 5.10535684,9.67708037 5.29289322,9.48954399 Z M16.2777955,2.03266541 C15.9281661,1.94114997 15.5563627,2.04540598 15.2931068,2.31775756 L7,10.6100248 L7,12.0240248 L8.413,12.0240248 L16.7192882,3.71936257 C16.9503607,3.49618526 17.0584106,3.17761718 17.0152947,2.86402362 L16.9919854,2.74685524 C16.9004699,2.39722581 16.627425,2.12418085 16.2777955,2.03266541 Z",id:"edit_svg__Combined-Shape"})])],-1),x=[k];function M(o,a){return l(),r("svg",L,x)}const b={render:M},H={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 12"},V=t("path",{d:"M0 1a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h12a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1Z","fill-rule":"nonzero"},null,-1),I=[V];function $(o,a){return l(),r("svg",H,I)}const y={render:$};export{b as I,Z as _,y as a}; diff --git a/_nuxt/index.892f0c33.js b/_nuxt/index.892f0c33.js deleted file mode 100644 index 1984b86..0000000 --- a/_nuxt/index.892f0c33.js +++ /dev/null @@ -1 +0,0 @@ -import{c as v,ad as ce,ae as de,U as fe,af as me,ag as k,ah as Z,r as C,ai as pe,aj as ve,ak as we,al as ye,V as he,S as ge,o as je,ab as Se,am as be,a9 as Ee,an as Y,ao as B,ap as _,aq as H,l as Oe,ar as Ce,as as I,at as D,au as G,av as T,aw as De}from"./entry.ffb9f67d.js";function xe(e){var s;const n=k(e);return(s=n==null?void 0:n.$el)!=null?s:n}const M=ce?window:void 0;function R(...e){let s,n,a,u;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,u]=e,s=M):[s,n,a,u]=e,!s)return de;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const m=[],d=()=>{m.forEach(p=>p()),m.length=0},i=(p,h,E,S)=>(p.addEventListener(h,E,S),()=>p.removeEventListener(h,E,S)),c=fe(()=>[xe(s),k(u)],([p,h])=>{if(d(),!p)return;const E=me(h)?{...h}:h;m.push(...n.flatMap(S=>a.map(g=>i(p,S,g,E))))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Z(f),f}function He(e){return typeof e=="function"?e:typeof e=="string"?s=>s.key===e:Array.isArray(e)?s=>e.includes(s.key):()=>!0}function Be(...e){let s,n,a={};e.length===3?(s=e[0],n=e[1],a=e[2]):e.length===2?typeof e[1]=="object"?(s=!0,n=e[0],a=e[1]):(s=e[0],n=e[1]):(s=!0,n=e[0]);const{target:u=M,eventName:m="keydown",passive:d=!1,dedupe:i=!1}=a,c=He(s);return R(u,m,p=>{p.repeat&&k(i)||c(p)&&n(p)},d)}function Me(){const e=C(!1);return ge()&&je(()=>{e.value=!0}),e}function _e(e){const s=Me();return v(()=>(s.value,!!e()))}function $(e,s={}){const{window:n=M}=s,a=_e(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let u;const m=C(!1),d=f=>{m.value=f.matches},i=()=>{u&&("removeEventListener"in u?u.removeEventListener("change",d):u.removeListener(d))},c=pe(()=>{a.value&&(i(),u=n.matchMedia(k(e)),"addEventListener"in u?u.addEventListener("change",d):u.addListener(d),m.value=u.matches)});return Z(()=>{c(),i(),u=void 0}),m}const Te={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Ve(e,s={}){function n(i,c){let f=e[i];return c!=null&&(f=ve(f,c)),typeof f=="number"&&(f=`${f}px`),f}const{window:a=M}=s;function u(i){return a?a.matchMedia(i).matches:!1}const m=i=>$(`(min-width: ${n(i)})`,s),d=Object.keys(e).reduce((i,c)=>(Object.defineProperty(i,c,{get:()=>m(c),enumerable:!0,configurable:!0}),i),{});return Object.assign(d,{greater(i){return $(`(min-width: ${n(i,.1)})`,s)},greaterOrEqual:m,smaller(i){return $(`(max-width: ${n(i,-.1)})`,s)},smallerOrEqual(i){return $(`(max-width: ${n(i)})`,s)},between(i,c){return $(`(min-width: ${n(i)}) and (max-width: ${n(c,-.1)})`,s)},isGreater(i){return u(`(min-width: ${n(i,.1)})`)},isGreaterOrEqual(i){return u(`(min-width: ${n(i)})`)},isSmaller(i){return u(`(max-width: ${n(i,-.1)})`)},isSmallerOrEqual(i){return u(`(max-width: ${n(i)})`)},isInBetween(i,c){return u(`(min-width: ${n(i)}) and (max-width: ${n(c,-.1)})`)},current(){const i=Object.keys(e).map(c=>[c,m(c)]);return v(()=>i.filter(([,c])=>c.value).map(([c])=>c))}})}const V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},K="__vueuse_ssr_handlers__",Ae=$e();function $e(){return K in V||(V[K]=V[K]||{}),V[K]}function ke(e,s){return Ae[e]||s}function Le(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ne={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Q="vueuse-storage";function Pe(e,s,n,a={}){var u;const{flush:m="pre",deep:d=!0,listenToStorageChanges:i=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:p,window:h=M,eventFilter:E,onError:S=l=>{console.error(l)}}=a,g=(p?we:C)(s);if(!n)try{n=ke("getDefaultStorage",()=>{var l;return(l=M)==null?void 0:l.localStorage})()}catch(l){S(l)}if(!n)return g;const b=k(s),j=Le(b),x=(u=a.serializer)!=null?u:Ne[j],{pause:L,resume:N}=ye(g,()=>P(g.value),{flush:m,deep:d,eventFilter:E});return h&&i&&(R(h,"storage",A),R(h,Q,W)),A(),g;function P(l){try{if(l==null)n.removeItem(e);else{const w=x.write(l),O=n.getItem(e);O!==w&&(n.setItem(e,w),h&&h.dispatchEvent(new CustomEvent(Q,{detail:{key:e,oldValue:O,newValue:w,storageArea:n}})))}}catch(w){S(w)}}function J(l){const w=l?l.newValue:n.getItem(e);if(w==null)return c&&b!==null&&n.setItem(e,x.write(b)),b;if(!l&&f){const O=x.read(w);return typeof f=="function"?f(O,b):j==="object"&&!Array.isArray(O)?{...b,...O}:O}else return typeof w!="string"?w:x.read(w)}function W(l){A(l.detail)}function A(l){if(!(l&&l.storageArea!==n)){if(l&&l.key==null){g.value=b;return}if(!(l&&l.key!==e)){L();try{(l==null?void 0:l.newValue)!==x.write(g.value)&&(g.value=J(l))}catch(w){S(w)}finally{l?he(N):N()}}}}}function q(e,s,n={}){const{window:a=M}=n;return Pe(e,s,a==null?void 0:a.localStorage,n)}const Ke=Se("store",()=>{const e=be(),s=Ee(),n=Oe(),{$moment:a}=n,{t:u}=n.$i18n,m={toFirestore(t){return delete t.id,{...t,date:a(t.date).startOf("day").toDate()}},fromFirestore(t,r){const o=Ce.fromFirestore(t);return o.date=a(o.date.toDate()).format("YYYY-MM-DD"),o}},d=C(new Date().toLocaleDateString("en-CA")),i=q("filter",C("daily")),c=q("selectedTabIndex",C(0)),f=q("sort",C("name")),p=q("weekObjective",C("40:00")),h=C(!1),E=v(()=>a(d.value).startOf("week").toDate()),S=v(()=>a(d.value).endOf("week").toDate()),g=Y(v(()=>{var t;return s.value?B(H(e,"projects"),_("user","==",(t=s.value)==null?void 0:t.uid)):null}),{ssrKey:"projects"}),b=Y(v(()=>{var t;return s.value?B(H(e,"priorities"),_("user","==",(t=s.value)==null?void 0:t.uid)):null}),{ssrKey:"priorities"}),j=Y(v(()=>{var t;return s.value?B(H(e,"entries").withConverter(m),_("user","==",(t=s.value)==null?void 0:t.uid),_("date",">=",E.value),_("date","<=",S.value)):null}),{ssrKey:"entries"}),x=v(()=>[...j.value].sort((t,r)=>{const o=a(t.date+" "+t.start_time,"YYYY-M-D HH:mm");return a(r.date+" "+r.start_time,"YYYY-M-D HH:mm").isBefore(o)?1:-1}).filter(t=>a(d.value).isSame(t.date,"day"))),L=v(()=>{const t=Object.values(P.value).reduce((r,o)=>(r=a.duration(r).add(a.duration(o)),r),a.duration());return a.duration(t).format("HH:mm",{trim:!1})}),N=v(()=>a.duration(p.value).subtract(a.duration(L.value)).format("HH:mm",{trim:!1})),P=v(()=>j.value.filter(t=>!t.is_creating).reduce((t,r)=>{const o=a(r.date).locale("en").format("dddd").toLowerCase();return t[o]=a.duration(t[o]).add(a.duration(r.duration)).format("HH:mm",{trim:!1}),t},{sunday:"00:00",monday:"00:00",tuesday:"00:00",wednesday:"00:00",thursday:"00:00",friday:"00:00",saturday:"00:00"})),J=v(()=>{const t=[...j.value].filter(r=>!r.is_creating).reduce((r,o)=>{const y=o.project;return r[y.name]?r[y.name]=a.duration(r[y.name]).add(o.duration).format("HH:mm",{trim:!1}):r[y.name]=o.duration,r},{});return Object.entries(t).sort((r,o)=>a.duration(o[1]).asMilliseconds()-a.duration(r[1]).asMilliseconds())}),W=v(()=>{const t=[...j.value].filter(r=>!r.is_creating).filter(r=>a(r.date).isSame(d.value)).reduce((r,o)=>{const y=o.project;return r[y.name]?r[y.name]=a.duration(r[y.name]).add(o.duration).format("HH:mm",{trim:!1}):r[y.name]=o.duration,r},{});return Object.entries(t).sort((r,o)=>a.duration(o[1]).asMilliseconds()-a.duration(r[1]).asMilliseconds())}),A=v(()=>{const t=g.value.map(r=>[r,U(r)]);return f.value==="name"?t.sort((r,o)=>r[0].name.localeCompare(o[0].name)):t}),l=v(()=>!!j.value.find(t=>t.is_live_clocking)),w=v(()=>!!j.value.find(t=>t.is_creating)),O=v(()=>!l.value&&!w.value),X=t=>{const r=a.duration(t).asHours()===0,o=a.duration(t).asHours()>=a.duration(p.value).asHours()/5,y=a.duration(t).asHours()>=a.duration(p.value).asHours()/5-.5;return r?"text-gray-400 dark:text-gray-600":o?"text-green-500":y?"text-yellow-500":"text-red-500"},U=t=>j.value.filter(r=>{var o;return((o=r==null?void 0:r.project)==null?void 0:o.id)===t.id}).length;async function ee(t){var r,o;await I(H(e,"entries").withConverter(m),{...t,user:(r=s.value)==null?void 0:r.uid,project:(o=t.project)!=null&&o.id?D(e,"projects",t.project.id):null})}async function te(t){var r;await G(D(e,"entries",t.id),{...t,project:(r=t.project)!=null&&r.id?D(e,"projects",t.project.id):null,date:a(t.date).startOf("day").toDate()})}async function re(t,r=!1){(r||confirm(u("Êtes vous certain de vouloir supprimer cette entrée ?")))&&await T(D(e,"entries",t.id))}async function ne(t){await G(D(e,"entries",t.id),{is_synced:!t.is_synced})}async function ae(t){var o;return{id:(await I(H(e,"projects"),{name:t.name,user:(o=s.value)==null?void 0:o.uid})).id,name:t.name}}async function se(t){if(confirm(u("Êtes vous certain de vouloir supprimer ce projet ?"))){const r=D(e,"projects",t.id),{promise:o}=await Y(B(H(e,"entries"),_("project","==",r)),{once:!0,wait:!0,ssrKey:"projectEntries"}),y=De(e),z=await o.value;z.length>0?confirm(u("Cela entrainera la supression de l'entrée liée, êtes-vous certain de vouloir continuer ? | Cela entrainera la supression des {n} entrées liées, êtes-vous certain de vouloir continuer ?",z.length))&&(z.forEach(le=>{y.delete(D(e,"entries",le.id))}),await y.commit(),await T(r)):await T(r)}}async function ie(t){var r;await I(H(e,"priorities"),{name:t,completed:!1,user:(r=s.value)==null?void 0:r.uid})}async function F(t,r=!1){(r||confirm(u("Êtes vous certain de vouloir supprimer cette priorité ?")))&&await T(D(e,"priorities",t.id))}function oe(){const t=b.value.filter(r=>r.completed);t.length!==0?confirm(u("Êtes vous certain de vouloir supprimer les priorités complétées ?"))&&t.forEach(r=>F(r,!0)):alert(u("Aucune priorité complétée à supprimer"))}function ue(){g.value=[],b.value=[],j.value=[]}return{user:s,menuOpened:h,selectedDay:d,filter:i,selectedTabIndex:c,sort:f,weekObjective:p,projects:g,entries:j,priorities:b,weekStart:E,weekEnd:S,todaysEntries:x,weekTotal:L,weekRemaining:N,weekSummary:P,weekSummaryColors:X,weeklySummaryByProjects:J,dailySummaryByProjects:W,sortedProjects:A,projectEntriesTotal:U,isLiveClockingEntry:l,isCreatingEntry:w,canCreateEntry:O,addEntry:ee,updateEntry:te,deleteEntry:re,toggleEntrySynced:ne,addProject:ae,deleteProject:se,addPriority:ie,deletePriority:F,deleteCompletedPriorities:oe,$reset:ue}});export{Ve as a,Te as b,Be as o,Ke as u}; diff --git a/_nuxt/index.10d81674.js b/_nuxt/index.a86317f8.js similarity index 99% rename from _nuxt/index.10d81674.js rename to _nuxt/index.a86317f8.js index e4e8c5e..3b74340 100644 --- a/_nuxt/index.10d81674.js +++ b/_nuxt/index.a86317f8.js @@ -1,4 +1,4 @@ -import{q as M,s as q,t as h,d as jt,C as an,x as ue,D as b,v as F,E as at,F as Ln,G as Tt,l as qt,_ as Rt,H as W,I as ca,J as et,K,L as Be,M as Ge,N as ye,O as or,P as en,Q as bi,T as yi,R as Le,S as rn,r as le,c as P,U as we,V as _n,o as Xn,e as wi,z as ft,A as _i,B as Si,W as Ei,g as Lt,i as ki,X as Oi,y as St,Y as sr,Z as xi,$ as Ci,a0 as Ti,a1 as Li}from"./entry.ffb9f67d.js";import{u as ln,o as Di,a as Pi,b as Ii}from"./index.892f0c33.js";import{I as Ai,_ as Ni,a as ur}from"./hamburger.6acfa935.js";const $i={viewBox:"0 0 6 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Mi=h("g",{id:"arrow-left_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M6.292893,2.292893 C6.683418,1.902369 7.316582,1.902369 7.707107,2.292893 C8.097631,2.683418 8.097631,3.316582 7.707107,3.707107 L3.707107,7.707107 C3.316582,8.097631 2.683418,8.097631 2.292893,7.707107 L-1.707107,3.707107 C-2.097631,3.316582 -2.097631,2.683418 -1.707107,2.292893 C-1.316582,1.902369 -0.683418,1.902369 -0.292893,2.292893 L3,5.585786 L6.292893,2.292893 Z",id:"arrow-left_svg__arrow-left","fill-rule":"nonzero",transform:"translate(3.000000, 5.000000) rotate(90.000000) translate(-3.000000, -5.000000) "})],-1),ji=[Mi];function Ri(e,t){return M(),q("svg",$i,ji)}const Hi={render:Ri},Bi={viewBox:"0 0 7 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},qi=h("g",{id:"arrow-right_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M7.23522352,2.292893 C7.62574852,1.902369 8.25891252,1.902369 8.64943752,2.292893 C9.03996152,2.683418 9.03996152,3.316582 8.64943752,3.707107 L4.64943752,7.707107 C4.25891252,8.097631 3.62574852,8.097631 3.23522352,7.707107 L-0.764776481,3.707107 C-1.15530048,3.316582 -1.15530048,2.683418 -0.764776481,2.292893 C-0.374251481,1.902369 0.258912519,1.902369 0.649437519,2.292893 L3.94233052,5.585786 L7.23522352,2.292893 Z",id:"arrow-right_svg__arrow-right","fill-rule":"nonzero",transform:"translate(3.942331, 5.000000) rotate(270.000000) translate(-3.942331, -5.000000) "})],-1),zi=[qi];function Fi(e,t){return M(),q("svg",Bi,zi)}const Ui={render:Fi},Vi={class:"sticky top-16 z-20 -mt-6 mb-3 flex w-full min-w-0 justify-between gap-2 bg-white pb-3 pt-6 dark:bg-gray-900"},Yi={class:"relative min-w-0 shrink cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-100 px-5 text-center font-medium leading-10 ring-primary-200 transition hover:bg-gray-100 focus:outline-none focus:ring dark:border-gray-800 dark:ring-gray-600 dark:hover:bg-gray-800",tabindex:"0"},Gi={class:"capitalize"},Ki=jt({__name:"TimeEntriesHeader",setup(e){const t=ln(),{selectedDay:n}=an(t);function a(r){const{$moment:l}=qt();r==="prev"&&(n.value=l(n.value).subtract(1,"day").format("YYYY-MM-DD")),r==="next"&&(n.value=l(n.value).add(1,"day").format("YYYY-MM-DD"))}return Di(["ArrowLeft","ArrowRight"],r=>{["INPUT","TEXTAREA"].includes(document.activeElement.tagName)||(r.key==="ArrowLeft"&&a("prev"),r.key==="ArrowRight"&&a("next"))}),(r,l)=>(M(),q("div",Vi,[h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:l[0]||(l[0]=i=>a("prev"))},[ue(b(Hi),{class:"h-3"})]),h("label",Yi,[h("span",Gi,F(r.$moment(b(n)).format("dddd"))+", ",1),(M(),q("span",{key:r.$i18n.locale},F(r.$moment(b(n)).format("LL")),1)),at(h("input",{class:"sr-only bottom-0 left-0",type:"date","onUpdate:modelValue":l[1]||(l[1]=i=>Tt(n)?n.value=i:null),tabindex:"-1",onfocus:"this.showPicker()"},null,512),[[Ln,b(n)]])]),h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:l[2]||(l[2]=i=>a("next"))},[ue(b(Ui),{class:"h-3"})])]))}}),Wi=Rt(Ki,[["__file","TimeEntriesHeader.vue"]]),Xi={viewBox:"0 0 956 1080",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qi=h("g",{id:"play_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"play_svg__play",transform:"translate(0.319971, 0.062482)","fill-rule":"nonzero"},[h("path",{d:"M917.280029,473.577518 L114.840029,10.2575177 C99.2460288,1.2536177 80.9770288,-1.9654823 63.2460288,1.1677177 C45.5160288,4.2966177 29.4530288,13.5777177 17.8870288,27.3787177 C6.32102883,41.1757177 -0.0149711694,58.6127177 -7.10542736e-14,76.6167177 L-7.10542736e-14,1003.25672 C-0.0155961694,1021.26072 6.32032883,1038.69772 17.8870288,1052.49472 C29.4530288,1066.29572 45.5160288,1075.57672 63.2460288,1078.70572 C80.9760288,1081.83852 99.2460288,1078.61978 114.840029,1069.61592 L917.280029,606.295918 C932.905029,597.307618 944.858029,583.092918 951.030029,566.158918 C957.205829,549.220918 957.205829,530.650918 951.030029,513.713918 C944.858129,496.779918 932.905029,482.565918 917.280029,473.576918 L917.280029,473.577518 Z",id:"play_svg__Path"})])],-1),Zi=[Qi];function Ji(e,t){return M(),q("svg",Xi,Zi)}const el={render:Ji},tl={viewBox:"0 0 1080 1080",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},nl=h("g",{id:"stop_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"stop_svg__stop","fill-rule":"nonzero"},[h("path",{d:"M202.44,-5.68434189e-14 L877.56,-5.68434189e-14 C989.36,-5.68434189e-14 1080,111.8 1080,202.44 L1080,877.56 C1080,989.36 989.363,1080 877.56,1080 L202.44,1080 C90.64,1080 -5.68434189e-14,968.2 -5.68434189e-14,877.56 L-5.68434189e-14,202.44 C-5.68434189e-14,90.64 90.637,-5.68434189e-14 202.44,-5.68434189e-14 Z",id:"stop_svg__Path"})])],-1),al=[nl];function rl(e,t){return M(),q("svg",tl,al)}const il={render:rl},ll={viewBox:"0 0 18 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},ol=h("g",{id:"delete_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"delete_svg__delete",transform:"translate(1.000000, 1.000000)","fill-rule":"nonzero"},[h("path",{d:"M10,-1 C11.1045695,-1 12,-0.1045695 12,1 L12,3 L16,3 C16.5522847,3 17,3.44771525 17,4 C17,4.55228475 16.5522847,5 16,5 L15.931,5 L15.1304763,16.213 C15.0187068,17.7832453 13.7122224,19 12.138,19 L3.862,19 C2.28777764,19 0.981293174,17.7832453 0.869539632,16.2132237 L0.068,5 L0,5 C-0.55228475,5 -1,4.55228475 -1,4 C-1,3.44771525 -0.55228475,3 0,3 L4,3 L4,1 C4,-0.1045695 4.8954305,-1 6,-1 L10,-1 Z M2.074,5 L2.86447632,16.071 C2.90173255,16.5944115 3.33723127,17 3.862,17 L12.138,17 C12.6627687,17 13.0982674,16.5944115 13.1355396,16.0707763 L13.925,5 L2.074,5 Z M6,7 C6.55228475,7 7,7.44771525 7,8 L7,14 C7,14.5522847 6.55228475,15 6,15 C5.44771525,15 5,14.5522847 5,14 L5,8 C5,7.44771525 5.44771525,7 6,7 Z M10,7 C10.5522847,7 11,7.44771525 11,8 L11,14 C11,14.5522847 10.5522847,15 10,15 C9.44771525,15 9,14.5522847 9,14 L9,8 C9,7.44771525 9.44771525,7 10,7 Z M10,1 L6,1 L6,3 L10,3 L10,1 Z",id:"delete_svg__Shape"})])],-1),sl=[ol];function ul(e,t){return M(),q("svg",ll,sl)}const Ca={render:ul},cl={viewBox:"0 0 1829.33333 1747.66667",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dl=h("g",{id:"netsuite_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M1828.83333,0.5 L1828.83333,1747.16667 L0.5,1747.16667 L0.5,0.5 L1828.83333,0.5 Z M677.166667,363.833333 L395.5,363.833333 L395.5,1380.5 L670.5,1380.5 L670.5,767.166667 L1150.5,1385.5 L1433.5,1385.5 L1433.5,367.166667 L1157.16667,367.166667 L1157.16667,982.166667 L677.166667,363.833333 Z",id:"netsuite_svg__Combined-Shape"})],-1),fl=[dl];function pl(e,t){return M(),q("svg",cl,fl)}const hl={render:pl},gl="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",vl="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",$t=(e,t)=>{for(const n in t)e[n]=t[n];return e},Ta="numeric",La="ascii",Da="alpha",Sn="asciinumeric",hn="alphanumeric",Pa="domain",Lr="emoji",ml="scheme",bl="slashscheme",cr="whitespace";function yl(e,t){return e in t||(t[e]=[]),t[e]}function vt(e,t,n){t[Ta]&&(t[Sn]=!0,t[hn]=!0),t[La]&&(t[Sn]=!0,t[Da]=!0),t[Sn]&&(t[hn]=!0),t[Da]&&(t[hn]=!0),t[hn]&&(t[Pa]=!0),t[Lr]&&(t[Pa]=!0);for(const a in t){const r=yl(a,n);r.indexOf(e)<0&&r.push(e)}}function wl(e,t){const n={};for(const a in t)t[a].indexOf(e)>=0&&(n[a]=!0);return n}function Ce(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}Ce.groups={};Ce.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let a=0;ae.ta(t,n,a,r),Pe=(e,t,n,a,r)=>e.tr(t,n,a,r),dr=(e,t,n,a,r)=>e.ts(t,n,a,r),y=(e,t,n,a,r)=>e.tt(t,n,a,r),Ye="WORD",Ia="UWORD",tn="LOCALHOST",Aa="TLD",Na="UTLD",En="SCHEME",xt="SLASH_SCHEME",qa="NUM",Dr="WS",za="NL",Dt="OPENBRACE",Vt="OPENBRACKET",Yt="OPENANGLEBRACKET",Gt="OPENPAREN",ht="CLOSEBRACE",Pt="CLOSEBRACKET",It="CLOSEANGLEBRACKET",gt="CLOSEPAREN",Dn="AMPERSAND",Pn="APOSTROPHE",In="ASTERISK",tt="AT",An="BACKSLASH",Nn="BACKTICK",$n="CARET",rt="COLON",Fa="COMMA",Mn="DOLLAR",$e="DOT",jn="EQUALS",Ua="EXCLAMATION",Me="HYPHEN",Rn="PERCENT",Hn="PIPE",Bn="PLUS",qn="POUND",zn="QUERY",Va="QUOTE",Ya="SEMI",je="SLASH",Kt="TILDE",Fn="UNDERSCORE",Pr="EMOJI",Un="SYM";var Ir=Object.freeze({__proto__:null,WORD:Ye,UWORD:Ia,LOCALHOST:tn,TLD:Aa,UTLD:Na,SCHEME:En,SLASH_SCHEME:xt,NUM:qa,WS:Dr,NL:za,OPENBRACE:Dt,OPENBRACKET:Vt,OPENANGLEBRACKET:Yt,OPENPAREN:Gt,CLOSEBRACE:ht,CLOSEBRACKET:Pt,CLOSEANGLEBRACKET:It,CLOSEPAREN:gt,AMPERSAND:Dn,APOSTROPHE:Pn,ASTERISK:In,AT:tt,BACKSLASH:An,BACKTICK:Nn,CARET:$n,COLON:rt,COMMA:Fa,DOLLAR:Mn,DOT:$e,EQUALS:jn,EXCLAMATION:Ua,HYPHEN:Me,PERCENT:Rn,PIPE:Hn,PLUS:Bn,POUND:qn,QUERY:zn,QUOTE:Va,SEMI:Ya,SLASH:je,TILDE:Kt,UNDERSCORE:Fn,EMOJI:Pr,SYM:Un});const Et=/[a-z]/,da=/\p{L}/u,fa=/\p{Emoji}/u,pa=/\d/,fr=/\s/,pr=` +import{q as M,s as q,t as h,d as jt,C as an,x as ue,D as b,v as F,E as at,F as Ln,G as Tt,l as qt,_ as Rt,H as W,I as ca,J as et,K,L as Be,M as Ge,N as ye,O as or,P as en,Q as bi,T as yi,R as Le,S as rn,r as le,c as P,U as we,V as _n,o as Xn,e as wi,z as ft,A as _i,B as Si,W as Ei,g as Lt,i as ki,X as Oi,y as St,Y as sr,Z as xi,$ as Ci,a0 as Ti,a1 as Li}from"./entry.2efdeb07.js";import{u as ln,o as Di,a as Pi,b as Ii}from"./index.bafef1ea.js";import{I as Ai,_ as Ni,a as ur}from"./hamburger.040db4da.js";const $i={viewBox:"0 0 6 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Mi=h("g",{id:"arrow-left_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M6.292893,2.292893 C6.683418,1.902369 7.316582,1.902369 7.707107,2.292893 C8.097631,2.683418 8.097631,3.316582 7.707107,3.707107 L3.707107,7.707107 C3.316582,8.097631 2.683418,8.097631 2.292893,7.707107 L-1.707107,3.707107 C-2.097631,3.316582 -2.097631,2.683418 -1.707107,2.292893 C-1.316582,1.902369 -0.683418,1.902369 -0.292893,2.292893 L3,5.585786 L6.292893,2.292893 Z",id:"arrow-left_svg__arrow-left","fill-rule":"nonzero",transform:"translate(3.000000, 5.000000) rotate(90.000000) translate(-3.000000, -5.000000) "})],-1),ji=[Mi];function Ri(e,t){return M(),q("svg",$i,ji)}const Hi={render:Ri},Bi={viewBox:"0 0 7 10",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},qi=h("g",{id:"arrow-right_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M7.23522352,2.292893 C7.62574852,1.902369 8.25891252,1.902369 8.64943752,2.292893 C9.03996152,2.683418 9.03996152,3.316582 8.64943752,3.707107 L4.64943752,7.707107 C4.25891252,8.097631 3.62574852,8.097631 3.23522352,7.707107 L-0.764776481,3.707107 C-1.15530048,3.316582 -1.15530048,2.683418 -0.764776481,2.292893 C-0.374251481,1.902369 0.258912519,1.902369 0.649437519,2.292893 L3.94233052,5.585786 L7.23522352,2.292893 Z",id:"arrow-right_svg__arrow-right","fill-rule":"nonzero",transform:"translate(3.942331, 5.000000) rotate(270.000000) translate(-3.942331, -5.000000) "})],-1),zi=[qi];function Fi(e,t){return M(),q("svg",Bi,zi)}const Ui={render:Fi},Vi={class:"sticky top-16 z-20 -mt-6 mb-3 flex w-full min-w-0 justify-between gap-2 bg-white pb-3 pt-6 dark:bg-gray-900"},Yi={class:"relative min-w-0 shrink cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-100 px-5 text-center font-medium leading-10 ring-primary-200 transition hover:bg-gray-100 focus:outline-none focus:ring dark:border-gray-800 dark:ring-gray-600 dark:hover:bg-gray-800",tabindex:"0"},Gi={class:"capitalize"},Ki=jt({__name:"TimeEntriesHeader",setup(e){const t=ln(),{selectedDay:n}=an(t);function a(r){const{$moment:l}=qt();r==="prev"&&(n.value=l(n.value).subtract(1,"day").format("YYYY-MM-DD")),r==="next"&&(n.value=l(n.value).add(1,"day").format("YYYY-MM-DD"))}return Di(["ArrowLeft","ArrowRight"],r=>{["INPUT","TEXTAREA"].includes(document.activeElement.tagName)||(r.key==="ArrowLeft"&&a("prev"),r.key==="ArrowRight"&&a("next"))}),(r,l)=>(M(),q("div",Vi,[h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:l[0]||(l[0]=i=>a("prev"))},[ue(b(Hi),{class:"h-3"})]),h("label",Yi,[h("span",Gi,F(r.$moment(b(n)).format("dddd"))+", ",1),(M(),q("span",{key:r.$i18n.locale},F(r.$moment(b(n)).format("LL")),1)),at(h("input",{class:"sr-only bottom-0 left-0",type:"date","onUpdate:modelValue":l[1]||(l[1]=i=>Tt(n)?n.value=i:null),tabindex:"-1",onfocus:"this.showPicker()"},null,512),[[Ln,b(n)]])]),h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:l[2]||(l[2]=i=>a("next"))},[ue(b(Ui),{class:"h-3"})])]))}}),Wi=Rt(Ki,[["__file","TimeEntriesHeader.vue"]]),Xi={viewBox:"0 0 956 1080",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qi=h("g",{id:"play_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"play_svg__play",transform:"translate(0.319971, 0.062482)","fill-rule":"nonzero"},[h("path",{d:"M917.280029,473.577518 L114.840029,10.2575177 C99.2460288,1.2536177 80.9770288,-1.9654823 63.2460288,1.1677177 C45.5160288,4.2966177 29.4530288,13.5777177 17.8870288,27.3787177 C6.32102883,41.1757177 -0.0149711694,58.6127177 -7.10542736e-14,76.6167177 L-7.10542736e-14,1003.25672 C-0.0155961694,1021.26072 6.32032883,1038.69772 17.8870288,1052.49472 C29.4530288,1066.29572 45.5160288,1075.57672 63.2460288,1078.70572 C80.9760288,1081.83852 99.2460288,1078.61978 114.840029,1069.61592 L917.280029,606.295918 C932.905029,597.307618 944.858029,583.092918 951.030029,566.158918 C957.205829,549.220918 957.205829,530.650918 951.030029,513.713918 C944.858129,496.779918 932.905029,482.565918 917.280029,473.576918 L917.280029,473.577518 Z",id:"play_svg__Path"})])],-1),Zi=[Qi];function Ji(e,t){return M(),q("svg",Xi,Zi)}const el={render:Ji},tl={viewBox:"0 0 1080 1080",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},nl=h("g",{id:"stop_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"stop_svg__stop","fill-rule":"nonzero"},[h("path",{d:"M202.44,-5.68434189e-14 L877.56,-5.68434189e-14 C989.36,-5.68434189e-14 1080,111.8 1080,202.44 L1080,877.56 C1080,989.36 989.363,1080 877.56,1080 L202.44,1080 C90.64,1080 -5.68434189e-14,968.2 -5.68434189e-14,877.56 L-5.68434189e-14,202.44 C-5.68434189e-14,90.64 90.637,-5.68434189e-14 202.44,-5.68434189e-14 Z",id:"stop_svg__Path"})])],-1),al=[nl];function rl(e,t){return M(),q("svg",tl,al)}const il={render:rl},ll={viewBox:"0 0 18 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},ol=h("g",{id:"delete_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("g",{id:"delete_svg__delete",transform:"translate(1.000000, 1.000000)","fill-rule":"nonzero"},[h("path",{d:"M10,-1 C11.1045695,-1 12,-0.1045695 12,1 L12,3 L16,3 C16.5522847,3 17,3.44771525 17,4 C17,4.55228475 16.5522847,5 16,5 L15.931,5 L15.1304763,16.213 C15.0187068,17.7832453 13.7122224,19 12.138,19 L3.862,19 C2.28777764,19 0.981293174,17.7832453 0.869539632,16.2132237 L0.068,5 L0,5 C-0.55228475,5 -1,4.55228475 -1,4 C-1,3.44771525 -0.55228475,3 0,3 L4,3 L4,1 C4,-0.1045695 4.8954305,-1 6,-1 L10,-1 Z M2.074,5 L2.86447632,16.071 C2.90173255,16.5944115 3.33723127,17 3.862,17 L12.138,17 C12.6627687,17 13.0982674,16.5944115 13.1355396,16.0707763 L13.925,5 L2.074,5 Z M6,7 C6.55228475,7 7,7.44771525 7,8 L7,14 C7,14.5522847 6.55228475,15 6,15 C5.44771525,15 5,14.5522847 5,14 L5,8 C5,7.44771525 5.44771525,7 6,7 Z M10,7 C10.5522847,7 11,7.44771525 11,8 L11,14 C11,14.5522847 10.5522847,15 10,15 C9.44771525,15 9,14.5522847 9,14 L9,8 C9,7.44771525 9.44771525,7 10,7 Z M10,1 L6,1 L6,3 L10,3 L10,1 Z",id:"delete_svg__Shape"})])],-1),sl=[ol];function ul(e,t){return M(),q("svg",ll,sl)}const Ca={render:ul},cl={viewBox:"0 0 1829.33333 1747.66667",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dl=h("g",{id:"netsuite_svg__Page-1","stroke-width":"1","fill-rule":"evenodd"},[h("path",{d:"M1828.83333,0.5 L1828.83333,1747.16667 L0.5,1747.16667 L0.5,0.5 L1828.83333,0.5 Z M677.166667,363.833333 L395.5,363.833333 L395.5,1380.5 L670.5,1380.5 L670.5,767.166667 L1150.5,1385.5 L1433.5,1385.5 L1433.5,367.166667 L1157.16667,367.166667 L1157.16667,982.166667 L677.166667,363.833333 Z",id:"netsuite_svg__Combined-Shape"})],-1),fl=[dl];function pl(e,t){return M(),q("svg",cl,fl)}const hl={render:pl},gl="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",vl="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",$t=(e,t)=>{for(const n in t)e[n]=t[n];return e},Ta="numeric",La="ascii",Da="alpha",Sn="asciinumeric",hn="alphanumeric",Pa="domain",Lr="emoji",ml="scheme",bl="slashscheme",cr="whitespace";function yl(e,t){return e in t||(t[e]=[]),t[e]}function vt(e,t,n){t[Ta]&&(t[Sn]=!0,t[hn]=!0),t[La]&&(t[Sn]=!0,t[Da]=!0),t[Sn]&&(t[hn]=!0),t[Da]&&(t[hn]=!0),t[hn]&&(t[Pa]=!0),t[Lr]&&(t[Pa]=!0);for(const a in t){const r=yl(a,n);r.indexOf(e)<0&&r.push(e)}}function wl(e,t){const n={};for(const a in t)t[a].indexOf(e)>=0&&(n[a]=!0);return n}function Ce(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}Ce.groups={};Ce.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let a=0;ae.ta(t,n,a,r),Pe=(e,t,n,a,r)=>e.tr(t,n,a,r),dr=(e,t,n,a,r)=>e.ts(t,n,a,r),y=(e,t,n,a,r)=>e.tt(t,n,a,r),Ye="WORD",Ia="UWORD",tn="LOCALHOST",Aa="TLD",Na="UTLD",En="SCHEME",xt="SLASH_SCHEME",qa="NUM",Dr="WS",za="NL",Dt="OPENBRACE",Vt="OPENBRACKET",Yt="OPENANGLEBRACKET",Gt="OPENPAREN",ht="CLOSEBRACE",Pt="CLOSEBRACKET",It="CLOSEANGLEBRACKET",gt="CLOSEPAREN",Dn="AMPERSAND",Pn="APOSTROPHE",In="ASTERISK",tt="AT",An="BACKSLASH",Nn="BACKTICK",$n="CARET",rt="COLON",Fa="COMMA",Mn="DOLLAR",$e="DOT",jn="EQUALS",Ua="EXCLAMATION",Me="HYPHEN",Rn="PERCENT",Hn="PIPE",Bn="PLUS",qn="POUND",zn="QUERY",Va="QUOTE",Ya="SEMI",je="SLASH",Kt="TILDE",Fn="UNDERSCORE",Pr="EMOJI",Un="SYM";var Ir=Object.freeze({__proto__:null,WORD:Ye,UWORD:Ia,LOCALHOST:tn,TLD:Aa,UTLD:Na,SCHEME:En,SLASH_SCHEME:xt,NUM:qa,WS:Dr,NL:za,OPENBRACE:Dt,OPENBRACKET:Vt,OPENANGLEBRACKET:Yt,OPENPAREN:Gt,CLOSEBRACE:ht,CLOSEBRACKET:Pt,CLOSEANGLEBRACKET:It,CLOSEPAREN:gt,AMPERSAND:Dn,APOSTROPHE:Pn,ASTERISK:In,AT:tt,BACKSLASH:An,BACKTICK:Nn,CARET:$n,COLON:rt,COMMA:Fa,DOLLAR:Mn,DOT:$e,EQUALS:jn,EXCLAMATION:Ua,HYPHEN:Me,PERCENT:Rn,PIPE:Hn,PLUS:Bn,POUND:qn,QUERY:zn,QUOTE:Va,SEMI:Ya,SLASH:je,TILDE:Kt,UNDERSCORE:Fn,EMOJI:Pr,SYM:Un});const Et=/[a-z]/,da=/\p{L}/u,fa=/\p{Emoji}/u,pa=/\d/,fr=/\s/,pr=` `,_l="️",Sl="‍";let gn=null,vn=null;function El(e){e===void 0&&(e=[]);const t={};Ce.groups=t;const n=new Ce;gn==null&&(gn=hr(gl)),vn==null&&(vn=hr(vl)),y(n,"'",Pn),y(n,"{",Dt),y(n,"[",Vt),y(n,"<",Yt),y(n,"(",Gt),y(n,"}",ht),y(n,"]",Pt),y(n,">",It),y(n,")",gt),y(n,"&",Dn),y(n,"*",In),y(n,"@",tt),y(n,"`",Nn),y(n,"^",$n),y(n,":",rt),y(n,",",Fa),y(n,"$",Mn),y(n,".",$e),y(n,"=",jn),y(n,"!",Ua),y(n,"-",Me),y(n,"%",Rn),y(n,"|",Hn),y(n,"+",Bn),y(n,"#",qn),y(n,"?",zn),y(n,'"',Va),y(n,"/",je),y(n,";",Ya),y(n,"~",Kt),y(n,"_",Fn),y(n,"\\",An);const a=Pe(n,pa,qa,{[Ta]:!0});Pe(a,pa,a);const r=Pe(n,Et,Ye,{[La]:!0});Pe(r,Et,r);const l=Pe(n,da,Ia,{[Da]:!0});Pe(l,Et),Pe(l,da,l);const i=Pe(n,fr,Dr,{[cr]:!0});y(n,pr,za,{[cr]:!0}),y(i,pr),Pe(i,fr,i);const o=Pe(n,fa,Pr,{[Lr]:!0});Pe(o,fa,o),y(o,_l,o);const u=y(o,Sl);Pe(u,fa,o);const c=[[Et,r]],p=[[Et,null],[da,l]];for(let f=0;ff[0]>v[0]?1:-1);for(let f=0;f=0?w[Pa]=!0:Et.test(v)?pa.test(v)?w[Sn]=!0:w[La]=!0:w[Ta]=!0,dr(n,v,v,w)}return dr(n,"localhost",tn,{ascii:!0}),n.jd=new Ce(Un),{start:n,tokens:$t({groups:t},Ir)}}function kl(e,t){const n=Ol(t.replace(/[A-Z]/g,o=>o.toLowerCase())),a=n.length,r=[];let l=0,i=0;for(;i=0&&(f+=n[i].length,v++),c+=n[i].length,l+=n[i].length,i++;l-=f,i-=v,c-=f,r.push({t:p.t,v:t.slice(l-c,l),s:l-c,e:l})}return r}function Ol(e){const t=[],n=e.length;let a=0;for(;a56319||a+1===n||(l=e.charCodeAt(a+1))<56320||l>57343?e[a]:e.slice(a,a+2);t.push(i),a+=i.length}return t}function Je(e,t,n,a,r){let l;const i=t.length;for(let o=0;o=0;)l++;if(l>0){t.push(n.join(""));for(let i=parseInt(e.substring(a,a+l),10);i>0;i--)n.pop();a+=l}else n.push(e[a]),a++}return t}const nn={defaultProtocol:"http",events:null,format:gr,formatHref:gr,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ga(e,t){t===void 0&&(t=null);let n=$t({},nn);e&&(n=$t(n,e instanceof Ga?e.o:e));const a=n.ignoreTags,r=[];for(let l=0;ln?a.substring(0,n)+"…":a},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=nn.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),a=e.get("formatHref",n,this),r=e.get("tagName",n,t),l=this.toFormattedString(e),i={},o=e.get("className",n,t),u=e.get("target",n,t),c=e.get("rel",n,t),p=e.getObj("attributes",n,t),f=e.getObj("events",n,t);return i.href=a,o&&(i.class=o),u&&(i.target=u),c&&(i.rel=c),p&&$t(i,p),{tagName:r,attributes:i,content:l,eventListeners:f}}};function Qn(e,t){class n extends Ar{constructor(r,l){super(r,l),this.t=e}}for(const a in t)n.prototype[a]=t[a];return n.t=e,n}const vr=Qn("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),mr=Qn("text"),xl=Qn("nl"),ut=Qn("url",{isLink:!0,toHref(e){return e===void 0&&(e=nn.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==tn&&e[1].t===rt}}),ve=e=>new Ce(e);function Cl(e){let{groups:t}=e;const n=t.domain.concat([Dn,In,tt,An,Nn,$n,Mn,jn,Me,qa,Rn,Hn,Bn,qn,je,Un,Kt,Fn]),a=[Pn,It,ht,Pt,gt,rt,Fa,$e,Ua,Yt,Dt,Vt,Gt,zn,Va,Ya],r=[Dn,Pn,In,An,Nn,$n,ht,Mn,jn,Me,Dt,Rn,Hn,Bn,qn,zn,je,Un,Kt,Fn],l=ve(),i=y(l,Kt);I(i,r,i),I(i,t.domain,i);const o=ve(),u=ve(),c=ve();I(l,t.domain,o),I(l,t.scheme,u),I(l,t.slashscheme,c),I(o,r,i),I(o,t.domain,o);const p=y(o,tt);y(i,tt,p),y(u,tt,p),y(c,tt,p);const f=y(i,$e);I(f,r,i),I(f,t.domain,i);const v=ve();I(p,t.domain,v),I(v,t.domain,v);const d=y(v,$e);I(d,t.domain,v);const w=ve(vr);I(d,t.tld,w),I(d,t.utld,w),y(p,tn,w);const k=y(v,Me);I(k,t.domain,v),I(w,t.domain,v),y(w,$e,d),y(w,Me,k);const B=y(w,rt);I(B,t.numeric,vr);const T=y(o,Me),D=y(o,$e);I(T,t.domain,o),I(D,r,i),I(D,t.domain,o);const g=ve(ut);I(D,t.tld,g),I(D,t.utld,g),I(g,t.domain,o),I(g,r,i),y(g,$e,D),y(g,Me,T),y(g,tt,p);const O=y(g,rt),N=ve(ut);I(O,t.numeric,N);const m=ve(ut),j=ve();I(m,n,m),I(m,a,j),I(j,n,m),I(j,a,j),y(g,je,m),y(N,je,m);const A=y(u,rt),V=y(c,rt),ae=y(V,je),re=y(ae,je);I(u,t.domain,o),y(u,$e,D),y(u,Me,T),I(c,t.domain,o),y(c,$e,D),y(c,Me,T),I(A,t.domain,m),y(A,je,m),I(re,t.domain,m),I(re,n,m),y(re,je,m);const L=y(m,Dt),U=y(m,Vt),te=y(m,Yt),de=y(m,Gt);y(j,Dt,L),y(j,Vt,U),y(j,Yt,te),y(j,Gt,de),y(L,ht,m),y(U,Pt,m),y(te,It,m),y(de,gt,m),y(L,ht,m);const ne=ve(ut),Q=ve(ut),x=ve(ut),C=ve(ut);I(L,n,ne),I(U,n,Q),I(te,n,x),I(de,n,C);const G=ve(),$=ve(),ge=ve(),De=ve();return I(L,a),I(U,a),I(te,a),I(de,a),I(ne,n,ne),I(Q,n,Q),I(x,n,x),I(C,n,C),I(ne,a,ne),I(Q,a,Q),I(x,a,x),I(C,a,C),I(G,n,G),I($,n,Q),I(ge,n,x),I(De,n,C),I(G,a,G),I($,a,$),I(ge,a,ge),I(De,a,De),y(Q,Pt,m),y(x,It,m),y(C,gt,m),y(ne,ht,m),y($,Pt,m),y(ge,It,m),y(De,gt,m),y(G,gt,m),y(l,tn,g),y(l,za,xl),{start:l,tokens:Ir}}function Tl(e,t,n){let a=n.length,r=0,l=[],i=[];for(;r=0&&v++,r++,p++;if(v<0)r-=p,r0&&(l.push(ha(mr,t,i)),i=[]),r-=v,p-=v;const d=f.t,w=n.slice(r-p,r);l.push(ha(d,t,w))}}return i.length>0&&l.push(ha(mr,t,i)),l}function ha(e,t,n){const a=n[0].s,r=n[n.length-1].e,l=t.slice(a,r);return new e(l,n)}const Se={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Ll(){Se.scanner=El(Se.customSchemes);for(let e=0;e/g,">")}function Pl(e){return e.replace(/"/g,""")}function Il(e){const t=[];for(const n in e){let a=e[n]+"";t.push(`${n}="${Pl(a)}"`)}return t.join(" ")}function Al(e){let{tagName:t,attributes:n,content:a}=e;return`<${t} ${Il(n)}>${Nr(a)}`}function $r(e,t){t===void 0&&(t={}),t=new Ga(t,Al);const n=Dl(e),a=[];for(let r=0;r `):!l.isLink||!t.check(l)?a.push(Nr(l.toString())):a.push(t.render(l))}return a.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(t){return $r(this,t)}});const Nl={container:"relative h-9 mx-auto w-full flex items-center justify-end box-border cursor-pointer rounded text-sm leading-snug outline-none bg-white dark:bg-gray-900 dark:focus:bg-gray-900 border border-gray-300 dark:border-gray-700 dark:focus:border-gray-500",containerDisabled:"cursor-default bg-gray-100",containerOpen:"rounded-b-none border-primary-300 dark:!border-gray-500",containerOpenTop:"rounded-t-none border-primary-300 dark:!border-gray-500",containerActive:"ring ring-primary-200 dark:ring-gray-600 border-primary-300 dark:border-gray-500",singleLabel:"flex items-center h-full max-w-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 pr-16 box-border",singleLabelText:"overflow-ellipsis overflow-hidden block whitespace-nowrap max-w-full",multipleLabel:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5",search:"w-full absolute inset-0 outline-none appearance-none box-border border-0 text-sm font-sans rounded pl-3.5 bg-transparent focus:ring-transparent",tags:"flex-grow flex-shrink flex flex-wrap items-center mt-1 pl-2 ",tag:"bg-primary-500 text-white text-sm font-semibold py-0.5 pl-2 rounded mr-1 mb-1 flex items-center whitespace-nowrap",tagDisabled:"pr-2 opacity-50",tagRemove:"flex items-center justify-center p-1 mx-0.5 rounded-sm hover:bg-black hover:bg-opacity-10 group",tagRemoveIcon:"bg-multiselect-remove bg-center bg-no-repeat opacity-30 inline-block w-3 h-3 group-hover:opacity-60",tagsSearchWrapper:"inline-block relative mx-1 mb-1 flex-grow flex-shrink h-full",tagsSearch:"absolute inset-0 border-0 outline-none appearance-none p-0 text-base font-sans box-border w-full",tagsSearchCopy:"invisible whitespace-pre-wrap inline-block h-px",placeholder:"flex items-center h-full absolute left-0 top-0 pointer-events-none bg-transparent leading-snug pl-3.5 text-gray-400 dark:text-gray-600",caret:"bg-multiselect-caret bg-center bg-no-repeat w-2.5 h-4 py-px box-content mr-3.5 relative z-10 flex-shrink-0 flex-grow-0 transition-transform transform pointer-events-none",caretOpen:"rotate-180 pointer-events-auto",clear:"mr-3.5 relative z-10 transition duration-300 flex-shrink-0 flex-grow-0 flex hover:opacity-80",clearIcon:"bg-multiselect-remove bg-center bg-no-repeat w-2.5 h-4 py-px box-content inline-block",spinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 mr-3.5 animate-spin flex-shrink-0 flex-grow-0",inifite:"flex items-center justify-center w-full",inifiteSpinner:"bg-multiselect-spinner bg-center bg-no-repeat w-4 h-4 z-10 animate-spin flex-shrink-0 flex-grow-0 m-3.5",dropdown:"max-h-60 absolute -left-px -right-px bottom-0 transform translate-y-full border border-primary-300 dark:border-gray-500 dark:focus:border-gray-500 -mt-px overflow-y-scroll z-50 bg-white dark:bg-gray-900 flex flex-col rounded-b",dropdownTop:"-translate-y-full top-px bottom-auto rounded-b-none rounded-t",dropdownHidden:"hidden",options:"flex flex-col p-0 m-0 list-none",optionsTop:"",group:"p-0 m-0",groupLabel:"flex text-sm box-border items-center justify-start text-left py-1 px-3 font-semibold bg-gray-200 cursor-default leading-normal",groupLabelPointable:"cursor-pointer",groupLabelPointed:"bg-gray-300 text-gray-700",groupLabelSelected:"bg-primary-600 text-white",groupLabelDisabled:"bg-gray-100 text-gray-300 cursor-not-allowed",groupLabelSelectedPointed:"bg-primary-600 text-white opacity-90",groupLabelSelectedDisabled:"text-green-100 bg-primary-600 bg-opacity-50 cursor-not-allowed",groupOptions:"p-0 m-0",option:"flex items-center justify-start box-border text-left cursor-pointer text-sm leading-snug py-2 px-3",optionPointed:"text-white bg-primary-500",optionSelected:"text-primary-500 font-bold",optionDisabled:"text-gray-300 cursor-not-allowed",optionSelectedPointed:"text-white bg-primary-500 opacity-90 font-bold",optionSelectedDisabled:"text-green-100 bg-primary-500 bg-opacity-50 cursor-not-allowed",noOptions:"py-2 px-3 text-gray-600 bg-white dark:bg-gray-900 text-left",noResults:"py-2 px-3 text-gray-600 bg-white dark:bg-gray-900 text-left",fakeInput:"bg-transparent absolute left-0 right-0 -bottom-px w-full h-px border-0 p-0 appearance-none outline-none text-transparent",spacer:"h-9 py-px box-content"};function Re(e){return[null,void 0].indexOf(e)!==-1}function $l(e,t,n){const{object:a,valueProp:r,mode:l}=Le(e),i=rn().proxy,o=n.iv,u=(f,v=!0)=>{o.value=p(f);const d=c(f);t.emit("change",d,i),v&&(t.emit("input",d),t.emit("update:modelValue",d))},c=f=>a.value||Re(f)?f:Array.isArray(f)?f.map(v=>v[r.value]):f[r.value],p=f=>Re(f)?l.value==="single"?{}:[]:f;return{update:u}}function Ml(e,t){const{value:n,modelValue:a,mode:r,valueProp:l}=Le(e),i=le(r.value!=="single"?[]:{}),o=P(()=>a&&a.value!==void 0?a.value:n.value),u=P(()=>r.value==="single"?i.value[l.value]:i.value.map(p=>p[l.value])),c=P(()=>r.value!=="single"?i.value.map(p=>p[l.value]).join(","):i.value[l.value]);return{iv:i,internalValue:i,ev:o,externalValue:o,textValue:c,plainValue:u}}function jl(e,t,n){const{regex:a}=Le(e),r=rn().proxy,l=n.isOpen,i=n.open,o=le(null),u=()=>{o.value=""},c=v=>{o.value=v.target.value},p=v=>{if(a&&a.value){let d=a.value;typeof d=="string"&&(d=new RegExp(d)),v.key.match(d)||v.preventDefault()}},f=v=>{if(a&&a.value){let w=(v.clipboardData||window.clipboardData).getData("Text"),k=a.value;typeof k=="string"&&(k=new RegExp(k)),w.split("").every(B=>!!B.match(k))||v.preventDefault()}t.emit("paste",v,r)};return we(o,v=>{!l.value&&v&&i(),t.emit("search-change",v,r)}),{search:o,clearSearch:u,handleSearchInput:c,handleKeypress:p,handlePaste:f}}function Rl(e,t,n){const{groupSelect:a,mode:r,groups:l,disabledProp:i}=Le(e),o=le(null),u=p=>{p===void 0||p!==null&&p[i.value]||l.value&&p&&p.group&&(r.value==="single"||!a.value)||(o.value=p)};return{pointer:o,setPointer:u,clearPointer:()=>{u(null)}}}function ga(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function Hl(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bl(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(a,r){return a===n[r]})}function ql(e,t,n){const{options:a,mode:r,trackBy:l,limit:i,hideSelected:o,createTag:u,createOption:c,label:p,appendNewTag:f,appendNewOption:v,multipleLabel:d,object:w,loading:k,delay:B,resolveOnLoad:T,minChars:D,filterResults:g,clearOnSearch:O,clearOnSelect:N,valueProp:m,allowAbsent:j,groupLabel:A,canDeselect:V,max:ae,strict:re,closeOnSelect:L,closeOnDeselect:U,groups:te,reverse:de,infinite:ne,groupOptions:Q,groupHideEmpty:x,groupSelect:C,onCreate:G,disabledProp:$,searchStart:ge,searchFilter:De}=Le(e),fe=rn().proxy,ee=n.iv,E=n.ev,z=n.search,ke=n.clearSearch,Fe=n.update,ea=n.pointer,Wr=n.setPointer,mt=n.clearPointer,Xr=n.focus,Qr=n.deactivate,bt=n.close,Zr=n.localize,Ht=le([]),Qe=le([]),Ne=le(!1),ta=le(null),un=le(ne.value&&i.value===-1?10:i.value),Za=P(()=>u.value||c.value||!1),Jr=P(()=>f.value!==void 0?f.value:v.value!==void 0?v.value:!0),Ze=P(()=>{if(te.value){let s=cn.value||[],_=[];return s.forEach(X=>{sa(X[Q.value]).forEach(ce=>{_.push(Object.assign({},ce,X[$.value]?{[$.value]:!0}:{}))})}),_}else{let s=sa(Qe.value||[]);return Ht.value.length&&(s=s.concat(Ht.value)),s}}),Ja=P(()=>{let s=Ze.value;return de.value&&(s=s.reverse()),yt.value.length&&(s=yt.value.concat(s)),oa(s)}),Bt=P(()=>{let s=Ja.value;return un.value>0&&(s=s.slice(0,un.value)),s}),cn=P(()=>{if(!te.value)return[];let s=[],_=Qe.value||[];return Ht.value.length&&s.push({[A.value]:" ",[Q.value]:[...Ht.value],__CREATE__:!0}),s.concat(_)}),ei=P(()=>{let s=[...cn.value].map(_=>({..._}));return yt.value.length&&(s[0]&&s[0].__CREATE__?s[0][Q.value]=[...yt.value,...s[0][Q.value]]:s=[{[A.value]:" ",[Q.value]:[...yt.value],__CREATE__:!0}].concat(s)),s}),na=P(()=>{if(!te.value)return[];let s=ei.value;return gi((s||[]).map((_,X)=>{const ce=sa(_[Q.value]);return{..._,index:X,group:!0,[Q.value]:oa(ce,!1).map(st=>Object.assign({},st,_[$.value]?{[$.value]:!0}:{})),__VISIBLE__:oa(ce).map(st=>Object.assign({},st,_[$.value]?{[$.value]:!0}:{}))}}))}),aa=P(()=>{switch(r.value){case"single":return!Re(ee.value[m.value]);case"multiple":case"tags":return!Re(ee.value)&&ee.value.length>0}}),ti=P(()=>d!==void 0&&d.value!==void 0?d.value(ee.value,fe):ee.value&&ee.value.length>1?`${ee.value.length} options selected`:"1 option selected"),ni=P(()=>!Ze.value.length&&!Ne.value&&!yt.value.length),ai=P(()=>Ze.value.length>0&&Bt.value.length==0&&(z.value&&te.value||!te.value)),yt=P(()=>Za.value===!1||!z.value?[]:fi(z.value)!==-1?[]:[{[m.value]:z.value,[ot.value[0]]:z.value,[p.value]:z.value,__CREATE__:!0}]),ot=P(()=>l.value?Array.isArray(l.value)?l.value:[l.value]:[p.value]),ri=P(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),ii=P(()=>k.value||Ne.value),wt=s=>{switch(typeof s!="object"&&(s=Ve(s)),r.value){case"single":Fe(s);break;case"multiple":case"tags":Fe(ee.value.concat(s));break}t.emit("select",er(s),s,fe)},_t=s=>{switch(typeof s!="object"&&(s=Ve(s)),r.value){case"single":nr();break;case"tags":case"multiple":Fe(Array.isArray(s)?ee.value.filter(_=>s.map(X=>X[m.value]).indexOf(_[m.value])===-1):ee.value.filter(_=>_[m.value]!=s[m.value]));break}t.emit("deselect",er(s),s,fe)},er=s=>w.value?s:s[m.value],tr=s=>{_t(s)},li=(s,_)=>{if(_.button!==0){_.preventDefault();return}tr(s)},nr=()=>{Fe(ri.value),t.emit("clear",fe)},Ue=s=>{if(s.group!==void 0)return r.value==="single"?!1:di(s[Q.value])&&s[Q.value].length;switch(r.value){case"single":return!Re(ee.value)&&ee.value[m.value]==s[m.value];case"tags":case"multiple":return!Re(ee.value)&&ee.value.map(_=>_[m.value]).indexOf(s[m.value])!==-1}},ra=s=>s[$.value]===!0,ia=()=>ae===void 0||ae.value===-1||!aa.value&&ae.value>0?!1:ee.value.length>=ae.value,oi=s=>{if(!ra(s)){if(G&&G.value&&!Ue(s)&&s.__CREATE__&&(s={...s},delete s.__CREATE__,s=G.value(s,fe),s instanceof Promise)){Ne.value=!0,s.then(_=>{Ne.value=!1,ar(_)});return}ar(s)}},ar=s=>{switch(s.__CREATE__&&(s={...s},delete s.__CREATE__),r.value){case"single":if(s&&Ue(s)){V.value&&_t(s),U.value&&(mt(),bt());return}s&&la(s),N.value&&ke(),L.value&&(mt(),bt()),s&&wt(s);break;case"multiple":if(s&&Ue(s)){_t(s),U.value&&(mt(),bt());return}if(ia()){t.emit("max",fe);return}s&&(la(s),wt(s)),N.value&&ke(),o.value&&mt(),L.value&&bt();break;case"tags":if(s&&Ue(s)){_t(s),U.value&&(mt(),bt());return}if(ia()){t.emit("max",fe);return}s&&la(s),N.value&&ke(),s&&wt(s),o.value&&mt(),L.value&&bt();break}L.value||Xr()},si=s=>{if(!(ra(s)||r.value==="single"||!C.value)){switch(r.value){case"multiple":case"tags":ci(s[Q.value])?_t(s[Q.value]):wt(s[Q.value].filter(_=>ee.value.map(X=>X[m.value]).indexOf(_[m.value])===-1).filter(_=>!_[$.value]).filter((_,X)=>ee.value.length+1+X<=ae.value||ae.value===-1)),o.value&&ea.value&&Wr(na.value.filter(_=>!_[$.value])[ea.value.index]);break}L.value&&Qr()}},la=s=>{Ve(s[m.value])===void 0&&Za.value&&(t.emit("tag",s[m.value],fe),t.emit("option",s[m.value],fe),t.emit("create",s[m.value],fe),Jr.value&&hi(s),ke())},ui=()=>{r.value!=="single"&&wt(Bt.value.filter(s=>!s.disabled&&!Ue(s)))},ci=s=>s.find(_=>!Ue(_)&&!_[$.value])===void 0,di=s=>s.find(_=>!Ue(_))===void 0,Ve=s=>Ze.value[Ze.value.map(_=>String(_[m.value])).indexOf(String(s))],fi=s=>Ze.value.findIndex(_=>ot.value.some(X=>(parseInt(_[X])==_[X]?parseInt(_[X]):_[X])===(parseInt(s)==s?parseInt(s):s))),pi=s=>["tags","multiple"].indexOf(r.value)!==-1&&o.value&&Ue(s),hi=s=>{Ht.value.push(s)},gi=s=>x.value?s.filter(_=>z.value?_.__VISIBLE__.length:_[Q.value].length):s.filter(_=>z.value?_.__VISIBLE__.length:!0),oa=(s,_=!0)=>{let X=s;if(z.value&&g.value){let ce=De.value;ce||(ce=(st,ir,vu)=>ot.value.some(mi=>{let lr=ga(Zr(st[mi]),re.value);return ge.value?lr.startsWith(ga(ir,re.value)):lr.indexOf(ga(ir,re.value))!==-1})),X=X.filter(st=>ce(st,z.value,fe))}return o.value&&_&&(X=X.filter(ce=>!pi(ce))),X},sa=s=>{let _=s;return Hl(_)&&(_=Object.keys(_).map(X=>{let ce=_[X];return{[m.value]:X,[ot.value[0]]:ce,[p.value]:ce}})),_=_.map(X=>typeof X=="object"?X:{[m.value]:X,[ot.value[0]]:X,[p.value]:X}),_},dn=()=>{Re(E.value)||(ee.value=pn(E.value))},fn=s=>(Ne.value=!0,new Promise((_,X)=>{a.value(z.value,fe).then(ce=>{Qe.value=ce||[],typeof s=="function"&&s(ce),Ne.value=!1}).catch(ce=>{console.error(ce),Qe.value=[],Ne.value=!1}).finally(()=>{_()})})),ua=()=>{if(aa.value)if(r.value==="single"){let s=Ve(ee.value[m.value]);if(s!==void 0){let _=s[p.value];ee.value[p.value]=_,w.value&&(E.value[p.value]=_)}}else ee.value.forEach((s,_)=>{let X=Ve(ee.value[_][m.value]);if(X!==void 0){let ce=X[p.value];ee.value[_][p.value]=ce,w.value&&(E.value[_][p.value]=ce)}})},vi=s=>{fn(s)},pn=s=>Re(s)?r.value==="single"?{}:[]:w.value?s:r.value==="single"?Ve(s)||(j.value?{[p.value]:s,[m.value]:s,[ot.value[0]]:s}:{}):s.filter(_=>!!Ve(_)||j.value).map(_=>Ve(_)||{[p.value]:_,[m.value]:_,[ot.value[0]]:_}),rr=()=>{ta.value=we(z,s=>{s.length{s==z.value&&a.value(z.value,fe).then(_=>{(s==z.value||!z.value)&&(Qe.value=_,ea.value=Bt.value.filter(X=>X[$.value]!==!0)[0]||null,Ne.value=!1)}).catch(_=>{console.error(_)})},B.value))},{flush:"sync"})};if(r.value!=="single"&&!Re(E.value)&&!Array.isArray(E.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return a&&typeof a.value=="function"?T.value?fn(dn):w.value==!0&&dn():(Qe.value=a.value,dn()),B.value>-1&&rr(),we(B,(s,_)=>{ta.value&&ta.value(),s>=0&&rr()}),we(E,s=>{if(Re(s)){Fe(pn(s),!1);return}switch(r.value){case"single":(w.value?s[m.value]!=ee.value[m.value]:s!=ee.value[m.value])&&Fe(pn(s),!1);break;case"multiple":case"tags":Bl(w.value?s.map(_=>_[m.value]):s,ee.value.map(_=>_[m.value]))||Fe(pn(s),!1);break}},{deep:!0}),we(a,(s,_)=>{typeof e.options=="function"?T.value&&(!_||s&&s.toString()!==_.toString())&&fn():(Qe.value=e.options,Object.keys(ee.value).length||dn(),ua())}),we(p,ua),we(i,(s,_)=>{un.value=ne.value&&s===-1?10:s}),{pfo:Ja,fo:Bt,filteredOptions:Bt,hasSelected:aa,multipleLabelText:ti,eo:Ze,extendedOptions:Ze,eg:cn,extendedGroups:cn,fg:na,filteredGroups:na,noOptions:ni,noResults:ai,resolving:Ne,busy:ii,offset:un,select:wt,deselect:_t,remove:tr,selectAll:ui,clear:nr,isSelected:Ue,isDisabled:ra,isMax:ia,getOption:Ve,handleOptionClick:oi,handleGroupClick:si,handleTagRemove:li,refreshOptions:vi,resolveOptions:fn,refreshLabels:ua}}function zl(e,t,n){const{valueProp:a,showOptions:r,searchable:l,groupLabel:i,groups:o,mode:u,groupSelect:c,disabledProp:p,groupOptions:f}=Le(e),v=n.fo,d=n.fg,w=n.handleOptionClick,k=n.handleGroupClick,B=n.search,T=n.pointer,D=n.setPointer,g=n.clearPointer,O=n.multiselect,N=n.isOpen,m=P(()=>v.value.filter(E=>!E[p.value])),j=P(()=>d.value.filter(E=>!E[p.value])),A=P(()=>u.value!=="single"&&c.value),V=P(()=>T.value&&T.value.group),ae=P(()=>fe(T.value)),re=P(()=>{const E=V.value?T.value:fe(T.value),z=j.value.map(Fe=>Fe[i.value]).indexOf(E[i.value]);let ke=j.value[z-1];return ke===void 0&&(ke=U.value),ke}),L=P(()=>{let E=j.value.map(z=>z.label).indexOf(V.value?T.value[i.value]:fe(T.value)[i.value])+1;return j.value.length<=E&&(E=0),j.value[E]}),U=P(()=>[...j.value].slice(-1)[0]),te=P(()=>T.value.__VISIBLE__.filter(E=>!E[p.value])[0]),de=P(()=>{const E=ae.value.__VISIBLE__.filter(z=>!z[p.value]);return E[E.map(z=>z[a.value]).indexOf(T.value[a.value])-1]}),ne=P(()=>{const E=fe(T.value).__VISIBLE__.filter(z=>!z[p.value]);return E[E.map(z=>z[a.value]).indexOf(T.value[a.value])+1]}),Q=P(()=>[...re.value.__VISIBLE__.filter(E=>!E[p.value])].slice(-1)[0]),x=P(()=>[...U.value.__VISIBLE__.filter(E=>!E[p.value])].slice(-1)[0]),C=E=>T.value&&(!E.group&&T.value[a.value]===E[a.value]||E.group!==void 0&&T.value[i.value]===E[i.value])?!0:void 0,G=()=>{D(m.value[0]||null)},$=()=>{!T.value||T.value[p.value]===!0||(V.value?k(T.value):w(T.value))},ge=()=>{if(T.value===null)D((o.value&&A.value?j.value[0].__CREATE__?m.value[0]:j.value[0]:m.value[0])||null);else if(o.value&&A.value){let E=V.value?te.value:ne.value;E===void 0&&(E=L.value,E.__CREATE__&&(E=E[f.value][0])),D(E||null)}else{let E=m.value.map(z=>z[a.value]).indexOf(T.value[a.value])+1;m.value.length<=E&&(E=0),D(m.value[E]||null)}_n(()=>{ee()})},De=()=>{if(T.value===null){let E=m.value[m.value.length-1];o.value&&A.value&&(E=x.value,E===void 0&&(E=U.value)),D(E||null)}else if(o.value&&A.value){let E=V.value?Q.value:de.value;E===void 0&&(E=V.value?re.value:ae.value,E.__CREATE__&&(E=Q.value,E===void 0&&(E=re.value))),D(E||null)}else{let E=m.value.map(z=>z[a.value]).indexOf(T.value[a.value])-1;E<0&&(E=m.value.length-1),D(m.value[E]||null)}_n(()=>{ee()})},fe=E=>j.value.find(z=>z.__VISIBLE__.map(ke=>ke[a.value]).indexOf(E[a.value])!==-1),ee=()=>{let E=O.value.querySelector("[data-pointed]");if(!E)return;let z=E.parentElement.parentElement;o.value&&(z=V.value?E.parentElement.parentElement.parentElement:E.parentElement.parentElement.parentElement.parentElement),E.offsetTop+E.offsetHeight>z.clientHeight+z.scrollTop&&(z.scrollTop=E.offsetTop+E.offsetHeight-z.clientHeight),E.offsetTop{l.value&&(E.length&&r.value?G():g())}),we(N,E=>{if(E){let z=O.value.querySelectorAll("[data-selected]")[0];if(!z)return;let ke=z.parentElement.parentElement;_n(()=>{ke.scrollTop>0||(ke.scrollTop=z.offsetTop)})}}),{pointer:T,canPointGroups:A,isPointed:C,setPointerFirst:G,selectPointer:$,forwardPointer:ge,backwardPointer:De}}function Fl(e,t,n){const{disabled:a,appendToBody:r,openDirection:l,closeOnScroll:i}=Le(e),o=rn().proxy,u=n.multiselect,c=n.dropdown,p=n.iv,f=le(!1),v=le(0),d=P(()=>{if(!r.value||typeof window>"u"||!f.value||!c.value||v.value===-1)return;let O=u.value.getBoundingClientRect(),N=window.getComputedStyle(c.value).maxHeight,m=O.y,j=window.innerHeight-(O.y+O.height);return N=N.match(/%/)?parseInt(N.replace("%"))/100*window.innerHeight:parseInt(N.replace("px","")),{position:"absolute",zIndex:9999,transform:l.value==="top"?"translateY(-100%)":"none",maxHeight:l.value==="top"?N>m?`${m}px`:N:N>j?`${j}px`:void 0,left:`${O.x}px`,right:`${window.innerWidth-(O.x+O.width)}px`,top:l.value==="top"?`${O.y}px`:`${O.y+O.height}px`,bottom:"auto"}}),w=()=>{f.value||a.value||(f.value=!0,t.emit("open",o))},k=()=>{f.value&&(f.value=!1,t.emit("close",o))},B=O=>{const N=[document];function m(j){if(!j||!j.parentNode)return;const V=window.getComputedStyle(j).overflowY;(V==="scroll"||V==="auto")&&N.push(j),m(j.parentNode)}return m(O),N},T=()=>{v.value++},D=()=>{f.value&&(i.value&&k(),T())},g=()=>{f.value&&T()};return we(p,()=>{r.value&&T()},{flush:"post"}),Xn(()=>{r.value&&(B(u.value).forEach(O=>{O.addEventListener("scroll",D)}),window.addEventListener("resize",g))}),wi(()=>{r.value&&(B(u.value).forEach(O=>{O.removeEventListener("scroll",D)}),window.removeEventListener("resize",g))}),we(r,(O,N)=>{B(u.value).forEach(m=>{N&&!O&&m.removeEventListener("scroll",D),O&&m.addEventListener("scroll",D)}),N&&!O&&window.removeEventListener("resize",g),O&&window.addEventListener("resize",g)}),{isOpen:f,open:w,close:k,dropdownStyles:d}}function Ul(e,t,n){const{searchable:a,disabled:r,clearOnBlur:l}=Le(e),i=n.input,o=n.open,u=n.close,c=n.clearSearch,p=n.isOpen,f=n.wrapper,v=n.tags,d=le(!1),w=le(!1),k=P(()=>a.value||r.value?-1:0),B=()=>{a.value&&i.value.blur(),f.value.blur()},T=()=>{a.value&&!r.value&&i.value.focus()},D=(A=!0)=>{r.value||(d.value=!0,A&&o())},g=()=>{d.value=!1,setTimeout(()=>{d.value||(u(),l.value&&c())},1)};return{tabindex:k,isActive:d,mouseClicked:w,blur:B,focus:T,activate:D,deactivate:g,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||D(w.value)},handleFocusOut:()=>{g()},handleCaretClick:()=>{g(),B()},handleMousedown:A=>{w.value=!0,p.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(v.value))?setTimeout(()=>{g()},0):!p.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(i.value))&&D(),setTimeout(()=>{w.value=!1},0)}}}function Vl(e,t,n){const{mode:a,addTagOn:r,openDirection:l,searchable:i,showOptions:o,valueProp:u,groups:c,addOptionOn:p,createTag:f,createOption:v,reverse:d}=Le(e),w=rn().proxy,k=n.iv,B=n.update,T=n.deselect,D=n.search,g=n.setPointer,O=n.selectPointer,N=n.backwardPointer,m=n.forwardPointer,j=n.multiselect,A=n.wrapper,V=n.tags,ae=n.isOpen,re=n.open,L=n.blur,U=n.fo,te=P(()=>f.value||v.value||!1),de=P(()=>r.value!==void 0?r.value:p.value!==void 0?p.value:["enter"]),ne=()=>{a.value==="tags"&&!o.value&&te.value&&i.value&&!c.value&&g(U.value[U.value.map(C=>C[u.value]).indexOf(D.value)])};return{handleKeydown:C=>{t.emit("keydown",C,w);let G,$;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(C.key)!==-1&&a.value==="tags"&&(G=[...j.value.querySelectorAll("[data-tags] > *")].filter(ge=>ge!==V.value),$=G.findIndex(ge=>ge===document.activeElement)),C.key){case"Backspace":if(a.value==="single"||i.value&&[null,""].indexOf(D.value)===-1||k.value.length===0)return;let ge=k.value.filter(De=>!De.disabled&&De.remove!==!1);ge.length&&T(ge[ge.length-1]);break;case"Enter":if(C.preventDefault(),C.keyCode===229)return;if($!==-1&&$!==void 0){B([...k.value].filter((De,fe)=>fe!==$)),$===G.length-1&&(G.length-1?G[G.length-2].focus():i.value?V.value.querySelector("input").focus():A.value.focus());return}if(de.value.indexOf("enter")===-1&&te.value)return;ne(),O();break;case" ":if(!te.value&&!i.value){C.preventDefault(),ne(),O();return}if(!te.value)return!1;if(de.value.indexOf("space")===-1&&te.value)return;C.preventDefault(),ne(),O();break;case"Tab":case";":case",":if(de.value.indexOf(C.key.toLowerCase())===-1||!te.value)return;ne(),O(),C.preventDefault();break;case"Escape":L();break;case"ArrowUp":if(C.preventDefault(),!o.value)return;ae.value||re(),N();break;case"ArrowDown":if(C.preventDefault(),!o.value)return;ae.value||re(),m();break;case"ArrowLeft":if(i.value&&V.value&&V.value.querySelector("input").selectionStart||C.shiftKey||a.value!=="tags"||!k.value||!k.value.length)return;C.preventDefault(),$===-1?G[G.length-1].focus():$>0&&G[$-1].focus();break;case"ArrowRight":if($===-1||C.shiftKey||a.value!=="tags"||!k.value||!k.value.length)return;C.preventDefault(),G.length>$+1?G[$+1].focus():i.value?V.value.querySelector("input").focus():i.value||A.value.focus();break}},handleKeyup:C=>{t.emit("keyup",C,w)},preparePointer:ne}}function Yl(e,t,n){const{classes:a,disabled:r,openDirection:l,showOptions:i,breakTags:o}=Le(e),u=n.isOpen,c=n.isPointed,p=n.isSelected,f=n.isDisabled,v=n.isActive,d=n.canPointGroups,w=n.resolving,k=n.fo,B=P(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...a.value})),T=P(()=>!!(u.value&&i.value&&(!w.value||w.value&&k.value.length)));return{classList:P(()=>{const g=B.value;return{container:[g.container].concat(r.value?g.containerDisabled:[]).concat(T.value&&l.value==="top"?g.containerOpenTop:[]).concat(T.value&&l.value!=="top"?g.containerOpen:[]).concat(v.value?g.containerActive:[]),wrapper:g.wrapper,spacer:g.spacer,singleLabel:g.singleLabel,singleLabelText:g.singleLabelText,multipleLabel:g.multipleLabel,search:g.search,tags:g.tags,tag:[g.tag].concat(r.value?g.tagDisabled:[]),tagWrapper:[g.tagWrapper,o.value?g.tagWrapperBreak:null],tagDisabled:g.tagDisabled,tagRemove:g.tagRemove,tagRemoveIcon:g.tagRemoveIcon,tagsSearchWrapper:g.tagsSearchWrapper,tagsSearch:g.tagsSearch,tagsSearchCopy:g.tagsSearchCopy,placeholder:g.placeholder,caret:[g.caret].concat(u.value?g.caretOpen:[]),clear:g.clear,clearIcon:g.clearIcon,spinner:g.spinner,inifinite:g.inifinite,inifiniteSpinner:g.inifiniteSpinner,dropdown:[g.dropdown].concat(l.value==="top"?g.dropdownTop:[]).concat(!u.value||!i.value||!T.value?g.dropdownHidden:[]),options:[g.options].concat(l.value==="top"?g.optionsTop:[]),group:g.group,groupLabel:O=>{let N=[g.groupLabel];return c(O)?N.push(p(O)?g.groupLabelSelectedPointed:g.groupLabelPointed):p(O)&&d.value?N.push(f(O)?g.groupLabelSelectedDisabled:g.groupLabelSelected):f(O)&&N.push(g.groupLabelDisabled),d.value&&N.push(g.groupLabelPointable),N},groupOptions:g.groupOptions,option:(O,N)=>{let m=[g.option];return c(O)?m.push(p(O)?g.optionSelectedPointed:g.optionPointed):p(O)?m.push(f(O)?g.optionSelectedDisabled:g.optionSelected):(f(O)||N&&f(N))&&m.push(g.optionDisabled),m},noOptions:g.noOptions,noResults:g.noResults,assist:g.assist,fakeInput:g.fakeInput}}),showDropdown:T}}function Gl(e,t,n){const{limit:a,infinite:r}=Le(e),l=n.isOpen,i=n.offset,o=n.search,u=n.pfo,c=n.eo,p=le(null),f=le(null),v=P(()=>i.value{const{isIntersecting:B,target:T}=k[0];if(B){const D=T.offsetParent,g=D.scrollTop;i.value+=a.value==-1?10:a.value,_n(()=>{D.scrollTop=g})}},w=()=>{l.value&&i.value{r.value&&w()}),we(o,()=>{r.value&&(i.value=a.value,w())},{flush:"post"}),we(c,()=>{r.value&&w()},{immediate:!1,flush:"post"}),Xn(()=>{window&&window.IntersectionObserver&&(p.value=new IntersectionObserver(d))}),{hasMore:v,infiniteLoader:f}}function Kl(e,t,n){const{placeholder:a,id:r,valueProp:l,label:i,mode:o,groupLabel:u,aria:c,searchable:p}=Le(e),f=n.pointer,v=n.iv,d=n.hasSelected,w=n.multipleLabelText,k=le(null),B=P(()=>{let L=[];return r&&r.value&&L.push(r.value),L.push("assist"),L.join("-")}),T=P(()=>{let L=[];return r&&r.value&&L.push(r.value),L.push("multiselect-options"),L.join("-")}),D=P(()=>{let L=[];if(r&&r.value&&L.push(r.value),f.value)return L.push(f.value.group?"multiselect-group":"multiselect-option"),L.push(f.value.group?f.value.index:f.value[l.value]),L.join("-")}),g=P(()=>a.value),O=P(()=>o.value!=="single"),N=P(()=>{let L="";return o.value==="single"&&d.value&&(L+=v.value[i.value]),o.value==="multiple"&&d.value&&(L+=w.value),o.value==="tags"&&d.value&&(L+=v.value.map(U=>U[i.value]).join(", ")),L}),m=P(()=>{let L={...c.value};return p.value&&(L["aria-labelledby"]=L["aria-labelledby"]?`${B.value} ${L["aria-labelledby"]}`:B.value,N.value&&L["aria-label"]&&(L["aria-label"]=`${N.value}, ${L["aria-label"]}`)),L}),j=L=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-option"),U.push(L[l.value]),U.join("-")},A=L=>{let U=[];return r&&r.value&&U.push(r.value),U.push("multiselect-group"),U.push(L.index),U.join("-")},V=L=>{let U=[];return U.push(L),U.join(" ")},ae=L=>{let U=[];return U.push(L),U.join(" ")},re=L=>`${L} ❎`;return Xn(()=>{if(r&&r.value&&document&&document.querySelector){let L=document.querySelector(`[for="${r.value}"]`);k.value=L?L.innerText:null}}),{arias:m,ariaLabel:N,ariaAssist:B,ariaControls:T,ariaPlaceholder:g,ariaMultiselectable:O,ariaActiveDescendant:D,ariaOptionId:j,ariaOptionLabel:V,ariaGroupId:A,ariaGroupLabel:ae,ariaTagLabel:re}}function Wl(e,t,n){const{locale:a,fallbackLocale:r}=Le(e);return{localize:i=>!i||typeof i!="object"?i:i&&i[a.value]?i[a.value]:i&&a.value&&i[a.value.toUpperCase()]?i[a.value.toUpperCase()]:i&&i[r.value]?i[r.value]:i&&r.value&&i[r.value.toUpperCase()]?i[r.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function Xl(e,t,n){const a=le(null),r=le(null),l=le(null),i=le(null),o=le(null);return{multiselect:a,wrapper:r,tags:l,input:i,dropdown:o}}function Ql(e,t,n,a={}){return n.forEach(r=>{r&&(a={...a,...r(e,t,a)})}),a}var Ka={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1}},setup(e,t){return Ql(e,t,[Xl,Wl,Ml,Rl,Fl,jl,$l,Ul,ql,Gl,zl,Vl,Yl,Kl])},beforeMount(){var e,t;((t=(e=this.$root.constructor)==null?void 0:e.version)!=null&&t.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Zl=["id","dir"],Jl=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],eo=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],to=["onKeyup","aria-label"],no=["onClick"],ao=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],ro=["innerHTML"],io=["id"],lo=["id","aria-label","aria-selected"],oo=["data-pointed","onMouseenter","onMousedown"],so=["innerHTML"],uo=["aria-label"],co=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],fo=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],po=["innerHTML"],ho=["innerHTML"],go=["value"],vo=["name","value"],mo=["name","value"],bo=["id"];function yo(e,t,n,a,r,l){return M(),q("div",{ref:"multiselect",class:K(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...i)=>e.handleFocusIn&&e.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>e.handleFocusOut&&e.handleFocusOut(...i)),onKeyup:t[12]||(t[12]=(...i)=>e.handleKeyup&&e.handleKeyup(...i)),onKeydown:t[13]||(t[13]=(...i)=>e.handleKeydown&&e.handleKeydown(...i))},[h("div",ca({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[W(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(M(),q("input",ca({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[2]||(t[2]=et((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,eo)):W("v-if",!0),W(" Tags (with search) "),n.mode=="tags"?(M(),q("div",{key:1,class:K(e.classList.tags),"data-tags":""},[(M(!0),q(Be,null,Ge(e.iv,(i,o,u)=>ye(e.$slots,"tag",{option:i,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(M(),q("span",{class:K([e.classList.tag,i.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:or(c=>e.handleTagRemove(i,c),["enter"]),key:u,"aria-label":e.ariaTagLabel(e.localize(i[n.label]))},[h("span",{class:K(e.classList.tagWrapper)},F(e.localize(i[n.label])),3),!n.disabled&&!i.disabled?(M(),q("span",{key:0,class:K(e.classList.tagRemove),onClick:et(c=>e.handleTagRemove(i,c),["stop"])},[h("span",{class:K(e.classList.tagRemoveIcon)},null,2)],10,no)):W("v-if",!0)],42,to))])),256)),h("div",{class:K(e.classList.tagsSearchWrapper),ref:"tags"},[W(" Used for measuring search width "),h("span",{class:K(e.classList.tagsSearchCopy)},F(e.search),3),W(" Actual search input "),n.searchable&&!n.disabled?(M(),q("input",ca({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...i)=>e.handleSearchInput&&e.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>e.handleKeypress&&e.handleKeypress(...i)),onPaste:t[5]||(t[5]=et((...i)=>e.handlePaste&&e.handlePaste(...i),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,ao)):W("v-if",!0)],2)],2)):W("v-if",!0),W(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?ye(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[h("div",{class:K(e.classList.singleLabel)},[h("span",{class:K(e.classList.singleLabelText)},F(e.localize(e.iv[n.label])),3)],2)]):W("v-if",!0),W(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?ye(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[h("div",{class:K(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,ro)]):W("v-if",!0),W(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?ye(e.$slots,"placeholder",{key:4},()=>[h("div",{class:K(e.classList.placeholder),"aria-hidden":"true"},F(n.placeholder),3)]):W("v-if",!0),W(" Spinner "),n.loading||e.resolving?ye(e.$slots,"spinner",{key:5},()=>[h("span",{class:K(e.classList.spinner),"aria-hidden":"true"},null,2)]):W("v-if",!0),W(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?ye(e.$slots,"clear",{key:6,clear:e.clear},()=>[h("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:K(e.classList.clear),onClick:t[6]||(t[6]=(...i)=>e.clear&&e.clear(...i)),onKeyup:t[7]||(t[7]=or((...i)=>e.clear&&e.clear(...i),["enter"]))},[h("span",{class:K(e.classList.clearIcon)},null,2)],34)]):W("v-if",!0),W(" Caret "),n.caret&&n.showOptions?ye(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[h("span",{class:K(e.classList.caret),onClick:t[8]||(t[8]=(...i)=>e.handleCaretClick&&e.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):W("v-if",!0)],16,Jl),W(" Options "),(M(),en(yi,{to:"body",disabled:!n.appendToBody},[h("div",{class:K(e.classList.dropdown),tabindex:"-1",style:bi(e.dropdownStyles),ref:"dropdown"},[ye(e.$slots,"beforelist",{options:e.fo}),h("ul",{class:K(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(M(!0),q(Be,{key:0},Ge(e.fg,(i,o,u)=>(M(),q("li",{class:K(e.classList.group),key:u,id:e.ariaGroupId(i),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),"aria-selected":e.isSelected(i),role:"option"},[i.__CREATE__?W("v-if",!0):(M(),q("div",{key:0,class:K(e.classList.groupLabel(i)),"data-pointed":e.isPointed(i),onMouseenter:c=>e.setPointer(i,o),onMousedown:et(c=>e.handleGroupClick(i),["prevent"])},[ye(e.$slots,"grouplabel",{group:i,isSelected:e.isSelected,isPointed:e.isPointed},()=>[h("span",{innerHTML:e.localize(i[n.groupLabel])},null,8,so)])],42,oo)),h("ul",{class:K(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(i[n.groupLabel])),role:"group"},[(M(!0),q(Be,null,Ge(i.__VISIBLE__,(c,p,f)=>(M(),q("li",{class:K(e.classList.option(c,i)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:f,onMouseenter:v=>e.setPointer(c),onMousedown:et(v=>e.handleOptionClick(c),["prevent"]),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[ye(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[h("span",null,F(e.localize(c[n.label])),1)])],42,co))),128))],10,uo)],10,lo))),128)):(M(!0),q(Be,{key:1},Ge(e.fo,(i,o,u)=>(M(),q("li",{class:K(e.classList.option(i)),"data-pointed":e.isPointed(i),"data-selected":e.isSelected(i)||void 0,key:u,onMouseenter:c=>e.setPointer(i),onMousedown:et(c=>e.handleOptionClick(i),["prevent"]),id:e.ariaOptionId(i),"aria-selected":e.isSelected(i),"aria-label":e.ariaOptionLabel(e.localize(i[n.label])),role:"option"},[ye(e.$slots,"option",{option:i,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[h("span",null,F(e.localize(i[n.label])),1)])],42,fo))),128))],10,io),e.noOptions?ye(e.$slots,"nooptions",{key:0},()=>[h("div",{class:K(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,po)]):W("v-if",!0),e.noResults?ye(e.$slots,"noresults",{key:1},()=>[h("div",{class:K(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,ho)]):W("v-if",!0),n.infinite&&e.hasMore?(M(),q("div",{key:2,class:K(e.classList.inifinite),ref:"infiniteLoader"},[ye(e.$slots,"infinite",{},()=>[h("span",{class:K(e.classList.inifiniteSpinner)},null,2)])],2)):W("v-if",!0),ye(e.$slots,"afterlist",{options:e.fo})],6)],8,["disabled"])),W(" Hacky input element to show HTML5 required warning "),n.required?(M(),q("input",{key:0,class:K(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,go)):W("v-if",!0),W(" Native input support "),n.nativeSupport?(M(),q(Be,{key:1},[n.mode=="single"?(M(),q("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,vo)):(M(!0),q(Be,{key:1},Ge(e.plainValue,(i,o)=>(M(),q("input",{type:"hidden",name:`${n.name}[]`,value:i,key:o},null,8,mo))),128))],64)):W("v-if",!0),W(" Screen reader assistive text "),n.searchable&&e.hasSelected?(M(),q("div",{key:2,class:K(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},F(e.ariaLabel),11,bo)):W("v-if",!0),W(" Create height for empty input "),h("div",{class:K(e.classList.spacer)},null,2)],42,Zl)}Ka.render=yo;Ka.__file="src/Multiselect.vue";const Zn=e=>(_i("data-v-b5ac2d49"),e=e(),Si(),e),wo=["data-gap-duration","onSubmit"],_o={class:"grid grid-cols-2 gap-2 sm:grid-cols-4"},So=Zn(()=>h("span",{class:"text-red-500"},"*",-1)),Eo=Zn(()=>h("span",{class:"text-red-500"},"*",-1)),ko=Zn(()=>h("span",{class:"text-red-500"},"*",-1)),Oo=Zn(()=>h("span",{class:"text-red-500"},"*",-1)),xo=["placeholder"],Co={class:"flex justify-end gap-2"},To={key:0,type:"submit",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 rounded bg-green-500 px-3 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-green-400 focus:outline-none focus:ring active:bg-green-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600"},Lo={key:1,type:"submit",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 rounded bg-rose-500 px-3 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-rose-400 focus:outline-none focus:ring active:bg-rose-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600"},Do=["disabled"],Po=["data-gap-duration"],Io={class:"flex items-start justify-between gap-2"},Ao={class:"block"},No={class:"flex gap-2"},$o={class:"grid grid-cols-2 gap-2 sm:grid-cols-4"},Mo={class:"block"},jo={key:0},Ro=["innerHTML"],Ho=jt({__name:"TimeEntry",props:{entry:{default:()=>({is_creating:!0,is_editing:!1,is_synced:!1,is_live_clocking:!1,start_time:"",end_time:"",duration:"",date:"",description:"",project:null})}},emits:["add"],setup(e,{emit:t}){const n=e,{$moment:a}=qt(),r=ln(),{addProject:l,addEntry:i,updateEntry:o,deleteEntry:u,toggleEntrySynced:c}=r,{projects:p,selectedDay:f,todaysEntries:v}=an(r),d=le();we(()=>n.entry.project,()=>{d.value=Object.create(null,Object.getOwnPropertyDescriptors(n.entry))},{immediate:!0});const w=le("00:00:00"),k=P(()=>d.value.date||f.value),B=P({get(){const x=d.value.is_live_clocking?new Date().toLocaleDateString("en-CA"):k.value,C=a(k.value+" "+d.value.start_time,"YYYY-M-D HH:mm"),G=(d.value.end_time!=="00:00"?a(x):a(x).add(1,"day")).set({hours:parseInt(d.value.end_time.split(":")[0]),minutes:parseInt(d.value.end_time.split(":")[1])});if(a(d.value.start_time,"HH:mm",!0).isValid()&&a(d.value.end_time,"HH:mm",!0).isValid()){const $=a.duration(G.diff(C));if($.asMilliseconds()>0)return $.format("HH:mm",{trim:!1})}},set(x){const G=a(k.value+" "+d.value.start_time,"YYYY-M-D HH:mm").add(a.duration(x)).format("HH:mm");a(x,"HH:mm",!0).isValid()&&a(d.value.start_time,"HH:mm",!0).isValid()&&(d.value.end_time=G)}}),T=P(()=>a(f.value).isSame(a(),"day")),D=P(()=>{if(!d.value.id)return;const x=v.value.findIndex(C=>C.id===d.value.id);if(x!==0)return v.value[x-1]}),g=P(()=>{if(!d.value.id)return;const x=v.value.findIndex(C=>C.id===d.value.id);if(x!==v.value.length)return v.value[x+1]}),O=P(()=>{if(D&&D.value){const{$moment:x}=qt();return x.duration(D.value.end_time).asMinutes()>x.duration(d.value.start_time).asMinutes()}return!1}),N=P(()=>{if(g&&g.value){const{$moment:x}=qt();return x.duration(d.value.end_time).asMinutes()>x.duration(g.value.start_time).asMinutes()}return!1}),m=P(()=>{const{$moment:x}=qt();if(D.value&&!O.value){const C=D.value.end_time!==d.value.start_time,G=x.duration(x(d.value.start_time,"HH:mm").diff(x(D.value.end_time,"HH:mm"))).format("HH:mm",{trim:!1});return C?G:!1}return!1}),j=P(()=>O.value),A=P(()=>N.value),V=P(()=>{const x=d.value.is_live_clocking?new Date().toLocaleDateString("en-CA"):k.value,C=a(k.value+" "+d.value.start_time,"YYYY-M-D HH:mm"),G=(d.value.end_time!=="00:00"?a(x):a(x).add(1,"day")).set({hours:parseInt(d.value.end_time.split(":")[0]),minutes:parseInt(d.value.end_time.split(":")[1])});return a(d.value.start_time,"HH:mm",!0).isValid()&&a(d.value.end_time,"HH:mm",!0).isValid()?a.duration(G.diff(C)).asMilliseconds()<=0:!1});Xn(()=>{d.value.is_creating&&ne()}),we(B,x=>{d.value.duration=x||""});function ae(){(!d.value.start_time||!d.value.end_time)&&!d.value.is_live_clocking?re():d.value.is_live_clocking?L():d.value.id?te():U()}async function re(){d.value.start_time||(d.value.start_time=a().format("HH:mm")),d.value.is_live_clocking=!0,ne(),await Q(d.value)}async function L(){d.value.end_time=d.value.end_time||a().format("HH:mm"),d.value.is_live_clocking=!1,await o(d.value)}async function U(){d.value.is_creating=!1,await Q(d.value),t("add")}async function te(){d.value.is_creating=!1,d.value.is_editing=!1,await o(d.value)}function de(){d.value.is_editing=!1,d.value=JSON.parse(JSON.stringify(n.entry))}function ne(){setInterval(()=>{const x=a(k.value+" "+d.value.start_time,"YYYY-M-D HH:mm"),C=a(),G=a.duration(C.diff(x)).format("HH:mm:ss",{trim:!1});w.value=G},100)}function Q(x){i({...x,date:k.value})}return(x,C)=>{const G=Ni;return b(d).is_creating||b(d).is_editing?(M(),q("form",{key:0,class:K(["relative flex w-full flex-col gap-2 rounded border bg-gray-100 p-4 dark:bg-gray-800",[b(O)||b(N)?"border-red-500":"border-transparent",{"has-gap mt-10":b(m)}]]),"data-gap-duration":b(m),onSubmit:et(ae,["prevent"])},[h("div",_o,[h("div",null,[h("label",null,[ft(F(x.$t("Début")),1),So]),ue(G,{modelValue:b(d).start_time,"onUpdate:modelValue":C[0]||(C[0]=$=>b(d).start_time=$),class:K({"border !border-red-500":b(j)})},null,8,["modelValue","class"])]),h("div",null,[h("label",null,[ft(F(x.$t("Fin")),1),Eo]),ue(G,{modelValue:b(d).end_time,"onUpdate:modelValue":C[1]||(C[1]=$=>b(d).end_time=$),class:K({"border !border-red-500":b(A)})},null,8,["modelValue","class"])]),h("div",null,[h("label",null,[ft(F(x.$t("Durée")),1),ko]),ue(G,{modelValue:b(B),"onUpdate:modelValue":C[2]||(C[2]=$=>Tt(B)?B.value=$:null),class:K(["read-only:pointer-events-none",{"border !border-red-500":b(V)}]),format:"HH:MM",placeholder:b(d).is_live_clocking?b(w):void 0,readonly:b(d).is_live_clocking},null,8,["modelValue","class","placeholder","readonly"])]),h("div",null,[h("label",null,F(x.$t("Date")),1),at(h("input",{"onUpdate:modelValue":C[3]||(C[3]=$=>b(d).date=$),class:K([{"has-value":b(d).date},"form-control form-input-bordered form-input w-full"]),type:"date"},null,2),[[Ln,b(d).date]])])]),h("div",null,[h("label",null,[ft(F(x.$t("Projet")),1),Oo]),ue(b(Ka),{modelValue:b(d).project,"onUpdate:modelValue":C[4]||(C[4]=$=>b(d).project=$),options:b(p),"track-by":"name",label:"name","value-prop":"id",object:!0,placeholder:x.$t("Choisir ou créer..."),classes:b(Nl),appendNewOption:!1,searchable:"",createOption:"",onCreate:b(l)},null,8,["modelValue","options","placeholder","classes","onCreate"])]),h("div",null,[h("label",null,F(x.$t("Description")),1),at(h("textarea",{"onUpdate:modelValue":C[5]||(C[5]=$=>b(d).description=$),class:"form-control form-input-bordered form-input block h-auto w-full py-3 [form-sizing:content]",rows:"2",placeholder:`${x.$t("Description")}...`},null,8,xo),[[Ln,b(d).description]])]),h("div",Co,[b(T)&&!b(d).is_live_clocking&&!b(d).end_time?(M(),q("button",To,[ft(F(x.$t("Démarrer"))+" ",1),ue(b(el),{class:"h-3 w-4"})])):b(T)&&b(d).is_live_clocking?(M(),q("button",Lo,[ft(F(x.$t("Arrêter"))+" ",1),ue(b(il),{class:"h-3 w-4"})])):b(d).id&&b(d).is_creating?(M(),q("button",{key:2,type:"button",class:"appearance-none bg-transparent px-2 text-sm font-bold text-gray-400 transition hover:text-gray-300 active:text-gray-500 dark:text-gray-500 dark:hover:bg-gray-800 dark:hover:text-gray-400 dark:active:text-gray-600",onClick:C[6]||(C[6]=$=>b(u)(x.entry))},F(x.$t("Annuler")),1)):W("",!0),b(d).is_editing?(M(),q("button",{key:3,type:"button",class:"appearance-none bg-transparent px-2 text-sm font-bold text-gray-400 transition hover:text-gray-300 active:text-gray-500 dark:text-gray-500 dark:hover:bg-gray-800 dark:hover:text-gray-400 dark:active:text-gray-600",onClick:de},F(x.$t("Annuler")),1)):W("",!0),h("button",{type:"submit",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 rounded bg-primary-500 px-3 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",disabled:!(b(d).start_time&&b(d).end_time&&b(d).duration&&b(d).project)},F(b(d).is_creating?x.$t("Ajouter"):x.$t("Sauvegarder")),9,Do)])],42,wo)):(M(),q("div",{key:1,class:K(["relative flex w-full flex-col gap-2 rounded border bg-gray-100 p-4 dark:bg-gray-800",[b(O)||b(N)?"border-red-500":"border-transparent",{"has-gap mt-10":b(m),"opacity-50":x.entry.is_synced}]]),"data-gap-duration":b(m)},[h("div",Io,[h("div",null,[h("label",null,F(x.$t("Projet")),1),h("strong",Ao,F(b(d).project.name),1)]),h("div",No,[h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:C[7]||(C[7]=$=>b(c)(x.entry))},[ue(b(hl),{class:"h-4"})]),h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-primary-500 font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 dark:text-gray-800 dark:ring-gray-600",onClick:C[8]||(C[8]=$=>b(d).is_editing=!0)},[ue(b(Ai),{class:"h-5"})]),h("button",{type:"button",class:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded bg-red-500 font-bold text-white shadow ring-primary-200 transition hover:bg-red-400 focus:outline-none focus:ring active:bg-red-600 dark:text-gray-800 dark:ring-gray-600",onClick:C[9]||(C[9]=$=>b(u)(x.entry))},[ue(b(Ca),{class:"h-5"})])])]),h("div",$o,[h("div",null,[h("label",null,F(x.$t("Début")),1),h("strong",{class:K(["block",{"text-red-500":b(j)}])},F(b(d).start_time),3)]),h("div",null,[h("label",null,F(x.$t("Fin")),1),h("strong",{class:K(["block",{"text-red-500":b(A)}])},F(b(d).end_time),3)]),h("div",null,[h("label",null,F(x.$t("Durée")),1),h("strong",{class:K(["block",{"text-red-500":b(V)}])},F(b(d).duration),3)]),h("div",null,[h("label",null,F(x.$t("Date")),1),h("strong",Mo,F(b(a)(b(d).date).format("L")),1)])]),b(d).description?(M(),q("div",jo,[h("label",null,F(x.$t("Description")),1),h("strong",{class:"v-html block",innerHTML:b($r)(b(d).description,{defaultProtocol:"https",target:"_blank",nl2br:!0,rel:"noopener noreferrer"})},null,8,Ro)])):W("",!0)],10,Po))}}});const Bo=Rt(Ho,[["__scopeId","data-v-b5ac2d49"],["__file","TimeEntry.vue"]]),qo={name:"Tab",props:{title:{type:String,default:""}}};function zo(e,t,n,a,r,l){return ye(e.$slots,"default")}const Fo=Rt(qo,[["render",zo],["__file","Tab.vue"]]),Uo=jt({setup(){const e=Ei(),t=ln(),{selectedTabIndex:n}=an(t);return()=>{const a=e.default?e.default():null,r=a==null?void 0:a.filter(i=>i.type.name==="Tab"),l=r==null?void 0:r.at(n.value);return Lt("div",[Lt("div",{class:"grid grid-flow-row auto-cols-fr border-b dark:border-gray-800"},r==null?void 0:r.map((i,o)=>{var u;return Lt("button",{class:["relative p-4 pb-3 text-sm border-b-4 border-b-transparent border-l dark:border-l-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 row-start-1 focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 first:border-l-0",{"font-bold text-primary-500 after:absolute after:w-full after:border-b-4 after:left-0 after:-bottom-1 after:border-b-primary-500 after:dark:border-b-primary-500 ":o===n.value}],type:"button",onClick:()=>n.value=o},(u=i.props)==null?void 0:u.title)})),Lt("div",{key:n.value,class:"p-4 py-6 flex flex-col gap-2 h-full overflow-y-auto relative"},l)])}}}),Vo=Rt(Uo,[["__file","Tabs.vue"]]),Yo={version:"1.1",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},Go=h("g",null,[h("path",{d:"m24.02 39.902c2.082 0 3.7695-1.6875 3.7695-3.7695 0-2.0781-1.6875-3.7656-3.7695-3.7656-2.0781 0-3.7656 1.6875-3.7656 3.7656 0 2.082 1.6875 3.7695 3.7656 3.7695z"}),h("path",{d:"m13.766 51.48c2.082 0 3.7695-1.6875 3.7695-3.7695 0-2.0781-1.6875-3.7656-3.7695-3.7656-2.0781 0-3.7656 1.6875-3.7656 3.7656 0 2.082 1.6875 3.7695 3.7656 3.7695z"}),h("path",{d:"m78.91 11.43c-4.2617-2.2109-9.5078-0.54297-11.719 3.7188l-9.6445 18.621c-0.050781 0.10156-0.09375 0.20312-0.13281 0.30469-4.7227-0.16016-9.4062 1.9258-12.562 5.6211-3.7188 4.3516-8.293 9.1016-12.203 11.527-5.5742 3.457-10.18 4.7031-13.043 5.1445-1.6719 0.25781-3.0312 1.3359-3.6914 2.7344-0.69141 1.457-0.64062 3.3711 0.70313 4.8516 2.918 3.2188 8.6133 8.4883 19.055 15.129 7.2305 4.6016 13.715 7.1445 17.207 8.3242 2.6719 0.90234 5.5312-0.13281 7.0664-2.4297 1.9414-2.9062 5.3477-8.3867 8.2734-15.055 2.1641-4.9297 4.0273-10.016 5.8125-15.09 1.5078-4.2812 0.82812-8.8008-1.4609-12.367l10.055-19.301c2.2188-4.2656 0.55469-9.5234-3.7148-11.734zm-10.129 27.055 9.2305-17.723c0.89062-1.7148 0.22266-3.8281-1.4922-4.7148-1.7148-0.88672-3.8203-0.21875-4.7109 1.4961l-9.1602 17.688c0.30469 0.12891 0.60937 0.27344 0.91406 0.42578l3.3477 1.6953c0.66016 0.33594 1.2812 0.71484 1.8711 1.1328zm0.34375 14.621c-0.36719 1.0547-0.76172 2.1484-1.1641 3.2656l-21.102-11.074c0.67969-0.75781 1.332-1.5039 1.9492-2.2266 3.1406-3.6758 8.293-4.8594 12.402-2.7773l3.3477 1.6992c4.125 2.0898 6.0742 6.8281 4.5664 11.113zm-33.734 2.5352c2.5664-1.5938 5.2422-3.918 7.7539-6.418l0.035157 0.015625 22.949 12.043c-0.88281 2.2969-1.7891 4.543-2.6719 6.5547-2.7617 6.293-5.9961 11.5-7.8359 14.254-0.26172 0.39062-0.6875 0.51953-1.0781 0.38672-1.5352-0.51562-3.7305-1.332-6.3438-2.5156 1.2148-1.2773 2.9727-3.3711 4.6602-6.2422 0.73047-1.2422 0.30859-2.8164-0.94141-3.5195-1.2461-0.70312-2.8477-0.26562-3.5781 0.97656-1.3555 2.3086-3.0117 4.582-5.043 6.3555-1.5469-0.83594-3.168-1.7773-4.8359-2.8359-1.3516-0.86328-2.6211-1.6992-3.8086-2.5039 0.61719-0.41797 1.2969-0.92578 2.0234-1.5508 1.0938-0.9375 1.2031-2.5586 0.24219-3.6211-0.96094-1.0586-2.625-1.1602-3.7188-0.22266-1.6094 1.3789-2.7344 1.9062-3.1875 2.082-4.1367-3.1094-6.9141-5.6641-8.707-7.5273 3.4766-0.64453 8.3906-2.1797 14.086-5.7109z","fill-rule":"evenodd"})],-1),Ko=[Go];function Wo(e,t){return M(),q("svg",Yo,Ko)}const Xo={render:Wo};/*! * vue-draggable-next v2.2.0 diff --git a/_nuxt/index.bafef1ea.js b/_nuxt/index.bafef1ea.js new file mode 100644 index 0000000..be40e23 --- /dev/null +++ b/_nuxt/index.bafef1ea.js @@ -0,0 +1 @@ +import{c as m,ad as me,ae as pe,U as ve,af as we,ag as L,ah as Z,r as H,ai as ye,aj as he,ak as ge,al as je,V as Se,S as be,o as Ee,ab as Oe,am as De,a9 as xe,an as He,ao as O,ap as x,aq as P,ar as Y,as as _,l as Ce,at as Me,au as z,av as J,aw as B,ax as _e,ay as Ae,az as ke}from"./entry.2efdeb07.js";function $e(e){var s;const a=L(e);return(s=a==null?void 0:a.$el)!=null?s:a}const C=me?window:void 0;function U(...e){let s,a,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,n,o]=e,s=C):[s,a,n,o]=e,!s)return pe;Array.isArray(a)||(a=[a]),Array.isArray(n)||(n=[n]);const p=[],d=()=>{p.forEach(v=>v()),p.length=0},i=(v,g,j,b)=>(v.addEventListener(g,j,b),()=>v.removeEventListener(g,j,b)),c=ve(()=>[$e(s),L(o)],([v,g])=>{if(d(),!v)return;const j=we(g)?{...g}:g;p.push(...a.flatMap(b=>n.map(S=>i(v,b,S,j))))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Z(f),f}function Te(e){return typeof e=="function"?e:typeof e=="string"?s=>s.key===e:Array.isArray(e)?s=>e.includes(s.key):()=>!0}function qe(...e){let s,a,n={};e.length===3?(s=e[0],a=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(s=!0,a=e[0],n=e[1]):(s=e[0],a=e[1]):(s=!0,a=e[0]);const{target:o=C,eventName:p="keydown",passive:d=!1,dedupe:i=!1}=n,c=Te(s);return U(o,p,v=>{v.repeat&&L(i)||c(v)&&a(v)},d)}function Le(){const e=H(!1);return be()&&Ee(()=>{e.value=!0}),e}function Ne(e){const s=Le();return m(()=>(s.value,!!e()))}function T(e,s={}){const{window:a=C}=s,n=Ne(()=>a&&"matchMedia"in a&&typeof a.matchMedia=="function");let o;const p=H(!1),d=f=>{p.value=f.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",d):o.removeListener(d))},c=ye(()=>{n.value&&(i(),o=a.matchMedia(L(e)),"addEventListener"in o?o.addEventListener("change",d):o.addListener(d),p.value=o.matches)});return Z(()=>{c(),i(),o=void 0}),p}const ze={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Je(e,s={}){function a(i,c){let f=e[i];return c!=null&&(f=he(f,c)),typeof f=="number"&&(f=`${f}px`),f}const{window:n=C}=s;function o(i){return n?n.matchMedia(i).matches:!1}const p=i=>T(`(min-width: ${a(i)})`,s),d=Object.keys(e).reduce((i,c)=>(Object.defineProperty(i,c,{get:()=>p(c),enumerable:!0,configurable:!0}),i),{});return Object.assign(d,{greater(i){return T(`(min-width: ${a(i,.1)})`,s)},greaterOrEqual:p,smaller(i){return T(`(max-width: ${a(i,-.1)})`,s)},smallerOrEqual(i){return T(`(max-width: ${a(i)})`,s)},between(i,c){return T(`(min-width: ${a(i)}) and (max-width: ${a(c,-.1)})`,s)},isGreater(i){return o(`(min-width: ${a(i,.1)})`)},isGreaterOrEqual(i){return o(`(min-width: ${a(i)})`)},isSmaller(i){return o(`(max-width: ${a(i,-.1)})`)},isSmallerOrEqual(i){return o(`(max-width: ${a(i)})`)},isInBetween(i,c){return o(`(min-width: ${a(i)}) and (max-width: ${a(c,-.1)})`)},current(){const i=Object.keys(e).map(c=>[c,p(c)]);return m(()=>i.filter(([,c])=>c.value).map(([c])=>c))}})}const V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},I="__vueuse_ssr_handlers__",Pe=Ye();function Ye(){return I in V||(V[I]=V[I]||{}),V[I]}function Be(e,s){return Pe[e]||s}function Ve(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ie={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Q="vueuse-storage";function Ke(e,s,a,n={}){var o;const{flush:p="pre",deep:d=!0,listenToStorageChanges:i=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:v,window:g=C,eventFilter:j,onError:b=l=>{console.error(l)}}=n,S=(v?ge:H)(s);if(!a)try{a=Be("getDefaultStorage",()=>{var l;return(l=C)==null?void 0:l.localStorage})()}catch(l){b(l)}if(!a)return S;const E=L(s),M=Ve(E),y=(o=n.serializer)!=null?o:Ie[M],{pause:K,resume:A}=je(S,()=>W(S.value),{flush:p,deep:d,eventFilter:j});return g&&i&&(U(g,"storage",k),U(g,Q,q)),k(),S;function W(l){try{if(l==null)a.removeItem(e);else{const w=y.write(l),D=a.getItem(e);D!==w&&(a.setItem(e,w),g&&g.dispatchEvent(new CustomEvent(Q,{detail:{key:e,oldValue:D,newValue:w,storageArea:a}})))}}catch(w){b(w)}}function N(l){const w=l?l.newValue:a.getItem(e);if(w==null)return c&&E!==null&&a.setItem(e,y.write(E)),E;if(!l&&f){const D=y.read(w);return typeof f=="function"?f(D,E):M==="object"&&!Array.isArray(D)?{...E,...D}:D}else return typeof w!="string"?w:y.read(w)}function q(l){k(l.detail)}function k(l){if(!(l&&l.storageArea!==a)){if(l&&l.key==null){S.value=E;return}if(!(l&&l.key!==e)){K();try{(l==null?void 0:l.newValue)!==y.write(S.value)&&(S.value=N(l))}catch(w){b(w)}finally{l?Se(A):A()}}}}}function R(e,s,a={}){const{window:n=C}=a;return Ke(e,s,n==null?void 0:n.localStorage,a)}const Re=Oe("store",()=>{const e=De(),s=xe(),a=Ce(),{$moment:n}=a,{t:o}=a.$i18n,p={toFirestore(t){return delete t.id,{...t,date:n(t.date).startOf("day").toDate()}},fromFirestore(t,r){const u=Me.fromFirestore(t);return u.date=n(u.date.toDate()).format("YYYY-MM-DD"),u}},d=H(new Date().toLocaleDateString("en-CA")),i=R("filter",H("daily")),c=R("selectedTabIndex",H(0)),f=R("sort",H("name")),v=He(m(()=>{var t;return(t=s.value)!=null&&t.uid?O(x(e,"users"),s.value.uid):null})),g=H(!1),j=m(()=>{var t;return((t=v.value)==null?void 0:t.weekTarget)||"40:00"}),b=m(()=>n(d.value).startOf("week").toDate()),S=m(()=>n(d.value).endOf("week").toDate()),E=P(m(()=>s.value?Y(x(e,"projects"),_("user","==",s.value.uid)):null),{wait:!0,ssrKey:"projects"}),M=P(m(()=>s.value?Y(x(e,"priorities"),_("user","==",s.value.uid)):null),{wait:!0,ssrKey:"priorities"}),y=P(m(()=>s.value?Y(x(e,"entries").withConverter(p),_("user","==",s.value.uid),_("date",">=",b.value),_("date","<=",S.value)):null),{wait:!0,ssrKey:"entries"}),K=m(()=>[...y.value].sort((t,r)=>{const u=n(t.date+" "+t.start_time,"YYYY-M-D HH:mm");return n(r.date+" "+r.start_time,"YYYY-M-D HH:mm").isBefore(u)?1:-1}).filter(t=>n(d.value).isSame(t.date,"day"))),A=m(()=>{const t=Object.values(N.value).reduce((r,u)=>(r=n.duration(r).add(n.duration(u)),r),n.duration());return n.duration(t).format("HH:mm",{trim:!1})}),W=m(()=>n.duration(j.value).subtract(n.duration(A.value)).format("HH:mm",{trim:!1})),N=m(()=>y.value.filter(t=>!t.is_creating).reduce((t,r)=>{const u=n(r.date).locale("en").format("dddd").toLowerCase();return t[u]=n.duration(t[u]).add(n.duration(r.duration)).format("HH:mm",{trim:!1}),t},{sunday:"00:00",monday:"00:00",tuesday:"00:00",wednesday:"00:00",thursday:"00:00",friday:"00:00",saturday:"00:00"})),q=m(()=>{const t=[...y.value].filter(r=>!r.is_creating).reduce((r,u)=>{const h=u.project;return r[h.name]?r[h.name]=n.duration(r[h.name]).add(u.duration).format("HH:mm",{trim:!1}):r[h.name]=u.duration,r},{});return Object.entries(t).sort((r,u)=>n.duration(u[1]).asMilliseconds()-n.duration(r[1]).asMilliseconds())}),k=m(()=>{const t=[...y.value].filter(r=>!r.is_creating).filter(r=>n(r.date).isSame(d.value)).reduce((r,u)=>{const h=u.project;return r[h.name]?r[h.name]=n.duration(r[h.name]).add(u.duration).format("HH:mm",{trim:!1}):r[h.name]=u.duration,r},{});return Object.entries(t).sort((r,u)=>n.duration(u[1]).asMilliseconds()-n.duration(r[1]).asMilliseconds())}),l=m(()=>{const t=E.value.map(r=>[r,G(r)]);return f.value==="name"?t.sort((r,u)=>r[0].name.localeCompare(u[0].name)):t}),w=m(()=>!!y.value.find(t=>t.is_live_clocking)),D=m(()=>!!y.value.find(t=>t.is_creating)),X=m(()=>!w.value&&!D.value),ee=t=>{const r=n.duration(t).asHours()===0,u=n.duration(t).asHours()===n.duration(j.value).asHours()/5,h=n.duration(t).asHours()>n.duration(j.value).asHours()/5,$=n.duration(t).asHours()>=n.duration(j.value).asHours()/5-.5;return r?"text-gray-400 dark:text-gray-600":h?"text-lime-500":u?"text-green-500":$?"text-yellow-500":"text-red-500"},G=t=>y.value.filter(r=>{var u;return((u=r==null?void 0:r.project)==null?void 0:u.id)===t.id}).length;async function te(t){var r;await z(x(e,"entries").withConverter(p),{...t,user:s.value.uid,project:(r=t.project)!=null&&r.id?O(e,"projects",t.project.id):null})}async function re(t){var r;await J(O(e,"entries",t.id),{...t,project:(r=t.project)!=null&&r.id?O(e,"projects",t.project.id):null,date:n(t.date).startOf("day").toDate()})}async function ne(t,r=!1){(r||confirm(o("Êtes vous certain de vouloir supprimer cette entrée ?")))&&await B(O(e,"entries",t.id))}async function ae(t){await J(O(e,"entries",t.id),{is_synced:!t.is_synced})}async function se(t){return{id:(await z(x(e,"projects"),{name:t.name,user:s.value.uid})).id,name:t.name}}async function ie(t){if(confirm(o("Êtes vous certain de vouloir supprimer ce projet ?"))){const r=O(e,"projects",t.id),{promise:u}=await P(Y(x(e,"entries"),_("project","==",r)),{once:!0,wait:!0,ssrKey:"projectEntries"}),h=_e(e),$=await u.value;$.length>0?confirm(o("Cela entrainera la supression de l'entrée liée, êtes-vous certain de vouloir continuer ? | Cela entrainera la supression des {n} entrées liées, êtes-vous certain de vouloir continuer ?",$.length))&&($.forEach(fe=>{h.delete(O(e,"entries",fe.id))}),await h.commit(),await B(r)):await B(r)}}async function oe(t){await z(x(e,"priorities"),{name:t,completed:!1,user:s.value.uid})}async function F(t,r=!1){(r||confirm(o("Êtes vous certain de vouloir supprimer cette priorité ?")))&&await B(O(e,"priorities",t.id))}function ue(){const t=M.value.filter(r=>r.completed);t.length!==0?confirm(o("Êtes vous certain de vouloir supprimer les priorités complétées ?"))&&t.forEach(r=>F(r,!0)):alert(o("Aucune priorité complétée à supprimer"))}async function le(t){const r=O(e,"users",t.user.uid);(await Ae(r)).exists()||await ke(r,{weekTarget:"40:00"})}async function ce(t){await J(O(e,"users",s.value.uid),{weekTarget:t})}function de(){E.value=[],M.value=[],y.value=[],v.value={}}return{user:s,menuOpened:g,selectedDay:d,filter:i,selectedTabIndex:c,sort:f,userInfo:v,projects:E,entries:y,priorities:M,weekTarget:j,weekStart:b,weekEnd:S,todaysEntries:K,weekTotal:A,weekRemaining:W,weekSummary:N,weekSummaryColors:ee,weeklySummaryByProjects:q,dailySummaryByProjects:k,sortedProjects:l,projectEntriesTotal:G,isLiveClockingEntry:w,isCreatingEntry:D,canCreateEntry:X,addEntry:te,updateEntry:re,deleteEntry:ne,toggleEntrySynced:ae,addProject:se,deleteProject:ie,addPriority:oe,deletePriority:F,deleteCompletedPriorities:ue,createUserInfo:le,updateWeekTarget:ce,$reset:de}});export{Je as a,ze as b,qe as o,Re as u}; diff --git a/_nuxt/login.83cb6dd1.js b/_nuxt/login.83cb6dd1.js new file mode 100644 index 0000000..40860c9 --- /dev/null +++ b/_nuxt/login.83cb6dd1.js @@ -0,0 +1 @@ +import{d as i,q as a,s as l,t as p,v as c,D as o,_ as u}from"./entry.2efdeb07.js";import{u as d}from"./auth.f7a3445a.js";import"./index.bafef1ea.js";const f={class:"flex w-full items-center justify-center px-4 py-6 lg:px-8"},g=i({__name:"login",setup(m){const n=d(),{login:e}=n;return(r,t)=>(a(),l("div",f,[p("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 rounded bg-primary-500 px-3 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:t[0]||(t[0]=(...s)=>o(e)&&o(e)(...s))},c(r.$t("Connexion avec Google")),1)]))}}),b=u(g,[["__file","login.vue"]]);export{b as default}; diff --git a/_nuxt/login.7d8cee7d.js b/_nuxt/login.8a39a11a.js similarity index 80% rename from _nuxt/login.7d8cee7d.js rename to _nuxt/login.8a39a11a.js index e81dda0..f407f3b 100644 --- a/_nuxt/login.7d8cee7d.js +++ b/_nuxt/login.8a39a11a.js @@ -1 +1 @@ -import{_ as n}from"./Logo.c24d64fa.js";import{_ as s,s as r,t as e,x as a,N as c,L as l,q as _}from"./entry.ffb9f67d.js";const i={},d={class:"fixed top-0 z-40 w-full border-b bg-white dark:border-gray-800 dark:bg-gray-900"},f={class:"flex h-16 items-center justify-between px-4 lg:px-8"},u={type:"button",class:"-m-2 flex rounded p-2 text-2xl font-black ring-primary-200 focus:outline-none focus:ring dark:ring-gray-600"},m={class:"flex min-h-screen pt-16"};function p(t,g){const o=n;return _(),r(l,null,[e("header",d,[e("div",f,[e("button",u,[a(o)])])]),e("main",m,[c(t.$slots,"default")])],64)}const h=s(i,[["render",p],["__file","login.vue"]]);export{h as default}; +import{_ as n}from"./Logo.09e938a8.js";import{_ as s,s as r,t as e,x as a,N as c,L as l,q as _}from"./entry.2efdeb07.js";const i={},d={class:"fixed top-0 z-40 w-full border-b bg-white dark:border-gray-800 dark:bg-gray-900"},f={class:"flex h-16 items-center justify-between px-4 lg:px-8"},u={type:"button",class:"-m-2 flex rounded p-2 text-2xl font-black ring-primary-200 focus:outline-none focus:ring dark:ring-gray-600"},m={class:"flex min-h-screen pt-16"};function p(t,g){const o=n;return _(),r(l,null,[e("header",d,[e("div",f,[e("button",u,[a(o)])])]),e("main",m,[c(t.$slots,"default")])],64)}const h=s(i,[["render",p],["__file","login.vue"]]);export{h as default}; diff --git a/_nuxt/login.b2033610.js b/_nuxt/login.b2033610.js deleted file mode 100644 index 3ae370e..0000000 --- a/_nuxt/login.b2033610.js +++ /dev/null @@ -1 +0,0 @@ -import{d as i,q as a,s as l,t as c,v as p,D as o,_ as u}from"./entry.ffb9f67d.js";import{u as d}from"./auth.ef97e35f.js";const f={class:"flex w-full items-center justify-center px-4 py-6 lg:px-8"},g=i({__name:"login",setup(m){const n=d(),{login:e}=n;return(r,t)=>(a(),l("div",f,[c("button",{type:"button",class:"inline-flex h-9 cursor-pointer items-center justify-center gap-2 rounded bg-primary-500 px-3 text-sm font-bold text-white shadow ring-primary-200 transition hover:bg-primary-400 focus:outline-none focus:ring active:bg-primary-600 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:text-gray-900 dark:ring-gray-600",onClick:t[0]||(t[0]=(...s)=>o(e)&&o(e)(...s))},p(r.$t("Connexion avec Google")),1)]))}}),x=u(g,[["__file","login.vue"]]);export{x as default}; diff --git a/_nuxt/logout.1f2a54a5.js b/_nuxt/logout.0954e0c9.js similarity index 73% rename from _nuxt/logout.1f2a54a5.js rename to _nuxt/logout.0954e0c9.js index 9d6a553..d6e9e7c 100644 --- a/_nuxt/logout.1f2a54a5.js +++ b/_nuxt/logout.0954e0c9.js @@ -1 +1 @@ -import{d as o,a2 as n,a3 as c,o as l,V as r,a4 as i,n as u,q as _,s as p,t as f,v as m,_ as d}from"./entry.ffb9f67d.js";import{u as g}from"./index.892f0c33.js";const x={class:"flex w-full items-center justify-center px-4 py-6 lg:px-8"},h=o({__name:"logout",setup(v){const e=n(),t=g(),a=c();return l(async()=>{await r(),await i(e),t.$reset(),u(a({name:"login"}))}),(s,y)=>(_(),p("div",x,[f("h1",null,m(s.$t("Déconnexion...")),1)]))}}),B=d(h,[["__file","logout.vue"]]);export{B as default}; +import{d as o,a2 as n,a3 as c,o as l,V as r,a4 as i,n as u,q as _,s as p,t as f,v as m,_ as d}from"./entry.2efdeb07.js";import{u as g}from"./index.bafef1ea.js";const x={class:"flex w-full items-center justify-center px-4 py-6 lg:px-8"},h=o({__name:"logout",setup(v){const e=n(),t=g(),a=c();return l(async()=>{await r(),await i(e),t.$reset(),u(a({name:"login"}))}),(s,y)=>(_(),p("div",x,[f("h1",null,m(s.$t("Déconnexion...")),1)]))}}),B=d(h,[["__file","logout.vue"]]);export{B as default}; diff --git a/connexion/index.html b/connexion/index.html index e7d628f..780c9f7 100644 --- a/connexion/index.html +++ b/connexion/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/deconnexion/index.html b/deconnexion/index.html index e7d628f..780c9f7 100644 --- a/deconnexion/index.html +++ b/deconnexion/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/en/index.html b/en/index.html index e7d628f..780c9f7 100644 --- a/en/index.html +++ b/en/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/en/login/index.html b/en/login/index.html index e7d628f..780c9f7 100644 --- a/en/login/index.html +++ b/en/login/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/en/logout/index.html b/en/logout/index.html index e7d628f..780c9f7 100644 --- a/en/logout/index.html +++ b/en/logout/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -
diff --git a/index.html b/index.html index e7d628f..780c9f7 100644 --- a/index.html +++ b/index.html @@ -2,21 +2,21 @@ - - + + - - - - - - + + + + + + - + - -