1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./qqKMJtn5.js","./CcPPHZck.js","./0f0XNADI.js","./C50x5zDf.js","./BkLtITBR.js","./CRmEIWDb.js","./OaRjpU2K.js","./BSMlXKon.js","./Bn99QnXs.js","./BEK99Dbw.js","./DnauLnJJ.js","./i_oGQRLb.js","./_SA84Ghv.js","./DlAUqK2U.js","./B_xGn9Iq.js","./BbBEEc9m.js","./DUQDYK0C.js","./2V3dOO7r.js","./BwSbsNug.js","./CTGhAMAh.js","./Ct8leY2u.js","./D-3Sew4f.js","./CzHwiiBz.js","./CJmEgCIL.js","./8s2fkapj.js","./B8kYVhZZ.js","./BAOAE9Nl.js","./BDj003ea.js","./Bx1YkclB.js","./BCiCp9nx.js","./cyUelfxM.js","./K2QtPg65.js","./BmjLbShz.js","./CrWtMChu.js","./D_Vqyi7Q.js","./B-LGOTZu.js","./MagicRetake.C2x0Xp6_.css","./CX27KUUi.js","./BLJpJ2OG.js","./BBLwVlO0.js","./BrJ_eAuA.js","./CM2GwmuY.js","./BKVPgphV.js","./bSY_lKX7.js","./8dKRzpct.js","./BIQHGg8C.js","./Ffw_t7Wk.js","./oYNpiOyq.js","./0bqHyAOj.js","./h-WEQA7d.js","./DQOgadmV.js","./DxYjk6yg.js","./Dgyd19qE.js","./33DwDnWS.js","./Clrl58ZK.js","./2.BW7nIQdP.css","./Bgts_OSE.js","./3.fimKl0II.css","./DPAjLesU.js","./BsoCIwSx.js","./DJWk2446.js","./CIs9FR-g.js","./BJKZZiH-.js","./D5wxJ4-W.js","./CalJKBMG.js","./Renderer.Dp54rhyT.css","./DgGkh_KQ.js","./onboarding.BHD1LFMs.css","./Da0avMAq.js","./index.DhgWHmHx.css","./CF2Nt65d.js","./D-5127ki.js","./CAaY2wp0.js","./B3oU7p8p.js","./0ntD26q1.js","./cerebro-test.Cq3R2kgL.css","./CiPBfrCu.js","./DdLWVR4t.js","./DU5acZ8b.js","./Bi9MIFHC.js","./Bv5xW1KC.js","./C21IWiDH.js","./index.DKea3Qmr.css","./fjb8KAbn.js","./ANQCVjBK.js","./CJiSr-aT.js","./Dp0TWu4y.js","./xJtZ-aXD.js","./DtN-goD6.js","./DGiv8cJS.js","./Do0syXrb.js","./KVa14M85.js","./JXdj-L5x.js","./CZw9GDif.js","./BFXWcyyk.js","./Bg2-7vrw.js","./DIG0jqSq.js","./AvFkDVlC.js","./D4O1OmE_.js","./CfD6iTZO.js","./DbzlKyHl.js","./BwJw2i0S.js","./B7nOlmZO.js","./CTLYn_eZ.js","./index.GPE-m0c0.css","./CpjuJWNj.js","./CakTeUWy.js","./CKNUYFc-.js","./CDAttP3V.js","./BQ1shXYz.js","./CiEtf2C4.js","./BEi5Xt67.js","./MagicNuxtImg.B6l_FylL.css","./WatermarkOverlay.C1FUg17y.css","./WatermarkedExamples.7nLJRzvv.css","./CPd_Yagj.js","./WhatYouGet.Ofnd-loX.css","./DBeewoir.js","./FAQ.DznbBk5G.css","./BoG2sNHB.js","./UsedByMillions.C-djplP2.css","./DFcPj0FS.js","./Testimonials.C7rv4rrr.css","./Coq5Jy7Y.js","./Footer.BSkXRIq4.css","./payment.Dz0qUtD8.css","./DK338L3l.js","./HXBGTnI_.js","./Dv7T4Z9J.js","./DzhN8Ubo.js","./ImageUploader.BT-fhwnW.css","./DM3MfGlU.js","./3-backup.tn0RQdqM.css","./CMcgE7sm.js","./BgVElxJT.js","./C6TYdtOo.js","./D_ML4p97.js","./BS9lP4pL.js","./Baky_e-d.js","./DM-9e48h.js","./BkYsyB9e.js","./8l3TJuyr.js","./CHebuUgf.js","./BzEncshO.js","./TaskProgressWithQuestions.CpmGt24N.css","./CRYD58nz.js","./ExampleSlider.B-_VtkeL.css","./DAMJ9Z33.js","./DkQ6Rt--.js","./B70z8zcQ.js","./Dn3lhLLH.js","./BNUvLbd4.js","./Dx_qPaQ-.js","./BiXs0YL5.js","./BzLCLO6P.js","./DCDVFuU3.js","./DU_nc3wc.js","./To_8TY6x.js","./a_uwgy8p.js","./Drc180_G.js","./yL8oRhln.js","./CoVM0beJ.js","./Cc1hM6jl.js","./jaJ6lApE.js","./Cu3XJCKx.js","./DHztsO3u.js","./Editor.C19rrZys.css","./M6STGhye.js","./B8JJpMjl.js","./Progress.TPKA3wgT.css","./YO86q1wn.js","./Starter.BBcSsxaj.css","./BmaIRQMm.js","./ResultProd.CIWHdSse.css","./Co7Zmrqt.js","./EmojiChoice.DZLnv1sq.css","./3inA0bAG.js","./4PsfmXfG.js","./ImageText.Z-fl0U2w.css","./BIWQEHEa.js","./Viewer.ByPsydZK.css","./DWtFGm20.js","./B1FkK7VC.js","./_id_.BBrR_ME6.css","./DezQYw-C.js","./Cs1M2jDz.js","./DVM2htH0.js","./jA55z2W1.js","./JwRhvl3L.js","./BLvMdBH7.js","./CvDEwo5z.js","./Dc1o9Poa.js","./B9RnYyKi.js","./CpQzNvNU.js","./test-polaroid-images.DGALwtLo.css","./QSOkSTli.js","./9yKO8s6Q.js","./1uulyChQ.js","./D7X9GIOp.js","./_8rP1JkT.js","./C01QSD4t.js","./CqKeaYGN.js","./CximAcXh.js","./Efxru4C1.js","./BlbS-57U.js","./C_SR_0K6.js","./CF1-DIxi.js","./PolaroidFailedView.Lv347IUs.css","./CM0ty7DK.js","./hyb4NqEq.js","./r3JzVwrQ.js","./Bt0gm6oG.js","./pro.MQRXPMJ0.css","./DhYVPfyP.js","./D1UqyxLa.js","./Co_phND8.js","./C-gxc3fF.js","./DpKuypwX.js","./RHZzUjB8.js","./CSK6HHX7.js","./O6nP-ThX.js","./BPwK_3-r.js","./TU_TyuG6.js","./-S-W2dhC.js","./ContentImageUploader.Dw47-jjr.css","./D4-1tE0r.js","./Cfp9_sbP.js","./PolaroidHeader.DEEEA3X2.css","./CCw078uQ.js","./index.DYyXpLW7.css","./C4OoCjez.js","./6Uif6j__.js","./Footer2.BODkjcVx.css","./congratulations.Brgre9a2.css","./DeTB6XLe.js","./BxNOCK-O.
1js","./CJftfSYK.js","./BHf5dUKC.js","./fdge5C0Y.js","./CP6l1Xl-.js","./Brxwrxgn.js","./index.2MiTSvsH.css","./BS5rKkEU.js","./BQcr52Qr.js","./create.CS_PaHVH.css","./CZDzLwww.js","./DUHGY2LG.js","./CPD4yKut.js","./C24bbi-2.js","./BhOkXJEA.js","./IR99nAqX.js","./7LA5jmgp.js","./BrjaJS5U.js","./jObUMXLo.js","./Bmj2OfVG.js","./7FgPWffH.js","./goodbye.CdtK6pTY.css","./gihxkIco.js","./payment.BkC1YCpx.css","./D5xFNiou.js","./i5A-c66O.js","./profile.fZ9izubY.css","./BTYPHXTX.js","./D6Cyiqsa.js","./DB3cE5ev.js","./DEIZnWCI.js","./BW16ZglJ.js","./B1fCcMtk.js","./CinFjcI6.js","./UoaXI6JA.js","./CDRSkoir.js","./DUUehAwC.js","./DeItKsCv.js","./C4xL270n.js","./BmqGuBtU.js","./DaewEYVs.js","./DoQ6hrZX.js","./prompt-generator.Sqw-1JHM.css","./BqEwmTJn.js","./wmmctUF9.js","./DINV1Z8c.js","./DBCm6qIa.js","./iqx1jFpt.js","./-s8bIUGb.js","./CnC7sYvo.js","./onboarding-config.BjRExmKk.css","./DEkWkQiv.js","./x2xCSodK.js","./37z8jkro.js","./DOSVwVXI.js","./CFI5G8ef.js","./EditContentDialog.D3-jcmr3.css","./Ivmi-WTt.js","./AddContentDialog.COh7UWsq.css","./_id_.vvgh4kAO.css","./DC3zBY9b.js","./CxWDmeT1.js","./BRK4fLBE.js","./C-zOUm--.js","./Th0islba.js","./index.MfujILGu.css","./BP1wF4B0.js","./C6J7UD5-.js","./CD58A5xa.js","./DsNzjKiy.js","./useHomeLayouts.Bv1KECXB.css","./home-contents.DcIMJnHs.css","./Cr8U09Me.js","./jC8LMb4M.js","./BUGHxUc5.js","./DI9rB7K3.js","./C6zMmx6J.js","./layout-setup.NWK24vsu.css","./BWooptJg.js","./CeT7dK3_.js","./BkA3LGmA.js","./automate-content.DfLvn5FU.css","./CgGuOkZj.js","./BOhocEGZ.js","./gVOTRgHV.js","./CGR2jMrB.js","./ResulltDev.kabBtJQ_.css","./DoljYPvs.js","./B54whkeZ.js","./dashboard-backup.CNwGoEkX.css","./TY1x6H3V.js","./dashboard.DmiU8lh6.css","./Wn_ZzRlG.js","./CQ6MzgR1.js","./Da15L_6Z.js","./B4rvuLda.js","./BvGrUJH2.js","./DSKUy6St.js","./CPXmRALJ.js","./error-404.D7PywIxl.css","./CZjqdef_.js","./error-500.DpJ5cob5.css"])))=>i.map(i=>d[i]); 2function nV(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/** 3* @vue/shared v3.5.21 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
vendor: 9,832 bytes, lines 6-7
6**/function Yn(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ze={},Aa=[],nr=()=>{},tv=()=>!1,_l=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),v_=t=>t.startsWith("onUpdate:"),mt=Object.assign,E_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},rV=Object.prototype.hasOwnProperty,et=(t,e)=>rV.call(t,e),Re=Array.isArray,xa=t=>Ga(t)==="[object Map]",Qs=t=>Ga(t)==="[object Set]",G0=t=>Ga(t)==="[object Date]",BC=t=>Ga(t)==="[object RegExp]",Le=t=>typeof t=="function",dt=t=>typeof t=="string",pr=t=>typeof t=="symbol",ht=t=>t!==null&&typeof t=="object",b_=t=>(ht(t)||Le(t))&&Le(t.then)&&Le(t.catch),nv=Object.prototype.toString,Ga=t=>nv.call(t),UC=t=>Ga(t).slice(8,-1),Cd=t=>Ga(t)==="[object Object]",w_=t=>dt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ia=Yn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oV=Yn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),T_=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},iV=/-\w/g,rn=T_(t=>t.replace(iV,e=>e.slice(1).toUpperCase())),sV=/\B([A-Z])/g,Pn=T_(t=>t.replace(sV,"-$1").toLowerCase()),ml=T_(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sc=T_(t=>t?`on${ml(t)}`:""),An=(t,e)=>!Object.is(t,e),Ra=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},rv=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},$u=t=>{const e=parseFloat(t);return isNaN(e)?t:e},ju=t=>{const e=dt(t)?Number(t):NaN;return isNaN(e)?t:e};let Rw;const Pd=()=>Rw||(Rw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),aV=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function cV(t){return aV.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function lV(t,e){return t+JSON.stringify(e,(n,r)=>typeof r=="function"?r.toString():r)}const uV={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},dV={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},hV={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},fV={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},pV={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},_V="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",ov=Yn(_V),mV=ov,Cw=2;function gV(t,e=0,n=t.length){if(e=Math.max(0,Math.min(e,t.length)),n=Math.max(0,Math.min(n,t.length)),e>n)return"";let r=t.split(/(\r?\n)/);const o=r.filter((a,c)=>c%2===1);r=r.filter((a,c)=>c%2===0);let i=0;const s=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+(o[a]&&o[a].length||0),i>=e){for(let c=a-Cw;c<=a+Cw||n>i;c++){if(c<0||c>=r.length)continue;const l=c+1;s.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}| ${r[c]}`);const u=r[c].length,d=o[c]&&o[c].length||0;if(c===a){const f=e-(i-(u+d)),_=Math.max(1,n>i?u-f:n-e);s.push(" | "+" ".repeat(f)+"^".repeat(_))}else if(c>a){if(n>i){const f=Math.max(Math.min(n-i,u),1);s.push(" | "+"^".repeat(f))}i+=u+d}}break}return s.join(` 7`)}function ai(t){if(Re(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],o=dt(r)?$C(r):ai(r);if(o)for(const i in o)e[i]=o[i]}return e}else if(dt(t)||ht(t))return t}const yV=/;(?![^(]*\))/g,vV=/:([^]+)/,EV=/\/\*[^]*?\*\//g;function $C(t){const e={};return t.replace(EV,"").split(yV).forEach(n=>{if(n){const r=n.split(vV);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function bV(t){if(!t)return"";if(dt(t))return t;let e="";for(const n in t){const r=t[n];if(dt(r)||typeof r=="number"){const o=n.startsWith("--")?n:Pn(n);e+=`${o}:${r};`}}return e}function Mn(t){let e="";if(dt(t))e=t;else if(Re(t))for(let n=0;n<t.length;n++){const r=Mn(t[n]);r&&(e+=r+" ")}else if(ht(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function Hu(t){if(!t)return null;let{class:e,style:n}=t;return e&&!dt(e)&&(t.class=Mn(e)),n&&(t.style=ai(n)),t}const wV="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",TV="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",AV="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",xV="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",IV=Yn(wV),RV=Yn(TV),CV=Yn(AV),PV=Yn(xV),jC="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",HC=Yn(jC),SV=Yn(jC+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function iv(t){return!!t||t===""}const OV=/[>/="'\u0009\u000a\u000c\u0020]/,Wm={};function DV(t){if(Wm.hasOwnProperty(t))return Wm[t];const e=OV.test(t);return e&&console.error(`unsafe attribute name: ${t}`),Wm[t]=!e}const LV={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},kV=Yn("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),NV=Yn("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
7s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),VV=Yn("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function FV(t){if(t==null)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"}const MV=/["'&<>]/;function BV(t){const e=""+t,n=MV.exec(e);if(!n)return e;let r="",o,i,s=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==i&&(r+=e.slice(s,i)),s=i+1,r+=o}return s!==i?r+e.slice(s,i):r}const UV=/^-?>|<!--|-->|--!>|<!-$/g;function $V(t){return t.replace(UV,"")}const zC=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function jV(t,e){return t.replace(zC,n=>e?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function HV(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Yi(t[r],e[r]);return n}function Yi(t,e){if(t===e)return!0;let n=G0(t),r=G0(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=pr(t),r=pr(e),n||r)return t===e;if(n=Re(t),r=Re(e),n||r)return n&&r?HV(t,e):!1;if(n=ht(t),r=ht(e),n||r){if(!n||!r)return!1;const o=Object.keys(t).length,i=Object.keys(e).length;if(o!==i)return!1;for(const s in t){const a=t.hasOwnProperty(s),c=e.hasOwnProperty(s);if(a&&!c||!a&&c||!Yi(t[s],e[s]))return!1}}return String(t)===String(e)}function Sd(t,e){return t.findIndex(n=>Yi(n,e))}const qC=t=>!!(t&&t.__v_isRef===!0),ya=t=>dt(t)?t:t==null?"":Re(t)||ht(t)&&(t.toString===nv||!Le(t.toString))?qC(t)?ya(t.value):JSON.stringify(t,WC,2):String(t),WC=(t,e)=>qC(e)?WC(t,e.value):xa(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o],i)=>(n[Km(r,i)+" =>"]=o,n),{})}:Qs(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Km(n))}:pr(e)?Km(e):ht(e)&&!Re(e)&&!Cd(e)?String(e):e,Km=(t,e="")=>{var n;return pr(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};function KC(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}const Oae=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Aa,EMPTY_OBJ:ze,NO:tv,NOOP:nr,PatchFlagNames:dV,PatchFlags:uV,ShapeFlags:hV,SlotFlags:fV,camelize:rn,capitalize:ml,cssVarNameEscapeSymbolsRE:zC,def:rv,escapeHtml:BV,escapeHtmlComment:$V,extend:mt,genCacheKey:lV,genPropsAccessExp:cV,generateCodeFrame:gV,getEscapedCssVarName:jV,getGlobalThis:Pd,hasChanged:An,hasOwn:et,hyphenate:Pn,includeBooleanAttr:iv,invokeArrayFns:Ra,isArray:Re,isBooleanAttr:SV,isBuiltInDirective:oV,isDate:G0,isFunction:Le,isGloballyAllowed:ov,isGloballyWhitelisted:mV,isHTMLTag:IV,isIntegerKey:w_,isKnownHtmlAttr:kV,isKnownMathMLAttr:VV,isKnownSvgAttr:NV,isMap:xa,isMathMLTag:CV,isModelListener:v_,isObject:ht,
vendor: 6,433 bytes, lines 7-11
7isOn:_l,isPlainObject:Cd,isPromise:b_,isRegExp:BC,isRenderableAttrValue:FV,isReservedProp:Ia,isSSRSafeAttrName:DV,isSVGTag:RV,isSet:Qs,isSpecialBooleanAttr:HC,isString:dt,isSymbol:pr,isVoidTag:PV,looseEqual:Yi,looseIndexOf:Sd,looseToNumber:$u,makeMap:Yn,normalizeClass:Mn,normalizeCssVarValue:KC,normalizeProps:Hu,normalizeStyle:ai,objectToString:nv,parseStringStyle:$C,propsToAttrMap:LV,remove:E_,slotFlagsText:pV,stringifyStyle:bV,toDisplayString:ya,toHandlerKey:Sc,toNumber:ju,toRawType:UC,toTypeString:Ga},Symbol.toStringTag,{value:"Module"}));/** 8* @vue/reactivity v3.5.21 9* (c) 2018-present Yuxi (Evan) You and Vue contributors 10* @license MIT 11**/let wn;class sv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!e&&wn&&(this.index=(wn.scopes||(wn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=wn;try{return wn=this,e()}finally{wn=n}}}on(){++this._on===1&&(this.prevScope=wn,wn=this)}off(){this._on>0&&--this._on===0&&(wn=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Qa(t){return new sv(t)}function Ya(){return wn}function jc(t,e=!1){wn&&wn.cleanups.push(t)}let bt;const Gm=new WeakSet;class zu{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,wn&&wn.active&&wn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gm.has(this)&&(Gm.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||QC(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pw(this),YC(this);const e=bt,n=kr;bt=this,kr=!0;try{return this.fn()}finally{XC(this),bt=e,kr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)lv(e);this.deps=this.depsTail=void 0,Pw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gm.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Q0(this)&&this.run()}get dirty(){return Q0(this)}}let GC=0,Eu,bu;function QC(t,e=!1){if(t.flags|=8,e){t.next=bu,bu=t;return}t.next=Eu,Eu=t}function av(){GC++}function cv(){if(--GC>0)return;if(bu){let e=bu;for(bu=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Eu;){let e=Eu;for(Eu=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function YC(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function XC(t){let e,n=t.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),lv(r),zV(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}t.deps=e,t.depsTail=n}function Q0(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(JC(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function JC(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===qu)||(t.globalVersion=qu,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Q0(t))))return;t.flags|=2;const e=t.dep,n=bt,r=kr;bt=t,kr=!0;try{YC(t);const o=t.fn(t._value);(e.version===0||An(o,t._value))&&(t.flags|=128,t._value=o,e.version++)}catch(o){throw e.version++,o}finally{bt=n,kr=r,XC(t),t.flags&=-3}}function lv(t,e=!1){const{dep:n,prevSub:r,nextSub:o}=t;if(r&&(r.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)lv(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function zV(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}function qV(t,e){t.effect instanceof zu&&(t=t.effect.fn);const n=new zu(t);e&&mt(n,e);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function WV(t){t.effect.stop()}let kr=!0;const ZC=[];function Xi(){ZC.push(kr),kr=!1}function Ji(){const t=ZC.pop();kr=t===void 0?!0:t}function Pw(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=bt;bt=void 0;try{e()}finally{bt=n}}}let qu=0;class KV{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class A_{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!bt||!kr||bt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bt)n=this.activeLink=new KV(bt,this),bt.deps?(n.prevDep=bt.depsTail,bt.depsTail.nextDep=n,bt.depsTail=n):bt.deps=bt.depsTail=n,e1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=bt.depsTail,n.nextDep=void 0,bt.depsTail.nextDep=n,bt.depsTail=n,bt.deps===n&&(bt.deps=r)}return n}trigger(e){this.version++,qu++,this.notify(e)}notify(e){av();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{cv()}}}function e1(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)e1(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const up=new WeakMap,Ca=Symbol(""),Y0=Symbol(""),Wu=Symbol("");function xn(t,e,n){if(kr&&bt){let r=up.get(t);r||up.set(t,r=new Map);let o=r.get(n);o||(r.set(n,o=new A_),o.map=r,o.key=n),o.track()}}function Ni(t,e,n,r,o,i){const s=up.get(t);if(!s){qu++;return}const a=c=>{c&&c.trigger()};if(av(),e==="clear")s.forEach(a);else{const c=Re(t),l=c&&w_(n);if(c&&n==="length"){const u=Number(r);
vendor: 5,222 bytes, line 11
11s.forEach((d,f)=>{(f==="length"||f===Wu||!pr(f)&&f>=u)&&a(d)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),l&&a(s.get(Wu)),e){case"add":c?l&&a(s.get("length")):(a(s.get(Ca)),xa(t)&&a(s.get(Y0)));break;case"delete":c||(a(s.get(Ca)),xa(t)&&a(s.get(Y0)));break;case"set":xa(t)&&a(s.get(Ca));break}}cv()}function GV(t,e){const n=up.get(t);return n&&n.get(e)}function _c(t){const e=je(t);return e===t?e:(xn(e,"iterate",Wu),rr(t)?e:e.map(un))}function x_(t){return xn(t=je(t),"iterate",Wu),t}const QV={__proto__:null,[Symbol.iterator](){return Qm(this,Symbol.iterator,un)},concat(...t){return _c(this).concat(...t.map(e=>Re(e)?_c(e):e))},entries(){return Qm(this,"entries",t=>(t[1]=un(t[1]),t))},every(t,e){return Ii(this,"every",t,e,void 0,arguments)},filter(t,e){return Ii(this,"filter",t,e,n=>n.map(un),arguments)},find(t,e){return Ii(this,"find",t,e,un,arguments)},findIndex(t,e){return Ii(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ii(this,"findLast",t,e,un,arguments)},findLastIndex(t,e){return Ii(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ii(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ym(this,"includes",t)},indexOf(...t){return Ym(this,"indexOf",t)},join(t){return _c(this).join(t)},lastIndexOf(...t){return Ym(this,"lastIndexOf",t)},map(t,e){return Ii(this,"map",t,e,void 0,arguments)},pop(){return Yl(this,"pop")},push(...t){return Yl(this,"push",t)},reduce(t,...e){return Sw(this,"reduce",t,e)},reduceRight(t,...e){return Sw(this,"reduceRight",t,e)},shift(){return Yl(this,"shift")},some(t,e){return Ii(this,"some",t,e,void 0,arguments)},splice(...t){return Yl(this,"splice",t)},toReversed(){return _c(this).toReversed()},toSorted(t){return _c(this).toSorted(t)},toSpliced(...t){return _c(this).toSpliced(...t)},unshift(...t){return Yl(this,"unshift",t)},values(){return Qm(this,"values",un)}};function Qm(t,e,n){const r=x_(t),o=r[e]();return r!==t&&!rr(t)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const YV=Array.prototype;function Ii(t,e,n,r,o,i){const s=x_(t),a=s!==t&&!rr(t),c=s[e];if(c!==YV[e]){const d=c.apply(t,i);return a?un(d):d}let l=n;s!==t&&(a?l=function(d,f){return n.call(this,un(d),f,t)}:n.length>2&&(l=function(d,f){return n.call(this,d,f,t)}));const u=c.call(s,l,r);return a&&o?o(u):u}function Sw(t,e,n,r){const o=x_(t);let i=n;return o!==t&&(rr(t)?n.length>3&&(i=function(s,a,c){return n.call(this,s,a,c,t)}):i=function(s,a,c){return n.call(this,s,un(a),c,t)}),o[e](i,...r)}function Ym(t,e,n){const r=je(t);xn(r,"iterate",Wu);const o=r[e](...n);return(o===-1||o===!1)&&C_(n[0])?(n[0]=je(n[0]),r[e](...n)):o}function Yl(t,e,n=[]){Xi(),av();const r=je(t)[e].apply(t,n);return cv(),Ji(),r}const XV=Yn("__proto__,__v_isRef,__isVue"),t1=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(pr));function JV(t){pr(t)||(t=String(t));const e=je(this);return xn(e,"has",t),e.hasOwnProperty(t)}class n1{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?c1:a1:i?s1:i1).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=Re(e);if(!o){let c;if(s&&(c=QV[n]))return c;if(n==="hasOwnProperty")return JV}const a=Reflect.get(e,n,nt(e)?e:r);return(pr(n)?t1.has(n):XV(n))||(o||xn(e,"get",n),i)?a:nt(a)?s&&w_(n)?a:a.value:ht(a)?o?uv(a):Er(a):a}}class r1 extends n1{constructor(e=!1){super(!1,e)}set(e,n,r,o){let i=e[n];if(!this._isShallow){const c=hi(i);if(!rr(r)&&!hi(r)&&(i=je(i),r=je(r)),!Re(e)&&nt(i)&&!nt(r))return c||(i.value=r),!0}const s=Re(e)&&w_(n)?Number(n)<e.length:et(e,n),a=Reflect.set(e,n,r,nt(e)?e:o);return e===je(o)&&(s?An(r,i)&&Ni(e,"set",n,r):Ni(e,"add",n,r)),a}deleteProperty(e,n){const r=et(e,n);e[n];const o=Reflect.deleteProperty(e,n);return o&&r&&Ni(e,"delete",n,void 0),o}has(e,n){const r=Reflect.has(e,n);return(!pr(n)||!t1.has(n))&&xn(e,"has",n),r}ownKeys(e){return xn(e,"iterate",Re(e)?"length":Ca),Reflect.ownKeys(e)}}class o1 extends n1{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const ZV=new r1,e4=new o1,t4=new r1(!0),n4=new o1(!0),X0=t=>t,Ah=t=>Reflect.getPrototypeOf(t);function r4(t,e,n){return function(...r){const o=this.__v_raw,i=je(o),s=xa(i),a=t==="entries"||t===Symbol.iterator&&s,c=t==="keys"&&s,l=o[t](...r),u=n?X0:e?dp:un;return!e&&xn(i,"iterate",c?Y0:Ca),{next(){const{value:d,done:f}=l.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function xh(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function o4(t,e){const n={get(o){const i=this.__v_raw,s=je(i),a=je(o);t||(An(o,a)&&xn(s,"get",o),xn(s,"get",a));const{has:c}=Ah(s),l=e?X0:t?dp:un;if(c.call(s,o))return l(i.get(o));if(c.call(s,a))return l(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!t&&xn(je(o),"iterate",Ca),o.size},has(o){const i=this.__v_raw,s=je(i),a=je(o);return t||(An(o,a)&&xn(s,"has",o),xn(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)}
vendor: 6,324 bytes, lines 11-14
11,forEach(o,i){const s=this,a=s.__v_raw,c=je(a),l=e?X0:t?dp:un;return!t&&xn(c,"iterate",Ca),a.forEach((u,d)=>o.call(i,l(u),l(d),s))}};return mt(n,t?{add:xh("add"),set:xh("set"),delete:xh("delete"),clear:xh("clear")}:{add(o){!e&&!rr(o)&&!hi(o)&&(o=je(o));const i=je(this);return Ah(i).has.call(i,o)||(i.add(o),Ni(i,"add",o,o)),this},set(o,i){!e&&!rr(i)&&!hi(i)&&(i=je(i));const s=je(this),{has:a,get:c}=Ah(s);let l=a.call(s,o);l||(o=je(o),l=a.call(s,o));const u=c.call(s,o);return s.set(o,i),l?An(i,u)&&Ni(s,"set",o,i):Ni(s,"add",o,i),this},delete(o){const i=je(this),{has:s,get:a}=Ah(i);let c=s.call(i,o);c||(o=je(o),c=s.call(i,o)),a&&a.call(i,o);const l=i.delete(o);return c&&Ni(i,"delete",o,void 0),l},clear(){const o=je(this),i=o.size!==0,s=o.clear();return i&&Ni(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=r4(o,t,e)}),n}function I_(t,e){const n=o4(t,e);return(r,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?r:Reflect.get(et(n,o)&&o in r?n:r,o,i)}const i4={get:I_(!1,!1)},s4={get:I_(!1,!0)},a4={get:I_(!0,!1)},c4={get:I_(!0,!0)},i1=new WeakMap,s1=new WeakMap,a1=new WeakMap,c1=new WeakMap;function l4(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function u4(t){return t.__v_skip||!Object.isExtensible(t)?0:l4(UC(t))}function Er(t){return hi(t)?t:R_(t,!1,ZV,i4,i1)}function Cr(t){return R_(t,!1,t4,s4,s1)}function uv(t){return R_(t,!0,e4,a4,a1)}function d4(t){return R_(t,!0,n4,c4,c1)}function R_(t,e,n,r,o){if(!ht(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=u4(t);if(i===0)return t;const s=o.get(t);if(s)return s;const a=new Proxy(t,i===2?r:n);return o.set(t,a),a}function Nr(t){return hi(t)?Nr(t.__v_raw):!!(t&&t.__v_isReactive)}function hi(t){return!!(t&&t.__v_isReadonly)}function rr(t){return!!(t&&t.__v_isShallow)}function C_(t){return t?!!t.__v_raw:!1}function je(t){const e=t&&t.__v_raw;return e?je(e):t}function Hc(t){return!et(t,"__v_skip")&&Object.isExtensible(t)&&rv(t,"__v_skip",!0),t}const un=t=>ht(t)?Er(t):t,dp=t=>ht(t)?uv(t):t;function nt(t){return t?t.__v_isRef===!0:!1}function Te(t){return l1(t,!1)}function fi(t){return l1(t,!0)}function l1(t,e){return nt(t)?t:new h4(t,e)}class h4{constructor(e,n){this.dep=new A_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:je(e),this._value=n?e:un(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||rr(e)||hi(e);e=r?e:je(e),An(e,n)&&(this._rawValue=e,this._value=r?e:un(e),this.dep.trigger())}}function f4(t){t.dep&&t.dep.trigger()}function De(t){return nt(t)?t.value:t}function Ar(t){return Le(t)?t():De(t)}const p4={get:(t,e,n)=>e==="__v_raw"?t:De(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return nt(o)&&!nt(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function dv(t){return Nr(t)?t:new Proxy(t,p4)}class _4{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new A_,{get:r,set:o}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(e){this._set(e)}}function hv(t){return new _4(t)}function u1(t){const e=Re(t)?new Array(t.length):{};for(const n in t)e[n]=d1(t,n);return e}class m4{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return GV(je(this._object),this._key)}}class g4{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function P_(t,e,n){return nt(t)?t:Le(t)?new g4(t):ht(t)&&arguments.length>1?d1(t,e,n):Te(t)}function d1(t,e,n){const r=t[e];return nt(r)?r:new m4(t,e,n)}class y4{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new A_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&bt!==this)return QC(this,!0),!0}get value(){const e=this.dep.track();return JC(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function v4(t,e,n=!1){let r,o;return Le(t)?r=t:(r=t.get,o=t.set),new y4(r,o,n)}const E4={GET:"get",HAS:"has",ITERATE:"iterate"},b4={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Ih={},hp=new WeakMap;let Ts;function w4(){return Ts}function h1(t,e=!1,n=Ts){if(n){let r=hp.get(n);r||hp.set(n,r=[]),r.push(t)}}function T4(t,e,n=ze){const{immediate:r,deep:o,once:i,scheduler:s,augmentJob:a,call:c}=n,l=E=>o?E:rr(E)||o===!1||o===0?Vi(E,1):Vi(E);let u,d,f,_,m=!1,y=!1;if(nt(t)?(d=()=>t.value,m=rr(t)):Nr(t)?(d=()=>l(t),m=!0):Re(t)?(y=!0,m=t.some(E=>Nr(E)||rr(E)),d=()=>t.map(E=>{if(nt(E))return E.value;if(Nr(E))return l(E);if(Le(E))return c?c(E,2):E()})):Le(t)?e?d=c?()=>c(t,2):t:d=()=>{if(f){Xi();try{f()}finally{Ji()}}const E=Ts;Ts=u;try{return c?c(t,3,[_]):t(_)}finally{Ts=E}}:d=nr,e&&o){const E=d,C=o===!0?1/0:o;d=()=>Vi(E(),C)}const v=Ya(),T=()=>{u.stop(),v&&v.active&&E_(v.effects,u)};if(i&&e){const E=e;e=(...C)=>{E(...C),T()}}let w=y?new Array(t.length).fill(Ih):Ih;const g=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(e){const C=u.run();if(o||m||(y?C.some((L,A)=>An(L,w[A])):An(C,w))){f&&f();const L=Ts;Ts=u;try{const A=[C,w===Ih?void 0:y&&w[0]===Ih?[]:w,_];w=C,c?c(e,3,A):e(...A)}finally{Ts=L}}}else u.run()};return a&&a(g),u=new zu(d),u.scheduler=s?()=>s(g,!1):g,_=E=>h1(E,!1,u),f=u.onStop=()=>{const E=hp.get(u);if(E){if(c)c(E,4);else for(const C of E)C();hp.delete(u)}},e?r?g(!0):w=u.run():s?s(g.bind(null,!0),!0):u.run(),T.pause=u.pause.bind(u),T.resume=u.resume.bind(u),T.stop=T,T}function Vi(t,e=1/0,n){if(e<=0||!ht(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,nt(t))Vi(t.value,e,n);else if(Re(t))for(let r=0;r<t.length;r++)Vi(t[r],e,n);else if(Qs(t)||xa(t))t.forEach(r=>{Vi(r,e,n)});else if(Cd(t)){for(const r in t)Vi(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Vi(t[r],e,n)}return t}/** 12* @vue/runtime-core v3.5.21 13* (c) 2018-present Yuxi (Evan) You and Vue contributors 14* @license MIT
15**/const f1=[];function A4(t){f1.push(t)}function x4(){f1.pop()}function I4(t,e){}const R4={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},C4={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function gl(t,e,n,r){try{return r?t(...r):t()}catch(o){Xa(o,e,n)}}function _r(t,e,n,r){if(Le(t)){const o=gl(t,e,n,r);return o&&b_(o)&&o.catch(i=>{Xa(i,e,n)}),o}if(Re(t)){const o=[];for(let i=0;i<t.length;i++)o.push(_r(t[i],e,n,r));return o}}function Xa(t,e,n,r=!0){const o=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ze;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](t,c,l)===!1)return}a=a.parent}if(i){Xi(),gl(i,null,10,[t,c,l]),Ji();return}}P4(t,n,o,r,s)}function P4(t,e,n,r=!0,o=!1){if(o)throw t;console.error(t)}const Bn=[];let ri=-1;const Oc=[];let As=null,vc=0;const p1=Promise.resolve();let fp=null;function sr(t){const e=fp||p1;return t?e.then(this?t.bind(this):t):e}function S4(t){let e=ri+1,n=Bn.length;for(;e<n;){const r=e+n>>>1,o=Bn[r],i=Gu(o);i<t||i===t&&o.flags&2?e=r+1:n=r}return e}function fv(t){if(!(t.flags&1)){const e=Gu(t),n=Bn[Bn.length-1];!n||!(t.flags&2)&&e>=Gu(n)?Bn.push(t):Bn.splice(S4(e),0,t),t.flags|=1,_1()}}function _1(){fp||(fp=p1.then(m1))}function Ku(t){Re(t)?Oc.push(...t):As&&t.id===-1?As.splice(vc+1,0,t):t.flags&1||(Oc.push(t),t.flags|=1),_1()}function Ow(t,e,n=ri+1){for(;n<Bn.length;n++){const r=Bn[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Bn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function pp(t){if(Oc.length){const e=[...new Set(Oc)].sort((n,r)=>Gu(n)-Gu(r));if(Oc.length=0,As){As.push(...e);return}for(As=e,vc=0;vc<As.length;vc++){const n=As[vc];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}As=null,vc=0}}const Gu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function m1(t){try{for(ri=0;ri<Bn.length;ri++){const e=Bn[ri];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),gl(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ri<Bn.length;ri++){const e=Bn[ri];e&&(e.flags&=-2)}ri=-1,Bn.length=0,pp(),fp=null,(Bn.length||Oc.length)&&m1()}}let Ec,Rh=[];function g1(t,e){var n,r;Ec=t,Ec?(Ec.enabled=!0,Rh.forEach(({event:o,args:i})=>Ec.emit(o,...i)),Rh=[]):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=>{g1(i,e)}),setTimeout(()=>{Ec||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Rh=[])},3e3)):Rh=[]}let pn=null,S_=null;function Qu(t){const e=pn;return pn=t,S_=t&&t.type.__scopeId||null,e}function O4(t){S_=t}function D4(){S_=null}const L4=t=>xr;function xr(t,e=pn,n){if(!e||t._n)return t;const r=(...o)=>{r._d&&Ju(-1);const i=Qu(e);let s;try{s=t(...o)}finally{Qu(i),r._d&&Ju(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function k4(t,e){if(pn===null)return t;const n=kd(pn),r=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[i,s,a,c=ze]=e[o];i&&(Le(i)&&(i={mounted:i,updated:i}),i.deep&&Vi(s),r.push({dir:i,instance:n,value:s,oldValue:void 0,arg:a,modifiers:c}))}return t}function oi(t,e,n,r){const o=t.dirs,i=e&&e.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let c=a.dir[r];c&&(Xi(),_r(c,n,8,[t.el,a,t,e]),Ji())}}const y1=Symbol("_vte"),v1=t=>t.__isTeleport,wu=t=>t&&(t.disabled||t.disabled===""),Dw=t=>t&&(t.defer||t.defer===""),Lw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,kw=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,J0=(t,e)=>{const n=t&&t.to;return dt(n)?e?e(n):null:n},E1={name:"Teleport",__isTeleport:!0,process(t,e,n,r,o,i,s,a,c,l){const{mc:u,pc:d,pbc:f,o:{insert:_,querySelector:m,createText:y,createComment:v}}=l,T=wu(e.props);let{shapeFlag:w,children:g,dynamicChildren:E}=e;if(t==null){const C=e.el=y(""),L=e.anchor=y("");_(C,n,r),_(L,n,r);const A=(R,x)=>{w&16&&(o&&o.isCE&&(o.ce._teleportTarget=R),u(g,R,x,o,i,s,a,c))},I=()=>{const R=e.target=J0(e.props,m),x=b1(R,e,y,_);R&&(s!=="svg"&&Lw(R)?s="svg":s!=="mathml"&&kw(R)&&(s="mathml"),T||(A(R,x),of(e,!1)))};T&&(A(n,L),of(e,!0)),Dw(e.props)?(e.el.__isMounted=!1,Yt(()=>{I(),delete e.el.__isMounted},i)):I()}else{if(Dw(e.props)&&t.el.__isMounted===!1){Yt(()=>{E1.process(t,e,n,r,o,i,s,a,c,l)},i);return}e.el=t.el,e.targetStart=t.targetStart;const C=e.anchor=t.anchor,L=e.target=t.target,A=e.targetAnchor=t.targetAnchor,I=wu(t.props),R=I?n:L,x=I?C:A;if(s==="svg"||Lw(L)?s="svg":(s==="mathml"||kw(L))&&(s="mathml"),E?(f(t.dynamicChildren,E,R,o,i,s,a),Cv(t,e,!0)):c||d(t,e,R,x,o,i,s,a,!1),T)I?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ch(e,n,C,l,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const D=e.target=J0(e.props,m);D&&Ch(e,D,null,l,0)}else I&&Ch(e,L,A,l,1);of(e,T)}},remove(t,e,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=t;if(d&&(o(l),o(u)),i&&o(c),s&16){const _=i||!wu(f);for(let m=0;m<a.length;m++){const y=a[m];r(y,e,n,_,!!y.dynamicChildren)}}},move:Ch,hydrate:N4};function Ch(t,e,n,{o:{insert:r},m:o},i=2){i===0&&r(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:c,children:l,props:u}=t,d=i===2;if(d&&r(s,e,n),(!d||wu(u))&&c&16)for(let f=0;f<l.length;
vendor: 26,582 bytes, lines 15-16
15f++)o(l[f],e,n,2);d&&r(a,e,n)}function N4(t,e,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:c,insert:l,createText:u}},d){function f(y,v,T,w){v.anchor=d(s(y),v,a(y),n,r,o,i),v.targetStart=T,v.targetAnchor=w}const _=e.target=J0(e.props,c),m=wu(e.props);if(_){const y=_._lpa||_.firstChild;if(e.shapeFlag&16)if(m)f(t,e,y,y&&s(y));else{e.anchor=s(t);let v=y;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")e.targetStart=v;else if(v.data==="teleport anchor"){e.targetAnchor=v,_._lpa=e.targetAnchor&&s(e.targetAnchor);break}}v=s(v)}e.targetAnchor||b1(_,e,u,l),d(y&&s(y),e,_,n,r,o,i)}of(e,m)}else m&&e.shapeFlag&16&&f(t,e,t,s(t));return e.anchor&&s(e.anchor)}const V4=E1;function of(t,e){const n=t.ctx;if(n&&n.ut){let r,o;for(e?(r=t.el,o=t.anchor):(r=t.targetStart,o=t.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function b1(t,e,n,r){const o=e.targetStart=n(""),i=e.targetAnchor=n("");return o[y1]=i,t&&(r(o,t),r(i,t)),i}const Di=Symbol("_leaveCb"),Ph=Symbol("_enterCb");function pv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return es(()=>{t.isMounted=!0}),Ja(()=>{t.isUnmounting=!0}),t}const ar=[Function,Array],_v={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ar,onEnter:ar,onAfterEnter:ar,onEnterCancelled:ar,onBeforeLeave:ar,onLeave:ar,onAfterLeave:ar,onLeaveCancelled:ar,onBeforeAppear:ar,onAppear:ar,onAfterAppear:ar,onAppearCancelled:ar},w1=t=>{const e=t.subTree;return e.component?w1(e.component):e},F4={name:"BaseTransition",props:_v,setup(t,{slots:e}){const n=Ut(),r=pv();return()=>{const o=e.default&&O_(e.default(),!0);if(!o||!o.length)return;const i=T1(o),s=je(t),{mode:a}=s;if(r.isLeaving)return Xm(i);const c=Nw(i);if(!c)return Xm(i);let l=zc(c,s,r,n,d=>l=d);c.type!==Mt&&Zi(c,l);let u=n.subTree&&Nw(n.subTree);if(u&&u.type!==Mt&&!Ir(u,c)&&w1(n).type!==Mt){let d=zc(u,s,r,n);if(Zi(u,d),a==="out-in"&&c.type!==Mt)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},Xm(i);a==="in-out"&&c.type!==Mt?d.delayLeave=(f,_,m)=>{const y=x1(r,u);y[String(u.key)]=u,f[Di]=()=>{_(),f[Di]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{m(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function T1(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Mt){e=n;break}}return e}const A1=F4;function x1(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 zc(t,e,n,r,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:_,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:v,onAppear:T,onAfterAppear:w,onAppearCancelled:g}=e,E=String(t.key),C=x1(n,t),L=(R,x)=>{R&&_r(R,r,9,x)},A=(R,x)=>{const D=x[1];L(R,x),Re(R)?R.every(S=>S.length<=1)&&D():R.length<=1&&D()},I={mode:s,persisted:a,beforeEnter(R){let x=c;if(!n.isMounted)if(i)x=v||c;else return;R[Di]&&R[Di](!0);const D=C[E];D&&Ir(t,D)&&D.el[Di]&&D.el[Di](),L(x,[R])},enter(R){let x=l,D=u,S=d;if(!n.isMounted)if(i)x=T||l,D=w||u,S=g||d;else return;let O=!1;const ae=R[Ph]=le=>{O||(O=!0,le?L(S,[R]):L(D,[R]),I.delayedLeave&&I.delayedLeave(),R[Ph]=void 0)};x?A(x,[R,ae]):ae()},leave(R,x){const D=String(t.key);if(R[Ph]&&R[Ph](!0),n.isUnmounting)return x();L(f,[R]);let S=!1;const O=R[Di]=ae=>{S||(S=!0,x(),ae?L(y,[R]):L(m,[R]),R[Di]=void 0,C[D]===t&&delete C[D])};C[D]=t,_?A(_,[R,O]):O()},clone(R){const x=zc(R,e,n,r,o);return o&&o(x),x}};return I}function Xm(t){if(Od(t))return t=pi(t),t.children=null,t}function Nw(t){if(!Od(t))return v1(t.type)&&t.children?T1(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Le(n.default))return n.default()}}function Zi(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Zi(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 O_(t,e=!1,n){let r=[],o=0;for(let i=0;i<t.length;i++){let s=t[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===ft?(s.patchFlag&128&&o++,r=r.concat(O_(s.children,e,a))):(e||s.type!==Mt)&&r.push(a!=null?pi(s,{key:a}):s)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function on(t,e){return Le(t)?mt({name:t.name},e,{setup:t}):t}function M4(){const t=Ut();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function mv(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function B4(t){const e=Ut(),n=fi(null);if(e){const o=e.refs===ze?e.refs={}:e.refs;Object.defineProperty(o,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const _p=new WeakMap;function Dc(t,e,n,r,o=!1){if(Re(t)){t.forEach((m,y)=>Dc(m,e&&(Re(e)?e[y]:e),n,r,o));return}if(Ns(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Dc(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?kd(r.component):r.el,s=o?null:i,{i:a,r:c}=t,l=e&&e.r,u=a.refs===ze?a.refs={}:a.refs,d=a.setupState,f=je(d),_=d===ze?tv:m=>et(f,m);if(l!=null&&l!==c){if(Vw(e),dt(l))u[l]=null,_(l)&&(d[l]=null);else if(nt(l)){l.value=null;const m=e;m.k&&(u[m.k]=null)}}if(Le(c))gl(c,a,12,[s,u]);else{const m=dt(c),y=nt(c);if(m||y){const v=()=>{if(t.f){const T=m?_(c)?d[c]:u[c]:c.value;if(o)Re(T)&&E_(T,i);else if(Re(T))T.includes(i)||T.push(i);else if(m)u[c]=[i],_(c)&&(d[c]=u[c]);else{const w=[i];c.value=w,t.k&&(u[t.k]=w)}}else m?(u[c]=s,_(c)&&(d[c]=s)):y&&(c.value=s,t.k&&(u[t.k]=s))};if(s){const T=()=>{v(),_p.delete(t)};T.id=-1,_p.set(t,T),Yt(T,n)}else Vw(t),v()}}}function Vw(t){const e=_p.get(t);e&&(e.flags|=8,_p.delete(t))}let Fw=!1;const mc=()=>{Fw||(console.error("Hydration completed but contains mismatches."),Fw=!0)},U4=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",$4=t=>t.namespaceURI.includes("MathML"),Sh=t=>{if(t.nodeType===1){if(U4(t))return"svg";if($4(t))return"mathml"}},Ic=t=>t.nodeType===8;function j4(t){const{mt:e,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:a,insert:c,createComment:l}}=t,u=(g,E)=>{if(!E.hasChildNodes()){n(null,g,E),pp(),E._vnode=g;return}d(E.firstChild,g,null,null,null),pp(),E._vnode=g},d=(g,E,C,L,A,I=!1)=>{I=I||!!E.dynamicChildren;const R=Ic(g)&&g.data==="[",x=()=>y(g,E,C,L,A,R),{type:D,ref:S,shapeFlag:O,patchFlag:ae}=E;let le=g.nodeType;E.el=g,ae===-2&&(I=!1,E.dynamicChildren=null);let B=null;switch(D){case Wi:le!==3?E.children===""?(c(E.el=o(""),s(g),g),B=g):B=x():(g.data!==E.children&&(mc(),g.data=E.children),B=i(g));break;case Mt:w(g)?(B=i(g),T(E.el=g.content.firstChild,g,C)):le!==8||R?B=x():B=i(g);break;case Sa:if(R&&(g=i(g),le=g.nodeType),le===1||le===3){B=g;const j=!E.children.length;for(let H=0;H<E.staticCount;H++)j&&(E.children+=B.nodeType===1?B.outerHTML:B.data),H===E.staticCount-1&&(E.anchor=B),B=i(B);return R?i(B):B}else x();break;case ft:R?B=m(g,E,C,L,A,I):B=x();break;default:if(O&1)(le!==1||E.type.toLowerCase()!==g.tagName.toLowerCase())&&!w(g)?B=x():B=f(g,E,C,L,A,I);else if(O&6){E.slotScopeIds=A;const j=s(g);if(R?B=v(g):Ic(g)&&g.data==="teleport start"?B=v(g,g.data,"teleport end"):B=i(g),e(E,j,null,C,L,Sh(j),I),Ns(E)&&!E.type.__asyncResolved){let H;R?(H=ot(ft),H.anchor=B?B.previousSibling:j.lastChild):H=g.nodeType===3?Zu(""):ot("div"),H.el=g,E.component.subTree=H}}else O&64?le!==8?B=x():B=E.type.hydrate(g,E,C,L,A,I,t,_):O&128&&(B=E.type.hydrate(g,E,C,L,Sh(s(g)),A,I,t,d))}return S!=null&&Dc(S,null,L,E),B},f=(g,E,C,L,A,I)=>{I=I||!!E.dynamicChildren;const{type:R,props:x,patchFlag:D,shapeFlag:S,dirs:O,transition:ae}=E,le=R==="input"||R==="option";if(le||D!==-1){O&&oi(E,null,C,"created");let B=!1;if(w(g)){B=K1(null,ae)&&C&&C.vnode.props&&C.vnode.props.appear;const H=g.content.firstChild;if(B){const ce=H.getAttribute("class");ce&&(H.$cls=ce),ae.beforeEnter(H)}T(H,g,C),E.el=g=H}if(S&16&&!(x&&(x.innerHTML||x.textContent))){let H=_(g.firstChild,E,g,C,L,A,I);for(;H;){Oh(g,1)||mc();const ce=H;H=H.nextSibling,a(ce)}}else if(S&8){let H=E.children;H[0]===` 16`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(H=H.slice(1)),g.textContent!==H&&(Oh(g,0)||mc(),g.textContent=E.children)}if(x){if(le||!I||D&48){const H=g.tagName.includes("-");for(const ce in x)(le&&(ce.endsWith("value")||ce==="indeterminate")||_l(ce)&&!Ia(ce)||ce[0]==="."||H)&&r(g,ce,null,x[ce],void 0,C)}else if(x.onClick)r(g,"onClick",null,x.onClick,void 0,C);else if(D&4&&Nr(x.style))for(const H in x.style)x.style[H]}let j;(j=x&&x.onVnodeBeforeMount)&&zn(j,C,E),O&&oi(E,null,C,"beforeMount"),((j=x&&x.onVnodeMounted)||O||B)&&nP(()=>{j&&zn(j,C,E),B&&ae.enter(g),O&&oi(E,null,C,"mounted")},L)}return g.nextSibling},_=(g,E,C,L,A,I,R)=>{R=R||!!E.dynamicChildren;const x=E.children,D=x.length;for(let S=0;S<D;S++){const O=R?x[S]:x[S]=qn(x[S]),ae=O.type===Wi;g?(ae&&!R&&S+1<D&&qn(x[S+1]).type===Wi&&(c(o(g.data.slice(O.children.length)),C,i(g)),g.data=O.children),g=d(g,O,L,A,I,R)):ae&&!O.children?c(O.el=o(""),C):(Oh(C,1)||mc(),n(null,O,C,null,L,A,Sh(C),I))}return g},m=(g,E,C,L,A,I)=>{const{slotScopeIds:R}=E;R&&(A=A?A.concat(R):R);const x=s(g),D=_(i(g),E,x,C,L,A,I);return D&&Ic(D)&&D.data==="]"?i(E.anchor=D):(mc(),c(E.anchor=l("]"),x,D),D)},y=(g,E,C,L,A,I)=>{if(Oh(g.parentElement,1)||mc(),E.el=null,I){const D=v(g);for(;;){const S=i(g);if(S&&S!==D)a(S);else break}}const R=i(g),x=s(g);return a(g),n(null,E,x,R,C,L,Sh(x),A),C&&(C.vnode.el=E.el,N_(C,E.el)),R},v=(g,E="[",C="]")=>{let L=0;for(;g;)if(g=i(g),g&&Ic(g)&&(g.data===E&&L++,g.data===C)){if(L===0)return i(g);L--}return g},T=(g,E,C)=>{const L=E.parentNode;L&&L.replaceChild(g,E);let A=C;for(;A;)A.vnode.el===E&&(A.vnode.el=A.subTree.el=g),A=A.parent},w=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const Mw="data-allow-mismatch",H4={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Oh(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Mw);)t=t.parentElement;const n=t&&t.getAttribute(Mw);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(H4[e])}}const z4=Pd().requestIdleCallback||(t=>setTimeout(t,1)),q4=Pd().cancelIdleCallback||(t=>clearTimeout(t)),W4=(t=1e4)=>e=>{const n=z4(e,{timeout:t});return()=>q4(n)};function K4(t){const{top:e,left:n,bottom:r,right:o}=t.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(e>0&&e<i||r>0&&r<i)&&(n>0&&n<s||o>0&&o<s)}const G4=t=>(e,n)=>{const r=new IntersectionObserver(o=>{for(const i of o)if(i.isIntersecting){r.disconnect(),e();break}},t);return n(o=>{if(o instanceof Element){if(K4(o))return e(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},Q4=t=>e=>{if(t){const n=matchMedia(t);if(n.matches)e();else return n.addEventListener("change",e,{once:!0}),()=>n.removeEventListener("change",e)}},Y4=(t=[])=>(e,n)=>{dt(t)&&(t=[t]);let r=!1;const o=s=>{r||(r=!0,i(),e(),s.target.dispatchEvent(new s.constructor(s.type,s)))},i=()=>{n(s=>{for(const a of t)s.removeEventListener(a,o)})};return n(s=>{for(const a of t)s.addEventListener(a,o,{once:!0})}),i};function X4(t,e){if(Ic(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Ic(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Ns=t=>!!t.type.__asyncLoader;function Se(t){Le(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:i,timeout:s,suspensible:a=!0,onError:c}=t;let l=null,u,d=0;const f=()=>(d++,l=null,_()),_=()=>{let m;return l||(m=l=e().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),c)return new Promise((v,T)=>{c(y,()=>v(f()),()=>T(y),d+1)});throw y}).then(y=>m!==l&&l?l:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),u=y,y)))};return on({name:"AsyncComponentWrapper",__asyncLoader:_,__asyncHydrate(m,y,v){let T=!1;(y.bu||(y.bu=[])).push(()=>T=!0);const w=()=>{T||v()},g=i?()=>{const E=i(w,C=>X4(m,C));E&&(y.bum||(y.bum=[])).push(E)}:w;u?g():_().then(()=>!y.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const m=dn;if(mv(m),u)return()=>Jm(u,m);const y=g=>{l=null,Xa(g,m,13,!r)};if(a&&m.suspense||qc)return _().then(g=>()=>Jm(g,m)).catch(g=>(y(g),()=>r?ot(r,{error:g}):null));const v=Te(!1),T=Te(),w=Te(!!o);return o&&setTimeout(()=>{w.value=!1},o),s!=null&&setTimeout(()=>{if(!v.value&&!T.value){const g=new Error(`Async component timed out after ${s}ms.`);y(g),T.value=g}},s),_().then(()=>{v.value=!0,m.parent&&Od(m.parent.vnode)&&m.parent.update()}).catch(g=>{y(g),T.value=g}),()=>{if(v.value&&u)return Jm(u,m);if(T.value&&r)return ot(r,{error:T.value});if(n&&!w.value)return ot(n)}}})}function Jm(t,e){const{ref:n,props:r,children:o,ce:i}=e.vnode,s=ot(t,r,o);return s.ref=n,s.ce=i,delete e.vnode.ce,s}const Od=t=>t.type.__isKeepAlive,J4={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Ut(),r=n.ctx;if(!r.renderer)return()=>{const w=e.default&&e.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let s=null;const a=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(w,g,E,C,L)=>{const A=w.component;l(w,g,E,0,a),c(A.vnode,w,g,E,A,a,C,w.slotScopeIds,L),Yt(()=>{A.isDeactivated=!1,A.a&&Ra(A.a);const I=w.props&&w.props.onVnodeMounted;I&&zn(I,A.parent,w)},a)},r.deactivate=w=>{const g=w.component;yp(g.m),yp(g.a),l(w,f,null,1,a),Yt(()=>{g.da&&Ra(g.da);const E=w.props&&w.props.onVnodeUnmounted;E&&zn(E,g.parent,w),g.isDeactivated=!0},a)};function _(w){Zm(w),u(w,n,a,!0)}function m(w){o.forEach((g,E)=>{const C=lg(g.type);C&&!w(C)&&y(E)})}function y(w){const g=o.get(w);g&&(!s||!Ir(g,s))?_(g):s&&Zm(s),o.delete(w),i.delete(w)}Kt(()=>[t.include,t.exclude],([w,g])=>{w&&m(E=>uu(w,E)),g&&m(E=>!uu(g,E))},{flush:"post",deep:!0});let v=null;const T=()=>{v!=null&&(vp(n.subTree.type)?Yt(()=>{o.set(v,Dh(n.subTree))},n.subTree.suspense):o.set(v,Dh(n.subTree)))};return es(T),L_(T),Ja(()=>{o.forEach(w=>{const{subTree:g,suspense:E}=n,C=Dh(g);if(w.type===C.type&&w.key===C.key){Zm(C);const L=C.component.da;L&&Yt(L,E);return}_(w)})}),()=>{if(v=null,!e.default)return s=null;const w=e.default(),g=w[0];if(w.length>1)return s=null,w;if(!ts(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return s=null,g;let E=Dh(g);if(E.type===Mt)return s=null,E;const C=E.type,L=lg(Ns(E)?E.type.__asyncResolved||{}:C),{include:A,exclude:I,max:R}=t;if(A&&(!L||!uu(A,L))||I&&L&&uu(I,L))return E.shapeFlag&=-257,s=E,g;const x=E.key==null?C:E.key,D=o.get(x);return E.el&&(E=pi(E),g.shapeFlag&128&&(g.ssContent=E)),v=x,D?(E.el=D.el,E.component=D.component,E.transition&&Zi(E,E.transition),E.shapeFlag|=512,i.delete(x),i.add(x)):(i.add(x),R&&i.size>parseInt(R,10)&&y(i.values().next().value)),E.shapeFlag|=256,s=E,vp(g.type)?g:E}}},I1=J4;function uu(t,e){return Re(t)?t.some(n=>uu(n,e)):dt(t)?t.split(",").includes(e):BC(t)?(t.lastIndex=0,t.test(e)):!1}function gv(t,e){R1(t,"a",e)}function yv(t,e){R1(t,"da",e)}function R1(t,e,n=dn){const r=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(D_(e,r,n),n){let o=n.parent;for(;o&&o.parent;)Od(o.parent.vnode)&&Z4(r,e,n,o),o=o.parent}}function Z4(t,e,n,r){const o=D_(e,t,r,!0);Dd(()=>{E_(r[e],o)},n)}function Zm(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Dh(t){return t.shapeFlag&128?t.ssContent:t}function D_(t,e,n=dn,r=!1){if(n){const o=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...s)=>{Xi();const a=Na(n),c=_r(e,n,t,s);return a(),Ji(),c});return r?o.unshift(i):o.push(i),i}}const as=t=>(e,n=dn)=>{(!qc||t==="sp")&&D_(t,(...r)=>e(...r),n)},C1=as("bm"),es=as("m"),vv=as("bu"),L_=as("u"),Ja=as("bum"),Dd=as("um"),Ev=as("sp"),P1=as("rtg"),S1=as("rtc");function bv(t,e=dn){D_("ec",t,e)}const wv="components",eF="directives";function tF(t,e){return Tv(wv,t,!0,e)||t}const O1=Symbol.for("v-ndc");function ga(t){return dt(t)?Tv(wv,t,!1)||t:t||O1}function nF(t){return Tv(eF,t)}function Tv(t,e,n=!0,r=!1){const o=pn||dn;if(o){const i=o.type;if(t===wv){const a=lg(i,!1);if(a&&(a===e||a===rn(e)||a===ml(rn(e))))return i}const s=Bw(o[t]||i[t],e)||Bw(o.appContext[t],e);return!s&&r?i:s}}function Bw(t,e){return t&&(t[e]||t[rn(e)]||t[ml(rn(e))])}function mp(t,e,n,r){let o;const i=n&&n[r],s=Re(t);if(s||dt(t)){const a=s&&Nr(t);let c=!1,l=!1;a&&(c=!rr(t),l=hi(t),t=x_(t)),o=new Array(t.length);for(let u=0,d=t.length;u<d;u++)o[u]=e(c?l?dp(un(t[u])):un(t[u]):t[u],u,void 0,i&&i[u])}else if(typeof t=="number"){o=new Array(t);for(let a=0;a<t;a++)o[a]=e(a+1,a,void 0,i&&i[a])}else if(ht(t))if(t[Symbol.iterator])o=Array.from(t,(a,c)=>e(a,c,void 0,i&&i[c]));else{const a=Object.keys(t);o=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const u=a[c];o[c]=e(t[u],u,c,i&&i[c])}}else o=[];return n&&(n[r]=o),o}function rF(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(Re(r))for(let o=0;o<r.length;o++)t[r[o].name]=r[o].fn;else r&&(t[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return t}function tr(t,e,n={},r,o){if(pn.ce||pn.parent&&Ns(pn.parent)&&pn.parent.ce)return e!=="default"&&(n.name=e),Be(),tn(ft,null,[ot("slot",n,r&&r())],64);let i=t[e];i&&i._c&&(i._d=!1),Be();const s=i&&Av(i(n)),a=n.key||s&&s.key,c=tn(ft,{key:(a&&!pr(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&t._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Av(t){return t.some(e=>ts(e)?!(e.type===Mt||e.type===ft&&!Av(e.children)):!0)?t:null}function oF(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:Sc(r)]=t[r];return n}const Z0=t=>t?aP(t)?kd(t):Z0(t.parent):null,Tu=mt(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=>Z0(t.parent),$root:t=>Z0(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>xv(t),$forceUpdate:t=>t.f||(t.f=()=>{fv(t.update)}),$nextTick:t=>t.n||(t.n=sr.bind(t.proxy)),$watch:t=>LF.bind(t)}),e0=(t,e)=>t!==ze&&!t.__isScriptSetup&&et(t,e),eg={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:c}=t;let l;if(e[0]!=="$"){const _=s[e];if(_!==void 0)switch(_){case 1:return r[e];case 2:return o[e];case 4:return n[e];case 3:return i[e]}else{if(e0(r,e))return s[e]=1,r[e];if(o!==ze&&et(o,e))return s[e]=2,o[e];if((l=t.propsOptions[0])&&et(l,e))return s[e]=3,i[e];if(n!==ze&&et(n,e))return s[e]=4,n[e];tg&&(s[e]=0)}}const u=Tu[e];let d,f;if(u)return e==="$attrs"&&xn(t.attrs,"get",""),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==ze&&et(n,e))return s[e]=4,n[e];if(f=c.config.globalProperties,et(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:o,ctx:i}=t;return e0(o,e)?(o[e]=n,!0):r!==ze&&et(r,e)?(r[e]=n,!0):et(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:o,propsOptions:i,type:s}},a){let c,l;return!!(n[a]||t!==ze&&a[0]!=="$"&&et(t,a)||e0(e,a)||(c=i[0])&&et(c,a)||et(r,a)||et(Tu,a)||et(o.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:et(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}},iF=mt({},eg,{get(t,e){if(e!==Symbol.unscopables)return eg.get(t,e,t)},has(t,e){return e[0]!=="_"&&!ov(e)}});function sF(){return null}function aF(){return null}function cF(t){}function lF(t){}function uF(){return null}function dF(){}function hF(t,e){return null}function fF(){return L1().slots}function D1(){return L1().attrs}function L1(t){const e=Ut();return e.setupContext||(e.setupContext=uP(e))}function Yu(t){return Re(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function pF(t,e){const n=Yu(t);for(const r in e){if(r.startsWith("__skip"))continue;let o=n[r];o?Re(o)||Le(o)?o=n[r]={type:o,default:e[r]}:o.default=e[r]:o===null&&(o=n[r]={default:e[r]}),o&&e[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function _F(t,e){return!t||!e?t||e:Re(t)&&Re(e)?t.concat(e):mt({},Yu(t),Yu(e))}function mF(t,e){const n={};for(const r in t)e.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function gF(t){const e=Ut();let n=t();return sg(),b_(n)&&(n=n.catch(r=>{throw Na(e),r})),[n,()=>Na(e)]}let tg=!0;function yF(t){const e=xv(t),n=t.proxy,r=t.ctx;tg=!1,e.beforeCreate&&Uw(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:_,updated:m,activated:y,deactivated:v,beforeDestroy:T,beforeUnmount:w,destroyed:g,unmounted:E,render:C,renderTracked:L,renderTriggered:A,errorCaptured:I,serverPrefetch:R,expose:x,inheritAttrs:D,components:S,directives:O,filters:ae}=e;if(l&&vF(l,r,null),s)for(const j in s){const H=s[j];Le(H)&&(r[j]=H.bind(n))}if(o){const j=o.call(n,n);ht(j)&&(t.data=Er(j))}if(tg=!0,i)for(const j in i){const H=i[j],ce=Le(H)?H.bind(n,n):Le(H.get)?H.get.bind(n,n):nr,ue=!Le(H)&&Le(H.set)?H.set.bind(n):nr,W=xe({get:ce,set:ue});Object.defineProperty(r,j,{enumerable:!0,configurable:!0,get:()=>W.value,set:J=>W.value=J})}if(a)for(const j in a)k1(a[j],r,n,j);if(c){const j=Le(c)?c.call(n):c;Reflect.ownKeys(j).forEach(H=>{qi(H,j[H])})}u&&Uw(u,t,"c");function B(j,H){Re(H)?H.forEach(ce=>j(ce.bind(n))):H&&j(H.bind(n))}if(B(C1,d),B(es,f),B(vv,_),B(L_,m),B(gv,y),B(yv,v),B(bv,I),B(S1,L),B(P1,A),B(Ja,w),B(Dd,E),B(Ev,R),Re(x))if(x.length){const j=t.exposed||(t.exposed={});x.forEach(H=>{Object.defineProperty(j,H,{get:()=>n[H],set:ce=>n[H]=ce,enumerable:!0})})}else t.exposed||(t.exposed={});C&&t.render===nr&&(t.render=C),D!=null&&(t.inheritAttrs=D),S&&(t.components=S),O&&(t.directives=O),R&&mv(t)}function vF(t,e,n=nr){Re(t)&&(t=ng(t));for(const r in t){const o=t[r];let i;ht(o)?"default"in o?i=Rt(o.from||r,o.default,!0):i=Rt(o.from||r):i=Rt(o),nt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[r]=i}}function Uw(t,e,n){_r(Re(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function k1(t,e,n,r){let o=r.includes(".")?J1(n,r):()=>n[r];if(dt(t)){const i=e[t];Le(i)&&Kt(o,i)}else if(Le(t))Kt(o,t.bind(n));else if(ht(t))if(Re(t))t.forEach(i=>k1(i,e,n,r));else{const i=Le(t.handler)?t.handler.bind(n):e[t.handler];Le(i)&&Kt(o,i,t)}}function xv(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,a=i.get(e);let c;return a?c=a:!o.length&&!n&&!r?c=e:(c={},o.length&&o.forEach(l=>gp(c,l,s,!0)),gp(c,e,s)),ht(e)&&i.set(e,c),c}function gp(t,e,n,r=!1){const{mixins:o,extends:i}=e;i&&gp(t,i,n,!0),o&&o.forEach(s=>gp(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=EF[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const EF={data:$w,props:jw,emits:jw,methods:du,computed:du,beforeCreate:Fn,created:Fn,beforeMount:Fn,mounted:Fn,beforeUpdate:Fn,updated:Fn,beforeDestroy:Fn,beforeUnmount:Fn,destroyed:Fn,unmounted:Fn,activated:Fn,deactivated:Fn,errorCaptured:Fn,serverPrefetch:Fn,components:du,directives:du,watch:wF,provide:$w,inject:bF};function $w(t,e){return e?t?function(){return mt(Le(t)?t.call(this,this):t,Le(e)?e.call(this,this):e)}:e:t}function bF(t,e){return du(ng(t),ng(e))}function ng(t){if(Re(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Fn(t,e){return t?[...new Set([].concat(t,e))]:e}function du(t,e){return t?mt(Object.create(null),t,e):e}function jw(t,e){return t?Re(t)&&Re(e)?[...new Set([...t,...e])]:mt(Object.create(null),Yu(t),Yu(e??{})):e}function wF(t,e){if(!t)return e;if(!e)return t;const n=mt(Object.create(null),t);for(const r in e)n[r]=Fn(t[r],e[r]);return n}function N1(){return{app:null,config:{isNativeTag:tv,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let TF=0;function AF(t,e){return function(r,o=null){Le(r)||(r=mt({},r)),o!=null&&!ht(o)&&(o=null);const i=N1(),s=new WeakSet,a=[];let c=!1;const l=i.app={_uid:TF++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:hP,get config(){return i.config},set config(u){},use(u,...d){return s.has(u)||(u&&Le(u.install)?(s.add(u),u.install(l,...d)):Le(u)&&(s.add(u),u(l,...d))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,d){return d?(i.components[u]=d,l):i.components[u]},directive(u,d){return d?(i.directives[u]=d,l):i.directives[u]},mount(u,d,f){if(!c){const _=l._ceVNode||ot(r,o);return _.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),d&&e?e(_,u):t(_,u,f),c=!0,l._container=u,u.__vue_app__=l,kd(_.component)}},onUnmount(u){a.push(u)},unmount(){c&&(_r(a,l._instance,16),t(null,l._container),delete l._container.__vue_app__)},provide(u,d){return i.provides[u]=d,l},runWithContext(u){const d=Pa;Pa=l;try{return u()}finally{Pa=d}}};return l}}let Pa=null;function qi(t,e){if(dn){let n=dn.provides;const r=dn.parent&&dn.parent.provides;r===n&&(n=dn.provides=Object.create(r)),n[t]=e}}function Rt(t,e,n=!1){const r=Ut();if(r||Pa){let o=Pa?Pa._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Le(e)?e.call(r&&r.proxy):e}}function yl(){return!!(Ut()||Pa)}const V1={},F1=()=>Object.create(V1),M1=t=>Object.getPrototypeOf(t)===V1;function xF(t,e,n,r=!1){const o={},i=F1();t.propsDefaults=Object.create(null),B1(t,e,o,i);for(const s in t.propsOptions[0])s in o||(o[s]=void 0);n?t.props=r?o:Cr(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function IF(t,e,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=t,a=je(o),[c]=t.propsOptions;let l=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(k_(t.emitsOptions,f))continue;const _=e[f];if(c)if(et(i,f))_!==i[f]&&(i[f]=_,l=!0);else{const m=rn(f);o[m]=rg(c,a,m,_,t,!1)}else _!==i[f]&&(i[f]=_,l=!0)}}}else{B1(t,e,o,i)&&(l=!0);let u;for(const d in a)(!e||!et(e,d)&&((u=Pn(d))===d||!et(e,u)))&&(c?n&&(n[d]!==void 0||n[u]!==void 0)&&(o[d]=rg(c,a,d,void 0,t,!0)):delete o[d]);if(i!==a)for(const d in i)(!e||!et(e,d))&&(delete i[d],l=!0)}l&&Ni(t.attrs,"set","")}function B1(t,e,n,r){const[o,i]=t.propsOptions;let s=!1,a;if(e)for(let c in e){if(Ia(c))continue;const l=e[c];let u;o&&et(o,u=rn(c))?!i||!i.includes(u)?n[u]=l:(a||(a={}))[u]=l:k_(t.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,s=!0)}if(i){const c=je(n),l=a||ze;for(let u=0;u<i.length;u++){const d=i[u];n[d]=rg(o,c,d,l[d],t,!et(l,d))}}return s}function rg(t,e,n,r,o,i){const s=t[n];if(s!=null){const a=et(s,"default");if(a&&r===void 0){const c=s.default;if(s.type!==Function&&!s.skipFactory&&Le(c)){const{propsDefaults:l}=o;if(n in l)r=l[n];else{const u=Na(o);
vendor: 5,642 bytes, line 16
16r=l[n]=c.call(null,e),u()}}else r=c;o.ce&&o.ce._setProp(n,r)}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===Pn(n))&&(r=!0))}return r}const RF=new WeakMap;function U1(t,e,n=!1){const r=n?RF:e.propsCache,o=r.get(t);if(o)return o;const i=t.props,s={},a=[];let c=!1;if(!Le(t)){const u=d=>{c=!0;const[f,_]=U1(d,e,!0);mt(s,f),_&&a.push(..._)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!i&&!c)return ht(t)&&r.set(t,Aa),Aa;if(Re(i))for(let u=0;u<i.length;u++){const d=rn(i[u]);Hw(d)&&(s[d]=ze)}else if(i)for(const u in i){const d=rn(u);if(Hw(d)){const f=i[u],_=s[d]=Re(f)||Le(f)?{type:f}:mt({},f),m=_.type;let y=!1,v=!0;if(Re(m))for(let T=0;T<m.length;++T){const w=m[T],g=Le(w)&&w.name;if(g==="Boolean"){y=!0;break}else g==="String"&&(v=!1)}else y=Le(m)&&m.name==="Boolean";_[0]=y,_[1]=v,(y||et(_,"default"))&&a.push(d)}}const l=[s,a];return ht(t)&&r.set(t,l),l}function Hw(t){return t[0]!=="$"&&!Ia(t)}const Iv=t=>t==="_"||t==="_ctx"||t==="$stable",Rv=t=>Re(t)?t.map(qn):[qn(t)],CF=(t,e,n)=>{if(e._n)return e;const r=xr((...o)=>Rv(e(...o)),n);return r._c=!1,r},$1=(t,e,n)=>{const r=t._ctx;for(const o in t){if(Iv(o))continue;const i=t[o];if(Le(i))e[o]=CF(o,i,r);else if(i!=null){const s=Rv(i);e[o]=()=>s}}},j1=(t,e)=>{const n=Rv(e);t.slots.default=()=>n},H1=(t,e,n)=>{for(const r in e)(n||!Iv(r))&&(t[r]=e[r])},PF=(t,e,n)=>{const r=t.slots=F1();if(t.vnode.shapeFlag&32){const o=e._;o?(H1(r,e,n),n&&rv(r,"_",o,!0)):$1(e,r)}else e&&j1(t,e)},SF=(t,e,n)=>{const{vnode:r,slots:o}=t;let i=!0,s=ze;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:H1(o,e,n):(i=!e.$stable,$1(e,o)),s=e}else e&&(j1(t,e),s={default:1});if(i)for(const a in o)!Iv(a)&&s[a]==null&&delete o[a]},Yt=nP;function z1(t){return W1(t)}function q1(t){return W1(t,j4)}function W1(t,e){const n=Pd();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:_=nr,insertStaticContent:m}=t,y=(k,F,$,se=null,G=null,N=null,M=void 0,z=null,X=!!F.dynamicChildren)=>{if(k===F)return;k&&!Ir(k,F)&&(se=Y(k),J(k,G,N,!0),k=null),F.patchFlag===-2&&(X=!1,F.dynamicChildren=null);const{type:re,ref:fe,shapeFlag:U}=F;switch(re){case Wi:v(k,F,$,se);break;case Mt:T(k,F,$,se);break;case Sa:k==null&&w(F,$,se,M);break;case ft:S(k,F,$,se,G,N,M,z,X);break;default:U&1?C(k,F,$,se,G,N,M,z,X):U&6?O(k,F,$,se,G,N,M,z,X):(U&64||U&128)&&re.process(k,F,$,se,G,N,M,z,X,ge)}fe!=null&&G?Dc(fe,k&&k.ref,N,F||k,!F):fe==null&&k&&k.ref!=null&&Dc(k.ref,null,N,k,!0)},v=(k,F,$,se)=>{if(k==null)r(F.el=a(F.children),$,se);else{const G=F.el=k.el;F.children!==k.children&&l(G,F.children)}},T=(k,F,$,se)=>{k==null?r(F.el=c(F.children||""),$,se):F.el=k.el},w=(k,F,$,se)=>{[k.el,k.anchor]=m(k.children,F,$,se,k.el,k.anchor)},g=({el:k,anchor:F},$,se)=>{let G;for(;k&&k!==F;)G=f(k),r(k,$,se),k=G;r(F,$,se)},E=({el:k,anchor:F})=>{let $;for(;k&&k!==F;)$=f(k),o(k),k=$;o(F)},C=(k,F,$,se,G,N,M,z,X)=>{F.type==="svg"?M="svg":F.type==="math"&&(M="mathml"),k==null?L(F,$,se,G,N,M,z,X):R(k,F,G,N,M,z,X)},L=(k,F,$,se,G,N,M,z)=>{let X,re;const{props:fe,shapeFlag:U,transition:Z,dirs:_e}=k;if(X=k.el=s(k.type,N,fe&&fe.is,fe),U&8?u(X,k.children):U&16&&I(k.children,X,null,se,G,t0(k,N),M,z),_e&&oi(k,null,se,"created"),A(X,k,k.scopeId,M,se),fe){for(const Ne in fe)Ne!=="value"&&!Ia(Ne)&&i(X,Ne,null,fe[Ne],N,se);"value"in fe&&i(X,"value",null,fe.value,N),(re=fe.onVnodeBeforeMount)&&zn(re,se,k)}_e&&oi(k,null,se,"beforeMount");const ve=K1(G,Z);ve&&Z.beforeEnter(X),r(X,F,$),((re=fe&&fe.onVnodeMounted)||ve||_e)&&Yt(()=>{re&&zn(re,se,k),ve&&Z.enter(X),_e&&oi(k,null,se,"mounted")},G)},A=(k,F,$,se,G)=>{if($&&_(k,$),se)for(let N=0;N<se.length;N++)_(k,se[N]);if(G){let N=G.subTree;if(F===N||vp(N.type)&&(N.ssContent===F||N.ssFallback===F)){const M=G.vnode;A(k,M,M.scopeId,M.slotScopeIds,G.parent)}}},I=(k,F,$,se,G,N,M,z,X=0)=>{for(let re=X;re<k.length;re++){const fe=k[re]=z?xs(k[re]):qn(k[re]);y(null,fe,F,$,se,G,N,M,z)}},R=(k,F,$,se,G,N,M)=>{const z=F.el=k.el;let{patchFlag:X,dynamicChildren:re,dirs:fe}=F;X|=k.patchFlag&16;const U=k.props||ze,Z=F.props||ze;let _e;if($&&la($,!1),(_e=Z.onVnodeBeforeUpdate)&&zn(_e,$,F,k),fe&&oi(F,k,$,"beforeUpdate"),$&&la($,!0),(U.innerHTML&&Z.innerHTML==null||U.textContent&&Z.textContent==null)&&u(z,""),re?x(k.dynamicChildren,re,z,$,se,t0(F,G),N):M||H(k,F,z,null,$,se,t0(F,G),N,!1),X>0){if(X&16)D(z,U,Z,$,G);else if(X&2&&U.class!==Z.class&&i(z,"class",null,Z.class,G),X&4&&i(z,"style",U.style,Z.style,G),X&8){const ve=F.dynamicProps;for(let Ne=0;Ne<ve.length;Ne++){const Me=ve[Ne],it=U[Me],st=Z[Me];(st!==it||Me==="value")&&i(z,Me,it,st,G,$)}}X&1&&k.children!==F.children&&u(z,F.children)}else!M&&re==null&&D(z,U,Z,$,G);((_e=Z.onVnodeUpdated)||fe)&&Yt(()=>{_e&&zn(_e,$,F,k),fe&&oi(F,k,$,"updated")},se)},x=(k,F,$,se,G,N,M)=>{for(let z=0;z<F.length;z++){const X=k[z],re=F[z],fe=X.el&&(X.type===ft||!Ir(X,re)||X.shapeFlag&198)?d(X.el):$;y(X,re,fe,null,se,G,N,M,!0)}},D=(k,F,$,se,G)=>{if(F!==$){if(F!==ze)for(const N in F)!Ia(N)&&!(N in $)&&i(k,N,F[N],null,G,se);for(const N in $){if(Ia(N))continue;const M=$[N],z=F[N];M!==z&&N!=="value"&&i(k,N,z,M,G,se)}"value"in $&&i(k,"value",F.value,$.value,G)}},S=(k,F,$,se,G,N,M,z,X)=>{const re=F.el=k?k.el:a(""),fe=F.anchor=k?k.anchor:a("");let{patchFlag:U,dynamicChildren:Z,slotScopeIds:_e}=F;_e&&(z=z?z.concat(_e):_e),k==null?(r(re,$,se),r(fe,$,se),I(F.children||[],$,fe,G,N,M,z,X)):U>0&&U&64&&Z&&k.dynamicChildren?(x(k.dynamicChildren,Z,$,G,N,M,z),(F.key!=null||G&&F===G.subTree)&&Cv(k,F,!0)):H(k,F,$,fe,G,N,M,z,X)},O=(k,F,$,se,G,N,M,z,X)=>{F.slotScopeIds=z,k==null?F.shapeFlag&512?G.ctx.activate(F,$,se,M,X):ae(F,$,se,G,N,M,
vendor: 23,224 bytes, lines 16-19
16X):le(k,F,X)},ae=(k,F,$,se,G,N,M)=>{const z=k.component=sP(k,se,G);if(Od(k)&&(z.ctx.renderer=ge),cP(z,!1,M),z.asyncDep){if(G&&G.registerDep(z,B,M),!k.el){const X=z.subTree=ot(Mt);T(null,X,F,$),k.placeholder=X.el}}else B(z,k,F,$,G,N,M)},le=(k,F,$)=>{const se=F.component=k.component;if(UF(k,F,$))if(se.asyncDep&&!se.asyncResolved){j(se,F,$);return}else se.next=F,se.update();else F.el=k.el,se.vnode=F},B=(k,F,$,se,G,N,M)=>{const z=()=>{if(k.isMounted){let{next:U,bu:Z,u:_e,parent:ve,vnode:Ne}=k;{const Vt=G1(k);if(Vt){U&&(U.el=Ne.el,j(k,U,M)),Vt.asyncDep.then(()=>{k.isUnmounted||z()});return}}let Me=U,it;la(k,!1),U?(U.el=Ne.el,j(k,U,M)):U=Ne,Z&&Ra(Z),(it=U.props&&U.props.onVnodeBeforeUpdate)&&zn(it,ve,U,Ne),la(k,!0);const st=sf(k),gt=k.subTree;k.subTree=st,y(gt,st,d(gt.el),Y(gt),k,G,N),U.el=st.el,Me===null&&N_(k,st.el),_e&&Yt(_e,G),(it=U.props&&U.props.onVnodeUpdated)&&Yt(()=>zn(it,ve,U,Ne),G)}else{let U;const{el:Z,props:_e}=F,{bm:ve,m:Ne,parent:Me,root:it,type:st}=k,gt=Ns(F);if(la(k,!1),ve&&Ra(ve),!gt&&(U=_e&&_e.onVnodeBeforeMount)&&zn(U,Me,F),la(k,!0),Z&&pe){const Vt=()=>{k.subTree=sf(k),pe(Z,k.subTree,k,G,null)};gt&&st.__asyncHydrate?st.__asyncHydrate(Z,k,Vt):Vt()}else{it.ce&&it.ce._def.shadowRoot!==!1&&it.ce._injectChildStyle(st);const Vt=k.subTree=sf(k);y(null,Vt,$,se,k,G,N),F.el=Vt.el}if(Ne&&Yt(Ne,G),!gt&&(U=_e&&_e.onVnodeMounted)){const Vt=F;Yt(()=>zn(U,Me,Vt),G)}(F.shapeFlag&256||Me&&Ns(Me.vnode)&&Me.vnode.shapeFlag&256)&&k.a&&Yt(k.a,G),k.isMounted=!0,F=$=se=null}};k.scope.on();const X=k.effect=new zu(z);k.scope.off();const re=k.update=X.run.bind(X),fe=k.job=X.runIfDirty.bind(X);fe.i=k,fe.id=k.uid,X.scheduler=()=>fv(fe),la(k,!0),re()},j=(k,F,$)=>{F.component=k;const se=k.vnode.props;k.vnode=F,k.next=null,IF(k,F.props,se,$),SF(k,F.children,$),Xi(),Ow(k),Ji()},H=(k,F,$,se,G,N,M,z,X=!1)=>{const re=k&&k.children,fe=k?k.shapeFlag:0,U=F.children,{patchFlag:Z,shapeFlag:_e}=F;if(Z>0){if(Z&128){ue(re,U,$,se,G,N,M,z,X);return}else if(Z&256){ce(re,U,$,se,G,N,M,z,X);return}}_e&8?(fe&16&&be(re,G,N),U!==re&&u($,U)):fe&16?_e&16?ue(re,U,$,se,G,N,M,z,X):be(re,G,N,!0):(fe&8&&u($,""),_e&16&&I(U,$,se,G,N,M,z,X))},ce=(k,F,$,se,G,N,M,z,X)=>{k=k||Aa,F=F||Aa;const re=k.length,fe=F.length,U=Math.min(re,fe);let Z;for(Z=0;Z<U;Z++){const _e=F[Z]=X?xs(F[Z]):qn(F[Z]);y(k[Z],_e,$,null,G,N,M,z,X)}re>fe?be(k,G,N,!0,!1,U):I(F,$,se,G,N,M,z,X,U)},ue=(k,F,$,se,G,N,M,z,X)=>{let re=0;const fe=F.length;let U=k.length-1,Z=fe-1;for(;re<=U&&re<=Z;){const _e=k[re],ve=F[re]=X?xs(F[re]):qn(F[re]);if(Ir(_e,ve))y(_e,ve,$,null,G,N,M,z,X);else break;re++}for(;re<=U&&re<=Z;){const _e=k[U],ve=F[Z]=X?xs(F[Z]):qn(F[Z]);if(Ir(_e,ve))y(_e,ve,$,null,G,N,M,z,X);else break;U--,Z--}if(re>U){if(re<=Z){const _e=Z+1,ve=_e<fe?F[_e].el:se;for(;re<=Z;)y(null,F[re]=X?xs(F[re]):qn(F[re]),$,ve,G,N,M,z,X),re++}}else if(re>Z)for(;re<=U;)J(k[re],G,N,!0),re++;else{const _e=re,ve=re,Ne=new Map;for(re=ve;re<=Z;re++){const Ot=F[re]=X?xs(F[re]):qn(F[re]);Ot.key!=null&&Ne.set(Ot.key,re)}let Me,it=0;const st=Z-ve+1;let gt=!1,Vt=0;const an=new Array(st);for(re=0;re<st;re++)an[re]=0;for(re=_e;re<=U;re++){const Ot=k[re];if(it>=st){J(Ot,G,N,!0);continue}let jn;if(Ot.key!=null)jn=Ne.get(Ot.key);else for(Me=ve;Me<=Z;Me++)if(an[Me-ve]===0&&Ir(Ot,F[Me])){jn=Me;break}jn===void 0?J(Ot,G,N,!0):(an[jn-ve]=re+1,jn>=Vt?Vt=jn:gt=!0,y(Ot,F[jn],$,null,G,N,M,z,X),it++)}const Nn=gt?OF(an):Aa;for(Me=Nn.length-1,re=st-1;re>=0;re--){const Ot=ve+re,jn=F[Ot],wi=F[Ot+1],na=Ot+1<fe?wi.el||wi.placeholder:se;an[re]===0?y(null,jn,$,na,G,N,M,z,X):gt&&(Me<0||re!==Nn[Me]?W(jn,$,na,2):Me--)}}},W=(k,F,$,se,G=null)=>{const{el:N,type:M,transition:z,children:X,shapeFlag:re}=k;if(re&6){W(k.component.subTree,F,$,se);return}if(re&128){k.suspense.move(F,$,se);return}if(re&64){M.move(k,F,$,ge);return}if(M===ft){r(N,F,$);for(let U=0;U<X.length;U++)W(X[U],F,$,se);r(k.anchor,F,$);return}if(M===Sa){g(k,F,$);return}if(se!==2&&re&1&&z)if(se===0)z.beforeEnter(N),r(N,F,$),Yt(()=>z.enter(N),G);else{const{leave:U,delayLeave:Z,afterLeave:_e}=z,ve=()=>{k.ctx.isUnmounted?o(N):r(N,F,$)},Ne=()=>{N._isLeaving&&N[Di](!0),U(N,()=>{ve(),_e&&_e()})};Z?Z(N,ve,Ne):Ne()}else r(N,F,$)},J=(k,F,$,se=!1,G=!1)=>{const{type:N,props:M,ref:z,children:X,dynamicChildren:re,shapeFlag:fe,patchFlag:U,dirs:Z,cacheIndex:_e}=k;if(U===-2&&(G=!1),z!=null&&(Xi(),Dc(z,null,$,k,!0),Ji()),_e!=null&&(F.renderCache[_e]=void 0),fe&256){F.ctx.deactivate(k);return}const ve=fe&1&&Z,Ne=!Ns(k);let Me;if(Ne&&(Me=M&&M.onVnodeBeforeUnmount)&&zn(Me,F,k),fe&6)q(k.component,$,se);else{if(fe&128){k.suspense.unmount($,se);return}ve&&oi(k,null,F,"beforeUnmount"),fe&64?k.type.remove(k,F,$,ge,se):re&&!re.hasOnce&&(N!==ft||U>0&&U&64)?be(re,F,$,!1,!0):(N===ft&&U&384||!G&&fe&16)&&be(X,F,$),se&&ee(k)}(Ne&&(Me=M&&M.onVnodeUnmounted)||ve)&&Yt(()=>{Me&&zn(Me,F,k),ve&&oi(k,null,F,"unmounted")},$)},ee=k=>{const{type:F,el:$,anchor:se,transition:G}=k;if(F===ft){ne($,se);return}if(F===Sa){E(k);return}const N=()=>{o($),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(k.shapeFlag&1&&G&&!G.persisted){const{leave:M,delayLeave:z}=G,X=()=>M($,N);z?z(k.el,N,X):X()}else N()},ne=(k,F)=>{let $;for(;k!==F;)$=f(k),o(k),k=$;o(F)},q=(k,F,$)=>{const{bum:se,scope:G,job:N,subTree:M,um:z,m:X,a:re}=k;yp(X),yp(re),se&&Ra(se),G.stop(),N&&(N.flags|=8,J(M,k,F,$)),z&&Yt(z,F),Yt(()=>{k.isUnmounted=!0},F)},be=(k,F,$,se=!1,G=!1,N=0)=>{for(let M=N;M<k.length;M++)J(k[M],F,$,se,G)},Y=k=>{if(k.shapeFlag&6)return Y(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const F=f(k.anchor||k.el),$=F&&F[y1];return $?f($):F};let ie=!1;const he=(k,F,$)=>{k==null?F._vnode&&J(F._vnode,null,null,!0):y(F._vnode||null,k,F,null,null,null,$),F._vnode=k,ie||(ie=!0,Ow(),pp(),ie=!1)},ge={p:y,um:J,m:W,r:ee,mt:ae,mc:I,pc:H,pbc:x,n:Y,o:t};let K,pe;return e&&([K,pe]=e(ge)),{render:he,hydrate:K,createApp:AF(he,K)}}function t0({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function la({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function K1(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Cv(t,e,n=!1){const r=t.children,o=e.children;if(Re(r)&&Re(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=xs(o[i]),a.el=s.el),!n&&a.patchFlag!==-2&&Cv(s,a)),a.type===Wi&&a.patchFlag!==-1&&(a.el=s.el),a.type===Mt&&!a.el&&(a.el=s.el)}}function OF(t){const e=t.slice(),n=[0];let r,o,i,s,a;const c=t.length;for(r=0;r<c;r++){const l=t[r];if(l!==0){if(o=n[n.length-1],t[o]<l){e[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,t[n[a]]<l?i=a+1:s=a;l<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=e[s];return n}function G1(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:G1(e)}function yp(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Q1=Symbol.for("v-scx"),Y1=()=>Rt(Q1);function Ds(t,e){return Ld(t,null,e)}function DF(t,e){return Ld(t,null,{flush:"post"})}function X1(t,e){return Ld(t,null,{flush:"sync"})}function Kt(t,e,n){return Ld(t,e,n)}function Ld(t,e,n=ze){const{immediate:r,deep:o,flush:i,once:s}=n,a=mt({},n),c=e&&r||!e&&i!=="post";let l;if(qc){if(i==="sync"){const _=Y1();l=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=nr,_.resume=nr,_.pause=nr,_}}const u=dn;a.call=(_,m,y)=>_r(_,u,m,y);let d=!1;i==="post"?a.scheduler=_=>{Yt(_,u&&u.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(_,m)=>{m?_():fv(_)}),a.augmentJob=_=>{e&&(_.flags|=4),d&&(_.flags|=2,u&&(_.id=u.uid,_.i=u))};const f=T4(t,e,a);return qc&&(l?l.push(f):c&&f()),f}function LF(t,e,n){const r=this.proxy,o=dt(t)?t.includes(".")?J1(r,t):()=>r[t]:t.bind(r,r);let i;Le(e)?i=e:(i=e.handler,n=e);const s=Na(this),a=Ld(o,i.bind(r),n);return s(),a}function J1(t,e){const n=e.split(".");return()=>{let r=t;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function kF(t,e,n=ze){const r=Ut(),o=rn(e),i=Pn(e),s=Z1(t,o),a=hv((c,l)=>{let u,d=ze,f;return X1(()=>{const _=t[o];An(u,_)&&(u=_,l())}),{get(){return c(),n.get?n.get(u):u},set(_){const m=n.set?n.set(_):_;if(!An(m,u)&&!(d!==ze&&An(_,d)))return;const y=r.vnode.props;y&&(e in y||o in y||i in y)&&(`onUpdate:${e}`in y||`onUpdate:${o}`in y||`onUpdate:${i}`in y)||(u=_,l()),r.emit(`update:${e}`,m),An(_,m)&&An(_,d)&&!An(m,f)&&l(),d=_,f=m}}});return a[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||ze:a,done:!1}:{done:!0}}}},a}const Z1=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rn(e)}Modifiers`]||t[`${Pn(e)}Modifiers`];function NF(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ze;let o=n;const i=e.startsWith("update:"),s=i&&Z1(r,e.slice(7));s&&(s.trim&&(o=n.map(u=>dt(u)?u.trim():u)),s.number&&(o=n.map($u)));let a,c=r[a=Sc(e)]||r[a=Sc(rn(e))];!c&&i&&(c=r[a=Sc(Pn(e))]),c&&_r(c,t,6,o);const l=r[a+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,_r(l,t,6,o)}}const VF=new WeakMap;function eP(t,e,n=!1){const r=n?VF:e.emitsCache,o=r.get(t);if(o!==void 0)return o;const i=t.emits;let s={},a=!1;if(!Le(t)){const c=l=>{const u=eP(l,e,!0);u&&(a=!0,mt(s,u))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!i&&!a?(ht(t)&&r.set(t,null),null):(Re(i)?i.forEach(c=>s[c]=null):mt(s,i),ht(t)&&r.set(t,s),s)}function k_(t,e){return!t||!_l(e)?!1:(e=e.slice(2).replace(/Once$/,""),et(t,e[0].toLowerCase()+e.slice(1))||et(t,Pn(e))||et(t,e))}function sf(t){const{type:e,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:c,render:l,renderCache:u,props:d,data:f,setupState:_,ctx:m,inheritAttrs:y}=t,v=Qu(t);let T,w;try{if(n.shapeFlag&4){const E=o||r,C=E;T=qn(l.call(C,E,u,d,_,f,m)),w=a}else{const E=e;T=qn(E.length>1?E(d,{attrs:a,slots:s,emit:c}):E(d,null)),w=e.props?a:MF(a)}}catch(E){Au.length=0,Xa(E,t,1),T=ot(Mt)}let g=T;if(w&&y!==!1){const E=Object.keys(w),{shapeFlag:C}=g;E.length&&C&7&&(i&&E.some(v_)&&(w=BF(w,i)),g=pi(g,w,!1,!0))}return n.dirs&&(g=pi(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&Zi(g,n.transition),T=g,Qu(v),T}function FF(t,e=!0){let n;for(let r=0;r<t.length;r++){const o=t[r];if(ts(o)){if(o.type!==Mt||o.children==="v-if"){if(n)return;n=o}}else return}return n}const MF=t=>{let e;for(const n in t)(n==="class"||n==="style"||_l(n))&&((e||(e={}))[n]=t[n]);return e},BF=(t,e)=>{const n={};for(const r in t)(!v_(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function UF(t,e,n){const{props:r,children:o,component:i}=t,{props:s,children:a,patchFlag:c}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?zw(r,s,l):!!s;if(c&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(s[f]!==r[f]&&!k_(l,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?zw(r,s,l):!0:!!s;return!1}function zw(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(e[i]!==t[i]&&!k_(n,i))return!0}return!1}function N_({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const vp=t=>t.__isSuspense;let og=0;const $F={name:"Suspense",__isSuspense:!0,process(t,e,n,r,o,i,s,a,c,l){if(t==null)jF(e,n,r,o,i,s,a,c,l);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}HF(t,e,n,r,o,s,a,c,l)}},hydrate:zF,normalize:qF},V_=$F;function Xu(t,e){const n=t.props&&t.props[e];Le(n)&&n()}function jF(t,e,n,r,o,i,s,a,c){const{p:l,o:{createElement:u}}=c,d=u("div"),f=t.suspense=tP(t,o,r,e,d,n,i,s,a,c);l(null,f.pendingBranch=t.ssContent,d,null,r,f,i,s),f.deps>0?(Xu(t,"onPending"),Xu(t,"onFallback"),l(null,t.ssFallback,e,n,r,null,i,s),Lc(f,t.ssFallback)):f.resolve(!1,!0)}function HF(t,e,n,r,o,i,s,a,{p:c,um:l,o:{createElement:u}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const f=e.ssContent,_=e.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:v,isHydrating:T}=d;if(y)d.pendingBranch=f,Ir(y,f)?(c(y,f,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():v&&(T||(c(m,_,n,r,o,null,i,s,a),Lc(d,_)))):(d.pendingId=og++,T?(d.isHydrating=!1,d.activeBranch=y):l(y,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(c(null,f,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():(c(m,_,n,r,o,null,i,s,a),Lc(d,_))):m&&Ir(m,f)?(c(m,f,n,r,o,d,i,s,a),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0&&d.resolve()));else if(m&&Ir(m,f))c(m,f,n,r,o,d,i,s,a),Lc(d,f);else if(Xu(e,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=og++,c(null,f,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:g}=d;w>0?setTimeout(()=>{d.pendingId===g&&d.fallback(_)},w):w===0&&d.fallback(_)}}function tP(t,e,n,r,o,i,s,a,c,l,u=!1){const{p:d,m:f,um:_,n:m,o:{parentNode:y,remove:v}}=l;let T;const w=WF(t);w&&e&&e.pendingBranch&&(T=e.pendingId,e.deps++);const g=t.props?ju(t.props.timeout):void 0,E=i,C={vnode:t,parent:e,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:og++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(L=!1,A=!1){const{vnode:I,activeBranch:R,pendingBranch:x,pendingId:D,effects:S,parentComponent:O,container:ae}=C;let le=!1;C.isHydrating?C.isHydrating=!1:L||(le=R&&x.transition&&x.transition.mode==="out-in",le&&(R.transition.afterLeave=()=>{D===C.pendingId&&(f(x,ae,i===E?m(R):i,0),Ku(S))}),R&&(y(R.el)===ae&&(i=m(R)),_(R,O,C,!0)),le||f(x,ae,i,0)),Lc(C,x),C.pendingBranch=null,C.isInFallback=!1;let B=C.parent,j=!1;for(;B;){if(B.pendingBranch){B.effects.push(...S),j=!0;break}B=B.parent}!j&&!le&&Ku(S),C.effects=[],w&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!A&&e.resolve()),Xu(I,"onResolve")},fallback(L){if(!C.pendingBranch)return;const{vnode:A,activeBranch:I,parentComponent:R,container:x,namespace:D}=C;Xu(A,"onFallback");const S=m(I),O=()=>{C.isInFallback&&(d(null,L,x,S,R,null,D,a,c),Lc(C,L))},ae=L.transition&&L.transition.mode==="out-in";ae&&(I.transition.afterLeave=O),C.isInFallback=!0,_(I,R,null,!0),ae||O()},move(L,A,I){C.activeBranch&&f(C.activeBranch,L,A,I),C.container=L},next(){return C.activeBranch&&m(C.activeBranch)},registerDep(L,A,I){const R=!!C.pendingBranch;R&&C.deps++;const x=L.vnode.el;L.asyncDep.catch(D=>{Xa(D,L,0)}).then(D=>{if(L.isUnmounted||C.isUnmounted||C.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:S}=L;ag(L,D,!1),x&&(S.el=x);const O=!x&&L.subTree.el;A(L,S,y(x||L.subTree.el),x?null:m(L.subTree),C,s,I),O&&v(O),N_(L,S.el),R&&--C.deps===0&&C.resolve()})},unmount(L,A){C.isUnmounted=!0,C.activeBranch&&_(C.activeBranch,n,L,A),C.pendingBranch&&_(C.pendingBranch,n,L,A)}};return C}function zF(t,e,n,r,o,i,s,a,c){const l=e.suspense=tP(e,r,n,t.parentNode,document.createElement("div"),null,o,i,s,a,!0),u=c(t,l.pendingBranch=e.ssContent,n,l,i,s);return l.deps===0&&l.resolve(!1,!0),u}function qF(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=qw(r?n.default:n),t.ssFallback=r?qw(n.fallback):ot(Mt)}function qw(t){let e;if(Le(t)){const n=ka&&t._c;n&&(t._d=!1,Be()),t=t(),n&&(t._d=!0,e=On,rP())}return Re(t)&&(t=FF(t)),t=qn(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function nP(t,e){e&&e.pendingBranch?Re(t)?e.effects.push(...t):e.effects.push(t):Ku(t)}function Lc(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let o=e.el;for(;!o&&e.component;)e=e.component.subTree,o=e.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,N_(r,o))}function WF(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const ft=Symbol.for("v-fgt"),Wi=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),Sa=Symbol.for("v-stc"),Au=[];let On=null;function Be(t=!1){Au.push(On=t?null:[])}function rP(){Au.pop(),On=Au[Au.length-1]||null}let ka=1;function Ju(t,e=!1){ka+=t,t<0&&On&&e&&(On.hasOnce=!0)}function oP(t){return t.dynamicChildren=ka>0?On||Aa:null,rP(),ka>0&&On&&On.push(t),t}function Pt(t,e,n,r,o,i){return oP(mr(t,e,n,r,o,i,!0))}function tn(t,e,n,r,o){return oP(ot(t,e,n,r,o,!0))}function ts(t){return t?t.__v_isVNode===!0:!1}function Ir(t,e){return t.type===e.type&&t.key===e.key}function KF(t){}const iP=({key:t})=>t??null,af=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?dt(t)||nt(t)||Le(t)?{i:pn,r:t,k:e,f:!!n}:t:null);function mr(t,e=null,n=null,r=0,o=null,i=t===ft?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&iP(e),ref:e&&af(e),scopeId:S_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:pn};return a?(Sv(c,n),i&128&&t.normalize(c)):n&&(c.shapeFlag|=dt(n)?8:16),ka>0&&!s&&On&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&On.push(c),c}const ot=GF;function GF(t,e=null,n=null,r=0,o=null,i=!1){if((!t||t===O1)&&(t=Mt),ts(t)){const a=pi(t,e,!0);return n&&Sv(a,n),ka>0&&!i&&On&&(a.shapeFlag&6?On[On.indexOf(t)]=a:On.push(a)),a.patchFlag=-2,a}if(nM(t)&&(t=t.__vccOpts),e){e=Pv(e);let{class:a,style:c}=e;a&&!dt(a)&&(e.class=Mn(a)),ht(c)&&(C_(c)&&!Re(c)&&(c=mt({},c)),e.style=ai(c))}const s=dt(t)?1:vp(t)?128:v1(t)?64:ht(t)?4:Le(t)?2:0;return mr(t,e,n,r,o,s,i,!0)}function Pv(t){return t?C_(t)||M1(t)?mt({},t):t:null}function pi(t,e,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:c}=t,l=e?Vs(o||{},e):o,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&iP(l),ref:e&&e.ref?n&&i?Re(i)?i.concat(af(e)):[i,af(e)]:af(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ft?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&r&&Zi(u,c.clone(u)),u}function Zu(t=" ",e=0){return ot(Wi,null,t,e)}function QF(t,e){const n=ot(Sa,null,t);return n.staticCount=e,n}function ha(t="",e=!1){return e?(Be(),tn(Mt,null,t)):ot(Mt,null,t)}function qn(t){return t==null||typeof t=="boolean"?ot(Mt):Re(t)?ot(ft,null,t.slice()):ts(t)?xs(t):ot(Wi,null,String(t))}function xs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function Sv(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Re(e))n=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),Sv(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!M1(e)?e._ctx=pn:o===3&&pn&&(pn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Le(e)?(e={default:e,_ctx:pn},n=32):(e=String(e),r&64?(n=16,e=[Zu(e)]):n=8);t.children=e,t.shapeFlag|=n}function Vs(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const o in r)if(o==="class")e.class!==r.class&&(e.class=Mn([e.class,r.class]));else if(o==="style")e.style=ai([e.style,r.style]);else if(_l(o)){const i=e[o],s=r[o];s&&i!==s&&!(Re(i)&&i.includes(s))&&(e[o]=i?[].concat(i,s):s)}else o!==""&&(e[o]=r[o])}return e}function zn(t,e,n,r=null){_r(t,e,7,[n,r])}const YF=N1();let XF=0;function sP(t,e,n){const r=t.type,o=(e?e.appContext:t.appContext)||YF,i={uid:XF++,vnode:t,type:r,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:U1(r,o),emitsOptions:eP(r,o),emit:null,emitted:null,propsDefaults:ze,inheritAttrs:r.inheritAttrs,ctx:ze,data:ze,props:ze,attrs:ze,slots:ze,refs:ze,setupState:ze,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=NF.bind(null,i),t.ce&&t.ce(i),i}let dn=null;const Ut=()=>dn||pn;let Ep,ig;{const t=Pd(),e=(n,r)=>{let o;return(o=t[n])||(o=t[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Ep=e("__VUE_INSTANCE_SETTERS__",n=>dn=n),ig=e("__VUE_SSR_SETTERS__",n=>qc=n)}const Na=t=>{const e=dn;return Ep(t),t.scope.on(),()=>{t.scope.off(),Ep(e)}},sg=()=>{dn&&dn.scope.off(),Ep(null)};function aP(t){return t.vnode.shapeFlag&4}let qc=!1;function cP(t,e=!1,n=!1){e&&ig(e);const{props:r,children:o}=t.vnode,i=aP(t);xF(t,r,i,e),PF(t,o,n||e);const s=i?JF(t,e):void 0;return e&&ig(!1),s}function JF(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,eg);const{setup:r}=n;if(r){Xi();const o=t.setupContext=r.length>1?uP(t):null,i=Na(t),s=gl(r,t,0,[t.props,o]),a=b_(s);if(Ji(),i(),(a||t.sp)&&!Ns(t)&&mv(t),a){if(s.then(sg,sg),e)return s.then(c=>{ag(t,c,e)}).catch(c=>{Xa(c,t,0)});t.asyncDep=s}else ag(t,s,e)}else lP(t,e)}function ag(t,e,n){Le(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ht(e)&&(t.setupState=dv(e)),lP(t,n)}let bp,cg;function ZF(t){bp=t,cg=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,iF))}}const eM=()=>!bp;function lP(t,e,n){const r=t.type;if(!t.render){if(!e&&bp&&!r.render){const o=r.template||xv(t).template;if(o){const{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:c}=r,l=mt(mt({isCustomElement:i,delimiters:a},s),c);r.render=bp(o,l)}}t.render=r.render||nr,cg&&cg(t)}{const o=Na(t);Xi();try{yF(t)}finally{Ji(),o()}}}const tM={get(t,e){return xn(t,"get",""),t[e]}};function uP(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,tM),slots:t.slots,emit:t.emit,expose:e}}function kd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(dv(Hc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Tu)return Tu[n](t)},has(e,n){return n in e||n in Tu}})):t.proxy}function lg(t,e=!0){return Le(t)?t.displayName||t.name:t.name||e&&t.__name}function nM(t){return Le(t)&&"__vccOpts"in t}const xe=(t,e)=>v4(t,e,qc);function Xt(t,e,n){const r=(i,s,a)=>{Ju(-1);try{return ot(i,s,a)}finally{Ju(1)}},o=arguments.length;return o===2?ht(e)&&!Re(e)?ts(e)?r(t,null,[e]):r(t,e):r(t,null,e):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ts(n)&&(n=[n]),r(t,e,n))}function rM(){}function oM(t,e,n,r){const o=n[r];if(o&&dP(o,t))return o;const i=e();return i.memo=t.slice(),i.cacheIndex=r,n[r]=i}function dP(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(An(n[r],e[r]))return!1;return ka>0&&On&&On.push(t),!0}const hP="3.5.21",iM=nr,sM=C4,aM=Ec,cM=g1,lM={createComponentInstance:sP,setupComponent:cP,renderComponentRoot:sf,setCurrentRenderingInstance:Qu,isVNode:ts,normalizeVNode:qn,getComponentPublicInstance:kd,ensureValidVNode:Av,pushWarningContext:A4,popWarningContext:x4},uM=lM,dM=null,hM=null,fM=null;/** 17* @vue/runtime-dom v3.5.21 18* (c) 2018-present Yuxi (Evan) You and Vue contributors 19* @license MIT
20**/let ug;const Ww=typeof window<"u"&&window.trustedTypes;if(Ww)try{ug=Ww.createPolicy("vue",{createHTML:t=>t})}catch{}const fP=ug?t=>ug.createHTML(t):t=>t,pM="http://www.w3.org/2000/svg",_M="http://www.w3.org/1998/Math/MathML",Si=typeof document<"u"?document:null,Kw=Si&&Si.createElement("template"),mM={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 o=e==="svg"?Si.createElementNS(pM,t):e==="mathml"?Si.createElementNS(_M,t):n?Si.createElement(t,{is:n}):Si.createElement(t);return t==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:t=>Si.createTextNode(t),createComment:t=>Si.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Si.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,i){const s=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Kw.innerHTML=fP(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=Kw.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},ms="transition",Xl="animation",Wc=Symbol("_vtc"),pP={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},_P=mt({},_v,pP),gM=t=>(t.displayName="Transition",t.props=_P,t),mP=gM((t,{slots:e})=>Xt(A1,gP(t),e)),ua=(t,e=[])=>{Re(t)?t.forEach(n=>n(...e)):t&&t(...e)},Gw=t=>t?Re(t)?t.some(e=>e.length>1):t.length>1:!1;function gP(t){const e={};for(const S in t)S in pP||(e[S]=t[S]);if(t.css===!1)return e;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,m=yM(o),y=m&&m[0],v=m&&m[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:g,onLeave:E,onLeaveCancelled:C,onBeforeAppear:L=T,onAppear:A=w,onAppearCancelled:I=g}=e,R=(S,O,ae,le)=>{S._enterCancelled=le,Es(S,O?u:a),Es(S,O?l:s),ae&&ae()},x=(S,O)=>{S._isLeaving=!1,Es(S,d),Es(S,_),Es(S,f),O&&O()},D=S=>(O,ae)=>{const le=S?A:w,B=()=>R(O,S,ae);ua(le,[O,B]),Qw(()=>
vendor: 10,528 bytes, line 20
20{Es(O,S?c:i),ti(O,S?u:a),Gw(le)||Yw(O,r,y,B)})};return mt(e,{onBeforeEnter(S){ua(T,[S]),ti(S,i),ti(S,s)},onBeforeAppear(S){ua(L,[S]),ti(S,c),ti(S,l)},onEnter:D(!1),onAppear:D(!0),onLeave(S,O){S._isLeaving=!0;const ae=()=>x(S,O);ti(S,d),S._enterCancelled?(ti(S,f),dg()):(dg(),ti(S,f)),Qw(()=>{S._isLeaving&&(Es(S,d),ti(S,_),Gw(E)||Yw(S,r,v,ae))}),ua(E,[S,ae])},onEnterCancelled(S){R(S,!1,void 0,!0),ua(g,[S])},onAppearCancelled(S){R(S,!0,void 0,!0),ua(I,[S])},onLeaveCancelled(S){x(S),ua(C,[S])}})}function yM(t){if(t==null)return null;if(ht(t))return[n0(t.enter),n0(t.leave)];{const e=n0(t);return[e,e]}}function n0(t){return ju(t)}function ti(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Wc]||(t[Wc]=new Set)).add(e)}function Es(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Wc];n&&(n.delete(e),n.size||(t[Wc]=void 0))}function Qw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let vM=0;function Yw(t,e,n,r){const o=t._endId=++vM,i=()=>{o===t._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:s,timeout:a,propCount:c}=yP(t,e);if(!s)return r();const l=s+"end";let u=0;const d=()=>{t.removeEventListener(l,f),i()},f=_=>{_.target===t&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},a+1),t.addEventListener(l,f)}function yP(t,e){const n=window.getComputedStyle(t),r=m=>(n[m]||"").split(", "),o=r(`${ms}Delay`),i=r(`${ms}Duration`),s=Xw(o,i),a=r(`${Xl}Delay`),c=r(`${Xl}Duration`),l=Xw(a,c);let u=null,d=0,f=0;e===ms?s>0&&(u=ms,d=s,f=i.length):e===Xl?l>0&&(u=Xl,d=l,f=c.length):(d=Math.max(s,l),u=d>0?s>l?ms:Xl:null,f=u?u===ms?i.length:c.length:0);const _=u===ms&&/\b(?:transform|all)(?:,|$)/.test(r(`${ms}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:_}}function Xw(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Jw(n)+Jw(t[r])))}function Jw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function dg(){return document.body.offsetHeight}function EM(t,e,n){const r=t[Wc];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const wp=Symbol("_vod"),vP=Symbol("_vsh"),EP={name:"show",beforeMount(t,{value:e},{transition:n}){t[wp]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Jl(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Jl(t,!0),r.enter(t)):r.leave(t,()=>{Jl(t,!1)}):Jl(t,e))},beforeUnmount(t,{value:e}){Jl(t,e)}};function Jl(t,e){t.style.display=e?t[wp]:"none",t[vP]=!e}function bM(){EP.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const bP=Symbol("");function wM(t){const e=Ut();if(!e)return;const n=e.ut=(o=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(i=>Tp(i,o))},r=()=>{const o=t(e.proxy);e.ce?Tp(e.ce,o):hg(e.subTree,o),n(o)};vv(()=>{Ku(r)}),es(()=>{Kt(r,nr,{flush:"post"});const o=new MutationObserver(r);o.observe(e.subTree.el.parentNode,{childList:!0}),Dd(()=>o.disconnect())})}function hg(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hg(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Tp(t.el,e);else if(t.type===ft)t.children.forEach(n=>hg(n,e));else if(t.type===Sa){let{el:n,anchor:r}=t;for(;n&&(Tp(n,e),n!==r);)n=n.nextSibling}}function Tp(t,e){if(t.nodeType===1){const n=t.style;let r="";for(const o in e){const i=KC(e[o]);n.setProperty(`--${o}`,i),r+=`--${o}: ${i};`}n[bP]=r}}const TM=/(?:^|;)\s*display\s*:/;function AM(t,e,n){const r=t.style,o=dt(n);let i=!1;if(n&&!o){if(e)if(dt(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&cf(r,a,"")}else for(const s in e)n[s]==null&&cf(r,s,"");for(const s in n)s==="display"&&(i=!0),cf(r,s,n[s])}else if(o){if(e!==n){const s=r[bP];s&&(n+=";"+s),r.cssText=n,i=TM.test(n)}}else e&&t.removeAttribute("style");wp in t&&(t[wp]=i?r.display:"",t[vP]&&(r.display="none"))}const Zw=/\s*!important$/;function cf(t,e,n){if(Re(n))n.forEach(r=>cf(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=xM(t,e);Zw.test(n)?t.setProperty(Pn(r),n.replace(Zw,""),"important"):t[r]=n}}const eT=["Webkit","Moz","ms"],r0={};function xM(t,e){const n=r0[e];if(n)return n;let r=rn(e);if(r!=="filter"&&r in t)return r0[e]=r;r=ml(r);for(let o=0;o<eT.length;o++){const i=eT[o]+r;if(i in t)return r0[e]=i}return e}const tT="http://www.w3.org/1999/xlink";function nT(t,e,n,r,o,i=HC(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(tT,e.slice(6,e.length)):t.setAttributeNS(tT,e,n):n==null||i&&!iv(n)?t.removeAttribute(e):t.setAttribute(e,i?"":pr(n)?String(n):n)}function rT(t,e,n,r,o){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?fP(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?t.getAttribute("value")||"":t.value,c=n==null?t.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in t))&&(t.value=c),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=iv(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(o||e)}function Fi(t,e,n,r){t.addEventListener(e,n,r)}function IM(t,e,n,r){t.removeEventListener(e,n,r)}const oT=Symbol("_vei");function RM(t,e,n,r,o=null){const i=t[oT]||(t[oT]={}),s=i[e];if(r&&s)s.value=r;else{const[a,c]=CM(e);if(r){const l=i[e]=OM(r,o);Fi(t,a,l,c)}else s&&(IM(t,a,s,c),i[e]=void 0)}}const iT=/(?:Once|Passive|Capture)$/;function CM(t){let e;if(iT.test(t)){e={};let r;for(;r=t.match(iT);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Pn(t.slice(2)),e]}let o0=0;const PM=Promise.resolve(),SM=()=>o0||(PM.then(()=>o0=0),o0=Date.now());function OM(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;_r(DM(r,n.value),e,5,[r])};return n.value=t,n.attached=SM(),n}function DM(t,e){if(Re(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const sT=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,LM=(t,e,n,r,o,i)=>{const s=o==="svg";e==="class"?EM(t,r,s):e==="style"?AM(t,n,r):_l(e)?v_(e)||RM(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):kM(t,e,r,s))?(rT(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&nT(t,e,r,s,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!dt(r))?rT(t,rn(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),nT(t,e,r,s))};function kM(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&sT(e)&&Le(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return sT(e)&&dt(n)?!1:e in t}const aT={};function wP(t,e,n){let r=on(t,e);Cd(r)&&(r=mt({},r,e));class o extends F_{constructor(s){super(r,s,n)}}return o.def=r,o}const NM=((t,e)=>wP(t,e,Lv)),VM=typeof HTMLElement<"u"?HTMLElement:class{};class F_ extends VM{constructor(e,n={},r=Ip){super(),this._def=e,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Ip?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof F_){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,sr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(r,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:s}=r;let a;if(i&&!Re(i))for(const c in i){const l=i[c];(l===Number||l&&l.type===Number)&&(c in this._props&&(this._props[c]=ju(this._props[c])),(a||(a=Object.create(null)))[rn(c)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,e(this._def=r,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)et(this,r)||Object.defineProperty(this,r,{get:()=>De(n[r])})}_resolveProps(e){const{props:n}=e,r=Re(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o]);for(const o of r.map(rn))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let r=n?this.getAttribute(e):aT;const o=rn(e);n&&this._numberProps&&this._numberProps[o]&&(r=ju(r)),this._setProp(o,r,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,o=!1){if(n!==this._props[e]&&(n===aT?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),r)){const i=this._ob;i&&i.disconnect(),n===!0?this.setAttribute(Pn(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Pn(e),n+""):n||this.removeAttribute(Pn(e)),i&&i.observe(this,{attributes:!0})}}
20_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),LP(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=ot(this._def,mt(e,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,Cd(s[0])?mt({detail:s},s[0]):{detail:s}))};r.emit=(i,...s)=>{o(i,s),Pn(i)!==i&&o(Pn(i),s)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let o=e.length-1;o>=0;o--){const i=document.createElement("style");r&&i.setAttribute("nonce",r),i.textContent=e[o],this.shadowRoot.prepend(i)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<e.length;r++){const o=e[r],i=o.getAttribute("name")||"default",s=this._slots[i],a=o.parentNode;if(s)for(const c of s){if(n&&c.nodeType===1){const l=n+"-s",u=document.createTreeWalker(c,1);c.setAttribute(l,"");let d;for(;d=u.nextNode();)d.setAttribute(l,"")}a.insertBefore(c,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function TP(t){const e=Ut(),n=e&&e.ce;return n||null}function FM(){const t=TP();return t&&t.shadowRoot}function MM(t="$style"){{const e=Ut();if(!e)return ze;const n=e.type.__cssModules;if(!n)return ze;const r=n[t];return r||ze}}const AP=new WeakMap,xP=new WeakMap,Ap=Symbol("_moveCb"),cT=Symbol("_enterCb"),BM=t=>(delete t.props.mode,t),UM=BM({name:"TransitionGroup",props:mt({},_P,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Ut(),r=pv();let o,i;return L_(()=>{if(!o.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!qM(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(jM),o.forEach(HM);const a=o.filter(zM);dg(),a.forEach(c=>{const l=c.el,u=l.style;ti(l,s),u.transform=u.webkitTransform=u.transitionDuration="";const d=l[Ap]=f=>{f&&f.target!==l||(!f||f.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",d),l[Ap]=null,Es(l,s))};l.addEventListener("transitionend",d)}),o=[]}),()=>{const s=je(t),a=gP(s);let c=s.tag||ft;if(o=[],i)for(let l=0;l<i.length;l++){const u=i[l];u.el&&u.el instanceof Element&&(o.push(u),Zi(u,zc(u,a,r,n)),AP.set(u,u.el.getBoundingClientRect()))}i=e.default?O_(e.default()):[];for(let l=0;l<i.length;l++){const u=i[l];u.key!=null&&Zi(u,zc(u,a,r,n))}return ot(c,null,i)}}}),$M=UM;function jM(t){const e=t.el;e[Ap]&&e[Ap](),e[cT]&&e[cT]()}function HM(t){xP.set(t,t.el.getBoundingClientRect())}function zM(t){const e=AP.get(t),n=xP.get(t),r=e.left-n.left,o=e.top-n.top;if(r||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",t}}function qM(t,e,n){const r=t.cloneNode(),o=t[Wc];o&&o.forEach(a=>{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(r);const{hasTransform:s}=yP(r);return i.removeChild(r),s}const Hs=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Re(e)?n=>Ra(e,n):e};function WM(t){t.target.composing=!0}function lT(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const hr=Symbol("_assign"),xp={created(t,{modifiers:{lazy:e,trim:n,number:r}},o){t[hr]=Hs(o);const i=r||o.props&&o.props.type==="number";Fi(t,e?"change":"input",s=>{if(s.target.composing)return;let a=t.value;n&&(a=a.trim()),i&&(a=$u(a)),t[hr](a)}),n&&Fi(t,"change",()=>{t.value=t.value.trim()}),e||(Fi(t,"compositionstart",WM),Fi(t,"compositionend",lT),Fi(t,"change",lT))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},s){if(t[hr]=Hs(s),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?$u(t.value):t.value,c=e??"";
vendor: 6,124 bytes, line 20
20a!==c&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||o&&t.value.trim()===c)||(t.value=c))}},Ov={deep:!0,created(t,e,n){t[hr]=Hs(n),Fi(t,"change",()=>{const r=t._modelValue,o=Kc(t),i=t.checked,s=t[hr];if(Re(r)){const a=Sd(r,o),c=a!==-1;if(i&&!c)s(r.concat(o));else if(!i&&c){const l=[...r];l.splice(a,1),s(l)}}else if(Qs(r)){const a=new Set(r);i?a.add(o):a.delete(o),s(a)}else s(RP(t,i))})},mounted:uT,beforeUpdate(t,e,n){t[hr]=Hs(n),uT(t,e,n)}};function uT(t,{value:e,oldValue:n},r){t._modelValue=e;let o;if(Re(e))o=Sd(e,r.props.value)>-1;else if(Qs(e))o=e.has(r.props.value);else{if(e===n)return;o=Yi(e,RP(t,!0))}t.checked!==o&&(t.checked=o)}const Dv={created(t,{value:e},n){t.checked=Yi(e,n.props.value),t[hr]=Hs(n),Fi(t,"change",()=>{t[hr](Kc(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[hr]=Hs(r),e!==n&&(t.checked=Yi(e,r.props.value))}},IP={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const o=Qs(e);Fi(t,"change",()=>{const i=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?$u(Kc(s)):Kc(s));t[hr](t.multiple?o?new Set(i):i:i[0]),t._assigning=!0,sr(()=>{t._assigning=!1})}),t[hr]=Hs(r)},mounted(t,{value:e}){dT(t,e)},beforeUpdate(t,e,n){t[hr]=Hs(n)},updated(t,{value:e}){t._assigning||dT(t,e)}};function dT(t,e){const n=t.multiple,r=Re(e);if(!(n&&!r&&!Qs(e))){for(let o=0,i=t.options.length;o<i;o++){const s=t.options[o],a=Kc(s);if(n)if(r){const c=typeof a;c==="string"||c==="number"?s.selected=e.some(l=>String(l)===String(a)):s.selected=Sd(e,a)>-1}else s.selected=e.has(a);else if(Yi(Kc(s),e)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Kc(t){return"_value"in t?t._value:t.value}function RP(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const CP={created(t,e,n){Lh(t,e,n,null,"created")},mounted(t,e,n){Lh(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Lh(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Lh(t,e,n,r,"updated")}};function PP(t,e){switch(t){case"SELECT":return IP;case"TEXTAREA":return xp;default:switch(e){case"checkbox":return Ov;case"radio":return Dv;default:return xp}}}function Lh(t,e,n,r,o){const s=PP(t.tagName,n.props&&n.props.type)[o];s&&s(t,e,n,r)}function KM(){xp.getSSRProps=({value:t})=>({value:t}),Dv.getSSRProps=({value:t},e)=>{if(e.props&&Yi(e.props.value,t))return{checked:!0}},Ov.getSSRProps=({value:t},e)=>{if(Re(t)){if(e.props&&Sd(t,e.props.value)>-1)return{checked:!0}}else if(Qs(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},CP.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=PP(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const GM=["ctrl","shift","alt","meta"],QM={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)=>GM.some(n=>t[`${n}Key`]&&!e.includes(n))},YM=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((o,...i)=>{for(let s=0;s<e.length;s++){const a=QM[e[s]];if(a&&a(o,e))return}return t(o,...i)}))},XM={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},JM=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const i=Pn(o.key);if(e.some(s=>s===i||XM[s]===i))return t(o)}))},SP=mt({patchProp:LM},mM);let xu,hT=!1;function OP(){return xu||(xu=z1(SP))}function DP(){return xu=hT?xu:q1(SP),hT=!0,xu}const LP=((...t)=>{OP().render(...t)}),ZM=((...t)=>{DP().hydrate(...t)}),Ip=((...t)=>{const e=OP().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=NP(r);if(!o)return;const i=e._component;!Le(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,kP(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e}),Lv=((...t)=>{const e=DP().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=NP(r);if(o)return n(o,!0,kP(o))},e});function kP(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function NP(t){return dt(t)?document.querySelector(t):t}let fT=!1;const eB=()=>{fT||(fT=!0,KM(),bM())},Dae=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:A1,BaseTransitionPropsValidators:_v,Comment:Mt,DeprecationTypes:fM,EffectScope:sv,ErrorCodes:R4,ErrorTypeStrings:sM,Fragment:ft,KeepAlive:I1,ReactiveEffect:zu,Static:Sa,Suspense:V_,Teleport:V4,Text:Wi,TrackOpTypes:E4,Transition:mP,TransitionGroup:$M,TriggerOpTypes:b4,VueElement:F_,assertNumber:I4,callWithAsyncErrorHandling:_r,callWithErrorHandling:gl,camelize:rn,capitalize:ml,cloneVNode:pi,compatUtils:hM,computed:xe,createApp:Ip,createBlock:tn,createCommentVNode:ha,createElementBlock:Pt,createElementVNode:mr,createHydrationRenderer:q1,createPropsRestProxy:mF,createRenderer:z1,createSSRApp:Lv,createSlots:rF,createStaticVNode:QF,createTextVNode:Zu,createVNode:ot,customRef:hv,defineAsyncComponent:Se,defineComponent:on,defineCustomElement:wP,defineEmits:aF,defineExpose:cF,defineModel:dF,defineOptions:lF,defineProps:sF,defineSSRCustomElement:NM,defineSlots:uF,devtools:aM,effect:qV,effectScope:Qa,getCurrentInstance:Ut,getCurrentScope:Ya,getCurrentWatcher:w4,getTransitionRawChildren:O_,guardReactiveProps:Pv,h:Xt,handleError:Xa,hasInjectionContext:yl,hydrate:ZM,hydrateOnIdle:W4,hydrateOnInteraction:Y4,hydrateOnMediaQuery:Q4,hydrateOnVisible:G4,initCustomFormatter:rM,initDirectivesForSSR:eB,inject:Rt,isMemoSame:dP,isProxy:C_,isReactive:Nr,isReadonly:hi,isRef:nt,isRuntimeOnly:eM,isShallow:rr,isVNode:ts,markRaw:Hc,mergeDefaults:pF,mergeModels:_F,mergeProps:Vs,nextTick:sr,normalizeClass:Mn,normalizeProps:Hu,normalizeStyle:ai,onActivated:gv,onBeforeMount:C1,onBeforeUnmount:Ja,onBeforeUpdate:vv,onDeactivated:yv,onErrorCaptured:bv,onMounted:es,onRenderTracked:S1,onRenderTriggered:P1,onScopeDispose:jc,onServerPrefetch:Ev,onUnmounted:Dd,onUp
20dated:L_,onWatcherCleanup:h1,openBlock:Be,popScopeId:D4,provide:qi,proxyRefs:dv,pushScopeId:O4,queuePostFlushCb:Ku,reactive:Er,readonly:uv,ref:Te,registerRuntimeCompiler:ZF,render:LP,renderList:mp,renderSlot:tr,resolveComponent:tF,resolveDirective:nF,resolveDynamicComponent:ga,resolveFilter:dM,resolveTransitionHooks:zc,setBlockTracking:Ju,setDevtoolsHook:cM,setTransitionHooks:Zi,shallowReactive:Cr,shallowReadonly:d4,shallowRef:fi,ssrContextKey:Q1,ssrUtils:uM,stop:WV,toDisplayString:ya,toHandlerKey:Sc,toHandlers:oF,toRaw:je,toRef:P_,toRefs:u1,toValue:Ar,transformVNodeArgs:KF,triggerRef:f4,unref:De,useAttrs:D1,useCssModule:MM,useCssVars:wM,useHost:TP,useId:M4,useModel:kF,useSSRContext:Y1,useShadowRoot:FM,useSlots:fF,useTemplateRef:B4,useTransitionState:pv,vModelCheckbox:Ov,vModelDynamic:CP,vModelRadio:Dv,vModelSelect:IP,vModelText:xp,vShow:EP,version:hP,warn:iM,watch:Kt,watchEffect:Ds,watchPostEffect:DF,watchSyncEffect:X1,withAsyncContext:gF,withCtx:xr,withDefaults:hF,withDirectives:k4,withKeys:JM,withMemo:oM,withModifiers:YM,withScopeId:L4},Symbol.toStringTag,{value:"Module"})),tB=/"(?:_|\\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*:/,nB=/"(?: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*:/,rB=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function oB(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){iB(t);return}return e}function iB(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function ed(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!rB.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(tB.test(t)||nB.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,oB)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const sB=/#/g,aB=/&/g,cB=/\//g,lB=/=/g,kv=/\+/g,uB=/%5e/gi,dB=/%60/gi,hB=/%7c/gi,fB=/%20/gi;function pB(t){return encodeURI(""+t).replace(hB,"|")}function fg(t){return pB(typeof t=="string"?t:JSON.stringify(t)).replace(kv,"%2B").replace(fB,"+").replace(sB,"%23").replace(aB,"%26").replace(dB,"`").replace(uB,"^").replace(cB,"%2F")}function i0(t){return fg(t).replace(lB,"%3D")}function Gc(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function _B(t){return Gc(t.replace(kv," "))}function mB(t){return Gc(t.replace(kv," "))}function Nv(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=_B(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=mB(r[2]||"");e[o]===void 0?e[o]=i:Array.isArray(e[o])?e[o].push(i):e[o]=[e[o],i]}return e}function gB(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${i0(t)}=${fg(n)}`).join("&"):`${i0(t)}=${fg(e)}`:i0(t)}function yB(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>gB(e,t[e])).filter(Boolean).join("&")}const vB=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,EB=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,bB=/^([/\\]\s*){2,}[^/\\]/,wB=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TB=/\/$|\/\?|\/#/,AB=/^\.?\//;function cs(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?vB.test(t):EB.test(t)||(e.acceptRelative?bB.test(t):!1)}function xB(t){return!!t&&wB.test(t)}function pg(t="",e){return e?TB.test(t):t.endsWith("/")}function td(t="",e){if(!e)return(pg(t)?t.slice(0,-1):t)||"/";if(!pg(t,!0))return t||"/";let n=t,r="";const o=t.indexOf("#");o!==-1&&(n=t.slice(0,o),r=t.slice(o));const[i,...s]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function Rp(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(pg(t,!0))return t||"/";let n=t,r="";const o=t.indexOf("#");if(o!==-1&&(n=t.slice(0,o),r=t.slice(o),!n))return r;const[i,...s]=n.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function IB(t=""){return t.startsWith("/")}function pT(t=""){return IB(t)?t:"/"+t}function RB(t,e){if(VP(e)||cs(t))return t;const n=td(e);return t.startsWith(n)?t:vl(n,t)}function _T(t,e){if(VP(e))return t;const n=td(e);if(!t.startsWith(n))return t;const r=t.slice(n.length);return r[0]==="/"?r:"/"+r}function M_(t,e){const n=BP(t),r={...Nv(n.search),...e};return n.search=yB(r),SB(n)}function VP(t){return!t||t==="/"}function CB(t){return t&&t!=="/"}function vl(t,...e){let n=t||"";for(const r of e.filter(o=>CB(o)))if(n){const o=r.replace(AB,"");n=Rp(n)+o}else n=r;return n}function FP(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let o=0;for(const s of n)if(!(!s||s==="/")){for(const[a,c]of s.split(e).entries())if(!(!c||c===".")){if(c===".."){if(r.length===1&&cs(r[0])
20)continue;r.pop(),o--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+c;continue}r.push(c),o++}}let i=r.join("/");return o>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*o)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function PB(t,e){return Gc(td(t))===Gc(td(e))}function mT(t,e,n={}){return n.trailingSlash||(t=Rp(t),e=Rp(e)),n.leadingSlash||(t=pT(t),e=pT(e)),n.encoding||(t=Gc(t),e=Gc(e)),t===e}const MP=Symbol.for("ufo:protocolRelative");function BP(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!cs(t,{acceptRelative:!0}))return _g(t);const[,r="",o,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:u}=_g(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:c,search:l,hash:u,[MP]:!r}}function _g(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function SB(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",o=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[MP]?(t.protocol||"")+"//":"")+o+i+e+n+r}class OB extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function DB(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${o}: ${i}${e?` ${e}`:""}`,a=new OB(s,t.error?{cause:t.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return t[c]}});for(const[c,l]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return t.response&&t.response[l]}});return a}const LB=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function gT(t="GET"){return LB.has(t.toUpperCase())}function kB(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 NB=new Set(["image/svg","application/xml","application/xhtml","application/html"]),VB=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function FB(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return VB.test(e)?"json":NB.has(e)||e.startsWith("text/")?"text":"blob"}function MB(t,e,n,r){const o=BB(e?.headers??t?.headers,n?.headers,r);let i;return(n?.query||n?.params||e?.params||e?.query)&&(i={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:i,params:i,headers:o}}function BB(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[o,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(o,i);return r}async function kh(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const UB=new Set([408,409,425,429,500,502,503,504]),$B=new Set([101,204,205,304]);function UP(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function o(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let u;typeof a.options.retry=="number"?u=a.options.retry:u=gT(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):UB.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(_=>setTimeout(_,f)),i(a.request,{...a.options,retry:u-1})}}const l=DB(a);throw Error.captureStackTrace&&Error.captureStackTrace(l,i),l}const i=async function(c,l={}){const u={request:c,options:MB(c,l,t.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await kh(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=RB(u.request,u.options.baseURL)),u.options.query&&(u.request=M_(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&gT(u.options.method)&&(kB(u.options.body)?(u.options.body=typeof u.options.body=="str
20ing"?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")));let d;if(!u.options.signal&&u.options.timeout){const _=new r;d=setTimeout(()=>{const m=new Error("[TimeoutError]: The operation was aborted due to timeout");m.name="TimeoutError",m.code=23,_.abort(m)},u.options.timeout),u.options.signal=_.signal}try{u.response=await e(u.request,u.options)}catch(_){return u.error=_,u.options.onRequestError&&await kh(u,u.options.onRequestError),await o(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!$B.has(u.response.status)&&u.options.method!=="HEAD"){const _=(u.options.parseResponse?"json":u.options.responseType)||FB(u.response.headers.get("content-type")||"");switch(_){case"json":{const m=await u.response.text(),y=u.options.parseResponse||ed;u.response._data=y(m);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[_]()}}return u.options.onResponse&&await kh(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await kh(u,u.options.onResponseError),await o(u)):u.response},s=async function(c,l){return(await i(c,l))._data};return s.raw=i,s.native=(...a)=>e(...a),s.create=(a={},c={})=>UP({...t,...c,defaults:{...t.defaults,...c.defaults,...a}}),s}const Cp=(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")})(),jB=Cp.fetch?(...t)=>Cp.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),HB=Cp.Headers,zB=Cp.AbortController,qB=UP({fetch:jB,Headers:HB,AbortController:zB}),WB=qB,KB=()=>window?.__NUXT__?.config||{},Vv=()=>KB().app,GB=()=>Vv().baseURL,QB=()=>Vv().buildAssetsDir,Fv=(...t)=>FP($P(),QB(),...t),$P=(...t)=>{const e=Vv(),n=e.cdnURL||e.baseURL;return t.length?FP(n,...t):n};globalThis.__buildAssetsURL=Fv,globalThis.__publicAssetsURL=$P;globalThis.$fetch||(globalThis.$fetch=WB.create({baseURL:GB()}));"global"in globalThis||(globalThis.global=globalThis);function mg(t,e={},n){for(const r in t){const o=t[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?mg(o,e,i):typeof o=="function"&&(e[i]=o)}return e}const YB={run:t=>t()},XB=()=>YB,jP=typeof console.createTask<"u"?console.createTask:XB;function JB(t,e){const n=e.shift(),r=jP(n);return t.reduce((o,i)=>o.then(()=>r.run(()=>i(...e))),Promise.resolve())}function ZB(t,e){const n=e.shift(),r=jP(n);return Promise.all(t.map(o=>r.run(()=>o(...e))))}function s0(t,e){for(const n of[...t])n(e)}class e8{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 o=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}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,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(e,o),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 o of r)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=mg(e),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(e){const n=mg(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(JB,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(ZB,e,...n)}callHookWith(e,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&s0(this._before,o);const i=e(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&s0(this._after,o)}):(this._after&&o&&s0(this._after,o),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 HP(){return new e8}function t8(t={}){let e,n=!1;const r=s=>{if(e&&e!==s)throw new Error("Context conflict")};let o;if(t.asyncContext){const s=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>
20{if(o){const s=o.getStore();if(s!==void 0)return s}return e};return{use:()=>{const s=i();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>i(),set:(s,a)=>{a||r(s),e=s,n=!0},unset:()=>{e=void 0,n=!1},call:(s,a)=>{r(s),e=s;try{return o?o.run(s,a):a()}finally{n||(e=void 0)}},async callAsync(s,a){e=s;const c=()=>{e=s},l=()=>e===s?c:void 0;gg.add(l);try{const u=o?o.run(s,a):a();return n||(e=void 0),await u}finally{gg.delete(l)}}}}function n8(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=t8({...t,...r})),e[n]}}}const Pp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},yT="__unctx__",r8=Pp[yT]||(Pp[yT]=n8()),o8=(t,e={})=>r8.get(t,e),vT="__unctx_async_handlers__",gg=Pp[vT]||(Pp[vT]=new Set);function Wn(t){const e=[];for(const o of gg){const i=o();i&&e.push(i)}const n=()=>{for(const o of e)o()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const i8=!1,ET=!1,s8=!1,bT={id:"__nuxt-loader"},Lae={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},kae={deep:!1},a8=void 0,Nae={},c8="#__nuxt",zP="nuxt-app",wT=36e5,l8="vite:preloadError";function qP(t=zP){return o8(t,{asyncContext:!1})}const u8="__nuxt_plugin";function d8(t){let e=0;const n={_id:t.id||zP||"nuxt-app",_scope:Qa(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.19.2"},get vue(){return n.vueApp.version}},payload:Cr({...t.ssrContext?.payload||{},data:Cr({}),state:Er({}),once:new Set,_errors:Cr({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Ya()?n._scope.run(()=>TT(n,o)):TT(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let o=!1;return()=>{if(!o&&(o=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Cr({}),_payloadRevivers:{},...t};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=HP(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const s="$"+o;Nh(n,s,i),Nh(n.vueApp.config.globalProperties,s,i)},Nh(n.vueApp,"$nuxt",n),Nh(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(l8,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=rt;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function h8(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function f8(t,e){if(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 p8(t,e){const n=new Set,r=[],o=[];let i,s=0;async function a(c){const l=c.dependsOn?.filter(u=>e.some(d=>d._name===u)&&!n.has(u))??[];if(l.length>0)r.push([new Set(l),c]);else{const u=f8(t,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([d,f])=>{d.has(c._name)&&(d.delete(c._name),d.size===0&&(s++,await a(f)))})))}).catch(d=>{if(!c.parallel&&!t.payload.error)throw d;i||=d});c.parallel?o.push(u):await u}}for(const c of e)h8(t,c);for(const c of e)await a(c);if(await Promise.all(o),s)for(let c=0;c<s;c++)await Promise.all(o);if(i)throw t.payload.error||i}function $t(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[u8]:!0,_name:e})}const _8=$t;function TT(t,e,n){const r=()=>e();return qP(t._id).set(t),t.vueApp.runWithContext(r)}function m8(t){let e;return yl()&&(e=Ut()?.appContext.app.$nuxt),e||=qP(t).tryUse(),e||null}function rt(t){const e=m8(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function br(t){return rt().$config}function Nh(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function g8(t,e){return{ctx:{table:t},matchAll:n=>KP(n,t)}}function WP(t){const e={};for(const n in t)e[n]=n==="dynamic"?new Map(Object.entries(t[n]).map(([r,o])=>[r,WP(o)])):new Map(Object.entries(t[n]));return e}function y8(t){return g8(WP(t))}
20function KP(t,e,n){t.endsWith("/")&&(t=t.slice(0,-1)||"/");const r=[];for(const[i,s]of AT(e.wildcard))(t===i||t.startsWith(i+"/"))&&r.push(s);for(const[i,s]of AT(e.dynamic))if(t.startsWith(i+"/")){const a="/"+t.slice(i.length).split("/").splice(2).join("/");r.push(...KP(a,s))}const o=e.static.get(t);return o&&r.push(o),r.filter(Boolean)}function AT(t){return[...t.entries()].sort((e,n)=>e[0].length-n[0].length)}function a0(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function yg(t,e,n=".",r){if(!a0(e))return yg(t,{},n,r);const o=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const s=t[i];s!=null&&(r&&r(o,i,s,n)||(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:a0(s)&&a0(o[i])?o[i]=yg(s,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=s))}return o}function v8(t){return(...e)=>e.reduce((n,r)=>yg(n,r,"",t),{})}const GP=v8();function E8(t,e){try{return e in t}catch{return!1}}class xT extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,n={}){super(e,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:vg(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=QP(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function b8(t){if(typeof t=="string")return new xT(t);if(w8(t))return t;const e=new xT(t.message??t.statusMessage??"",{cause:t.cause||t});if(E8(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=vg(t.statusCode,e.statusCode):t.status&&(e.statusCode=vg(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;QP(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 w8(t){return t?.constructor?.__h3_error__===!0}const T8=/[^\u0009\u0020-\u007E]/g;function QP(t=""){return t.replace(T8,"")}function vg(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const YP=Symbol("layout-meta"),Va=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const mn=()=>rt()?.$router,Mv=()=>yl()?Rt(Va,rt()._route):rt()._route;function Vae(t){return t}const A8=(t,e,n={})=>{const r=rt(),o=n.global||typeof t!="string",i=e;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",t);return}o?r._middleware.global.push(i):r._middleware.named[t]=i},x8=()=>{try{if(rt()._processingMiddleware)return!0}catch{return!1}return!1},Li=(t,e)=>{t||="/";const n=typeof t=="string"?t:"path"in t?I8(t):mn().resolve(t).href;if(e?.open){const{target:c="_blank",windowFeatures:l={}}=e.open,u=[];for(const[d,f]of Object.entries(l))f!==void 0&&u.push(`${d.toLowerCase()}=${f}`);return open(n,c,u.join(", ")),Promise.resolve()}const r=cs(n,{acceptRelative:!0}),o=e?.external||r;if(o){if(!e?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(n,window.location.href);if(c&&xB(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const i=x8();if(!o&&i){if(e?.replace){if(typeof t=="string"){const{pathname:c,search:l,hash:u}=BP(t);return{path:c,...l&&{query:Nv(l)},...u&&{hash:u},replace:!0}}return{...t,replace:!0}}return t}const s=mn(),a=rt();return o?(a._scope.stop(),e?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e?.replace?s.replace(t):s.push(t)};function I8(t){return M_(t.path||"",t.query||{})+(t.hash||"")}const XP="__nuxt_error",B_=()=>P_(rt().payload,"error"),fa=t=>{const e=Oa(t);try{const n=rt(),r=B_();n.hooks.callHook("app:error",e),r.value||=e}catch{throw e}return e}
20,R8=async(t={})=>{const e=rt(),n=B_();e.callHook("app:error:cleared",t),t.redirect&&await mn().replace(t.redirect),n.value=a8},JP=t=>!!t&&typeof t=="object"&&XP in t,Oa=t=>{const e=b8(t);return Object.defineProperty(e,XP,{value:!0,configurable:!1,writable:!1}),e};var IT={};/** 21 * @license 22 * Copyright 2017 Google LLC 23 * 24 * Licensed under the Apache License, Version 2.0 (the "License"); 25 * you may not use this file except in compliance with the License. 26 * You may obtain a copy of the License at 27 * 28 * http://www.apache.org/licenses/LICENSE-2.0 29 * 30 * Unless required by applicable law or agreed to in writing, software 31 * distributed under the License is distributed on an "AS IS" BASIS, 32 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 * See the License for the specific language governing permissions and 34 * limitations under the License. 35 */const ZP={NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"};/** 36 * @license 37 * Copyright 2017 Google LLC 38 * 39 * Licensed under the Apache License, Version 2.0 (the "License"); 40 * you may not use this file except in compliance with the License. 41 * You may obtain a copy of the License at 42 * 43 * http://www.apache.org/licenses/LICENSE-2.0 44 * 45 * Unless required by applicable law or agreed to in writing, software 46 * distributed under the License is distributed on an "AS IS" BASIS, 47 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 48 * See the License for the specific language governing permissions and 49 * limitations under the License. 50 */const Ae=function(t,e){if(!t)throw El(e)},El=function(t){return new Error("Firebase Database ("+ZP.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)};/** 51 * @license 52 * Copyright 2017 Google LLC 53 * 54 * Licensed under the Apache License, Version 2.0 (the "License"); 55 * you may not use this file except in compliance with the License. 56 * You may obtain a copy of the License at 57 * 58 * http://www.apache.org/licenses/LICENSE-2.0 59 * 60 * Unless required by applicable law or agreed to in writing, software 61 * distributed under the License is distributed on an "AS IS" BASIS, 62 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 63 * See the License for the specific language governing permissions and 64 * limitations under the License. 65 */const eS=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);o<128?e[n++]=o:o<2048?(e[n++]=o>>6|192,e[n++]=o&63|128):(o&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(o=65536+((o&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=o>>18|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128,e[n++]=o&63|128):(e[n++]=o>>12|224,e[n++]=o>>6&63|128,e[n++]=o&63|128)}return e},C8=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const o=t[n++];if(o<128)e[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=t[n++];e[r++]=String.fromCharCode((o&31)<<6|i&63)}else if(o>239&&o<365){const i=t[n++],s=t[n++],a=t[n++],c=((o&7)<<18|(i&63)<<12|(s&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{const i=t[n++],s=t[n++];e[r++]=String.fromCharCode((o&15)<<12|(i&63)<<6|s&63)}}return e.join("")},U_={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 o=0;o<t.length;o+=3){const i=t[o],s=o+1<t.length,a=s?t[o+1]:0,c=o+2<t.length,l=c?t[o+2]:0,u=i>>2,d=(i&3)<<4|a>>4;let f=(a&15)<<2|l>>6,_=l&63;c||(_=64,s||(f=64)),r.push(n[u],n[d],n[f],n[_])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(eS(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):C8(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<t.length;){const i=n[t.charAt(o++)],a=o<t.length?n[t.charAt(o)]:0;++o;const l=o<t.length?n[t.charAt(o)]:64;++o;const d=o<t.length?n[t.charAt(o)]:64;if(++o,i==null||a==null||l==null||d==null)throw new P8;const f=i<<2|a>>4;if(r.push(f),l!==64){const _=a<<4&240|l>>2;if(r.push(_),d!==64){const m=l<<6&192|d;r.push(m)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
65class P8 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const tS=function(t){const e=eS(t);return U_.encodeByteArray(e,!0)},Sp=function(t){return tS(t).replace(/\./g,"")},Op=function(t){try{return U_.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 66 * @license 67 * Copyright 2017 Google LLC 68 * 69 * Licensed under the Apache License, Version 2.0 (the "License"); 70 * you may not use this file except in compliance with the License. 71 * You may obtain a copy of the License at 72 * 73 * http://www.apache.org/licenses/LICENSE-2.0 74 * 75 * Unless required by applicable law or agreed to in writing, software 76 * distributed under the License is distributed on an "AS IS" BASIS, 77 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 78 * See the License for the specific language governing permissions and 79 * limitations under the License. 80 */function S8(t){return nS(void 0,t)}function nS(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:const n=e;return new Date(n.getTime());case Object:t===void 0&&(t={});break;case Array:t=[];break;default:return e}for(const n in e)!e.hasOwnProperty(n)||!O8(n)||(t[n]=nS(t[n],e[n]));return t}function O8(t){return t!=="__proto__"}/** 81 * @license 82 * Copyright 2022 Google LLC 83 * 84 * Licensed under the Apache License, Version 2.0 (the "License"); 85 * you may not use this file except in compliance with the License. 86 * You may obtain a copy of the License at 87 * 88 * http://www.apache.org/licenses/LICENSE-2.0 89 * 90 * Unless required by applicable law or agreed to in writing, software 91 * distributed under the License is distributed on an "AS IS" BASIS, 92 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 93 * See the License for the specific language governing permissions and 94 * limitations under the License. 95 */function D8(){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.")}/** 96 * @license 97 * Copyright 2022 Google LLC 98 * 99 * Licensed under the Apache License, Version 2.0 (the "License"); 100 * you may not use this file except in compliance with the License. 101 * You may obtain a copy of the License at 102 * 103 * http://www.apache.org/licenses/LICENSE-2.0 104 * 105 * Unless required by applicable law or agreed to in writing, software 106 * distributed under the License is distributed on an "AS IS" BASIS, 107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 108 * See the License for the specific language governing permissions and 109 * limitations under the License. 110 */const L8=()=>D8().__FIREBASE_DEFAULTS__,k8=()=>{if(typeof process>"u"||typeof IT>"u")return;const t=IT.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},N8=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&Op(t[1]);return e&&JSON.parse(e)},$_=()=>{try{return L8()||k8()||N8()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},rS=t=>{var e,n;return(n=(e=$_())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},V8=t=>{const e=rS(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]},oS=()=>{var t;return(t=$_())===null||t===void 0?void 0:t.config},iS=t=>{var e;return(e=$_())===null||e===void 0?void 0:e[`_${t}`]};/** 111 * @license 112 * Copyright 2017 Google LLC 113 * 114 * Licensed under the Apache License, Version 2.0 (the "License"); 115 * you may not use this file except in compliance with the License. 116 * You may obtain a copy of the License at 117 * 118 * http://www.apache.org/licenses/LICENSE-2.0 119 * 120 * Unless required by applicable law or agreed to in writing, software 121 * distributed under the License is distributed on an "AS IS" BASIS, 122 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 123 * See the License for the specific language governing permissions and 124 * limitations under the License. 125 */class nd{constructor(){this.reject=()=>{},this.resolve=()=>{}
125,this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/** 126 * @license 127 * Copyright 2021 Google LLC 128 * 129 * Licensed under the Apache License, Version 2.0 (the "License"); 130 * you may not use this file except in compliance with the License. 131 * You may obtain a copy of the License at 132 * 133 * http://www.apache.org/licenses/LICENSE-2.0 134 * 135 * Unless required by applicable law or agreed to in writing, software 136 * distributed under the License is distributed on an "AS IS" BASIS, 137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138 * See the License for the specific language governing permissions and 139 * limitations under the License. 140 */function F8(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",o=t.iat||0,i=t.sub||t.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:o,exp:o+3600,auth_time:o,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},t);return[Sp(JSON.stringify(n)),Sp(JSON.stringify(s)),""].join(".")}/** 141 * @license 142 * Copyright 2017 Google LLC 143 * 144 * Licensed under the Apache License, Version 2.0 (the "License"); 145 * you may not use this file except in compliance with the License. 146 * You may obtain a copy of the License at 147 * 148 * http://www.apache.org/licenses/LICENSE-2.0 149 * 150 * Unless required by applicable law or agreed to in writing, software 151 * distributed under the License is distributed on an "AS IS" BASIS, 152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 153 * See the License for the specific language governing permissions and 154 * limitations under the License. 155 */function Ln(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Bv(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ln())}function M8(){var t;const e=(t=$_())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function B8(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function U8(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function sS(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function $8(){const t=Ln();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function j8(){return ZP.NODE_ADMIN===!0}function H8(){return!M8()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function aS(){try{return typeof indexedDB=="object"}catch{return!1}}function z8(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var i;e(((i=o.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}/** 156 * @license 157 * Copyright 2017 Google LLC 158 * 159 * Licensed under the Apache License, Version 2.0 (the "License"); 160 * you may not use this file except in compliance with the License. 161 * You may obtain a copy of the License at 162 * 163 * http://www.apache.org/licenses/LICENSE-2.0 164 * 165 * Unless required by applicable law or agreed to in writing, software 166 * distributed under the License is distributed on an "AS IS" BASIS, 167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 168 * See the License for the specific language governing permissions and 169 * limitations under the License. 170 */const q8="FirebaseError";
170class yi extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=q8,Object.setPrototypeOf(this,yi.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,bl.prototype.create)}}class bl{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},o=`${this.service}/${e}`,i=this.errors[e],s=i?W8(i,r):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new yi(o,a,r)}}function W8(t,e){return t.replace(K8,(n,r)=>{const o=e[r];return o!=null?String(o):`<${r}?>`})}const K8=/\{\$([^}]+)}/g;/** 171 * @license 172 * Copyright 2017 Google LLC 173 * 174 * Licensed under the Apache License, Version 2.0 (the "License"); 175 * you may not use this file except in compliance with the License. 176 * You may obtain a copy of the License at 177 * 178 * http://www.apache.org/licenses/LICENSE-2.0 179 * 180 * Unless required by applicable law or agreed to in writing, software 181 * distributed under the License is distributed on an "AS IS" BASIS, 182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 183 * See the License for the specific language governing permissions and 184 * limitations under the License. 185 */function rd(t){return JSON.parse(t)}function hn(t){return JSON.stringify(t)}/** 186 * @license 187 * Copyright 2017 Google LLC 188 * 189 * Licensed under the Apache License, Version 2.0 (the "License"); 190 * you may not use this file except in compliance with the License. 191 * You may obtain a copy of the License at 192 * 193 * http://www.apache.org/licenses/LICENSE-2.0 194 * 195 * Unless required by applicable law or agreed to in writing, software 196 * distributed under the License is distributed on an "AS IS" BASIS, 197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 198 * See the License for the specific language governing permissions and 199 * limitations under the License. 200 */const cS=function(t){let e={},n={},r={},o="";try{const i=t.split(".");e=rd(Op(i[0])||""),n=rd(Op(i[1])||""),o=i[2],r=n.d||{},delete n.d}catch{}return{header:e,claims:n,data:r,signature:o}},G8=function(t){const e=cS(t),n=e.claims;return!!n&&typeof n=="object"&&n.hasOwnProperty("iat")},Q8=function(t){const e=cS(t).claims;return typeof e=="object"&&e.admin===!0};/** 201 * @license 202 * Copyright 2017 Google LLC 203 * 204 * Licensed under the Apache License, Version 2.0 (the "License"); 205 * you may not use this file except in compliance with the License. 206 * You may obtain a copy of the License at 207 * 208 * http://www.apache.org/licenses/LICENSE-2.0 209 * 210 * Unless required by applicable law or agreed to in writing, software 211 * distributed under the License is distributed on an "AS IS" BASIS, 212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 213 * See the License for the specific language governing permissions and 214 * limitations under the License. 215 */function ls(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qc(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Eg(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function Dp(t,e,n){const r={};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=e.call(n,t[o],o,t));return r}function Lp(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const o of n){if(!r.includes(o))return!1;const i=t[o],s=e[o];if(RT(i)&&RT(s)){if(!Lp(i,s))return!1}else if(i!==s)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function RT(t){return t!==null&&typeof t=="object"}/** 216 * @license 217 * Copyright 2017 Google LLC 218 * 219 * Licensed under the Apache License, Version 2.0 (the "License"); 220 * you may not use this file except in compliance with the License. 221 * You may obtain a copy of the License at 222 * 223 * http://www.apache.org/licenses/LICENSE-2.0 224 * 225 * Unless required by applicable law or agreed to in writing, software 226 * distributed under the License is distributed on an "AS IS" BASIS, 227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 228 * See the License for the specific language governing permissions and 229 * limitations under the License. 230 */function wl(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(o=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function hu(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[o,i]=r.split("=");e[decodeURIComponent(o)]=decodeURIComponent(i)}}),e}function fu(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}/** 231 * @license 232 * Copyright 2017 Google LLC 233 * 234 * Licensed under the Apache License, Version 2.0 (the "License");
235 * you may not use this file except in compliance with the License. 236 * You may obtain a copy of the License at 237 * 238 * http://www.apache.org/licenses/LICENSE-2.0 239 * 240 * Unless required by applicable law or agreed to in writing, software 241 * distributed under the License is distributed on an "AS IS" BASIS, 242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 243 * See the License for the specific language governing permissions and 244 * limitations under the License. 245 */class Y8{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<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(e,n){n||(n=0);const r=this.W_;if(typeof e=="string")for(let d=0;d<16;d++)r[d]=e.charCodeAt(n)<<24|e.charCodeAt(n+1)<<16|e.charCodeAt(n+2)<<8|e.charCodeAt(n+3),n+=4;else for(let d=0;d<16;d++)r[d]=e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3],n+=4;for(let d=16;d<80;d++){const f=r[d-3]^r[d-8]^r[d-14]^r[d-16];r[d]=(f<<1|f>>>31)&4294967295}let o=this.chain_[0],i=this.chain_[1],s=this.chain_[2],a=this.chain_[3],c=this.chain_[4],l,u;for(let d=0;d<80;d++){d<40?d<20?(l=a^i&(s^a),u=1518500249):(l=i^s^a,u=1859775393):d<60?(l=i&s|a&(i|s),u=2400959708):(l=i^s^a,u=3395469782);const f=(o<<5|o>>>27)+l+c+u+r[d]&4294967295;c=a,a=s,s=(i<<30|i>>>2)&4294967295,i=o,o=f}this.chain_[0]=this.chain_[0]+o&4294967295,this.chain_[1]=this.chain_[1]+i&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+c&4294967295}update(e,n){if(e==null)return;n===void 0&&(n=e.length);const r=n-this.blockSize;let o=0;const i=this.buf_;let s=this.inbuf_;for(;o<n;){if(s===0)for(;o<=r;)this.compress_(e,o),o+=this.blockSize;if(typeof e=="string"){for(;o<n;)if(i[s]=e.charCodeAt(o),++s,++o,s===this.blockSize){this.compress_(i),s=0;break}}else for(;o<n;)if(i[s]=e[o],++s,++o,s===this.blockSize){this.compress_(i),s=0;break}}this.inbuf_=s,this.total_+=n}digest(){const e=[];let n=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let o=this.blockSize-1;o>=56;o--)this.buf_[o]=n&255,n/=256;this.compress_(this.buf_);let r=0;for(let o=0;o<5;o++)for(let i=24;i>=0;i-=8)e[r]=this.chain_[o]>>i&255,++r;return e}}function X8(t,e){const n=new J8(t,e);return n.subscribe.bind(n)}class J8{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 o;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Z8(e,["next","error","complete"])?o=e:o={next:e,error:n,complete:r},o.next===void 0&&(o.next=c0),o.error===void 0&&(o.error=c0),o.complete===void 0&&(o.complete=c0);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),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<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{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 Z8(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 c0(){}function e6(t,e){return`${t} failed: ${e} argument `}/** 246 * @license 247 * Copyright 2017 Google LLC 248 * 249 * Licensed under the Apache License, Version 2.0 (the "License");
250 * you may not use this file except in compliance with the License. 251 * You may obtain a copy of the License at 252 * 253 * http://www.apache.org/licenses/LICENSE-2.0 254 * 255 * Unless required by applicable law or agreed to in writing, software 256 * distributed under the License is distributed on an "AS IS" BASIS, 257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 258 * See the License for the specific language governing permissions and 259 * limitations under the License. 260 */const t6=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);if(o>=55296&&o<=56319){const i=o-55296;r++,Ae(r<t.length,"Surrogate pair missing trail surrogate.");const s=t.charCodeAt(r)-56320;o=65536+(i<<10)+s}o<128?e[n++]=o:o<2048?(e[n++]=o>>6|192,e[n++]=o&63|128):o<65536?(e[n++]=o>>12|224,e[n++]=o>>6&63|128,e[n++]=o&63|128):(e[n++]=o>>18|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128,e[n++]=o&63|128)}return e},j_=function(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e};/** 261 * @license 262 * Copyright 2021 Google LLC 263 * 264 * Licensed under the Apache License, Version 2.0 (the "License"); 265 * you may not use this file except in compliance with the License. 266 * You may obtain a copy of the License at 267 * 268 * http://www.apache.org/licenses/LICENSE-2.0 269 * 270 * Unless required by applicable law or agreed to in writing, software 271 * distributed under the License is distributed on an "AS IS" BASIS, 272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 273 * See the License for the specific language governing permissions and 274 * limitations under the License. 275 */function kn(t){return t&&t._delegate?t._delegate:t}class Br{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 276 * @license 277 * Copyright 2019 Google LLC 278 * 279 * Licensed under the Apache License, Version 2.0 (the "License"); 280 * you may not use this file except in compliance with the License. 281 * You may obtain a copy of the License at 282 * 283 * http://www.apache.org/licenses/LICENSE-2.0 284 * 285 * Unless required by applicable law or agreed to in writing, software 286 * distributed under the License is distributed on an "AS IS" BASIS, 287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 288 * See the License for the specific language governing permissions and 289 * limitations under the License. 290 */const pa="[DEFAULT]";/** 291 * @license 292 * Copyright 2019 Google LLC 293 * 294 * Licensed under the Apache License, Version 2.0 (the "License"); 295 * you may not use this file except in compliance with the License. 296 * You may obtain a copy of the License at 297 * 298 * http://www.apache.org/licenses/LICENSE-2.0 299 * 300 * Unless required by applicable law or agreed to in writing, software 301 * distributed under the License is distributed on an "AS IS" BASIS, 302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 303 * See the License for the specific language governing permissions and 304 * limitations under the License. 305 */class n6{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 nd;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&r.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e?.identifier),o=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(o)return null;throw i}else{if(o)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(o6(e))try{this.getOrInitializeService({instanceIdentifier:pa})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:o});r.resolve(i)}catch{}}}}clearInstance(e=pa){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=pa){return this.instances.has(e)}getOptions(e=pa){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 o=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&s.resolve(o)}return o}onInit(e,n){var r;const o=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(o))!==null&&r!==void 0?r:new Set;i.add(e),this.onInitCallbacks.set(o,i);const s=this.instances.get(o);return s&&e(s,o),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const o of r)try{o(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:r6(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=pa){return this.component?this.component.multipleInstances?e:pa:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function r6(t){return t===pa?void 0:t}function o6(t){return t.instantiationMode==="EAGER"}/** 306 * @license 307 * Copyright 2019 Google LLC 308 * 309 * Licensed under the Apache License, Version 2.0 (the "License");
310 * you may not use this file except in compliance with the License. 311 * You may obtain a copy of the License at 312 * 313 * http://www.apache.org/licenses/LICENSE-2.0 314 * 315 * Unless required by applicable law or agreed to in writing, software 316 * distributed under the License is distributed on an "AS IS" BASIS, 317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 318 * See the License for the specific language governing permissions and 319 * limitations under the License. 320 */class i6{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new n6(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 321 * @license 322 * Copyright 2017 Google LLC 323 * 324 * Licensed under the Apache License, Version 2.0 (the "License"); 325 * you may not use this file except in compliance with the License. 326 * You may obtain a copy of the License at 327 * 328 * http://www.apache.org/licenses/LICENSE-2.0 329 * 330 * Unless required by applicable law or agreed to in writing, software 331 * distributed under the License is distributed on an "AS IS" BASIS, 332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 333 * See the License for the specific language governing permissions and 334 * limitations under the License. 335 */var He;(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"})(He||(He={}));const s6={debug:He.DEBUG,verbose:He.VERBOSE,info:He.INFO,warn:He.WARN,error:He.ERROR,silent:He.SILENT},a6=He.INFO,c6={[He.DEBUG]:"log",[He.VERBOSE]:"log",[He.INFO]:"info",[He.WARN]:"warn",[He.ERROR]:"error"},l6=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),o=c6[e];if(o)console[o](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};let Nd=class{constructor(e){this.name=e,this._logLevel=a6,this._logHandler=l6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in He))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?s6[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,He.DEBUG,...e),this._logHandler(this,He.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,He.VERBOSE,...e),this._logHandler(this,He.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,He.INFO,...e),this._logHandler(this,He.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,He.WARN,...e),this._logHandler(this,He.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,He.ERROR,...e),this._logHandler(this,He.ERROR,...e)}};const u6=(t,e)=>e.some(n=>t instanceof n);let CT,PT;function d6(){return CT||(CT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function h6(){return PT||(PT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const lS=new WeakMap,bg=new WeakMap,uS=new WeakMap,l0=new WeakMap,Uv=new WeakMap;function f6(t){const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{n(Fs(t.result)),o()},s=()=>{r(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(n=>{n instanceof IDBCursor&&lS.set(n,t)}).catch(()=>{}),Uv.set(e,t),e}function p6(t){if(bg.has(t))return;const e=new Promise((n,r)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});bg.set(t,e)}let wg={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return bg.get(t);if(e==="objectStoreNames")return t.objectStoreNames||uS.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fs(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 _6(t){wg=t(wg)}function m6(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(u0(this),e,...n);return uS.set(r,e.sort?e.sort():[e]),Fs(r)}:h6().includes(t)?function(...e){return t.apply(u0(this),e),Fs(lS.get(this))}:function(...e){return Fs(t.apply(u0(this),e))}}function g6(t){return typeof t=="function"?m6(t):(t instanceof IDBTransaction&&p6(t),u6(t,d6())?new Proxy(t,wg):t)}function Fs(t){if(t instanceof IDBRequest)return f6(t);if(l0.has(t))return l0.get(t);const e=g6(t);return e!==t&&(l0.set(t,e),Uv.set(e,t)),e}const u0=t=>Uv.get(t);function y6(t,e,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),a=Fs(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Fs(s.result),c.oldVersion,c.newVersion,Fs(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),o&&c.addEventListener("versionchange",l=>o(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const v6=["get","getKey","getAll","getAllKeys","count"],E6=["put","add","delete","clear"],d0=new Map;function ST(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(d0.get(e))return d0.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,o=E6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||v6.includes(n)))return;const i=async function(s,...a){const c=this.transaction(s,o?"readwrite":"readonly");let l=c.store;
335return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),o&&c.done]))[0]};return d0.set(e,i),i}_6(t=>({...t,get:(e,n,r)=>ST(e,n)||t.get(e,n,r),has:(e,n)=>!!ST(e,n)||t.has(e,n)}));/** 336 * @license 337 * Copyright 2019 Google LLC 338 * 339 * Licensed under the Apache License, Version 2.0 (the "License"); 340 * you may not use this file except in compliance with the License. 341 * You may obtain a copy of the License at 342 * 343 * http://www.apache.org/licenses/LICENSE-2.0 344 * 345 * Unless required by applicable law or agreed to in writing, software 346 * distributed under the License is distributed on an "AS IS" BASIS, 347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 348 * See the License for the specific language governing permissions and 349 * limitations under the License. 350 */class b6{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(w6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function w6(t){const e=t.getComponent();return e?.type==="VERSION"}const Tg="@firebase/app",OT="0.10.13";/** 351 * @license 352 * Copyright 2019 Google LLC 353 * 354 * Licensed under the Apache License, Version 2.0 (the "License"); 355 * you may not use this file except in compliance with the License. 356 * You may obtain a copy of the License at 357 * 358 * http://www.apache.org/licenses/LICENSE-2.0 359 * 360 * Unless required by applicable law or agreed to in writing, software 361 * distributed under the License is distributed on an "AS IS" BASIS, 362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 363 * See the License for the specific language governing permissions and 364 * limitations under the License. 365 */const ns=new Nd("@firebase/app"),T6="@firebase/app-compat",A6="@firebase/analytics-compat",x6="@firebase/analytics",I6="@firebase/app-check-compat",R6="@firebase/app-check",C6="@firebase/auth",P6="@firebase/auth-compat",S6="@firebase/database",O6="@firebase/data-connect",D6="@firebase/database-compat",L6="@firebase/functions",k6="@firebase/functions-compat",N6="@firebase/installations",V6="@firebase/installations-compat",F6="@firebase/messaging",M6="@firebase/messaging-compat",B6="@firebase/performance",U6="@firebase/performance-compat",$6="@firebase/remote-config",j6="@firebase/remote-config-compat",H6="@firebase/storage",z6="@firebase/storage-compat",q6="@firebase/firestore",W6="@firebase/vertexai-preview",K6="@firebase/firestore-compat",G6="firebase",Q6="10.14.1";/** 366 * @license 367 * Copyright 2019 Google LLC 368 * 369 * Licensed under the Apache License, Version 2.0 (the "License"); 370 * you may not use this file except in compliance with the License. 371 * You may obtain a copy of the License at 372 * 373 * http://www.apache.org/licenses/LICENSE-2.0 374 * 375 * Unless required by applicable law or agreed to in writing, software 376 * distributed under the License is distributed on an "AS IS" BASIS, 377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 378 * See the License for the specific language governing permissions and 379 * limitations under the License. 380 */const Ag="[DEFAULT]",Y6={[Tg]:"fire-core",[T6]:"fire-core-compat",[x6]:"fire-analytics",[A6]:"fire-analytics-compat",[R6]:"fire-app-check",[I6]:"fire-app-check-compat",[C6]:"fire-auth",[P6]:"fire-auth-compat",[S6]:"fire-rtdb",[O6]:"fire-data-connect",[D6]:"fire-rtdb-compat",[L6]:"fire-fn",[k6]:"fire-fn-compat",[N6]:"fire-iid",[V6]:"fire-iid-compat",[F6]:"fire-fcm",[M6]:"fire-fcm-compat",[B6]:"fire-perf",[U6]:"fire-perf-compat",[$6]:"fire-rc",[j6]:"fire-rc-compat",[H6]:"fire-gcs",[z6]:"fire-gcs-compat",[q6]:"fire-fst",[K6]:"fire-fst-compat",[W6]:"fire-vertex","fire-js":"fire-js",[G6]:"fire-js-all"};/** 381 * @license 382 * Copyright 2019 Google LLC 383 * 384 * Licensed under the Apache License, Version 2.0 (the "License"); 385 * you may not use this file except in compliance with the License. 386 * You may obtain a copy of the License at 387 * 388 * http://www.apache.org/licenses/LICENSE-2.0 389 * 390 * Unless required by applicable law or agreed to in writing, software 391 * distributed under the License is distributed on an "AS IS" BASIS, 392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 393 * See the License for the specific language governing permissions and 394 * limitations under the License. 395 */const kp=new Map,X6=new Map,xg=new Map;function DT(t,e){try{t.container.addComponent(e)}catch(n){ns.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function _i(t){const e=t.name;if(xg.has(e))return ns.debug(`There were multiple attempts to register component ${e}.`),!1;xg.set(e,t);for(const n of kp.values())DT(n,t);for(const n of X6.values())DT(n,t);return!0}function $v(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Pr(t){return t.settings!==void 0}/** 396 * @license 397 * Copyright 2019 Google LLC 398 * 399 * Licensed under the Apache License, Version 2.0 (the "License");
400 * you may not use this file except in compliance with the License. 401 * You may obtain a copy of the License at 402 * 403 * http://www.apache.org/licenses/LICENSE-2.0 404 * 405 * Unless required by applicable law or agreed to in writing, software 406 * distributed under the License is distributed on an "AS IS" BASIS, 407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 408 * See the License for the specific language governing permissions and 409 * limitations under the License. 410 */const J6={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
410d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ms=new bl("app","Firebase",J6);/** 411 * @license 412 * Copyright 2019 Google LLC 413 * 414 * Licensed under the Apache License, Version 2.0 (the "License"); 415 * you may not use this file except in compliance with the License. 416 * You may obtain a copy of the License at 417 * 418 * http://www.apache.org/licenses/LICENSE-2.0 419 * 420 * Unless required by applicable law or agreed to in writing, software 421 * distributed under the License is distributed on an "AS IS" BASIS, 422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 423 * See the License for the specific language governing permissions and 424 * limitations under the License. 425 */class Z6{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 Br("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 Ms.create("app-deleted",{appName:this._name})}}/** 426 * @license 427 * Copyright 2019 Google LLC 428 * 429 * Licensed under the Apache License, Version 2.0 (the "License"); 430 * you may not use this file except in compliance with the License. 431 * You may obtain a copy of the License at 432 * 433 * http://www.apache.org/licenses/LICENSE-2.0 434 * 435 * Unless required by applicable law or agreed to in writing, software 436 * distributed under the License is distributed on an "AS IS" BASIS, 437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 438 * See the License for the specific language governing permissions and 439 * limitations under the License. 440 */const Ys=Q6;function dS(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Ag,automaticDataCollectionEnabled:!1},e),o=r.name;if(typeof o!="string"||!o)throw Ms.create("bad-app-name",{appName:String(o)});if(n||(n=oS()),!n)throw Ms.create("no-options");const i=kp.get(o);if(i){if(Lp(n,i.options)&&Lp(r,i.config))return i;throw Ms.create("duplicate-app",{appName:o})}const s=new i6(o);for(const c of xg.values())s.addComponent(c);const a=new Z6(n,r,s);return kp.set(o,a),a}function jv(t=Ag){const e=kp.get(t);if(!e&&t===Ag&&oS())return dS();if(!e)throw Ms.create("no-app",{appName:t});return e}function or(t,e,n){var r;let o=(r=Y6[t])!==null&&r!==void 0?r:t;n&&(o+=`-${n}`);const i=o.match(/\s|\//),s=e.match(/\s|\//);if(i||s){const a=[`Unable to register library "${o}" with version "${e}":`];i&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&s&&a.push("and"),s&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),ns.warn(a.join(" "));return}_i(new Br(`${o}-version`,()=>({library:o,version:e}),"VERSION"))}/** 441 * @license 442 * Copyright 2021 Google LLC 443 * 444 * Licensed under the Apache License, Version 2.0 (the "License"); 445 * you may not use this file except in compliance with the License. 446 * You may obtain a copy of the License at 447 * 448 * http://www.apache.org/licenses/LICENSE-2.0 449 * 450 * Unless required by applicable law or agreed to in writing, softw
450are 451 * distributed under the License is distributed on an "AS IS" BASIS, 452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 453 * See the License for the specific language governing permissions and 454 * limitations under the License. 455 */const e3="firebase-heartbeat-database",t3=1,od="firebase-heartbeat-store";let h0=null;function hS(){return h0||(h0=y6(e3,t3,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(od)}catch(n){console.warn(n)}}}}).catch(t=>{throw Ms.create("idb-open",{originalErrorMessage:t.message})})),h0}async function n3(t){try{const n=(await hS()).transaction(od),r=await n.objectStore(od).get(fS(t));return await n.done,r}catch(e){if(e instanceof yi)ns.warn(e.message);else{const n=Ms.create("idb-get",{originalErrorMessage:e?.message});ns.warn(n.message)}}}async function LT(t,e){try{const r=(await hS()).transaction(od,"readwrite");await r.objectStore(od).put(e,fS(t)),await r.done}catch(n){if(n instanceof yi)ns.warn(n.message);else{const r=Ms.create("idb-set",{originalErrorMessage:n?.message});ns.warn(r.message)}}}function fS(t){return`${t.name}!${t.options.appId}`}/** 456 * @license 457 * Copyright 2021 Google LLC 458 * 459 * Licensed under the Apache License, Version 2.0 (the "License"); 460 * you may not use this file except in compliance with the License. 461 * You may obtain a copy of the License at 462 * 463 * http://www.apache.org/licenses/LICENSE-2.0 464 * 465 * Unless required by applicable law or agreed to in writing, software 466 * distributed under the License is distributed on an "AS IS" BASIS, 467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 468 * See the License for the specific language governing permissions and 469 * limitations under the License. 470 */const r3=1024,o3=720*60*60*1e3;class i3{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new a3(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=kT();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(s=>s.date===i)?void 0:(this._heartbeatsCache.heartbeats.push({date:i,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=o3}),this._storage.overwrite(this._heartbeatsCache))}catch(r){ns.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=kT(),{heartbeatsToSend:r,unsentEntries:o}=s3(this._heartbeatsCache.heartbeats),i=Sp(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return ns.warn(n),""}}}function kT(){return new Date().toISOString().substring(0,10)}function s3(t,e=r3){const n=[];let r=t.slice();for(const o of t){const i=n.find(s=>s.agent===o.agent);if(i){if(i.dates.push(o.date),NT(n)>e){i.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),NT(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class a3{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return aS()?z8().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await n3(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return LT(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return LT(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...e.heartbeats]})}else return}}function NT(t){return Sp(JSON.stringify({version:2,heartbeats:t})).length}/** 471 * @license 472 * Copyright 2019 Google LLC 473 * 474 * Licensed under the Apache License, Version 2.0 (the "License");
475 * you may not use this file except in compliance with the License. 476 * You may obtain a copy of the License at 477 * 478 * http://www.apache.org/licenses/LICENSE-2.0 479 * 480 * Unless required by applicable law or agreed to in writing, software 481 * distributed under the License is distributed on an "AS IS" BASIS, 482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 483 * See the License for the specific language governing permissions and 484 * limitations under the License. 485 */function c3(t){_i(new Br("platform-logger",e=>new b6(e),"PRIVATE")),_i(new Br("heartbeat",e=>new i3(e),"PRIVATE")),or(Tg,OT,t),or(Tg,OT,"esm2017"),or("fire-js","")}c3("");var VT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 486Copyright The Closure Library Authors. 487SPDX-License-Identifier: Apache-2.0 488*/var Da,pS;(function(){var t;/** @license 489 490 Copyright The Closure Library Authors. 491 SPDX-License-Identifier: Apache-2.0 492*/function e(A,I){function R(){}R.prototype=I.prototype,A.D=I.prototype,A.prototype=new R,A.prototype.constructor=A,A.C=function(x,D,S){for(var O=Array(arguments.length-2),ae=2;ae<arguments.length;ae++)O[ae-2]=arguments[ae];return I.prototype[D].apply(x,O)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function o(A,I,R){R||(R=0);var x=Array(16);if(typeof I=="string")for(var D=0;16>D;++D)x[D]=I.charCodeAt(R++)|I.charCodeAt(R++)<<8|I.charCodeAt(R++)<<16|I.charCodeAt(R++)<<24;else for(D=0;16>D;++D)x[D]=I[R++]|I[R++]<<8|I[R++]<<16|I[R++]<<24;I=A.g[0],R=A.g[1],D=A.g[2];var S=A.g[3],O=I+(S^R&(D^S))+x[0]+3614090360&4294967295;I=R+(O<<7&4294967295|O>>>25),O=S+(D^I&(R^D))+x[1]+3905402710&4294967295,S=I+(O<<12&4294967295|O>>>20),O=D+(R^S&(I^R))+x[2]+606105819&4294967295,D=S+(O<<17&4294967295|O>>>15),O=R+(I^D&(S^I))+x[3]+3250441966&4294967295,R=D+(O<<22&4294967295|O>>>10),O=I+(S^R&(D^S))+x[4]+4118548399&4294967295,I=R+(O<<7&4294967295|O>>>25),O=S+(D^I&(R^D))+x[5]+1200080426&4294967295,S=I+(O<<12&4294967295|O>>>20),O=D+(R^S&(I^R))+x[6]+2821735955&4294967295,D=S+(O<<17&4294967295|O>>>15),O=R+(I^D&(S^I))+x[7]+4249261313&4294967295,R=D+(O<<22&4294967295|O>>>10),O=I+(S^R&(D^S))+x[8]+1770035416&4294967295,I=R+(O<<7&4294967295|O>>>25),O=S+(D^I&(R^D))+x[9]+2336552879&4294967295,S=I+(O<<12&4294967295|O>>>20),O=D+(R^S&(I^R))+x[10]+4294925233&4294967295,D=S+(O<<17&4294967295|O>>>15),O=R+(I^D&(S^I))+x[11]+2304563134&4294967295,R=D+(O<<22&4294967295|O>>>10),O=I+(S^R&(D^S))+x[12]+1804603682&4294967295,I=R+(O<<7&4294967295|O>>>25),O=S+(D^I&(R^D))+x[13]+4254626195&4294967295,S=I+(O<<12&4294967295|O>>>20),O=D+(R^S&(I^R))+x[14]+2792965006&4294967295,D=S+(O<<17&4294967295|O>>>15),O=R+(I^D&(S^I))+x[15]+1236535329&4294967295,R=D+(O<<22&4294967295|O>>>10),O=I+(D^S&(R^D))+x[1]+4129170786&4294967295,I=R+(O<<5&4294967295|O>>>27),O=S+(R^D&(I^R))+x[6]+3225465664&4294967295,S=I+(O<<9&4294967295|O>>>23),O=D+(I^R&(S^I))+x[11]+643717713&4294967295,D=S+(O<<14&4294967295|O>>>18),O=R+(S^I&(D^S))+x[0]+3921069994&4294967295,R=D+(O<<20&4294967295|O>>>12),O=I+(D^S&(R^D))+x[5]+3593408605&4294967295,I=R+(O<<5&4294967295|O>>>27),O=S+(R^D&(I^R))+x[10]+38016083&4294967295,S=I+(O<<9&4294967295|O>>>23),O=D+(I^R&(S^I))+x[15]+3634488961&4294967295,D=S+(O<<14&4294967295|O>>>18),O=R+(S^I&(D^S))+x[4]+3889429448&4294967295,R=D+(O<<20&4294967295|O>>>12),O=I+(D^S&(R^D))+x[9]+568446438&4294967295,I=R+(O<<5&4294967295|O>>>27),O=S+(R^D&(I^R))+x[14]+3275163606&4294967295,S=I+(O<<9&4294967295|O>>>23),O=D+(I^R&(S^I))+x[3]+4107603335&4294967295,D=S+(O<<14&4294967295|O>>>18),O=R+(S^I&(D^S))+x[8]+1163531501&4294967295,R=D+(O<<20&4294967295|O>>>12),O=I+(D^S&(R^D))+x[13]+2850285829&4294967295,I=R+(O<<5&4294967295|O>>>27),O=S+(R^D&(I^R))+x[2]+4243563512&4294967295,S=I+(O<<9&4294967295|O>>>23),O=D+(I^R&(S^I))+x[7]+1735328473&4294967295,D=S+(O<<14&4294967295|O>>>18),O=R+(S^I&(D^S))+x[12]+2368359562&4294967295,R=D+(O<<20&4294967295|O>>>12),O=I+(R^D^S)+x[5]+4294588738&4294967295,I=R+(O<<4&4294967295|O>>>28),O=S+(I^R^D)+x[8]+2272392833&4294967295,S=I+(O<<11&4294967295|O>>>21),O=D+(S^I^R)+x[11]+1839030562&4294967295,D=S+(O<<16&4294967295|O>>>16),O=R+(D^S^I)+x[14]+4259657740&4294967295,R=D+(O<<23&4294967295|O>>>9),O=I+(R^D^S)+x[1]+2763975236&4294967295,I=R+(O<<4&4294967295|O>>>28),O=S+(I^R^D)+x[4]+1272893353&4294967295,S=I+(O<<11&4294967295|O>>>21),O=D+(S^I^R)+x[7]+4139469664&4294967295,D=S+(O<<16&4294967295|O>>>16),O=R+(D^S^I)+x[10]+3200236656&4294967295,R=D+(O<<23&4294967295|O>>>9),O=I+(R^D^S)+x[13]+681279174&4294967295,I=R+(O<<4&4294967295|O>>>28),O=S+(I^R^D)+x[0]+3936430074&4294967295,S=I+(O<<11&4294967295|O>>>21),O=D+(S^I^R)+x[3]+3572445317&4294967295,D=S+(O<<16&4294967295|O>>>16),O=R+(D^S^I)+x[6]+76029189&4294967295,R=D+(O<<23&4294967295|O>>>9),O=I+(R^D^S)+x[9]+3654602809&4294967295,I=R+(O<<4&4294967295|O>>>28),O=S+(I^R^D)+x[12]+3873151461&4294967295,S=I+(O<<11&4294967295|O>>>21),O=D+(S^I^R)+x[15]+530742520&4294967295,D=S+(O<<16&4294967295|O>>>16),O=R+(D^S^I)+x[2]+3299628645&4294967295,R=D+(O<<23&4294967295|O>>>9),O=I+(D^(R|~S))+x[0]+4096336452&4294967295,I=R+(O<<6&4294967295|O>>>26),O=S+(R^(I|~D))+x[7]+1126891415&4294967295,S=I+(O<<10&4294967295|O>>>22),O=D+(I^(S|~R))+x[14]+2878612391&4294967295,D=S+(O<<15&4294967295|O>>>17),O=R+(S^(D|~I))+x[5]+4237533241&4294967295,R=D+(O<<21&4294967295|O>>>11),O=I+(D^(R|~S))+x[12]+1700485571&4294967295,I=R+(O<<6&4294967295|O>>>26),O=S+(R^(I|~D))+x[3]+2399980690&4294967295,S=I+(O<<10&4294967295|O>>>22),O=D+(I^(S|~R))+x[10]+4293915773&4294967295,D=S+(O<<15&4294967295|O>>>17),O=R+(S^(D|~I))+x[1]+2240044497&4294967295,R=D+(O<<21&4294967295|O>>>11),O=I+(D^(R|~S))+x[8]+1873313359&4294967295,I=R+(O<<6&4294967295|O>>>26),O=S+(R^(I|~D))+x[15]+4264355552&4294967295,S=I+(O<<10&4294967295|O>>>22),O=D+(I^(S|~R))+x[6]+2734768916&4294967295,D=S+(O<<15&4294967295|O>>>17),O=R+(S^(D|~I))+x[13]+1309151649&4294967295,R=D+(O<<21&4294967295|O>>>11),O=I+(D^(R|~S))+x[4]+4149444226&4294967295,I=R+(O<<6&4294967295|O>>>26),O=S+(R^(I|~D))+x[11]+3174756917&4294967295,S=I+(O<<10&4294967295|O>>>22),O=D+(I^(S|~R))+x[2]+718787259&4294967295,D=S+(O<<15&4294967295|O>>>17),O=R+(S^(D|~I))+x[9]+3951481745&4294967295,A.g[0]=A.g[0]+I&4294967295,A.g[1]=A.g[1]+(D+(O<<21&4294967295|O>>>11))&4294967295,A.g[2]=A.g[2]+D&4294967295,A.g[3]=A.g[3]+S&4294967295}r.prototype.u=function(A,I){I===void 0&&(I=A.length);for(var R=I-this.blockSize,x=this.B,D=this.h,S=0;S<I;){if(D==0)for(;S<=R;)o(this,A,S),S+=this.blockSize;if(typeof A=="string"){for(;S<I;)if(x[D++]=A.charCodeAt(S++),D==this.blockSize){o(this,x),D=0;break}}else for(;S<I;)if(x[D++]=A[S++],D==this.blockSize){o(this,x),D=0;break}}this.h=D,this.o+=I},r.prototype.v=function(){var A=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);A[0]=128;for(var I=1;I<A.length-8;++I)A[I]=0;var R=8*this.o;for(I=A.length-8;I<A.length;++I)A[I]=R&255,R/=256;for(this.u(A),A=Array(16),I=R=0;4>I;++I)for(var x=0;32>x;x+=8)A[R++]=this.g[I]>>>x&255;return A};function i(A,I){var R=a;return Object.prototype.hasOwnProperty.call(R,A)?R[A]:R[A]=I(A)}function s(A,I){this.h=I;for(var R=[],x=!0,D=A.length-1;0<=D;D--){var S=A[D]|0;x&&S==I||(R[D]=S,x=!1)}this.g=R}var a={};function c(A){return-128<=A&&128>A?i(A,function(I){return new s([I|0],0>I?-1:0)}):new s([A|0],0>A?-1:0)}function l(A){if(isNaN(A)||!isFinite(A))return d;if(0>A)return v(l(-A));for(var I=[],R=1,x=0;A>=R;x++)I[x]=A/R|0,R*=4294967296;return new s(I,0)}function u(A,I){if(A.length==0)throw Error("number format error: empty string");if(I=I||10,2>I||36<I)throw Error("radix out of range: "+I);if(A.charAt(0)=="-")return v(u(A.substring(1),I));if(0<=A.indexOf("-"))throw Error('number format error: interior "-" character');for(var R=l(Math.pow(I,8)),x=d,D=0;D<A.length;D+=8){var S=Math.min(8,A.length-D),O=parseInt(A.substring(D,D+S),I);8>S?(S=l(Math.pow(I,S)),x=x.j(S).add(l(O))):(x=x.j(R),x=x.add(l(O)))}return x}var d=c(0),f=c(1),_=c(16777216);
vendor: 5,658 bytes, lines 492-499
492t=s.prototype,t.m=function(){if(y(this))return-v(this).m();for(var A=0,I=1,R=0;R<this.g.length;R++){var x=this.i(R);A+=(0<=x?x:4294967296+x)*I,I*=4294967296}return A},t.toString=function(A){if(A=A||10,2>A||36<A)throw Error("radix out of range: "+A);if(m(this))return"0";if(y(this))return"-"+v(this).toString(A);for(var I=l(Math.pow(A,6)),R=this,x="";;){var D=E(R,I).g;R=T(R,D.j(I));var S=((0<R.g.length?R.g[0]:R.h)>>>0).toString(A);if(R=D,m(R))return S+x;for(;6>S.length;)S="0"+S;x=S+x}},t.i=function(A){return 0>A?0:A<this.g.length?this.g[A]:this.h};function m(A){if(A.h!=0)return!1;for(var I=0;I<A.g.length;I++)if(A.g[I]!=0)return!1;return!0}function y(A){return A.h==-1}t.l=function(A){return A=T(this,A),y(A)?-1:m(A)?0:1};function v(A){for(var I=A.g.length,R=[],x=0;x<I;x++)R[x]=~A.g[x];return new s(R,~A.h).add(f)}t.abs=function(){return y(this)?v(this):this},t.add=function(A){for(var I=Math.max(this.g.length,A.g.length),R=[],x=0,D=0;D<=I;D++){var S=x+(this.i(D)&65535)+(A.i(D)&65535),O=(S>>>16)+(this.i(D)>>>16)+(A.i(D)>>>16);x=O>>>16,S&=65535,O&=65535,R[D]=O<<16|S}return new s(R,R[R.length-1]&-2147483648?-1:0)};function T(A,I){return A.add(v(I))}t.j=function(A){if(m(this)||m(A))return d;if(y(this))return y(A)?v(this).j(v(A)):v(v(this).j(A));if(y(A))return v(this.j(v(A)));if(0>this.l(_)&&0>A.l(_))return l(this.m()*A.m());for(var I=this.g.length+A.g.length,R=[],x=0;x<2*I;x++)R[x]=0;for(x=0;x<this.g.length;x++)for(var D=0;D<A.g.length;D++){var S=this.i(x)>>>16,O=this.i(x)&65535,ae=A.i(D)>>>16,le=A.i(D)&65535;R[2*x+2*D]+=O*le,w(R,2*x+2*D),R[2*x+2*D+1]+=S*le,w(R,2*x+2*D+1),R[2*x+2*D+1]+=O*ae,w(R,2*x+2*D+1),R[2*x+2*D+2]+=S*ae,w(R,2*x+2*D+2)}for(x=0;x<I;x++)R[x]=R[2*x+1]<<16|R[2*x];for(x=I;x<2*I;x++)R[x]=0;return new s(R,0)};function w(A,I){for(;(A[I]&65535)!=A[I];)A[I+1]+=A[I]>>>16,A[I]&=65535,I++}function g(A,I){this.g=A,this.h=I}function E(A,I){if(m(I))throw Error("division by zero");if(m(A))return new g(d,d);if(y(A))return I=E(v(A),I),new g(v(I.g),v(I.h));if(y(I))return I=E(A,v(I)),new g(v(I.g),I.h);if(30<A.g.length){if(y(A)||y(I))throw Error("slowDivide_ only works with positive integers.");for(var R=f,x=I;0>=x.l(A);)R=C(R),x=C(x);var D=L(R,1),S=L(x,1);for(x=L(x,2),R=L(R,2);!m(x);){var O=S.add(x);0>=O.l(A)&&(D=D.add(R),S=O),x=L(x,1),R=L(R,1)}return I=T(A,D.j(I)),new g(D,I)}for(D=d;0<=A.l(I);){for(R=Math.max(1,Math.floor(A.m()/I.m())),x=Math.ceil(Math.log(R)/Math.LN2),x=48>=x?1:Math.pow(2,x-48),S=l(R),O=S.j(I);y(O)||0<O.l(A);)R-=x,S=l(R),O=S.j(I);m(S)&&(S=f),D=D.add(S),A=T(A,O)}return new g(D,A)}t.A=function(A){return E(this,A).h},t.and=function(A){for(var I=Math.max(this.g.length,A.g.length),R=[],x=0;x<I;x++)R[x]=this.i(x)&A.i(x);return new s(R,this.h&A.h)},t.or=function(A){for(var I=Math.max(this.g.length,A.g.length),R=[],x=0;x<I;x++)R[x]=this.i(x)|A.i(x);return new s(R,this.h|A.h)},t.xor=function(A){for(var I=Math.max(this.g.length,A.g.length),R=[],x=0;x<I;x++)R[x]=this.i(x)^A.i(x);return new s(R,this.h^A.h)};function C(A){for(var I=A.g.length+1,R=[],x=0;x<I;x++)R[x]=A.i(x)<<1|A.i(x-1)>>>31;return new s(R,A.h)}function L(A,I){var R=I>>5;I%=32;for(var x=A.g.length-R,D=[],S=0;S<x;S++)D[S]=0<I?A.i(S+R)>>>I|A.i(S+R+1)<<32-I:A.i(S+R);return new s(D,A.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,pS=r,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=l,s.fromString=u,Da=s}).apply(typeof VT<"u"?VT:typeof self<"u"?self:typeof window<"u"?window:{});var Vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 493Copyright The Closure Library Authors. 494SPDX-License-Identifier: Apache-2.0 495*/var _S,pu,mS,lf,Ig,gS,yS,vS;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(h,b,P){return h==Array.prototype||h==Object.prototype||(h[b]=P.value),h};function n(h){h=[typeof globalThis=="object"&&globalThis,h,typeof window=="object"&&window,typeof self=="object"&&self,typeof Vh=="object"&&Vh];for(var b=0;b<h.length;++b){var P=h[b];if(P&&P.Math==Math)return P}throw Error("Cannot find global object")}var r=n(this);function o(h,b){if(b)e:{var P=r;h=h.split(".");for(var V=0;V<h.length-1;V++){var Q=h[V];if(!(Q in P))break e;P=P[Q]}h=h[h.length-1],V=P[h],b=b(V),b!=V&&b!=null&&e(P,h,{configurable:!0,writable:!0,value:b})}}function i(h,b){h instanceof String&&(h+="");var P=0,V=!1,Q={next:function(){if(!V&&P<h.length){var oe=P++;return{value:b(oe,h[oe]),done:!1}}return V=!0,{done:!0,value:void 0}}};return Q[Symbol.iterator]=function(){return Q},Q}o("Array.prototype.values",function(h){return h||function(){return i(this,function(b,P){return P})}});/** @license 496 497 Copyright The Closure Library Authors. 498 SPDX-License-Identifier: Apache-2.0 499*/var s=s||{},a=this||self;function c(h){var b=typeof h;return b=b!="object"?b:h?Array.isArray(h)?"array":b:"null",b=="array"||b=="object"&&typeof h.length=="number"}function l(h){var b=typeof h;return b=="object"&&h!=null||b=="function"}function u(h,b,P){return h.call.apply(h.bind,arguments)}function d(h,b,P){if(!h)throw Error();if(2<arguments.length){var V=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Q,V),h.apply(b,Q)}}return function(){return h.apply(b,arguments)}}function f(h,b,P){return f=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?u:d,f.apply(null,arguments)}
499function _(h,b){var P=Array.prototype.slice.call(arguments,1);return function(){var V=P.slice();return V.push.apply(V,arguments),h.apply(this,V)}}function m(h,b){function P(){}P.prototype=b.prototype,h.aa=b.prototype,h.prototype=new P,h.prototype.constructor=h,h.Qb=function(V,Q,oe){for(var Ee=Array(arguments.length-2),yt=2;yt<arguments.length;yt++)Ee[yt-2]=arguments[yt];return b.prototype[Q].apply(V,Ee)}}function y(h){const b=h.length;if(0<b){const P=Array(b);for(let V=0;V<b;V++)P[V]=h[V];return P}return[]}function v(h,b){for(let P=1;P<arguments.length;P++){const V=arguments[P];if(c(V)){const Q=h.length||0,oe=V.length||0;h.length=Q+oe;for(let Ee=0;Ee<oe;Ee++)h[Q+Ee]=V[Ee]}else h.push(V)}}class T{constructor(b,P){this.i=b,this.j=P,this.h=0,this.g=null}get(){let b;return 0<this.h?(this.h--,b=this.g,this.g=b.next,b.next=null):b=this.i(),b}}function w(h){return/^[\s\xa0]*$/.test(h)}function g(){var h=a.navigator;return h&&(h=h.userAgent)?h:""}function E(h){return E[" "](h),h}E[" "]=function(){};var C=g().indexOf("Gecko")!=-1&&!(g().toLowerCase().indexOf("webkit")!=-1&&g().indexOf("Edge")==-1)&&!(g().indexOf("Trident")!=-1||g().indexOf("MSIE")!=-1)&&g().indexOf("Edge")==-1;function L(h,b,P){for(const V in h)b.call(P,h[V],V,h)}function A(h,b){for(const P in h)b.call(void 0,h[P],P,h)}function I(h){const b={};for(const P in h)b[P]=h[P];return b}const R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function x(h,b){let P,V;for(let Q=1;Q<arguments.length;Q++){V=arguments[Q];for(P in V)h[P]=V[P];for(let oe=0;oe<R.length;oe++)P=R[oe],Object.prototype.hasOwnProperty.call(V,P)&&(h[P]=V[P])}}function D(h){var b=1;h=h.split(":");const P=[];for(;0<b&&h.length;)P.push(h.shift()),b--;return h.length&&P.push(h.join(":")),P}function S(h){a.setTimeout(()=>{throw h},0)}function O(){var h=ce;let b=null;return h.g&&(b=h.g,h.g=h.g.next,h.g||(h.h=null),b.next=null),b}class ae{constructor(){this.h=this.g=null}add(b,P){const V=le.get();V.set(b,P),this.h?this.h.next=V:this.g=V,this.h=V}}var le=new T(()=>new B,h=>h.reset());class B{constructor(){this.next=this.g=this.h=null}set(b,P){this.h=b,this.g=P,this.next=null}reset(){this.next=this.g=this.h=null}}let j,H=!1,ce=new ae,ue=()=>{const h=a.Promise.resolve(void 0);j=()=>{h.then(W)}};var W=()=>{for(var h;h=O();){try{h.h.call(h.g)}catch(P){S(P)}var b=le;b.j(h),100>b.h&&(b.h++,h.next=b.g,b.g=h)}H=!1};function J(){this.s=this.s,this.C=this.C}J.prototype.s=!1,J.prototype.ma=function(){this.s||(this.s=!0,this.N())},J.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function ee(h,b){this.type=h,this.g=this.target=b,this.defaultPrevented=!1}ee.prototype.h=function(){this.defaultPrevented=!0};var ne=(function(){if(!a.addEventListener||!Object.defineProperty)return!1;var h=!1,b=Object.defineProperty({},"passive",{get:function(){h=!0}});try{const P=()=>{};a.addEventListener("test",P,b),a.removeEventListener("test",P,b)}catch{}return h})();function q(h,b){if(ee.call(this,h?h.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,h){var P=this.type=h.type,V=h.changedTouches&&h.
vendor: 35,668 bytes, lines 499-507
499changedTouches.length?h.changedTouches[0]:null;if(this.target=h.target||h.srcElement,this.g=b,b=h.relatedTarget){if(C){e:{try{E(b.nodeName);var Q=!0;break e}catch{}Q=!1}Q||(b=null)}}else P=="mouseover"?b=h.fromElement:P=="mouseout"&&(b=h.toElement);this.relatedTarget=b,V?(this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0):(this.clientX=h.clientX!==void 0?h.clientX:h.pageX,this.clientY=h.clientY!==void 0?h.clientY:h.pageY,this.screenX=h.screenX||0,this.screenY=h.screenY||0),this.button=h.button,this.key=h.key||"",this.ctrlKey=h.ctrlKey,this.altKey=h.altKey,this.shiftKey=h.shiftKey,this.metaKey=h.metaKey,this.pointerId=h.pointerId||0,this.pointerType=typeof h.pointerType=="string"?h.pointerType:be[h.pointerType]||"",this.state=h.state,this.i=h,h.defaultPrevented&&q.aa.h.call(this)}}m(q,ee);var be={2:"touch",3:"pen",4:"mouse"};q.prototype.h=function(){q.aa.h.call(this);var h=this.i;h.preventDefault?h.preventDefault():h.returnValue=!1};var Y="closure_listenable_"+(1e6*Math.random()|0),ie=0;function he(h,b,P,V,Q){this.listener=h,this.proxy=null,this.src=b,this.type=P,this.capture=!!V,this.ha=Q,this.key=++ie,this.da=this.fa=!1}function ge(h){h.da=!0,h.listener=null,h.proxy=null,h.src=null,h.ha=null}function K(h){this.src=h,this.g={},this.h=0}K.prototype.add=function(h,b,P,V,Q){var oe=h.toString();h=this.g[oe],h||(h=this.g[oe]=[],this.h++);var Ee=k(h,b,V,Q);return-1<Ee?(b=h[Ee],P||(b.fa=!1)):(b=new he(b,this.src,oe,!!V,Q),b.fa=P,h.push(b)),b};function pe(h,b){var P=b.type;if(P in h.g){var V=h.g[P],Q=Array.prototype.indexOf.call(V,b,void 0),oe;(oe=0<=Q)&&Array.prototype.splice.call(V,Q,1),oe&&(ge(b),h.g[P].length==0&&(delete h.g[P],h.h--))}}function k(h,b,P,V){for(var Q=0;Q<h.length;++Q){var oe=h[Q];if(!oe.da&&oe.listener==b&&oe.capture==!!P&&oe.ha==V)return Q}return-1}var F="closure_lm_"+(1e6*Math.random()|0),$={};function se(h,b,P,V,Q){if(Array.isArray(b)){for(var oe=0;oe<b.length;oe++)se(h,b[oe],P,V,Q);return null}return P=Z(P),h&&h[Y]?h.K(b,P,l(V)?!!V.capture:!1,Q):G(h,b,P,!1,V,Q)}function G(h,b,P,V,Q,oe){if(!b)throw Error("Invalid event type");var Ee=l(Q)?!!Q.capture:!!Q,yt=fe(h);if(yt||(h[F]=yt=new K(h)),P=yt.add(b,P,V,Ee,oe),P.proxy)return P;if(V=N(),P.proxy=V,V.src=h,V.listener=P,h.addEventListener)ne||(Q=Ee),Q===void 0&&(Q=!1),h.addEventListener(b.toString(),V,Q);else if(h.attachEvent)h.attachEvent(X(b.toString()),V);else if(h.addListener&&h.removeListener)h.addListener(V);else throw Error("addEventListener and attachEvent are unavailable.");return P}function N(){function h(P){return b.call(h.src,h.listener,P)}const b=re;return h}function M(h,b,P,V,Q){if(Array.isArray(b))for(var oe=0;oe<b.length;oe++)M(h,b[oe],P,V,Q);else V=l(V)?!!V.capture:!!V,P=Z(P),h&&h[Y]?(h=h.i,b=String(b).toString(),b in h.g&&(oe=h.g[b],P=k(oe,P,V,Q),-1<P&&(ge(oe[P]),Array.prototype.splice.call(oe,P,1),oe.length==0&&(delete h.g[b],h.h--)))):h&&(h=fe(h))&&(b=h.g[b.toString()],h=-1,b&&(h=k(b,P,V,Q)),(P=-1<h?b[h]:null)&&z(P))}function z(h){if(typeof h!="number"&&h&&!h.da){var b=h.src;if(b&&b[Y])pe(b.i,h);else{var P=h.type,V=h.proxy;b.removeEventListener?b.removeEventListener(P,V,h.capture):b.detachEvent?b.detachEvent(X(P),V):b.addListener&&b.removeListener&&b.removeListener(V),(P=fe(b))?(pe(P,h),P.h==0&&(P.src=null,b[F]=null)):ge(h)}}}function X(h){return h in $?$[h]:$[h]="on"+h}function re(h,b){if(h.da)h=!0;else{b=new q(b,this);var P=h.listener,V=h.ha||h.src;h.fa&&z(h),h=P.call(V,b)}return h}function fe(h){return h=h[F],h instanceof K?h:null}var U="__closure_events_fn_"+(1e9*Math.random()>>>0);function Z(h){return typeof h=="function"?h:(h[U]||(h[U]=function(b){return h.handleEvent(b)}),h[U])}function _e(){J.call(this),this.i=new K(this),this.M=this,this.F=null}m(_e,J),_e.prototype[Y]=!0,_e.prototype.removeEventListener=function(h,b,P,V){M(this,h,b,P,V)};function ve(h,b){var P,V=h.F;if(V)for(P=[];V;V=V.F)P.push(V);if(h=h.M,V=b.type||b,typeof b=="string")b=new ee(b,h);else if(b instanceof ee)b.target=b.target||h;else{var Q=b;b=new ee(V,h),x(b,Q)}if(Q=!0,P)for(var oe=P.length-1;0<=oe;oe--){var Ee=b.g=P[oe];Q=Ne(Ee,V,!0,b)&&Q}if(Ee=b.g=h,Q=Ne(Ee,V,!0,b)&&Q,Q=Ne(Ee,V,!1,b)&&Q,P)for(oe=0;oe<P.length;oe++)Ee=b.g=P[oe],Q=Ne(Ee,V,!1,b)&&Q}_e.prototype.N=function(){if(_e.aa.N.call(this),this.i){var h=this.i,b;for(b in h.g){for(var P=h.g[b],V=0;V<P.length;V++)ge(P[V]);delete h.g[b],h.h--}}this.F=null},_e.prototype.K=function(h,b,P,V){return this.i.add(String(h),b,!1,P,V)},_e.prototype.L=function(h,b,P,V){return this.i.add(String(h),b,!0,P,V)};function Ne(h,b,P,V){if(b=h.i.g[String(b)],!b)return!0;b=b.concat();for(var Q=!0,oe=0;oe<b.length;++oe){var Ee=b[oe];if(Ee&&!Ee.da&&Ee.capture==P){var yt=Ee.listener,ln=Ee.ha||Ee.src;Ee.fa&&pe(h.i,Ee),Q=yt.call(ln,V)!==!1&&Q}}return Q&&!V.defaultPrevented}function Me(h,b,P){if(typeof h=="function")P&&(h=f(h,P));else if(h&&typeof h.handleEvent=="function")h=f(h.handleEvent,h);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:a.setTimeout(h,b||0)}function it(h){h.g=Me(()=>{h.g=null,h.i&&(h.i=!1,it(h))},h.l);const b=h.h;h.h=null,h.m.apply(null,b)}class st extends J{constructor(b,P){super(),this.m=b,this.l=P,this.h=null,this.i=!1,this.g=null}j(b){this.h=arguments,this.g?this.i=!0:it(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function gt(h){J.call(this),this.h=h,this.g={}}m(gt,J);var Vt=[];function an(h){L(h.g,function(b,P){this.g.hasOwnProperty(P)&&z(b)},h),h.g={}}gt.prototype.N=function(){gt.aa.N.call(this),an(this)},gt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Nn=a.JSON.stringify,Ot=a.JSON.parse,jn=class{stringify(h){return a.JSON.stringify(h,void 0)}parse(h){return a.JSON.parse(h,void 0)}};function wi(){}wi.prototype.h=null;function na(h){return h.h||(h.h=h.i())}function Ml(){}var ra={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function uc(){ee.call(this,"d")}m(uc,ee);function Bl(){ee.call(this,"c")}m(Bl,ee);var Ti={},ah=null;function oa(){return ah=ah||new _e}Ti.La="serverreachability";function ch(h){ee.call(this,Ti.La,h)}m(ch,ee);function ia(h){const b=oa();ve(b,new ch(b))}Ti.STAT_EVENT="statevent";function Ul(h,b){ee.call(this,Ti.STAT_EVENT,h),this.stat=b}m(Ul,ee);function cn(h){const b=oa();ve(b,new Ul(b,h))}Ti.Ma="timingevent";function $l(h,b){ee.call(this,Ti.Ma,h),this.size=b}m($l,ee);function Qt(h,b){if(typeof h!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){h()},b)}function Hn(){this.g=!0}Hn.prototype.xa=function(){this.g=!1};function lh(h,b,P,V,Q,oe){h.info(function(){if(h.g)if(oe)for(var Ee="",yt=oe.split("&"),ln=0;ln<yt.length;ln++){var Ze=yt[ln].split("=");if(1<Ze.length){var yn=Ze[0];Ze=Ze[1];var vn=yn.split("_");Ee=2<=vn.length&&vn[1]=="type"?Ee+(yn+"="+Ze+"&"):Ee+(yn+"=redacted&")}}else Ee=null;else Ee=oe;return"XMLHTTP REQ ("+V+") [attempt "+Q+"]: "+b+` 500`+P+` 501`+Ee})}function Lm(h,b,P,V,Q,oe,Ee){h.info(function(){return"XMLHTTP RESP ("+V+") [ attempt "+Q+"]: "+b+` 502`+P+` 503`+oe+" "+Ee})}function dc(h,b,P,V){h.info(function(){return"XMLHTTP TEXT ("+b+"): "+V2(h,P)+(V?" "+V:"")})}function N2(h,b){h.info(function(){return"TIMEOUT: "+b})}Hn.prototype.info=function(){};function V2(h,b){if(!h.g)return b;if(!b)return null;try{var P=JSON.parse(b);if(P){for(h=0;h<P.length;h++)if(Array.isArray(P[h])){var V=P[h];if(!(2>V.length)){var Q=V[1];if(Array.isArray(Q)&&!(1>Q.length)){var oe=Q[0];if(oe!="noop"&&oe!="stop"&&oe!="close")for(var Ee=1;Ee<Q.length;Ee++)Q[Ee]=""}}}}return Nn(P)}catch{return b}}var uh={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},jb={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},km;function dh(){}m(dh,wi),dh.prototype.g=function(){return new XMLHttpRequest},dh.prototype.i=function(){return{}},km=new dh;function fs(h,b,P,V){this.j=h,this.i=b,this.l=P,this.R=V||1,this.U=new gt(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Hb}function Hb(){this.i=null,this.g="",this.h=!1}var zb={},Nm={};function Vm(h,b,P){h.L=1,h.v=_h(Ai(b)),h.m=P,h.P=!0,qb(h,null)}function qb(h,b){h.F=Date.now(),hh(h),h.A=Ai(h.v);var P=h.A,V=h.R;Array.isArray(V)||(V=[String(V)]),iw(P.i,"t",V),h.C=0,P=h.j.J,h.h=new Hb,h.g=Tw(h.j,P?b:null,!h.m),0<h.O&&(h.M=new st(f(h.Y,h,h.g),h.O)),b=h.U,P=h.g,V=h.ca;var Q="readystatechange";Array.isArray(Q)||(Q&&(Vt[0]=Q.toString()),Q=Vt);for(var oe=0;oe<Q.length;oe++){var Ee=se(P,Q[oe],V||b.handleEvent,!1,b.h||b);if(!Ee)break;b.g[Ee.key]=Ee}b=h.H?I(h.H):{},h.m?(h.u||(h.u="POST"),b["Content-Type"]="application/x-www-form-urlencoded",h.g.ea(h.A,h.u,h.m,b)):(h.u="GET",h.g.ea(h.A,h.u,null,b)),ia(),lh(h.i,h.u,h.A,h.l,h.R,h.m)}fs.prototype.ca=function(h){h=h.target;const b=this.M;b&&xi(h)==3?b.j():this.Y(h)},fs.prototype.Y=function(h){try{if(h==this.g)e:{const vn=xi(this.g);var b=this.g.Ba();const pc=this.g.Z();if(!(3>vn)&&(vn!=3||this.g&&(this.h.h||this.g.oa()||hw(this.g)))){this.J||vn!=4||b==7||(b==8||0>=pc?ia(3):ia(2)),Fm(this);var P=this.g.Z();this.X=P;t:if(Wb(this)){var V=hw(this.g);h="";var Q=V.length,oe=xi(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){sa(this),jl(this);var Ee="";break t}this.h.i=new a.TextDecoder}for(b=0;b<Q;b++)this.h.h=!0,h+=this.h.i.decode(V[b],{stream:!(oe&&b==Q-1)});V.length=0,this.h.g+=h,this.C=0,Ee=this.h.g}else Ee=this.g.oa();if(this.o=P==200,Lm(this.i,this.u,this.A,this.l,this.R,vn,P),this.o){if(this.T&&!this.K){t:{if(this.g){var yt,ln=this.g;if((yt=ln.g?ln.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!w(yt)){var Ze=yt;break t}}Ze=null}if(P=Ze)dc(this.i,this.l,P,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Mm(this,P);else{this.o=!1,this.s=3,cn(12),sa(this),jl(this);break e}}if(this.P){P=!0;let wr;for(;!this.J&&this.C<Ee.length;)if(wr=F2(this,Ee),wr==Nm){vn==4&&(this.s=4,cn(14),P=!1),dc(this.i,this.l,null,"[Incomplete Response]");break}else if(wr==zb){this.s=4,cn(15),dc(this.i,this.l,Ee,"[Invalid Chunk]"),P=!1;break}else dc(this.i,this.l,wr,null),Mm(this,wr);if(Wb(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),vn!=4||Ee.length!=0||this.h.h||(this.s=1,cn(16),P=!1),this.o=this.o&&P,!P)dc(this.i,this.l,Ee,"[Invalid Chunked Response]"),sa(this),jl(this);else if(0<Ee.length&&!this.W){this.W=!0;var yn=this.j;yn.g==this&&yn.ba&&!yn.M&&(yn.j.info("Great, no buffering proxy detected. Bytes received: "+Ee.length),zm(yn),yn.M=!0,cn(11))}}else dc(this.i,this.l,Ee,null),Mm(this,Ee);vn==4&&sa(this),this.o&&!this.J&&(vn==4?vw(this.j,this):(this.o=!1,hh(this)))}else eV(this.g),P==400&&0<Ee.indexOf("Unknown SID")?(this.s=3,cn(12)):(this.s=0,cn(13)),sa(this),jl(this)}}}catch{}finally{}};function Wb(h){return h.g?h.u=="GET"&&h.L!=2&&h.j.Ca:!1}function F2(h,b){var P=h.C,V=b.indexOf(` 504`,P);return V==-1?Nm:(P=Number(b.substring(P,V)),isNaN(P)?zb:(V+=1,V+P>b.length?Nm:(b=b.slice(V,V+P),h.C=V+P,b)))}fs.prototype.cancel=function(){this.J=!0,sa(this)};function hh(h){h.S=Date.now()+h.I,Kb(h,h.I)}function Kb(h,b){if(h.B!=null)throw Error("WatchDog timer not null");h.B=Qt(f(h.ba,h),b)}function Fm(h){h.B&&(a.clearTimeout(h.B),h.B=null)}fs.prototype.ba=function(){this.B=null;const h=Date.now();0<=h-this.S?(N2(this.i,this.A),this.L!=2&&(ia(),cn(17)),sa(this),this.s=2,jl(this)):Kb(this,this.S-h)};function jl(h){h.j.G==0||h.J||vw(h.j,h)}function sa(h){Fm(h);var b=h.M;b&&typeof b.ma=="function"&&b.ma(),h.M=null,an(h.U),h.g&&(b=h.g,h.g=null,b.abort(),b.ma())}function Mm(h,b){try{var P=h.j;if(P.G!=0&&(P.g==h||Bm(P.h,h))){if(!h.K&&Bm(P.h,h)&&P.G==3){try{var V=P.Da.g.parse(b)}catch{V=null}if(Array.isArray(V)&&V.length==3){var Q=V;if(Q[0]==0){e:if(!P.u){if(P.g)if(P.g.F+3e3<h.F)bh(P),vh(P);else break e;Hm(P),cn(18)}}else P.za=Q[1],0<P.za-P.T&&37500>Q[2]&&P.F&&P.v==0&&!P.C&&(P.C=Qt(f(P.Za,P),6e3));if(1>=Yb(P.h)&&P.ca){try{P.ca()}catch{}P.ca=void 0}}else ca(P,11)}else if((h.K||P.g==h)&&bh(P),!w(b))for(Q=P.Da.g.parse(b),b=0;b<Q.length;b++){let Ze=Q[b];if(P.T=Ze[0],Ze=Ze[1],P.G==2)if(Ze[0]=="c"){P.K=Ze[1],P.ia=Ze[2];const yn=Ze[3];yn!=null&&(P.la=yn,P.j.info("VER="+P.la));const vn=Ze[4];vn!=null&&(P.Aa=vn,P.j.info("SVER="+P.Aa));const pc=Ze[5];pc!=null&&typeof pc=="number"&&0<pc&&(V=1.5*pc,P.L=V,P.j.info("backChannelRequestTimeoutMs_="+V)),V=P;const wr=h.g;if(wr){const Th=wr.g?wr.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Th){var oe=V.h;oe.g||Th.indexOf("spdy")==-1&&Th.indexOf("quic")==-1&&Th.indexOf("h2")==-1||(oe.j=oe.l,oe.g=new Set,oe.h&&(Um(oe,oe.h),oe.h=null))}if(V.D){const qm=wr.g?wr.g.getResponseHeader("X-HTTP-Session-Id"):null;qm&&(V.ya=qm,wt(V.I,V.D,qm))}}P.G=3,P.l&&P.l.ua(),P.ba&&(P.R=Date.now()-h.F,P.j.info("Handshake RTT: "+P.R+"ms")),V=P;var Ee=h;if(V.qa=ww(V,V.J?V.ia:null,V.W),Ee.K){Xb(V.h,Ee);var yt=Ee,ln=V.L;ln&&(yt.I=ln),yt.B&&(Fm(yt),hh(yt)),V.g=Ee}else gw(V);0<P.i.length&&Eh(P)}else Ze[0]!="stop"&&Ze[0]!="close"||ca(P,7);else P.G==3&&(Ze[0]=="stop"||Ze[0]=="close"?Ze[0]=="stop"?ca(P,7):jm(P):Ze[0]!="noop"&&P.l&&P.l.ta(Ze),P.v=0)}}ia(4)}catch{}}var M2=class{constructor(h,b){this.g=h,this.map=b}};function Gb(h){this.l=h||10,a.PerformanceNavigationTiming?(h=a.performance.getEntriesByType("navigation"),h=0<h.length&&(h[0].nextHopProtocol=="hq"||h[0].nextHopProtocol=="h2")):h=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=h?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Qb(h){return h.h?!0:h.g?h.g.size>=h.j:!1}function Yb(h){return h.h?1:h.g?h.g.size:0}function Bm(h,b){return h.h?h.h==b:h.g?h.g.has(b):!1}function Um(h,b){h.g?h.g.add(b):h.h=b}function Xb(h,b){h.h&&h.h==b?h.h=null:h.g&&h.g.has(b)&&h.g.delete(b)}Gb.prototype.cancel=function(){if(this.i=Jb(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const h of this.g.values())h.cancel();this.g.clear()}};function Jb(h){if(h.h!=null)return h.i.concat(h.h.D);if(h.g!=null&&h.g.size!==0){let b=h.i;for(const P of h.g.values())b=b.concat(P.D);return b}return y(h.i)}function B2(h){if(h.V&&typeof h.V=="function")return h.V();if(typeof Map<"u"&&h instanceof Map||typeof Set<"u"&&h instanceof Set)return Array.from(h.values());if(typeof h=="string")return h.split("");if(c(h)){for(var b=[],P=h.length,V=0;V<P;V++)b.push(h[V]);return b}b=[],P=0;for(V in h)b[P++]=h[V];return b}function U2(h){if(h.na&&typeof h.na=="function")return h.na();if(!h.V||typeof h.V!="function"){if(typeof Map<"u"&&h instanceof Map)return Array.from(h.keys());if(!(typeof Set<"u"&&h instanceof Set)){if(c(h)||typeof h=="string"){var b=[];h=h.length;for(var P=0;P<h;P++)b.push(P);return b}b=[],P=0;for(const V in h)b[P++]=V;return b}}}function Zb(h,b){if(h.forEach&&typeof h.forEach=="function")h.forEach(b,void 0);else if(c(h)||typeof h=="string")Array.prototype.forEach.call(h,b,void 0);else for(var P=U2(h),V=B2(h),Q=V.length,oe=0;oe<Q;oe++)b.call(void 0,V[oe],P&&P[oe],h)}var ew=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function $2(h,b){if(h){h=h.split("&");for(var P=0;P<h.length;P++){var V=h[P].indexOf("="),Q=null;if(0<=V){var oe=h[P].substring(0,V);Q=h[P].substring(V+1)}else oe=h[P];b(oe,Q?decodeURIComponent(Q.replace(/\+/g," ")):"")}}}function aa(h){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,h instanceof aa){this.h=h.h,fh(this,h.j),this.o=h.o,this.g=h.g,ph(this,h.s),this.l=h.l;var b=h.i,P=new ql;P.i=b.i,b.g&&(P.g=new Map(b.g),P.h=b.h),tw(this,P),this.m=h.m}else h&&(b=String(h).match(ew))?(this.h=!1,fh(this,b[1]||"",!0),this.o=Hl(b[2]||""),this.g=Hl(b[3]||"",!0),ph(this,b[4]),this.l=Hl(b[5]||"",!0),tw(this,b[6]||"",!0),this.m=Hl(b[7]||"")):(this.h=!1,this.i=new ql(null,this.h))}aa.prototype.toString=function(){var h=[],b=this.j;b&&h.push(zl(b,nw,!0),":");var P=this.g;return(P||b=="file")&&(h.push("//"),(b=this.o)&&h.push(zl(b,nw,!0),"@"),h.push(encodeURIComponent(String(P)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),P=this.s,P!=null&&h.push(":",String(P))),(P=this.l)&&(this.g&&P.charAt(0)!="/"&&h.push("/"),h.push(zl(P,P.charAt(0)=="/"?z2:H2,!0))),(P=this.i.toString())&&h.push("?",P),(P=this.m)&&h.push("#",zl(P,W2)),h.join("")};function Ai(h){return new aa(h)}function fh(h,b,P){h.j=P?Hl(b,!0):b,h.j&&(h.j=h.j.replace(/:$/,""))}function ph(h,b){if(b){if(b=Number(b),isNaN(b)||0>b)throw Error("Bad port number "+b);h.s=b}else h.s=null}function tw(h,b,P){b instanceof ql?(h.i=b,K2(h.i,h.h)):(P||(b=zl(b,q2)),h.i=new ql(b,h.h))}function wt(h,b,P){h.i.set(b,P)}function _h(h){return wt(h,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),h}function Hl(h,b){return h?b?decodeURI(h.replace(/%25/g,"%2525")):decodeURIComponent(h):""}function zl(h,b,P){return typeof h=="string"?(h=encodeURI(h).replace(b,j2),P&&(h=h.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h):null}function j2(h){return h=h.charCodeAt(0),"%"+(h>>4&15).toString(16)+(h&15).toString(16)}var nw=/[#\/\?@]/g,H2=/[#\?:]/g,z2=/[#\?]/g,q2=/[#\?@]/g,W2=/#/g;function ql(h,b){this.h=this.g=null,this.i=h||null,this.j=!!b}function ps(h){h.g||(h.g=new Map,h.h=0,h.i&&$2(h.i,function(b,P){h.add(decodeURIComponent(b.replace(/\+/g," ")),P)}))}t=ql.prototype,t.add=function(h,b){ps(this),this.i=null,h=hc(this,h);var P=this.g.get(h);return P||this.g.set(h,P=[]),P.push(b),this.h+=1,this};function rw(h,b){ps(h),b=hc(h,b),h.g.has(b)&&(h.i=null,h.h-=h.g.get(b).length,h.g.delete(b))}function ow(h,b){return ps(h),b=hc(h,b),h.g.has(b)}t.forEach=function(h,b){ps(this),this.g.forEach(function(P,V){P.forEach(function(Q){h.call(b,Q,V,this)},this)},this)},t.na=function(){ps(this);const h=Array.from(this.g.values()),b=Array.from(this.g.keys()),P=[];for(let V=0;V<b.length;V++){const Q=h[V];for(let oe=0;oe<Q.length;oe++)P.push(b[V])}return P},t.V=function(h){ps(this);let b=[];if(typeof h=="string")ow(this,h)&&(b=b.concat(this.g.get(hc(this,h))));else{h=Array.from(this.g.values());for(let P=0;P<h.length;P++)b=b.concat(h[P])}return b},t.set=function(h,b){return ps(this),this.i=null,h=hc(this,h),ow(this,h)&&(this.h-=this.g.get(h).length),this.g.set(h,[b]),this.h+=1,this},t.get=function(h,b){return h?(h=this.V(h),0<h.length?String(h[0]):b):b};function iw(h,b,P){rw(h,b),0<P.length&&(h.i=null,h.g.set(hc(h,b),y(P)),h.h+=P.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const h=[],b=Array.from(this.g.keys());for(var P=0;P<b.length;P++){var V=b[P];const oe=encodeURIComponent(String(V)),Ee=this.V(V);for(V=0;V<Ee.length;V++){var Q=oe;Ee[V]!==""&&(Q+="="+encodeURIComponent(String(Ee[V]))),h.push(Q)}}return this.i=h.join("&")};function hc(h,b){return b=String(b),h.j&&(b=b.toLowerCase()),b}function K2(h,b){b&&!h.j&&(ps(h),h.i=null,h.g.forEach(function(P,V){var Q=V.toLowerCase();V!=Q&&(rw(this,V),iw(this,Q,P))},h)),h.j=b}function G2(h,b){const P=new Hn;if(a.Image){const V=new Image;V.onload=_(_s,P,"TestLoadImage: loaded",!0,b,V),V.onerror=_(_s,P,"TestLoadImage: error",!1,b,V),V.onabort=_(_s,P,"TestLoadImage: abort",!1,b,V),V.ontimeout=_(_s,P,"TestLoadImage: timeout",!1,b,V),a.setTimeout(function(){V.ontimeout&&V.ontimeout()},1e4),V.src=h}else b(!1)}function Q2(h,b){const P=new Hn,V=new AbortController,Q=setTimeout(()=>{V.abort(),_s(P,"TestPingServer: timeout",!1,b)},1e4);fetch(h,{signal:V.signal}).then(oe=>{clearTimeout(Q),oe.ok?_s(P,"TestPingServer: ok",!0,b):_s(P,"TestPingServer: server error",!1,b)}).catch(()=>{clearTimeout(Q),_s(P,"TestPingServer: error",!1,b)})}function _s(h,b,P,V,Q){try{Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),V(P)}catch{}}function Y2(){this.g=new jn}function X2(h,b,P){const V=P||"";try{Zb(h,function(Q,oe){let Ee=Q;l(Q)&&(Ee=Nn(Q)),b.push(V+oe+"="+encodeURIComponent(Ee))})}catch(Q){throw b.push(V+"type="+encodeURIComponent("_badmap")),Q}}function mh(h){this.l=h.Ub||null,this.j=h.eb||!1}m(mh,wi),mh.prototype.g=function(){return new gh(this.l,this.j)},mh.prototype.i=(function(h){return function(){return h}})({});function gh(h,b){_e.call(this),this.D=h,this.o=b,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}m(gh,_e),t=gh.prototype,t.open=function(h,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=h,this.A=b,this.readyState=1,Kl(this)},t.send=function(h){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const b={headers:this.u,method:this.B,credentials:this.m,cache:void 0};h&&(b.body=h),(this.D||a).fetch(new Request(this.A,b)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=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,Wl(this)),this.readyState=0},t.Sa=function(h){if(this.g&&(this.l=h,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=h.headers,this.readyState=2,Kl(this)),this.g&&(this.readyState=3,Kl(this),this.g)))if(this.responseType==="arraybuffer")h.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in h){if(this.j=h.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;sw(this)}else h.text().then(this.Ra.bind(this),this.ga.bind(this))};function sw(h){h.j.read().then(h.Pa.bind(h)).catch(h.ga.bind(h))}t.Pa=function(h){if(this.g){if(this.o&&h.value)this.response.push(h.value);else if(!this.o){var b=h.value?h.value:new Uint8Array(0);(b=this.v.decode(b,{stream:!h.done}))&&(this.response=this.responseText+=b)}h.done?Wl(this):Kl(this),this.readyState==3&&sw(this)}},t.Ra=function(h){this.g&&(this.response=this.responseText=h,Wl(this))},t.Qa=function(h){this.g&&(this.response=h,Wl(this))},t.ga=function(){this.g&&Wl(this)};function Wl(h){h.readyState=4,h.l=null,h.j=null,h.v=null,Kl(h)}t.setRequestHeader=function(h,b){this.u.append(h,b)},t.getResponseHeader=function(h){return this.h&&this.h.get(h.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const h=[],b=this.h.entries();for(var P=b.next();!P.done;)P=P.value,h.push(P[0]+": "+P[1]),P=b.next();return h.join(`\r 505`)};function Kl(h){h.onreadystatechange&&h.onreadystatechange.call(h)}Object.defineProperty(gh.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(h){this.m=h?"include":"same-origin"}});function aw(h){let b="";return L(h,function(P,V){b+=V,b+=":",b+=P,b+=`\r 506`}),b}function $m(h,b,P){e:{for(V in P){var V=!1;break e}V=!0}V||(P=aw(P),typeof h=="string"?P!=null&&encodeURIComponent(String(P)):wt(h,b,P))}function Lt(h){_e.call(this),this.headers=new Map,this.o=h||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}m(Lt,_e);var J2=/^https?$/i,Z2=["POST","PUT"];t=Lt.prototype,t.Ha=function(h){this.J=h},t.ea=function(h,b,P,V){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+h);b=b?b.toUpperCase():"GET",this.D=h,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():km.g(),this.v=this.o?na(this.o):na(km),this.g.onreadystatechange=f(this.Ea,this);try{this.B=!0,this.g.open(b,String(h),!0),this.B=!1}catch(oe){cw(this,oe);return}if(h=P||"",P=new Map(this.headers),V)if(Object.getPrototypeOf(V)===Object.prototype)for(var Q in V)P.set(Q,V[Q]);else if(typeof V.keys=="function"&&typeof V.get=="function")for(const oe of V.keys())P.set(oe,V.get(oe));else throw Error("Unknown input type for opt_headers: "+String(V));V=Array.from(P.keys()).find(oe=>oe.toLowerCase()=="content-type"),Q=a.FormData&&h instanceof a.FormData,!(0<=Array.prototype.indexOf.call(Z2,b,void 0))||V||Q||P.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[oe,Ee]of P)this.g.setRequestHeader(oe,Ee);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{dw(this),this.u=!0,this.g.send(h),this.u=!1}catch(oe){cw(this,oe)}};function cw(h,b){h.h=!1,h.g&&(h.j=!0,h.g.abort(),h.j=!1),h.l=b,h.m=5,lw(h),yh(h)}function lw(h){h.A||(h.A=!0,ve(h,"complete"),ve(h,"error"))}t.abort=function(h){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=h||7,ve(this,"complete"),ve(this,"abort"),yh(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),yh(this,!0)),Lt.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?uw(this):this.bb())},t.bb=function(){uw(this)};function uw(h){if(h.h&&typeof s<"u"&&(!h.v[1]||xi(h)!=4||h.Z()!=2)){if(h.u&&xi(h)==4)Me(h.Ea,0,h);else if(ve(h,"readystatechange"),xi(h)==4){h.h=!1;try{const Ee=h.Z();e:switch(Ee){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break e;default:b=!1}var P;if(!(P=b)){var V;if(V=Ee===0){var Q=String(h.D).match(ew)[1]||null;!Q&&a.self&&a.self.location&&(Q=a.self.location.protocol.slice(0,-1)),V=!J2.test(Q?Q.toLowerCase():"")}P=V}if(P)ve(h,"complete"),ve(h,"success");else{h.m=6;try{var oe=2<xi(h)?h.g.statusText:""}catch{oe=""}h.l=oe+" ["+h.Z()+"]",lw(h)}}finally{yh(h)}}}}function yh(h,b){if(h.g){dw(h);const P=h.g,V=h.v[0]?()=>{}:null;h.g=null,h.v=null,b||ve(h,"ready");try{P.onreadystatechange=V}catch{}}}function dw(h){h.I&&(a.clearTimeout(h.I),h.I=null)}t.isActive=function(){return!!this.g};function xi(h){return h.g?h.g.readyState:0}t.Z=function(){try{return 2<xi(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(h){if(this.g){var b=this.g.responseText;return h&&b.indexOf(h)==0&&(b=b.substring(h.length)),Ot(b)}};function hw(h){try{if(!h.g)return null;if("response"in h.g)return h.g.response;switch(h.H){case"":case"text":return h.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in h.g)return h.g.mozResponseArrayBuffer}return null}catch{return null}}function eV(h){const b={};h=(h.g&&2<=xi(h)&&h.g.getAllResponseHeaders()||"").split(`\r 507`);for(let V=0;V<h.length;V++){if(w(h[V]))continue;var P=D(h[V]);const Q=P[0];if(P=P[1],typeof P!="string")continue;P=P.trim();const oe=b[Q]||[];b[Q]=oe,oe.push(P)}A(b,function(V){return V.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function Gl(h,b,P){return P&&P.internalChannelParams&&P.internalChannelParams[h]||b}function fw(h){this.Aa=0,this.i=[],this.j=new Hn,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Gl("failFast",!1,h),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Gl("baseRetryDelayMs",5e3,h),this.cb=Gl("retryDelaySeedMs",1e4,h),this.Wa=Gl("forwardChannelMaxRetries",2,h),this.wa=Gl("forwardChannelRequestTimeoutMs",2e4,h),this.pa=h&&h.xmlHttpFactory||void 0,this.Xa=h&&h.Tb||void 0,this.Ca=h&&h.useFetchStreams||!1,this.L=void 0,this.J=h&&h.supportsCrossDomainXhr||!1,this.K="",this.h=new Gb(h&&h.concurrentRequestLimit),this.Da=new Y2,this.P=h&&h.fastHandshake||!1,this.O=h&&h.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=h&&h.Rb||!1,h&&h.xa&&this.j.xa(),h&&h.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&h&&h.detectBufferingProxy||!1,this.ja=void 0,h&&h.longPollingTimeout&&0<h.longPollingTimeout&&(this.ja=h.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=fw.prototype,t.la=8,t.G=1,t.connect=function(h,b,P,V){cn(0),this.W=h,this.H=b||{},P&&V!==void 0&&(this.H.OSID=P,this.H.OAID=V),this.F=this.X,this.I=ww(this,null,this.W),Eh(this)};function jm(h){if(pw(h),h.G==3){var b=h.U++,P=Ai(h.I);if(wt(P,"SID",h.K),wt(P,"RID",b),wt(P,"TYPE","terminate"),Ql(h,P),b=new fs(h,h.j,b),b.L=2,b.v=_h(Ai(P)),P=!1,a.navigator&&a.navigator.sendBeacon)try{P=a.navigator.sendBeacon(b.v.toString(),"")}catch{}!P&&a.Image&&(new Image().src=b.v,P=!0),P||(b.g=Tw(b.j,null),b.g.ea(b.v)),b.F=Date.now(),hh(b)}bw(h)}function vh(h){h.g&&(zm(h),h.g.cancel(),h.g=null)}function pw(h){vh(h),h.u&&(a.clearTimeout(h.u),h.u=null),bh(h),h.h.cancel(),h.s&&(typeof h.s=="number"&&a.clearTimeout(h.s),h.s=null)}function Eh(h){if(!Qb(h.h)&&!h.s){h.s=!0;var b=h.Ga;j||ue(),H||(j(),H=!0),ce.add(b,h),h.B=0}}function tV(h,b){return Yb(h.h)>=h.h.j-(h.s?1:0)?!1:h.s?(h.i=b.D.concat(h.i),!0):h.G==1||h.G==2||h.B>=(h.Va?0:h.Wa)?!1:(h.s=Qt(f(h.Ga,h,b),Ew(h,h.B)),h.B++,!0)}t.Ga=function(h){if(this.s)if(this.s=null,this.G==1){if(!h){this.U=Math.floor(1e5*Math.random()),h=this.U++;const Q=new fs(this,this.j,h);let oe=this.o;if(this.S&&(oe?(oe=I(oe),x(oe,this.S)):oe=this.S),this.m!==null||this.O||(Q.H=oe,oe=null),this.P)e:{for(var b=0,P=0;P<this.i.length;P++){t:{var V=this.i[P];if("__data__"in V.map&&(V=V.map.__data__,typeof V=="string")){V=V.length;break t}V=void 0}if(V===void 0)break;if(b+=V,4096<b){b=P;break e}if(b===4096||P===this.i.length-1){b=P+1;break e}}b=1e3}else b=1e3;b=mw(this,Q,b),P=Ai(this.I),wt(P,"RID",h),wt(P,"CVER",22),this.D&&wt(P,"X-HTTP-Session-Id",this.D),Ql(this,P),oe&&(this.O?b="headers="+encodeURIComponent(String(aw(oe)))+"&"+b:this.m&&$m(P,this.m,oe)),Um(this.h,Q),this.Ua&&wt(P,"TYPE","init"),this.P?(wt(P,"$req",b),wt(P,"SID","null"),Q.T=!0,Vm(Q,P,null)):Vm(Q,P,b),this.G=2}}else this.G==3&&(h?_w(this,h):this.i.length==0||Qb(this.h)||_w(this))};function _w(h,b){var P;b?P=b.l:P=h.U++;const V=Ai(h.I);wt(V,"SID",h.K),wt(V,"RID",P),wt(V,"AID",h.T),Ql(h,V),h.m&&h.o&&$m(V,h.m,h.o),P=new fs(h,h.j,P,h.B+1),h.m===null&&(P.H=h.o),b&&(h.i=b.D.concat(h.i)),b=mw(h,P,1e3),P.I=Math.round(.5*h.wa)+Math.round(.5*h.wa*Math.random()),Um(h.h,P),Vm(P,V,b)}function Ql(h,b){h.H&&L(h.H,function(P,V){wt(b,V,P)}),h.l&&Zb({},function(P,V){wt(b,V,P)})}function mw(h,b,P){P=Math.min(h.i.length,P);var V=h.l?f(h.l.Na,h.l,h):null;e:{var Q=h.i;let oe=-1;for(;;){const Ee=["count="+P];oe==-1?0<P?(oe=Q[0].g,Ee.push("ofs="+oe)):oe=0:Ee.push("ofs="+oe);let yt=!0;for(let ln=0;ln<P;ln++){let Ze=Q[ln].g;const yn=Q[ln].map;if(Ze-=oe,0>Ze)oe=Math.max(0,Q[ln].g-100),yt=!1;else try{X2(yn,Ee,"req"+Ze+"_")}catch{V&&V(yn)}}if(yt){V=Ee.join("&");break e}}}return h=h.i.splice(0,P),b.D=h,V}function gw(h){if(!h.g&&!h.u){h.Y=1;var b=h.Fa;j||ue(),H||(j(),H=!0),ce.add(b,h),h.v=0}}function Hm(h){return h.g||h.u||3<=h.v?!1:(h.Y++,h.u=Qt(f(h.Fa,h),Ew(h,h.v)),h.v++,!0)}t.Fa=function(){if(this.u=null,yw(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var h=2*this.R;this.j.info("BP detection timer enabled: "+h),this.A=Qt(f(this.ab,this),h)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,cn(10),vh(this),yw(this))};function zm(h){h.A!=null&&(a.clearTimeout(h.A),h.A=null)}function yw(h){h.g=new fs(h,h.j,"rpc",h.Y),h.m===null&&(h.g.H=h.o),h.g.O=0;var b=Ai(h.qa);wt(b,"RID","rpc"),wt(b,"SID",h.K),wt(b,"AID",h.T),wt(b,"CI",h.F?"0":"1"),!h.F&&h.ja&&wt(b,"TO",h.ja),wt(b,"TYPE","xmlhttp"),Ql(h,b),h.m&&h.o&&$m(b,h.m,h.o),h.L&&(h.g.I=h.L);var P=h.g;h=h.ia,P.L=1,P.v=_h(Ai(b)),P.m=null,P.P=!0,qb(P,h)}t.Za=function(){this.C!=null&&(this.C=null,vh(this),Hm(this),cn(19))};function bh(h){h.C!=null&&(a.clearTimeout(h.C),h.C=null)}function vw(h,b){var P=null;if(h.g==b){bh(h),zm(h),h.g=null;var V=2}else if(Bm(h.h,b))P=b.D,Xb(h.h,b),V=1;else return;if(h.G!=0){if(b.o)if(V==1){P=b.m?b.m.length:0,b=Date.now()-b.F;var Q=h.B;V=oa(),ve(V,new $l(V,P)),Eh(h)}else gw(h);else if(Q=b.s,Q==3||Q==0&&0<b.X||!(V==1&&tV(h,b)||V==2&&Hm(h)))switch(P&&0<P.length&&(b=h.h,b.i=b.i.concat(P)),Q){case 1:ca(h,5);break;case 4:ca(h,10);break;case 3:ca(h,6);break;default:ca(h,2)}}}function Ew(h,b){let P=h.Ta+Math.floor(Math.random()*h.cb);return h.isActive()||(P*=2),P*b}function ca(h,b){if(h.j.info("Error code "+b),b==2){var P=f(h.fb,h),V=h.Xa;const Q=!V;V=new aa(V||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||fh(V,"https"),_h(V),Q?G2(V.toString(),P):Q2(V.toString(),P)}else cn(2);h.G=0,h.l&&h.l.sa(b),bw(h),pw(h)}t.fb=function(h){h?(this.j.info("Successfully pinged google.com"),cn(2)):(this.j.info("Failed to ping google.com"),cn(1))};function bw(h){if(h.G=0,h.ka=[],h.l){const b=Jb(h.h);(b.length!=0||h.i.length!=0)&&(v(h.ka,b),v(h.ka,h.i),h.h.i.length=0,y(h.i),h.i.length=0),h.l.ra()}}function ww(h,b,P){var V=P instanceof aa?Ai(P):new aa(P);if(V.g!="")b&&(V.g=b+"."+V.g),ph(V,V.s);else{var Q=a.location;V=Q.protocol,b=b?b+"."+Q.hostname:Q.hostname,Q=+Q.port;var oe=new aa(null);V&&fh(oe,V),b&&(oe.g=b),Q&&ph(oe,Q),P&&(oe.l=P),V=oe}return P=h.D,b=h.ya,P&&b&&wt(V,P,b),wt(V,"VER",h.la),Ql(h,V),V}function Tw(h,b,P){if(b&&!h.J)throw Error("Can't create secondary domain capable XhrIo object.");return b=h.Ca&&!h.pa?new Lt(new mh({eb:P})):new Lt(h.pa),b.Ha(h.J),b}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function Aw(){}t=Aw.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function wh(){}wh.prototype.g=function(h,b){return new Xn(h,b)};function Xn(h,b){_e.call(this),this.g=new fw(b),this.l=h,this.h=b&&b.messageUrlParams||null,h=b&&b.messageHeaders||null,b&&b.clientProtocolHeaderRequired&&(h?h["X-Client-Protocol"]="webchannel":h={"X-Client-Protocol":"webchannel"}),this.g.o=h,h=b&&b.initMessageHeaders||null,b&&b.messageContentType&&(h?h["X-WebChannel-Content-Type"]=b.messageContentType:h={"X-WebChannel-Content-Type":b.messageContentType}),b&&b.va&&(h?h["X-WebChannel-Client-Profile"]=b.va:h={"X-WebChannel-Client-Profile":b.va}),this.g.S=h,(h=b&&b.Sb)&&!w(h)&&(this.g.m=h),this.v=b&&b.supportsCrossDomainXhr||!1,this.u=b&&b.sendRawJson||!1,(b=b&&b.httpSessionIdParam)&&!w(b)&&(this.g.D=b,h=this.h,h!==null&&b in h&&(h=this.h,b in h&&delete h[b])),this.j=new fc(this)}m(Xn,_e),Xn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Xn.prototype.close=function(){jm(this.g)},Xn.prototype.o=function(h){var b=this.g;if(typeof h=="string"){var P={};P.__data__=h,h=P}else this.u&&(P={},P.__data__=Nn(h),h=P);b.i.push(new M2(b.Ya++,h)),b.G==3&&Eh(b)},Xn.prototype.N=function(){this.g.l=null,delete this.j,jm(this.g),delete this.g,Xn.aa.N.call(this)};function xw(h){uc.call(this),h.__headers__&&(this.headers=h.__headers__,this.statusCode=h.__status__,delete h.__headers__,delete h.__status__);var b=h.__sm__;if(b){e:{for(const P in b){h=P;break e}h=void 0}(this.i=h)&&(h=this.i,b=b!==null&&h in b?b[h]:void 0),this.data=b}else this.data=h}m(xw,uc);function Iw(){Bl.call(this),this.status=1}m(Iw,Bl);function fc(h){this.g=h}m(fc,Aw),fc.prototype.ua=function(){ve(this.g,"a")},fc.prototype.ta=function(h){ve(this.g,new xw(h))},fc.prototype.sa=function(h){ve(this.g,new Iw)},fc.prototype.ra=function(){ve(this.g,"b")},wh.prototype.createWebChannel=wh.prototype.g,Xn.prototype.send=Xn.prototype.o,Xn.prototype.open=Xn.prototype.m,Xn.prototype.close=Xn.prototype.close,vS=function(){return new wh},yS=function(){return oa()},gS=Ti,Ig={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},uh.NO_ERROR=0,uh.TIMEOUT=8,uh.HTTP_ERROR=6,lf=uh,jb.COMPLETE="complete",mS=jb,Ml.EventType=ra,ra.OP
507EN="a",ra.CLOSE="b",ra.ERROR="c",ra.MESSAGE="d",_e.prototype.listen=_e.prototype.K,pu=Ml,Lt.prototype.listenOnce=Lt.prototype.L,Lt.prototype.getLastError=Lt.prototype.Ka,Lt.prototype.getLastErrorCode=Lt.prototype.Ba,Lt.prototype.getStatus=Lt.prototype.Z,Lt.prototype.getResponseJson=Lt.prototype.Oa,Lt.prototype.getResponseText=Lt.prototype.oa,Lt.prototype.send=Lt.prototype.ea,Lt.prototype.setWithCredentials=Lt.prototype.Ha,_S=Lt}).apply(typeof Vh<"u"?Vh:typeof self<"u"?self:typeof window<"u"?window:{});const FT="@firebase/firestore";/** 508 * @license 509 * Copyright 2017 Google LLC 510 * 511 * Licensed under the Apache License, Version 2.0 (the "License"); 512 * you may not use this file except in compliance with the License. 513 * You may obtain a copy of the License at 514 * 515 * http://www.apache.org/licenses/LICENSE-2.0 516 * 517 * Unless required by applicable law or agreed to in writing, software 518 * distributed under the License is distributed on an "AS IS" BASIS, 519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 520 * See the License for the specific language governing permissions and 521 * limitations under the License. 522 */class Tn{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}Tn.UNAUTHENTICATED=new Tn(null),Tn.GOOGLE_CREDENTIALS=new Tn("google-credentials-uid"),Tn.FIRST_PARTY=new Tn("first-party-uid"),Tn.MOCK_USER=new Tn("mock-user");/** 523 * @license 524 * Copyright 2017 Google LLC 525 * 526 * Licensed under the Apache License, Version 2.0 (the "License"); 527 * you may not use this file except in compliance with the License. 528 * You may obtain a copy of the License at 529 * 530 * http://www.apache.org/licenses/LICENSE-2.0 531 * 532 * Unless required by applicable law or agreed to in writing, software 533 * distributed under the License is distributed on an "AS IS" BASIS, 534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 535 * See the License for the specific language governing permissions and 536 * limitations under the License. 537 */let Tl="10.14.0";/** 538 * @license 539 * Copyright 2017 Google LLC 540 * 541 * Licensed under the Apache License, Version 2.0 (the "License"); 542 * you may not use this file except in compliance with the License. 543 * You may obtain a copy of the License at 544 * 545 * http://www.apache.org/licenses/LICENSE-2.0 546 * 547 * Unless required by applicable law or agreed to in writing, software 548 * distributed under the License is distributed on an "AS IS" BASIS, 549 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 550 * See the License for the specific language governing permissions and 551 * limitations under the License. 552 */const Fa=new Nd("@firebase/firestore");function Zl(){return Fa.logLevel}function Ce(t,...e){if(Fa.logLevel<=He.DEBUG){const n=e.map(Hv);Fa.debug(`Firestore (${Tl}): ${t}`,...n)}}function rs(t,...e){if(Fa.logLevel<=He.ERROR){const n=e.map(Hv);Fa.error(`Firestore (${Tl}): ${t}`,...n)}}function Yc(t,...e){if(Fa.logLevel<=He.WARN){const n=e.map(Hv);Fa.warn(`Firestore (${Tl}): ${t}`,...n)}}function Hv(t){if(typeof t=="string")return t;try{/** 553* @license 554* Copyright 2020 Google LLC 555* 556* Licensed under the Apache License, Version 2.0 (the "License"); 557* you may not use this file except in compliance with the License. 558* You may obtain a copy of the License at 559* 560* http://www.apache.org/licenses/LICENSE-2.0 561* 562* Unless required by applicable law or agreed to in writing, software 563* distributed under the License is distributed on an "AS IS" BASIS, 564* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 565* See the License for the specific language governing permissions and 566* limitations under the License. 567*/return(function(n){return JSON.stringify(n)})(t)}catch{return t}}/** 568 * @license 569 * Copyright 2017 Google LLC 570 * 571 * Licensed under the Apache License, Version 2.0 (the "License"); 572 * you may not use this file except in compliance with the License. 573 * You may obtain a copy of the License at 574 * 575 * http://www.apache.org/licenses/LICENSE-2.0 576 * 577 * Unless required by applicable law or agreed to in writing, softw
577are 578 * distributed under the License is distributed on an "AS IS" BASIS, 579 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 580 * See the License for the specific language governing permissions and 581 * limitations under the License. 582 */function ke(t="Unexpected state"){const e=`FIRESTORE (${Tl}) INTERNAL ASSERTION FAILED: `+t;throw rs(e),new Error(e)}function ut(t,e){t||ke()}function Fe(t,e){return t}/** 583 * @license 584 * Copyright 2017 Google LLC 585 * 586 * Licensed under the Apache License, Version 2.0 (the "License"); 587 * you may not use this file except in compliance with the License. 588 * You may obtain a copy of the License at 589 * 590 * http://www.apache.org/licenses/LICENSE-2.0 591 * 592 * Unless required by applicable law or agreed to in writing, software 593 * distributed under the License is distributed on an "AS IS" BASIS, 594 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 595 * See the License for the specific language governing permissions and 596 * limitations under the License. 597 */const de={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 Ie extends yi{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 598 * @license 599 * Copyright 2017 Google LLC 600 * 601 * Licensed under the Apache License, Version 2.0 (the "License"); 602 * you may not use this file except in compliance with the License. 603 * You may obtain a copy of the License at 604 * 605 * http://www.apache.org/licenses/LICENSE-2.0 606 * 607 * Unless required by applicable law or agreed to in writing, software 608 * distributed under the License is distributed on an "AS IS" BASIS, 609 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 610 * See the License for the specific language governing permissions and 611 * limitations under the License. 612 */class Ki{constructor(){this.promise=new Promise(((e,n)=>{this.resolve=e,this.reject=n}))}}/** 613 * @license 614 * Copyright 2017 Google LLC 615 * 616 * Licensed under the Apache License, Version 2.0 (the "License"); 617 * you may not use this file except in compliance with the License. 618 * You may obtain a copy of the License at 619 * 620 * http://www.apache.org/licenses/LICENSE-2.0 621 * 622 * Unless required by applicable law or agreed to in writing, software 623 * distributed under the License is distributed on an "AS IS" BASIS, 624 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 625 * See the License for the specific language governing permissions and 626 * limitations under the License. 627 */class ES{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class l3{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable((()=>n(Tn.UNAUTHENTICATED)))}shutdown(){}}class u3{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 d3{constructor(e){this.t=e,this.currentUser=Tn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){ut(this.o===void 0);let r=this.i;const o=c=>this.i!==r?(r=this.i,n(c)):Promise.resolve();let i=new Ki;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Ki,e.enqueueRetryable((()=>o(this.currentUser)))};const s=()=>{const c=i;e.enqueueRetryable((async()=>{await c.promise,await o(this.currentUser)}))},a=c=>{Ce("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit((c=>a(c))),setTimeout((()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?a(c):(Ce("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new Ki)}}),0),s()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((r=>this.i!==e?(Ce("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(ut(typeof r.accessToken=="string"),new ES(r.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return ut(e===null||typeof e=="string"),new Tn(e)}}class h3{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=Tn.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 f3{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new h3(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable((()=>n(Tn.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class p3{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 _3{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){ut(this.o===void 0);const r=i=>
627{i.error!=null&&Ce("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const s=i.token!==this.R;return this.R=i.token,Ce("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable((()=>r(i)))};const o=i=>{Ce("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit((i=>o(i))),setTimeout((()=>{if(!this.appCheck){const i=this.A.getImmediate({optional:!0});i?o(i):Ce("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((n=>n?(ut(typeof n.token=="string"),this.R=n.token,new p3(n.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/** 628 * @license 629 * Copyright 2020 Google LLC 630 * 631 * Licensed under the Apache License, Version 2.0 (the "License"); 632 * you may not use this file except in compliance with the License. 633 * You may obtain a copy of the License at 634 * 635 * http://www.apache.org/licenses/LICENSE-2.0 636 * 637 * Unless required by applicable law or agreed to in writing, software 638 * distributed under the License is distributed on an "AS IS" BASIS, 639 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 640 * See the License for the specific language governing permissions and 641 * limitations under the License. 642 */function m3(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/** 643 * @license 644 * Copyright 2017 Google LLC 645 * 646 * Licensed under the Apache License, Version 2.0 (the "License"); 647 * you may not use this file except in compliance with the License. 648 * You may obtain a copy of the License at 649 * 650 * http://www.apache.org/licenses/LICENSE-2.0 651 * 652 * Unless required by applicable law or agreed to in writing, software 653 * distributed under the License is distributed on an "AS IS" BASIS, 654 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 655 * See the License for the specific language governing permissions and 656 * limitations under the License. 657 */class bS{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let r="";for(;r.length<20;){const o=m3(40);for(let i=0;i<o.length;++i)r.length<20&&o[i]<n&&(r+=e.charAt(o[i]%e.length))}return r}}function tt(t,e){return t<e?-1:t>e?1:0}function Xc(t,e,n){return t.length===e.length&&t.every(((r,o)=>n(r,e[o])))}/** 658 * @license 659 * Copyright 2017 Google LLC 660 * 661 * Licensed under the Apache License, Version 2.0 (the "License"); 662 * you may not use this file except in compliance with the License. 663 * You may obtain a copy of the License at 664 * 665 * http://www.apache.org/licenses/LICENSE-2.0 666 * 667 * Unless required by applicable law or agreed to in writing, software 668 * distributed under the License is distributed on an "AS IS" BASIS, 669 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 670 * See the License for the specific language governing permissions and 671 * limitations under the License. 672 */class Bt{constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Bt.fromMillis(Date.now())}static fromDate(e){return Bt.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*n));return new Bt(n,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?tt(this.nanoseconds,e.nanoseconds):tt(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
672}/** 673 * @license 674 * Copyright 2017 Google LLC 675 * 676 * Licensed under the Apache License, Version 2.0 (the "License"); 677 * you may not use this file except in compliance with the License. 678 * You may obtain a copy of the License at 679 * 680 * http://www.apache.org/licenses/LICENSE-2.0 681 * 682 * Unless required by applicable law or agreed to in writing, software 683 * distributed under the License is distributed on an "AS IS" BASIS, 684 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 685 * See the License for the specific language governing permissions and 686 * limitations under the License. 687 */class Ve{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Ve(e)}static min(){return new Ve(new Bt(0,0))}static max(){return new Ve(new Bt(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 688 * @license 689 * Copyright 2017 Google LLC 690 * 691 * Licensed under the Apache License, Version 2.0 (the "License"); 692 * you may not use this file except in compliance with the License. 693 * You may obtain a copy of the License at 694 * 695 * http://www.apache.org/licenses/LICENSE-2.0 696 * 697 * Unless required by applicable law or agreed to in writing, software 698 * distributed under the License is distributed on an "AS IS" BASIS, 699 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 700 * See the License for the specific language governing permissions and 701 * limitations under the License. 702 */class id{constructor(e,n,r){n===void 0?n=0:n>e.length&&ke(),r===void 0?r=e.length-n:r>e.length-n&&ke(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return id.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof id?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.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let o=0;o<r;o++){const i=e.get(o),s=n.get(o);if(i<s)return-1;if(i>s)return 1}return e.length<n.length?-1:e.length>n.length?1:0}}class It extends id{construct(e,n,r){return new It(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new Ie(de.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter((o=>o.length>0)))}return new It(n)}static emptyPath(){return new It([])}}const g3=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class fn extends id{construct(e,n,r){return new fn(e,n,r)}static isValidIdentifier(e){return g3.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),fn.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new fn(["__name__"])}static fromServerFormat(e){const n=[];let r="",o=0;const i=()=>{if(r.length===0)throw new Ie(de.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let s=!1;for(;o<e.length;){const a=e[o];if(a==="\\"){if(o+1===e.length)throw new Ie(de.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[o+1];if(c!=="\\"&&c!=="."&&c!=="`")throw new Ie(de.INVALID_ARGUMENT,"Path has invali
702d escape sequence: "+e);r+=c,o+=2}else a==="`"?(s=!s,o++):a!=="."||s?(r+=a,o++):(i(),o++)}if(i(),s)throw new Ie(de.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new fn(n)}static emptyPath(){return new fn([])}}/** 703 * @license 704 * Copyright 2017 Google LLC 705 * 706 * Licensed under the Apache License, Version 2.0 (the "License"); 707 * you may not use this file except in compliance with the License. 708 * You may obtain a copy of the License at 709 * 710 * http://www.apache.org/licenses/LICENSE-2.0 711 * 712 * Unless required by applicable law or agreed to in writing, software 713 * distributed under the License is distributed on an "AS IS" BASIS, 714 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 715 * See the License for the specific language governing permissions and 716 * limitations under the License. 717 */class Oe{constructor(e){this.path=e}static fromPath(e){return new Oe(It.fromString(e))}static fromName(e){return new Oe(It.fromString(e).popFirst(5))}static empty(){return new Oe(It.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&&It.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return It.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Oe(new It(e.slice()))}}function y3(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,o=Ve.fromTimestamp(r===1e9?new Bt(n+1,0):new Bt(n,r));return new zs(o,Oe.empty(),e)}function v3(t){return new zs(t.readTime,t.key,-1)}class zs{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new zs(Ve.min(),Oe.empty(),-1)}static max(){return new zs(Ve.max(),Oe.empty(),-1)}}function E3(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=Oe.comparator(t.documentKey,e.documentKey),n!==0?n:tt(t.largestBatchId,e.largestBatchId))}/** 718 * @license 719 * Copyright 2020 Google LLC 720 * 721 * Licensed under the Apache License, Version 2.0 (the "License"); 722 * you may not use this file except in compliance with the License. 723 * You may obtain a copy of the License at 724 * 725 * http://www.apache.org/licenses/LICENSE-2.0 726 * 727 * Unless required by applicable law or agreed to in writing, software 728 * distributed under the License is distributed on an "AS IS" BASIS, 729 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 730 * See the License for the specific language governing permissions and 731 * limitations under the License. 732 */const b3="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class w3{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}/** 733 * @license 734 * Copyright 2017 Google LLC 735 * 736 * Licensed under the Apache License, Version 2.0 (the "License"); 737 * you may not use this file except in compliance with the License. 738 * You may obtain a copy of the License at 739 * 740 * http://www.apache.org/licenses/LICENSE-2.0 741 * 742 * Unless required by applicable law or agreed to in writing, software 743 * distributed under the License is distributed on an "AS IS" BASIS, 744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 745 * See the License for the specific language governing permissions and 746 * limitations under the License. 747 */async function Vd(t){if(t.code!==de.FAILED_PRECONDITION||t.message!==b3)throw t;Ce("LocalStore","Unexpectedly lost primary lease")}/** 748 * @license 749 * Copyright 2017 Google LLC 750 * 751 * Licensed under the Apache License, Version 2.0 (the "License"); 752 * you may not use this file except in compliance with the License. 753 * You may obtain a copy of the License at 754 * 755 * http://www.apache.org/licenses/LICENSE-2.0 756 * 757 * Unless required by applicable law or agreed to in writing, softw
757are 758 * distributed under the License is distributed on an "AS IS" BASIS, 759 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 760 * See the License for the specific language governing permissions and 761 * limitations under the License. 762 */class me{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)}),(n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)}))}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&ke(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new me(((r,o)=>{this.nextCallback=i=>{this.wrapSuccess(e,i).next(r,o)},this.catchCallback=i=>{this.wrapFailure(n,i).next(r,o)}}))}toPromise(){return new Promise(((e,n)=>{this.next(e,n)}))}wrapUserFunction(e){try{const n=e();return n instanceof me?n:me.resolve(n)}catch(n){return me.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction((()=>e(n))):me.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction((()=>e(n))):me.reject(n)}static resolve(e){return new me(((n,r)=>{n(e)}))}static reject(e){return new me(((n,r)=>{r(e)}))}static waitFor(e){return new me(((n,r)=>{let o=0,i=0,s=!1;e.forEach((a=>{++o,a.next((()=>{++i,s&&i===o&&n()}),(c=>r(c)))})),s=!0,i===o&&n()}))}static or(e){let n=me.resolve(!1);for(const r of e)n=n.next((o=>o?me.resolve(o):r()));return n}static forEach(e,n){const r=[];return e.forEach(((o,i)=>{r.push(n.call(this,o,i))})),this.waitFor(r)}static mapArray(e,n){return new me(((r,o)=>{const i=e.length,s=new Array(i);let a=0;for(let c=0;c<i;c++){const l=c;n(e[l]).next((u=>{s[l]=u,++a,a===i&&r(s)}),(u=>o(u)))}}))}static doWhile(e,n){return new me(((r,o)=>{const i=()=>{e()===!0?n().next((()=>{i()}),o):r()};i()}))}}function T3(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Fd(t){return t.name==="IndexedDbTransactionError"}/** 763 * @license 764 * Copyright 2018 Google LLC 765 * 766 * Licensed under the Apache License, Version 2.0 (the "License"); 767 * you may not use this file except in compliance with the License. 768 * You may obtain a copy of the License at 769 * 770 * http://www.apache.org/licenses/LICENSE-2.0 771 * 772 * Unless required by applicable law or agreed to in writing, software 773 * distributed under the License is distributed on an "AS IS" BASIS, 774 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 775 * See the License for the specific language governing permissions and 776 * limitations under the License. 777 */class zv{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ie(r),this.se=r=>n.writeSequenceNumber(r))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}zv.oe=-1;function H_(t){return t==null}function Np(t){return t===0&&1/t==-1/0}function A3(t){return typeof t=="number"&&Number.isInteger(t)&&!Np(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 778 * @license 779 * Copyright 2017 Google LLC 780 * 781 * Licensed under the Apache License, Version 2.0 (the "License"); 782 * you may not use this file except in compliance with the License. 783 * You may obtain a copy of the License at 784 * 785 * http://www.apache.org/licenses/LICENSE-2.0 786 * 787 * Unless required by applicable law or agreed to in writing, software 788 * distributed under the License is distributed on an "AS IS" BASIS, 789 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 790 * See the License for the specific language governing permissions and 791 * limitations under the License. 792 */function MT(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Al(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function wS(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 793 * @license 794 * Copyright 2017 Google LLC 795 * 796 * Licensed under the Apache License, Version 2.0 (the "License");
797 * you may not use this file except in compliance with the License. 798 * You may obtain a copy of the License at 799 * 800 * http://www.apache.org/licenses/LICENSE-2.0 801 * 802 * Unless required by applicable law or agreed to in writing, software 803 * distributed under the License is distributed on an "AS IS" BASIS, 804 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 805 * See the License for the specific language governing permissions and 806 * limitations under the License. 807 */let Gt=class Rg{constructor(e,n){this.comparator=e,this.root=n||Bs.EMPTY}insert(e,n){return new Rg(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,Bs.BLACK,null,null))}remove(e){return new Rg(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Bs.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 o=this.comparator(e,r.key);if(o===0)return n+r.left.size;o<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 Fh(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Fh(this.root,e,this.comparator,!1)}getReverseIterator(){return new Fh(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Fh(this.root,e,this.comparator,!0)}},Fh=class{constructor(e,n,r,o){this.isReverse=o,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&o&&(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}}},Bs=class Pi{constructor(e,n,r,o,i){this.key=e,this.value=n,this.color=r??Pi.RED,this.left=o??Pi.EMPTY,this.right=i??Pi.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,o,i){return new Pi(e??this.key,n??this.value,r??this.color,o??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 o=this;const i=r(e,o.key);return o=i<0?o.copy(null,null,null,o.left.insert(e,n,r),null):i===0?o.copy(null,n,null,null,null):o.copy(null,null,null,null,o.right.insert(e,n,r)),o.fixUp()}removeMin(){if(this.left.isEmpty())return Pi.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,o=this;if(n(e,o.key)<0)o.left.isEmpty()||o.left.isRed()||o.left.left.isRed()||(o=o.moveRedLeft()),o=o.copy(null,null,null,o.left.remove(e,n),null);else{if(o.left.isRed()&&(o=o.rotateRight()),o.right.isEmpty()||o.right.isRed()||o.right.left.isRed()||(o=o.moveRedRight()),n(e,o.key)===0){if(o.right.isEmpty())return Pi.EMPTY;r=o.right.min(),o=o.copy(r.key,r.value,null,null,o.right.removeMin())}o=o.copy(null,null,null,null,o.right.remove(e,n))}return o.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,Pi.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Pi.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 ke();const e=this.left.check();if(e!==this.right.check())throw ke();return e+(this.isRed()?0:1)}};Bs.EMPTY=null,Bs.RED=!0,Bs.BLACK=!1;
807Bs.EMPTY=new class{constructor(){this.size=0}get key(){throw ke()}get value(){throw ke()}get color(){throw ke()}get left(){throw ke()}get right(){throw ke()}copy(e,n,r,o,i){return this}insert(e,n,r){return new Bs(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}};/** 808 * @license 809 * Copyright 2017 Google LLC 810 * 811 * Licensed under the Apache License, Version 2.0 (the "License"); 812 * you may not use this file except in compliance with the License. 813 * You may obtain a copy of the License at 814 * 815 * http://www.apache.org/licenses/LICENSE-2.0 816 * 817 * Unless required by applicable law or agreed to in writing, software 818 * distributed under the License is distributed on an "AS IS" BASIS, 819 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 820 * See the License for the specific language governing permissions and 821 * limitations under the License. 822 */class _n{constructor(e){this.comparator=e,this.data=new Gt(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 o=r.getNext();if(this.comparator(o.key,e[1])>=0)return;n(o.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 BT(this.data.getIterator())}getIteratorFrom(e){return new BT(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<e.size&&(n=e,e=this),e.forEach((r=>{n=n.add(r)})),n}isEqual(e){if(!(e instanceof _n)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const o=n.getNext().key,i=r.getNext().key;if(this.comparator(o,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 _n(this.comparator);return n.data=e,n}}class BT{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 823 * @license 824 * Copyright 2020 Google LLC 825 * 826 * Licensed under the Apache License, Version 2.0 (the "License"); 827 * you may not use this file except in compliance with the License. 828 * You may obtain a copy of the License at 829 * 830 * http://www.apache.org/licenses/LICENSE-2.0 831 * 832 * Unless required by applicable law or agreed to in writing, software 833 * distributed under the License is distributed on an "AS IS" BASIS, 834 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 835 * See the License for the specific language governing permissions and 836 * limitations under the License. 837 */class Sr{constructor(e){this.fields=e,e.sort(fn.comparator)}static empty(){return new Sr([])}unionWith(e){let n=new _n(fn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new Sr(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Xc(this.fields,e.fields,((n,r)=>n.isEqual(r)))}}/** 838 * @license 839 * Copyright 2023 Google LLC 840 * 841 * Licensed under the Apache License, Version 2.0 (the "License"); 842 * you may not use this file except in compliance with the License. 843 * You may obtain a copy of the License at 844 * 845 * http://www.apache.org/licenses/LICENSE-2.0 846 * 847 * Unless required by applicable law or agreed to in writing, software 848 * distributed under the License is distributed on an "AS IS" BASIS, 849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 850 * See the License for the specific language governing permissions and 851 * limitations under the License.
852 */class TS extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 853 * @license 854 * Copyright 2020 Google LLC 855 * 856 * Licensed under the Apache License, Version 2.0 (the "License"); 857 * you may not use this file except in compliance with the License. 858 * You may obtain a copy of the License at 859 * 860 * http://www.apache.org/licenses/LICENSE-2.0 861 * 862 * Unless required by applicable law or agreed to in writing, software 863 * distributed under the License is distributed on an "AS IS" BASIS, 864 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 865 * See the License for the specific language governing permissions and 866 * limitations under the License. 867 */class gn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=(function(o){try{return atob(o)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new TS("Invalid base64 string: "+i):i}})(e);return new gn(n)}static fromUint8Array(e){const n=(function(o){let i="";for(let s=0;s<o.length;++s)i+=String.fromCharCode(o[s]);return i})(e);return new gn(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return(function(n){return btoa(n)})(this.binaryString)}toUint8Array(){return(function(n){const r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return tt(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}gn.EMPTY_BYTE_STRING=new gn("");const x3=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function qs(t){if(ut(!!t),typeof t=="string"){let e=0;const n=x3.exec(t);if(ut(!!n),n[1]){let o=n[1];o=(o+"000000000").substr(0,9),e=Number(o)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Ft(t.seconds),nanos:Ft(t.nanos)}}function Ft(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function Ma(t){return typeof t=="string"?gn.fromBase64String(t):gn.fromUint8Array(t)}/** 868 * @license 869 * Copyright 2020 Google LLC 870 * 871 * Licensed under the Apache License, Version 2.0 (the "License"); 872 * you may not use this file except in compliance with the License. 873 * You may obtain a copy of the License at 874 * 875 * http://www.apache.org/licenses/LICENSE-2.0 876 * 877 * Unless required by applicable law or agreed to in writing, software 878 * distributed under the License is distributed on an "AS IS" BASIS, 879 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 880 * See the License for the specific language governing permissions and 881 * limitations under the License. 882 */function qv(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="server_timestamp"}function Wv(t){const e=t.mapValue.fields.__previous_value__;return qv(e)?Wv(e):e}function sd(t){const e=qs(t.mapValue.fields.__local_write_time__.timestampValue);return new Bt(e.seconds,e.nanos)}/** 883 * @license 884 * Copyright 2017 Google LLC 885 * 886 * Licensed under the Apache License, Version 2.0 (the "License"); 887 * you may not use this file except in compliance with the License. 888 * You may obtain a copy of the License at 889 * 890 * http://www.apache.org/licenses/LICENSE-2.0 891 * 892 * Unless required by applicable law or agreed to in writing, software 893 * distributed under the License is distributed on an "AS IS" BASIS, 894 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 895 * See the License for the specific language governing permissions and 896 * limitations under the License. 897 */class I3{constructor(e,n,r,o,i,s,a,c,l){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=o,this.ssl=i,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=c,this.useFetchStreams=l}}class ad{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new ad("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(e){return e instanceof ad&&e.projectId===this.projectId&&e.database===this.database}}/** 898 * @license 899 * Copyright 2020 Google LLC 900 * 901 * Licensed under the Apache License, Version 2.0 (the "License");
902 * you may not use this file except in compliance with the License. 903 * You may obtain a copy of the License at 904 * 905 * http://www.apache.org/licenses/LICENSE-2.0 906 * 907 * Unless required by applicable law or agreed to in writing, software 908 * distributed under the License is distributed on an "AS IS" BASIS, 909 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 910 * See the License for the specific language governing permissions and 911 * limitations under the License. 912 */const Mh={mapValue:{}};function Ba(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?qv(t)?4:C3(t)?9007199254740991:R3(t)?10:11:ke()}function mi(t,e){if(t===e)return!0;const n=Ba(t);if(n!==Ba(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return sd(t).isEqual(sd(e));case 3:return(function(o,i){if(typeof o.timestampValue=="string"&&typeof i.timestampValue=="string"&&o.timestampValue.length===i.timestampValue.length)return o.timestampValue===i.timestampValue;const s=qs(o.timestampValue),a=qs(i.timestampValue);return s.seconds===a.seconds&&s.nanos===a.nanos})(t,e);case 5:return t.stringValue===e.stringValue;case 6:return(function(o,i){return Ma(o.bytesValue).isEqual(Ma(i.bytesValue))})(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return(function(o,i){return Ft(o.geoPointValue.latitude)===Ft(i.geoPointValue.latitude)&&Ft(o.geoPointValue.longitude)===Ft(i.geoPointValue.longitude)})(t,e);case 2:return(function(o,i){if("integerValue"in o&&"integerValue"in i)return Ft(o.integerValue)===Ft(i.integerValue);if("doubleValue"in o&&"doubleValue"in i){const s=Ft(o.doubleValue),a=Ft(i.doubleValue);return s===a?Np(s)===Np(a):isNaN(s)&&isNaN(a)}return!1})(t,e);case 9:return Xc(t.arrayValue.values||[],e.arrayValue.values||[],mi);case 10:case 11:return(function(o,i){const s=o.mapValue.fields||{},a=i.mapValue.fields||{};if(MT(s)!==MT(a))return!1;for(const c in s)if(s.hasOwnProperty(c)&&(a[c]===void 0||!mi(s[c],a[c])))return!1;return!0})(t,e);default:return ke()}}function cd(t,e){return(t.values||[]).find((n=>mi(n,e)))!==void 0}function Jc(t,e){if(t===e)return 0;const n=Ba(t),r=Ba(e);if(n!==r)return tt(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return tt(t.booleanValue,e.booleanValue);case 2:return(function(i,s){const a=Ft(i.integerValue||i.doubleValue),c=Ft(s.integerValue||s.doubleValue);return a<c?-1:a>c?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1})(t,e);case 3:return UT(t.timestampValue,e.timestampValue);case 4:return UT(sd(t),sd(e));case 5:return tt(t.stringValue,e.stringValue);case 6:return(function(i,s){const a=Ma(i),c=Ma(s);return a.compareTo(c)})(t.bytesValue,e.bytesValue);case 7:return(function(i,s){const a=i.split("/"),c=s.split("/");for(let l=0;l<a.length&&l<c.length;l++){const u=tt(a[l],c[l]);if(u!==0)return u}return tt(a.length,c.length)})(t.referenceValue,e.referenceValue);case 8:return(function(i,s){const a=tt(Ft(i.latitude),Ft(s.latitude));return a!==0?a:tt(Ft(i.longitude),Ft(s.longitude))})(t.geoPointValue,e.geoPointValue);case 9:return $T(t.arrayValue,e.arrayValue);case 10:return(function(i,s){var a,c,l,u;const d=i.fields||{},f=s.fields||{},_=(a=d.value)===null||a===void 0?void 0:a.arrayValue,m=(c=f.value)===null||c===void 0?void 0:c.arrayValue,y=tt(((l=_?.values)===null||l===void 0?void 0:l.length)||0,((u=m?.values)===null||u===void 0?void 0:u.length)||0);return y!==0?y:$T(_,m)})(t.mapValue,e.mapValue);case 11:return(function(i,s){if(i===Mh.mapValue&&s===Mh.mapValue)return 0;if(i===Mh.mapValue)return 1;if(s===Mh.mapValue)return-1;const a=i.fields||{},c=Object.keys(a),l=s.fields||{},u=Object.keys(l);c.sort(),u.sort();for(let d=0;d<c.length&&d<u.length;++d){const f=tt(c[d],u[d]);if(f!==0)return f;const _=Jc(a[c[d]],l[u[d]]);if(_!==0)return _}return tt(c.length,u.length)})(t.mapValue,e.mapValue);default:throw ke()}}function UT(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return tt(t,e);const n=qs(t),r=qs(e),o=tt(n.seconds,r.seconds);return o!==0?o:tt(n.nanos,r.nanos)}function $T(t,e){const n=t.values||[],r=e.values||[];for(let o=0;o<n.length&&o<r.length;++o){const i=Jc(n[o],r[o]);if(i)return i}return tt(n.length,r.length)}function Zc(t){return Cg(t)}function Cg(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?(function(n){const r=qs(n);return`time(${r.seconds},${r.nanos})`})(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?(function(n){return Ma(n).toBase64()})(t.bytesValue):"referenceValue"in t?(function(n){return Oe.fromName(n).toString()})(t.referenceValue):"geoPointValue"in t?(function(n){return`geo(${n.latitude},${n.longitude})`})(t.geoPointValue):"arrayValue"in t?(function(n){let r="[",o=!0;for(const i of n.values||[])o?o=!1:r+=",",r+=Cg(i);return r+"]"})(t.arrayValue):"mapValue"in t?(function(n){const r=Object.keys(n.fields||{}).sort();let o="{",i=!0;for(const s of r)i?i=!1:o+=",",o+=`${s}:${Cg(n.fields[s])}`;return o+"}"})(t.mapValue):ke()}function jT(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function Pg(t){return!!t&&"integerValue"in t}function Kv(t){return!!t&&"arrayValue"in t}function HT(t){return!!t&&"nullValue"in t}function zT(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function uf(t){return!!t&&"mapValue"in t}function R3(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="__vector__"}function Iu(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return Al(t.mapValue.fields,((n,r)=>e.mapValue.fields[n]=Iu(r))),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=Iu(t.arrayValue.values[n]);return e}return Object.assign({},t)}function C3(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** 913 * @license 914 * Copyright 2017 Google LLC 915 * 916 * Licensed under the Apache License, Version 2.0 (the "License");
917 * you may not use this file except in compliance with the License. 918 * You may obtain a copy of the License at 919 * 920 * http://www.apache.org/licenses/LICENSE-2.0 921 * 922 * Unless required by applicable law or agreed to in writing, software 923 * distributed under the License is distributed on an "AS IS" BASIS, 924 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 925 * See the License for the specific language governing permissions and 926 * limitations under the License. 927 */class ur{constructor(e){this.value=e}static empty(){return new ur({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!uf(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=Iu(n)}setAll(e){let n=fn.emptyPath(),r={},o=[];e.forEach(((s,a)=>{if(!n.isImmediateParentOf(a)){const c=this.getFieldsMap(n);this.applyChanges(c,r,o),r={},o=[],n=a.popLast()}s?r[a.lastSegment()]=Iu(s):o.push(a.lastSegment())}));const i=this.getFieldsMap(n);this.applyChanges(i,r,o)}delete(e){const n=this.field(e.popLast());uf(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return mi(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let o=n.mapValue.fields[e.get(r)];uf(o)&&o.mapValue.fields||(o={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=o),n=o}return n.mapValue.fields}applyChanges(e,n,r){Al(n,((o,i)=>e[o]=i));for(const o of r)delete e[o]}clone(){return new ur(Iu(this.value))}}function AS(t){const e=[];return Al(t.fields,((n,r)=>{const o=new fn([n]);if(uf(r)){const i=AS(r.mapValue).fields;
927if(i.length===0)e.push(o);else for(const s of i)e.push(o.child(s))}else e.push(o)})),new Sr(e)}/** 928 * @license 929 * Copyright 2017 Google LLC 930 * 931 * Licensed under the Apache License, Version 2.0 (the "License"); 932 * you may not use this file except in compliance with the License. 933 * You may obtain a copy of the License at 934 * 935 * http://www.apache.org/licenses/LICENSE-2.0 936 * 937 * Unless required by applicable law or agreed to in writing, software 938 * distributed under the License is distributed on an "AS IS" BASIS, 939 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 940 * See the License for the specific language governing permissions and 941 * limitations under the License. 942 */class In{constructor(e,n,r,o,i,s,a){this.key=e,this.documentType=n,this.version=r,this.readTime=o,this.createTime=i,this.data=s,this.documentState=a}static newInvalidDocument(e){return new In(e,0,Ve.min(),Ve.min(),Ve.min(),ur.empty(),0)}static newFoundDocument(e,n,r,o){return new In(e,1,n,Ve.min(),r,o,0)}static newNoDocument(e,n){return new In(e,2,n,Ve.min(),Ve.min(),ur.empty(),0)}static newUnknownDocument(e,n){return new In(e,3,n,Ve.min(),Ve.min(),ur.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(Ve.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=ur.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=ur.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Ve.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof In&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new In(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 943 * @license 944 * Copyright 2022 Google LLC 945 * 946 * Licensed under the Apache License, Version 2.0 (the "License"); 947 * you may not use this file except in compliance with the License. 948 * You may obtain a copy of the License at 949 * 950 * http://www.apache.org/licenses/LICENSE-2.0 951 * 952 * Unless required by applicable law or agreed to in writing, software 953 * distributed under the License is distributed on an "AS IS" BASIS, 954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 955 * See the License for the specific language governing permissions and 956 * limitations under the License. 957 */class Vp{constructor(e,n){this.position=e,this.inclusive=n}}function qT(t,e,n){let r=0;for(let o=0;o<t.position.length;o++){const i=e[o],s=t.position[o];if(i.field.isKeyField()?r=Oe.comparator(Oe.fromName(s.referenceValue),n.key):r=Jc(s,n.data.field(i.field)),i.dir==="desc"&&(r*=-1),r!==0)break}return r}function WT(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!mi(t.position[n],e.position[n]))return!1;return!0}/** 958 * @license 959 * Copyright 2022 Google LLC 960 * 961 * Licensed under the Apache License, Version 2.0 (the "License"); 962 * you may not use this file except in compliance with the License. 963 * You may obtain a copy of the License at 964 * 965 * http://www.apache.org/licenses/LICENSE-2.0 966 * 967 * Unless required by applicable law or agreed to in writing, softw
967are 968 * distributed under the License is distributed on an "AS IS" BASIS, 969 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 970 * See the License for the specific language governing permissions and 971 * limitations under the License. 972 */class ld{constructor(e,n="asc"){this.field=e,this.dir=n}}function P3(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 973 * @license 974 * Copyright 2022 Google LLC 975 * 976 * Licensed under the Apache License, Version 2.0 (the "License"); 977 * you may not use this file except in compliance with the License. 978 * You may obtain a copy of the License at 979 * 980 * http://www.apache.org/licenses/LICENSE-2.0 981 * 982 * Unless required by applicable law or agreed to in writing, software 983 * distributed under the License is distributed on an "AS IS" BASIS, 984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 985 * See the License for the specific language governing permissions and 986 * limitations under the License. 987 */class xS{}class zt extends xS{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 O3(e,n,r):n==="array-contains"?new k3(e,r):n==="in"?new N3(e,r):n==="not-in"?new V3(e,r):n==="array-contains-any"?new F3(e,r):new zt(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new D3(e,r):new L3(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(Jc(n,this.value)):n!==null&&Ba(this.value)===Ba(n)&&this.matchesComparison(Jc(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 ke()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ur extends xS{constructor(e,n){super(),this.filters=e,this.op=n,this.ae=null}static create(e,n){return new Ur(e,n)}matches(e){return IS(this)?this.filters.find((n=>!n.matches(e)))===void 0:this.filters.find((n=>n.matches(e)))!==void 0}getFlattenedFilters(){return this.ae!==null||(this.ae=this.filters.reduce(((e,n)=>e.concat(n.getFlattenedFilters())),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function IS(t){return t.op==="and"}function RS(t){return S3(t)&&IS(t)}function S3(t){for(const e of t.filters)if(e instanceof Ur)return!1;return!0}function Sg(t){if(t instanceof zt)return t.field.canonicalString()+t.op.toString()+Zc(t.value);if(RS(t))return t.filters.map((e=>Sg(e))).join(",");{const e=t.filters.map((n=>Sg(n))).join(",");return`${t.op}(${e})`}}function CS(t,e){return t instanceof zt?(function(r,o){return o instanceof zt&&r.op===o.op&&r.field.isEqual(o.field)&&mi(r.value,o.value)})(t,e):t instanceof Ur?(function(r,o){return o instanceof Ur&&r.op===o.op&&r.filters.length===o.filters.length?r.filters.reduce(((i,s,a)=>i&&CS(s,o.filters[a])),!0):!1})(t,e):void ke()}function PS(t){return t instanceof zt?(function(n){return`${n.field.canonicalString()} ${n.op} ${Zc(n.value)}`})(t):t instanceof Ur?(function(n){return n.op.toString()+" {"+n.getFilters().map(PS).join(" ,")+"}"})(t):"Filter"}class O3 extends zt{constructor(e,n,r){super(e,n,r),this.key=Oe.fromName(r.referenceValue)}matches(e){const n=Oe.comparator(e.key,this.key);return this.matchesComparison(n)}}class D3 extends zt{constructor(e,n){super(e,"in",n),this.keys=SS("in",n)}matches(e){return this.keys.some((n=>n.isEqual(e.key)))}}class L3 extends zt{constructor(e,n){super(e,"not-in",n),this.keys=SS("not-in",n)}matches(e){return!this.keys.some((n=>n.isEqual(e.key)))}}function SS(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map((r=>Oe.fromName(r.referenceValue)))}class k3 extends zt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return Kv(n)&&cd(n.arrayValue,this.value)}}class N3 extends zt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&cd(this.value.arrayValue,n)}}class V3 extends zt{constructor(e,n){super(e,"not-in",n)}matches(e){if(cd(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!cd(this.value.arrayValue,n)}}class F3 extends zt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!Kv(n)||!n.arrayValue.values)&&n.arrayValue.values.some((r=>cd(this.value.arrayValue,r)))}}/** 988 * @license 989 * Copyright 2019 Google LLC 990 * 991 * Licensed under the Apache License, Version 2.0 (the "License");
992 * you may not use this file except in compliance with the License. 993 * You may obtain a copy of the License at 994 * 995 * http://www.apache.org/licenses/LICENSE-2.0 996 * 997 * Unless required by applicable law or agreed to in writing, software 998 * distributed under the License is distributed on an "AS IS" BASIS, 999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1000 * See the License for the specific language governing permissions and 1001 * limitations under the License. 1002 */class M3{constructor(e,n=null,r=[],o=[],i=null,s=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=o,this.limit=i,this.startAt=s,this.endAt=a,this.ue=null}}function KT(t,e=null,n=[],r=[],o=null,i=null,s=null){return new M3(t,e,n,r,o,i,s)}function Gv(t){const e=Fe(t);if(e.ue===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((r=>Sg(r))).join(","),n+="|ob:",n+=e.orderBy.map((r=>(function(i){return i.field.canonicalString()+i.dir})(r))).join(","),H_(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map((r=>Zc(r))).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map((r=>Zc(r))).join(",")),e.ue=n}return e.ue}function Qv(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!P3(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!CS(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!WT(t.startAt,e.startAt)&&WT(t.endAt,e.endAt)}function Og(t){return Oe.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/** 1003 * @license 1004 * Copyright 2017 Google LLC 1005 * 1006 * Licensed under the Apache License, Version 2.0 (the "License"); 1007 * you may not use this file except in compliance with the License. 1008 * You may obtain a copy of the License at 1009 * 1010 * http://www.apache.org/licenses/LICENSE-2.0 1011 * 1012 * Unless required by applicable law or agreed to in writing, software 1013 * distributed under the License is distributed on an "AS IS" BASIS, 1014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1015 * See the License for the specific language governing permissions and 1016 * limitations under the License. 1017 */class xl{constructor(e,n=null,r=[],o=[],i=null,s="F",a=null,c=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=o,this.limit=i,this.limitType=s,this.startAt=a,this.endAt=c,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function B3(t,e,n,r,o,i,s,a){return new xl(t,e,n,r,o,i,s,a)}function z_(t){return new xl(t)}function GT(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 OS(t){return t.collectionGroup!==null}function Ru(t){const e=Fe(t);if(e.ce===null){e.ce=[];const n=new Set;for(const i of e.explicitOrderBy)e.ce.push(i),n.add(i.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new _n(fn.comparator);return s.filters.forEach((c=>{c.getFlattenedFilters().forEach((l=>{l.isInequality()&&(a=a.add(l.field))}))})),a})(e).forEach((i=>{n.has(i.canonicalString())||i.isKeyField()||e.ce.push(new ld(i,r))})),n.has(fn.keyField().canonicalString())||e.ce.push(new ld(fn.keyField(),r))}return e.ce}function ci(t){const e=Fe(t);return e.le||(e.le=U3(e,Ru(t))),e.le}function U3(t,e){if(t.limitType==="F")return KT(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map((o=>{const i=o.dir==="desc"?"asc":"desc";return new ld(o.field,i)}));const n=t.endAt?new Vp(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new Vp(t.startAt.position,t.startAt.inclusive):null;return KT(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function Dg(t,e){const n=t.filters.concat([e]);return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Lg(t,e,n){return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function q_(t,e){return Qv(ci(t),ci(e))&&t.limitType===e.limitType}function DS(t){return`${Gv(ci(t))}|lt:${t.limitType}`}function bc(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((o=>PS(o))).join(", ")}]`),H_(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map((o=>(function(s){return`${s.field.canonicalString()} (${s.dir})`}
1017)(o))).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map((o=>Zc(o))).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map((o=>Zc(o))).join(",")),`Target(${r})`})(ci(t))}; limitType=${t.limitType})`}function W_(t,e){return e.isFoundDocument()&&(function(r,o){const i=o.key.path;return r.collectionGroup!==null?o.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):Oe.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)})(t,e)&&(function(r,o){for(const i of Ru(r))if(!i.field.isKeyField()&&o.data.field(i.field)===null)return!1;return!0})(t,e)&&(function(r,o){for(const i of r.filters)if(!i.matches(o))return!1;return!0})(t,e)&&(function(r,o){return!(r.startAt&&!(function(s,a,c){const l=qT(s,a,c);return s.inclusive?l<=0:l<0})(r.startAt,Ru(r),o)||r.endAt&&!(function(s,a,c){const l=qT(s,a,c);return s.inclusive?l>=0:l>0})(r.endAt,Ru(r),o))})(t,e)}function $3(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function LS(t){return(e,n)=>{let r=!1;for(const o of Ru(t)){const i=j3(o,e,n);if(i!==0)return i;r=r||o.field.isKeyField()}return 0}}function j3(t,e,n){const r=t.field.isKeyField()?Oe.comparator(e.key,n.key):(function(i,s,a){const c=s.data.field(i),l=a.data.field(i);return c!==null&&l!==null?Jc(c,l):ke()})(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return ke()}}/** 1018 * @license 1019 * Copyright 2017 Google LLC 1020 * 1021 * Licensed under the Apache License, Version 2.0 (the "License"); 1022 * you may not use this file except in compliance with the License. 1023 * You may obtain a copy of the License at 1024 * 1025 * http://www.apache.org/licenses/LICENSE-2.0 1026 * 1027 * Unless required by applicable law or agreed to in writing, software 1028 * distributed under the License is distributed on an "AS IS" BASIS, 1029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1030 * See the License for the specific language governing permissions and 1031 * limitations under the License. 1032 */class Il{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[o,i]of r)if(this.equalsFn(o,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),o=this.inner[r];if(o===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let i=0;i<o.length;i++)if(this.equalsFn(o[i][0],e))return void(o[i]=[e,n]);o.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let o=0;o<r.length;o++)if(this.equalsFn(r[o][0],e))return r.length===1?delete this.inner[n]:r.splice(o,1),this.innerSize--,!0;return!1}forEach(e){Al(this.inner,((n,r)=>{for(const[o,i]of r)e(o,i)}))}isEmpty(){return wS(this.inner)}size(){return this.innerSize}}/** 1033 * @license 1034 * Copyright 2017 Google LLC 1035 * 1036 * Licensed under the Apache License, Version 2.0 (the "License"); 1037 * you may not use this file except in compliance with the License. 1038 * You may obtain a copy of the License at 1039 * 1040 * http://www.apache.org/licenses/LICENSE-2.0 1041 * 1042 * Unless required by applicable law or agreed to in writing, software 1043 * distributed under the License is distributed on an "AS IS" BASIS, 1044 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1045 * See the License for the specific language governing permissions and 1046 * limitations under the License. 1047 */const H3=new Gt(Oe.comparator);function os(){return H3}const kS=new Gt(Oe.comparator);function _u(...t){let e=kS;for(const n of t)e=e.insert(n.key,n);return e}function NS(t){let e=kS;return t.forEach(((n,r)=>e=e.insert(n,r.overlayedDocument))),e}function va(){return Cu()}function VS(){return Cu()}function Cu(){return new Il((t=>t.toString()),((t,e)=>t.isEqual(e)))}const z3=new Gt(Oe.comparator),q3=new _n(Oe.comparator);function qe(...t){let e=q3;for(const n of t)e=e.add(n);return e}const W3=new _n(tt);function K3(){return W3}/** 1048 * @license 1049 * Copyright 2020 Google LLC 1050 * 1051 * Licensed under the Apache License, Version 2.0 (the "License");
1052 * you may not use this file except in compliance with the License. 1053 * You may obtain a copy of the License at 1054 * 1055 * http://www.apache.org/licenses/LICENSE-2.0 1056 * 1057 * Unless required by applicable law or agreed to in writing, software 1058 * distributed under the License is distributed on an "AS IS" BASIS, 1059 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1060 * See the License for the specific language governing permissions and 1061 * limitations under the License. 1062 */function Yv(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Np(e)?"-0":e}}function FS(t){return{integerValue:""+t}}function G3(t,e){return A3(e)?FS(e):Yv(t,e)}/** 1063 * @license 1064 * Copyright 2018 Google LLC 1065 * 1066 * Licensed under the Apache License, Version 2.0 (the "License"); 1067 * you may not use this file except in compliance with the License. 1068 * You may obtain a copy of the License at 1069 * 1070 * http://www.apache.org/licenses/LICENSE-2.0 1071 * 1072 * Unless required by applicable law or agreed to in writing, software 1073 * distributed under the License is distributed on an "AS IS" BASIS, 1074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1075 * See the License for the specific language governing permissions and 1076 * limitations under the License. 1077 */class K_{constructor(){this._=void 0}}function Q3(t,e,n){return t instanceof Fp?(function(o,i){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:o.seconds,nanos:o.nanoseconds}}}};return i&&qv(i)&&(i=Wv(i)),i&&(s.fields.__previous_value__=i),{mapValue:s}})(n,e):t instanceof ud?BS(t,e):t instanceof dd?US(t,e):(function(o,i){const s=MS(o,i),a=QT(s)+QT(o.Pe);return Pg(s)&&Pg(o.Pe)?FS(a):Yv(o.serializer,a)})(t,e)}function Y3(t,e,n){return t instanceof ud?BS(t,e):t instanceof dd?US(t,e):n}function MS(t,e){return t instanceof Mp?(function(r){return Pg(r)||(function(i){return!!i&&"doubleValue"in i})(r)})(e)?e:{integerValue:0}:null}class Fp extends K_{}class ud extends K_{constructor(e){super(),this.elements=e}}function BS(t,e){const n=$S(e);for(const r of t.elements)n.some((o=>mi(o,r)))||n.push(r);return{arrayValue:{values:n}}}class dd extends K_{constructor(e){super(),this.elements=e}}function US(t,e){let n=$S(e);for(const r of t.elements)n=n.filter((o=>!mi(o,r)));return{arrayValue:{values:n}}}class Mp extends K_{constructor(e,n){super(),this.serializer=e,this.Pe=n}}function QT(t){return Ft(t.integerValue||t.doubleValue)}function $S(t){return Kv(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function X3(t,e){return t.field.isEqual(e.field)&&(function(r,o){return r instanceof ud&&o instanceof ud||r instanceof dd&&o instanceof dd?Xc(r.elements,o.elements,mi):r instanceof Mp&&o instanceof Mp?mi(r.Pe,o.Pe):r instanceof Fp&&o instanceof Fp})(t.transform,e.transform)}class J3{constructor(e,n){this.version=e,this.transformResults=n}}class Vr{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Vr}static exists(e){return new Vr(void 0,e)}static updateTime(e){return new Vr(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 df(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}let G_=class{};function jS(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new Xv(t.key,Vr.none()):new Md(t.key,t.data,Vr.none());{const n=t.data,r=ur.empty();let o=new _n(fn.comparator);for(let i of e.fields)if(!o.has(i)){let s=n.field(i);s===null&&i.length>1&&(i=i.popLast(),s=n.field(i)),s===null?r.delete(i):r.set(i,s),o=o.add(i)}return new Za(t.key,r,new Sr(o.toArray()),Vr.none())}}function Z3(t,e,n){t instanceof Md?(function(o,i,s){const a=o.value.clone(),c=XT(o.fieldTransforms,i,s.transformResults);a.setAll(c),i.convertToFoundDocument(s.version,a).setHasCommittedMutations()})(t,e,n):t instanceof Za?(function(o,i,s){if(!df(o.precondition,i))return void i.convertToUnknownDocument(s.version);const a=XT(o.fieldTransforms,i,s.transformResults),c=i.data;c.setAll(HS(o)),c.setAll(a),i.convertToFoundDocument(s.version,c).setHasCommittedMutations()})(t,e,n):(function(o,i,s){i.convertToNoDocument(s.version).setHasCommittedMutations()})(0,e,n)}function Pu(t,e,n,r){return t instanceof Md?(function(i,s,a,c){if(!df(i.precondition,s))return a;const l=i.value.clone(),u=JT(i.fieldTransforms,c,s);return l.setAll(u),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null})(t,e,n,r):t instanceof Za?(function(i,s,a,c){if(!df(i.precondition,s))return a;const l=JT(i.fieldTransforms,c,s),u=s.data;return u.setAll(HS(i)),u.setAll(l),s.convertToFoundDocument(s.version,u).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map((d=>d.field)))})(t,e,n,r):(function(i,s,a){return df(i.precondition,s)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a})(t,e,n)}function e5(t,e){let n=null;for(const r of t.fieldTransforms){const o=e.data.field(r.field),i=MS(r.transform,o||null);i!=null&&(n===null&&(n=ur.empty()),n.set(r.field,i))}return n||null}function YT(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!(function(r,o){return r===void 0&&o===void 0||!(!r||!o)&&Xc(r,o,((i,s)=>X3(i,s)))})(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 Md extends G_{constructor(e,n,r,o=[]){super(),this.key=e,this.value=n,this.prec
1077ondition=r,this.fieldTransforms=o,this.type=0}getFieldMask(){return null}}class Za extends G_{constructor(e,n,r,o,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=o,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function HS(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 XT(t,e,n){const r=new Map;ut(t.length===n.length);for(let o=0;o<n.length;o++){const i=t[o],s=i.transform,a=e.data.field(i.field);r.set(i.field,Y3(s,a,n[o]))}return r}function JT(t,e,n){const r=new Map;for(const o of t){const i=o.transform,s=n.data.field(o.field);r.set(o.field,Q3(i,s,e))}return r}class Xv extends G_{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class t5 extends G_{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 1078 * @license 1079 * Copyright 2017 Google LLC 1080 * 1081 * Licensed under the Apache License, Version 2.0 (the "License"); 1082 * you may not use this file except in compliance with the License. 1083 * You may obtain a copy of the License at 1084 * 1085 * http://www.apache.org/licenses/LICENSE-2.0 1086 * 1087 * Unless required by applicable law or agreed to in writing, software 1088 * distributed under the License is distributed on an "AS IS" BASIS, 1089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1090 * See the License for the specific language governing permissions and 1091 * limitations under the License. 1092 */class n5{constructor(e,n,r,o){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=o}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let o=0;o<this.mutations.length;o++){const i=this.mutations[o];i.key.isEqual(e.key)&&Z3(i,e,r[o])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=Pu(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=Pu(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=VS();return this.mutations.forEach((o=>{const i=e.get(o.key),s=i.overlayedDocument;let a=this.applyToLocalView(s,i.mutatedFields);a=n.has(o.key)?null:a;const c=jS(s,a);c!==null&&r.set(o.key,c),s.isValidDocument()||s.convertToNoDocument(Ve.min())})),r}keys(){return this.mutations.reduce(((e,n)=>e.add(n.key)),qe())}isEqual(e){return this.batchId===e.batchId&&Xc(this.mutations,e.mutations,((n,r)=>YT(n,r)))&&Xc(this.baseMutations,e.baseMutations,((n,r)=>YT(n,r)))}}class Jv{constructor(e,n,r,o){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=o}static from(e,n,r){ut(e.mutations.length===r.length);let o=(function(){return z3})();const i=e.mutations;for(let s=0;s<i.length;s++)o=o.insert(i[s].key,r[s].version);return new Jv(e,n,r,o)}}/** 1093 * @license 1094 * Copyright 2022 Google LLC 1095 * 1096 * Licensed under the Apache License, Version 2.0 (the "License"); 1097 * you may not use this file except in compliance with the License. 1098 * You may obtain a copy of the License at 1099 * 1100 * http://www.apache.org/licenses/LICENSE-2.0 1101 * 1102 * Unless required by applicable law or agreed to in writing, software 1103 * distributed under the License is distributed on an "AS IS" BASIS, 1104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1105 * See the License for the specific language governing permissions and 1106 * limitations under the License. 1107 */class r5{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 1108 largestBatchId: ${this.largestBatchId}, 1109 mutation: ${this.mutation.toString()} 1110 }`}}/** 1111 * @license 1112 * Copyright 2017 Google LLC 1113 * 1114 * Licensed under the Apache License, Version 2.0 (the "License"); 1115 * you may not use this file except in compliance with the License. 1116 * You may obtain a copy of the License at 1117 * 1118 * http://www.apache.org/licenses/LICENSE-2.0 1119 * 1120 * Unless required by applicable law or agreed to in writing, software 1121 * distributed under the License is distributed on an "AS IS" BASIS, 1122 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1123 * See the License for the specific language governing permissions and 1124 * limitations under the License. 1125 */class o5{constructor(e,n){this.count=e,this.unchangedNames=n}}/** 1126 * @license 1127 * Copyright 2017 Google LLC 1128 * 1129 * Licensed under the Apache License, Version 2.0 (the "License");
1130 * you may not use this file except in compliance with the License. 1131 * You may obtain a copy of the License at 1132 * 1133 * http://www.apache.org/licenses/LICENSE-2.0 1134 * 1135 * Unless required by applicable law or agreed to in writing, software 1136 * distributed under the License is distributed on an "AS IS" BASIS, 1137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1138 * See the License for the specific language governing permissions and 1139 * limitations under the License. 1140 */var Ht,Ge;function i5(t){switch(t){default:return ke();case de.CANCELLED:case de.UNKNOWN:case de.DEADLINE_EXCEEDED:case de.RESOURCE_EXHAUSTED:case de.INTERNAL:case de.UNAVAILABLE:case de.UNAUTHENTICATED:return!1;case de.INVALID_ARGUMENT:case de.NOT_FOUND:case de.ALREADY_EXISTS:case de.PERMISSION_DENIED:case de.FAILED_PRECONDITION:case de.ABORTED:case de.OUT_OF_RANGE:case de.UNIMPLEMENTED:case de.DATA_LOSS:return!0}}function zS(t){if(t===void 0)return rs("GRPC error has no .code"),de.UNKNOWN;switch(t){case Ht.OK:return de.OK;case Ht.CANCELLED:return de.CANCELLED;case Ht.UNKNOWN:return de.UNKNOWN;case Ht.DEADLINE_EXCEEDED:return de.DEADLINE_EXCEEDED;case Ht.RESOURCE_EXHAUSTED:return de.RESOURCE_EXHAUSTED;case Ht.INTERNAL:return de.INTERNAL;case Ht.UNAVAILABLE:return de.UNAVAILABLE;case Ht.UNAUTHENTICATED:return de.UNAUTHENTICATED;case Ht.INVALID_ARGUMENT:return de.INVALID_ARGUMENT;case Ht.NOT_FOUND:return de.NOT_FOUND;case Ht.ALREADY_EXISTS:return de.ALREADY_EXISTS;case Ht.PERMISSION_DENIED:return de.PERMISSION_DENIED;case Ht.FAILED_PRECONDITION:return de.FAILED_PRECONDITION;case Ht.ABORTED:return de.ABORTED;case Ht.OUT_OF_RANGE:return de.OUT_OF_RANGE;case Ht.UNIMPLEMENTED:return de.UNIMPLEMENTED;case Ht.DATA_LOSS:return de.DATA_LOSS;default:return ke()}}(Ge=Ht||(Ht={}))[Ge.OK=0]="OK",Ge[Ge.CANCELLED=1]="CANCELLED",Ge[Ge.UNKNOWN=2]="UNKNOWN",Ge[Ge.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ge[Ge.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ge[Ge.NOT_FOUND=5]="NOT_FOUND",Ge[Ge.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ge[Ge.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ge[Ge.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ge[Ge.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ge[Ge.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ge[Ge.ABORTED=10]="ABORTED",Ge[Ge.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ge[Ge.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ge[Ge.INTERNAL=13]="INTERNAL",Ge[Ge.UNAVAILABLE=14]="UNAVAILABLE",Ge[Ge.DATA_LOSS=15]="DATA_LOSS";/** 1141 * @license 1142 * Copyright 2023 Google LLC 1143 * 1144 * Licensed under the Apache License, Version 2.0 (the "License"); 1145 * you may not use this file except in compliance with the License. 1146 * You may obtain a copy of the License at 1147 * 1148 * http://www.apache.org/licenses/LICENSE-2.0 1149 * 1150 * Unless required by applicable law or agreed to in writing, software 1151 * distributed under the License is distributed on an "AS IS" BASIS, 1152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1153 * See the License for the specific language governing permissions and 1154 * limitations under the License. 1155 */function s5(){return new TextEncoder}/** 1156 * @license 1157 * Copyright 2022 Google LLC 1158 * 1159 * Licensed under the Apache License, Version 2.0 (the "License"); 1160 * you may not use this file except in compliance with the License. 1161 * You may obtain a copy of the License at 1162 * 1163 * http://www.apache.org/licenses/LICENSE-2.0 1164 * 1165 * Unless required by applicable law or agreed to in writing, software 1166 * distributed under the License is distributed on an "AS IS" BASIS, 1167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1168 * See the License for the specific language governing permissions and 1169 * limitations under the License. 1170 */const a5=new Da([4294967295,4294967295],0);function ZT(t){const e=s5().encode(t),n=new pS;return n.update(e),new Uint8Array(n.digest())}function eA(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),o=e.getUint32(8,!0),i=e.getUint32(12,!0);return[new Da([n,r],0),new Da([o,i],0)]}class Zv{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new mu(`Invalid padding: ${n}`);if(r<0)throw new mu(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new mu(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new mu(`Invalid padding when bitmap length is 0: ${n}`);this.Ie=8*e.length-n,this.Te=Da.fromNumber(this.Ie)}Ee(e,n,r){let o=e.add(n.multiply(Da.fromNumber(r)));return o.compare(a5)===1&&(o=new Da([o.getBits(0),o.getBits(1)],0)),o.modulo(this.Te).toNumber()}de(e){return(this.bitmap[Math.floor(e/8)]&1<<e%8)!=0}mightContain(e){if(this.Ie===0)return!1;const n=ZT(e),[r,o]=eA(n);for(let i=0;i<this.hashCount;i++){const s=this.Ee(r,o,i);if(!this.de(s))return!1}return!0}static create(e,n,r){const o=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),s=new Zv(i,o,n);return r.forEach((a=>s.insert(a))),s}insert(e){if(this.Ie===0)return;const n=ZT(e),[r,o]=eA(n);for(let i=0;i<this.hashCount;i++){const s=this.Ee(r,o,i);this.Ae(s)}}Ae(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}
1170class mu extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 1171 * @license 1172 * Copyright 2017 Google LLC 1173 * 1174 * Licensed under the Apache License, Version 2.0 (the "License"); 1175 * you may not use this file except in compliance with the License. 1176 * You may obtain a copy of the License at 1177 * 1178 * http://www.apache.org/licenses/LICENSE-2.0 1179 * 1180 * Unless required by applicable law or agreed to in writing, software 1181 * distributed under the License is distributed on an "AS IS" BASIS, 1182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1183 * See the License for the specific language governing permissions and 1184 * limitations under the License. 1185 */class Q_{constructor(e,n,r,o,i){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=o,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const o=new Map;return o.set(e,Bd.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new Q_(Ve.min(),o,new Gt(tt),os(),qe())}}class Bd{constructor(e,n,r,o,i){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=o,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new Bd(r,n,qe(),qe(),qe())}}/** 1186 * @license 1187 * Copyright 2017 Google LLC 1188 * 1189 * Licensed under the Apache License, Version 2.0 (the "License"); 1190 * you may not use this file except in compliance with the License. 1191 * You may obtain a copy of the License at 1192 * 1193 * http://www.apache.org/licenses/LICENSE-2.0 1194 * 1195 * Unless required by applicable law or agreed to in writing, software 1196 * distributed under the License is distributed on an "AS IS" BASIS, 1197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1198 * See the License for the specific language governing permissions and 1199 * limitations under the License. 1200 */class hf{constructor(e,n,r,o){this.Re=e,this.removedTargetIds=n,this.key=r,this.Ve=o}}class qS{constructor(e,n){this.targetId=e,this.me=n}}class WS{constructor(e,n,r=gn.EMPTY_BYTE_STRING,o=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=o}}class tA{constructor(){this.fe=0,this.ge=rA(),this.pe=gn.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return this.fe!==0}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}ve(){let e=qe(),n=qe(),r=qe();return this.ge.forEach(((o,i)=>{switch(i){case 0:e=e.add(o);break;case 2:n=n.add(o);break;case 1:r=r.add(o);break;default:ke()}})),new Bd(this.pe,this.ye,e,n,r)}Ce(){this.we=!1,this.ge=rA()}Fe(e,n){this.we=!0,this.ge=this.ge.insert(e,n)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,ut(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class c5{constructor(e){this.Le=e,this.Be=new Map,this.ke=os(),this.qe=nA(),this.Qe=new Gt(tt)}Ke(e){for(const n of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(n,e.Ve):this.Ue(n,e.key,e.Ve);for(const n of e.removedTargetIds)this.Ue(n,e.key,e.Ve)}We(e){this.forEachTarget(e,(n=>{const r=this.Ge(n);switch(e.state){case 0:this.ze(n)&&r.De(e.resumeToken);break;case 1:r.Oe(),r.Se||r.Ce(),r.De(e.resumeToken);break;case 2:r.Oe(),r.Se||this.removeTarget(n);break;case 3:this.ze(n)&&(r.Ne(),r.De(e.resumeToken));break;case 4:this.ze(n)&&(this.je(n),r.De(e.resumeToken));break;default:ke()}}))}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Be.forEach(((r,o)=>{this.ze(o)&&n(o)}))}He(e){const n=e.targetId,r=e.me.count,o=this.Je(n);if(o){const i=o.target;if(Og(i))if(r===0){const s=new Oe(i.path);this.Ue(n,s,In.newNoDocument(s,Ve.min()))}else ut(r===1);else{const s=this.Ye(n);if(s!==r){const a=this.Ze(e),c=a?this.Xe(a,e,s):1;if(c!==0){this.je(n);const l=c===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Qe=this.Qe.insert(n,l)}}}}}Ze(e){const n=e.me.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:o=0},hashCount:i=0}=n;let s,a;try{s=Ma(r).toUint8Array()}catch(c){if(c instanceof TS)return Yc("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}try{a=new Zv(s,o,i)}catch(c){return Yc(c instanceof mu?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return a.Ie===0?null:a}Xe(e,n,r){return n.me.count===r-this.nt(e,n.targetId)?0:2}nt(e,n){const r=this.Le.getRemoteKeysForTarget(n);let o=0;return r.forEach((i=>{const s=this.Le.tt(),a=`projects/${s.projectId}/databases/${s.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.Ue(n,i,null),o++)})),o}rt(e){const n=new Map;this.Be.forEach(((i,s)=>{const a=this.Je(s);if(a){if(i.current&&Og(a.target)){const c=new Oe(a.target.path);this.ke.get(c)!==null||this.it(s,c)||this.Ue(s,c,In.newNoDocument(c,e))}i.be&&(n.set(s,i.ve()),i.Ce())}}));let r=qe();this.qe.forEach(((i,s)=>{let a=!0;
1200s.forEachWhile((c=>{const l=this.Je(c);return!l||l.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)})),a&&(r=r.add(i))})),this.ke.forEach(((i,s)=>s.setReadTime(e)));const o=new Q_(e,n,this.Qe,this.ke,r);return this.ke=os(),this.qe=nA(),this.Qe=new Gt(tt),o}$e(e,n){if(!this.ze(e))return;const r=this.it(e,n.key)?2:0;this.Ge(e).Fe(n.key,r),this.ke=this.ke.insert(n.key,n),this.qe=this.qe.insert(n.key,this.st(n.key).add(e))}Ue(e,n,r){if(!this.ze(e))return;const o=this.Ge(e);this.it(e,n)?o.Fe(n,1):o.Me(n),this.qe=this.qe.insert(n,this.st(n).delete(e)),r&&(this.ke=this.ke.insert(n,r))}removeTarget(e){this.Be.delete(e)}Ye(e){const n=this.Ge(e).ve();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let n=this.Be.get(e);return n||(n=new tA,this.Be.set(e,n)),n}st(e){let n=this.qe.get(e);return n||(n=new _n(tt),this.qe=this.qe.insert(e,n)),n}ze(e){const n=this.Je(e)!==null;return n||Ce("WatchChangeAggregator","Detected inactive target",e),n}Je(e){const n=this.Be.get(e);return n&&n.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new tA),this.Le.getRemoteKeysForTarget(e).forEach((n=>{this.Ue(e,n,null)}))}it(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function nA(){return new Gt(Oe.comparator)}function rA(){return new Gt(Oe.comparator)}const l5={asc:"ASCENDING",desc:"DESCENDING"},u5={"<":"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"},d5={and:"AND",or:"OR"};class h5{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function kg(t,e){return t.useProto3Json||H_(e)?e:{value:e}}function Bp(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 KS(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function f5(t,e){return Bp(t,e.toTimestamp())}function li(t){return ut(!!t),Ve.fromTimestamp((function(n){const r=qs(n);return new Bt(r.seconds,r.nanos)})(t))}function eE(t,e){return Ng(t,e).canonicalString()}function Ng(t,e){const n=(function(o){return new It(["projects",o.projectId,"databases",o.database])})(t).child("documents");return e===void 0?n:n.child(e)}function GS(t){const e=It.fromString(t);return ut(ZS(e)),e}function Vg(t,e){return eE(t.databaseId,e.path)}function f0(t,e){const n=GS(e);if(n.get(1)!==t.databaseId.projectId)throw new Ie(de.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 Ie(de.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new Oe(YS(n))}function QS(t,e){return eE(t.databaseId,e)}function p5(t){const e=GS(t);return e.length===4?It.emptyPath():YS(e)}function Fg(t){return new It(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function YS(t){return ut(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function oA(t,e,n){return{name:Vg(t,e),fields:n.value.mapValue.fields}}function _5(t,e){let n;if("targetChange"in e){e.targetChange;const r=(function(l){return l==="NO_CHANGE"?0:l==="ADD"?1:l==="REMOVE"?2:l==="CURRENT"?3:l==="RESET"?4:ke()})(e.targetChange.targetChangeType||"NO_CHANGE"),o=e.targetChange.targetIds||[],i=(function(l,u){return l.useProto3Json?(ut(u===void 0||typeof u=="string"),gn.fromBase64String(u||"")):(ut(u===void 0||u instanceof Buffer||u instanceof Uint8Array),gn.fromUint8Array(u||new Uint8Array))})(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&(function(l){const u=l.code===void 0?de.UNKNOWN:zS(l.code);return new Ie(u,l.message||"")})(s);n=new WS(r,o,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const o=f0(t,r.document.name),i=li(r.document.updateTime),s=r.document.createTime?li(r.document.createTime):Ve.min(),a=new ur({mapValue:{fields:r.document.fields}}),c=In.newFoundDocument(o,i,s,a),l=r.targetIds||[],u=r.removedTargetIds||[];n=new hf(l,u,c.key,c)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const o=f0(t,r.document),i=r.readTime?li(r.readTime):Ve.min(),s=In.newNoDocument(o,i),a=r.removedTargetIds||[];n=new hf([],a,s.key,s)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const o=f0(t,r.document),i=r.removedTargetIds||[];n=new hf([],i,o,null)}else{if(!("filter"in e))return ke();{e.filter;const r=e.filter;r.targetId;const{count:o=0,unchangedNames:i}=r,s=new o5(o,i),a=r.targetId;n=new qS(a,s)}}return n}function m5(t,e){let n;if(e instanceof Md)n={update:oA(t,e.key,e.value)};else if(e instanceof Xv)n={delete:Vg(t,e.key)};else if(e instanceof Za)n={update:oA(t,e.key,e.data),updateMask:x5(e.fieldMask)};else{if(!(e instanceof t5))return ke();n={verify:Vg(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((r=>(function(i,s){const a=s.transform;if(a instanceof Fp)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof ud)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof dd)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof Mp)return{fieldPath:s.field.canonicalString(),increment:a.Pe};throw ke()})(0,r)))),e.precondition.isNone||(n.currentDocument=(function(o,i){return i.updateTime!==void 0?{updateTime:f5(o,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:ke()})(t,e.precondition)),n}function g5(t,e){return t&&t.length>0?(ut(e!==void 0),t.map((n=>(function(o,i){let s=o.updateTime?li(o.updateTime):li(i);return s.isEqual(Ve.min())&&(s=li(i)),new J3(s,o.transformResults||[])})(n,e)))):[]}function y5(t,e){return{documents:[QS(t,e.path)]}}function v5(t,e){const n={structuredQuery:{}},r=e.path;let o;e.collectionGroup!==null?(o=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(o=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=QS(t,o);const i=(function(l){if(l.length!==0)return JS(Ur.create(l,"and"))})(e.filters);i&&(n.structuredQuery.where=i);const s=(function(l){if(l.length!==0)return l.map((u=>(function(f){return{field:wc(f.field),direction:w5(f.dir)}})(u)))})(e.orderBy);s&&(n.structuredQuery.orderBy=s);const a=kg(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),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)),{_t:n,parent:o}}function E5(t){let e=p5(t.parent);
1200const n=t.structuredQuery,r=n.from?n.from.length:0;let o=null;if(r>0){ut(r===1);const u=n.from[0];u.allDescendants?o=u.collectionId:e=e.child(u.collectionId)}let i=[];n.where&&(i=(function(d){const f=XS(d);return f instanceof Ur&&RS(f)?f.getFilters():[f]})(n.where));let s=[];n.orderBy&&(s=(function(d){return d.map((f=>(function(m){return new ld(Tc(m.field),(function(v){switch(v){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(m.direction))})(f)))})(n.orderBy));let a=null;n.limit&&(a=(function(d){let f;return f=typeof d=="object"?d.value:d,H_(f)?null:f})(n.limit));let c=null;n.startAt&&(c=(function(d){const f=!!d.before,_=d.values||[];return new Vp(_,f)})(n.startAt));let l=null;return n.endAt&&(l=(function(d){const f=!d.before,_=d.values||[];return new Vp(_,f)})(n.endAt)),B3(e,o,s,i,a,"F",c,l)}function b5(t,e){const n=(function(o){switch(o){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ke()}})(e.purpose);return n==null?null:{"goog-listen-tags":n}}function XS(t){return t.unaryFilter!==void 0?(function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Tc(n.unaryFilter.field);return zt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const o=Tc(n.unaryFilter.field);return zt.create(o,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=Tc(n.unaryFilter.field);return zt.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=Tc(n.unaryFilter.field);return zt.create(s,"!=",{nullValue:"NULL_VALUE"});default:return ke()}})(t):t.fieldFilter!==void 0?(function(n){return zt.create(Tc(n.fieldFilter.field),(function(o){switch(o){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 ke()}})(n.fieldFilter.op),n.fieldFilter.value)})(t):t.compositeFilter!==void 0?(function(n){return Ur.create(n.compositeFilter.filters.map((r=>XS(r))),(function(o){switch(o){case"AND":return"and";case"OR":return"or";default:return ke()}})(n.compositeFilter.op))})(t):ke()}function w5(t){return l5[t]}function T5(t){return u5[t]}function A5(t){return d5[t]}function wc(t){return{fieldPath:t.canonicalString()}}function Tc(t){return fn.fromServerFormat(t.fieldPath)}function JS(t){return t instanceof zt?(function(n){if(n.op==="=="){if(zT(n.value))return{unaryFilter:{field:wc(n.field),op:"IS_NAN"}};if(HT(n.value))return{unaryFilter:{field:wc(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(zT(n.value))return{unaryFilter:{field:wc(n.field),op:"IS_NOT_NAN"}};if(HT(n.value))return{unaryFilter:{field:wc(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:wc(n.field),op:T5(n.op),value:n.value}}})(t):t instanceof Ur?(function(n){const r=n.getFilters().map((o=>JS(o)));return r.length===1?r[0]:{compositeFilter:{op:A5(n.op),filters:r}}})(t):ke()}function x5(t){const e=[];return t.fields.forEach((n=>e.push(n.canonicalString()))),{fieldPaths:e}}function ZS(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** 1201 * @license 1202 * Copyright 2017 Google LLC 1203 * 1204 * Licensed under the Apache License, Version 2.0 (the "License"); 1205 * you may not use this file except in compliance with the License. 1206 * You may obtain a copy of the License at 1207 * 1208 * http://www.apache.org/licenses/LICENSE-2.0 1209 * 1210 * Unless required by applicable law or agreed to in writing, software 1211 * distributed under the License is distributed on an "AS IS" BASIS, 1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1213 * See the License for the specific language governing permissions and 1214 * limitations under the License. 1215 */class Ls{constructor(e,n,r,o,i=Ve.min(),s=Ve.min(),a=gn.EMPTY_BYTE_STRING,c=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=o,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(e){return new Ls(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Ls(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Ls(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Ls(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** 1216 * @license 1217 * Copyright 2017 Google LLC 1218 * 1219 * Licensed under the Apache License, Version 2.0 (the "License");
1220 * you may not use this file except in compliance with the License. 1221 * You may obtain a copy of the License at 1222 * 1223 * http://www.apache.org/licenses/LICENSE-2.0 1224 * 1225 * Unless required by applicable law or agreed to in writing, software 1226 * distributed under the License is distributed on an "AS IS" BASIS, 1227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1228 * See the License for the specific language governing permissions and 1229 * limitations under the License. 1230 */class I5{constructor(e){this.ct=e}}function R5(t){const e=E5({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?Lg(e,e.limit,"L"):e}/** 1231 * @license 1232 * Copyright 2019 Google LLC 1233 * 1234 * Licensed under the Apache License, Version 2.0 (the "License"); 1235 * you may not use this file except in compliance with the License. 1236 * You may obtain a copy of the License at 1237 * 1238 * http://www.apache.org/licenses/LICENSE-2.0 1239 * 1240 * Unless required by applicable law or agreed to in writing, software 1241 * distributed under the License is distributed on an "AS IS" BASIS, 1242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1243 * See the License for the specific language governing permissions and 1244 * limitations under the License. 1245 */class C5{constructor(){this.un=new P5}addToCollectionParentIndex(e,n){return this.un.add(n),me.resolve()}getCollectionParents(e,n){return me.resolve(this.un.getEntries(n))}addFieldIndex(e,n){return me.resolve()}deleteFieldIndex(e,n){return me.resolve()}deleteAllFieldIndexes(e){return me.resolve()}createTargetIndexes(e,n){return me.resolve()}getDocumentsMatchingTarget(e,n){return me.resolve(null)}getIndexType(e,n){return me.resolve(0)}getFieldIndexes(e,n){return me.resolve([])}getNextCollectionGroupToUpdate(e){return me.resolve(null)}getMinOffset(e,n){return me.resolve(zs.min())}getMinOffsetFromCollectionGroup(e,n){return me.resolve(zs.min())}updateCollectionGroup(e,n,r){return me.resolve()}updateIndexEntries(e,n){return me.resolve()}}class P5{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),o=this.index[n]||new _n(It.comparator),i=!o.has(r);return this.index[n]=o.add(r),i}has(e){const n=e.lastSegment(),r=e.popLast(),o=this.index[n];return o&&o.has(r)}getEntries(e){return(this.index[e]||new _n(It.comparator)).toArray()}}/** 1246 * @license 1247 * Copyright 2017 Google LLC 1248 * 1249 * Licensed under the Apache License, Version 2.0 (the "License"); 1250 * you may not use this file except in compliance with the License. 1251 * You may obtain a copy of the License at 1252 * 1253 * http://www.apache.org/licenses/LICENSE-2.0 1254 * 1255 * Unless required by applicable law or agreed to in writing, software 1256 * distributed under the License is distributed on an "AS IS" BASIS, 1257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1258 * See the License for the specific language governing permissions and 1259 * limitations under the License.
1260 */class el{constructor(e){this.Ln=e}next(){return this.Ln+=2,this.Ln}static Bn(){return new el(0)}static kn(){return new el(-1)}}/** 1261 * @license 1262 * Copyright 2017 Google LLC 1263 * 1264 * Licensed under the Apache License, Version 2.0 (the "License"); 1265 * you may not use this file except in compliance with the License. 1266 * You may obtain a copy of the License at 1267 * 1268 * http://www.apache.org/licenses/LICENSE-2.0 1269 * 1270 * Unless required by applicable law or agreed to in writing, software 1271 * distributed under the License is distributed on an "AS IS" BASIS, 1272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1273 * See the License for the specific language governing permissions and 1274 * limitations under the License. 1275 */class S5{constructor(){this.changes=new Il((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,In.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?me.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(){}}/** 1276 * @license 1277 * Copyright 2017 Google LLC 1278 * 1279 * Licensed under the Apache License, Version 2.0 (the "License"); 1280 * you may not use this file except in compliance with the License. 1281 * You may obtain a copy of the License at 1282 * 1283 * http://www.apache.org/licenses/LICENSE-2.0 1284 * 1285 * Unless required by applicable law or agreed to in writing, software 1286 * distributed under the License is distributed on an "AS IS" BASIS, 1287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1288 * See the License for the specific language governing permissions and 1289 * limitations under the License. 1290 *//** 1291 * @license 1292 * Copyright 2022 Google LLC 1293 * 1294 * Licensed under the Apache License, Version 2.0 (the "License"); 1295 * you may not use this file except in compliance with the License. 1296 * You may obtain a copy of the License at 1297 * 1298 * http://www.apache.org/licenses/LICENSE-2.0 1299 * 1300 * Unless required by applicable law or agreed to in writing, software 1301 * distributed under the License is distributed on an "AS IS" BASIS, 1302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1303 * See the License for the specific language governing permissions and 1304 * limitations under the License. 1305 */class O5{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 1306 * @license 1307 * Copyright 2017 Google LLC 1308 * 1309 * Licensed under the Apache License, Version 2.0 (the "License"); 1310 * you may not use this file except in compliance with the License. 1311 * You may obtain a copy of the License at 1312 * 1313 * http://www.apache.org/licenses/LICENSE-2.0 1314 * 1315 * Unless required by applicable law or agreed to in writing, software 1316 * distributed under the License is distributed on an "AS IS" BASIS, 1317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1318 * See the License for the specific language governing permissions and 1319 * limitations under the License. 1320 */class D5{constructor(e,n,r,o){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=o}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next((o=>(r=o,this.remoteDocumentCache.getEntry(e,n)))).next((o=>(r!==null&&Pu(r.mutation,o,Sr.empty(),Bt.now()),o)))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.getLocalViewOfDocuments(e,r,qe()).next((()=>r))))}getLocalViewOfDocuments(e,n,r=qe()){const o=va();return this.populateOverlays(e,o,n).next((()=>this.computeViews(e,n,o,r).next((i=>{let s=_u();return i.forEach(((a,c)=>{s=s.insert(a,c.overlayedDocument)})),s}))))}getOverlayedDocuments(e,n){const r=va();return this.populateOverlays(e,r,n).next((()=>this.computeViews(e,n,r,qe())))}populateOverlays(e,n,r){const o=[];return r.forEach((i=>{n.has(i)||o.push(i)})),this.documentOverlayCache.getOverlays(e,o).next((i=>{i.forEach(((s,a)=>{n.set(s,a)}))}))}computeViews(e,n,r,o){let i=os();const s=Cu(),a=(function(){return Cu()})();
1320return n.forEach(((c,l)=>{const u=r.get(l.key);o.has(l.key)&&(u===void 0||u.mutation instanceof Za)?i=i.insert(l.key,l):u!==void 0?(s.set(l.key,u.mutation.getFieldMask()),Pu(u.mutation,l,u.mutation.getFieldMask(),Bt.now())):s.set(l.key,Sr.empty())})),this.recalculateAndSaveOverlays(e,i).next((c=>(c.forEach(((l,u)=>s.set(l,u))),n.forEach(((l,u)=>{var d;return a.set(l,new O5(u,(d=s.get(l))!==null&&d!==void 0?d:null))})),a)))}recalculateAndSaveOverlays(e,n){const r=Cu();let o=new Gt(((s,a)=>s-a)),i=qe();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next((s=>{for(const a of s)a.keys().forEach((c=>{const l=n.get(c);if(l===null)return;let u=r.get(c)||Sr.empty();u=a.applyToLocalView(l,u),r.set(c,u);const d=(o.get(a.batchId)||qe()).add(c);o=o.insert(a.batchId,d)}))})).next((()=>{const s=[],a=o.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),l=c.key,u=c.value,d=VS();u.forEach((f=>{if(!i.has(f)){const _=jS(n.get(f),r.get(f));_!==null&&d.set(f,_),i=i.add(f)}})),s.push(this.documentOverlayCache.saveOverlays(e,l,d))}return me.waitFor(s)})).next((()=>r))}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next((r=>this.recalculateAndSaveOverlays(e,r)))}getDocumentsMatchingQuery(e,n,r,o){return(function(s){return Oe.isDocumentKey(s.path)&&s.collectionGroup===null&&s.filters.length===0})(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):OS(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,o):this.getDocumentsMatchingCollectionQuery(e,n,r,o)}getNextDocuments(e,n,r,o){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,o).next((i=>{const s=o-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,o-i.size):me.resolve(va());let a=-1,c=i;return s.next((l=>me.forEach(l,((u,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),i.get(u)?me.resolve():this.remoteDocumentCache.getEntry(e,u).next((f=>{c=c.insert(u,f)}))))).next((()=>this.populateOverlays(e,l,i))).next((()=>this.computeViews(e,c,l,qe()))).next((u=>({batchId:a,changes:NS(u)})))))}))}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new Oe(n)).next((r=>{let o=_u();return r.isFoundDocument()&&(o=o.insert(r.key,r)),o}))}getDocumentsMatchingCollectionGroupQuery(e,n,r,o){const i=n.collectionGroup;let s=_u();return this.indexManager.getCollectionParents(e,i).next((a=>me.forEach(a,(c=>{const l=(function(d,f){return new xl(f,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt)})(n,c.child(i));return this.getDocumentsMatchingCollectionQuery(e,l,r,o).next((u=>{u.forEach(((d,f)=>{s=s.insert(d,f)}))}))})).next((()=>s))))}getDocumentsMatchingCollectionQuery(e,n,r,o){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next((s=>(i=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,o)))).next((s=>{i.forEach(((c,l)=>{const u=l.getKey();s.get(u)===null&&(s=s.insert(u,In.newInvalidDocument(u)))}));let a=_u();return s.forEach(((c,l)=>{const u=i.get(c);u!==void 0&&Pu(u.mutation,l,Sr.empty(),Bt.now()),W_(n,l)&&(a=a.insert(c,l))})),a}))}}/** 1321 * @license 1322 * Copyright 2020 Google LLC 1323 * 1324 * Licensed under the Apache License, Version 2.0 (the "License"); 1325 * you may not use this file except in compliance with the License. 1326 * You may obtain a copy of the License at 1327 * 1328 * http://www.apache.org/licenses/LICENSE-2.0 1329 * 1330 * Unless required by applicable law or agreed to in writing, software 1331 * distributed under the License is distributed on an "AS IS" BASIS, 1332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1333 * See the License for the specific language governing permissions and 1334 * limitations under the License. 1335 */class L5{constructor(e){this.serializer=e,this.hr=new Map,this.Pr=new Map}getBundleMetadata(e,n){return me.resolve(this.hr.get(n))}saveBundleMetadata(e,n){return this.hr.set(n.id,(function(o){return{id:o.id,version:o.version,createTime:li(o.createTime)}})(n)),me.resolve()}getNamedQuery(e,n){return me.resolve(this.Pr.get(n))}saveNamedQuery(e,n){return this.Pr.set(n.name,(function(o){return{name:o.name,query:R5(o.bundledQuery),readTime:li(o.readTime)}})(n)),me.resolve()}}/** 1336 * @license 1337 * Copyright 2022 Google LLC 1338 * 1339 * Licensed under the Apache License, Version 2.0 (the "License");
1340 * you may not use this file except in compliance with the License. 1341 * You may obtain a copy of the License at 1342 * 1343 * http://www.apache.org/licenses/LICENSE-2.0 1344 * 1345 * Unless required by applicable law or agreed to in writing, software 1346 * distributed under the License is distributed on an "AS IS" BASIS, 1347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1348 * See the License for the specific language governing permissions and 1349 * limitations under the License. 1350 */class k5{constructor(){this.overlays=new Gt(Oe.comparator),this.Ir=new Map}getOverlay(e,n){return me.resolve(this.overlays.get(n))}getOverlays(e,n){const r=va();return me.forEach(n,(o=>this.getOverlay(e,o).next((i=>{i!==null&&r.set(o,i)})))).next((()=>r))}saveOverlays(e,n,r){return r.forEach(((o,i)=>{this.ht(e,n,i)})),me.resolve()}removeOverlaysForBatchId(e,n,r){const o=this.Ir.get(r);return o!==void 0&&(o.forEach((i=>this.overlays=this.overlays.remove(i))),this.Ir.delete(r)),me.resolve()}getOverlaysForCollection(e,n,r){const o=va(),i=n.length+1,s=new Oe(n.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const c=a.getNext().value,l=c.getKey();if(!n.isPrefixOf(l.path))break;l.path.length===i&&c.largestBatchId>r&&o.set(c.getKey(),c)}return me.resolve(o)}getOverlaysForCollectionGroup(e,n,r,o){let i=new Gt(((l,u)=>l-u));const s=this.overlays.getIterator();for(;s.hasNext();){const l=s.getNext().value;if(l.getKey().getCollectionGroup()===n&&l.largestBatchId>r){let u=i.get(l.largestBatchId);u===null&&(u=va(),i=i.insert(l.largestBatchId,u)),u.set(l.getKey(),l)}}const a=va(),c=i.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach(((l,u)=>a.set(l,u))),!(a.size()>=o)););return me.resolve(a)}ht(e,n,r){const o=this.overlays.get(r.key);if(o!==null){const s=this.Ir.get(o.largestBatchId).delete(r.key);this.Ir.set(o.largestBatchId,s)}this.overlays=this.overlays.insert(r.key,new r5(n,r));let i=this.Ir.get(n);i===void 0&&(i=qe(),this.Ir.set(n,i)),this.Ir.set(n,i.add(r.key))}}/** 1351 * @license 1352 * Copyright 2024 Google LLC 1353 * 1354 * Licensed under the Apache License, Version 2.0 (the "License"); 1355 * you may not use this file except in compliance with the License. 1356 * You may obtain a copy of the License at 1357 * 1358 * http://www.apache.org/licenses/LICENSE-2.0 1359 * 1360 * Unless required by applicable law or agreed to in writing, software 1361 * distributed under the License is distributed on an "AS IS" BASIS, 1362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1363 * See the License for the specific language governing permissions and 1364 * limitations under the License. 1365 */class N5{constructor(){this.sessionToken=gn.EMPTY_BYTE_STRING}getSessionToken(e){return me.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,me.resolve()}}/** 1366 * @license 1367 * Copyright 2017 Google LLC 1368 * 1369 * Licensed under the Apache License, Version 2.0 (the "License"); 1370 * you may not use this file except in compliance with the License. 1371 * You may obtain a copy of the License at 1372 * 1373 * http://www.apache.org/licenses/LICENSE-2.0 1374 * 1375 * Unless required by applicable law or agreed to in writing, software 1376 * distributed under the License is distributed on an "AS IS" BASIS, 1377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1378 * See the License for the specific language governing permissions and 1379 * limitations under the License. 1380 */class tE{constructor(){this.Tr=new _n(Zt.Er),this.dr=new _n(Zt.Ar)}isEmpty(){return this.Tr.isEmpty()}addReference(e,n){const r=new Zt(e,n);this.Tr=this.Tr.add(r),this.dr=this.dr.add(r)}Rr(e,n){e.forEach((r=>this.addReference(r,n)))}removeReference(e,n){this.Vr(new Zt(e,n))}mr(e,n){e.forEach((r=>this.removeReference(r,n)))}gr(e){const n=new Oe(new It([])),r=new Zt(n,e),o=new Zt(n,e+1),i=[];return this.dr.forEachInRange([r,o],(s=>{this.Vr(s),i.push(s.key)})),i}pr(){this.Tr.forEach((e=>this.Vr(e)))}Vr(e){this.Tr=this.Tr.delete(e),this.dr=this.dr.delete(e)}yr(e){const n=new Oe(new It([])),r=new Zt(n,e),o=new Zt(n,e+1);let i=qe();return this.dr.forEachInRange([r,o],(s=>{i=i.add(s.key)})),i}containsKey(e){const n=new Zt(e,0),r=this.Tr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Zt{constructor(e,n){this.key=e,this.wr=n}static Er(e,n){return Oe.comparator(e.key,n.key)||tt(e.wr,n.wr)}static Ar(e,n){return tt(e.wr,n.wr)||Oe.comparator(e.key,n.key)}}/** 1381 * @license 1382 * Copyright 2017 Google LLC 1383 * 1384 * Licensed under the Apache License, Version 2.0 (the "License");
1385 * you may not use this file except in compliance with the License. 1386 * You may obtain a copy of the License at 1387 * 1388 * http://www.apache.org/licenses/LICENSE-2.0 1389 * 1390 * Unless required by applicable law or agreed to in writing, software 1391 * distributed under the License is distributed on an "AS IS" BASIS, 1392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1393 * See the License for the specific language governing permissions and 1394 * limitations under the License. 1395 */class V5{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Sr=1,this.br=new _n(Zt.Er)}checkEmpty(e){return me.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,o){const i=this.Sr;this.Sr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new n5(i,n,r,o);this.mutationQueue.push(s);for(const a of o)this.br=this.br.add(new Zt(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return me.resolve(s)}lookupMutationBatch(e,n){return me.resolve(this.Dr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,o=this.vr(r),i=o<0?0:o;return me.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return me.resolve(this.mutationQueue.length===0?-1:this.Sr-1)}getAllMutationBatches(e){return me.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Zt(n,0),o=new Zt(n,Number.POSITIVE_INFINITY),i=[];return this.br.forEachInRange([r,o],(s=>{const a=this.Dr(s.wr);i.push(a)})),me.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new _n(tt);return n.forEach((o=>{const i=new Zt(o,0),s=new Zt(o,Number.POSITIVE_INFINITY);this.br.forEachInRange([i,s],(a=>{r=r.add(a.wr)}))})),me.resolve(this.Cr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,o=r.length+1;let i=r;Oe.isDocumentKey(i)||(i=i.child(""));const s=new Zt(new Oe(i),0);let a=new _n(tt);return this.br.forEachWhile((c=>{const l=c.key.path;return!!r.isPrefixOf(l)&&(l.length===o&&(a=a.add(c.wr)),!0)}),s),me.resolve(this.Cr(a))}Cr(e){const n=[];return e.forEach((r=>{const o=this.Dr(r);o!==null&&n.push(o)})),n}removeMutationBatch(e,n){ut(this.Fr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.br;return me.forEach(n.mutations,(o=>{const i=new Zt(o.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,o.key)})).next((()=>{this.br=r}))}On(e){}containsKey(e,n){const r=new Zt(n,0),o=this.br.firstAfterOrEqual(r);return me.resolve(n.isEqual(o&&o.key))}performConsistencyCheck(e){return this.mutationQueue.length,me.resolve()}Fr(e,n){return this.vr(e)}vr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Dr(e){const n=this.vr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 1396 * @license 1397 * Copyright 2017 Google LLC 1398 * 1399 * Licensed under the Apache License, Version 2.0 (the "License"); 1400 * you may not use this file except in compliance with the License. 1401 * You may obtain a copy of the License at 1402 * 1403 * http://www.apache.org/licenses/LICENSE-2.0 1404 * 1405 * Unless required by applicable law or agreed to in writing, software 1406 * distributed under the License is distributed on an "AS IS" BASIS, 1407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1408 * See the License for the specific language governing permissions and 1409 * limitations under the License. 1410 */class F5{constructor(e){this.Mr=e,this.docs=(function(){return new Gt(Oe.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,o=this.docs.get(r),i=o?o.size:0,s=this.Mr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:s}),this.size+=s-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 me.resolve(r?r.document.mutableCopy():In.newInvalidDocument(n))}getEntries(e,n){let r=os();return n.forEach((o=>{const i=this.docs.get(o);r=r.insert(o,i?i.document.mutableCopy():In.newInvalidDocument(o))})),me.resolve(r)}getDocumentsMatchingQuery(e,n,r,o){let i=os();const s=n.path,a=new Oe(s.child("")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:l,value:{document:u}}=c.getNext();if(!s.isPrefixOf(l.path))break;l.path.length>s.length+1||E3(v3(u),r)<=0||(o.has(u.key)||W_(n,u))&&(i=i.insert(u.key,u.mutableCopy()))}return me.resolve(i)}getAllFromCollectionGroup(e,n,r,o){ke()}Or(e,n){return me.forEach(this.docs,(r=>n(r)))}newChangeBuffer(e){return new M5(this)}getSize(e){return me.resolve(this.size)}}class M5 extends S5{constructor(e){super(),this.cr=e}applyChanges(e){const n=[];
vendor: 9,548 bytes, lines 1410-1485
1410return this.changes.forEach(((r,o)=>{o.isValidDocument()?n.push(this.cr.addEntry(e,o)):this.cr.removeEntry(r)})),me.waitFor(n)}getFromCache(e,n){return this.cr.getEntry(e,n)}getAllFromCache(e,n){return this.cr.getEntries(e,n)}}/** 1411 * @license 1412 * Copyright 2017 Google LLC 1413 * 1414 * Licensed under the Apache License, Version 2.0 (the "License"); 1415 * you may not use this file except in compliance with the License. 1416 * You may obtain a copy of the License at 1417 * 1418 * http://www.apache.org/licenses/LICENSE-2.0 1419 * 1420 * Unless required by applicable law or agreed to in writing, software 1421 * distributed under the License is distributed on an "AS IS" BASIS, 1422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1423 * See the License for the specific language governing permissions and 1424 * limitations under the License. 1425 */class B5{constructor(e){this.persistence=e,this.Nr=new Il((n=>Gv(n)),Qv),this.lastRemoteSnapshotVersion=Ve.min(),this.highestTargetId=0,this.Lr=0,this.Br=new tE,this.targetCount=0,this.kr=el.Bn()}forEachTarget(e,n){return this.Nr.forEach(((r,o)=>n(o))),me.resolve()}getLastRemoteSnapshotVersion(e){return me.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return me.resolve(this.Lr)}allocateTargetId(e){return this.highestTargetId=this.kr.next(),me.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Lr&&(this.Lr=n),me.resolve()}Kn(e){this.Nr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.kr=new el(n),this.highestTargetId=n),e.sequenceNumber>this.Lr&&(this.Lr=e.sequenceNumber)}addTargetData(e,n){return this.Kn(n),this.targetCount+=1,me.resolve()}updateTargetData(e,n){return this.Kn(n),me.resolve()}removeTargetData(e,n){return this.Nr.delete(n.target),this.Br.gr(n.targetId),this.targetCount-=1,me.resolve()}removeTargets(e,n,r){let o=0;const i=[];return this.Nr.forEach(((s,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.Nr.delete(s),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),o++)})),me.waitFor(i).next((()=>o))}getTargetCount(e){return me.resolve(this.targetCount)}getTargetData(e,n){const r=this.Nr.get(n)||null;return me.resolve(r)}addMatchingKeys(e,n,r){return this.Br.Rr(n,r),me.resolve()}removeMatchingKeys(e,n,r){this.Br.mr(n,r);const o=this.persistence.referenceDelegate,i=[];return o&&n.forEach((s=>{i.push(o.markPotentiallyOrphaned(e,s))})),me.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.Br.gr(n),me.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Br.yr(n);return me.resolve(r)}containsKey(e,n){return me.resolve(this.Br.containsKey(n))}}/** 1426 * @license 1427 * Copyright 2017 Google LLC 1428 * 1429 * Licensed under the Apache License, Version 2.0 (the "License"); 1430 * you may not use this file except in compliance with the License. 1431 * You may obtain a copy of the License at 1432 * 1433 * http://www.apache.org/licenses/LICENSE-2.0 1434 * 1435 * Unless required by applicable law or agreed to in writing, software 1436 * distributed under the License is distributed on an "AS IS" BASIS, 1437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1438 * See the License for the specific language governing permissions and 1439 * limitations under the License. 1440 */class U5{constructor(e,n){this.qr={},this.overlays={},this.Qr=new zv(0),this.Kr=!1,this.Kr=!0,this.$r=new N5,this.referenceDelegate=e(this),this.Ur=new B5(this),this.indexManager=new C5,this.remoteDocumentCache=(function(o){return new F5(o)})((r=>this.referenceDelegate.Wr(r))),this.serializer=new I5(n),this.Gr=new L5(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Kr=!1,Promise.resolve()}get started(){return this.Kr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new k5,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.qr[e.toKey()];return r||(r=new V5(n,this.referenceDelegate),this.qr[e.toKey()]=r),r}getGlobalsCache(){return this.$r}getTargetCache(){return this.Ur}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Gr}runTransaction(e,n,r){Ce("MemoryPersistence","Starting transaction:",e);const o=new $5(this.Qr.next());return this.referenceDelegate.zr(),r(o).next((i=>this.referenceDelegate.jr(o).next((()=>i)))).toPromise().then((i=>(o.raiseOnCommittedEvent(),i)))}Hr(e,n){return me.or(Object.values(this.qr).map((r=>()=>r.containsKey(e,n))))}}class $5 extends w3{constructor(e){super(),this.currentSequenceNumber=e}}class nE{constructor(e){this.persistence=e,this.Jr=new tE,this.Yr=null}static Zr(e){return new nE(e)}get Xr(){if(this.Yr)return this.Yr;throw ke()}addReference(e,n,r){return this.Jr.addReference(r,n),this.Xr.delete(r.toString()),me.resolve()}removeReference(e,n,r){return this.Jr.removeReference(r,n),this.Xr.add(r.toString()),me.resolve()}markPotentiallyOrphaned(e,n){return this.Xr.add(n.toString()),me.resolve()}removeTarget(e,n){this.Jr.gr(n.targetId).forEach((o=>this.Xr.add(o.toString())));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next((o=>{o.forEach((i=>this.Xr.add(i.toString())))})).next((()=>r.removeTargetData(e,n)))}zr(){this.Yr=new Set}jr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return me.forEach(this.Xr,(r=>{const o=Oe.fromPath(r);return this.ei(e,o).next((i=>{i||n.removeEntry(o,Ve.min())}))})).next((()=>(this.Yr=null,n.apply(e))))}updateLimboDocument(e,n){return this.ei(e,n).next((r=>{r?this.Xr.delete(n.toString()):this.Xr.add(n.toString())}))}Wr(e){return 0}ei(e,n){return me.or([()=>me.resolve(this.Jr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Hr(e,n)])}}/** 1441 * @license 1442 * Copyright 2017 Google LLC 1443 * 1444 * Licensed under the Apache License, Version 2.0 (the "License"); 1445 * you may not use this file except in compliance with the License. 1446 * You may obtain a copy of the License at 1447 * 1448 * http://www.apache.org/licenses/LICENSE-2.0 1449 * 1450 * Unless required by applicable law or agreed to in writing, software 1451 * distributed under the License is distributed on an "AS IS" BASIS, 1452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1453 * See the License for the specific language governing permissions and 1454 * limitations under the License. 1455 */class rE{constructor(e,n,r,o){this.targetId=e,this.fromCache=n,this.$i=r,this.Ui=o}static Wi(e,n){let r=qe(),o=qe();for(const i of n.docChanges)switch(i.type){case 0:r=r.add(i.doc.key);break;case 1:o=o.add(i.doc.key)}return new rE(e,n.fromCache,r,o)}}/** 1456 * @license 1457 * Copyright 2023 Google LLC 1458 * 1459 * Licensed under the Apache License, Version 2.0 (the "License"); 1460 * you may not use this file except in compliance with the License. 1461 * You may obtain a copy of the License at 1462 * 1463 * http://www.apache.org/licenses/LICENSE-2.0 1464 * 1465 * Unless required by applicable law or agreed to in writing, software 1466 * distributed under the License is distributed on an "AS IS" BASIS, 1467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1468 * See the License for the specific language governing permissions and 1469 * limitations under the License. 1470 */class j5{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 1471 * @license 1472 * Copyright 2019 Google LLC 1473 * 1474 * Licensed under the Apache License, Version 2.0 (the "License"); 1475 * you may not use this file except in compliance with the License. 1476 * You may obtain a copy of the License at 1477 * 1478 * http://www.apache.org/licenses/LICENSE-2.0 1479 * 1480 * Unless required by applicable law or agreed to in writing, software 1481 * distributed under the License is distributed on an "AS IS" BASIS, 1482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1483 * See the License for the specific language governing permissions and 1484 * limitations under the License. 1485 */class H5{constructor(){this.Gi=!1,this.zi=!1,this.ji=100,this.Hi=(function(){return H8()?8:T3(Ln())>0?6:4})()}initialize(e,n){this.Ji=e,this.indexManager=n,this.Gi=!0}getDocumentsMatchingQuery(e,n,r,o){const i={result:null};return this.Yi(e,n).next((s=>{i.result=s})).next((()=>{if(!i.result)return this.Zi(e,n,o,r).next((s=>{i.result=s}))})).next((()=>{if(i.result)return;const s=new j5;return this.Xi(e,n,s).next((a=>{if(i.result=a,this.zi)return this.es(e,n,s,a.size)}))})).next((()=>i.result))}es(e,n,r,o){return r.documentReadCount<this.ji?(Zl()<=He.DEBUG&&Ce("QueryEngine","SDK will not create cache indexes for query:",bc(n),"since it only creates cache indexes for collection contains","more than or equal to",this.ji,"documents"),me.resolve()):(Zl()<=He.DEBUG&&Ce("QueryEngine","Query:",bc(n),"scans",r.documentReadCount,"local documents and returns",o,"documents as results."),r.documentReadCount>this.Hi*o?(Zl()<=He.DEBUG&&Ce("QueryEngine","The SDK decides to create cache indexes for query:",bc(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ci(n))):me.resolve())}Yi(e,n){if(GT(n))return me.resolve(null);let r=ci(n);return this.indexManager.getIndexType(e,r).next((o=>o===0?null:(n.limit!==null&&o===1&&(n=Lg(n,null,"F"),r=ci(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next((i=>{const s=qe(...i);return this.Ji.getDocuments(e,s).next((a=>this.indexManager.getMinOffset(e,r).next((c=>{const l=this.ts(n,a);return this.ns(n,l,s,c.readTime)?this.Yi(e,Lg(n,null,"F")):this.rs(e,l,n,c)}))))}
1485)))))}Zi(e,n,r,o){return GT(n)||o.isEqual(Ve.min())?me.resolve(null):this.Ji.getDocuments(e,r).next((i=>{const s=this.ts(n,i);return this.ns(n,s,r,o)?me.resolve(null):(Zl()<=He.DEBUG&&Ce("QueryEngine","Re-using previous result from %s to execute query: %s",o.toString(),bc(n)),this.rs(e,s,n,y3(o,-1)).next((a=>a)))}))}ts(e,n){let r=new _n(LS(e));return n.forEach(((o,i)=>{W_(e,i)&&(r=r.add(i))})),r}ns(e,n,r,o){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(o)>0)}Xi(e,n,r){return Zl()<=He.DEBUG&&Ce("QueryEngine","Using full collection scan to execute query:",bc(n)),this.Ji.getDocumentsMatchingQuery(e,n,zs.min(),r)}rs(e,n,r,o){return this.Ji.getDocumentsMatchingQuery(e,r,o).next((i=>(n.forEach((s=>{i=i.insert(s.key,s)})),i)))}}/** 1486 * @license 1487 * Copyright 2020 Google LLC 1488 * 1489 * Licensed under the Apache License, Version 2.0 (the "License"); 1490 * you may not use this file except in compliance with the License. 1491 * You may obtain a copy of the License at 1492 * 1493 * http://www.apache.org/licenses/LICENSE-2.0 1494 * 1495 * Unless required by applicable law or agreed to in writing, software 1496 * distributed under the License is distributed on an "AS IS" BASIS, 1497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1498 * See the License for the specific language governing permissions and 1499 * limitations under the License. 1500 */class z5{constructor(e,n,r,o){this.persistence=e,this.ss=n,this.serializer=o,this.os=new Gt(tt),this._s=new Il((i=>Gv(i)),Qv),this.us=new Map,this.cs=e.getRemoteDocumentCache(),this.Ur=e.getTargetCache(),this.Gr=e.getBundleCache(),this.ls(r)}ls(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new D5(this.cs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.cs.setIndexManager(this.indexManager),this.ss.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(n=>e.collect(n,this.os)))}}function q5(t,e,n,r){return new z5(t,e,n,r)}async function eO(t,e){const n=Fe(t);return await n.persistence.runTransaction("Handle user change","readonly",(r=>{let o;
1500return n.mutationQueue.getAllMutationBatches(r).next((i=>(o=i,n.ls(e),n.mutationQueue.getAllMutationBatches(r)))).next((i=>{const s=[],a=[];let c=qe();for(const l of o){s.push(l.batchId);for(const u of l.mutations)c=c.add(u.key)}for(const l of i){a.push(l.batchId);for(const u of l.mutations)c=c.add(u.key)}return n.localDocuments.getDocuments(r,c).next((l=>({hs:l,removedBatchIds:s,addedBatchIds:a})))}))}))}function W5(t,e){const n=Fe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(r=>{const o=e.batch.keys(),i=n.cs.newChangeBuffer({trackRemovals:!0});return(function(a,c,l,u){const d=l.batch,f=d.keys();let _=me.resolve();return f.forEach((m=>{_=_.next((()=>u.getEntry(c,m))).next((y=>{const v=l.docVersions.get(m);ut(v!==null),y.version.compareTo(v)<0&&(d.applyToRemoteDocument(y,l),y.isValidDocument()&&(y.setReadTime(l.commitVersion),u.addEntry(y)))}))})),_.next((()=>a.mutationQueue.removeMutationBatch(c,d)))})(n,r,e,i).next((()=>i.apply(r))).next((()=>n.mutationQueue.performConsistencyCheck(r))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(r,o,e.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,(function(a){let c=qe();for(let l=0;l<a.mutationResults.length;++l)a.mutationResults[l].transformResults.length>0&&(c=c.add(a.batch.mutations[l].key));return c})(e)))).next((()=>n.localDocuments.getDocuments(r,o)))}))}function tO(t){const e=Fe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(n=>e.Ur.getLastRemoteSnapshotVersion(n)))}function K5(t,e){const n=Fe(t),r=e.snapshotVersion;let o=n.os;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(i=>{const s=n.cs.newChangeBuffer({trackRemovals:!0});o=n.os;const a=[];
1500e.targetChanges.forEach(((u,d)=>{const f=o.get(d);if(!f)return;a.push(n.Ur.removeMatchingKeys(i,u.removedDocuments,d).next((()=>n.Ur.addMatchingKeys(i,u.addedDocuments,d))));let _=f.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(d)!==null?_=_.withResumeToken(gn.EMPTY_BYTE_STRING,Ve.min()).withLastLimboFreeSnapshotVersion(Ve.min()):u.resumeToken.approximateByteSize()>0&&(_=_.withResumeToken(u.resumeToken,r)),o=o.insert(d,_),(function(y,v,T){return y.resumeToken.approximateByteSize()===0||v.snapshotVersion.toMicroseconds()-y.snapshotVersion.toMicroseconds()>=3e8?!0:T.addedDocuments.size+T.modifiedDocuments.size+T.removedDocuments.size>0})(f,_,u)&&a.push(n.Ur.updateTargetData(i,_))}));let c=os(),l=qe();if(e.documentUpdates.forEach((u=>{e.resolvedLimboDocuments.has(u)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,u))})),a.push(G5(i,s,e.documentUpdates).next((u=>{c=u.Ps,l=u.Is}))),!r.isEqual(Ve.min())){const u=n.Ur.getLastRemoteSnapshotVersion(i).next((d=>n.Ur.setTargetsMetadata(i,i.currentSequenceNumber,r)));a.push(u)}return me.waitFor(a).next((()=>s.apply(i))).next((()=>n.localDocuments.getLocalViewOfDocuments(i,c,l))).next((()=>c))})).then((i=>(n.os=o,i)))}function G5(t,e,n){let r=qe(),o=qe();return n.forEach((i=>r=r.add(i))),e.getEntries(t,r).next((i=>{let s=os();return n.forEach(((a,c)=>{const l=i.get(a);c.isFoundDocument()!==l.isFoundDocument()&&(o=o.add(a)),c.isNoDocument()&&c.version.isEqual(Ve.min())?(e.removeEntry(a,c.readTime),s=s.insert(a,c)):!l.isValidDocument()||c.version.compareTo(l.version)>0||c.version.compareTo(l.version)===0&&l.hasPendingWrites?(e.addEntry(c),s=s.insert(a,c)):Ce("LocalStore","Ignoring outdated watch update for ",a,". Current version:",l.version," Watch version:",c.version)})),{Ps:s,Is:o}}))}function Q5(t,e){const n=Fe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e))))}function Y5(t,e){const n=Fe(t);return n.persistence.runTransaction("Allocate target","readwrite",(r=>{let o;return n.Ur.getTargetData(r,e).next((i=>i?(o=i,me.resolve(o)):n.Ur.allocateTargetId(r).next((s=>(o=new Ls(e,s,"TargetPurposeListen",r.currentSequenceNumber),n.Ur.addTargetData(r,o).next((()=>o)))))))})).then((r=>{const o=n.os.get(r.targetId);return(o===null||r.snapshotVersion.compareTo(o.snapshotVersion)>0)&&(n.os=n.os.insert(r.targetId,r),n._s.set(e,r.targetId)),r}))}async function Mg(t,e,n){const r=Fe(t),o=r.os.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,(s=>r.persistence.referenceDelegate.removeTarget(s,o)))}catch(s){if(!Fd(s))throw s;Ce("LocalStore",`Failed to update sequence numbers for target ${e}: ${s}`)}r.os=r.os.remove(e),r._s.delete(o.target)}function iA(t,e,n){const r=Fe(t);let o=Ve.min(),i=qe();return r.persistence.runTransaction("Execute query","readwrite",(s=>(function(c,l,u){const d=Fe(c),f=d._s.get(u);return f!==void 0?me.resolve(d.os.get(f)):d.Ur.getTargetData(l,u)})(r,s,ci(e)).next((a=>{if(a)return o=a.lastLimboFreeSnapshotVersion,r.Ur.getMatchingKeysForTargetId(s,a.targetId).next((c=>{i=c}))})).next((()=>r.ss.getDocumentsMatchingQuery(s,e,n?o:Ve.min(),n?i:qe()))).next((a=>(X5(r,$3(e),a),{documents:a,Ts:i})))))}function X5(t,e,n){let r=t.us.get(e)||Ve.min();n.forEach(((o,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)})),t.us.set(e,r)}class sA{constructor(){this.activeTargetIds=K3()}fs(e){this.activeTargetIds=this.activeTargetIds.add(e)}gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Vs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class J5{constructor(){this.so=new sA,this.oo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.so.fs(e),this.oo[e]||"not-current"}updateQueryState(e,n,r){this.oo[e]=n}removeLocalQueryTarget(e){this.so.gs(e)}isLocalQueryTarget(e){return this.so.activeTargetIds.has(e)}clearQueryState(e){delete this.oo[e]}getAllActiveQueryTargets(){return this.so.activeTargetIds}isActiveQueryTarget(e){return this.so.activeTargetIds.has(e)}start(){return this.so=new sA,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 1501 * @license 1502 * Copyright 2019 Google LLC 1503 * 1504 * Licensed under the Apache License, Version 2.0 (the "License");
1505 * you may not use this file except in compliance with the License. 1506 * You may obtain a copy of the License at 1507 * 1508 * http://www.apache.org/licenses/LICENSE-2.0 1509 * 1510 * Unless required by applicable law or agreed to in writing, software 1511 * distributed under the License is distributed on an "AS IS" BASIS, 1512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1513 * See the License for the specific language governing permissions and 1514 * limitations under the License. 1515 */class Z5{_o(e){}shutdown(){}}/** 1516 * @license 1517 * Copyright 2019 Google LLC 1518 * 1519 * Licensed under the Apache License, Version 2.0 (the "License"); 1520 * you may not use this file except in compliance with the License. 1521 * You may obtain a copy of the License at 1522 * 1523 * http://www.apache.org/licenses/LICENSE-2.0 1524 * 1525 * Unless required by applicable law or agreed to in writing, software 1526 * distributed under the License is distributed on an "AS IS" BASIS, 1527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1528 * See the License for the specific language governing permissions and 1529 * limitations under the License. 1530 */class aA{constructor(){this.ao=()=>this.uo(),this.co=()=>this.lo(),this.ho=[],this.Po()}_o(e){this.ho.push(e)}shutdown(){window.removeEventListener("online",this.ao),window.removeEventListener("offline",this.co)}Po(){window.addEventListener("online",this.ao),window.addEventListener("offline",this.co)}uo(){Ce("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.ho)e(0)}lo(){Ce("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.ho)e(1)}static D(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 1531 * @license 1532 * Copyright 2023 Google LLC 1533 * 1534 * Licensed under the Apache License, Version 2.0 (the "License"); 1535 * you may not use this file except in compliance with the License. 1536 * You may obtain a copy of the License at 1537 * 1538 * http://www.apache.org/licenses/LICENSE-2.0 1539 * 1540 * Unless required by applicable law or agreed to in writing, software 1541 * distributed under the License is distributed on an "AS IS" BASIS, 1542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1543 * See the License for the specific language governing permissions and 1544 * limitations under the License. 1545 */let Bh=null;function p0(){return Bh===null?Bh=(function(){return 268435456+Math.round(2147483648*Math.random())})():Bh++,"0x"+Bh.toString(16)}/** 1546 * @license 1547 * Copyright 2020 Google LLC 1548 * 1549 * Licensed under the Apache License, Version 2.0 (the "License"); 1550 * you may not use this file except in compliance with the License. 1551 * You may obtain a copy of the License at 1552 * 1553 * http://www.apache.org/licenses/LICENSE-2.0 1554 * 1555 * Unless required by applicable law or agreed to in writing, software 1556 * distributed under the License is distributed on an "AS IS" BASIS, 1557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1558 * See the License for the specific language governing permissions and 1559 * limitations under the License. 1560 */const eU={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};/** 1561 * @license 1562 * Copyright 2017 Google LLC 1563 * 1564 * Licensed under the Apache License, Version 2.0 (the "License"); 1565 * you may not use this file except in compliance with the License. 1566 * You may obtain a copy of the License at 1567 * 1568 * http://www.apache.org/licenses/LICENSE-2.0 1569 * 1570 * Unless required by applicable law or agreed to in writing, software 1571 * distributed under the License is distributed on an "AS IS" BASIS, 1572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1573 * See the License for the specific language governing permissions and 1574 * limitations under the License. 1575 */class tU{constructor(e){this.Io=e.Io,this.To=e.To}Eo(e){this.Ao=e}Ro(e){this.Vo=e}mo(e){this.fo=e}onMessage(e){this.po=e}close(){this.To()}send(e){this.Io(e)}yo(){this.Ao()}wo(){this.Vo()}So(e){this.fo(e)}bo(e){this.po(e)}}/** 1576 * @license 1577 * Copyright 2017 Google LLC 1578 * 1579 * Licensed under the Apache License, Version 2.0 (the "License");
1580 * you may not use this file except in compliance with the License. 1581 * You may obtain a copy of the License at 1582 * 1583 * http://www.apache.org/licenses/LICENSE-2.0 1584 * 1585 * Unless required by applicable law or agreed to in writing, software 1586 * distributed under the License is distributed on an "AS IS" BASIS, 1587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1588 * See the License for the specific language governing permissions and 1589 * limitations under the License. 1590 */const En="WebChannelConnection";class nU extends class{constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const r=n.ssl?"https":"http",o=encodeURIComponent(this.databaseId.projectId),i=encodeURIComponent(this.databaseId.database);this.Do=r+"://"+n.host,this.vo=`projects/${o}/databases/${i}`,this.Co=this.databaseId.database==="(default)"?`project_id=${o}`:`project_id=${o}&database_id=${i}`}get Fo(){return!1}Mo(n,r,o,i,s){const a=p0(),c=this.xo(n,r.toUriEncodedString());Ce("RestConnection",`Sending RPC '${n}' ${a}:`,c,o);const l={"google-cloud-resource-prefix":this.vo,"x-goog-request-params":this.Co};return this.Oo(l,i,s),this.No(n,c,l,o).then((u=>(Ce("RestConnection",`Received RPC '${n}' ${a}: `,u),u)),(u=>{throw Yc("RestConnection",`RPC '${n}' ${a} failed with error: `,u,"url: ",c,"request:",o),u}))}Lo(n,r,o,i,s,a){return this.Mo(n,r,o,i,s)}Oo(n,r,o){n["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+Tl})(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach(((i,s)=>n[s]=i)),o&&o.headers.forEach(((i,s)=>n[s]=i))}xo(n,r){const o=eU[n];return`${this.Do}/v1/${r}:${o}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}No(e,n,r,o){const i=p0();return new Promise(((s,a)=>{const c=new _S;c.setWithCredentials(!0),c.listenOnce(mS.COMPLETE,(()=>{try{switch(c.getLastErrorCode()){case lf.NO_ERROR:const u=c.getResponseJson();Ce(En,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(u)),s(u);break;case lf.TIMEOUT:Ce(En,`RPC '${e}' ${i} timed out`),a(new Ie(de.DEADLINE_EXCEEDED,"Request time out"));break;case lf.HTTP_ERROR:const d=c.getStatus();if(Ce(En,`RPC '${e}' ${i} failed with status:`,d,"response text:",c.getResponseText()),d>0){let f=c.getResponseJson();Array.isArray(f)&&(f=f[0]);const _=f?.error;if(_&&_.status&&_.message){const m=(function(v){const T=v.toLowerCase().replace(/_/g,"-");return Object.values(de).indexOf(T)>=0?T:de.UNKNOWN})(_.status);a(new Ie(m,_.message))}else a(new Ie(de.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new Ie(de.UNAVAILABLE,"Connection failed."));break;default:ke()}}finally{Ce(En,`RPC '${e}' ${i} completed.`)}}));const l=JSON.stringify(o);Ce(En,`RPC '${e}' ${i} sending request:`,o),c.send(n,"POST",l,r,15)}))}Bo(e,n,r){const o=p0(),i=[this.Do,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=vS(),a=yS(),c={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},l=this.longPollingOptions.timeoutSeconds;l!==void 0&&(c.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(c.useFetchStreams=!0),this.Oo(c.initMessageHeaders,n,r),c.encodeInitMessageHeaders=!0;const u=i.join("");Ce(En,`Creating RPC '${e}' stream ${o}: ${u}`,c);const d=s.createWebChannel(u,c);let f=!1,_=!1;const m=new tU({Io:v=>{_?Ce(En,`Not sending because RPC '${e}' stream ${o} is closed:`,v):(f||(Ce(En,`Opening RPC '${e}' stream ${o} transport.`),d.open(),f=!0),Ce(En,`RPC '${e}' stream ${o} sending:`,v),d.send(v))},To:()=>d.close()}),y=(v,T,w)=>{v.listen(T,(g=>{try{w(g)}catch(E){setTimeout((()=>{throw E}),0)}}))};return y(d,pu.EventType.OPEN,(()=>{_||(Ce(En,`RPC '${e}' stream ${o} transport opened.`),m.yo())})),y(d,pu.EventType.CLOSE,(()=>{_||(_=!0,Ce(En,`RPC '${e}' stream ${o} transport closed`),m.So())}
1590)),y(d,pu.EventType.ERROR,(v=>{_||(_=!0,Yc(En,`RPC '${e}' stream ${o} transport errored:`,v),m.So(new Ie(de.UNAVAILABLE,"The operation could not be completed")))})),y(d,pu.EventType.MESSAGE,(v=>{var T;if(!_){const w=v.data[0];ut(!!w);const g=w,E=g.error||((T=g[0])===null||T===void 0?void 0:T.error);if(E){Ce(En,`RPC '${e}' stream ${o} received error:`,E);const C=E.status;let L=(function(R){const x=Ht[R];if(x!==void 0)return zS(x)})(C),A=E.message;L===void 0&&(L=de.INTERNAL,A="Unknown error status: "+C+" with message "+E.message),_=!0,m.So(new Ie(L,A)),d.close()}else Ce(En,`RPC '${e}' stream ${o} received:`,w),m.bo(w)}})),y(a,gS.STAT_EVENT,(v=>{v.stat===Ig.PROXY?Ce(En,`RPC '${e}' stream ${o} detected buffering proxy`):v.stat===Ig.NOPROXY&&Ce(En,`RPC '${e}' stream ${o} detected no buffering proxy`)})),setTimeout((()=>{m.wo()}),0),m}}function _0(){return typeof document<"u"?document:null}/** 1591 * @license 1592 * Copyright 2020 Google LLC 1593 * 1594 * Licensed under the Apache License, Version 2.0 (the "License"); 1595 * you may not use this file except in compliance with the License. 1596 * You may obtain a copy of the License at 1597 * 1598 * http://www.apache.org/licenses/LICENSE-2.0 1599 * 1600 * Unless required by applicable law or agreed to in writing, software 1601 * distributed under the License is distributed on an "AS IS" BASIS, 1602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1603 * See the License for the specific language governing permissions and 1604 * limitations under the License. 1605 */function Y_(t){return new h5(t,!0)}/** 1606 * @license 1607 * Copyright 2017 Google LLC 1608 * 1609 * Licensed under the Apache License, Version 2.0 (the "License"); 1610 * you may not use this file except in compliance with the License. 1611 * You may obtain a copy of the License at 1612 * 1613 * http://www.apache.org/licenses/LICENSE-2.0 1614 * 1615 * Unless required by applicable law or agreed to in writing, software 1616 * distributed under the License is distributed on an "AS IS" BASIS, 1617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1618 * See the License for the specific language governing permissions and 1619 * limitations under the License. 1620 */class nO{constructor(e,n,r=1e3,o=1.5,i=6e4){this.ui=e,this.timerId=n,this.ko=r,this.qo=o,this.Qo=i,this.Ko=0,this.$o=null,this.Uo=Date.now(),this.reset()}reset(){this.Ko=0}Wo(){this.Ko=this.Qo}Go(e){this.cancel();const n=Math.floor(this.Ko+this.zo()),r=Math.max(0,Date.now()-this.Uo),o=Math.max(0,n-r);o>0&&Ce("ExponentialBackoff",`Backing off for ${o} ms (base delay: ${this.Ko} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.$o=this.ui.enqueueAfterDelay(this.timerId,o,(()=>(this.Uo=Date.now(),e()))),this.Ko*=this.qo,this.Ko<this.ko&&(this.Ko=this.ko),this.Ko>this.Qo&&(this.Ko=this.Qo)}jo(){this.$o!==null&&(this.$o.skipDelay(),this.$o=null)}cancel(){this.$o!==null&&(this.$o.cancel(),this.$o=null)}zo(){return(Math.random()-.5)*this.Ko}}/** 1621 * @license 1622 * Copyright 2017 Google LLC 1623 * 1624 * Licensed under the Apache License, Version 2.0 (the "License"); 1625 * you may not use this file except in compliance with the License. 1626 * You may obtain a copy of the License at 1627 * 1628 * http://www.apache.org/licenses/LICENSE-2.0 1629 * 1630 * Unless required by applicable law or agreed to in writing, software 1631 * distributed under the License is distributed on an "AS IS" BASIS, 1632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1633 * See the License for the specific language governing permissions and 1634 * limitations under the License. 1635 */class rO{constructor(e,n,r,o,i,s,a,c){this.ui=e,this.Ho=r,this.Jo=o,this.connection=i,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.Yo=0,this.Zo=null,this.Xo=null,this.stream=null,this.e_=0,this.t_=new nO(e,n)}n_(){return this.state===1||this.state===5||this.r_()}r_(){return this.state===2||this.state===3}start(){this.e_=0,this.state!==4?this.auth():this.i_()}async stop(){this.n_()&&await this.close(0)}s_(){this.state=0,this.t_.reset()}o_(){this.r_()&&this.Zo===null&&(this.Zo=this.ui.enqueueAfterDelay(this.Ho,6e4,(()=>this.__())))}a_(e){this.u_(),this.stream.send(e)}async __(){if(this.r_())return this.close(0)}u_(){this.Zo&&(this.Zo.cancel(),this.Zo=null)}
1635c_(){this.Xo&&(this.Xo.cancel(),this.Xo=null)}async close(e,n){this.u_(),this.c_(),this.t_.cancel(),this.Yo++,e!==4?this.t_.reset():n&&n.code===de.RESOURCE_EXHAUSTED?(rs(n.toString()),rs("Using maximum backoff delay to prevent overloading the backend."),this.t_.Wo()):n&&n.code===de.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.l_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.mo(n)}l_(){}auth(){this.state=1;const e=this.h_(this.Yo),n=this.Yo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([r,o])=>{this.Yo===n&&this.P_(r,o)}),(r=>{e((()=>{const o=new Ie(de.UNKNOWN,"Fetching auth token failed: "+r.message);return this.I_(o)}))}))}P_(e,n){const r=this.h_(this.Yo);this.stream=this.T_(e,n),this.stream.Eo((()=>{r((()=>this.listener.Eo()))})),this.stream.Ro((()=>{r((()=>(this.state=2,this.Xo=this.ui.enqueueAfterDelay(this.Jo,1e4,(()=>(this.r_()&&(this.state=3),Promise.resolve()))),this.listener.Ro())))})),this.stream.mo((o=>{r((()=>this.I_(o)))})),this.stream.onMessage((o=>{r((()=>++this.e_==1?this.E_(o):this.onNext(o)))}))}i_(){this.state=5,this.t_.Go((async()=>{this.state=0,this.start()}))}I_(e){return Ce("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}h_(e){return n=>{this.ui.enqueueAndForget((()=>this.Yo===e?n():(Ce("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class rU extends rO{constructor(e,n,r,o,i,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,o,s),this.serializer=i}T_(e,n){return this.connection.Bo("Listen",e,n)}E_(e){return this.onNext(e)}onNext(e){this.t_.reset();const n=_5(this.serializer,e),r=(function(i){if(!("targetChange"in i))return Ve.min();const s=i.targetChange;return s.targetIds&&s.targetIds.length?Ve.min():s.readTime?li(s.readTime):Ve.min()})(e);return this.listener.d_(n,r)}A_(e){const n={};n.database=Fg(this.serializer),n.addTarget=(function(i,s){let a;const c=s.target;if(a=Og(c)?{documents:y5(i,c)}:{query:v5(i,c)._t},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=KS(i,s.resumeToken);const l=kg(i,s.expectedCount);l!==null&&(a.expectedCount=l)}else if(s.snapshotVersion.compareTo(Ve.min())>0){a.readTime=Bp(i,s.snapshotVersion.toTimestamp());const l=kg(i,s.expectedCount);l!==null&&(a.expectedCount=l)}return a})(this.serializer,e);const r=b5(this.serializer,e);r&&(n.labels=r),this.a_(n)}R_(e){const n={};n.database=Fg(this.serializer),n.removeTarget=e,this.a_(n)}}class oU extends rO{constructor(e,n,r,o,i,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,o,s),this.serializer=i}get V_(){return this.e_>0}start(){this.lastStreamToken=void 0,super.start()}l_(){this.V_&&this.m_([])}T_(e,n){return this.connection.Bo("Write",e,n)}E_(e){return ut(!!e.streamToken),this.lastStreamToken=e.streamToken,ut(!e.writeResults||e.writeResults.length===0),this.listener.f_()}onNext(e){ut(!!e.streamToken),this.lastStreamToken=e.streamToken,this.t_.reset();const n=g5(e.writeResults,e.commitTime),r=li(e.commitTime);return this.listener.g_(r,n)}p_(){const e={};e.database=Fg(this.serializer),this.a_(e)}m_(e){const n={streamToken:this.lastStreamToken,writes:e.map((r=>m5(this.serializer,r)))};this.a_(n)}}/** 1636 * @license 1637 * Copyright 2017 Google LLC 1638 * 1639 * Licensed under the Apache License, Version 2.0 (the "License"); 1640 * you may not use this file except in compliance with the License. 1641 * You may obtain a copy of the License at 1642 * 1643 * http://www.apache.org/licenses/LICENSE-2.0 1644 * 1645 * Unless required by applicable law or agreed to in writing, software 1646 * distributed under the License is distributed on an "AS IS" BASIS, 1647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1648 * See the License for the specific language governing permissions and 1649 * limitations under the License. 1650 */class iU extends class{}{constructor(e,n,r,o){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer
1650=o,this.y_=!1}w_(){if(this.y_)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.")}Mo(e,n,r,o){return this.w_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,s])=>this.connection.Mo(e,Ng(n,r),o,i,s))).catch((i=>{throw i.name==="FirebaseError"?(i.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new Ie(de.UNKNOWN,i.toString())}))}Lo(e,n,r,o,i){return this.w_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([s,a])=>this.connection.Lo(e,Ng(n,r),o,s,a,i))).catch((s=>{throw s.name==="FirebaseError"?(s.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Ie(de.UNKNOWN,s.toString())}))}terminate(){this.y_=!0,this.connection.terminate()}}class sU{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.S_=0,this.b_=null,this.D_=!0}v_(){this.S_===0&&(this.C_("Unknown"),this.b_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.b_=null,this.F_("Backend didn't respond within 10 seconds."),this.C_("Offline"),Promise.resolve()))))}M_(e){this.state==="Online"?this.C_("Unknown"):(this.S_++,this.S_>=1&&(this.x_(),this.F_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.C_("Offline")))}set(e){this.x_(),this.S_=0,e==="Online"&&(this.D_=!1),this.C_(e)}C_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}F_(e){const n=`Could not reach Cloud Firestore backend. ${e} 1651This 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.D_?(rs(n),this.D_=!1):Ce("OnlineStateTracker",n)}x_(){this.b_!==null&&(this.b_.cancel(),this.b_=null)}}/** 1652 * @license 1653 * Copyright 2017 Google LLC 1654 * 1655 * Licensed under the Apache License, Version 2.0 (the "License"); 1656 * you may not use this file except in compliance with the License. 1657 * You may obtain a copy of the License at 1658 * 1659 * http://www.apache.org/licenses/LICENSE-2.0 1660 * 1661 * Unless required by applicable law or agreed to in writing, software 1662 * distributed under the License is distributed on an "AS IS" BASIS, 1663 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1664 * See the License for the specific language governing permissions and 1665 * limitations under the License. 1666 */class aU{constructor(e,n,r,o,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.O_=[],this.N_=new Map,this.L_=new Set,this.B_=[],this.k_=i,this.k_._o((s=>{r.enqueueAndForget((async()=>{ec(this)&&(Ce("RemoteStore","Restarting streams for network reachability change."),await(async function(c){const l=Fe(c);l.L_.add(4),await Ud(l),l.q_.set("Unknown"),l.L_.delete(4),await X_(l)})(this))}))})),this.q_=new sU(r,o)}}async function X_(t){if(ec(t))for(const e of t.B_)await e(!0)}async function Ud(t){for(const e of t.B_)await e(!1)}function oO(t,e){const n=Fe(t);n.N_.has(e.targetId)||(n.N_.set(e.targetId,e),aE(n)?sE(n):Rl(n).r_()&&iE(n,e))}function oE(t,e){const n=Fe(t),r=Rl(n);n.N_.delete(e),r.r_()&&iO(n,e),n.N_.size===0&&(r.r_()?r.o_():ec(n)&&n.q_.set("Unknown"))}function iE(t,e){if(t.Q_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Ve.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Rl(t).A_(e)}function iO(t,e){t.Q_.xe(e),Rl(t).R_(e)}function sE(t){t.Q_=new c5({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ot:e=>t.N_.get(e)||null,tt:()=>t.datastore.serializer.databaseId}),Rl(t).start(),t.q_.v_()}function aE(t){return ec(t)&&!Rl(t).n_()&&t.N_.size>0}function ec(t){return Fe(t).L_.size===0}function sO(t){t.Q_=void 0}async function cU(t){t.q_.set("Online")}async function lU(t){t.N_.forEach(((e,n)=>{iE(t,e)}))}async function uU(t,e){sO(t),aE(t)?(t.q_.M_(e),sE(t)):t.q_.set("Unknown")}async function dU(t,e,n){if(t.q_.set("Online"),e instanceof WS&&e.state===2&&e.cause)try{await(async function(o,i){const s=i.
1666cause;for(const a of i.targetIds)o.N_.has(a)&&(await o.remoteSyncer.rejectListen(a,s),o.N_.delete(a),o.Q_.removeTarget(a))})(t,e)}catch(r){Ce("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await Up(t,r)}else if(e instanceof hf?t.Q_.Ke(e):e instanceof qS?t.Q_.He(e):t.Q_.We(e),!n.isEqual(Ve.min()))try{const r=await tO(t.localStore);n.compareTo(r)>=0&&await(function(i,s){const a=i.Q_.rt(s);return a.targetChanges.forEach(((c,l)=>{if(c.resumeToken.approximateByteSize()>0){const u=i.N_.get(l);u&&i.N_.set(l,u.withResumeToken(c.resumeToken,s))}})),a.targetMismatches.forEach(((c,l)=>{const u=i.N_.get(c);if(!u)return;i.N_.set(c,u.withResumeToken(gn.EMPTY_BYTE_STRING,u.snapshotVersion)),iO(i,c);const d=new Ls(u.target,c,l,u.sequenceNumber);iE(i,d)})),i.remoteSyncer.applyRemoteEvent(a)})(t,n)}catch(r){Ce("RemoteStore","Failed to raise snapshot:",r),await Up(t,r)}}async function Up(t,e,n){if(!Fd(e))throw e;t.L_.add(1),await Ud(t),t.q_.set("Offline"),n||(n=()=>tO(t.localStore)),t.asyncQueue.enqueueRetryable((async()=>{Ce("RemoteStore","Retrying IndexedDB access"),await n(),t.L_.delete(1),await X_(t)}))}function aO(t,e){return e().catch((n=>Up(t,n,e)))}async function J_(t){const e=Fe(t),n=Ws(e);let r=e.O_.length>0?e.O_[e.O_.length-1].batchId:-1;for(;hU(e);)try{const o=await Q5(e.localStore,r);if(o===null){e.O_.length===0&&n.o_();break}r=o.batchId,fU(e,o)}catch(o){await Up(e,o)}cO(e)&&lO(e)}function hU(t){return ec(t)&&t.O_.length<10}function fU(t,e){t.O_.push(e);const n=Ws(t);n.r_()&&n.V_&&n.m_(e.mutations)}function cO(t){return ec(t)&&!Ws(t).n_()&&t.O_.length>0}function lO(t){Ws(t).start()}async function pU(t){Ws(t).p_()}async function _U(t){const e=Ws(t);for(const n of t.O_)e.m_(n.mutations)}async function mU(t,e,n){const r=t.O_.shift(),o=Jv.from(r,e,n);await aO(t,(()=>t.remoteSyncer.applySuccessfulWrite(o))),await J_(t)}async function gU(t,e){e&&Ws(t).V_&&await(async function(r,o){if((function(s){return i5(s)&&s!==de.ABORTED})(o.code)){const i=r.O_.shift();Ws(r).s_(),await aO(r,(()=>r.remoteSyncer.rejectFailedWrite(i.batchId,o))),await J_(r)}})(t,e),cO(t)&&lO(t)}async function cA(t,e){const n=Fe(t);n.asyncQueue.verifyOperationInProgress(),Ce("RemoteStore","RemoteStore received new credentials");const r=ec(n);n.L_.add(3),await Ud(n),r&&n.q_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.L_.delete(3),await X_(n)}async function yU(t,e){const n=Fe(t);e?(n.L_.delete(2),await X_(n)):e||(n.L_.add(2),await Ud(n),n.q_.set("Unknown"))}function Rl(t){return t.K_||(t.K_=(function(n,r,o){const i=Fe(n);return i.w_(),new rU(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,o)})(t.datastore,t.asyncQueue,{Eo:cU.bind(null,t),Ro:lU.bind(null,t),mo:uU.bind(null,t),d_:dU.bind(null,t)}),t.B_.push((async e=>{e?(t.K_.s_(),aE(t)?sE(t):t.q_.set("Unknown")):(await t.K_.stop(),sO(t))}))),t.K_}function Ws(t){return t.U_||(t.U_=(function(n,r,o){const i=Fe(n);return i.w_(),new oU(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,o)})(t.datastore,t.asyncQueue,{Eo:()=>Promise.resolve(),Ro:pU.bind(null,t),mo:gU.bind(null,t),f_:_U.bind(null,t),g_:mU.bind(null,t)}),t.B_.push((async e=>{e?(t.U_.s_(),await J_(t)):(await t.U_.stop(),t.O_.length>0&&(Ce("RemoteStore",`Stopping write stream with ${t.O_.length} pending writes`),t.O_=[]))}))),t.U_}/** 1667 * @license 1668 * Copyright 2017 Google LLC 1669 * 1670 * Licensed under the Apache License, Version 2.0 (the "License"); 1671 * you may not use this file except in compliance with the License. 1672 * You may obtain a copy of the License at 1673 * 1674 * http://www.apache.org/licenses/LICENSE-2.0 1675 * 1676 * Unless required by applicable law or agreed to in writing, software 1677 * distributed under the License is distributed on an "AS IS" BASIS, 1678 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1679 * See the License for the specific language governing permissions and 1680 * limitations under the License. 1681 */class cE{constructor(e,n,r,o,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=o,this.removalCallback=i,this.deferred=new Ki,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((s=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,o,i){const s=Date.now()+r,a=new cE(e,n,s,o,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 Ie(de.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((e=>
1681this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function lE(t,e){if(rs("AsyncQueue",`${e}: ${t}`),Fd(t))return new Ie(de.UNAVAILABLE,`${e}: ${t}`);throw t}/** 1682 * @license 1683 * Copyright 2017 Google LLC 1684 * 1685 * Licensed under the Apache License, Version 2.0 (the "License"); 1686 * you may not use this file except in compliance with the License. 1687 * You may obtain a copy of the License at 1688 * 1689 * http://www.apache.org/licenses/LICENSE-2.0 1690 * 1691 * Unless required by applicable law or agreed to in writing, software 1692 * distributed under the License is distributed on an "AS IS" BASIS, 1693 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1694 * See the License for the specific language governing permissions and 1695 * limitations under the License. 1696 */class kc{constructor(e){this.comparator=e?(n,r)=>e(n,r)||Oe.comparator(n.key,r.key):(n,r)=>Oe.comparator(n.key,r.key),this.keyedMap=_u(),this.sortedSet=new Gt(this.comparator)}static emptySet(e){return new kc(e.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((n,r)=>(e(n),!1)))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof kc)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const o=n.getNext().key,i=r.getNext().key;if(!o.isEqual(i))return!1}return!0}toString(){const e=[];return this.forEach((n=>{e.push(n.toString())})),e.length===0?"DocumentSet ()":`DocumentSet ( 1697 `+e.join(` 1698`)+` 1699)`}copy(e,n){const r=new kc;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}/** 1700 * @license 1701 * Copyright 2017 Google LLC 1702 * 1703 * Licensed under the Apache License, Version 2.0 (the "License"); 1704 * you may not use this file except in compliance with the License. 1705 * You may obtain a copy of the License at 1706 * 1707 * http://www.apache.org/licenses/LICENSE-2.0 1708 * 1709 * Unless required by applicable law or agreed to in writing, software 1710 * distributed under the License is distributed on an "AS IS" BASIS, 1711 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1712 * See the License for the specific language governing permissions and 1713 * limitations under the License. 1714 */class lA{constructor(){this.W_=new Gt(Oe.comparator)}track(e){const n=e.doc.key,r=this.W_.get(n);r?e.type!==0&&r.type===3?this.W_=this.W_.insert(n,e):e.type===3&&r.type!==1?this.W_=this.W_.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.W_=this.W_.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.W_=this.W_.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.W_=this.W_.remove(n):e.type===1&&r.type===2?this.W_=this.W_.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.W_=this.W_.insert(n,{type:2,doc:e.doc}):ke():this.W_=this.W_.insert(n,e)}G_(){const e=[];return this.W_.inorderTraversal(((n,r)=>{e.push(r)})),e}}class tl{constructor(e,n,r,o,i,s,a,c,l){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=o,this.mutatedKeys=i,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=l}static fromInitialDocuments(e,n,r,o,i){const s=[];return n.forEach((a=>{s.push({type:0,doc:a})})),new tl(e,n,kc.emptySet(n),s,r,o,!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)&&q_(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 o=0;o<n.length;o++)if(n[o].type!==r[o].type||!n[o].doc.isEqual(r[o].doc))return!1;return!0}}/** 1715 * @license 1716 * Copyright 2017 Google LLC 1717 * 1718 * Licensed under the Apache License, Version 2.0 (the "License");
1719 * you may not use this file except in compliance with the License. 1720 * You may obtain a copy of the License at 1721 * 1722 * http://www.apache.org/licenses/LICENSE-2.0 1723 * 1724 * Unless required by applicable law or agreed to in writing, software 1725 * distributed under the License is distributed on an "AS IS" BASIS, 1726 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1727 * See the License for the specific language governing permissions and 1728 * limitations under the License. 1729 */class vU{constructor(){this.z_=void 0,this.j_=[]}H_(){return this.j_.some((e=>e.J_()))}}class EU{constructor(){this.queries=uA(),this.onlineState="Unknown",this.Y_=new Set}terminate(){(function(n,r){const o=Fe(n),i=o.queries;o.queries=uA(),i.forEach(((s,a)=>{for(const c of a.j_)c.onError(r)}))})(this,new Ie(de.ABORTED,"Firestore shutting down"))}}function uA(){return new Il((t=>DS(t)),q_)}async function uE(t,e){const n=Fe(t);let r=3;const o=e.query;let i=n.queries.get(o);i?!i.H_()&&e.J_()&&(r=2):(i=new vU,r=e.J_()?0:1);try{switch(r){case 0:i.z_=await n.onListen(o,!0);break;case 1:i.z_=await n.onListen(o,!1);break;case 2:await n.onFirstRemoteStoreListen(o)}}catch(s){const a=lE(s,`Initialization of query '${bc(e.query)}' failed`);return void e.onError(a)}n.queries.set(o,i),i.j_.push(e),e.Z_(n.onlineState),i.z_&&e.X_(i.z_)&&hE(n)}async function dE(t,e){const n=Fe(t),r=e.query;let o=3;const i=n.queries.get(r);if(i){const s=i.j_.indexOf(e);s>=0&&(i.j_.splice(s,1),i.j_.length===0?o=e.J_()?0:1:!i.H_()&&e.J_()&&(o=2))}switch(o){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function bU(t,e){const n=Fe(t);let r=!1;for(const o of e){const i=o.query,s=n.queries.get(i);if(s){for(const a of s.j_)a.X_(o)&&(r=!0);s.z_=o}}r&&hE(n)}function wU(t,e,n){const r=Fe(t),o=r.queries.get(e);if(o)for(const i of o.j_)i.onError(n);r.queries.delete(e)}function hE(t){t.Y_.forEach((e=>{e.next()}))}var Bg,dA;(dA=Bg||(Bg={})).ea="default",dA.Cache="cache";class fE{constructor(e,n,r){this.query=e,this.ta=n,this.na=!1,this.ra=null,this.onlineState="Unknown",this.options=r||{}}X_(e){if(!this.options.includeMetadataChanges){const r=[];for(const o of e.docChanges)o.type!==3&&r.push(o);e=new tl(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.na?this.ia(e)&&(this.ta.next(e),n=!0):this.sa(e,this.onlineState)&&(this.oa(e),n=!0),this.ra=e,n}onError(e){this.ta.error(e)}Z_(e){this.onlineState=e;let n=!1;return this.ra&&!this.na&&this.sa(this.ra,e)&&(this.oa(this.ra),n=!0),n}sa(e,n){if(!e.fromCache||!this.J_())return!0;const r=n!=="Offline";return(!this.options._a||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}ia(e){if(e.docChanges.length>0)return!0;const n=this.ra&&this.ra.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}oa(e){e=tl.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.na=!0,this.ta.next(e)}J_(){return this.options.source!==Bg.Cache}}/** 1730 * @license 1731 * Copyright 2017 Google LLC 1732 * 1733 * Licensed under the Apache License, Version 2.0 (the "License"); 1734 * you may not use this file except in compliance with the License. 1735 * You may obtain a copy of the License at 1736 * 1737 * http://www.apache.org/licenses/LICENSE-2.0 1738 * 1739 * Unless required by applicable law or agreed to in writing, software 1740 * distributed under the License is distributed on an "AS IS" BASIS, 1741 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1742 * See the License for the specific language governing permissions and 1743 * limitations under the License. 1744 */class uO{constructor(e){this.key=e}}class dO{constructor(e){this.key=e}}class TU{constructor(e,n){this.query=e,this.Ta=n,this.Ea=null,this.hasCachedResults=!1,this.current=!1,this.da=qe(),this.mutatedKeys=qe(),this.Aa=LS(e),this.Ra=new kc(this.Aa)}get Va(){return this.Ta}ma(e,n){const r=n?n.fa:new lA,o=n?n.Ra:this.Ra;let i=n?n.mutatedKeys:this.mutatedKeys,s=o,a=!1;const c=this.query.limitType==="F"&&o.size===this.query.limit?o.last():null,l=this.query.limitType==="L"&&o.size===this.query.limit?o.first():null;if(e.inorderTraversal(((u,d)=>{const f=o.get(u),_=W_(this.query,d)?d:null,m=!!f&&this.mutatedKeys.has(f.key),y=!!_&&(_.hasLocalMutations||this.mutatedKeys.has(_.key)&&_.hasCommittedMutations);let v=!1;f&&_?f.data.isEqual(_.data)?m!==y&&(r.track({type:3,doc:_}),v=!0):this.ga(f,_)||(r.track({type:2,doc:_}),v=!0,(c&&this.Aa(_,c)>0||l&&this.Aa(_,l)<0)&&(a=!0)):!f&&_?(r.track({type:0,doc:_}),v=!0):f&&!_&&(r.track({type:1,doc:f}),v=!0,(c||l)&&(a=!0)),v&&(_?(s=s.add(_),i=y?i.add(u):i.delete(u)):(s=s.delete(u),i=i.delete(u)))})),this.query.limit!==null)for(;s.size>this.query.limit;
1744){const u=this.query.limitType==="F"?s.last():s.first();s=s.delete(u.key),i=i.delete(u.key),r.track({type:1,doc:u})}return{Ra:s,fa:r,ns:a,mutatedKeys:i}}ga(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r,o){const i=this.Ra;this.Ra=e.Ra,this.mutatedKeys=e.mutatedKeys;const s=e.fa.G_();s.sort(((u,d)=>(function(_,m){const y=v=>{switch(v){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ke()}};return y(_)-y(m)})(u.type,d.type)||this.Aa(u.doc,d.doc))),this.pa(r),o=o!=null&&o;const a=n&&!o?this.ya():[],c=this.da.size===0&&this.current&&!o?1:0,l=c!==this.Ea;return this.Ea=c,s.length!==0||l?{snapshot:new tl(this.query,e.Ra,i,s,e.mutatedKeys,c===0,l,!1,!!r&&r.resumeToken.approximateByteSize()>0),wa:a}:{wa:a}}Z_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({Ra:this.Ra,fa:new lA,mutatedKeys:this.mutatedKeys,ns:!1},!1)):{wa:[]}}Sa(e){return!this.Ta.has(e)&&!!this.Ra.has(e)&&!this.Ra.get(e).hasLocalMutations}pa(e){e&&(e.addedDocuments.forEach((n=>this.Ta=this.Ta.add(n))),e.modifiedDocuments.forEach((n=>{})),e.removedDocuments.forEach((n=>this.Ta=this.Ta.delete(n))),this.current=e.current)}ya(){if(!this.current)return[];const e=this.da;this.da=qe(),this.Ra.forEach((r=>{this.Sa(r.key)&&(this.da=this.da.add(r.key))}));const n=[];return e.forEach((r=>{this.da.has(r)||n.push(new dO(r))})),this.da.forEach((r=>{e.has(r)||n.push(new uO(r))})),n}ba(e){this.Ta=e.Ts,this.da=qe();const n=this.ma(e.documents);return this.applyChanges(n,!0)}Da(){return tl.fromInitialDocuments(this.query,this.Ra,this.mutatedKeys,this.Ea===0,this.hasCachedResults)}}class AU{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class xU{constructor(e){this.key=e,this.va=!1}}class IU{constructor(e,n,r,o,i,s){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=o,this.currentUser=i,this.maxConcurrentLimboResolutions=s,this.Ca={},this.Fa=new Il((a=>DS(a)),q_),this.Ma=new Map,this.xa=new Set,this.Oa=new Gt(Oe.comparator),this.Na=new Map,this.La=new tE,this.Ba={},this.ka=new Map,this.qa=el.kn(),this.onlineState="Unknown",this.Qa=void 0}get isPrimaryClient(){return this.Qa===!0}}async function RU(t,e,n=!0){const r=gO(t);let o;const i=r.Fa.get(e);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),o=i.view.Da()):o=await hO(r,e,n,!0),o}async function CU(t,e){const n=gO(t);await hO(n,e,!0,!1)}async function hO(t,e,n,r){const o=await Y5(t.localStore,ci(e)),i=o.targetId,s=t.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await PU(t,e,i,s==="current",o.resumeToken)),t.isPrimaryClient&&n&&oO(t.remoteStore,o),a}async function PU(t,e,n,r,o){t.Ka=(d,f,_)=>(async function(y,v,T,w){let g=v.view.ma(T);g.ns&&(g=await iA(y.localStore,v.query,!1).then((({documents:A})=>v.view.ma(A,g))));const E=w&&w.targetChanges.get(v.targetId),C=w&&w.targetMismatches.get(v.targetId)!=null,L=v.view.applyChanges(g,y.isPrimaryClient,E,C);return fA(y,v.targetId,L.wa),L.snapshot})(t,d,f,_);const i=await iA(t.localStore,e,!0),s=new TU(e,i.Ts),a=s.ma(i.documents),c=Bd.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",o),l=s.applyChanges(a,t.isPrimaryClient,c);fA(t,n,l.wa);const u=new AU(e,n,s);return t.Fa.set(e,u),t.Ma.has(n)?t.Ma.get(n).push(e):t.Ma.set(n,[e]),l.snapshot}async function SU(t,e,n){const r=Fe(t),o=r.Fa.get(e),i=r.Ma.get(o.targetId);if(i.length>1)return r.Ma.set(o.targetId,i.filter((s=>!q_(s,e)))),void r.Fa.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(o.targetId),r.sharedCl
1744ientState.isActiveQueryTarget(o.targetId)||await Mg(r.localStore,o.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(o.targetId),n&&oE(r.remoteStore,o.targetId),Ug(r,o.targetId)})).catch(Vd)):(Ug(r,o.targetId),await Mg(r.localStore,o.targetId,!0))}async function OU(t,e){const n=Fe(t),r=n.Fa.get(e),o=n.Ma.get(r.targetId);n.isPrimaryClient&&o.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),oE(n.remoteStore,r.targetId))}async function DU(t,e,n){const r=BU(t);try{const o=await(function(s,a){const c=Fe(s),l=Bt.now(),u=a.reduce(((_,m)=>_.add(m.key)),qe());let d,f;return c.persistence.runTransaction("Locally write mutations","readwrite",(_=>{let m=os(),y=qe();return c.cs.getEntries(_,u).next((v=>{m=v,m.forEach(((T,w)=>{w.isValidDocument()||(y=y.add(T))}))})).next((()=>c.localDocuments.getOverlayedDocuments(_,m))).next((v=>{d=v;const T=[];for(const w of a){const g=e5(w,d.get(w.key).overlayedDocument);g!=null&&T.push(new Za(w.key,g,AS(g.value.mapValue),Vr.exists(!0)))}return c.mutationQueue.addMutationBatch(_,l,T,a)})).next((v=>{f=v;const T=v.applyToLocalDocumentSet(d,y);return c.documentOverlayCache.saveOverlays(_,v.batchId,T)}))})).then((()=>({batchId:f.batchId,changes:NS(d)})))})(r.localStore,e);r.sharedClientState.addPendingMutation(o.batchId),(function(s,a,c){let l=s.Ba[s.currentUser.toKey()];l||(l=new Gt(tt)),l=l.insert(a,c),s.Ba[s.currentUser.toKey()]=l})(r,o.batchId,n),await $d(r,o.changes),await J_(r.remoteStore)}catch(o){const i=lE(o,"Failed to persist write");n.reject(i)}}async function fO(t,e){const n=Fe(t);try{const r=await K5(n.localStore,e);
1744e.targetChanges.forEach(((o,i)=>{const s=n.Na.get(i);s&&(ut(o.addedDocuments.size+o.modifiedDocuments.size+o.removedDocuments.size<=1),o.addedDocuments.size>0?s.va=!0:o.modifiedDocuments.size>0?ut(s.va):o.removedDocuments.size>0&&(ut(s.va),s.va=!1))})),await $d(n,r,e)}catch(r){await Vd(r)}}function hA(t,e,n){const r=Fe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const o=[];r.Fa.forEach(((i,s)=>{const a=s.view.Z_(e);a.snapshot&&o.push(a.snapshot)})),(function(s,a){const c=Fe(s);c.onlineState=a;let l=!1;c.queries.forEach(((u,d)=>{for(const f of d.j_)f.Z_(a)&&(l=!0)})),l&&hE(c)})(r.eventManager,e),o.length&&r.Ca.d_(o),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function LU(t,e,n){const r=Fe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const o=r.Na.get(e),i=o&&o.key;if(i){let s=new Gt(Oe.comparator);s=s.insert(i,In.newNoDocument(i,Ve.min()));const a=qe().add(i),c=new Q_(Ve.min(),new Map,new Gt(tt),s,a);await fO(r,c),r.Oa=r.Oa.remove(i),r.Na.delete(e),pE(r)}else await Mg(r.localStore,e,!1).then((()=>Ug(r,e,n))).catch(Vd)}async function kU(t,e){const n=Fe(t),r=e.batch.batchId;try{const o=await W5(n.localStore,e);_O(n,r,null),pO(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await $d(n,o)}catch(o){await Vd(o)}}async function NU(t,e,n){const r=Fe(t);try{const o=await(function(s,a){const c=Fe(s);return c.persistence.runTransaction("Reject batch","readwrite-primary",(l=>{let u;return c.mutationQueue.lookupMutationBatch(l,a).next((d=>
1744(ut(d!==null),u=d.keys(),c.mutationQueue.removeMutationBatch(l,d)))).next((()=>c.mutationQueue.performConsistencyCheck(l))).next((()=>c.documentOverlayCache.removeOverlaysForBatchId(l,u,a))).next((()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(l,u))).next((()=>c.localDocuments.getDocuments(l,u)))}))})(r.localStore,e);_O(r,e,n),pO(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await $d(r,o)}catch(o){await Vd(o)}}function pO(t,e){(t.ka.get(e)||[]).forEach((n=>{n.resolve()})),t.ka.delete(e)}function _O(t,e,n){const r=Fe(t);let o=r.Ba[r.currentUser.toKey()];if(o){const i=o.get(e);i&&(n?i.reject(n):i.resolve(),o=o.remove(e)),r.Ba[r.currentUser.toKey()]=o}}function Ug(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.Ma.get(e))t.Fa.delete(r),n&&t.Ca.$a(r,n);t.Ma.delete(e),t.isPrimaryClient&&t.La.gr(e).forEach((r=>{t.La.containsKey(r)||mO(t,r)}))}function mO(t,e){t.xa.delete(e.path.canonicalString());const n=t.Oa.get(e);n!==null&&(oE(t.remoteStore,n),t.Oa=t.Oa.remove(e),t.Na.delete(n),pE(t))}function fA(t,e,n){for(const r of n)r instanceof uO?(t.La.addReference(r.key,e),VU(t,r)):r instanceof dO?(Ce("SyncEngine","Document no longer in limbo: "+r.key),t.La.removeReference(r.key,e),t.La.containsKey(r.key)||mO(t,r.key)):ke()}function VU(t,e){const n=e.key,r=n.path.canonicalString();t.Oa.get(n)||t.xa.has(r)||(Ce("SyncEngine","New document in limbo: "+n),t.xa.add(r),pE(t))}function pE(t){for(;t.xa.size>0&&t.Oa.size<t.maxConcurrentLimboResolutions;){const e=t.xa.values().next().value;t.xa.delete(e);const n=new Oe(It.fromString(e)),r=t.qa.next();t.Na.set(r,new xU(n)),t.Oa=t.Oa.insert(n,r),oO(t.remoteStore,new Ls(ci(z_(n.path)),r,"TargetPurposeLimboResolution",zv.oe))}}async function $d(t,e,n){const r=Fe(t),o=[],i=[],s=[];r.Fa.isEmpty()||(r.Fa.forEach(((a,c)=>{s.push(r.Ka(c,e,n).then((l=>{var u;if((l||n)&&r.isPrimaryClient){const d=l?!l.fromCache:(u=n?.targetChanges.get(c.targetId))===null||u===void 0?void 0:u.current;
1744r.sharedClientState.updateQueryState(c.targetId,d?"current":"not-current")}if(l){o.push(l);const d=rE.Wi(c.targetId,l);i.push(d)}})))})),await Promise.all(s),r.Ca.d_(o),await(async function(c,l){const u=Fe(c);try{await u.persistence.runTransaction("notifyLocalViewChanges","readwrite",(d=>me.forEach(l,(f=>me.forEach(f.$i,(_=>u.persistence.referenceDelegate.addReference(d,f.targetId,_))).next((()=>me.forEach(f.Ui,(_=>u.persistence.referenceDelegate.removeReference(d,f.targetId,_)))))))))}catch(d){if(!Fd(d))throw d;Ce("LocalStore","Failed to update sequence numbers: "+d)}for(const d of l){const f=d.targetId;if(!d.fromCache){const _=u.os.get(f),m=_.snapshotVersion,y=_.withLastLimboFreeSnapshotVersion(m);u.os=u.os.insert(f,y)}}})(r.localStore,i))}async function FU(t,e){const n=Fe(t);if(!n.currentUser.isEqual(e)){Ce("SyncEngine","User change. New user:",e.toKey());const r=await eO(n.localStore,e);n.currentUser=e,(function(i,s){i.ka.forEach((a=>{a.forEach((c=>{c.reject(new Ie(de.CANCELLED,s))}))})),i.ka.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await $d(n,r.hs)}}function MU(t,e){const n=Fe(t),r=n.Na.get(e);if(r&&r.va)return qe().add(r.key);{let o=qe();const i=n.Ma.get(e);if(!i)return o;for(const s of i){const a=n.Fa.get(s);o=o.unionWith(a.view.Va)}return o}}function gO(t){const e=Fe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=fO.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=MU.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=LU.bind(null,e),e.Ca.d_=bU.bind(null,e.eventManager),e.Ca.$a=wU.bind(null,e.eventManager),e}function BU(t){const e=Fe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=kU.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=NU.bind(null,e),e}class $p{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=Y_(e.databaseInfo.databaseId),this.sharedClientState=this.Wa(e),this.persistence=this.Ga(e),await this.persistence.start(),this.localStore=this.za(e),this.gcScheduler=this.ja(e,this.localStore),this.indexBackfillerScheduler=this.Ha(e,this.localStore)}ja(e,n){return null}Ha(e,n){return null}za(e){return q5(this.persistence,new H5,e.initialUser,this.serializer)}Ga(e){return new U5(nE.Zr,this.serializer)}Wa(e){return new J5}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}$p.provider={build:()=>new $p};class $g{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=>hA(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=FU.bind(null,this.syncEngine),await yU(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return(function(){return new EU})()}createDatastore(e){const n=Y_(e.databaseInfo.databaseId),r=(function(i){return new nU(i)})(e.databaseInfo);return(function(i,s,a,c){return new iU(i,s,a,c)})(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return(function(r,o,i,s,a){return new aU(r,o,i,s,a)})(this.localStore,this.datastore,e.asyncQueue,(n=>hA(this.syncEngine,n,0)),(function(){return aA.D()?new aA:new Z5})())}createSyncEngine(e,n){return(function(o,i,s,a,c,l,u){const d=new IU(o,i,s,a,c,l);return u&&(d.Qa=!0),d})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await(async function(o){const i=Fe(o);Ce("RemoteStore","RemoteStore shutting down."),i.L_.add(5),await Ud(i),i.k_.shutdown(),i.q_.set("Unknown")})(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}$g.provider={build:()=>new $g};/** 1745 * @license 1746 * Copyright 2020 Google LLC 1747 * 1748 * Licensed under the Apache License, Version 2.0 (the "License");
1749 * you may not use this file except in compliance with the License. 1750 * You may obtain a copy of the License at 1751 * 1752 * http://www.apache.org/licenses/LICENSE-2.0 1753 * 1754 * Unless required by applicable law or agreed to in writing, software 1755 * distributed under the License is distributed on an "AS IS" BASIS, 1756 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1757 * See the License for the specific language governing permissions and 1758 * limitations under the License. 1759 *//** 1760 * @license 1761 * Copyright 2017 Google LLC 1762 * 1763 * Licensed under the Apache License, Version 2.0 (the "License"); 1764 * you may not use this file except in compliance with the License. 1765 * You may obtain a copy of the License at 1766 * 1767 * http://www.apache.org/licenses/LICENSE-2.0 1768 * 1769 * Unless required by applicable law or agreed to in writing, software 1770 * distributed under the License is distributed on an "AS IS" BASIS, 1771 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1772 * See the License for the specific language governing permissions and 1773 * limitations under the License. 1774 */class _E{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ya(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ya(this.observer.error,e):rs("Uncaught Error in snapshot listener:",e.toString()))}Za(){this.muted=!0}Ya(e,n){setTimeout((()=>{this.muted||e(n)}),0)}}/** 1775 * @license 1776 * Copyright 2017 Google LLC 1777 * 1778 * Licensed under the Apache License, Version 2.0 (the "License"); 1779 * you may not use this file except in compliance with the License. 1780 * You may obtain a copy of the License at 1781 * 1782 * http://www.apache.org/licenses/LICENSE-2.0 1783 * 1784 * Unless required by applicable law or agreed to in writing, software 1785 * distributed under the License is distributed on an "AS IS" BASIS, 1786 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1787 * See the License for the specific language governing permissions and 1788 * limitations under the License. 1789 */class UU{constructor(e,n,r,o,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=o,this.user=Tn.UNAUTHENTICATED,this.clientId=bS.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,(async s=>{Ce("FirestoreClient","Received user=",s.uid),await this.authCredentialListener(s),this.user=s})),this.appCheckCredentials.start(r,(s=>(Ce("FirestoreClient","Received new app check token=",s),this.appCheckCredentialListener(s,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Ki;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=lE(n,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}async function m0(t,e){t.asyncQueue.verifyOperationInProgress(),Ce("FirestoreClient","Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener((async o=>{r.isEqual(o)||(await eO(e.localStore,o),r=o)})),e.persistence.setDatabaseDeletedListener((()=>t.terminate())),t._offlineComponents=e}async function pA(t,e){t.asyncQueue.verifyOperationInProgress();const n=await $U(t);Ce("FirestoreClient","Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener((r=>cA(e.remoteStore,r))),t.setAppCheckTokenChangeListener(((r,o)=>cA(e.remoteStore,o))),t._onlineComponents=e}async function $U(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){Ce("FirestoreClient","Using user provided OfflineComponentProvider");try{await m0(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!(function(o){return o.name==="FirebaseError"?o.code===de.FAILED_PRECONDITION||o.code===de.UNIMPLEMENT
1789ED:!(typeof DOMException<"u"&&o instanceof DOMException)||o.code===22||o.code===20||o.code===11})(n))throw n;Yc("Error using user provided cache. Falling back to memory cache: "+n),await m0(t,new $p)}}else Ce("FirestoreClient","Using default OfflineComponentProvider"),await m0(t,new $p);return t._offlineComponents}async function yO(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(Ce("FirestoreClient","Using user provided OnlineComponentProvider"),await pA(t,t._uninitializedComponentsProvider._online)):(Ce("FirestoreClient","Using default OnlineComponentProvider"),await pA(t,new $g))),t._onlineComponents}function jU(t){return yO(t).then((e=>e.syncEngine))}async function jp(t){const e=await yO(t),n=e.eventManager;return n.onListen=RU.bind(null,e.syncEngine),n.onUnlisten=SU.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=CU.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=OU.bind(null,e.syncEngine),n}function HU(t,e,n={}){const r=new Ki;return t.asyncQueue.enqueueAndForget((async()=>(function(i,s,a,c,l){const u=new _E({next:f=>{u.Za(),s.enqueueAndForget((()=>dE(i,d)));const _=f.docs.has(a);!_&&f.fromCache?l.reject(new Ie(de.UNAVAILABLE,"Failed to get document because the client is offline.")):_&&f.fromCache&&c&&c.source==="server"?l.reject(new Ie(de.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.)')):l.resolve(f)},error:f=>l.reject(f)}),d=new fE(z_(a.path),u,{includeMetadataChanges:!0,_a:!0});return uE(i,d)})(await jp(t),t.asyncQueue,e,n,r))),r.promise}function zU(t,e,n={}){const r=new Ki;return t.asyncQueue.enqueueAndForget((async()=>(function(i,s,a,c,l){const u=new _E({next:f=>{u.Za(),s.enqueueAndForget((()=>dE(i,d))),f.fromCache&&c.source==="server"?l.reject(new Ie(de.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.)')):l.resolve(f)},error:f=>l.reject(f)}),d=new fE(a,u,{includeMetadataChanges:!0,_a:!0});return uE(i,d)})(await jp(t),t.asyncQueue,e,n,r))),r.promise}/** 1790 * @license 1791 * Copyright 2023 Google LLC 1792 * 1793 * Licensed under the Apache License, Version 2.0 (the "License"); 1794 * you may not use this file except in compliance with the License. 1795 * You may obtain a copy of the License at 1796 * 1797 * http://www.apache.org/licenses/LICENSE-2.0 1798 * 1799 * Unless required by applicable law or agreed to in writing, software 1800 * distributed under the License is distributed on an "AS IS" BASIS, 1801 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1802 * See the License for the specific language governing permissions and 1803 * limitations under the License. 1804 */function vO(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 1805 * @license 1806 * Copyright 2020 Google LLC 1807 * 1808 * Licensed under the Apache License, Version 2.0 (the "License"); 1809 * you may not use this file except in compliance with the License. 1810 * You may obtain a copy of the License at 1811 * 1812 * http://www.apache.org/licenses/LICENSE-2.0 1813 * 1814 * Unless required by applicable law or agreed to in writing, software 1815 * distributed under the License is distributed on an "AS IS" BASIS, 1816 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1817 * See the License for the specific language governing permissions and 1818 * limitations under the License. 1819 */const _A=new Map;/** 1820 * @license 1821 * Copyright 2017 Google LLC 1822 * 1823 * Licensed under the Apache License, Version 2.0 (the "License"); 1824 * you may not use this file except in compliance with the License. 1825 * You may obtain a copy of the License at 1826 * 1827 * http://www.apache.org/licenses/LICENSE-2.0 1828 * 1829 * Unless required by applicable law or agreed to in writing, software 1830 * distributed under the License is distributed on an "AS IS" BASIS, 1831 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1832 * See the License for the specific language governing permissions and 1833 * limitations under the License. 1834 */function EO(t,e,n){if(!n)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function qU(t,e,n,r){if(e===!0&&r===!0)throw new Ie(de.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function mA(t){if(!Oe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function gA(t){if(Oe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Z_(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":ke()}function fr(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Ie(de.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Z_(t);throw new Ie(de.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** 1835 * @license 1836 * Copyright 2020 Google LLC 1837 * 1838 * Licensed under the Apache License, Version 2.0 (the "License");
1839 * you may not use this file except in compliance with the License. 1840 * You may obtain a copy of the License at 1841 * 1842 * http://www.apache.org/licenses/LICENSE-2.0 1843 * 1844 * Unless required by applicable law or agreed to in writing, software 1845 * distributed under the License is distributed on an "AS IS" BASIS, 1846 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1847 * See the License for the specific language governing permissions and 1848 * limitations under the License. 1849 */class yA{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new Ie(de.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 Ie(de.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}qU("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=vO((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),(function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new Ie(de.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,o){return r.timeoutSeconds===o.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class em{constructor(e,n,r,o){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=o,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new yA({}),this._settingsFrozen=!1,this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Ie(de.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!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new Ie(de.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 yA(e),e.credentials!==void 0&&(this._authCredentials=(function(r){if(!r)return new l3;switch(r.type){case"firstParty":return new f3(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new Ie(de.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==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return(function(n){const r=_A.get(n);r&&(Ce("ComponentProvider","Removing Datastore"),_A.delete(n),r.terminate())})(this),Promise.resolve()}}function WU(t,e,n,r={}){var o;const i=(t=fr(t,em))._getSettings(),s=`${e}:${n}`;if(i.host!=="firestore.googleapis.com"&&i.host!==s&&Yc("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},i),{host:s,ssl:!1})),r.mockUserToken){let a,c;if(typeof r.mockUserToken=="string")a=r.mockUserToken,c=Tn.MOCK_USER;else{a=F8(r.mockUserToken,(o=t._app)===null||o===void 0?void 0:o.options.projectId);const l=r.mockUserToken.sub||r.mockUserToken.user_id;if(!l)throw new Ie(de.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");c=new Tn(l)}
1849t._authCredentials=new u3(new ES(a,c))}}/** 1850 * @license 1851 * Copyright 2020 Google LLC 1852 * 1853 * Licensed under the Apache License, Version 2.0 (the "License"); 1854 * you may not use this file except in compliance with the License. 1855 * You may obtain a copy of the License at 1856 * 1857 * http://www.apache.org/licenses/LICENSE-2.0 1858 * 1859 * Unless required by applicable law or agreed to in writing, software 1860 * distributed under the License is distributed on an "AS IS" BASIS, 1861 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1862 * See the License for the specific language governing permissions and 1863 * limitations under the License. 1864 */let Cl=class bO{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new bO(this.firestore,e,this._query)}};class $n{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 Us(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new $n(this.firestore,e,this._key)}}class Us extends Cl{constructor(e,n,r){super(e,n,z_(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 $n(this.firestore,null,new Oe(e))}withConverter(e){return new Us(this.firestore,e,this._path)}}function Hae(t,e,...n){if(t=kn(t),EO("collection","path",e),t instanceof em){const r=It.fromString(e,...n);return gA(r),new Us(t,null,r)}{if(!(t instanceof $n||t instanceof Us))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(It.fromString(e,...n));return gA(r),new Us(t.firestore,null,r)}}function KU(t,e,...n){if(t=kn(t),arguments.length===1&&(e=bS.newId()),EO("doc","path",e),t instanceof em){const r=It.fromString(e,...n);return mA(r),new $n(t,null,new Oe(r))}{if(!(t instanceof $n||t instanceof Us))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(It.fromString(e,...n));return mA(r),new $n(t.firestore,t instanceof Us?t.converter:null,new Oe(r))}}/** 1865 * @license 1866 * Copyright 2020 Google LLC 1867 * 1868 * Licensed under the Apache License, Version 2.0 (the "License"); 1869 * you may not use this file except in compliance with the License. 1870 * You may obtain a copy of the License at 1871 * 1872 * http://www.apache.org/licenses/LICENSE-2.0 1873 * 1874 * Unless required by applicable law or agreed to in writing, software 1875 * distributed under the License is distributed on an "AS IS" BASIS, 1876 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1877 * See the License for the specific language governing permissions and 1878 * limitations under the License. 1879 */class vA{constructor(e=Promise.resolve()){this.Pu=[],this.Iu=!1,this.Tu=[],this.Eu=null,this.du=!1,this.Au=!1,this.Ru=[],this.t_=new nO(this,"async_queue_retry"),this.Vu=()=>{const r=_0();r&&Ce("AsyncQueue","Visibility state changed to "+r.visibilityState),this.t_.jo()},this.mu=e;const n=_0();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.Vu)}get isShuttingDown(){return this.Iu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.fu(),this.gu(e)}enterRestrictedMode(e){if(!this.Iu){this.Iu=!0,this.Au=e||!1;const n=_0();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.Vu)}}enqueue(e){if(this.fu(),this.Iu)return new Promise((()=>{}));const n=new Ki;return this.gu((()=>this.Iu&&this.Au?Promise.resolve():(e().then(n.resolve,n.reject),n.promise))).then((()=>n.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Pu.push(e),this.pu())))}async pu(){if(this.Pu.length!==0){try{await this.Pu[0](),this.Pu.shift(),this.t_.reset()}catch(e){if(!Fd(e))throw e;Ce("AsyncQueue","Operation failed with retryable error: "+e)}this.Pu.length>0&&this.t_.Go((()=>this.pu()))}}gu(e){const n=this.mu.then((()=>(this.du=!0,e().catch((r=>{this.Eu=r,this.du=!1;const o=(function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+` 1880`+s.stack),a})(r);throw rs("INTERNAL UNHANDLED ERROR: ",o),r})).then((r=>(this.du=!1,r))))));return this.mu=n,n}enqueueAfterDelay(e,n,r){this.fu(),this.Ru.indexOf(e)>-1&&(n=0);const o=cE.createAndSchedule(this,e,n,r,(i=>this.yu(i)));return this.Tu.push(o),o}fu(){this.Eu&&ke()}verifyOperationInProgress(){}async wu(){let e;do e=this.mu,await e;while(e!==this.mu)}Su(e){for(const n of this.Tu)if(n.timerId===e)return!0;return!1}bu(e){return this.wu().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.wu()}))}Du(e){this.Ru.push(e)}yu(e){const n=this.Tu.indexOf(e);this.Tu.splice(n,1)}}function EA(t){return(function(n,r){if(typeof n!="object"||n===null)return!1;const o=n;for(const i of r)if(i in o&&typeof o[i]=="function")return!0;return!1})(t,["next","error","complete"])}class Ks extends em{constructor(e,n,r,o){super(e,n,r,o),this.type="firestore",this._queue=new vA,this._persistenceKey=o?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new vA(e),this._firestoreClient=void 0,await e}}}function GU(t,e){const n=typeof t=="object"?t:jv(),r=typeof t=="string"?t:"(default)",o=$v(n,"firestore").getImmediate({identifier:r});if(!o._initialized){const i=V8("firestore");i&&WU(o,...i)}return o}function tm(t){if(t._terminated)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||QU(t),t._firestoreClient}function QU(t){var e,n,r;const o=t._freezeSettings(),i=(function(a,c,l,u){return new I3(a,c,l,u.host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,vO(u.experimentalLongPollingOptions),u.useFetchStreams)})(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,o);t._componentsProvider||!((n=o.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=o.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._componentsProvider={_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider}),t._firestoreClient=new UU(t._authCredentials,t._appCheckCredentials,t._queue,i,t._componentsProvider&&(function(a){const c=a?._online.build();return{_offline:a?._offline.build(c),_online:c}})(t._componentsProvider))}/** 1881 * @license 1882 * Copyright 2020 Google LLC 1883 * 1884 * Licensed under the Apache License, Version 2.0 (the "License");
1885 * you may not use this file except in compliance with the License. 1886 * You may obtain a copy of the License at 1887 * 1888 * http://www.apache.org/licenses/LICENSE-2.0 1889 * 1890 * Unless required by applicable law or agreed to in writing, software 1891 * distributed under the License is distributed on an "AS IS" BASIS, 1892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1893 * See the License for the specific language governing permissions and 1894 * limitations under the License. 1895 */class nl{constructor(e){this._byteString=e}static fromBase64String(e){try{return new nl(gn.fromBase64String(e))}catch(n){throw new Ie(de.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new nl(gn.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)}}/** 1896 * @license 1897 * Copyright 2020 Google LLC 1898 * 1899 * Licensed under the Apache License, Version 2.0 (the "License"); 1900 * you may not use this file except in compliance with the License. 1901 * You may obtain a copy of the License at 1902 * 1903 * http://www.apache.org/licenses/LICENSE-2.0 1904 * 1905 * Unless required by applicable law or agreed to in writing, software 1906 * distributed under the License is distributed on an "AS IS" BASIS, 1907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1908 * See the License for the specific language governing permissions and 1909 * limitations under the License. 1910 */class mE{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new Ie(de.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new fn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/** 1911 * @license 1912 * Copyright 2020 Google LLC 1913 * 1914 * Licensed under the Apache License, Version 2.0 (the "License"); 1915 * you may not use this file except in compliance with the License. 1916 * You may obtain a copy of the License at 1917 * 1918 * http://www.apache.org/licenses/LICENSE-2.0 1919 * 1920 * Unless required by applicable law or agreed to in writing, software 1921 * distributed under the License is distributed on an "AS IS" BASIS, 1922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1923 * See the License for the specific language governing permissions and 1924 * limitations under the License. 1925 */class wO{constructor(e){this._methodName=e}}/** 1926 * @license 1927 * Copyright 2017 Google LLC 1928 * 1929 * Licensed under the Apache License, Version 2.0 (the "License"); 1930 * you may not use this file except in compliance with the License. 1931 * You may obtain a copy of the License at 1932 * 1933 * http://www.apache.org/licenses/LICENSE-2.0 1934 * 1935 * Unless required by applicable law or agreed to in writing, software 1936 * distributed under the License is distributed on an "AS IS" BASIS, 1937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1938 * See the License for the specific language governing permissions and 1939 * limitations under the License. 1940 */class jd{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new Ie(de.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new Ie(de.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return tt(this._lat,e._lat)||tt(this._long,e._long)}}/** 1941 * @license 1942 * Copyright 2024 Google LLC 1943 * 1944 * Licensed under the Apache License, Version 2.0 (the "License"); 1945 * you may not use this file except in compliance with the License. 1946 * You may obtain a copy of the License at 1947 * 1948 * http://www.apache.org/licenses/LICENSE-2.0 1949 * 1950 * Unless required by applicable law or agreed to in writing, software 1951 * distributed under the License is distributed on an "AS IS" BASIS, 1952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1953 * See the License for the specific language governing permissions and 1954 * limitations under the License. 1955 */class gE{constructor(e){this._values=(e||[]).map((n=>n))}toArray(){return this._values.map((e=>e))}isEqual(e){return(function(r,o){if(r.length!==o.length)return!1;for(let i=0;i<r.length;++i)if(r[i]!==o[i])return!1;return!0})(this._values,e._values)}}/** 1956 * @license 1957 * Copyright 2017 Google LLC 1958 * 1959 * Licensed under the Apache License, Version 2.0 (the "License");
1960 * you may not use this file except in compliance with the License. 1961 * You may obtain a copy of the License at 1962 * 1963 * http://www.apache.org/licenses/LICENSE-2.0 1964 * 1965 * Unless required by applicable law or agreed to in writing, software 1966 * distributed under the License is distributed on an "AS IS" BASIS, 1967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1968 * See the License for the specific language governing permissions and 1969 * limitations under the License. 1970 */const YU=/^__.*__$/;class XU{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new Za(e,this.data,this.fieldMask,n,this.fieldTransforms):new Md(e,this.data,n,this.fieldTransforms)}}function TO(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ke()}}class yE{constructor(e,n,r,o,i,s){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=o,i===void 0&&this.vu(),this.fieldTransforms=i||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Cu(){return this.settings.Cu}Fu(e){return new yE(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Mu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),o=this.Fu({path:r,xu:!1});return o.Ou(e),o}Nu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),o=this.Fu({path:r,xu:!1});return o.vu(),o}Lu(e){return this.Fu({path:void 0,xu:!0})}Bu(e){return Hp(e,this.settings.methodName,this.settings.ku||!1,this.path,this.settings.qu)}contains(e){return this.fieldMask.find((n=>e.isPrefixOf(n)))!==void 0||this.fieldTransforms.find((n=>e.isPrefixOf(n.field)))!==void 0}vu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Ou(this.path.get(e))}Ou(e){if(e.length===0)throw this.Bu("Document fields must not be empty");if(TO(this.Cu)&&YU.test(e))throw this.Bu('Document fields cannot begin and end with "__"')}}class JU{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||Y_(e)}Qu(e,n,r,o=!1){return new yE({Cu:e,methodName:n,qu:r,path:fn.emptyPath(),xu:!1,ku:o},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function vE(t){const e=t._freezeSettings(),n=Y_(t._databaseId);return new JU(t._databaseId,!!e.ignoreUndefinedProperties,n)}function AO(t,e,n,r,o,i={}){const s=t.Qu(i.merge||i.mergeFields?2:0,e,n,o);RO("Data must be an object, but it was:",s,r);const a=xO(r,s);let c,l;if(i.merge)c=new Sr(s.fieldMask),l=s.fieldTransforms;else if(i.mergeFields){const u=[];for(const d of i.mergeFields){const f=e9(e,d,n);if(!s.contains(f))throw new Ie(de.INVALID_ARGUMENT,`Field '${f}' is specified in your field mask but missing from your input data.`);n9(u,f)||u.push(f)}c=new Sr(u),l=s.fieldTransforms.filter((d=>c.covers(d.field)))}else c=null,l=s.fieldTransforms;return new XU(new ur(a),c,l)}function ZU(t,e,n,r=!1){return EE(n,t.Qu(r?4:3,e))}function EE(t,e){if(IO(t=kn(t)))return RO("Unsupported field value:",e,t),xO(t,e);if(t instanceof wO)return(function(r,o){if(!TO(o.Cu))throw o.Bu(`${r._methodName}() can only be used with update() and set()`);if(!o.path)throw o.Bu(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(o);i&&o.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.xu&&e.Cu!==4)throw e.Bu("Nested arrays are not supported");return(function(r,o){const i=[];let s=0;for(const a of r){let c=EE(a,o.Lu(s));c==null&&(c={nullValue:"NULL_VALUE"}),i.push(c),s++}return{arrayValue:{values:i}}})(t,e)}return(function(r,o){if((r=kn(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return G3(o.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Bt.fromDate(r);return{timestampValue:Bp(o.serializer,i)}}if(r instanceof Bt){const i=new Bt(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Bp(o.serializer,i)}}if(r instanceof jd)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof nl)return{bytesValue:KS(o.serializer,r._byteString)};if(r instanceof $n){const i=o.databaseId,s=r.firestore._databaseId;if(!s.isEqual(i))throw o.Bu(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:eE(r.firestore._databaseId||o.databaseId,r._key.path)}}if(r instanceof gE)return(function(s,a){return{mapValue:{fields:{__type__:{stringValue:"__vector__"},value:{arrayValue:{values:s.toArray().map((c=>{if(typeof c!="number")throw a.Bu("VectorValues must only contain numeric values.");return Yv(a.serializer,c)}))}}}}}})(r,o);throw o.Bu(`Unsupported field value: ${Z_(r)}`)})(t,e)}function xO(t,e){const n={};return wS(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Al(t,((r,o)=>{const i=EE(o,e.Mu(r));i!=null&&(n[r]=i)})),{mapValue:{fields:n}}}function IO(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Bt||t instanceof jd||t instanceof nl||t instanceof $n||t instanceof wO||t instanceof gE)}function RO(t,e,n){if(!IO(n)||!(function(o){return typeof o=="object"&&o!==null&&(Object.getPrototypeOf(o
1970)===Object.prototype||Object.getPrototypeOf(o)===null)})(n)){const r=Z_(n);throw r==="an object"?e.Bu(t+" a custom object"):e.Bu(t+" "+r)}}function e9(t,e,n){if((e=kn(e))instanceof mE)return e._internalPath;if(typeof e=="string")return CO(t,e);throw Hp("Field path arguments must be of type string or ",t,!1,void 0,n)}const t9=new RegExp("[~\\*/\\[\\]]");function CO(t,e,n){if(e.search(t9)>=0)throw Hp(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new mE(...e.split("."))._internalPath}catch{throw Hp(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Hp(t,e,n,r,o){const i=r&&!r.isEmpty(),s=o!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(i||s)&&(c+=" (found",i&&(c+=` in field ${r}`),s&&(c+=` in document ${o}`),c+=")"),new Ie(de.INVALID_ARGUMENT,a+t+c)}function n9(t,e){return t.some((n=>n.isEqual(e)))}/** 1971 * @license 1972 * Copyright 2020 Google LLC 1973 * 1974 * Licensed under the Apache License, Version 2.0 (the "License"); 1975 * you may not use this file except in compliance with the License. 1976 * You may obtain a copy of the License at 1977 * 1978 * http://www.apache.org/licenses/LICENSE-2.0 1979 * 1980 * Unless required by applicable law or agreed to in writing, software 1981 * distributed under the License is distributed on an "AS IS" BASIS, 1982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1983 * See the License for the specific language governing permissions and 1984 * limitations under the License. 1985 */class PO{constructor(e,n,r,o,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=o,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new $n(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new r9(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(bE("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class r9 extends PO{data(){return super.data()}}function bE(t,e){return typeof e=="string"?CO(t,e):e instanceof mE?e._internalPath:e._delegate._internalPath}/** 1986 * @license 1987 * Copyright 2020 Google LLC 1988 * 1989 * Licensed under the Apache License, Version 2.0 (the "License"); 1990 * you may not use this file except in compliance with the License. 1991 * You may obtain a copy of the License at 1992 * 1993 * http://www.apache.org/licenses/LICENSE-2.0 1994 * 1995 * Unless required by applicable law or agreed to in writing, software 1996 * distributed under the License is distributed on an "AS IS" BASIS, 1997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1998 * See the License for the specific language governing permissions and 1999 * limitations under the License. 2000 */function SO(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new Ie(de.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class wE{}class OO extends wE{}function zae(t,e,...n){let r=[];e instanceof wE&&r.push(e),r=r.concat(n),(function(i){const s=i.filter((c=>c instanceof AE)).length,a=i.filter((c=>c instanceof TE)).length;if(s>1||s>0&&a>0)throw new Ie(de.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 o of r)t=o._apply(t);return t}class TE extends OO{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new TE(e,n,r)}_apply(e){const n=this._parse(e);return DO(e._query,n),new Cl(e.firestore,e.converter,Dg(e._query,n))}_parse(e){const n=vE(e.firestore);return(function(i,s,a,c,l,u,d){let f;
2000if(l.isKeyField()){if(u==="array-contains"||u==="array-contains-any")throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if(u==="in"||u==="not-in"){wA(d,u);const _=[];for(const m of d)_.push(bA(c,i,m));f={arrayValue:{values:_}}}else f=bA(c,i,d)}else u!=="in"&&u!=="not-in"&&u!=="array-contains-any"||wA(d,u),f=ZU(a,s,d,u==="in"||u==="not-in");return zt.create(l,u,f)})(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}class AE extends wE{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new AE(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]:Ur.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:((function(o,i){let s=o;const a=i.getFlattenedFilters();for(const c of a)DO(s,c),s=Dg(s,c)})(e._query,n),new Cl(e.firestore,e.converter,Dg(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class xE extends OO{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new xE(e,n)}_apply(e){const n=(function(o,i,s){if(o.startAt!==null)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(o.endAt!==null)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new ld(i,s)})(e._query,this._field,this._direction);return new Cl(e.firestore,e.converter,(function(o,i){const s=o.explicitOrderBy.concat([i]);return new xl(o.path,o.collectionGroup,s,o.filters.slice(),o.limit,o.limitType,o.startAt,o.endAt)})(e._query,n))}}function qae(t,e="asc"){const n=e,r=bE("orderBy",t);return xE._create(r,n)}function bA(t,e,n){if(typeof(n=kn(n))=="string"){if(n==="")throw new Ie(de.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!OS(e)&&n.indexOf("/")!==-1)throw new Ie(de.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(It.fromString(n));if(!Oe.isDocumentKey(r))throw new Ie(de.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 jT(t,new Oe(r))}if(n instanceof $n)return jT(t,n._key);throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Z_(n)}.`)}function wA(t,e){if(!Array.isArray(t)||t.length===0)throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function DO(t,e){const n=(function(o,i){for(const s of o)for(const a of s.getFlattenedFilters())if(i.indexOf(a.op)>=0)return a.op;return null})(t.filters,(function(o){switch(o){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 Ie(de.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new Ie(de.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class o9{convertValue(e,n="none"){switch(Ba(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Ft(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(Ma(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 11:return this.convertObject(e.mapValue,n);case 10:return this.convertVectorValue(e.mapValue);default:throw ke()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Al(e,((o,i)=>{r[o]=this.convertValue(i,n)})),r}convertVectorValue(e){var n,r,o;const i=(o=(r=(n=e.fields)===null||n===void 0?void 0:n.value.arrayValue)===null||r===void 0?void 0:r.values)===null||o===void 0?void 0:o.map((s=>Ft(s.doubleValue)));return new gE(i)}convertGeoPoint(e){return new jd(Ft(e.latitude),Ft(e.longitude))}convertArray(e,n){return(e.values||[]).map((r=>this.convertValue(r,n)))}convertServerTimestamp(e,n){switch(n){case"previous":const r=Wv(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(sd(e));default:return null}}convertTimestamp(e){const n=qs(e);return new Bt(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=It.fromString(e);ut(ZS(r));const o=new ad(r.get(1),r.get(3)),i=new Oe(r.popFirst(5));return o.isEqual(n)||rs(`Document ${i} contains a document reference within a different database (${o.projectId}/${o.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}/** 2001 * @license 2002 * Copyright 2020 Google LLC 2003 * 2004 * Licensed under the Apache License, Version 2.0 (the "License");
2005 * you may not use this file except in compliance with the License. 2006 * You may obtain a copy of the License at 2007 * 2008 * http://www.apache.org/licenses/LICENSE-2.0 2009 * 2010 * Unless required by applicable law or agreed to in writing, software 2011 * distributed under the License is distributed on an "AS IS" BASIS, 2012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2013 * See the License for the specific language governing permissions and 2014 * limitations under the License. 2015 */function LO(t,e,n){let r;return r=t?t.toFirestore(e):e,r}/** 2016 * @license 2017 * Copyright 2020 Google LLC 2018 * 2019 * Licensed under the Apache License, Version 2.0 (the "License"); 2020 * you may not use this file except in compliance with the License. 2021 * You may obtain a copy of the License at 2022 * 2023 * http://www.apache.org/licenses/LICENSE-2.0 2024 * 2025 * Unless required by applicable law or agreed to in writing, software 2026 * distributed under the License is distributed on an "AS IS" BASIS, 2027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2028 * See the License for the specific language governing permissions and 2029 * limitations under the License. 2030 */class gu{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class kO extends PO{constructor(e,n,r,o,i,s){super(e,n,r,o,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new ff(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(bE("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class ff extends kO{data(e={}){return super.data(e)}}class NO{constructor(e,n,r,o){this._firestore=e,this._userDataWriter=n,this._snapshot=o,this.metadata=new gu(o.hasPendingWrites,o.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 ff(this._firestore,this._userDataWriter,r.key,r,new gu(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 Ie(de.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(o,i){if(o._snapshot.oldDocs.isEmpty()){let s=0;return o._snapshot.docChanges.map((a=>{const c=new ff(o._firestore,o._userDataWriter,a.doc.key,a.doc,new gu(o._snapshot.mutatedKeys.has(a.doc.key),o._snapshot.fromCache),o.query.converter);return a.doc,{type:"added",doc:c,oldIndex:-1,newIndex:s++}}))}{let s=o._snapshot.oldDocs;return o._snapshot.docChanges.filter((a=>i||a.type!==3)).map((a=>{const c=new ff(o._firestore,o._userDataWriter,a.doc.key,a.doc,new gu(o._snapshot.mutatedKeys.has(a.doc.key),o._snapshot.fromCache),o.query.converter);let l=-1,u=-1;return a.type!==0&&(l=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),a.type!==1&&(s=s.add(a.doc),u=s.indexOf(a.doc.key)),{type:i9(a.type),doc:c,oldIndex:l,newIndex:u}}))}})(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function i9(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ke()}}/** 2031 * @license 2032 * Copyright 2020 Google LLC 2033 * 2034 * Licensed under the Apache License, Version 2.0 (the "License"); 2035 * you may not use this file except in compliance with the License. 2036 * You may obtain a copy of the License at 2037 * 2038 * http://www.apache.org/licenses/LICENSE-2.0 2039 * 2040 * Unless required by applicable law or agreed to in writing, software 2041 * distributed under the License is distributed on an "AS IS" BASIS, 2042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2043 * See the License for the specific language governing permissions and 2044 * limitations under the License. 2045 */function VO(t){t=fr(t,$n);const e=fr(t.firestore,Ks);return HU(tm(e),t._key).then((n=>FO(e,t,n)))}class IE extends o9{constructor(e){super(),this.firestore=e}convertBytes(e){return new nl(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);
2045return new $n(this.firestore,null,n)}}function s9(t){t=fr(t,Cl);const e=fr(t.firestore,Ks),n=tm(e),r=new IE(e);return SO(t._query),zU(n,t._query).then((o=>new NO(e,r,t,o)))}function Wae(t,e,n){t=fr(t,$n);const r=fr(t.firestore,Ks),o=LO(t.converter,e);return CE(r,[AO(vE(r),"setDoc",t._key,o,t.converter!==null,n).toMutation(t._key,Vr.none())])}function Kae(t){return CE(fr(t.firestore,Ks),[new Xv(t._key,Vr.none())])}function Gae(t,e){const n=fr(t.firestore,Ks),r=KU(t),o=LO(t.converter,e);return CE(n,[AO(vE(t.firestore),"addDoc",r._key,o,t.converter!==null,{}).toMutation(r._key,Vr.exists(!1))]).then((()=>r))}function RE(t,...e){var n,r,o;t=kn(t);let i={includeMetadataChanges:!1,source:"default"},s=0;typeof e[s]!="object"||EA(e[s])||(i=e[s],s++);const a={includeMetadataChanges:i.includeMetadataChanges,source:i.source};if(EA(e[s])){const d=e[s];e[s]=(n=d.next)===null||n===void 0?void 0:n.bind(d),e[s+1]=(r=d.error)===null||r===void 0?void 0:r.bind(d),e[s+2]=(o=d.complete)===null||o===void 0?void 0:o.bind(d)}let c,l,u;if(t instanceof $n)l=fr(t.firestore,Ks),u=z_(t._key.path),c={next:d=>{e[s]&&e[s](FO(l,t,d))},error:e[s+1],complete:e[s+2]};else{const d=fr(t,Cl);l=fr(d.firestore,Ks),u=d._query;const f=new IE(l);c={next:_=>{e[s]&&e[s](new NO(l,f,d,_))},error:e[s+1],complete:e[s+2]},SO(t._query)}return(function(f,_,m,y){const v=new _E(y),T=new fE(_,v,m);return f.asyncQueue.enqueueAndForget((async()=>uE(await jp(f),T))),()=>{v.Za(),f.asyncQueue.enqueueAndForget((async()=>dE(await jp(f),T)))}})(tm(l),u,a,c)}function CE(t,e){return(function(r,o){const i=new Ki;return r.asyncQueue.enqueueAndForget((async()=>DU(await jU(r),o,i))),i.promise})(tm(t),e)}function FO(t,e,n){const r=n.docs.get(e._key),o=new IE(t);return new kO(t,o,e._key,r,new gu(n.hasPendingWrites,n.fromCache),e.converter)}(function(e,n=!0){(function(o){Tl=o})(Ys),_i(new Br("firestore",((r,{instanceIdentifier:o,options:i})=>{const s=r.getProvider("app").getImmediate(),a=new Ks(new d3(r.getProvider("auth-internal")),new _3(r.getProvider("app-check-internal")),(function(l,u){if(!Object.prototype.hasOwnProperty.apply(l.options,["projectId"]))throw new Ie(de.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ad(l.options.projectId,u)})(s,o),s);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),or(FT,"4.7.3",e),or(FT,"4.7.3","esm2017")})();function a9(t){const e=l9(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let o=0;o<n.byteLength;o++)r.setUint8(o,e.charCodeAt(o));return n}const c9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l9(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,r=0;for(let o=0;o<t.length;o++)n<<=6,n|=c9.indexOf(t[o]),r+=6,r===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const u9=-1,d9=-2,h9=-3,f9=-4,p9=-5,_9=-6;function m9(t,e){return g9(JSON.parse(t),e)}function g9(t,e){if(typeof t=="number")return o(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function o(i,s=!1){if(i===u9)return;if(i===h9)return NaN;if(i===f9)return 1/0;if(i===p9)return-1/0;if(i===_9)return-0;if(s||typeof i!="number")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 c=a[0],l=e?.[c];if(l)return r[i]=l(o(a[1]));switch(c){case"Date":r[i]=new Date(a[1]);break;case"Set":const u=new Set;r[i]=u;for(let _=1;_<a.length;_+=1)u.add(o(a[_]));break;case"Map":const d=new Map;r[i]=d;for(let _=1;_<a.length;_+=2)d.set(o(a[_]),o(a[_+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const f=Object.create(null);r[i]=f;for(let _=1;_<a.length;_+=2)f[a[_]]=o(a[_+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const _=globalThis[c],m=new _(o(a[1]));r[i]=a[2]!==void 0?m.subarray(a[2],a[3]):m;break}case"ArrayBuffer":{const _=a[1],m=a9(_);r[i]=m;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const _=c.slice(9);r[i]=Temporal[_].from(a[1]);break}case"URL":{const _=new URL(a[1]);r[i]=_;break}case"URLSearchParams":{const _=new URLSearchParams(a[1]);r[i]=_;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(a.length);r[i]=c;for(let l=0;l<a.length;l+=1){const u=a[l];u!==d9&&(c[l]=o(u))}}else{const c={};r[i]=c;for(const l in a){if(l==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=a[l];c[l]=o(u)}}return r[i]}return o(0)}const y9=new Set(["link","style","script","noscript"]),v9=new Set(["title","titleTemplate","script","style","noscript"]),TA=new Set(["base","meta","link","style","script","noscript"]),E9=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),b9=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),w9=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),T9=new Set(["templateParams","htmlAttrs","bodyAttrs"]),PE=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),hd={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},A9={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},MO={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>`${Mi(t)}=${e}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:t,value:e})=>t==="seconds"?`${e}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>typeof e=="boolean"?Mi(t):`${Mi(t)}:${e}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:t,value:e})=>`${Mi(t)} ${e}`}},charset:{}};function Mi(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=e.indexOf("-");return n===-1?e:hd.META.has(e.slice(0,n))||hd.OG.has(e.slice(0,n))?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function BO(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>String(n)!=="false"&&e))}function jg(t){return Array.isArray(t)?t.map(jg):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[Mi(e),jg(n)]))}function UO(t,e={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:o,resolve:i}=e;return Object.entries(t).map(([s,a])=>{if(i){const l=i({key:s,value:a});if(l!==void 0)return l}const c=typeof a=="object"?UO(a,e):typeof a=="number"?a.toString():typeof a=="str
2045ing"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${s}${r}${c}`}).join(n)}function AA(t,e){const n=BO(e),r=Mi(t),o=$O(r);if(!PE.has(r))return[{[o]:r,...n}];const i=Object.fromEntries(Object.entries(n).map(([s,a])=>[`${t}${s==="url"?"":`${s[0].toUpperCase()}${s.slice(1)}`}`,a]));return zp(i||{}).sort((s,a)=>(s[o]?.length||0)-(a[o]?.length||0))}function $O(t){if(MO[t]?.metaKey==="http-equiv"||hd.HTTP_EQUIV.has(t))return"http-equiv";const e=Mi(t),n=e.indexOf(":");return n===-1?"name":hd.OG.has(e.slice(0,n))?"property":"name"}function x9(t){return A9[t]||Mi(t)}function I9(t,e){return e==="refresh"?`${t.seconds};url=${t.url}`:UO(jg(t),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...MO[e]?.unpack})}function zp(t){const e=[],n={};for(const[o,i]of Object.entries(t)){if(Array.isArray(i)){if(o==="themeColor"){i.forEach(s=>{typeof s=="object"&&s!==null&&e.push({name:"theme-color",...s})});continue}for(const s of i)if(typeof s=="object"&&s!==null){const a=[],c=[];for(const[l,u]of Object.entries(s)){const d=`${o}${l==="url"?"":`:${l}`}`,f=zp({[d]:u});(l==="url"?a:c).push(...f)}e.push(...a,...c)}else e.push(...typeof s=="string"?zp({[o]:s}):AA(o,s));continue}if(typeof i=="object"&&i)if(hd.MEDIA.has(o)){const s=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),c=s==="twitter"?"name":"property";i.url&&e.push({[c]:`${s}:${a}`,content:i.url}),i.secureUrl&&e.push({[c]:`${s}:${a}:secure_url`,content:i.secureUrl});for(const[l,u]of Object.entries(i))l!=="url"&&l!=="secureUrl"&&e.push({[c]:`${s}:${a}:${l}`,content:u})}else PE.has(Mi(o))?e.push(...AA(o,i)):n[o]=BO(i);else n[o]=i}const r=Object.entries(n).map(([o,i])=>{if(o==="charset")return{charset:i===null?"_null":i};const s=$O(o),a=x9(o),c=i===null?"_null":typeof i=="object"?I9(i,o):typeof i=="number"?i.toString():i;return s==="http-equiv"?{"http-equiv":a,content:c}:{[s]:a,content:c}});return[...e,...r].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const R9={key:"flatMeta",hooks:{"entries:normalize":t=>{const e=[];t.tags=t.tags.map(n=>n.tag!=="_flatMeta"?n:(e.push(zp(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...e)}}},C9=["name","property","http-equiv"],P9=new Set(["viewport","description","keywords","robots"]);function jO(t){const e=t.split(":");return e.length?PE.has(e[1]):!1}function Hg(t){const{props:e,tag:n}=t;if(b9.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(t.tag==="meta"){for(const r of C9)if(e[r]!==void 0){const o=e[r],i=o.includes(":"),s=P9.has(o),c=!(i||s)&&t.key?`:key:${t.key}`:"";return`${n}:${o}${c}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(v9.has(n)){const r=t.textContent||t.innerHTML;if(r)return`${n}:content:${r}`}}function xA(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function qp(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());let o;if(e&&(o=e(n,t)),Array.isArray(o))return o.map(i=>qp(i,e));if(o?.constructor===Object){const i={};for(const s of Object.keys(o))i[s]=qp(o[s],e,s);return i}return o}function S9(t,e){const n=t==="style"?new Map:new Set;function r(o){const i=o.trim();if(i)if(t==="style"){const[s,...a]=i.split(":").map(c=>c.trim());s&&a.length&&n.set(s,a.join(":"))}else i.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(o=>r(o)):e&&typeof e=="object"&&Object.entries(e).forEach(([o,i])=>{i&&i!=="false"&&(t==="style"?n.set(o.trim(),i):r(o))}),n}function HO(t,e){return t.props=t.props||{},e?t.tag==="templateParams"?(t.props=e,t):(Object.entries(e).forEach(([n,r])=>{if(r===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=S9(n,r);return}if(w9.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=e.type;if(e.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;e.type=s,t.props.type=s,t[n]=JSON.stringify(r)}else t[n]=r;return}const o=String(r),i=n.startsWith("data-");o==="true"||o===""?t.props[n]=i?o:!0:!r&&i&&o==="false"?t.props[n]="false":r!==void 0&&(t.props[n]=r)}),t):t}function O9(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=HO({tag:t,props:{}},n);return r.key&&y9.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function D9(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(o,i)=>{for(let s=0;s<e.length;s++)i=e[s](o,i);return i};t=n(void 0,t);const r=[];return t=qp(t,n),Object.entries(t||{}
2045).forEach(([o,i])=>{if(i!==void 0)for(const s of Array.isArray(i)?i:[i])r.push(O9(o,s))}),r.flat()}const IA=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,RA={base:-10,title:10},L9={critical:-8,high:-1,low:2},CA={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},k9=/@import/,eu=t=>t===""||t===!0;function N9(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=L9[e.tagPriority]||0,o=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:CA;if(e.tag in RA)n=RA[e.tag];else if(e.tag==="meta"){const i=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;i&&(n=CA.meta[i])}else e.tag==="link"&&e.props.rel?n=o.link[e.props.rel]:e.tag==="script"?eu(e.props.async)?n=o.script.async:e.props.src&&!eu(e.props.defer)&&!eu(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?n=o.script.sync:eu(e.props.defer)&&e.props.src&&!eu(e.props.async)&&(n=o.script.defer):e.tag==="style"&&(n=e.innerHTML&&k9.test(e.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function PA(t,e){const n=typeof e=="function"?e(t):e,r=n.key||String(t.plugins.size+1);t.plugins.get(r)||(t.plugins.set(r,n),t.hooks.addHooks(n.hooks||{}))}function V9(t={}){const e=HP();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,o=new Map,i=new Set,s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>PA(s,a),push(a,c){const l={...c||{}};delete l.head;const u=l._index??s._entryCount++,d={_i:u,input:a,options:l},f={_poll(_=!1){s.dirty=!0,!_&&i.add(u),e.callHook("entries:updated",s)},dispose(){r.delete(u)&&s.invalidate()},patch(_){(!l.mode||l.mode==="server"&&n||l.mode==="client"&&!n)&&(d.input=_,r.set(u,d),f._poll())}};return f.patch(a),f},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await e.callHook("entries:resolve",a);i.size;){const f=i.values().next().value;i.delete(f);const _=r.get(f);if(_){const m={tags:D9(_.input,t.propResolvers||[]).map(y=>Object.assign(y,_.options)),entry:_};await e.callHook("entries:normalize",m),_._tags=m.tags.map((y,v)=>(y._w=N9(s,y),y._p=(_._i<<10)+v,y._d=Hg(y),y))}}let c=!1;a.entries.flatMap(f=>(f._tags||[]).map(_=>({..._,props:{..._.props}}))).sort(IA).reduce((f,_)=>{const m=String(_._d||_._p);if(!f.has(m))return f.set(m,_);const y=f.get(m);if((_?.tagDuplicateStrategy||(T9.has(_.tag)?"merge":null)||(_.key&&_.key===y.key?"merge":null))==="merge"){const T={...y.props};Object.entries(_.props).forEach(([w,g])=>T[w]=w==="style"?new Map([...y.props.style||new Map,...g]):w==="class"?new Set([...y.props.class||new Set,...g]):g),f.set(m,{..._,props:T})}else _._p>>10===y._p>>10&&_.tag==="meta"&&jO(m)?(f.set(m,Object.assign([...Array.isArray(y)?y:[y],_],_)),c=!0):(_._w===y._w?_._p>y._p:_?._w<y?._w)&&f.set(m,_);return f},a.tagMap);const l=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(s._title=l?.textContent,u){const f=u?.textContent;if(s._titleTemplate=f,f){let _=typeof f=="function"?f(l?.textContent):f;typeof _=="string"&&!s.plugins.has("template-params")&&(_=_.replace("%s",l?.textContent||"")),l?_===null?a.tagMap.delete("title"):a.tagMap.set("title",{...l,textContent:_}):(u.tag="title",u.textContent=_)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(IA)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const d=[];for(const f of a.tags){const{innerHTML:_,tag:m,props:y}=f;if(E9.has(m)&&!(Object.keys(y).length===0&&!f.innerHTML&&!f.textContent)&&!(m==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(m==="script"&&_){if(y.type?.endsWith("json")){const v=typeof _=="string"?_:JSON.stringify(_);f.innerHTML=v.replace(/</g,"\\u003C")}else typeof _=="string"&&(f.innerHTML=_.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));f._d=Hg(f)}d.push(f)}}return d},invalidate(){for(const a of r.values())i.add(a._i);s.dirty=!0,e.callHook("entries:updated",s)}};
2045return(t?.plugins||[]).forEach(a=>PA(s,a)),s.hooks.callHook("init",s),t.init?.forEach(a=>a&&s.push(a)),s}const F9=(t,e)=>nt(e)?Ar(e):e,SE="usehead";function M9(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(SE,t)}}.install}function zO(){if(yl()){const t=Rt(SE);if(!t)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function qO(t,e={}){const n=e.head||zO();return n.ssr?n.push(t||{},e):B9(n,t,e)}function B9(t,e,n={}){const r=Te(!1);let o;return Ds(()=>{const s=r.value?{}:qp(e,F9);o?o.patch(s):o=t.push(s,n)}),Ut()&&(Ja(()=>{o.dispose()}),yv(()=>{r.value=!0}),gv(()=>{r.value=!1})),o}function U9(t={},e={}){(e.head||zO()).use(R9);const{title:r,titleTemplate:o,...i}=t;return qO({title:r,titleTemplate:o,_flatMeta:i},e)}function WO(t){const e=t||rt();return e.ssrContext?.head||e.runWithContext(()=>{if(yl()){const n=Rt(SE);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function $9(t,e={}){const n=WO(e.nuxt);return qO(t,{head:n,...e})}function j9(t,e={}){const n=WO(e.nuxt);return U9(t,{head:n,...e})}const H9="modulepreload",z9=function(t,e){return new URL(t,e).href},SA={},p=function(e,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");o=l(n.map(u=>{if(u=z9(u,r),u in SA)return;SA[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let m=s.length-1;m>=0;m--){const y=s[m];if(y.href===u&&(!d||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":H9,d||(_.as="script"),_.crossOrigin="",_.href=u,c&&_.setAttribute("nonce",c),document.head.appendChild(_),d)return new Promise((m,y)=>{_.addEventListener("load",m),_.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})};let pf,_f;function q9(){return pf=$fetch(Fv(`builds/meta/${br().app.buildId}.json`),{responseType:"json"}),pf.then(t=>{_f=y8(t.matcher)}).catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),pf}function KO(){return pf||q9()}async function GO(t){const e=typeof t=="string"?t:t.path;if(await KO(),!_f)return console.error("[nuxt] Error creating app manifest matcher.",_f),{};try{return GP({},..._f.matchAll(e).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function W9(t){return null}let da=null;async function K9(){if(da)return da;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await G9(t.textContent||""),n=t.dataset.src?await W9(t.dataset.src):void 0;return da={...e,...n,...window.__NUXT__},da.config?.public&&(da.config.public=Er(da.config.public)),da}async function G9(t){return await m9(t,rt()._payloadRevivers)}function mf(t,e){rt()._payloadRevivers[t]=e}const Q9=_8(()=>{mf("FirebaseTimestamp",t=>Hc(new Bt(t.seconds,t.nanoseconds))),mf("FirebaseGeoPoint",t=>Hc(new jd(t.latitude,t.longitude))),mf("DocumentData",t=>{const e=typeof t=="string"?JSON.parse(t):t,n=e.id;return delete e.id,Object.defineProperty(e,"id",{value:n})})}),Y9=[["NuxtError",t=>Oa(t)],["EmptyShallowRef",t=>fi(t==="_"?void 0:t==="0n"?BigInt(0):ed(t))],["EmptyRef",t=>Te(t==="_"?void 0:t==="0n"?BigInt(0):ed(t))],["ShallowRef",t=>fi(t)],["ShallowReactive",t=>Cr(t)],["Ref",t=>Te(t)],["Reactive",t=>Er(t)]],X9=$t({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[r,o]of Y9)mf(r,o);Object.assign(t.payload,([e,n]=Wn(()=>t.runWithContext(K9)),e=await e,n(),e)),window.__NUXT__=t.payload}});async function OE(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async o=>{const i=new Map,s=new Promise(_=>{t.resolveTags().then(m=>{_(m.map(y=>{const v=i.get(y._d)||0,T={tag:y,id:(v?`${y._d}:${v}`:y._d)||xA(y),shouldRender:!0};return y._d&&jO(y._d)&&i.set(y._d,v+1),T}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const _ of["body","head"]){const m=n[_]?.children;for(const y of m){const v=y.tagName.toLowerCase();if(!TA.has(v))continue;const T=HO({tag:v,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((w,g)=>(w[g]=y.getAttribute(g),w),{})||{}});
2045if(T.key=y.getAttribute("data-hid")||void 0,T._d=Hg(T)||xA(T),a.elMap.has(T._d)){let w=1,g=T._d;for(;a.elMap.has(g);)g=`${T._d}:${w++}`;a.elMap.set(g,y)}else a.elMap.set(T._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(_,m,y){const v=`${_}:${m}`;a.sideEffects[v]=y,delete a.pendingSideEffects[v]}function l({id:_,$el:m,tag:y}){const v=y.tag.endsWith("Attrs");a.elMap.set(_,m),v||(y.textContent&&y.textContent!==m.textContent&&(m.textContent=y.textContent),y.innerHTML&&y.innerHTML!==m.innerHTML&&(m.innerHTML=y.innerHTML),c(_,"el",()=>{m?.remove(),a.elMap.delete(_)}));for(const T in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,T))continue;const w=y.props[T];if(T.startsWith("on")&&typeof w=="function"){const E=m?.dataset;if(E&&E[`${T}fired`]){const C=T.slice(0,-5);w.call(m,new Event(C.substring(2)))}m.getAttribute(`data-${T}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:m).addEventListener(T.substring(2),w.bind(m)),m.setAttribute(`data-${T}`,""));continue}const g=`attr:${T}`;if(T==="class"){if(!w)continue;for(const E of w)v&&c(_,`${g}:${E}`,()=>m.classList.remove(E)),!m.classList.contains(E)&&m.classList.add(E)}else if(T==="style"){if(!w)continue;for(const[E,C]of w)c(_,`${g}:${E}`,()=>{m.style.removeProperty(E)}),m.style.setProperty(E,C)}else w!==!1&&w!==null&&(m.getAttribute(T)!==w&&m.setAttribute(T,w===!0?"":String(w)),v&&c(_,g,()=>m.removeAttribute(T)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await s;for(const _ of f){const{tag:m,shouldRender:y,id:v}=_;if(y){if(m.tag==="title"){n.title=m.textContent,c("title","",()=>n.title=a.title);continue}_.$el=_.$el||a.elMap.get(v),_.$el?l(_):TA.has(m.tag)&&u.push(_)}}for(const _ of u){const m=_.tag.tagPosition||"head";_.$el=n.createElement(_.tag.tag),l(_),d[m]=d[m]||n.createDocumentFragment(),d[m].appendChild(_.$el)}for(const _ of f)await t.hooks.callHook("dom:renderTag",_,n,c);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const _ in a.pendingSideEffects)a.pendingSideEffects[_]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:f}),o()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function J9(t={}){const e=t.domOptions?.render||OE;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return V9({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function Z9(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function e$(t={}){const e=J9({domOptions:{render:Z9(()=>OE(e),n=>setTimeout(n,0))},...t});return e.install=M9(e),e}const t$={disableDefaults:!0},n$=$t({name:"nuxt:head",enforce:"pre",setup(t){const e=e$(t$);t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await OE(e)};e.hooks.hook("dom:beforeRender",o=>{o.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)}}});/*! 2046 * vue-router v4.5.1 2047 * (c) 2025 Eduardo San Martin Morote 2048 * @license MIT 2049 */const Ac=typeof document<"u";function QO(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function r$(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&QO(t.default)}const at=Object.assign;function g0(t,e){const n={};for(const r in e){const o=e[r];n[r]=$r(o)?o.map(t):t(o)}return n}const Su=()=>{},$r=Array.isArray,YO=/#/g,o$=/&/g,i$=/\//g,s$=/=/g,a$=/\?/g,XO=/\+/g,c$=/%5B/g,l$=/%5D/g,JO=/%5E/g,u$=/%60/g,ZO=/%7B/g,d$=/%7C/g,eD=/%7D/g,h$=/%20/g;function DE(t){return encodeURI(""+t).replace(d$,"|").replace(c$,"[").replace(l$,"]")}function f$(t){return DE(t).replace(ZO,"{").replace(eD,"}").replace(JO,"^")}function zg(t){return DE(t).replace(XO,"%2B").replace(h$,"+").replace(YO,"%23").replace(o$,"%26").replace(u$,"`").replace(ZO,"{").replace(eD,"}").replace(JO,"^")}function p$(t){return zg(t).replace(s$,"%3D")}function _$(t){return DE(t).replace(YO,"%23").replace(a$,"%3F")}function m$(t){return t==null?"":_$(t).replace(i$,"%2F")}function fd(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const g$=/\/$/,y$=t=>t.replace(g$,"");function y0(t,e,n="/"){let r,o={},i="",s="";const a=e.indexOf("#");let c=e.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(r=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),o=t(i)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=w$(r??e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:fd(s)}}function v$(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function OA(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,o=n.matched.length-1;return r>-1&&r===o&&rl(e.matched[r],n.matched[o])&&tD(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function rl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function tD(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!b$(t[n],e[n]))return!1;return!0}function b$(t,e){return $r(t)?DA(t,e):$r(e)?DA(e,t):t===e}function DA(t,e){return $r(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function w$(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;
vendor: 10,900 bytes, line 2049
2049s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const cr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var pd;(function(t){t.pop="pop",t.push="push"})(pd||(pd={}));var Ou;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ou||(Ou={}));function T$(t){if(!t)if(Ac){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 A$=/^[^#]+#/;function x$(t,e){return t.replace(A$,"#")+e}function I$(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 nm=()=>({left:window.scrollX,top:window.scrollY});function R$(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=I$(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function LA(t,e){return(history.state?history.state.position-e:-1)+t}const qg=new Map;function C$(t,e){qg.set(t,e)}function P$(t){const e=qg.get(t);return qg.delete(t),e}let S$=()=>location.protocol+"//"+location.host;function nD(t,e){const{pathname:n,search:r,hash:o}=e,i=t.indexOf("#");if(i>-1){let a=o.includes(t.slice(i))?t.slice(i).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),OA(c,"")}return OA(n,t)+r+o}function O$(t,e,n,r){let o=[],i=[],s=null;const a=({state:f})=>{const _=nD(t,location),m=n.value,y=e.value;let v=0;if(f){if(n.value=_,e.value=f,s&&s===m){s=null;return}v=y?f.position-y.position:0}else r(_);o.forEach(T=>{T(n.value,m,{delta:v,type:pd.pop,direction:v?v>0?Ou.forward:Ou.back:Ou.unknown})})};function c(){s=n.value}function l(f){o.push(f);const _=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return i.push(_),_}function u(){const{history:f}=window;f.state&&f.replaceState(at({},f.state,{scroll:nm()}),"")}function d(){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:c,listen:l,destroy:d}}function kA(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?nm():null}}function D$(t){const{history:e,location:n}=window,r={value:nD(t,n)},o={value:e.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,l,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+c:S$()+t+c;try{e[u?"replaceState":"pushState"](l,"",f),o.value=l}catch(_){console.error(_),n[u?"replace":"assign"](f)}}function s(c,l){const u=at({},e.state,kA(o.value.back,c,o.value.forward,!0),l,{position:o.value.position});i(c,u,!0),r.value=c}function a(c,l){const u=at({},o.value,e.state,{forward:c,scroll:nm()});i(u.current,u,!0);const d=at({},kA(r.value,c,null),{position:u.position+1},l);i(c,d,!1),r.value=c}return{location:r,state:o,push:a,replace:s}}function L$(t){t=T$(t);const e=D$(t),n=O$(t,e.state,e.location,e.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=at({location:"",base:t,go:r,createHref:x$.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function k$(t){return typeof t=="string"||t&&typeof t=="object"}function rD(t){return typeof t=="string"||typeof t=="symbol"}const oD=Symbol("");var NA;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NA||(NA={}));function ol(t,e){return at(new Error,{type:t,[oD]:!0},e)}function ni(t,e){return t instanceof Error&&oD in t&&(e==null||!!(t.type&e))}const VA="[^/]+?",N$={sensitive:!1,strict:!1,start:!0,end:!0},V$=/[.+*?^${}()[\]/\\]/g;function F$(t,e){const n=at({},N$,e),r=[];let o=n.start?"^":"";const i=[];for(const l of t){const u=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let d=0;d<l.length;d++){const f=l[d];let _=40+(n.sensitive?.25:0);if(f.type===0)d||(o+="/"),o+=f.value.replace(V$,"\\$&"),_+=40;else if(f.type===1){const{value:m,repeatable:y,optional:v,regexp:T}=f;i.push({name:m,repeatable:y,optional:v});const w=T||VA;if(w!==VA){_+=10;try{new RegExp(`(${w})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${m}" (${w}): `+E.message)}}let g=y?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(g=v&&l.length<2?`(?:/${g})`:"/"+g),v&&(g+="?"),o+=g,_+=20,v&&(_+=-8),y&&(_+=-20),w===".*"&&(_+=-50)}u.push(_)}r.push(u)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(l){const u=l.match(s),d={};if(!u)return null;for(let f=1;f<u.length;f++){const _=u[f]||"",m=i[f-1];d[m.name]=_&&m.repeatable?_.split("/"):_}return d}function c(l){let u="",d=!1;for(const f of t){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const _ of f)if(_.type===0)u+=_.value;else if(_.type===1){const{value:m,repeatable:y,optional:v}=_,T=m in l?l[m]:"";if($r(T)&&!y)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const w=$r(T)?T.join("/"):T;if(!w)if(v)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=w}}return u||"/"}return{re:s,score:r,keys:i,parse:a,stringify:c}}function M$(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function iD(t,e){let n=0;const r=t.score,o=e.score;for(;n<r.length&&n<o.length;){const i=M$(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(FA(r))return 1;if(FA(o))return-1}return o.length-r.length}function FA(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const B$={type:0,value:""},U$=/[a-zA-Z0-9_]/;function $$(t){if(!t)return[[]];if(t==="/")return[[B$]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${n})/"${l}": ${_}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,c,l="",u="";function d(){l&&(n===0?i.push({type:0,value:l}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;a<t.length;){if(c=t[a++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(l&&d(),s()):c===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c==="("?n=2:U$.test(c)?f():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${l}"`),d(),s(),o}function j$(t,e,n){const r=F$($$(t.path),n),o=at(r,{record:t,parent:e,children:[],alias:[]});return e&&!o.record.aliasOf==!e.record.aliasOf&&e.children.push(o),o}function H$(t,e){const n=[],r=new Map;e=$A({strict:!1,end:!0,sensitive:!1},e);function o(d){return r.get(d)}function i(d,f,_){const m=!_,y=BA(d);y.aliasOf=_&&_.record;const v=$A(e,d),T=[y];if("alias"in d){const E=typeof d.alias=="string"?[d.alias]:d.alias;for(const C of E)T.push(BA(at({},y,{components:_?_.record.components:y.components,path:C,aliasOf:_?_.record:y})))}let w,g;for(const E of T){const{path:C}=E;if(f&&C[0]!=="/"){const L=f.record.path,A=L[L.length-1]==="/"?"":"/";E.path=f.record.path+(C&&A+C)}if(w=j$(E,f,v),_?_.alias.push(w):(g=g||w,g!==w&&g.alias.push(w),m&&d.name&&!UA(w)&&s(d.name)),sD(w)&&c(w),y.children){const L=y.children;for(let A=0;A<L.length;A++)i(L[A],w,_&&_.children[A])}_=_||w}return g?()=>{s(g)}:Su}function s(d){if(rD(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function c(d){const f=W$(d,n);n.splice(f,0,d),d.record.name&&!UA(d)&&r.set(d.record.name,d)}function l(d,f){let _,m={},y,v;if("name"in d&&d.name){if(_=r.get(d.name),!_)throw ol(1,{location:d});v=_.record.name,m=at(MA(f.params,_.keys.filter(g=>!g.optional).concat(_.parent?_.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),d.params&&MA(d.params,_.keys.map(g=>g.name))),y=_.stringify(m)}else if(d.path!=null)y=d.path,_=n.find(g=>g.re.test(y)),_&&(m=_.parse(y),v=_.record.name);else{if(_=f.name?r.get(f.name):n.find(g=>g.re.test(f.path)),!_)throw ol(1,{location:d,currentLocation:f});v=_.record.name,m=at({},f.params,d.params),y=_.stringify(m)}const T=[];let w=_;for(;w;)T.unshift(w.record),w=w.parent;return{name:v,path:y,params:m,matched:T,meta:q$(T)}}t.forEach(d=>i(d));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function MA(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function BA(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:z$(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function z$(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 UA(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function q$(t){return t.reduce((e,n)=>at(e,n.meta),{})}function $A(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function W$(t,e){let n=0,r=e.length;for(;n!==r;){const i=n+r>>1;iD(t,e[i])<0?r=i:n=i+1}const o=K$(t);return o&&(r=e.lastIndexOf(o,r-1)),r}function K$(t){let e=t;for(;e=e.parent;)if(sD(e)&&iD(t,e)===0)return e}function sD({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function G$(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(XO," "),s=i.indexOf("="),a=fd(s<0?i:i.slice(0,s)),c=s<0?null:fd(i.slice(s+1));if(a in e){let l=e[a];$r(l)||(l=e[a]=[l]),l.push(c)}else e[a]=c}return e}function jA(t){let e="";for(let n in t){const r=t[n];if(n=p$(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}($r(r)?r.map(i=>
vendor: 4,276 bytes, line 2049
2049i&&zg(i)):[r&&zg(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function Q$(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=$r(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const Y$=Symbol(""),HA=Symbol(""),rm=Symbol(""),LE=Symbol(""),Wg=Symbol("");function tu(){let t=[];function e(r){return t.push(r),()=>{const o=t.indexOf(r);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Is(t,e,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const l=f=>{f===!1?c(ol(4,{from:n,to:e})):f instanceof Error?c(f):k$(f)?c(ol(2,{from:e,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),a())},u=i(()=>t.call(r&&r.instances[o],e,n,l));let d=Promise.resolve(u);t.length<3&&(d=d.then(l)),d.catch(f=>c(f))})}function v0(t,e,n,r,o=i=>i()){const i=[];for(const s of t)for(const a in s.components){let c=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(QO(c)){const u=(c.__vccOpts||c)[e];u&&i.push(Is(u,n,r,s,a,o))}else{let l=c();i.push(()=>l.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=r$(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const _=(d.__vccOpts||d)[e];return _&&Is(_,n,r,s,a,o)()}))}}return i}function zA(t){const e=Rt(rm),n=Rt(LE),r=xe(()=>{const c=De(t.to);return e.resolve(c)}),o=xe(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(rl.bind(null,u));if(f>-1)return f;const _=qA(c[l-2]);return l>1&&qA(u)===_&&d[d.length-1].path!==_?d.findIndex(rl.bind(null,c[l-2])):f}),i=xe(()=>o.value>-1&&tj(n.params,r.value.params)),s=xe(()=>o.value>-1&&o.value===n.matched.length-1&&tD(n.params,r.value.params));function a(c={}){if(ej(c)){const l=e[De(t.replace)?"replace":"push"](De(t.to)).catch(Su);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:xe(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function X$(t){return t.length===1?t[0]:t}const J$=on({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"},viewTransition:Boolean},useLink:zA,setup(t,{slots:e}){const n=Er(zA(t)),{options:r}=Rt(rm),o=xe(()=>({[WA(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[WA(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&X$(e.default(n));return t.custom?i:Xt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Z$=J$;function ej(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 tj(t,e){for(const n in e){const r=e[n],o=t[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$r(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function qA(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const WA=(t,e,n)=>t??e??n,nj=on({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Rt(Wg),o=xe(()=>t.route||r.value),i=Rt(HA,0),s=xe(()=>{let l=De(i);const{matched:u}=o.value;let d;for(;(d=u[l])&&!d.components;)l++;return l}),a=xe(()=>o.value.matched[s.value]);qi(HA,xe(()=>s.value+1)),qi(Y$,a),qi(Wg,o);const c=Te();return Kt(()=>[c.value,a.value,t.name],([l,u,d],[f,_,m])=>{u&&(u.instances[d]=l,_&&_!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),l&&u&&(!_||!rl(u,_)||!f)&&(u.enterCallbacks[d]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=o.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return KA(n.default,{Component:f,route:l});const _=d.props[u],m=_?_===!0?l.params:typeof _=="function"?_(l):_:null,v=Xt(f,at({},m,e,{onVnodeUnmounted:T=>
vendor: 4,528 bytes, line 2049
2049{T.component.isUnmounted&&(d.instances[u]=null)},ref:c}));return KA(n.default,{Component:v,route:l})||v}}});function KA(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const aD=nj;function rj(t){const e=H$(t.routes,t),n=t.parseQuery||G$,r=t.stringifyQuery||jA,o=t.history,i=tu(),s=tu(),a=tu(),c=fi(cr);let l=cr;Ac&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=g0.bind(null,Y=>""+Y),d=g0.bind(null,m$),f=g0.bind(null,fd);function _(Y,ie){let he,ge;return rD(Y)?(he=e.getRecordMatcher(Y),ge=ie):ge=Y,e.addRoute(ge,he)}function m(Y){const ie=e.getRecordMatcher(Y);ie&&e.removeRoute(ie)}function y(){return e.getRoutes().map(Y=>Y.record)}function v(Y){return!!e.getRecordMatcher(Y)}function T(Y,ie){if(ie=at({},ie||c.value),typeof Y=="string"){const F=y0(n,Y,ie.path),$=e.resolve({path:F.path},ie),se=o.createHref(F.fullPath);return at(F,$,{params:f($.params),hash:fd(F.hash),redirectedFrom:void 0,href:se})}let he;if(Y.path!=null)he=at({},Y,{path:y0(n,Y.path,ie.path).path});else{const F=at({},Y.params);for(const $ in F)F[$]==null&&delete F[$];he=at({},Y,{params:d(F)}),ie.params=d(ie.params)}const ge=e.resolve(he,ie),K=Y.hash||"";ge.params=u(f(ge.params));const pe=v$(r,at({},Y,{hash:f$(K),path:ge.path})),k=o.createHref(pe);return at({fullPath:pe,hash:K,query:r===jA?Q$(Y.query):Y.query||{}},ge,{redirectedFrom:void 0,href:k})}function w(Y){return typeof Y=="string"?y0(n,Y,c.value.path):at({},Y)}function g(Y,ie){if(l!==Y)return ol(8,{from:ie,to:Y})}function E(Y){return A(Y)}function C(Y){return E(at(w(Y),{replace:!0}))}function L(Y){const ie=Y.matched[Y.matched.length-1];if(ie&&ie.redirect){const{redirect:he}=ie;let ge=typeof he=="function"?he(Y):he;return typeof ge=="string"&&(ge=ge.includes("?")||ge.includes("#")?ge=w(ge):{path:ge},ge.params={}),at({query:Y.query,hash:Y.hash,params:ge.path!=null?{}:Y.params},ge)}}function A(Y,ie){const he=l=T(Y),ge=c.value,K=Y.state,pe=Y.force,k=Y.replace===!0,F=L(he);if(F)return A(at(w(F),{state:typeof F=="object"?at({},K,F.state):K,force:pe,replace:k}),ie||he);const $=he;$.redirectedFrom=ie;let se;return!pe&&E$(r,ge,he)&&(se=ol(16,{to:$,from:ge}),W(ge,ge,!0,!1)),(se?Promise.resolve(se):x($,ge)).catch(G=>ni(G)?ni(G,2)?G:ue(G):H(G,$,ge)).then(G=>{if(G){if(ni(G,2))return A(at({replace:k},w(G.to),{state:typeof G.to=="object"?at({},K,G.to.state):K,force:pe}),ie||$)}else G=S($,ge,!0,k,K);return D($,ge,G),G})}function I(Y,ie){const he=g(Y,ie);return he?Promise.reject(he):Promise.resolve()}function R(Y){const ie=ne.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(Y):Y()}function x(Y,ie){let he;const[ge,K,pe]=oj(Y,ie);he=v0(ge.reverse(),"beforeRouteLeave",Y,ie);for(const F of ge)F.leaveGuards.forEach($=>{he.push(Is($,Y,ie))});const k=I.bind(null,Y,ie);return he.push(k),be(he).then(()=>{he=[];for(const F of i.list())he.push(Is(F,Y,ie));return he.push(k),be(he)}).then(()=>{he=v0(K,"beforeRouteUpdate",Y,ie);for(const F of K)F.updateGuards.forEach($=>{he.push(Is($,Y,ie))});return he.push(k),be(he)}).then(()=>{he=[];for(const F of pe)if(F.beforeEnter)if($r(F.beforeEnter))for(const $ of F.beforeEnter)he.push(Is($,Y,ie));else he.push(Is(F.beforeEnter,Y,ie));return he.push(k),be(he)}).then(()=>(Y.matched.forEach(F=>F.enterCallbacks={}),he=v0(pe,"beforeRouteEnter",Y,ie,R),he.push(k),be(he))).then(()=>{he=[];for(const F of s.list())he.push(Is(F,Y,ie));return he.push(k),be(he)}).catch(F=>ni(F,8)?F:Promise.reject(F))}function D(Y,ie,he){a.list().forEach(ge=>R(()=>ge(Y,ie,he)))}function S(Y,ie,he,ge,K){const pe=g(Y,ie);if(pe)return pe;const k=ie===cr,F=Ac?history.state:{};he&&(ge||k?o.replace(Y.fullPath,at({scroll:k&&F&&F.scroll},K)):o.push(Y.fullPath,K)),c.value=Y,W(Y,ie,he,k),ue()}let O;function ae(){O||(O=o.listen((Y,ie,he)=>{if(!q.listening)return;const ge=T(Y),K=L(ge);if(K){A(at(K,{replace:!0,force:!0}),ge).catch(Su);return}l=ge;const pe=c.value;Ac&&C$(LA(pe.fullPath,he.delta),nm()),x(ge,pe).catch(k=>ni(k,12)?k:ni(k,2)?(A(at(w(k.to),{force:!0}),ge).then(F=>{ni(F,20)&&!he.delta&&he.type===pd.pop&&o.go(-1,!1)}).catch(Su),Promise.reject()):(he.delta&&o.go(-he.delta,!1),H(k,ge,pe))).then(k=>{k=k||S(ge,pe,!1),k&&(he.delta&&!ni(k,8)?o.go(-he.delta,!1):he.type===pd.pop&&ni(k,20)&&o.go(-1,!1)),D(ge,pe,k)}).catch(Su)}))}let le=tu(),B=tu(),j;function H(Y,ie,he){ue(Y);const ge=B.list();return ge.length?ge.forEach(K=>K(Y,ie,he)):console.error(Y),Promise.reject(Y)}function ce(){return j&&c.value!==cr?Promise.resolve():new Promise((Y,ie)=>{le.add([Y,ie])})}
2049function ue(Y){return j||(j=!Y,ae(),le.list().forEach(([ie,he])=>Y?he(Y):ie()),le.reset()),Y}function W(Y,ie,he,ge){const{scrollBehavior:K}=t;if(!Ac||!K)return Promise.resolve();const pe=!he&&P$(LA(Y.fullPath,0))||(ge||!he)&&history.state&&history.state.scroll||null;return sr().then(()=>K(Y,ie,pe)).then(k=>k&&R$(k)).catch(k=>H(k,Y,ie))}const J=Y=>o.go(Y);let ee;const ne=new Set,q={currentRoute:c,listening:!0,addRoute:_,removeRoute:m,clearRoutes:e.clearRoutes,hasRoute:v,getRoutes:y,resolve:T,options:t,push:E,replace:C,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:ce,install(Y){const ie=this;Y.component("RouterLink",Z$),Y.component("RouterView",aD),Y.config.globalProperties.$router=ie,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>De(c)}),Ac&&!ee&&c.value===cr&&(ee=!0,E(o.location).catch(K=>{}));const he={};for(const K in cr)Object.defineProperty(he,K,{get:()=>c.value[K],enumerable:!0});Y.provide(rm,ie),Y.provide(LE,Cr(he)),Y.provide(Wg,c);const ge=Y.unmount;ne.add(Y),Y.unmount=function(){ne.delete(Y),ne.size<1&&(l=cr,O&&O(),O=null,c.value=cr,ee=!1,j=!1),ge()}}};function be(Y){return Y.reduce((ie,he)=>ie.then(()=>R(he)),Promise.resolve())}return q}function oj(t,e){const n=[],r=[],o=[],i=Math.max(e.matched.length,t.matched.length);for(let s=0;s<i;s++){const a=e.matched[s];a&&(t.matched.find(l=>rl(l,a))?r.push(a):n.push(a));const c=t.matched[s];c&&(e.matched.find(l=>rl(l,c))||o.push(c))}return[n,r,o]}function ij(){return Rt(rm)}function cD(t){return Rt(LE)}const sj=/(:\w+)\([^)]+\)/g,aj=/(:\w+)[?+*]/g,cj=/:\w+/g,lj=(t,e)=>e.path.replace(sj,"$1").replace(aj,"$1").replace(cj,n=>t.params[n.slice(1)]?.toString()||""),Kg=(t,e)=>{const n=t.route.matched.find(o=>o.components?.default===t.Component.type),r=e??n?.meta.key??(n&&lj(t.route,n));return typeof r=="function"?r(t.route):r},uj=(t,e)=>({default:()=>t?Xt(I1,t===!0?{}:t,e):e});function kE(t){return Array.isArray(t)?t:[t]}const qr={layout:"onboarding-layout"},Wr={layout:"onboarding-layout"},Kr={layout:"onboarding-layout"},Gr={layout:"onboarding-layout"},Qr={layout:"onboarding-layout"},Yr={layout:!1},Xr={layout:!1},Jr={layout:"onboarding-layout"},jt={layout:"default"},Zr={layout:!1},eo={layout:!1},to={layout:!1},no={layout:"onboarding-layout"},ro={layout:"onboarding-layout"},oo={layout:"onboarding-layout"},io={layout:"dashboard"},so={layout:"dashboard"},ao={layout:!1},co={layout:!1},lo={layout:"onboarding-layout"},uo={layout:"onboarding-layout"},ho={layout:"onboarding-layout"},fo={layout:"onboarding-layout"},po={layout:"onboarding-layout"},_o={layout:"onboarding-layout"},mo={layout:"onboarding-layout"},go={layout:"onboarding-layout"},yo={layout:"dashboard"},vo={layout:"dashboard"},Eo={layout:"dashboard"},bo={layout:"dashboard"},wo={layout:"polaroid"},To={layout:"dashboard"},Ao={layout:"dashboard"},xo={layout:"dashboard"},Io={layout:"dashboard"},Ro={layout:"dashboard"},Co={layout:"polaroid"},Po={layout:"dashboard"},So={layout:"dashboard"},Oo={layout:"dashboard"},Do={layout:"polaroid"},Lo={layout:"polaroid"},ko={layout:"dashboard"},No={layout:"dashboard"},Vo={layout:"dashboard",layoutTransition:!1,pageTransition:!1},Fo={layout:"dashboard"},Mo={layout:"dashboard"},Bo={layout:"quiz-mobile"},Uo={layout:"dashboard"},$o={layout:"dashboard"},jo={layout:"dashboard"},Ho={layout:"dashboard"},zo={layout:"dashboard"},qo={layout:"dashboard"},Wo={layout:"dashboard"},Ko={layout:"dashboard"},Go={layout:"dashboard"},Qo={layout:"dashboard"},Yo=null,Xo={},E0=[{name:"flux___en",path:"/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___fr",path:"/fr/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___es",path:"/es/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___pt-BR",path:"/pt-BR/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___de",path:"/de/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___ja",path:"/ja/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___ru",path:"/ru/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___zh-CN",path:"/zh-CN/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___tr",path:"/tr/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"flux___it",path:"/it/flux",component:()=>p(()=>import("./qqKMJtn5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"index___en",path:"/",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___fr",path:"/fr",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___es",path:"/es",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___pt-BR",path:"/pt-BR",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___de",path:"/de",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___ja",path:"/ja",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___ru",path:"/ru",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___zh-CN",path:"/zh-CN",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___tr",path:"/tr",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"index___it",path:"/it",component:()=>p(()=>import("./BEK99Dbw.js"),__vite__mapDeps([9,10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20,21,22,23,24,25,26,27,28,2,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url)},{name:"terms___en",path:"/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___fr",path:"/fr/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___es",path:"/es/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___pt-BR",path:"/pt-BR/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___de",path:"/de/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___ja",path:"/ja/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___ru",path:"/ru/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___zh-CN",path:"/zh-CN/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___tr",path:"/tr/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"terms___it",path:"/it/terms",component:()=>p(()=>import("./CM2GwmuY.js"),__vite__mapDeps([41,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___en",path:"/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___fr",path:"/fr/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___es",path:"/es/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___pt-BR",path:"/pt-BR/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___de",path:"/de/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___ja",path:"/ja/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___ru",path:"/ru/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___zh-CN",path:"/zh-CN/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___tr",path:"/tr/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"privacy___it",path:"/it/privacy",component:()=>p(()=>import("./bSY_lKX7.js"),__vite__mapDeps([43,42,14,11,12,13,40]),import.meta.url)},{name:"all___en",path:"/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___fr",path:"/fr/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___es",path:"/es/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___pt-BR",path:"/pt-BR/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___de",path:"/de/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___ja",path:"/ja/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___ru",path:"/ru/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___zh-CN",path:"/zh-CN/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___tr",path:"/tr/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"all___it",path:"/it/:all(.*)*",component:()=>p(()=>import("./C4Zjyo7r.js"),[],import.meta.url)},{name:"welcome-1___en",path:"/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___fr",path:"/fr/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___es",path:"/es/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___pt-BR",path:"/pt-BR/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___de",path:"/de/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___ja",path:"/ja/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___ru",path:"/ru/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___zh-CN",path:"/zh-CN/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___tr",path:"/tr/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-1___it",path:"/it/welcome/1",meta:qr||{},component:()=>p(()=>import("./8dKRzpct.js"),__vite__mapDeps([44,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-2___en",path:"/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___fr",path:"/fr/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___es",path:"/es/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___pt-BR",path:"/pt-BR/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___de",path:"/de/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___ja",path:"/ja/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___ru",path:"/ru/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___zh-CN",path:"/zh-CN/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___tr",path:"/tr/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-2___it",path:"/it/welcome/2",meta:Wr||{},component:()=>p(()=>import("./Ffw_t7Wk.js"),__vite__mapDeps([46,12,47,5,6,7,4,3,48,49,50,51,52,53,54,13,55]),import.meta.url)},{name:"welcome-3___en",path:"/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___fr",path:"/fr/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___es",path:"/es/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___pt-BR",path:"/pt-BR/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___de",path:"/de/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___ja",path:"/ja/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___ru",path:"/ru/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___zh-CN",path:"/zh-CN/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___tr",path:"/tr/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-3___it",path:"/it/welcome/3",meta:Kr||{},component:()=>p(()=>import("./Bgts_OSE.js"),__vite__mapDeps([56,12,5,6,7,4,3,48,49,53,51,52,54,13,57]),import.meta.url)},{name:"welcome-4___en",path:"/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___fr",path:"/fr/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___es",path:"/es/welcome/4",meta:Gr||{},com
2049ponent:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___pt-BR",path:"/pt-BR/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___de",path:"/de/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___ja",path:"/ja/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___ru",path:"/ru/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___zh-CN",path:"/zh-CN/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___tr",path:"/tr/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-4___it",path:"/it/welcome/4",meta:Gr||{},component:()=>p(()=>import("./EYl8C1Gm.js"),[],import.meta.url)},{name:"welcome-5___en",path:"/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___fr",path:"/fr/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___es",path:"/es/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___pt-BR",path:"/pt-BR/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___de",path:"/de/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___ja",path:"/ja/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___ru",path:"/ru/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___zh-CN",path:"/zh-CN/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___tr",path:"/tr/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"welcome-5___it",path:"/it/welcome/5",meta:Qr||{},component:()=>p(()=>import("./DPAjLesU.js"),__vite__mapDeps([58,45,5,6,7,4,3]),import.meta.url)},{name:"auth___en",path:"/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___fr",path:"/fr/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___es",path:"/es/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___pt-BR",path:"/pt-BR/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___de",path:"/de/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___ja",path:"/ja/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___ru",path:"/ru/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___zh-CN",path:"/zh-CN/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___tr",path:"/tr/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth___it",path:"/it/auth",meta:Yr||{},component:()=>p(()=>import("./BsoCIwSx.js"),__vite__mapDeps([59,14,12,11,13,60,6,3,4,1,2,5,7,20,52,51]),import.meta.url)},{name:"auth-login___en",path:"/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___fr",path:"/fr/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___es",path:"/es/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___pt-BR",path:"/pt-BR/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___de",path:"/de/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___ja",path:"/ja/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___ru",path:"/ru/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___zh-CN",path:"/zh-CN/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___tr",path:"/tr/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-login___it",path:"/it/auth/login",meta:Xr||{},component:()=>p(()=>import("./CIs9FR-g.js"),__vite__mapDeps([61,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:jt?.name,path:"/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___en",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/fr/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___fr",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/es/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___es",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/pt-BR/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___pt-BR",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/de/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___de",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/ja/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___ja",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/ru/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___ru",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/zh-CN/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___zh-CN",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/tr/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___tr",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:jt?.name,path:"/it/onboarding",meta:jt||{},component:()=>p(()=>import("./D5wxJ4-W.js"),__vite__mapDeps([63,5,6,7,4,3,12,64,13,65,66,67]),import.meta.url),children:[{name:"onboarding___it",path:"",meta:Jr||{},component:()=>p(()=>import("./Da0avMAq.js"),__vite__mapDeps([68,64,12,5,6,7,4,3,13,65,66,69]),import.meta.url)}]},{name:"auth-signup___en",path:"/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___fr",path:"/fr/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___es",path:"/es/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___pt-BR",path:"/pt-BR/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___de",path:"/de/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___ja",path:"/ja/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___ru",path:"/ru/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___zh-CN",path:"/zh-CN/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___tr",path:"/tr/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"auth-signup___it",path:"/it/auth/signup",meta:Zr||{},component:()=>p(()=>import("./CF2Nt65d.js"),__vite__mapDeps([70,14,12,11,13,60,6,3,4,1,2,5,7,62,20,52,51]),import.meta.url)},{name:"welcome-fun___en",path:"/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___fr",path:"/fr/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___es",path:"/es/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___pt-BR",path:"/pt-BR/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___de",path:"/de/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___ja",path:"/ja/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___ru",path:"/ru/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___zh-CN",path:"/zh-CN/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___tr",path:"/tr/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun___it",path:"/it/welcome/fun",meta:eo||{},component:()=>p(()=>import("./D-5127ki.js"),__vite__mapDeps([71,72,5,6,7,4,3,73]),import.meta.url)},{name:"cerebro-test___en",path:"/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___fr",path:"/fr/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___es",path:"/es/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___pt-BR",path:"/pt-BR/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___de",path:"/de/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___ja",path:"/ja/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___ru",path:"/ru/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___zh-CN",path:"/zh-CN/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___tr",path:"/tr/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"cerebro-test___it",path:"/it/cerebro-test",component:()=>p(()=>import("./0ntD26q1.js"),__vite__mapDeps([74,13,75]),import.meta.url)},{name:"bundles___en",path:"/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___fr",path:"/fr/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___es",path:"/es/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___pt-BR",path:"/pt-BR/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___de",path:"/de/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___ja",path:"/ja/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___ru",path:"/ru/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___zh-CN",path:"/zh-CN/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___tr",path:"/tr/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"bundles___it",path:"/it/bundles",component:()=>p(()=>import("./CiPBfrCu.js"),__vite__mapDeps([76,12,77,5,6,7,4,3,29,30,31,32,28,78,79,80,51,81,13,82]),import.meta.url)},{name:"example-error___en",path:"/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___fr",path:"/fr/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___es",path:"/es/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___pt-BR",path:"/pt-BR/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.m
2049eta.url)},{name:"example-error___de",path:"/de/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___ja",path:"/ja/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___ru",path:"/ru/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___zh-CN",path:"/zh-CN/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___tr",path:"/tr/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"example-error___it",path:"/it/example-error",component:()=>p(()=>import("./VwtDgU0s.js"),[],import.meta.url)},{name:"paywall___en",path:"/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___fr",path:"/fr/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___es",path:"/es/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___pt-BR",path:"/pt-BR/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___de",path:"/de/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___ja",path:"/ja/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___ru",path:"/ru/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___zh-CN",path:"/zh-CN/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___tr",path:"/tr/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"paywall___it",path:"/it/paywall",component:()=>p(()=>import("./fjb8KAbn.js"),__vite__mapDeps([83,13]),import.meta.url)},{name:"welcome-agree___en",path:"/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___fr",path:"/fr/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___es",path:"/es/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___pt-BR",path:"/pt-BR/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___de",path:"/de/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___ja",path:"/ja/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___ru",path:"/ru/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___zh-CN",path:"/zh-CN/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___tr",path:"/tr/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-agree___it",path:"/it/welcome/agree",meta:to||{},component:()=>p(()=>import("./ANQCVjBK.js"),__vite__mapDeps([84,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-fun-1___en",path:"/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___fr",path:"/fr/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___es",path:"/es/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___pt-BR",path:"/pt-BR/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___de",path:"/de/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___ja",path:"/ja/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___ru",path:"/ru/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___zh-CN",path:"/zh-CN/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___tr",path:"/tr/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-1___it",path:"/it/welcome/fun-1",meta:no||{},component:()=>p(()=>import("./CJiSr-aT.js"),__vite__mapDeps([85,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___en",path:"/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___fr",path:"/fr/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___es",path:"/es/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___pt-BR",path:"/pt-BR/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___de",path:"/de/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___ja",path:"/ja/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___ru",path:"/ru/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___zh-CN",path:"/zh-CN/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___tr",path:"/tr/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-2___it",path:"/it/welcome/fun-2",meta:ro||{},component:()=>p(()=>import("./Dp0TWu4y.js"),__vite__mapDeps([86,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___en",path:"/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___fr",path:"/fr/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___es",path:"/es/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___pt-BR",path:"/pt-BR/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___de",path:"/de/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___ja",path:"/ja/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___ru",path:"/ru/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___zh-CN",path:"/zh-CN/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___tr",path:"/tr/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-fun-3___it",path:"/it/welcome/fun-3",meta:oo||{},component:()=>p(()=>import("./xJtZ-aXD.js"),__vite__mapDeps([87,88,5,6,7,4,3]),import.meta.url)},{name:"welcome___en",path:"/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___fr",path:"/fr/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___es",path:"/es/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___pt-BR",path:"/pt-BR/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___de",path:"/de/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___ja",path:"/ja/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___ru",path:"/ru/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___zh-CN",path:"/zh-CN/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___tr",path:"/tr/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"welcome___it",path:"/it/welcome",component:()=>p(()=>import("./DGiv8cJS.js"),__vite__mapDeps([89,12,5,6,7,4,3]),import.meta.url)},{name:"dashboard-flux___en",path:"/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___fr",path:"/fr/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___es",path:"/es/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___pt-BR",path:"/pt-BR/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___de",path:"/de/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___ja",path:"/ja/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___ru",path:"/ru/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___zh-CN",path:"/zh-CN/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___tr",path:"/tr/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-flux___it",path:"/it/dashboard/flux",meta:io||{},component:()=>p(()=>import("./Do0syXrb.js"),__vite__mapDeps([90,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"welcome-signup___en",path:"/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___fr",path:"/fr/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___es",path:"/es/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___pt-BR",path:"/pt-BR/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___de",path:"/de/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___ja",path:"/ja/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___ru",path:"/ru/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___zh-CN",path:"/zh-CN/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___tr",path:"/tr/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"welcome-signup___it",path:"/it/welcome/signup",component:()=>p(()=>import("./KVa14M85.js"),__vite__mapDeps([91,72,5,6,7,4,3,73,92,1,2,52,51,93]),import.meta.url)},{name:"dashboard___en",path:"/dashboard",meta:so||{},component:()=>p(()=>
2049import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___fr",path:"/fr/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___es",path:"/es/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___pt-BR",path:"/pt-BR/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___de",path:"/de/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___ja",path:"/ja/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___ru",path:"/ru/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___zh-CN",path:"/zh-CN/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___tr",path:"/tr/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"dashboard___it",path:"/it/dashboard",meta:so||{},component:()=>p(()=>import("./BFXWcyyk.js"),__vite__mapDeps([94,14,29,3,4,30,31,32,95,2,96,51,97,98,99,100,101,54,102,103,13,104]),import.meta.url)},{name:"welcome-payment___en",path:"/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___fr",path:"/fr/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___es",path:"/es/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___pt-BR",path:"/pt-BR/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___de",path:"/de/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___ja",path:"/ja/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___ru",path:"/ru/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___zh-CN",path:"/zh-CN/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___tr",path:"/tr/welcome/payment",component:()=>p(()=>
2049import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-payment___it",path:"/it/welcome/payment",component:()=>p(()=>import("./CpjuJWNj.js"),__vite__mapDeps([105,106,73,13,107,108,20,4,27,28,6,3,2,5,7,52,51,109,110,111,12,112,113,114,115,116,117,38,39,118,119,120,121,122,123,14,124,125]),import.meta.url)},{name:"welcome-serious___en",path:"/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___fr",path:"/fr/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___es",path:"/es/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___pt-BR",path:"/pt-BR/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___de",path:"/de/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___ja",path:"/ja/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___ru",path:"/ru/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___zh-CN",path:"/zh-CN/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___tr",path:"/tr/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-serious___it",path:"/it/welcome/serious",meta:ao||{},component:()=>p(()=>import("./DK338L3l.js"),__vite__mapDeps([126,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___en",path:"/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___fr",path:"/fr/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___es",path:"/es/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___pt-BR",path:"/pt-BR/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___de",path:"/de/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___ja",path:"/ja/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___ru",path:"/ru/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___zh-CN",path:"/zh-CN/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___tr",path:"/tr/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-stylish___it",path:"/it/welcome/stylish",meta:co||{},component:()=>p(()=>import("./HXBGTnI_.js"),__vite__mapDeps([127,72,5,6,7,4,3,73]),import.meta.url)},{name:"welcome-2-backup___en",path:"/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___fr",path:"/fr/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___es",path:"/es/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___pt-BR",path:"/pt-BR/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___de",path:"/de/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___ja",path:"/ja/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___ru",path:"/ru/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___zh-CN",path:"/zh-CN/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___tr",path:"/tr/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-2-backup___it",path:"/it/welcome/2-backup",meta:lo||{},component:()=>p(()=>import("./Dv7T4Z9J.js"),__vite__mapDeps([128,12,129,49,13,130,47,5,6,7,4,3]),import.meta.url)},{name:"welcome-3-backup___en",path:"/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___fr",path:"/fr/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___es",path:"/es/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___pt-BR",path:"/pt-BR/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___de",path:"/de/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___ja",path:"/ja/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___ru",path:"/ru/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___zh-CN",path:"/zh-CN/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___tr",path:"/tr/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"welcome-3-backup___it",path:"/it/welcome/3-backup",meta:uo||{},component:()=>p(()=>import("./DM3MfGlU.js"),__vite__mapDeps([131,12,5,6,7,4,3,13,132]),import.meta.url)},{name:"subscription-fail___en",path:"/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___fr",path:"/fr/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___es",path:"/es/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___pt-BR",path:"/pt-BR/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___de",path:"/de/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___ja",path:"/ja/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___ru",path:"/ru/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___zh-CN",path:"/zh-CN/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___tr",path:"/tr/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)},{name:"subscription-fail___it",path:"/it/subscription/fail",component:()=>p(()=>import("./CMcgE7sm.js"),__vite__mapDeps([133,13]),import.meta.url)}
2049,{name:"welcome-serious-1___en",path:"/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___fr",path:"/fr/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___es",path:"/es/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___pt-BR",path:"/pt-BR/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___de",path:"/de/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___ja",path:"/ja/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___ru",path:"/ru/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___zh-CN",path:"/zh-CN/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___tr",path:"/tr/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-1___it",path:"/it/welcome/serious-1",meta:ho||{},component:()=>p(()=>import("./BgVElxJT.js"),__vite__mapDeps([134,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___en",path:"/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___fr",path:"/fr/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___es",path:"/es/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___pt-BR",path:"/pt-BR/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___de",path:"/de/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___ja",path:"/ja/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___ru",path:"/ru/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___zh-CN",path:"/zh-CN/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___tr",path:"/tr/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-2___it",path:"/it/welcome/serious-2",meta:fo||{},component:()=>p(()=>import("./C6TYdtOo.js"),__vite__mapDeps([135,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___en",path:"/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___fr",path:"/fr/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___es",path:"/es/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___pt-BR",path:"/pt-BR/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___de",path:"/de/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)}
2049,{name:"welcome-serious-3___ja",path:"/ja/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___ru",path:"/ru/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___zh-CN",path:"/zh-CN/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___tr",path:"/tr/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-serious-3___it",path:"/it/welcome/serious-3",meta:po||{},component:()=>p(()=>import("./D_ML4p97.js"),__vite__mapDeps([136,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___en",path:"/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___fr",path:"/fr/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___es",path:"/es/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___pt-BR",path:"/pt-BR/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___de",path:"/de/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___ja",path:"/ja/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___ru",path:"/ru/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___zh-CN",path:"/zh-CN/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___tr",path:"/tr/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-1___it",path:"/it/welcome/stylish-1",meta:_o||{},component:()=>p(()=>import("./BS9lP4pL.js"),__vite__mapDeps([137,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___en",path:"/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___fr",path:"/fr/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___es",path:"/es/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___pt-BR",path:"/pt-BR/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___de",path:"/de/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___ja",path:"/ja/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___ru",path:"/ru/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___zh-CN",path:"/zh-CN/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___tr",path:"/tr/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-2___it",path:"/it/welcome/stylish-2",meta:mo||{},component:()=>p(()=>import("./Baky_e-d.js"),__vite__mapDeps([138,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___en",path:"/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___fr",path:"/fr/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___es",path:"/es/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___pt-BR",path:"/pt-BR/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___de",path:"/de/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___ja",path:"/ja/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___ru",path:"/ru/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___zh-CN",path:"/zh-CN/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___tr",path:"/tr/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"welcome-stylish-3___it",path:"/it/welcome/stylish-3",meta:go||{},component:()=>p(()=>import("./DM-9e48h.js"),__vite__mapDeps([139,88,5,6,7,4,3]),import.meta.url)},{name:"dashboard-ai-music___en",path:"/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___fr",path:"/fr/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___es",path:"/es/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___pt-BR",path:"/pt-BR/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___de",path:"/de/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___ja",path:"/ja/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___ru",path:"/ru/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___zh-CN",path:"/zh-CN/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___tr",path:"/tr/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"dashboard-ai-music___it",path:"/it/dashboard/ai-music",meta:yo||{},component:()=>p(()=>import("./BkYsyB9e.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8]),import.meta.url)},{name:"subscription___en",path:"/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___fr",path:"/fr/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___es",path:"/es/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___pt-BR",path:"/pt-BR/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___de",path:"/de/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___ja",path:"/ja/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___ru",path:"/ru/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___zh-CN",path:"/zh-CN/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___tr",path:"/tr/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"subscription___it",path:"/it/subscription",component:()=>p(()=>import("./8l3TJuyr.js"),__vite__mapDeps([141,13]),import.meta.url)},{name:"welcome-experience___en",path:"/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___fr",path:"/fr/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___es",path:"/es/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___pt-BR",path:"/pt-BR/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___de",path:"/de/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___ja",path:"/ja/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___ru",path:"/ru/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___zh-CN",path:"/zh-CN/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___tr",path:"/tr/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"welcome-experience___it",path:"/it/welcome/experience",component:()=>p(()=>import("./CHebuUgf.js"),__vite__mapDeps([142,106,73,13,143,28,6,3,4,78,79,80,5,7,144,145,146]),import.meta.url)},{name:"dashboard-quiz-id___en",path:"/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___fr",path:"/fr/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___es",path:"/es/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___pt-BR",path:"/pt-BR/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___de",path:"/de/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___ja",path:"/ja/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___ru",path:"/ru/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___zh-CN",path:"/zh-CN/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___tr",path:"/tr/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"dashboard-quiz-id___it",path:"/it/dashboard/quiz/:id()",meta:vo||{},component:()=>p(()=>import("./DAMJ9Z33.js"),__vite__mapDeps([147,148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166,167,11,12,168,169,170,171,172,173,174,175,176,177,178,179,180,14,181,182,183]),import.meta.url)},{name:"test-magic-nuxt-img___en",path:"/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___fr",path:"/fr/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___es",path:"/es/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___pt-BR",path:"/pt-BR/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___de",path:"/de/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___ja",path:"/ja/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___ru",path:"/ru/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___zh-CN",path:"/zh-CN/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___tr",path:"/tr/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"test-magic-nuxt-img___it",path:"/it/test-magic-nuxt-img",component:()=>p(()=>import("./DezQYw-C.js"),__vite__mapDeps([184,111,12,13,112]),import.meta.url)},{name:"dashboard-quiz___en",path:"/dashboard/quiz",meta:Eo||{},component:()
2049=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___fr",path:"/fr/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___es",path:"/es/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___pt-BR",path:"/pt-BR/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___de",path:"/de/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___ja",path:"/ja/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___ru",path:"/ru/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___zh-CN",path:"/zh-CN/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___tr",path:"/tr/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"dashboard-quiz___it",path:"/it/dashboard/quiz",meta:Eo||{},component:()=>p(()=>import("./Cs1M2jDz.js"),__vite__mapDeps([185,186,28,6,3,4,187,19,39,5,7,181,188,51,52,2,78,79,80,1,160,29,30,31,32,189,190,182,191,163]),import.meta.url)},{name:"subscription-success___en",path:"/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___fr",path:"/fr/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___es",path:"/es/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___pt-BR",path:"/pt-BR/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___de",path:"/de/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___ja",path:"/ja/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___ru",path:"/ru/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___zh-CN",path:"/zh-CN/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___tr",path:"/tr/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"subscription-success___it",path:"/it/subscription/success",component:()=>p(()=>import("./B9RnYyKi.js"),__vite__mapDeps([192,14,13,11,12]),import.meta.url)},{name:"test-polaroid-images___en",path:"/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___fr",path:"/fr/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___es",path:"/es/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___pt-BR",path:"/pt-BR/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___de",path:"/de/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___ja",path:"/ja/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___ru",path:"/ru/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___zh-CN",path:"/zh-CN/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___tr",path:"/tr/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"test-polaroid-images___it",path:"/it/test-polaroid-images",component:()=>p(()=>import("./CpQzNvNU.js"),__vite__mapDeps([193,13,194]),import.meta.url)},{name:"dashboard-test-emails___en",path:"/dashboard/test-emails",meta:bo||{},component:()=>p(()=>
2049import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___fr",path:"/fr/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___es",path:"/es/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___pt-BR",path:"/pt-BR/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___de",path:"/de/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___ja",path:"/ja/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___ru",path:"/ru/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___zh-CN",path:"/zh-CN/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___tr",path:"/tr/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"dashboard-test-emails___it",path:"/it/dashboard/test-emails",meta:bo||{},component:()=>p(()=>import("./QSOkSTli.js"),__vite__mapDeps([195,29,3,4,30,31,32,5,6,7,1,2,60,149,196,52,51,103,182,161,197,198]),import.meta.url)},{name:"get-your-polaroid-pro___en",path:"/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___fr",path:"/fr/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)}
2049,{name:"get-your-polaroid-pro___es",path:"/es/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___pt-BR",path:"/pt-BR/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___de",path:"/de/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___ja",path:"/ja/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___ru",path:"/ru/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___zh-CN",path:"/zh-CN/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___tr",path:"/tr/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"get-your-polaroid-pro___it",path:"/it/get-your-polaroid/pro",meta:wo||{},component:()=>p(()=>import("./_8rP1JkT.js"),__vite__mapDeps([199,111,12,13,112,28,6,3,4,78,79,80,16,17,18,19,29,30,31,32,5,7,23,200,11,152,2,201,202,203,154,204,205,206,207,52,51,208,209,53,96,210,81,211,162,161,212]),import.meta.url)},{name:"dashboard-contents-new___en",path:"/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___fr",path:"/fr/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___es",path:"/es/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___pt-BR",path:"/pt-BR/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___de",path:"/de/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___ja",path:"/ja/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___ru",path:"/ru/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___zh-CN",path:"/zh-CN/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___tr",path:"/tr/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-contents-new___it",path:"/it/dashboard/contents/new",meta:To||{},component:()=>p(()=>import("./DhYVPfyP.js"),__vite__mapDeps([213,157,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,215,216,12,28,78,79,80,54,51,217,52]),import.meta.url)},{name:"dashboard-dream-people___en",path:"/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>
2049import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___fr",path:"/fr/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___es",path:"/es/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___pt-BR",path:"/pt-BR/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___de",path:"/de/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___ja",path:"/ja/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___ru",path:"/ru/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___zh-CN",path:"/zh-CN/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___tr",path:"/tr/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-dream-people___it",path:"/it/dashboard/dream-people",meta:Ao||{},component:()=>p(()=>import("./RHZzUjB8.js"),__vite__mapDeps([218,29,3,4,30,31,32,23,7,5,6,159,1,2,187,19,39,81,51,189,162,209,219]),import.meta.url)},{name:"dashboard-images___en",path:"/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___fr",path:"/fr/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___es",path:"/es/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___pt-BR",path:"/pt-BR/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___de",path:"/de/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___ja",path:"/ja/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___ru",path:"/ru/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___zh-CN",path:"/zh-CN/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___tr",path:"/tr/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-images___it",path:"/it/dashboard/images",meta:xo||{},component:()=>p(()=>import("./O6nP-ThX.js"),__vite__mapDeps([220,5,6,7,4,3,153,79,28,60,1,2,80,154,155,156,157,158,51,54,52,29,162]),import.meta.url)},{name:"dashboard-contents-id___en",path:"/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___fr",path:"/fr/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___es",path:"/es/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___pt-BR",path:"/pt-BR/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___de",path:"/de/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___ja",path:"/ja/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___ru",path:"/ru/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___zh-CN",path:"/zh-CN/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___tr",path:"/tr/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"dashboard-contents-id___it",path:"/it/dashboard/contents/:id()",meta:Io||{},component:()=>p(()=>import("./BPwK_3-r.js"),__vite__mapDeps([221,214,6,3,4,60,93,1,2,5,7,149,187,19,39,29,30,31,32,151,23,222,215,196,216,12,28,78,79,80,54,51,150,223,155,156,157,209,52,161,50,224,217,198]),import.meta.url)},{name:"get-your-polaroid___en",path:"/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___fr",path:"/fr/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)}
2049,{name:"get-your-polaroid___es",path:"/es/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___pt-BR",path:"/pt-BR/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___de",path:"/de/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___ja",path:"/ja/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___ru",path:"/ru/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___zh-CN",path:"/zh-CN/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___tr",path:"/tr/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"get-your-polaroid___it",path:"/it/get-your-polaroid",component:()=>p(()=>import("./D4-1tE0r.js"),__vite__mapDeps([225,203,226,111,12,13,112,227,196,7,4,3,5,6,1,2,200,28,78,79,80,228,51,103,52,154,93,229]),import.meta.url)},{name:"welcome-congratulations___en",path:"/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___fr",path:"/fr/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___es",path:"/es/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___pt-BR",path:"/pt-BR/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___de",path:"/de/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___ja",path:"/ja/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___ru",path:"/ru/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___zh-CN",path:"/zh-CN/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___tr",path:"/tr/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"welcome-congratulations___it",path:"/it/welcome/congratulations",component:()=>p(()=>import("./C4OoCjez.js"),__vite__mapDeps([230,106,73,13,26,3,4,6,5,7,117,38,39,118,231,14,12,232,233]),import.meta.url)},{name:"dashboard-contents___en",path:"/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___fr",path:"/fr/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___es",path:"/es/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___pt-BR",path:"/pt-BR/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___de",path:"/de/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___ja",path:"/ja/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___ru",path:"/ru/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___zh-CN",path:"/zh-CN/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___tr",path:"/tr/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"dashboard-contents___it",path:"/it/dashboard/contents",meta:Ro||{},component:()=>p(()=>import("./DeTB6XLe.js"),__vite__mapDeps([234,14,215,1,2,3,4,5,6,7,196,235,51,187,19,39,60,29,30,31,32,12,23,16,17,18,54,236,237,28,78,79,80,151,26,161,179,238,209,239,162,198,52,13,216,53,189,240,241]),import.meta.url)},{name:"get-your-polaroid-create___en",path:"/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___fr",path:"/fr/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)}
2049,{name:"get-your-polaroid-create___es",path:"/es/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___pt-BR",path:"/pt-BR/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___de",path:"/de/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___ja",path:"/ja/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___ru",path:"/ru/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___zh-CN",path:"/zh-CN/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___tr",path:"/tr/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"get-your-polaroid-create___it",path:"/it/get-your-polaroid/create",meta:Co||{},component:()=>p(()=>import("./BS5rKkEU.js"),__vite__mapDeps([242,200,203,243,201,28,6,3,4,202,19,5,7,80,111,12,13,112,154,204,205,206,207,226,227,110,113,159,2,208,244]),import.meta.url)},{name:"dashboard-polaroid-config___en",path:"/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___fr",path:"/fr/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___es",path:"/es/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___pt-BR",path:"/pt-BR/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___de",path:"/de/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___ja",path:"/ja/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___ru",path:"/ru/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___zh-CN",path:"/zh-CN/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>
2049import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___tr",path:"/tr/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-polaroid-config___it",path:"/it/dashboard/polaroid-config",meta:Po||{},component:()=>p(()=>import("./CZDzLwww.js"),__vite__mapDeps([245,29,3,4,30,31,32,5,6,7,23,150,187,19,39,60,151,196,26,206,208,240,51,165,198,246,247,96,101,54]),import.meta.url)},{name:"dashboard-test-inferences___en",path:"/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___fr",path:"/fr/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___es",path:"/es/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___pt-BR",path:"/pt-BR/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___de",path:"/de/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___ja",path:"/ja/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___ru",path:"/ru/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___zh-CN",path:"/zh-CN/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___tr",path:"/tr/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-test-inferences___it",path:"/it/dashboard/test-inferences",meta:So||{},component:()=>p(()=>import("./C24bbi-2.js"),__vite__mapDeps([248,29,3,4,30,31,32,5,6,7,23,196,60,160,1,2,28,78,79,80,249,52,51,250,189,162,198,164,54,239,251]),import.meta.url)},{name:"dashboard-verify-purchase___en",path:"/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___fr",path:"/fr/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___es",path:"/es/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)}
2049,{name:"dashboard-verify-purchase___pt-BR",path:"/pt-BR/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___de",path:"/de/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___ja",path:"/ja/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___ru",path:"/ru/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___zh-CN",path:"/zh-CN/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___tr",path:"/tr/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"dashboard-verify-purchase___it",path:"/it/dashboard/verify-purchase",meta:Oo||{},component:()=>p(()=>import("./BrjaJS5U.js"),__vite__mapDeps([252,29,3,4,30,31,32,5,6,7,1,2,60,196,23,26,151,187,19,39,149,253,51,52,102,161,198,254,197,162]),import.meta.url)},{name:"get-your-polaroid-goodbye___en",path:"/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___fr",path:"/fr/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)}
2049,{name:"get-your-polaroid-goodbye___es",path:"/es/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___pt-BR",path:"/pt-BR/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___de",path:"/de/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___ja",path:"/ja/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___ru",path:"/ru/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___zh-CN",path:"/zh-CN/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___tr",path:"/tr/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-goodbye___it",path:"/it/get-your-polaroid/goodbye",component:()=>p(()=>import("./7FgPWffH.js"),__vite__mapDeps([255,226,111,12,13,112,227,256]),import.meta.url)},{name:"get-your-polaroid-payment___en",path:"/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___fr",path:"/fr/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)}
2049,{name:"get-your-polaroid-payment___es",path:"/es/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___pt-BR",path:"/pt-BR/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___de",path:"/de/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___ja",path:"/ja/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___ru",path:"/ru/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___zh-CN",path:"/zh-CN/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___tr",path:"/tr/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-payment___it",path:"/it/get-your-polaroid/payment",meta:Do||{},component:()=>p(()=>import("./gihxkIco.js"),__vite__mapDeps([257,111,12,13,112,14,203,226,227,159,3,4,5,6,7,2,28,78,79,80,243,161,51,20,200,52,38,39,110,113,205,258]),import.meta.url)},{name:"get-your-polaroid-profile___en",path:"/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___fr",path:"/fr/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)}
2049,{name:"get-your-polaroid-profile___es",path:"/es/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___pt-BR",path:"/pt-BR/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___de",path:"/de/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___ja",path:"/ja/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___ru",path:"/ru/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___zh-CN",path:"/zh-CN/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___tr",path:"/tr/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-profile___it",path:"/it/get-your-polaroid/profile",meta:Lo||{},component:()=>p(()=>import("./D5xFNiou.js"),__vite__mapDeps([259,14,16,6,3,4,17,206,28,78,79,80,29,30,31,32,5,7,23,26,205,203,210,51,52,11,12,13,1,2,209,260,198,228,163,211,103,101,53,261]),import.meta.url)},{name:"get-your-polaroid-success___en",path:"/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___fr",path:"/fr/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)}
2049,{name:"get-your-polaroid-success___es",path:"/es/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___pt-BR",path:"/pt-BR/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___de",path:"/de/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___ja",path:"/ja/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___ru",path:"/ru/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___zh-CN",path:"/zh-CN/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___tr",path:"/tr/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"get-your-polaroid-success___it",path:"/it/get-your-polaroid/success",component:()=>p(()=>import("./BTYPHXTX.js"),__vite__mapDeps([262,111,12,13,112,14,5,6,7,4,3,29,30,31,32,203,52,51,254,197,209,53]),import.meta.url)},{name:"dashboard-categories___en",path:"/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___fr",path:"/fr/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___es",path:"/es/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___pt-BR",path:"/pt-BR/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___de",path:"/de/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___ja",path:"/ja/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___ru",path:"/ru/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___zh-CN",path:"/zh-CN/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,
204919,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___tr",path:"/tr/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-categories___it",path:"/it/dashboard/categories",meta:{...ko||{},middleware:"authenticated"},component:()=>p(()=>import("./D6Cyiqsa.js"),__vite__mapDeps([263,14,12,23,7,4,3,254,51,50,28,6,78,79,80,29,30,31,32,196,5,54,162,198,215,1,2,187,19,39,53,189,240,264]),import.meta.url)},{name:"dashboard-image-edit___en",path:"/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___fr",path:"/fr/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___es",path:"/es/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___pt-BR",path:"/pt-BR/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___de",path:"/de/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___ja",path:"/ja/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___ru",path:"/ru/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___zh-CN",path:"/zh-CN/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___tr",path:"/tr/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-image-edit___it",path:"/it/dashboard/image-edit",meta:No||{},component:()=>p(()=>import("./DEIZnWCI.js"),__vite__mapDeps([265,5,6,7,4,3,32,157,151,29,30,31,2,1,187,19,39,28,78,79,80,202,60,266,51,162,52,209,163,237,54,267]),import.meta.url)},{name:"dashboard-prompt-generator___en",path:"/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___fr",path:"/fr/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___es",path:"/es/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___pt-BR",path:"/pt-BR/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___de",path:"/de/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___ja",path:"/ja/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___ru",path:"/ru/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___zh-CN",path:"/zh-CN/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___tr",path:"/tr/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-prompt-generator___it",path:"/it/dashboard/prompt-generator",meta:Vo||{},component:()=>p(()=>import("./CinFjcI6.js"),__vite__mapDeps([268,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,271,272,273,253,274,1,2,60,23,149,159,275,53,162,165,100,163,187,19,39,151,161,96,189,250,209,13,260,276,251,197,52,240,277]),import.meta.url)},{name:"dashboard-home-contents-new___en",path:"/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___fr",path:"/fr/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___es",path:"/es/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___pt-BR",path:"/pt-BR/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___de",path:"/de/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___ja",path:"/ja/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___ru",path:"/ru/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___zh-CN",path:"/zh-CN/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___tr",path:"/tr/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-home-contents-new___it",path:"/it/dashboard/home-contents/new",meta:Fo||{},component:()=>p(()=>import("./BqEwmTJn.js"),__vite__mapDeps([278,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,150,149,187,19,39,279,54,51,52,161,209,217]),import.meta.url)},{name:"dashboard-onboarding-config___en",path:"/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___fr",path:"/fr/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___es",path:"/es/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___pt-BR",path:"/pt-BR/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___de",path:"/de/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___ja",path:"/ja/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___ru",path:"/ru/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___zh-CN",path:"/zh-CN/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___tr",path:"/tr/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-onboarding-config___it",path:"/it/dashboard/onboarding-config",meta:Mo||{},component:()=>p(()=>import("./DINV1Z8c.js"),__vite__mapDeps([280,5,6,7,4,3,196,151,30,1,2,160,31,29,23,60,149,26,150,28,78,79,80,281,51,100,211,272,282,96,101,54,182,240,52,165,198,283,246,284,189,238,209,158,164,50,13,285]),import.meta.url)},{name:"dashboard-quiz-preview-id___en",path:"/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___fr",path:"/fr/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___es",path:"/es/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___pt-BR",path:"/pt-BR/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___de",path:"/de/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___ja",path:"/ja/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___ru",path:"/ru/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___zh-CN",path:"/zh-CN/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___tr",path:"/tr/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-quiz-preview-id___it",path:"/it/dashboard/quiz/preview/:id()",meta:Bo||{},component:()=>p(()=>import("./DEkWkQiv.js"),__vite__mapDeps([286,167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180,156,157]),import.meta.url)},{name:"dashboard-docx-convert___en",path:"/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___fr",path:"/fr/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___es",path:"/es/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___pt-BR",path:"/pt-BR/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCS
2049odK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___de",path:"/de/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___ja",path:"/ja/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___ru",path:"/ru/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___zh-CN",path:"/zh-CN/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___tr",path:"/tr/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-docx-convert___it",path:"/it/dashboard/docx-convert",meta:Uo||{},component:()=>p(()=>import("./x2xCSodK.js"),__vite__mapDeps([287,2,5,6,7,4,3,1,187,19,39,202,60,29,30,31,32,151,28,78,79,80,149,150,266,51,283,161,162,52,164,209,237,163]),import.meta.url)},{name:"dashboard-home-contents-id___en",path:"/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___en",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___fr",path:"/fr/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___fr",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___es",path:"/es/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___es",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___pt-BR",path:"/pt-BR/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___pt-BR",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___de",path:"/de/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___de",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___ja",path:"/ja/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___ja",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___ru",path:"/ru/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___ru",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___zh-CN",path:"/zh-CN/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___zh-CN",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___tr",path:"/tr/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___tr",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents-id___it",path:"/it/dashboard/home-contents/:id()",meta:jo||{},component:()=>p(()=>import("./37z8jkro.js"),__vite__mapDeps([288,95,2,5,6,7,4,3,29,30,31,32,151,23,159,1,60,150,16,17,18,19,196,26,289,28,214,93,80,223,78,79,187,39,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,188,198,290,179,238,291,292,293,11,12,217,240,191,163,182,189,236,254,294]),import.meta.url),children:[{name:"dashboard-home-contents-id-add-content___it",path:"add-content",meta:$o||{},component:()=>p(()=>import("./DC3zBY9b.js"),__vite__mapDeps([295,95,2,214,6,3,4,60,93,1,5,7,29,30,31,32,196,150,187,19,39,149,23,52,51,217,198,158,161,296]),import.meta.url)}]},{name:"dashboard-home-contents___en",path:"/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___fr",path:"/fr/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___es",path:"/es/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___pt-BR",path:"/pt-BR/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___de",path:"/de/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___ja",path:"/ja/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___ru",path:"/ru/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___zh-CN",path:"/zh-CN/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___tr",path:"/tr/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"dashboard-home-contents___it",path:"/it/dashboard/home-contents",meta:Ho||{},component:()=>p(()=>import("./BRK4fLBE.js"),__vite__mapDeps([297,5,6,7,4,3,187,19,39,14,30,31,29,23,1,2,79,28,160,159,16,298,299,95,289,214,60,93,80,223,78,155,156,157,209,51,54,52,161,50,224,158,53,13,149,202,151,32,26,188,198,150,290,179,238,291,292,293,96,240,100,189,282,182,250,267,236,163,99,217,164,300]),import.meta.url)},{name:"get-your-polaroid-debug-config___en",path:"/get-your-polaroid/debug-config",component:()=>p(()=>
2049import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___fr",path:"/fr/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___es",path:"/es/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___pt-BR",path:"/pt-BR/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___de",path:"/de/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___ja",path:"/ja/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___ru",path:"/ru/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___zh-CN",path:"/zh-CN/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___tr",path:"/tr/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"get-your-polaroid-debug-config___it",path:"/it/get-your-polaroid/debug-config",component:()=>p(()=>import("./BP1wF4B0.js"),__vite__mapDeps([301,111,12,13,112,206,208]),import.meta.url)},{name:"dashboard-contents-home-contents___en",path:"/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___fr",path:"/fr/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___es",path:"/es/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___pt-BR",path:"/pt-BR/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___de",path:"/de/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___ja",path:"/ja/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___ru",path:"/ru/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___zh-CN",path:"/zh-CN/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___tr",path:"/tr/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-contents-home-contents___it",path:"/it/dashboard/contents/home-contents",meta:zo||{},component:()=>p(()=>import("./C6J7UD5-.js"),__vite__mapDeps([302,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,95,2,29,30,31,32,249,23,275,53,52,251,54,161,13,305,215,196,160,1,60,151,16,17,18,19,150,289,214,93,223,187,39,155,156,157,209,50,224,158,149,202,26,188,198,290,179,238,291,292,293,240,189,296,216,12,235,284,276,165,282,182,191,306]),import.meta.url)},{name:"dashboard-home-contents-edit-id___en",path:"/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___fr",path:"/fr/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___es",path:"/es/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___pt-BR",path:"/pt-BR/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___de",path:"/de/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___ja",path:"/ja/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___ru",path:"/ru/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___zh-CN",path:"/zh-CN/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___tr",path:"/tr/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-edit-id___it",path:"/it/dashboard/home-contents/edit/:id()",meta:qo||{},component:()=>p(()=>import("./Cr8U09Me.js"),__vite__mapDeps([307,214,6,3,4,60,93,1,2,5,7,29,30,31,32,196,150,149,151,187,19,39,95,279,54,51,52,161,209,28,78,79,80,202,26,198,50,217,188]),import.meta.url)},{name:"dashboard-home-contents-content-v2___en",path:"/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___fr",path:"/fr/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___es",path:"/es/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___pt-BR",path:"/pt-BR/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___de",path:"/de/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___ja",path:"/ja/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___ru",path:"/ru/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___zh-CN",path:"/zh-CN/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___tr",path:"/tr/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-content-v2___it",path:"/it/dashboard/home-contents/content-v2",meta:Wo||{},component:()=>p(()=>import("./jC8LMb4M.js").then(t=>t.c),__vite__mapDeps([308,5,6,7,4,3,217,51,50,267,271,272,273,253,290,95,2,309,298,304,240]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___en",path:"/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___fr",path:"/fr/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___es",path:"/es/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___pt-BR",path:"/pt-BR/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___de",path:"/de/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___ja",path:"/ja/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___ru",path:"/ru/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___zh-CN",path:"/zh-CN/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___tr",path:"/tr/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-gcp-images___it",path:"/it/dashboard/home-contents/gcp-images",meta:Ko||{},component:()=>p(()=>import("./DI9rB7K3.js"),__vite__mapDeps([310,187,6,3,4,19,39,5,7,23,1,2,155,156,157,52,51]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___en",path:"/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___fr",path:"/fr/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___es",path:"/es/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___pt-BR",path:"/pt-BR/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___de",path:"/de/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,1
204990,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___ja",path:"/ja/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___ru",path:"/ru/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___zh-CN",path:"/zh-CN/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___tr",path:"/tr/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-layout-setup___it",path:"/it/dashboard/home-contents/layout-setup",meta:Go||{},component:()=>p(()=>import("./C6zMmx6J.js"),__vite__mapDeps([311,95,2,303,51,79,6,28,3,4,78,80,298,5,7,304,163,219,29,30,31,32,249,23,275,53,52,251,54,161,13,305,196,160,1,159,16,17,18,19,198,189,190,284,276,165,236,240,164,312]),import.meta.url)},{name:"dashboard-home-contents-automate-content___en",path:"/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___fr",path:"/fr/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___es",path:"/es/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___pt-BR",path:"/pt-BR/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___de",path:"/de/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___ja",path:"/ja/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___ru",path:"/ru/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___zh-CN",path:"/zh-CN/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___tr",path:"/tr/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:"dashboard-home-contents-automate-content___it",path:"/it/dashboard/home-contents/automate-content",meta:Qo||{},component:()=>p(()=>import("./BWooptJg.js"),__vite__mapDeps([313,14,309,2,269,51,270,28,6,3,4,78,79,80,29,30,31,32,5,7,160,164,228,95,23,267,54,13,60,149,159,275,260,96,158,50,264,161,196,198,52,217,187,19,39,249,251,299,150,53,314,202,315,214,93,1,151,290,247,316]),import.meta.url)},{name:Yo?.name,path:"/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/fr/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/es/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/pt-BR/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/de/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/ja/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/ru/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/zh-CN/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/tr/dashboard/:pathMatch(.*)",component:Xo},{name:Yo?.name,path:"/it/dashboard/:pathMatch(.*)",component:Xo}],lD=(t,e)=>({default:()=>t?Xt(mP,t===!0?{}:t,e):e.default?.()}),dj=/(:\w+)\([^)]+\)/g,hj=/(:\w+)[?+*]/g,fj=/:\w+/g;function GA(t){const e=t?.meta.key??t.path.replace(dj,"$1").replace(hj,"$1").replace(fj,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function pj(t,e){return t===e||e===cr?!1:GA(t)!==GA(e)?!0:!t.matched.every((r,o)=>r.components&&r.components.default===e.matched[o]?.components?.default)}const _j={scrollBehavior(t,e,n){const r=rt(),o=mn().options?.scrollBehaviorType??"auto";if(t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:uD(t.hash),behavior:o}:!1;if((typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1)return!1;const s=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(e===cr){a(QA(t,e,n,o));return}r.hooks.hookOnce(s,()=>{requestAnimationFrame(()=>a(QA(t,e,n,o)))})})}};function uD(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function QA(t,e,n,r){if(n)return n;const o=pj(t,e);return t.hash?{el:t.hash,top:uD(t.hash),behavior:o?r:"instant"}:{left:0,top:0}}const mj={hashMode:!1,scrollBehaviorType:"auto"},gs={...mj,..._j},gj=async(t,e)=>{let n,r;if(!t.meta?.validate)return;const o=([n,r]=Wn(()=>Promise.resolve(t.meta.validate(t))),n=await n,r(),n);if(o===!0)return;const i=Oa({fatal:!0,statusCode:o&&o.statusCode||404,statusMessage:o&&o.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),i};function NE(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 o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function dD(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const hD=dD,fD=new bl("auth","Firebase",dD());/** 2050 * @license 2051 * Copyright 2020 Google LLC 2052 * 2053 * Licensed under the Apache License, Version 2.0 (the "License");
2054 * you may not use this file except in compliance with the License. 2055 * You may obtain a copy of the License at 2056 * 2057 * http://www.apache.org/licenses/LICENSE-2.0 2058 * 2059 * Unless required by applicable law or agreed to in writing, software 2060 * distributed under the License is distributed on an "AS IS" BASIS, 2061 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2062 * See the License for the specific language governing permissions and 2063 * limitations under the License. 2064 */const Wp=new Nd("@firebase/auth");function yj(t,...e){Wp.logLevel<=He.WARN&&Wp.warn(`Auth (${Ys}): ${t}`,...e)}function gf(t,...e){Wp.logLevel<=He.ERROR&&Wp.error(`Auth (${Ys}): ${t}`,...e)}/** 2065 * @license 2066 * Copyright 2020 Google LLC 2067 * 2068 * Licensed under the Apache License, Version 2.0 (the "License"); 2069 * you may not use this file except in compliance with the License. 2070 * You may obtain a copy of the License at 2071 * 2072 * http://www.apache.org/licenses/LICENSE-2.0 2073 * 2074 * Unless required by applicable law or agreed to in writing, software 2075 * distributed under the License is distributed on an "AS IS" BASIS, 2076 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2077 * See the License for the specific language governing permissions and 2078 * limitations under the License. 2079 */function gr(t,...e){throw FE(t,...e)}function Fr(t,...e){return FE(t,...e)}function VE(t,e,n){const r=Object.assign(Object.assign({},hD()),{[e]:n});return new bl("auth","Firebase",r).create(e,{appName:t.name})}function Gi(t){return VE(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vj(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&gr(t,"argument-error"),VE(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function FE(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return fD.create(t,...e)}function Pe(t,e,...n){if(!t)throw FE(e,...n)}function Bi(t){const e="INTERNAL ASSERTION FAILED: "+t;throw gf(e),new Error(e)}function is(t,e){t||Bi(e)}/** 2080 * @license 2081 * Copyright 2020 Google LLC 2082 * 2083 * Licensed under the Apache License, Version 2.0 (the "License"); 2084 * you may not use this file except in compliance with the License. 2085 * You may obtain a copy of the License at 2086 * 2087 * http://www.apache.org/licenses/LICENSE-2.0 2088 * 2089 * Unless required by applicable law or agreed to in writing, software 2090 * distributed under the License is distributed on an "AS IS" BASIS, 2091 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2092 * See the License for the specific language governing permissions and 2093 * limitations under the License. 2094 */function Gg(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function Ej(){return YA()==="http:"||YA()==="https:"}function YA(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/** 2095 * @license 2096 * Copyright 2020 Google LLC 2097 * 2098 * Licensed under the Apache License, Version 2.0 (the "License"); 2099 * you may not use this file except in compliance with the License. 2100 * You may obtain a copy of the License at 2101 * 2102 * http://www.apache.org/licenses/LICENSE-2.0 2103 * 2104 * Unless required by applicable law or agreed to in writing, software 2105 * distributed under the License is distributed on an "AS IS" BASIS, 2106 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2107 * See the License for the specific language governing permissions and 2108 * limitations under the License. 2109 */function bj(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(Ej()||U8()||"connection"in navigator)?navigator.onLine:!0}function wj(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 2110 * @license 2111 * Copyright 2020 Google LLC 2112 * 2113 * Licensed under the Apache License, Version 2.0 (the "License");
2114 * you may not use this file except in compliance with the License. 2115 * You may obtain a copy of the License at 2116 * 2117 * http://www.apache.org/licenses/LICENSE-2.0 2118 * 2119 * Unless required by applicable law or agreed to in writing, software 2120 * distributed under the License is distributed on an "AS IS" BASIS, 2121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2122 * See the License for the specific language governing permissions and 2123 * limitations under the License. 2124 */class Hd{constructor(e,n){this.shortDelay=e,this.longDelay=n,is(n>e,"Short delay should be less than long delay!"),this.isMobile=Bv()||sS()}get(){return bj()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 2125 * @license 2126 * Copyright 2020 Google LLC 2127 * 2128 * Licensed under the Apache License, Version 2.0 (the "License"); 2129 * you may not use this file except in compliance with the License. 2130 * You may obtain a copy of the License at 2131 * 2132 * http://www.apache.org/licenses/LICENSE-2.0 2133 * 2134 * Unless required by applicable law or agreed to in writing, software 2135 * distributed under the License is distributed on an "AS IS" BASIS, 2136 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2137 * See the License for the specific language governing permissions and 2138 * limitations under the License. 2139 */function ME(t,e){is(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** 2140 * @license 2141 * Copyright 2020 Google LLC 2142 * 2143 * Licensed under the Apache License, Version 2.0 (the "License"); 2144 * you may not use this file except in compliance with the License. 2145 * You may obtain a copy of the License at 2146 * 2147 * http://www.apache.org/licenses/LICENSE-2.0 2148 * 2149 * Unless required by applicable law or agreed to in writing, software 2150 * distributed under the License is distributed on an "AS IS" BASIS, 2151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2152 * See the License for the specific language governing permissions and 2153 * limitations under the License. 2154 */class pD{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;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Bi("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;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Bi("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;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Bi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 2155 * @license 2156 * Copyright 2020 Google LLC 2157 * 2158 * Licensed under the Apache License, Version 2.0 (the "License"); 2159 * you may not use this file except in compliance with the License. 2160 * You may obtain a copy of the License at 2161 * 2162 * http://www.apache.org/licenses/LICENSE-2.0 2163 * 2164 * Unless required by applicable law or agreed to in writing, software 2165 * distributed under the License is distributed on an "AS IS" BASIS, 2166 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2167 * See the License for the specific language governing permissions and 2168 * limitations under the License. 2169 */const Tj={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2169aptcha-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"};/** 2170 * @license 2171 * Copyright 2020 Google LLC 2172 * 2173 * Licensed under the Apache License, Version 2.0 (the "License"); 2174 * you may not use this file except in compliance with the License. 2175 * You may obtain a copy of the License at 2176 * 2177 * http://www.apache.org/licenses/LICENSE-2.0 2178 * 2179 * Unless required by applicable law or agreed to in writing, software 2180 * distributed under the License is distributed on an "AS IS" BASIS, 2181 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2182 * See the License for the specific language governing permissions and 2183 * limitations under the License. 2184 */const Aj=new Hd(3e4,6e4);function us(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function ds(t,e,n,r,o={}){return _D(t,o,async()=>{let i={},s={};r&&(e==="GET"?s=r:i={body:JSON.stringify(r)});const a=wl(Object.assign({key:t.config.apiKey},s)).slice(1),c=await t._getAdditionalHeaders();c["Content-Type"]="application/json",t.languageCode&&(c["X-Firebase-Locale"]=t.languageCode);const l=Object.assign({method:e,headers:c},i);return B8()||(l.referrerPolicy="no-referrer"),pD.fetch()(mD(t,t.config.apiHost,n,a),l)})}async function _D(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},Tj),e);try{const o=new Ij(t),i=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw Uh(t,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const a=i.ok?s.errorMessage:s.error.message,[c,l]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw Uh(t,"credential-already-in-use",s);if(c==="EMAIL_EXISTS")throw Uh(t,"email-already-in-use",s);if(c==="USER_DISABLED")throw Uh(t,"user-disabled",s);const u=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw VE(t,u,l);gr(t,u)}}catch(o){if(o instanceof yi)throw o;gr(t,"network-request-failed",{message:String(o)})}}async function zd(t,e,n,r,o={}){const i=await ds(t,e,n,r,o);return"mfaPendingCredential"in i&&gr(t,"multi-factor-auth-required",{_serverResponse:i}),i}function mD(t,e,n,r){const o=`${e}${n}?${r}`;return t.config.emulator?ME(t.config,o):`${t.config.apiScheme}://${o}`}function xj(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Ij{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Fr(this.auth,"network-request-failed")),Aj.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Uh(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=Fr(t,e,r);return o.customData._tokenResponse=n,o}function XA(t){return t!==void 0&&t.enterprise!==void 0}class Rj{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===e)return xj(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}}async function Cj(t,e){return ds(t,"GET","/v2/recaptchaConfig",us(t,e))}/** 2185 * @license 2186 * Copyright 2020 Google LLC 2187 * 2188 * Licensed under the Apache License, Version 2.0 (the "License"); 2189 * you may not use this file except in compliance with the License. 2190 * You may obtain a copy of the License at 2191 * 2192 * http://www.apache.org/licenses/LICENSE-2.0 2193 * 2194 * Unless required by applicable law or agreed to in writing, softw
2194are 2195 * distributed under the License is distributed on an "AS IS" BASIS, 2196 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2197 * See the License for the specific language governing permissions and 2198 * limitations under the License. 2199 */async function Pj(t,e){return ds(t,"POST","/v1/accounts:delete",e)}async function gD(t,e){return ds(t,"POST","/v1/accounts:lookup",e)}/** 2200 * @license 2201 * Copyright 2020 Google LLC 2202 * 2203 * Licensed under the Apache License, Version 2.0 (the "License"); 2204 * you may not use this file except in compliance with the License. 2205 * You may obtain a copy of the License at 2206 * 2207 * http://www.apache.org/licenses/LICENSE-2.0 2208 * 2209 * Unless required by applicable law or agreed to in writing, software 2210 * distributed under the License is distributed on an "AS IS" BASIS, 2211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2212 * See the License for the specific language governing permissions and 2213 * limitations under the License. 2214 */function Du(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function Sj(t,e=!1){const n=kn(t),r=await n.getIdToken(e),o=BE(r);Pe(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const i=typeof o.firebase=="object"?o.firebase:void 0,s=i?.sign_in_provider;return{claims:o,token:r,authTime:Du(b0(o.auth_time)),issuedAtTime:Du(b0(o.iat)),expirationTime:Du(b0(o.exp)),signInProvider:s||null,signInSecondFactor:i?.sign_in_second_factor||null}}function b0(t){return Number(t)*1e3}function BE(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return gf("JWT malformed, contained fewer than 3 sections"),null;try{const o=Op(n);return o?JSON.parse(o):(gf("Failed to decode base64 JWT payload"),null)}catch(o){return gf("Caught error parsing JWT payload as JSON",o?.toString()),null}}function JA(t){const e=BE(t);return Pe(e,"internal-error"),Pe(typeof e.exp<"u","internal-error"),Pe(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 2215 * @license 2216 * Copyright 2020 Google LLC 2217 * 2218 * Licensed under the Apache License, Version 2.0 (the "License"); 2219 * you may not use this file except in compliance with the License. 2220 * You may obtain a copy of the License at 2221 * 2222 * http://www.apache.org/licenses/LICENSE-2.0 2223 * 2224 * Unless required by applicable law or agreed to in writing, software 2225 * distributed under the License is distributed on an "AS IS" BASIS, 2226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2227 * See the License for the specific language governing permissions and 2228 * limitations under the License. 2229 */async function _d(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof yi&&Oj(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function Oj({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 2230 * @license 2231 * Copyright 2020 Google LLC 2232 * 2233 * Licensed under the Apache License, Version 2.0 (the "License"); 2234 * you may not use this file except in compliance with the License. 2235 * You may obtain a copy of the License at 2236 * 2237 * http://www.apache.org/licenses/LICENSE-2.0 2238 * 2239 * Unless required by applicable law or agreed to in writing, software 2240 * distributed under the License is distributed on an "AS IS" BASIS, 2241 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2242 * See the License for the specific language governing permissions and 2243 * limitations under the License. 2244 */class Dj{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 o=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,o)}}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?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 2245 * @license 2246 * Copyright 2020 Google LLC 2247 * 2248 * Licensed under the Apache License, Version 2.0 (the "License");
2249 * you may not use this file except in compliance with the License. 2250 * You may obtain a copy of the License at 2251 * 2252 * http://www.apache.org/licenses/LICENSE-2.0 2253 * 2254 * Unless required by applicable law or agreed to in writing, software 2255 * distributed under the License is distributed on an "AS IS" BASIS, 2256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2257 * See the License for the specific language governing permissions and 2258 * limitations under the License. 2259 */class Qg{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Du(this.lastLoginAt),this.creationTime=Du(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 2260 * @license 2261 * Copyright 2019 Google LLC 2262 * 2263 * Licensed under the Apache License, Version 2.0 (the "License"); 2264 * you may not use this file except in compliance with the License. 2265 * You may obtain a copy of the License at 2266 * 2267 * http://www.apache.org/licenses/LICENSE-2.0 2268 * 2269 * Unless required by applicable law or agreed to in writing, software 2270 * distributed under the License is distributed on an "AS IS" BASIS, 2271 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2272 * See the License for the specific language governing permissions and 2273 * limitations under the License. 2274 */async function Kp(t){var e;const n=t.auth,r=await t.getIdToken(),o=await _d(t,gD(n,{idToken:r}));Pe(o?.users.length,n,"internal-error");const i=o.users[0];t._notifyReloadListener(i);const s=!((e=i.providerUserInfo)===null||e===void 0)&&e.length?yD(i.providerUserInfo):[],a=kj(t.providerData,s),c=t.isAnonymous,l=!(t.email&&i.passwordHash)&&!a?.length,u=c?l:!1,d={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 Qg(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(t,d)}async function Lj(t){const e=kn(t);await Kp(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function kj(t,e){return[...t.filter(r=>!e.some(o=>o.providerId===r.providerId)),...e]}function yD(t){return t.map(e=>{var{providerId:n}=e,r=NE(e,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** 2275 * @license 2276 * Copyright 2020 Google LLC 2277 * 2278 * Licensed under the Apache License, Version 2.0 (the "License"); 2279 * you may not use this file except in compliance with the License. 2280 * You may obtain a copy of the License at 2281 * 2282 * http://www.apache.org/licenses/LICENSE-2.0 2283 * 2284 * Unless required by applicable law or agreed to in writing, software 2285 * distributed under the License is distributed on an "AS IS" BASIS, 2286 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2287 * See the License for the specific language governing permissions and 2288 * limitations under the License. 2289 */async function Nj(t,e){const n=await _D(t,{},async()=>{const r=wl({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:o,apiKey:i}=t.config,s=mD(t,o,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",pD.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Vj(t,e){return ds(t,"POST","/v2/accounts:revokeToken",us(t,e))}/** 2290 * @license 2291 * Copyright 2020 Google LLC 2292 * 2293 * Licensed under the Apache License, Version 2.0 (the "License"); 2294 * you may not use this file except in compliance with the License. 2295 * You may obtain a copy of the License at 2296 * 2297 * http://www.apache.org/licenses/LICENSE-2.0 2298 * 2299 * Unless required by applicable law or agreed to in writing, software 2300 * distributed under the License is distributed on an "AS IS" BASIS, 2301 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2302 * See the License for the specific language governing permissions and 2303 * limitations under the License. 2304 */class Nc{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Pe(e.idToken,"internal-error"),Pe(typeof e.idToken<"u","internal-error"),Pe(typeof e.refreshToken<"u","internal-error");
2304const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):JA(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){Pe(e.length!==0,"internal-error");const n=JA(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Pe(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:o,expiresIn:i}=await Nj(e,n);this.updateTokensAndExpiration(r,o,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:o,expirationTime:i}=n,s=new Nc;return r&&(Pe(typeof r=="string","internal-error",{appName:e}),s.refreshToken=r),o&&(Pe(typeof o=="string","internal-error",{appName:e}),s.accessToken=o),i&&(Pe(typeof i=="number","internal-error",{appName:e}),s.expirationTime=i),s}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 Nc,this.toJSON())}_performRefresh(){return Bi("not implemented")}}/** 2305 * @license 2306 * Copyright 2020 Google LLC 2307 * 2308 * Licensed under the Apache License, Version 2.0 (the "License"); 2309 * you may not use this file except in compliance with the License. 2310 * You may obtain a copy of the License at 2311 * 2312 * http://www.apache.org/licenses/LICENSE-2.0 2313 * 2314 * Unless required by applicable law or agreed to in writing, software 2315 * distributed under the License is distributed on an "AS IS" BASIS, 2316 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2317 * See the License for the specific language governing permissions and 2318 * limitations under the License. 2319 */function ys(t,e){Pe(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Ui{constructor(e){var{uid:n,auth:r,stsTokenManager:o}=e,i=NE(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Dj(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=o,this.accessToken=o.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 Qg(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await _d(this,this.stsTokenManager.getToken(this.auth,e));return Pe(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return Sj(this,e)}reload(){return Lj(this)}_assign(e){this!==e&&(Pe(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 Ui(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){Pe(!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 Kp(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Pr(this.auth.app))return Promise.reject(Gi(this.auth));const e=await this.getIdToken();return await _d(this,Pj(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,isA
2319nonymous: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,o,i,s,a,c,l,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(o=n.email)!==null&&o!==void 0?o:void 0,_=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,m=(s=n.photoURL)!==null&&s!==void 0?s:void 0,y=(a=n.tenantId)!==null&&a!==void 0?a:void 0,v=(c=n._redirectEventId)!==null&&c!==void 0?c:void 0,T=(l=n.createdAt)!==null&&l!==void 0?l:void 0,w=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:g,emailVerified:E,isAnonymous:C,providerData:L,stsTokenManager:A}=n;Pe(g&&A,e,"internal-error");const I=Nc.fromJSON(this.name,A);Pe(typeof g=="string",e,"internal-error"),ys(d,e.name),ys(f,e.name),Pe(typeof E=="boolean",e,"internal-error"),Pe(typeof C=="boolean",e,"internal-error"),ys(_,e.name),ys(m,e.name),ys(y,e.name),ys(v,e.name),ys(T,e.name),ys(w,e.name);const R=new Ui({uid:g,auth:e,email:f,emailVerified:E,displayName:d,isAnonymous:C,photoURL:m,phoneNumber:_,tenantId:y,stsTokenManager:I,createdAt:T,lastLoginAt:w});return L&&Array.isArray(L)&&(R.providerData=L.map(x=>Object.assign({},x))),v&&(R._redirectEventId=v),R}static async _fromIdTokenResponse(e,n,r=!1){const o=new Nc;o.updateFromServerResponse(n);const i=new Ui({uid:n.localId,auth:e,stsTokenManager:o,isAnonymous:r});return await Kp(i),i}static async _fromGetAccountInfoResponse(e,n,r){const o=n.users[0];Pe(o.localId!==void 0,"internal-error");const i=o.providerUserInfo!==void 0?yD(o.providerUserInfo):[],s=!(o.email&&o.passwordHash)&&!i?.length,a=new Nc;a.updateFromIdToken(r);const c=new Ui({uid:o.localId,auth:e,stsTokenManager:a,isAnonymous:s}),l={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:i,metadata:new Qg(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!i?.length};return Object.assign(c,l),c}}/** 2320 * @license 2321 * Copyright 2020 Google LLC 2322 * 2323 * Licensed under the Apache License, Version 2.0 (the "License"); 2324 * you may not use this file except in compliance with the License. 2325 * You may obtain a copy of the License at 2326 * 2327 * http://www.apache.org/licenses/LICENSE-2.0 2328 * 2329 * Unless required by applicable law or agreed to in writing, software 2330 * distributed under the License is distributed on an "AS IS" BASIS, 2331 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2332 * See the License for the specific language governing permissions and 2333 * limitations under the License. 2334 */const ZA=new Map;function $i(t){is(t instanceof Function,"Expected a class definition");let e=ZA.get(t);return e?(is(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,ZA.set(t,e),e)}/** 2335 * @license 2336 * Copyright 2019 Google LLC 2337 * 2338 * Licensed under the Apache License, Version 2.0 (the "License"); 2339 * you may not use this file except in compliance with the License. 2340 * You may obtain a copy of the License at 2341 * 2342 * http://www.apache.org/licenses/LICENSE-2.0 2343 * 2344 * Unless required by applicable law or agreed to in writing, software 2345 * distributed under the License is distributed on an "AS IS" BASIS, 2346 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2347 * See the License for the specific language governing permissions and 2348 * limitations under the License. 2349 */class vD{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){}}vD.type="NONE";const ex=vD;/** 2350 * @license 2351 * Copyright 2019 Google LLC 2352 * 2353 * Licensed under the Apache License, Version 2.0 (the "License");
2354 * you may not use this file except in compliance with the License. 2355 * You may obtain a copy of the License at 2356 * 2357 * http://www.apache.org/licenses/LICENSE-2.0 2358 * 2359 * Unless required by applicable law or agreed to in writing, software 2360 * distributed under the License is distributed on an "AS IS" BASIS, 2361 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2362 * See the License for the specific language governing permissions and 2363 * limitations under the License. 2364 */function yf(t,e,n){return`firebase:${t}:${e}:${n}`}class Vc{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:o,name:i}=this.auth;this.fullUserKey=yf(this.userKey,o.apiKey,i),this.fullPersistenceKey=yf("persistence",o.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?Ui._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 Vc($i(ex),e,r);const o=(await Promise.all(n.map(async l=>{if(await l._isAvailable())return l}))).filter(l=>l);let i=o[0]||$i(ex);const s=yf(r,e.config.apiKey,e.name);let a=null;for(const l of n)try{const u=await l._get(s);if(u){const d=Ui._fromJSON(e,u);l!==i&&(a=d),i=l;break}}catch{}const c=o.filter(l=>l._shouldAllowMigration);return!i._shouldAllowMigration||!c.length?new Vc(i,e,r):(i=c[0],a&&await i._set(s,a.toJSON()),await Promise.all(n.map(async l=>{if(l!==i)try{await l._remove(s)}catch{}})),new Vc(i,e,r))}}/** 2365 * @license 2366 * Copyright 2020 Google LLC 2367 * 2368 * Licensed under the Apache License, Version 2.0 (the "License"); 2369 * you may not use this file except in compliance with the License. 2370 * You may obtain a copy of the License at 2371 * 2372 * http://www.apache.org/licenses/LICENSE-2.0 2373 * 2374 * Unless required by applicable law or agreed to in writing, software 2375 * distributed under the License is distributed on an "AS IS" BASIS, 2376 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2377 * See the License for the specific language governing permissions and 2378 * limitations under the License. 2379 */function tx(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(TD(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(ED(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(xD(e))return"Blackberry";if(ID(e))return"Webos";if(bD(e))return"Safari";if((e.includes("chrome/")||wD(e))&&!e.includes("edge/"))return"Chrome";if(AD(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if(r?.length===2)return r[1]}return"Other"}function ED(t=Ln()){return/firefox\//i.test(t)}function bD(t=Ln()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function wD(t=Ln()){return/crios\//i.test(t)}function TD(t=Ln()){return/iemobile/i.test(t)}function AD(t=Ln()){return/android/i.test(t)}function xD(t=Ln()){return/blackberry/i.test(t)}function ID(t=Ln()){return/webos/i.test(t)}function UE(t=Ln()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function Fj(t=Ln()){var e;return UE(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function Mj(){return $8()&&document.documentMode===10}function RD(t=Ln()){return UE(t)||AD(t)||ID(t)||xD(t)||/windows phone/i.test(t)||TD(t)}/** 2380 * @license 2381 * Copyright 2020 Google LLC 2382 * 2383 * Licensed under the Apache License, Version 2.0 (the "License");
2384 * you may not use this file except in compliance with the License. 2385 * You may obtain a copy of the License at 2386 * 2387 * http://www.apache.org/licenses/LICENSE-2.0 2388 * 2389 * Unless required by applicable law or agreed to in writing, software 2390 * distributed under the License is distributed on an "AS IS" BASIS, 2391 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2392 * See the License for the specific language governing permissions and 2393 * limitations under the License. 2394 */function CD(t,e=[]){let n;switch(t){case"Browser":n=tx(Ln());break;case"Worker":n=`${tx(Ln())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Ys}/${r}`}/** 2395 * @license 2396 * Copyright 2022 Google LLC 2397 * 2398 * Licensed under the Apache License, Version 2.0 (the "License"); 2399 * you may not use this file except in compliance with the License. 2400 * You may obtain a copy of the License at 2401 * 2402 * http://www.apache.org/licenses/LICENSE-2.0 2403 * 2404 * Unless required by applicable law or agreed to in writing, software 2405 * distributed under the License is distributed on an "AS IS" BASIS, 2406 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2407 * See the License for the specific language governing permissions and 2408 * limitations under the License. 2409 */class Bj{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((s,a)=>{try{const c=e(i);s(c)}catch(c){a(c)}});r.onAbort=n,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>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 o of n)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}/** 2410 * @license 2411 * Copyright 2023 Google LLC 2412 * 2413 * Licensed under the Apache License, Version 2.0 (the "License"); 2414 * you may not use this file except in compliance with the License. 2415 * You may obtain a copy of the License at 2416 * 2417 * http://www.apache.org/licenses/LICENSE-2.0 2418 * 2419 * Unless required by applicable law or agreed to in writing, software 2420 * distributed under the License is distributed on an "AS IS" BASIS, 2421 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2422 * See the License for the specific language governing permissions and 2423 * limitations under the License. 2424 */async function Uj(t,e={}){return ds(t,"GET","/v2/passwordPolicy",us(t,e))}/** 2425 * @license 2426 * Copyright 2023 Google LLC 2427 * 2428 * Licensed under the Apache License, Version 2.0 (the "License"); 2429 * you may not use this file except in compliance with the License. 2430 * You may obtain a copy of the License at 2431 * 2432 * http://www.apache.org/licenses/LICENSE-2.0 2433 * 2434 * Unless required by applicable law or agreed to in writing, software 2435 * distributed under the License is distributed on an "AS IS" BASIS, 2436 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2437 * See the License for the specific language governing permissions and 2438 * limitations under the License. 2439 */const $j=6;class jj{constructor(e){var n,r,o,i;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:$j,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(i=e.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,o,i,s,a;const c={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,c),this.validatePasswordCharacterOptions(e,c),c.isValid&&
2439(c.isValid=(n=c.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),c.isValid&&(c.isValid=(r=c.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),c.isValid&&(c.isValid=(o=c.containsLowercaseLetter)!==null&&o!==void 0?o:!0),c.isValid&&(c.isValid=(i=c.containsUppercaseLetter)!==null&&i!==void 0?i:!0),c.isValid&&(c.isValid=(s=c.containsNumericCharacter)!==null&&s!==void 0?s:!0),c.isValid&&(c.isValid=(a=c.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),c}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),o&&(n.meetsMaxPasswordLength=e.length<=o)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let o=0;o<e.length;o++)r=e.charAt(o),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,o,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/** 2440 * @license 2441 * Copyright 2020 Google LLC 2442 * 2443 * Licensed under the Apache License, Version 2.0 (the "License"); 2444 * you may not use this file except in compliance with the License. 2445 * You may obtain a copy of the License at 2446 * 2447 * http://www.apache.org/licenses/LICENSE-2.0 2448 * 2449 * Unless required by applicable law or agreed to in writing, software 2450 * distributed under the License is distributed on an "AS IS" BASIS, 2451 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2452 * See the License for the specific language governing permissions and 2453 * limitations under the License. 2454 */class Hj{constructor(e,n,r,o){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new nx(this),this.idTokenSubscription=new nx(this),this.beforeStateQueue=new Bj(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=fD,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=o.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=$i(n)),this._initializationPromise=this.queue(async()=>{var r,o;if(!this._deleted&&(this.persistenceManager=await Vc.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=((o=this.currentUser)===null||o===void 0?void 0:o.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 initializeCurrentUserFromIdToken(e){try{const n=await gD(this,{idToken:e}),r=await Ui._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(Pr(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let o=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=o?._redirectEventId,c=await this.tryRedirectSignIn(e);(!s||s===a)&&c?.user&&(o=c.user,i=!0)}if(!o)return this.directlySetCurrentUser(null);
2454if(!o._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(o)}catch(s){o=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return Pe(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}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 Kp(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=wj()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Pr(this.app))return Promise.reject(Gi(this));const n=e?kn(e):null;return n&&Pe(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&&Pe(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 Pr(this.app)?Promise.reject(Gi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Pr(this.app)?Promise.reject(Gi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence($i(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 Uj(this),n=new jj(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new bl("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)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await Vj(this,r)}}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&&$i(e)||this._popupRedirectResolver;Pe(n,this,"argument-error"),this.redirectPersistenceManager=await Vc.create(this,[$i(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,o){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Pe(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),typeof n=="function"){const c=e.addObserver(n,r,o);return()=>{s=!0,c()}}else{const c=e.addObserver(n);return()=>{s=!0,c()}}}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 Pe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=CD(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 o=await this._getAppCheckToken();return o&&(n["X-Firebase-AppCheck"]=o),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n?.error&&yj(`Error while retrieving App Check token: ${n.error}`),n?.token}}function vi(t){return kn(t)}class nx{constructor(e){this.auth=e,this.observer=null,this.addObserver=X8(n=>this.observer=n)}get next(){return Pe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 2455 * @license 2456 * Copyright 2020 Google LLC 2457 * 2458 * Licensed under the Apache License, Version 2.0 (the "License");
2459 * you may not use this file except in compliance with the License. 2460 * You may obtain a copy of the License at 2461 * 2462 * http://www.apache.org/licenses/LICENSE-2.0 2463 * 2464 * Unless required by applicable law or agreed to in writing, software 2465 * distributed under the License is distributed on an "AS IS" BASIS, 2466 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2467 * See the License for the specific language governing permissions and 2468 * limitations under the License. 2469 */let om={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function zj(t){om=t}function PD(t){return om.loadJS(t)}function qj(){return om.recaptchaEnterpriseScript}function Wj(){return om.gapiScript}function Kj(t){return`__${t}${Math.floor(Math.random()*1e6)}`}const Gj="recaptcha-enterprise",Qj="NO_RECAPTCHA";class Yj{constructor(e){this.type=Gj,this.auth=vi(e)}async verify(e="verify",n=!1){async function r(i){if(!n){if(i.tenantId==null&&i._agentRecaptchaConfig!=null)return i._agentRecaptchaConfig.siteKey;if(i.tenantId!=null&&i._tenantRecaptchaConfigs[i.tenantId]!==void 0)return i._tenantRecaptchaConfigs[i.tenantId].siteKey}return new Promise(async(s,a)=>{Cj(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(c=>{if(c.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const l=new Rj(c);return i.tenantId==null?i._agentRecaptchaConfig=l:i._tenantRecaptchaConfigs[i.tenantId]=l,s(l.siteKey)}}).catch(c=>{a(c)})})}function o(i,s,a){const c=window.grecaptcha;XA(c)?c.enterprise.ready(()=>{c.enterprise.execute(i,{action:e}).then(l=>{s(l)}).catch(()=>{s(Qj)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((i,s)=>{r(this.auth).then(a=>{if(!n&&XA(window.grecaptcha))o(a,i,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let c=qj();c.length!==0&&(c+=a),PD(c).then(()=>{o(a,i,s)}).catch(l=>{s(l)})}}).catch(a=>{s(a)})})}}async function rx(t,e,n,r=!1){const o=new Yj(t);let i;try{i=await o.verify(n)}catch{i=await o.verify(n,!0)}const s=Object.assign({},e);return r?Object.assign(s,{captchaResp:i}):Object.assign(s,{captchaResponse:i}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function Gp(t,e,n,r){var o;if(!((o=t._getRecaptchaConfig())===null||o===void 0)&&o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await rx(t,e,n,n==="getOobCode");return r(t,i)}else return r(t,e).catch(async i=>{if(i.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const s=await rx(t,e,n,n==="getOobCode");return r(t,s)}else return Promise.reject(i)})}/** 2470 * @license 2471 * Copyright 2020 Google LLC 2472 * 2473 * Licensed under the Apache License, Version 2.0 (the "License"); 2474 * you may not use this file except in compliance with the License. 2475 * You may obtain a copy of the License at 2476 * 2477 * http://www.apache.org/licenses/LICENSE-2.0 2478 * 2479 * Unless required by applicable law or agreed to in writing, software 2480 * distributed under the License is distributed on an "AS IS" BASIS, 2481 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2482 * See the License for the specific language governing permissions and 2483 * limitations under the License. 2484 */function SD(t,e){const n=$v(t,"auth");if(n.isInitialized()){const o=n.getImmediate(),i=n.getOptions();if(Lp(i,e??{}))return o;gr(o,"already-initialized")}return n.initialize({options:e})}function Xj(t,e){const n=e?.persistence||[],r=(Array.isArray(n)?n:[n]).map($i);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}function Jj(t,e,n){const r=vi(t);Pe(r._canInitEmulator,r,"emulator-config-failed"),Pe(/^https?:\/\//.test(e),r,"invali
2484d-emulator-scheme");const o=!1,i=OD(e),{host:s,port:a}=Zj(e),c=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${s}${c}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),e7()}function OD(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function Zj(t){const e=OD(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const i=o[1];return{host:i,port:ox(r.substr(i.length+1))}}else{const[i,s]=r.split(":");return{host:i,port:ox(s)}}}function ox(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function e7(){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())}/** 2485 * @license 2486 * Copyright 2020 Google LLC 2487 * 2488 * Licensed under the Apache License, Version 2.0 (the "License"); 2489 * you may not use this file except in compliance with the License. 2490 * You may obtain a copy of the License at 2491 * 2492 * http://www.apache.org/licenses/LICENSE-2.0 2493 * 2494 * Unless required by applicable law or agreed to in writing, software 2495 * distributed under the License is distributed on an "AS IS" BASIS, 2496 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2497 * See the License for the specific language governing permissions and 2498 * limitations under the License. 2499 */class $E{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Bi("not implemented")}_getIdTokenResponse(e){return Bi("not implemented")}_linkToIdToken(e,n){return Bi("not implemented")}_getReauthenticationResolver(e){return Bi("not implemented")}}async function t7(t,e){return ds(t,"POST","/v1/accounts:signUp",e)}/** 2500 * @license 2501 * Copyright 2020 Google LLC 2502 * 2503 * Licensed under the Apache License, Version 2.0 (the "License"); 2504 * you may not use this file except in compliance with the License. 2505 * You may obtain a copy of the License at 2506 * 2507 * http://www.apache.org/licenses/LICENSE-2.0 2508 * 2509 * Unless required by applicable law or agreed to in writing, software 2510 * distributed under the License is distributed on an "AS IS" BASIS, 2511 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2512 * See the License for the specific language governing permissions and 2513 * limitations under the License. 2514 */async function n7(t,e){return zd(t,"POST","/v1/accounts:signInWithPassword",us(t,e))}async function DD(t,e){return ds(t,"POST","/v1/accounts:sendOobCode",us(t,e))}async function r7(t,e){return DD(t,e)}async function o7(t,e){return DD(t,e)}/** 2515 * @license 2516 * Copyright 2020 Google LLC 2517 * 2518 * Licensed under the Apache License, Version 2.0 (the "License"); 2519 * you may not use this file except in compliance with the License. 2520 * You may obtain a copy of the License at 2521 * 2522 * http://www.apache.org/licenses/LICENSE-2.0 2523 * 2524 * Unless required by applicable law or agreed to in writing, software 2525 * distributed under the License is distributed on an "AS IS" BASIS, 2526 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2527 * See the License for the specific language governing permissions and 2528 * limitations under the License. 2529 */async function i7(t,e){return zd(t,"POST","/v1/accounts:signInWithEmailLink",us(t,e))}async function s7(t,e){return zd(t,"POST","/v1/accounts:signInWithEmailLink",us(t,e))}/** 2530 * @license 2531 * Copyright 2020 Google LLC 2532 * 2533 * Licensed under the Apache License, Version 2.0 (the "License");
2534 * you may not use this file except in compliance with the License. 2535 * You may obtain a copy of the License at 2536 * 2537 * http://www.apache.org/licenses/LICENSE-2.0 2538 * 2539 * Unless required by applicable law or agreed to in writing, software 2540 * distributed under the License is distributed on an "AS IS" BASIS, 2541 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2542 * See the License for the specific language governing permissions and 2543 * limitations under the License. 2544 */class md extends $E{constructor(e,n,r,o=null){super("password",r),this._email=e,this._password=n,this._tenantId=o}static _fromEmailAndPassword(e,n){return new md(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new md(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n?.email&&n?.password){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Gp(e,n,"signInWithPassword",n7);case"emailLink":return i7(e,{email:this._email,oobCode:this._password});default:gr(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Gp(e,r,"signUpPassword",t7);case"emailLink":return s7(e,{idToken:n,email:this._email,oobCode:this._password});default:gr(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/** 2545 * @license 2546 * Copyright 2020 Google LLC 2547 * 2548 * Licensed under the Apache License, Version 2.0 (the "License"); 2549 * you may not use this file except in compliance with the License. 2550 * You may obtain a copy of the License at 2551 * 2552 * http://www.apache.org/licenses/LICENSE-2.0 2553 * 2554 * Unless required by applicable law or agreed to in writing, software 2555 * distributed under the License is distributed on an "AS IS" BASIS, 2556 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2557 * See the License for the specific language governing permissions and 2558 * limitations under the License. 2559 */async function Fc(t,e){return zd(t,"POST","/v1/accounts:signInWithIdp",us(t,e))}/** 2560 * @license 2561 * Copyright 2020 Google LLC 2562 * 2563 * Licensed under the Apache License, Version 2.0 (the "License"); 2564 * you may not use this file except in compliance with the License. 2565 * You may obtain a copy of the License at 2566 * 2567 * http://www.apache.org/licenses/LICENSE-2.0 2568 * 2569 * Unless required by applicable law or agreed to in writing, software 2570 * distributed under the License is distributed on an "AS IS" BASIS, 2571 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2572 * See the License for the specific language governing permissions and 2573 * limitations under the License. 2574 */const a7="http://localhost";class ss extends $E{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new ss(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):gr("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2574once: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:o}=n,i=NE(n,["providerId","signInMethod"]);if(!r||!o)return null;const s=new ss(r,o);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){const n=this.buildRequest();return Fc(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Fc(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Fc(e,n)}buildRequest(){const e={requestUri:a7,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=wl(n)}return e}}/** 2575 * @license 2576 * Copyright 2020 Google LLC 2577 * 2578 * Licensed under the Apache License, Version 2.0 (the "License"); 2579 * you may not use this file except in compliance with the License. 2580 * You may obtain a copy of the License at 2581 * 2582 * http://www.apache.org/licenses/LICENSE-2.0 2583 * 2584 * Unless required by applicable law or agreed to in writing, software 2585 * distributed under the License is distributed on an "AS IS" BASIS, 2586 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2587 * See the License for the specific language governing permissions and 2588 * limitations under the License. 2589 */function c7(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function l7(t){const e=hu(fu(t)).link,n=e?hu(fu(e)).deep_link_id:null,r=hu(fu(t)).deep_link_id;return(r?hu(fu(r)).link:null)||r||n||e||t}class jE{constructor(e){var n,r,o,i,s,a;const c=hu(fu(e)),l=(n=c.apiKey)!==null&&n!==void 0?n:null,u=(r=c.oobCode)!==null&&r!==void 0?r:null,d=c7((o=c.mode)!==null&&o!==void 0?o:null);Pe(l&&u&&d,"argument-error"),this.apiKey=l,this.operation=d,this.code=u,this.continueUrl=(i=c.continueUrl)!==null&&i!==void 0?i:null,this.languageCode=(s=c.languageCode)!==null&&s!==void 0?s:null,this.tenantId=(a=c.tenantId)!==null&&a!==void 0?a:null}static parseLink(e){const n=l7(e);try{return new jE(n)}catch{return null}}}/** 2590 * @license 2591 * Copyright 2020 Google LLC 2592 * 2593 * Licensed under the Apache License, Version 2.0 (the "License"); 2594 * you may not use this file except in compliance with the License. 2595 * You may obtain a copy of the License at 2596 * 2597 * http://www.apache.org/licenses/LICENSE-2.0 2598 * 2599 * Unless required by applicable law or agreed to in writing, software 2600 * distributed under the License is distributed on an "AS IS" BASIS, 2601 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2602 * See the License for the specific language governing permissions and 2603 * limitations under the License. 2604 */class Pl{constructor(){this.providerId=Pl.PROVIDER_ID}static credential(e,n){return md._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=jE.parseLink(n);return Pe(r,"argument-error"),md._fromEmailAndCode(e,r.code,r.tenantId)}}Pl.PROVIDER_ID="password";Pl.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Pl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 2605 * @license 2606 * Copyright 2020 Google LLC 2607 * 2608 * Licensed under the Apache License, Version 2.0 (the "License"); 2609 * you may not use this file except in compliance with the License. 2610 * You may obtain a copy of the License at 2611 * 2612 * http://www.apache.org/licenses/LICENSE-2.0 2613 * 2614 * Unless required by applicable law or agreed to in writing, software 2615 * distributed under the License is distributed on an "AS IS" BASIS, 2616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2617 * See the License for the specific language governing permissions and 2618 * limitations under the License. 2619 */class HE{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}}/** 2620 * @license 2621 * Copyright 2019 Google LLC 2622 * 2623 * Licensed under the Apache License, Version 2.0 (the "License");
2624 * you may not use this file except in compliance with the License. 2625 * You may obtain a copy of the License at 2626 * 2627 * http://www.apache.org/licenses/LICENSE-2.0 2628 * 2629 * Unless required by applicable law or agreed to in writing, software 2630 * distributed under the License is distributed on an "AS IS" BASIS, 2631 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2632 * See the License for the specific language governing permissions and 2633 * limitations under the License. 2634 */class Sl extends HE{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class vf extends Sl{static credentialFromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;return Pe("providerId"in n&&"signInMethod"in n,"argument-error"),ss._fromParams(n)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return Pe(e.idToken||e.accessToken,"argument-error"),ss._fromParams(Object.assign(Object.assign({}
2634,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return vf.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return vf.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:o,pendingToken:i,nonce:s,providerId:a}=e;if(!r&&!o&&!n&&!i||!a)return null;try{return new vf(a)._credential({idToken:n,accessToken:r,nonce:s,pendingToken:i})}catch{return null}}}/** 2635 * @license 2636 * Copyright 2020 Google LLC 2637 * 2638 * Licensed under the Apache License, Version 2.0 (the "License"); 2639 * you may not use this file except in compliance with the License. 2640 * You may obtain a copy of the License at 2641 * 2642 * http://www.apache.org/licenses/LICENSE-2.0 2643 * 2644 * Unless required by applicable law or agreed to in writing, software 2645 * distributed under the License is distributed on an "AS IS" BASIS, 2646 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2647 * See the License for the specific language governing permissions and 2648 * limitations under the License. 2649 */class Cs extends Sl{constructor(){super("facebook.com")}static credential(e){return ss._fromParams({providerId:Cs.PROVIDER_ID,signInMethod:Cs.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Cs.credentialFromTaggedObject(e)}static credentialFromError(e){return Cs.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Cs.credential(e.oauthAccessToken)}catch{return null}}}Cs.FACEBOOK_SIGN_IN_METHOD="facebook.com";Cs.PROVIDER_ID="facebook.com";/** 2650 * @license 2651 * Copyright 2020 Google LLC 2652 * 2653 * Licensed under the Apache License, Version 2.0 (the "License"); 2654 * you may not use this file except in compliance with the License. 2655 * You may obtain a copy of the License at 2656 * 2657 * http://www.apache.org/licenses/LICENSE-2.0 2658 * 2659 * Unless required by applicable law or agreed to in writing, software 2660 * distributed under the License is distributed on an "AS IS" BASIS, 2661 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2662 * See the License for the specific language governing permissions and 2663 * limitations under the License. 2664 */class Ps extends Sl{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return ss._fromParams({providerId:Ps.PROVIDER_ID,signInMethod:Ps.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Ps.credentialFromTaggedObject(e)}static credentialFromError(e){return Ps.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Ps.credential(n,r)}catch{return null}}}Ps.GOOGLE_SIGN_IN_METHOD="google.com";Ps.PROVIDER_ID="google.com";/** 2665 * @license 2666 * Copyright 2020 Google LLC 2667 * 2668 * Licensed under the Apache License, Version 2.0 (the "License"); 2669 * you may not use this file except in compliance with the License. 2670 * You may obtain a copy of the License at 2671 * 2672 * http://www.apache.org/licenses/LICENSE-2.0 2673 * 2674 * Unless required by applicable law or agreed to in writing, software 2675 * distributed under the License is distributed on an "AS IS" BASIS, 2676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2677 * See the License for the specific language governing permissions and 2678 * limitations under the License. 2679 */class Ss extends Sl{constructor(){super("github.com")}static credential(e){return ss._fromParams({providerId:Ss.PROVIDER_ID,signInMethod:Ss.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Ss.credentialFromTaggedObject(e)}static credentialFromError(e){return Ss.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Ss.credential(e.oauthAccessToken)}catch{return null}}}Ss.GITHUB_SIGN_IN_METHOD="github.com";Ss.PROVIDER_ID="github.com";/** 2680 * @license 2681 * Copyright 2020 Google LLC 2682 * 2683 * Licensed under the Apache License, Version 2.0 (the "License");
2684 * you may not use this file except in compliance with the License. 2685 * You may obtain a copy of the License at 2686 * 2687 * http://www.apache.org/licenses/LICENSE-2.0 2688 * 2689 * Unless required by applicable law or agreed to in writing, software 2690 * distributed under the License is distributed on an "AS IS" BASIS, 2691 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2692 * See the License for the specific language governing permissions and 2693 * limitations under the License. 2694 */class Os extends Sl{constructor(){super("twitter.com")}static credential(e,n){return ss._fromParams({providerId:Os.PROVIDER_ID,signInMethod:Os.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Os.credentialFromTaggedObject(e)}static credentialFromError(e){return Os.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Os.credential(n,r)}catch{return null}}}Os.TWITTER_SIGN_IN_METHOD="twitter.com";Os.PROVIDER_ID="twitter.com";/** 2695 * @license 2696 * Copyright 2020 Google LLC 2697 * 2698 * Licensed under the Apache License, Version 2.0 (the "License"); 2699 * you may not use this file except in compliance with the License. 2700 * You may obtain a copy of the License at 2701 * 2702 * http://www.apache.org/licenses/LICENSE-2.0 2703 * 2704 * Unless required by applicable law or agreed to in writing, software 2705 * distributed under the License is distributed on an "AS IS" BASIS, 2706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2707 * See the License for the specific language governing permissions and 2708 * limitations under the License. 2709 */class Ua{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,o=!1){const i=await Ui._fromIdTokenResponse(e,r,o),s=ix(r);return new Ua({user:i,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const o=ix(r);return new Ua({user:e,providerId:o,_tokenResponse:r,operationType:n})}}function ix(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 2710 * @license 2711 * Copyright 2020 Google LLC 2712 * 2713 * Licensed under the Apache License, Version 2.0 (the "License"); 2714 * you may not use this file except in compliance with the License. 2715 * You may obtain a copy of the License at 2716 * 2717 * http://www.apache.org/licenses/LICENSE-2.0 2718 * 2719 * Unless required by applicable law or agreed to in writing, software 2720 * distributed under the License is distributed on an "AS IS" BASIS, 2721 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2722 * See the License for the specific language governing permissions and 2723 * limitations under the License. 2724 */class Qp extends yi{constructor(e,n,r,o){var i;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,Qp.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,o){return new Qp(e,n,r,o)}}function LD(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Qp._fromErrorAndOperation(t,i,e,r):i})}async function u7(t,e,n=!1){const r=await _d(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return Ua._forOperation(t,"link",r)}/** 2725 * @license 2726 * Copyright 2019 Google LLC 2727 * 2728 * Licensed under the Apache License, Version 2.0 (the "License"); 2729 * you may not use this file except in compliance with the License. 2730 * You may obtain a copy of the License at 2731 * 2732 * http://www.apache.org/licenses/LICENSE-2.0 2733 * 2734 * Unless required by applicable law or agreed to in writing, software 2735 * distributed under the License is distributed on an "AS IS" BASIS, 2736 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2737 * See the License for the specific language governing permissions and 2738 * limitations under the License. 2739 */async function d7(t,e,n=!1){const{auth:r}=t;if(Pr(r.app))return Promise.reject(Gi(r));const o="reauthenticate";try{const i=await _d(t,LD(r,o,e,t),n);Pe(i.idToken,r,"internal-error");const s=BE(i.idToken);
2739Pe(s,r,"internal-error");const{sub:a}=s;return Pe(t.uid===a,r,"user-mismatch"),Ua._forOperation(t,o,i)}catch(i){throw i?.code==="auth/user-not-found"&&gr(r,"user-mismatch"),i}}/** 2740 * @license 2741 * Copyright 2020 Google LLC 2742 * 2743 * Licensed under the Apache License, Version 2.0 (the "License"); 2744 * you may not use this file except in compliance with the License. 2745 * You may obtain a copy of the License at 2746 * 2747 * http://www.apache.org/licenses/LICENSE-2.0 2748 * 2749 * Unless required by applicable law or agreed to in writing, software 2750 * distributed under the License is distributed on an "AS IS" BASIS, 2751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2752 * See the License for the specific language governing permissions and 2753 * limitations under the License. 2754 */async function kD(t,e,n=!1){if(Pr(t.app))return Promise.reject(Gi(t));const r="signIn",o=await LD(t,r,e),i=await Ua._fromIdTokenResponse(t,r,o);return n||await t._updateCurrentUser(i.user),i}async function h7(t,e){return kD(vi(t),e)}/** 2755 * @license 2756 * Copyright 2020 Google LLC 2757 * 2758 * Licensed under the Apache License, Version 2.0 (the "License"); 2759 * you may not use this file except in compliance with the License. 2760 * You may obtain a copy of the License at 2761 * 2762 * http://www.apache.org/licenses/LICENSE-2.0 2763 * 2764 * Unless required by applicable law or agreed to in writing, software 2765 * distributed under the License is distributed on an "AS IS" BASIS, 2766 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2767 * See the License for the specific language governing permissions and 2768 * limitations under the License. 2769 */async function f7(t,e){return zd(t,"POST","/v1/accounts:signInWithCustomToken",us(t,e))}/** 2770 * @license 2771 * Copyright 2020 Google LLC 2772 * 2773 * Licensed under the Apache License, Version 2.0 (the "License"); 2774 * you may not use this file except in compliance with the License. 2775 * You may obtain a copy of the License at 2776 * 2777 * http://www.apache.org/licenses/LICENSE-2.0 2778 * 2779 * Unless required by applicable law or agreed to in writing, software 2780 * distributed under the License is distributed on an "AS IS" BASIS, 2781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2782 * See the License for the specific language governing permissions and 2783 * limitations under the License. 2784 */async function Qae(t,e){if(Pr(t.app))return Promise.reject(Gi(t));const n=vi(t),r=await f7(n,{token:e,returnSecureToken:!0}),o=await Ua._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(o.user),o}/** 2785 * @license 2786 * Copyright 2020 Google LLC 2787 * 2788 * Licensed under the Apache License, Version 2.0 (the "License"); 2789 * you may not use this file except in compliance with the License. 2790 * You may obtain a copy of the License at 2791 * 2792 * http://www.apache.org/licenses/LICENSE-2.0 2793 * 2794 * Unless required by applicable law or agreed to in writing, software 2795 * distributed under the License is distributed on an "AS IS" BASIS, 2796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2797 * See the License for the specific language governing permissions and 2798 * limitations under the License. 2799 */function ND(t,e,n){var r;Pe(((r=n.url)===null||r===void 0?void 0:r.length)>0,t,"invalid-continue-uri"),Pe(typeof n.dynamicLinkDomain>"u"||n.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),e.continueUrl=n.url,e.dynamicLinkDomain=n.dynamicLinkDomain,e.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Pe(n.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),e.iOSBundleId=n.iOS.bundleId),n.android&&(Pe(n.android.packageName.length>0,t,"missing-android-pkg-name"),e.androidInstallApp=n.android.installApp,e.androidMinimumVersionCode=n.android.minimumVersion,e.androidPackageName=n.android.packageName)}/** 2800 * @license 2801 * Copyright 2020 Google LLC 2802 * 2803 * Licensed under the Apache License, Version 2.0 (the "License"); 2804 * you may not use this file except in compliance with the License. 2805 * You may obtain a copy of the License at 2806 * 2807 * http://www.apache.org/licenses/LICENSE-2.0 2808 * 2809 * Unless required by applicable law or agreed to in writing, software 2810 * distributed under the License is distributed on an "AS IS" BASIS, 2811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2812 * See the License for the specific language governing permissions and 2813 * limitations under the License. 2814 */async function p7(t){const e=vi(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function Yae(t,e,n){const r=vi(t),o={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};
2814n&&ND(r,o,n),await Gp(r,o,"getOobCode",r7)}function Xae(t,e,n){return Pr(t.app)?Promise.reject(Gi(t)):h7(kn(t),Pl.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&p7(t),r})}/** 2815 * @license 2816 * Copyright 2020 Google LLC 2817 * 2818 * Licensed under the Apache License, Version 2.0 (the "License"); 2819 * you may not use this file except in compliance with the License. 2820 * You may obtain a copy of the License at 2821 * 2822 * http://www.apache.org/licenses/LICENSE-2.0 2823 * 2824 * Unless required by applicable law or agreed to in writing, software 2825 * distributed under the License is distributed on an "AS IS" BASIS, 2826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2827 * See the License for the specific language governing permissions and 2828 * limitations under the License. 2829 */async function Jae(t,e,n){const r=vi(t),o={requestType:"EMAIL_SIGNIN",email:e,clientType:"CLIENT_TYPE_WEB"};function i(s,a){Pe(a.handleCodeInApp,r,"argument-error"),a&&ND(r,s,a)}i(o,n),await Gp(r,o,"getOobCode",o7)}function VD(t,e,n,r){return kn(t).onIdTokenChanged(e,n,r)}function _7(t,e,n){return kn(t).beforeAuthStateChanged(e,n)}function m7(t){return kn(t).signOut()}const Yp="__sak";/** 2830 * @license 2831 * Copyright 2019 Google LLC 2832 * 2833 * Licensed under the Apache License, Version 2.0 (the "License"); 2834 * you may not use this file except in compliance with the License. 2835 * You may obtain a copy of the License at 2836 * 2837 * http://www.apache.org/licenses/LICENSE-2.0 2838 * 2839 * Unless required by applicable law or agreed to in writing, software 2840 * distributed under the License is distributed on an "AS IS" BASIS, 2841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2842 * See the License for the specific language governing permissions and 2843 * limitations under the License. 2844 */class FD{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Yp,"1"),this.storage.removeItem(Yp),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()}}/** 2845 * @license 2846 * Copyright 2020 Google LLC 2847 * 2848 * Licensed under the Apache License, Version 2.0 (the "License"); 2849 * you may not use this file except in compliance with the License. 2850 * You may obtain a copy of the License at 2851 * 2852 * http://www.apache.org/licenses/LICENSE-2.0 2853 * 2854 * Unless required by applicable law or agreed to in writing, software 2855 * distributed under the License is distributed on an "AS IS" BASIS, 2856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2857 * See the License for the specific language governing permissions and 2858 * limitations under the License. 2859 */const g7=1e3,y7=10;class MD extends FD{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=RD(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),o=this.localCache[n];r!==o&&e(n,o,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((s,a,c)=>{this.notifyListeners(s,c)});return}const r=e.key;n?this.detachListener():this.stopPolling();const o=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},i=this.storage.getItem(r);Mj()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(o,y7):o()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const o of Array.from(r))o(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)})},g7)}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]),Ob
2859ject.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]}}MD.type="LOCAL";const BD=MD;/** 2860 * @license 2861 * Copyright 2020 Google LLC 2862 * 2863 * Licensed under the Apache License, Version 2.0 (the "License"); 2864 * you may not use this file except in compliance with the License. 2865 * You may obtain a copy of the License at 2866 * 2867 * http://www.apache.org/licenses/LICENSE-2.0 2868 * 2869 * Unless required by applicable law or agreed to in writing, software 2870 * distributed under the License is distributed on an "AS IS" BASIS, 2871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2872 * See the License for the specific language governing permissions and 2873 * limitations under the License. 2874 */class UD extends FD{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}UD.type="SESSION";const $D=UD;/** 2875 * @license 2876 * Copyright 2019 Google LLC 2877 * 2878 * Licensed under the Apache License, Version 2.0 (the "License"); 2879 * you may not use this file except in compliance with the License. 2880 * You may obtain a copy of the License at 2881 * 2882 * http://www.apache.org/licenses/LICENSE-2.0 2883 * 2884 * Unless required by applicable law or agreed to in writing, software 2885 * distributed under the License is distributed on an "AS IS" BASIS, 2886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2887 * See the License for the specific language governing permissions and 2888 * limitations under the License. 2889 */function v7(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 2890 * @license 2891 * Copyright 2019 Google LLC 2892 * 2893 * Licensed under the Apache License, Version 2.0 (the "License"); 2894 * you may not use this file except in compliance with the License. 2895 * You may obtain a copy of the License at 2896 * 2897 * http://www.apache.org/licenses/LICENSE-2.0 2898 * 2899 * Unless required by applicable law or agreed to in writing, software 2900 * distributed under the License is distributed on an "AS IS" BASIS, 2901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2902 * See the License for the specific language governing permissions and 2903 * limitations under the License. 2904 */class im{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(o=>o.isListeningto(e));if(n)return n;const r=new im(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:o,data:i}=n.data,s=this.handlersMap[o];if(!s?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:o});const a=Array.from(s).map(async l=>l(n.origin,i)),c=await v7(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:c})}_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)}}im.receivers=[];/** 2905 * @license 2906 * Copyright 2020 Google LLC 2907 * 2908 * Licensed under the Apache License, Version 2.0 (the "License"); 2909 * you may not use this file except in compliance with the License. 2910 * You may obtain a copy of the License at 2911 * 2912 * http://www.apache.org/licenses/LICENSE-2.0 2913 * 2914 * Unless required by applicable law or agreed to in writing, software 2915 * distributed under the License is distributed on an "AS IS" BASIS, 2916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2917 * See the License for the specific language governing permissions and 2918 * limitations under the License. 2919 */function zE(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/** 2920 * @license 2921 * Copyright 2019 Google LLC 2922 * 2923 * Licensed under the Apache License, Version 2.0 (the "License");
2924 * you may not use this file except in compliance with the License. 2925 * You may obtain a copy of the License at 2926 * 2927 * http://www.apache.org/licenses/LICENSE-2.0 2928 * 2929 * Unless required by applicable law or agreed to in writing, software 2930 * distributed under the License is distributed on an "AS IS" BASIS, 2931 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2932 * See the License for the specific language governing permissions and 2933 * limitations under the License. 2934 */class E7{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 o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let i,s;return new Promise((a,c)=>{const l=zE("",20);o.port1.start();const u=setTimeout(()=>{c(new Error("unsupported_event"))},r);s={messageChannel:o,onMessage(d){const f=d;if(f.data.eventId===l)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{c(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),c(new Error("invalid_response"));break}}},this.handlers.add(s),o.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:l,data:n},[o.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/** 2935 * @license 2936 * Copyright 2020 Google LLC 2937 * 2938 * Licensed under the Apache License, Version 2.0 (the "License"); 2939 * you may not use this file except in compliance with the License. 2940 * You may obtain a copy of the License at 2941 * 2942 * http://www.apache.org/licenses/LICENSE-2.0 2943 * 2944 * Unless required by applicable law or agreed to in writing, software 2945 * distributed under the License is distributed on an "AS IS" BASIS, 2946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2947 * See the License for the specific language governing permissions and 2948 * limitations under the License. 2949 */function ui(){return window}function b7(t){ui().location.href=t}/** 2950 * @license 2951 * Copyright 2020 Google LLC. 2952 * 2953 * Licensed under the Apache License, Version 2.0 (the "License"); 2954 * you may not use this file except in compliance with the License. 2955 * You may obtain a copy of the License at 2956 * 2957 * http://www.apache.org/licenses/LICENSE-2.0 2958 * 2959 * Unless required by applicable law or agreed to in writing, software 2960 * distributed under the License is distributed on an "AS IS" BASIS, 2961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2962 * See the License for the specific language governing permissions and 2963 * limitations under the License. 2964 */function jD(){return typeof ui().WorkerGlobalScope<"u"&&typeof ui().importScripts=="function"}async function w7(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function T7(){var t;return((t=navigator?.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function A7(){return jD()?self:null}/** 2965 * @license 2966 * Copyright 2019 Google LLC 2967 * 2968 * Licensed under the Apache License, Version 2.0 (the "License"); 2969 * you may not use this file except in compliance with the License. 2970 * You may obtain a copy of the License at 2971 * 2972 * http://www.apache.org/licenses/LICENSE-2.0 2973 * 2974 * Unless required by applicable law or agreed to in writing, software 2975 * distributed under the License is distributed on an "AS IS" BASIS, 2976 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2977 * See the License for the specific language governing permissions and 2978 * limitations under the License. 2979 */const HD="firebaseLocalStorageDb",x7=1,Xp="firebaseLocalStorage",zD="fbase_key";class qd{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 sm(t,e){return t.transaction([Xp],e?"readwrite":"readonly").objectStore(Xp)}function I7(){const t=indexedDB.deleteDatabase(HD);
2979return new qd(t).toPromise()}function Yg(){const t=indexedDB.open(HD,x7);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(Xp,{keyPath:zD})}catch(o){n(o)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(Xp)?e(r):(r.close(),await I7(),e(await Yg()))})})}async function sx(t,e,n){const r=sm(t,!0).put({[zD]:e,value:n});return new qd(r).toPromise()}async function R7(t,e){const n=sm(t,!1).get(e),r=await new qd(n).toPromise();return r===void 0?null:r.value}function ax(t,e){const n=sm(t,!0).delete(e);return new qd(n).toPromise()}const C7=800,P7=3;class qD{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 Yg(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>P7)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return jD()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=im._getInstance(A7()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
2979)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await w7(),!this.activeServiceWorker)return;this.sender=new E7(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||T7()!==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 Yg();return await sx(e,Yp,"1"),await ax(e,Yp),!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=>sx(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>R7(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>ax(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(o=>{const i=sm(o,!1).getAll();return new qd(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:o,value:i}of e)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(i)&&(this.notifyListeners(o,i),n.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),n.push(o));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const o of Array.from(r))o(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),C7)}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]),Ob
2979ject.keys(this.listeners).length===0&&this.stopPolling()}}qD.type="LOCAL";const WD=qD;new Hd(3e4,6e4);/** 2980 * @license 2981 * Copyright 2021 Google LLC 2982 * 2983 * Licensed under the Apache License, Version 2.0 (the "License"); 2984 * you may not use this file except in compliance with the License. 2985 * You may obtain a copy of the License at 2986 * 2987 * http://www.apache.org/licenses/LICENSE-2.0 2988 * 2989 * Unless required by applicable law or agreed to in writing, software 2990 * distributed under the License is distributed on an "AS IS" BASIS, 2991 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2992 * See the License for the specific language governing permissions and 2993 * limitations under the License. 2994 */function KD(t,e){return e?$i(e):(Pe(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 2995 * @license 2996 * Copyright 2019 Google LLC 2997 * 2998 * Licensed under the Apache License, Version 2.0 (the "License"); 2999 * you may not use this file except in compliance with the License. 3000 * You may obtain a copy of the License at 3001 * 3002 * http://www.apache.org/licenses/LICENSE-2.0 3003 * 3004 * Unless required by applicable law or agreed to in writing, software 3005 * distributed under the License is distributed on an "AS IS" BASIS, 3006 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3007 * See the License for the specific language governing permissions and 3008 * limitations under the License. 3009 */class qE extends $E{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Fc(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Fc(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Fc(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 S7(t){return kD(t.auth,new qE(t),t.bypassAuthState)}function O7(t){const{auth:e,user:n}=t;return Pe(n,e,"internal-error"),d7(n,new qE(t),t.bypassAuthState)}async function D7(t){const{auth:e,user:n}=t;return Pe(n,e,"internal-error"),u7(n,new qE(t),t.bypassAuthState)}/** 3010 * @license 3011 * Copyright 2020 Google LLC 3012 * 3013 * Licensed under the Apache License, Version 2.0 (the "License"); 3014 * you may not use this file except in compliance with the License. 3015 * You may obtain a copy of the License at 3016 * 3017 * http://www.apache.org/licenses/LICENSE-2.0 3018 * 3019 * Unless required by applicable law or agreed to in writing, software 3020 * distributed under the License is distributed on an "AS IS" BASIS, 3021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3022 * See the License for the specific language governing permissions and 3023 * limitations under the License. 3024 */class GD{constructor(e,n,r,o,i=!1){this.auth=e,this.resolver=r,this.user=o,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:o,tenantId:i,error:s,type:a}=e;if(s){this.reject(s);return}const c={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(c))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return S7;case"linkViaPopup":case"linkViaRedirect":return D7;case"reauthViaPopup":case"reauthViaRedirect":return O7;default:gr(this.auth,"internal-error")}}resolve(e){is(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){is(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()}}/** 3025 * @license 3026 * Copyright 2020 Google LLC 3027 * 3028 * Licensed under the Apache License, Version 2.0 (the "License");
3029 * you may not use this file except in compliance with the License. 3030 * You may obtain a copy of the License at 3031 * 3032 * http://www.apache.org/licenses/LICENSE-2.0 3033 * 3034 * Unless required by applicable law or agreed to in writing, software 3035 * distributed under the License is distributed on an "AS IS" BASIS, 3036 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3037 * See the License for the specific language governing permissions and 3038 * limitations under the License. 3039 */const L7=new Hd(2e3,1e4);async function Zae(t,e,n){if(Pr(t.app))return Promise.reject(Fr(t,"operation-not-supported-in-this-environment"));const r=vi(t);vj(t,e,HE);const o=KD(r,n);return new Ea(r,"signInViaPopup",e,o).executeNotNull()}class Ea extends GD{constructor(e,n,r,o,i){super(e,n,o,i),this.provider=r,this.authWindow=null,this.pollId=null,Ea.currentPopupAction&&Ea.currentPopupAction.cancel(),Ea.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Pe(e,this.auth,"internal-error"),e}async onExecution(){is(this.filter.length===1,"Popup operations only handle one event");const e=zE();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(Fr(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(Fr(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ea.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(Fr(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,L7.get())};e()}}Ea.currentPopupAction=null;/** 3040 * @license 3041 * Copyright 2020 Google LLC 3042 * 3043 * Licensed under the Apache License, Version 2.0 (the "License"); 3044 * you may not use this file except in compliance with the License. 3045 * You may obtain a copy of the License at 3046 * 3047 * http://www.apache.org/licenses/LICENSE-2.0 3048 * 3049 * Unless required by applicable law or agreed to in writing, software 3050 * distributed under the License is distributed on an "AS IS" BASIS, 3051 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3052 * See the License for the specific language governing permissions and 3053 * limitations under the License. 3054 */const k7="pendingRedirect",Ef=new Map;class N7 extends GD{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=Ef.get(this.auth._key());if(!e){try{const r=await V7(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Ef.set(this.auth._key(),e)}return this.bypassAuthState||Ef.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 V7(t,e){const n=B7(e),r=M7(t);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function F7(t,e){Ef.set(t._key(),e)}function M7(t){return $i(t._redirectPersistence)}function B7(t){return yf(k7,t.config.apiKey,t.name)}async function U7(t,e,n=!1){if(Pr(t.app))return Promise.reject(Gi(t));const r=vi(t),o=KD(r,e),s=await new N7(r,o,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,e)),s}/** 3055 * @license 3056 * Copyright 2020 Google LLC 3057 * 3058 * Licensed under the Apache License, Version 2.0 (the "License");
3059 * you may not use this file except in compliance with the License. 3060 * You may obtain a copy of the License at 3061 * 3062 * http://www.apache.org/licenses/LICENSE-2.0 3063 * 3064 * Unless required by applicable law or agreed to in writing, software 3065 * distributed under the License is distributed on an "AS IS" BASIS, 3066 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3067 * See the License for the specific language governing permissions and 3068 * limitations under the License. 3069 */const $7=600*1e3;class j7{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||!H7(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!QD(e)){const o=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Fr(this.auth,o))}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>=$7&&this.cachedEventUids.clear(),this.cachedEventUids.has(cx(e))}saveEventToCache(e){this.cachedEventUids.add(cx(e)),this.lastProcessedEventTime=Date.now()}}function cx(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function QD({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function H7(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return QD(t);default:return!1}}/** 3070 * @license 3071 * Copyright 2020 Google LLC 3072 * 3073 * Licensed under the Apache License, Version 2.0 (the "License"); 3074 * you may not use this file except in compliance with the License. 3075 * You may obtain a copy of the License at 3076 * 3077 * http://www.apache.org/licenses/LICENSE-2.0 3078 * 3079 * Unless required by applicable law or agreed to in writing, software 3080 * distributed under the License is distributed on an "AS IS" BASIS, 3081 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3082 * See the License for the specific language governing permissions and 3083 * limitations under the License. 3084 */async function z7(t,e={}){return ds(t,"GET","/v1/projects",e)}/** 3085 * @license 3086 * Copyright 2020 Google LLC 3087 * 3088 * Licensed under the Apache License, Version 2.0 (the "License"); 3089 * you may not use this file except in compliance with the License. 3090 * You may obtain a copy of the License at 3091 * 3092 * http://www.apache.org/licenses/LICENSE-2.0 3093 * 3094 * Unless required by applicable law or agreed to in writing, software 3095 * distributed under the License is distributed on an "AS IS" BASIS, 3096 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3097 * See the License for the specific language governing permissions and 3098 * limitations under the License. 3099 */const q7=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,W7=/^https?/;async function K7(t){if(t.config.emulator)return;const{authorizedDomains:e}=await z7(t);for(const n of e)try{if(G7(n))return}catch{}gr(t,"unauthorized-domain")}function G7(t){const e=Gg(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const s=new URL(t);return s.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!W7.test(n))return!1;if(q7.test(t))return r===t;const o=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/** 3100 * @license 3101 * Copyright 2020 Google LLC. 3102 * 3103 * Licensed under the Apache License, Version 2.0 (the "License");
3104 * you may not use this file except in compliance with the License. 3105 * You may obtain a copy of the License at 3106 * 3107 * http://www.apache.org/licenses/LICENSE-2.0 3108 * 3109 * Unless required by applicable law or agreed to in writing, software 3110 * distributed under the License is distributed on an "AS IS" BASIS, 3111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3112 * See the License for the specific language governing permissions and 3113 * limitations under the License. 3114 */const Q7=new Hd(3e4,6e4);function lx(){const t=ui().___jsl;if(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<t.CP.length;n++)t.CP[n]=null}}function Y7(t){return new Promise((e,n)=>{var r,o,i;function s(){lx(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{lx(),n(Fr(t,"network-request-failed"))},timeout:Q7.get()})}if(!((o=(r=ui().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)e(gapi.iframes.getContext());else if(!((i=ui().gapi)===null||i===void 0)&&i.load)s();else{const a=Kj("iframefcb");return ui()[a]=()=>{gapi.load?s():n(Fr(t,"network-request-failed"))},PD(`${Wj()}?onload=${a}`).catch(c=>n(c))}}).catch(e=>{throw bf=null,e})}let bf=null;function X7(t){return bf=bf||Y7(t),bf}/** 3115 * @license 3116 * Copyright 2020 Google LLC. 3117 * 3118 * Licensed under the Apache License, Version 2.0 (the "License"); 3119 * you may not use this file except in compliance with the License. 3120 * You may obtain a copy of the License at 3121 * 3122 * http://www.apache.org/licenses/LICENSE-2.0 3123 * 3124 * Unless required by applicable law or agreed to in writing, software 3125 * distributed under the License is distributed on an "AS IS" BASIS, 3126 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3127 * See the License for the specific language governing permissions and 3128 * limitations under the License. 3129 */const J7=new Hd(5e3,15e3),Z7="__/auth/iframe",eH="emulator/auth/iframe",tH={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},nH=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function rH(t){const e=t.config;Pe(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?ME(e,eH):`https://${t.config.authDomain}/${Z7}`,r={apiKey:e.apiKey,appName:t.name,v:Ys},o=nH.get(t.config.apiHost);o&&(r.eid=o);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${wl(r).slice(1)}`}async function oH(t){const e=await X7(t),n=ui().gapi;return Pe(n,t,"internal-error"),e.open({where:document.body,url:rH(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:tH,dontclear:!0},r=>new Promise(async(o,i)=>{await r.restyle({setHideOnLeave:!1});const s=Fr(t,"network-request-failed"),a=ui().setTimeout(()=>{i(s)},J7.get());function c(){ui().clearTimeout(a),o(r)}r.ping(c).then(c,()=>{i(s)})}))}/** 3130 * @license 3131 * Copyright 2020 Google LLC. 3132 * 3133 * Licensed under the Apache License, Version 2.0 (the "License"); 3134 * you may not use this file except in compliance with the License. 3135 * You may obtain a copy of the License at 3136 * 3137 * http://www.apache.org/licenses/LICENSE-2.0 3138 * 3139 * Unless required by applicable law or agreed to in writing, software 3140 * distributed under the License is distributed on an "AS IS" BASIS, 3141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3142 * See the License for the specific language governing permissions and 3143 * limitations under the License. 3144 */const iH={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},sH=500,aH=600,cH="_blank",lH="http://localhost";class ux{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function uH(t,e,n,r=sH,o=aH){const i=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c=Object.assign(Object.assign({},iH),{width:r.toString(),height:o.toString(),top:i,left:s}),l=Ln().toLowerCase();n&&(a=wD(l)?cH:n),ED(l)&&(e=e||lH,c.scrollbars="yes");const u=Object.entries(c).reduce((f,[_,m])=>`${f}${_}=${m},`,"");
3144if(Fj(l)&&a!=="_self")return dH(e||"",a),new ux(null);const d=window.open(e||"",a,u);Pe(d,t,"popup-blocked");try{d.focus()}catch{}return new ux(d)}function dH(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)}/** 3145 * @license 3146 * Copyright 2021 Google LLC 3147 * 3148 * Licensed under the Apache License, Version 2.0 (the "License"); 3149 * you may not use this file except in compliance with the License. 3150 * You may obtain a copy of the License at 3151 * 3152 * http://www.apache.org/licenses/LICENSE-2.0 3153 * 3154 * Unless required by applicable law or agreed to in writing, software 3155 * distributed under the License is distributed on an "AS IS" BASIS, 3156 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3157 * See the License for the specific language governing permissions and 3158 * limitations under the License. 3159 */const hH="__/auth/handler",fH="emulator/auth/handler",pH=encodeURIComponent("fac");async function dx(t,e,n,r,o,i){Pe(t.config.authDomain,t,"auth-domain-config-required"),Pe(t.config.apiKey,t,"invalid-api-key");const s={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Ys,eventId:o};if(e instanceof HE){e.setDefaultLanguage(t.languageCode),s.providerId=e.providerId||"",Eg(e.getCustomParameters())||(s.customParameters=JSON.stringify(e.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(e instanceof Sl){const u=e.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}t.tenantId&&(s.tid=t.tenantId);const a=s;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const c=await t._getAppCheckToken(),l=c?`#${pH}=${encodeURIComponent(c)}`:"";return`${_H(t)}?${wl(a).slice(1)}${l}`}function _H({config:t}){return t.emulator?ME(t,fH):`https://${t.authDomain}/${hH}`}/** 3160 * @license 3161 * Copyright 2020 Google LLC 3162 * 3163 * Licensed under the Apache License, Version 2.0 (the "License"); 3164 * you may not use this file except in compliance with the License. 3165 * You may obtain a copy of the License at 3166 * 3167 * http://www.apache.org/licenses/LICENSE-2.0 3168 * 3169 * Unless required by applicable law or agreed to in writing, software 3170 * distributed under the License is distributed on an "AS IS" BASIS, 3171 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3172 * See the License for the specific language governing permissions and 3173 * limitations under the License. 3174 */const w0="webStorageSupport";class mH{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$D,this._completeRedirectFn=U7,this._overrideRedirectResult=F7}async _openPopup(e,n,r,o){var i;is((i=this.eventManagers[e._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const s=await dx(e,n,r,Gg(),o);return uH(e,s,zE())}async _openRedirect(e,n,r,o){await this._originValidation(e);const i=await dx(e,n,r,Gg(),o);return b7(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:o,promise:i}=this.eventManagers[n];return o?Promise.resolve(o):(is(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 oH(e),r=new j7(e);return n.register("authEvent",o=>(Pe(o?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(o.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(w0,{type:w0},o=>{var i;const s=(i=o?.[0])===null||i===void 0?void 0:i[w0];s!==void 0&&n(!!s),gr(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=K7(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return RD()||bD()||UE()}}const YD=mH;
3174var hx="@firebase/auth",fx="1.7.9";/** 3175 * @license 3176 * Copyright 2020 Google LLC 3177 * 3178 * Licensed under the Apache License, Version 2.0 (the "License"); 3179 * you may not use this file except in compliance with the License. 3180 * You may obtain a copy of the License at 3181 * 3182 * http://www.apache.org/licenses/LICENSE-2.0 3183 * 3184 * Unless required by applicable law or agreed to in writing, software 3185 * distributed under the License is distributed on an "AS IS" BASIS, 3186 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3187 * See the License for the specific language governing permissions and 3188 * limitations under the License. 3189 */class gH{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?.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(){Pe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 3190 * @license 3191 * Copyright 2020 Google LLC 3192 * 3193 * Licensed under the Apache License, Version 2.0 (the "License"); 3194 * you may not use this file except in compliance with the License. 3195 * You may obtain a copy of the License at 3196 * 3197 * http://www.apache.org/licenses/LICENSE-2.0 3198 * 3199 * Unless required by applicable law or agreed to in writing, software 3200 * distributed under the License is distributed on an "AS IS" BASIS, 3201 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3202 * See the License for the specific language governing permissions and 3203 * limitations under the License. 3204 */function yH(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function vH(t){_i(new Br("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),o=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Pe(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:s,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:CD(t)},l=new Hj(r,o,i,c);return Xj(l,n),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),_i(new Br("auth-internal",e=>{const n=vi(e.getProvider("auth").getImmediate());return(r=>new gH(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),or(hx,fx,yH(t)),or(hx,fx,"esm2017")}/** 3205 * @license 3206 * Copyright 2021 Google LLC 3207 * 3208 * Licensed under the Apache License, Version 2.0 (the "License"); 3209 * you may not use this file except in compliance with the License. 3210 * You may obtain a copy of the License at 3211 * 3212 * http://www.apache.org/licenses/LICENSE-2.0 3213 * 3214 * Unless required by applicable law or agreed to in writing, software 3215 * distributed under the License is distributed on an "AS IS" BASIS, 3216 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3217 * See the License for the specific language governing permissions and 3218 * limitations under the License. 3219 */const EH=300,bH=iS("authIdTokenMaxAge")||EH;let px=null;const wH=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>bH)return;const o=n?.token;px!==o&&(px=o,await fetch(t,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function ece(t=jv()){const e=$v(t,"auth");if(e.isInitialized())return e.getImmediate();const n=SD(t,{popupRedirectResolver:YD,persistence:[WD,BD,$D]}),r=iS("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const s=wH(i.toString());_7(n,s,()=>s(n.currentUser)),VD(n,a=>s(a))}}const o=rS("auth");return o&&Jj(n,`http://${o}`),n}function TH(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}
3219zj({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=o=>{const i=Fr("internal-error");i.customData=o,n(i)},r.type="text/javascript",r.charset="UTF-8",TH().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});vH("Browser");/** 3220 * @license 3221 * Copyright 2020 Google LLC 3222 * 3223 * Licensed under the Apache License, Version 2.0 (the "License"); 3224 * you may not use this file except in compliance with the License. 3225 * You may obtain a copy of the License at 3226 * 3227 * http://www.apache.org/licenses/LICENSE-2.0 3228 * 3229 * Unless required by applicable law or agreed to in writing, software 3230 * distributed under the License is distributed on an "AS IS" BASIS, 3231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3232 * See the License for the specific language governing permissions and 3233 * limitations under the License. 3234 */const AH=new Map,xH={activated:!1,tokenObservers:[]};function jr(t){return AH.get(t)||Object.assign({},xH)}const _x={RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:960*1e3};/** 3235 * @license 3236 * Copyright 2020 Google LLC 3237 * 3238 * Licensed under the Apache License, Version 2.0 (the "License"); 3239 * you may not use this file except in compliance with the License. 3240 * You may obtain a copy of the License at 3241 * 3242 * http://www.apache.org/licenses/LICENSE-2.0 3243 * 3244 * Unless required by applicable law or agreed to in writing, software 3245 * distributed under the License is distributed on an "AS IS" BASIS, 3246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3247 * See the License for the specific language governing permissions and 3248 * limitations under the License. 3249 */class IH{constructor(e,n,r,o,i){if(this.operation=e,this.retryPolicy=n,this.getWaitDuration=r,this.lowerBound=o,this.upperBound=i,this.pending=null,this.nextErrorWaitInterval=o,o>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 nd,this.pending.promise.catch(n=>{}),await RH(this.getNextRun(e)),this.pending.resolve(),await this.pending.promise,this.pending=new nd,this.pending.promise.catch(n=>{}),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 RH(t){return new Promise(e=>{setTimeout(e,t)})}/** 3250 * @license 3251 * Copyright 2020 Google LLC 3252 * 3253 * Licensed under the Apache License, Version 2.0 (the "License"); 3254 * you may not use this file except in compliance with the License. 3255 * You may obtain a copy of the License at 3256 * 3257 * http://www.apache.org/licenses/LICENSE-2.0 3258 * 3259 * Unless required by applicable law or agreed to in writing, software 3260 * distributed under the License is distributed on an "AS IS" BASIS, 3261 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3262 * See the License for the specific language governing permissions and 3263 * limitations under the License. 3264 */const CH={"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}"},Jp=new bl("appCheck","AppCheck",CH);function XD(t){if(!jr(t).activated)throw Jp.create("use-before-activation",{appName:t.name})}/** 3265 * @license 3266 * Copyright 2020 Google LLC 3267 * 3268 * Licensed under the Apache License, Version 2.0 (the "License");
3269 * you may not use this file except in compliance with the License. 3270 * You may obtain a copy of the License at 3271 * 3272 * http://www.apache.org/licenses/LICENSE-2.0 3273 * 3274 * Unless required by applicable law or agreed to in writing, software 3275 * distributed under the License is distributed on an "AS IS" BASIS, 3276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3277 * See the License for the specific language governing permissions and 3278 * limitations under the License. 3279 */const PH="firebase-app-check-database",SH=1,Xg="firebase-app-check-store";let $h=null;function OH(){return $h||($h=new Promise((t,e)=>{try{const n=indexedDB.open(PH,SH);n.onsuccess=r=>{t(r.target.result)},n.onerror=r=>{var o;e(Jp.create("storage-open",{originalErrorMessage:(o=r.target.error)===null||o===void 0?void 0:o.message}))},n.onupgradeneeded=r=>{const o=r.target.result;switch(r.oldVersion){case 0:o.createObjectStore(Xg,{keyPath:"compositeKey"})}}}catch(n){e(Jp.create("storage-open",{originalErrorMessage:n?.message}))}}),$h)}function DH(t,e){return LH(kH(t),e)}async function LH(t,e){const r=(await OH()).transaction(Xg,"readwrite"),i=r.objectStore(Xg).put({compositeKey:t,value:e});return new Promise((s,a)=>{i.onsuccess=c=>{s()},r.onerror=c=>{var l;a(Jp.create("storage-set",{originalErrorMessage:(l=c.target.error)===null||l===void 0?void 0:l.message}))}})}function kH(t){return`${t.options.appId}-${t.name}`}/** 3280 * @license 3281 * Copyright 2020 Google LLC 3282 * 3283 * Licensed under the Apache License, Version 2.0 (the "License"); 3284 * you may not use this file except in compliance with the License. 3285 * You may obtain a copy of the License at 3286 * 3287 * http://www.apache.org/licenses/LICENSE-2.0 3288 * 3289 * Unless required by applicable law or agreed to in writing, software 3290 * distributed under the License is distributed on an "AS IS" BASIS, 3291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3292 * See the License for the specific language governing permissions and 3293 * limitations under the License. 3294 */const Jg=new Nd("@firebase/app-check");function mx(t,e){return aS()?DH(t,e).catch(n=>{Jg.warn(`Failed to write token to IndexedDB. Error: ${n}`)}):Promise.resolve()}/** 3295 * @license 3296 * Copyright 2020 Google LLC 3297 * 3298 * Licensed under the Apache License, Version 2.0 (the "License"); 3299 * you may not use this file except in compliance with the License. 3300 * You may obtain a copy of the License at 3301 * 3302 * http://www.apache.org/licenses/LICENSE-2.0 3303 * 3304 * Unless required by applicable law or agreed to in writing, software 3305 * distributed under the License is distributed on an "AS IS" BASIS, 3306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3307 * See the License for the specific language governing permissions and 3308 * limitations under the License. 3309 */const NH={error:"UNKNOWN_ERROR"};function VH(t){return U_.encodeString(JSON.stringify(t),!1)}async function Zg(t,e=!1){const n=t.app;XD(n);const r=jr(n);let o=r.token,i;if(o&&!yu(o)&&(r.token=void 0,o=void 0),!o){const c=await r.cachedTokenPromise;c&&(yu(c)?o=c:await mx(n,void 0))}if(!e&&o&&yu(o))return{token:o.token};let s=!1;try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),s=!0),o=await jr(n).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"?Jg.warn(c.message):Jg.error(c),i=c}let a;return o?i?yu(o)?a={token:o.token,internalError:i}:a=yx(i):(a={token:o.token},r.token=o,await mx(n,o)):a=yx(i),s&&UH(n,a),a}async function FH(t){const e=t.app;XD(e);const{provider:n}=jr(e);{const{token:r}=await n.getToken();return{token:r}}}function MH(t,e,n,r){const{app:o}=t,i=jr(o),s={next:n,error:r,type:e};if(i.tokenObservers=[...i.tokenObservers,s],i.token&&yu(i.token)){const a=i.token;Promise.resolve().then(()=>{n({token:a.token}),gx(t)}).catch(()=>{})}i.cachedTokenPromise.then(()=>gx(t))}function JD(t,e){const n=jr(t),r=n.tokenObservers.filter(o=>o.next!==e);r.length===0&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function gx(t){const{app:e}=t,n=jr(e);let r=n.tokenRefresher;r||(r=BH(t),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function BH(t){const{app:e}=t;return new IH(async()=>{const n=jr(e);let r;if(n.token?r=await Zg(t,!0):r=await Zg(t),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{const n=jr(e);
3309if(n.token){let r=n.token.issuedAtTimeMillis+(n.token.expireTimeMillis-n.token.issuedAtTimeMillis)*.5+3e5;const o=n.token.expireTimeMillis-300*1e3;return r=Math.min(r,o),Math.max(0,r-Date.now())}else return 0},_x.RETRIAL_MIN_WAIT,_x.RETRIAL_MAX_WAIT)}function UH(t,e){const n=jr(t).tokenObservers;for(const r of n)try{r.type==="EXTERNAL"&&e.error!=null?r.error(e.error):r.next(e)}catch{}}function yu(t){return t.expireTimeMillis-Date.now()>0}function yx(t){return{token:VH(NH),error:t}}/** 3310 * @license 3311 * Copyright 2020 Google LLC 3312 * 3313 * Licensed under the Apache License, Version 2.0 (the "License"); 3314 * you may not use this file except in compliance with the License. 3315 * You may obtain a copy of the License at 3316 * 3317 * http://www.apache.org/licenses/LICENSE-2.0 3318 * 3319 * Unless required by applicable law or agreed to in writing, software 3320 * distributed under the License is distributed on an "AS IS" BASIS, 3321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3322 * See the License for the specific language governing permissions and 3323 * limitations under the License. 3324 */class $H{constructor(e,n){this.app=e,this.heartbeatServiceProvider=n}_delete(){const{tokenObservers:e}=jr(this.app);for(const n of e)JD(this.app,n.next);return Promise.resolve()}}function jH(t,e){return new $H(t,e)}function HH(t){return{getToken:e=>Zg(t,e),getLimitedUseToken:()=>FH(t),addTokenListener:e=>MH(t,"INTERNAL",e),removeTokenListener:e=>JD(t.app,e)}}const zH="@firebase/app-check",qH="0.8.8",WH="app-check",vx="app-check-internal";function KH(){_i(new Br(WH,t=>{const e=t.getProvider("app").getImmediate(),n=t.getProvider("heartbeat");return jH(e,n)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,e,n)=>{t.getProvider(vx).initialize()})),_i(new Br(vx,t=>{const e=t.getProvider("app-check").getImmediate();return HH(e)},"PUBLIC").setInstantiationMode("EXPLICIT")),or(zH,qH)}KH();var GH="firebase",QH="10.14.1";/** 3325 * @license 3326 * Copyright 2020 Google LLC 3327 * 3328 * Licensed under the Apache License, Version 2.0 (the "License"); 3329 * you may not use this file except in compliance with the License. 3330 * You may obtain a copy of the License at 3331 * 3332 * http://www.apache.org/licenses/LICENSE-2.0 3333 * 3334 * Unless required by applicable law or agreed to in writing, software 3335 * distributed under the License is distributed on an "AS IS" BASIS, 3336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3337 * See the License for the specific language governing permissions and 3338 * limitations under the License. 3339 */or(GH,QH,"app");const ZD=Symbol("firebaseApp");function Wd(t){return Ut()&&Rt(ZD,null)||jv(t)}const ii=()=>{},YH=typeof window<"u";function WE(t,e){return e.split(".").reduce((n,r)=>n&&n[r],t)}function XH(t,e,n){const r=(""+e).split("."),o=r.pop(),i=r.reduce((s,a)=>s&&s[a],t);if(i!=null)return Array.isArray(i)?i.splice(Number(o),1,n):i[o]=n}function tc(t){return!!t&&typeof t=="object"}const JH=Object.prototype;function ZH(t){return tc(t)&&Object.getPrototypeOf(t)===JH}function KE(t){return tc(t)&&t.type==="document"}function ez(t){return tc(t)&&t.type==="collection"}function tz(t){return KE(t)||ez(t)}function nz(t){return tc(t)&&t.type==="query"}function rz(t){return tc(t)&&"ref"in t}function oz(t){return tc(t)&&typeof t.bucket=="string"}function iz(t,e){let n;return()=>{if(!n)return n=!0,t(e())}}const sz=Symbol.for("v-scx");function az(){return!!Rt(sz,0)}const jh=new WeakMap;function cz(t,e){if(!jh.has(t)){const n=Qa(!0);jh.set(t,n);const{unmount:r}=e;e.unmount=()=>{r.call(e),n.stop(),jh.delete(t)}}return jh.get(t)}const eL=new WeakMap;function tce(t){return eL.get(Wd(t))}const Hh=new WeakMap;function tL(t){const e=Wd(t);if(!Hh.has(e)){let n;const o=[new Promise(i=>{n=i}
3339),i=>{Hh.set(e,i),n(i.value)}];Hh.set(e,o)}return Hh.get(e)}function nL(t){const e=tL(t);return Array.isArray(e)?e[0]:Promise.resolve(e.value)}function lz(t,e){VD(e,n=>{const r=tL();t.value=n,Array.isArray(r)&&r[1](t)})}var Ex={};const bx="@firebase/database",wx="1.0.8";/** 3340 * @license 3341 * Copyright 2019 Google LLC 3342 * 3343 * Licensed under the Apache License, Version 2.0 (the "License"); 3344 * you may not use this file except in compliance with the License. 3345 * You may obtain a copy of the License at 3346 * 3347 * http://www.apache.org/licenses/LICENSE-2.0 3348 * 3349 * Unless required by applicable law or agreed to in writing, software 3350 * distributed under the License is distributed on an "AS IS" BASIS, 3351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3352 * See the License for the specific language governing permissions and 3353 * limitations under the License. 3354 */let rL="";function uz(t){rL=t}/** 3355 * @license 3356 * Copyright 2017 Google LLC 3357 * 3358 * Licensed under the Apache License, Version 2.0 (the "License"); 3359 * you may
3359not use this file except in compliance with the License. 3360 * You may obtain a copy of the License at 3361 * 3362 * http://www.apache.org/licenses/LICENSE-2.0 3363 * 3364 * Unless required by applicable law or agreed to in writing, software 3365 * distributed under the License is distributed on an "AS IS" BASIS, 3366 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3367 * See the License for the specific language governing permissions and 3368 * limitations under the License. 3369 */class dz{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),hn(n))}get(e){const n=this.domStorage_.getItem(this.prefixedName_(e));return n==null?null:rd(n)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}/** 3370 * @license 3371 * Copyright 2017 Google LLC 3372 * 3373 * Licensed under the Apache License, Version 2.0 (the "License"); 3374 * you may not use this file except in compliance with the License. 3375 * You may obtain a copy of the License at 3376 * 3377 * http://www.apache.org/licenses/LICENSE-2.0 3378 * 3379 * Unless required by applicable law or agreed to in writing, software 3380 * distributed under the License is distributed on an "AS IS" BASIS, 3381 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3382 * See the License for the specific language governing permissions and 3383 * limitations under the License. 3384 */class hz{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,n){n==null?delete this.cache_[e]:this.cache_[e]=n}get(e){return ls(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}/** 3385 * @license 3386 * Copyright 2017 Google LLC 3387 * 3388 * Licensed under the Apache License, Version 2.0 (the "License"); 3389 * you may not use this file except in compliance with the License. 3390 * You may obtain a copy of the License at 3391 * 3392 * http://www.apache.org/licenses/LICENSE-2.0 3393 * 3394 * Unless required by applicable law or agreed to in writing, software 3395 * distributed under the License is distributed on an "AS IS" BASIS, 3396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3397 * See the License for the specific language governing permissions and 3398 * limitations under the License. 3399 */const oL=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 dz(e)}}catch{}return new hz},ba=oL("localStorage"),fz=oL("sessionStorage");/** 3400 * @license 3401 * Copyright 2017 Google LLC 3402 * 3403 * Licensed under the Apache License, Version 2.0 (the "License"); 3404 * you may not use this file except in compliance with the License. 3405 * You may obtain a copy of the License at 3406 * 3407 * http://www.apache.org/licenses/LICENSE-2.0 3408 * 3409 * Unless required by applicable law or agreed to in writing, software 3410 * distributed under the License is distributed on an "AS IS" BASIS, 3411 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3412 * See the License for the specific language governing permissions and 3413 * limitations under the License. 3414 */const Mc=new Nd("@firebase/database"),pz=(function(){let t=1;return function(){return t++}})(),iL=function(t){const e=t6(t),n=new Y8;n.update(e);const r=n.digest();return U_.encodeByteArray(r)},Kd=function(...t){let e="";for(let n=0;n<t.length;n++){const r=t[n];Array.isArray(r)||r&&typeof r=="object"&&typeof r.length=="number"?e+=Kd.apply(null,r):typeof r=="object"?e+=hn(r):e+=r,e+=" "}return e};let Lu=null,Tx=!0;const _z=function(t,e){Ae(!0,"Can't turn on custom loggers persistently."),Mc.logLevel=He.VERBOSE,Lu=Mc.log.bind(Mc)},Rn=function(...t){if(Tx===!0&&(Tx=!1,Lu===null&&fz.get("logging_enabled")===!0&&_z()),Lu){const e=Kd.apply(null,t);Lu(e)}},Gd=function(t){return function(...e){Rn(t,...e)}},ey=function(...t){const e="FIREBASE INTERNAL ERROR: "+Kd(...t);Mc.error(e)},$a=function(...t){const e=`FIREBASE FATAL ERROR: ${Kd(...t)}`;throw Mc.error(e),new Error(e)},ir=function(...t){const e="FIREBASE WARNING: "+Kd(...t);Mc.warn(e)},mz=function(){typeof window<"u"&&window.location&&window.location.protocol&&window.location.protocol.indexOf("https:")!==-1&&ir("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},sL=function(t){return typeof t=="number"&&(t!==t||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY)}
3414,gz=function(t){if(document.readyState==="complete")t();else{let e=!1;const n=function(){if(!document.body){setTimeout(n,Math.floor(10));return}e||(e=!0,t())};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{document.readyState==="complete"&&n()}),window.attachEvent("onload",n))}},il="[MIN_NAME]",ja="[MAX_NAME]",Ol=function(t,e){if(t===e)return 0;if(t===il||e===ja)return-1;if(e===il||t===ja)return 1;{const n=Ax(t),r=Ax(e);return n!==null?r!==null?n-r===0?t.length-e.length:n-r:-1:r!==null?1:t<e?-1:1}},yz=function(t,e){return t===e?0:t<e?-1:1},nu=function(t,e){if(e&&t in e)return e[t];throw new Error("Missing required key ("+t+") in object: "+hn(e))},GE=function(t){if(typeof t!="object"||t===null)return hn(t);const e=[];for(const r in t)e.push(r);e.sort();let n="{";for(let r=0;r<e.length;r++)r!==0&&(n+=","),n+=hn(e[r]),n+=":",n+=GE(t[e[r]]);return n+="}",n},aL=function(t,e){const n=t.length;if(n<=e)return[t];const r=[];for(let o=0;o<n;o+=e)o+e>n?r.push(t.substring(o,n)):r.push(t.substring(o,o+e));return r};function yr(t,e){for(const n in t)t.hasOwnProperty(n)&&e(n,t[n])}const cL=function(t){Ae(!sL(t),"Invalid JSON number");const e=11,n=52,r=(1<<e-1)-1;let o,i,s,a,c;t===0?(i=0,s=0,o=1/t===-1/0?1:0):(o=t<0,t=Math.abs(t),t>=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(t)/Math.LN2),r),i=a+r,s=Math.round(t*Math.pow(2,n-a)-Math.pow(2,n))):(i=0,s=Math.round(t/Math.pow(2,1-r-n))));const l=[];for(c=n;c;c-=1)l.push(s%2?1:0),s=Math.floor(s/2);for(c=e;c;c-=1)l.push(i%2?1:0),i=Math.floor(i/2);l.push(o?1:0),l.reverse();const u=l.join("");let d="";for(c=0;c<64;c+=8){let f=parseInt(u.substr(c,8),2).toString(16);f.length===1&&(f="0"+f),d=d+f}return d.toLowerCase()},vz=function(){return!!(typeof window=="object"&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},Ez=function(){return typeof Windows=="object"&&typeof Windows.UI=="object"},bz=new RegExp("^-?(0*)\\d{1,10}$"),wz=-2147483648,Tz=2147483647,Ax=function(t){if(bz.test(t)){const e=Number(t);if(e>=wz&&e<=Tz)return e}return null},Qd=function(t){try{t()}catch(e){setTimeout(()=>{const n=e.stack||"";throw ir("Exception was thrown by user callback.",n),e},Math.floor(0))}},Az=function(){return(typeof window=="object"&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},ku=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};/** 3415 * @license 3416 * Copyright 2021 Google LLC 3417 * 3418 * Licensed under the Apache License, Version 2.0 (the "License"); 3419 * you may not use this file except in compliance with the License. 3420 * You may obtain a copy of the License at 3421 * 3422 * http://www.apache.org/licenses/LICENSE-2.0 3423 * 3424 * Unless required by applicable law or agreed to in writing, software 3425 * distributed under the License is distributed on an "AS IS" BASIS, 3426 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3427 * See the License for the specific language governing permissions and 3428 * limitations under the License. 3429 */class xz{constructor(e,n){this.appName_=e,this.appCheckProvider=n,this.appCheck=n?.getImmediate({optional:!0}),this.appCheck||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(){ir(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}/** 3430 * @license 3431 * Copyright 2017 Google LLC 3432 * 3433 * Licensed under the Apache License, Version 2.0 (the "License"); 3434 * you may not use this file except in compliance with the License. 3435 * You may obtain a copy of the License at 3436 * 3437 * http://www.apache.org/licenses/LICENSE-2.0 3438 * 3439 * Unless required by applicable law or agreed to in writing, softw
3439are 3440 * distributed under the License is distributed on an "AS IS" BASIS, 3441 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3442 * See the License for the specific language governing permissions and 3443 * limitations under the License. 3444 */class Iz{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(o=>this.auth_=o)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(n=>n&&n.code==="auth/token-not-initialized"?(Rn("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/.',ir(e)}}/** 3445 * @license 3446 * Copyright 2017 Google LLC 3447 * 3448 * Licensed under the Apache License, Version 2.0 (the "License"); 3449 * you may not use this file except in compliance with the License. 3450 * You may obtain a copy of the License at 3451 * 3452 * http://www.apache.org/licenses/LICENSE-2.0 3453 * 3454 * Unless required by applicable law or agreed to in writing, software 3455 * distributed under the License is distributed on an "AS IS" BASIS, 3456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3457 * See the License for the specific language governing permissions and 3458 * limitations under the License. 3459 */const QE="5",lL="v",uL="s",dL="r",hL="f",fL=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,pL="ls",_L="p",ty="ac",mL="websocket",gL="long_polling";/** 3460 * @license 3461 * Copyright 2017 Google LLC 3462 * 3463 * Licensed under the Apache License, Version 2.0 (the "License"); 3464 * you may not use this file except in compliance with the License. 3465 * You may obtain a copy of the License at 3466 * 3467 * http://www.apache.org/licenses/LICENSE-2.0 3468 * 3469 * Unless required by applicable law or agreed to in writing, software 3470 * distributed under the License is distributed on an "AS IS" BASIS, 3471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3472 * See the License for the specific language governing permissions and 3473 * limitations under the License. 3474 */class Rz{constructor(e,n,r,o,i=!1,s="",a=!1,c=!1){this.secure=n,this.namespace=r,this.webSocketOnly=o,this.nodeAdmin=i,this.persistenceKey=s,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=c,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=ba.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()&&ba.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 Cz(t){return t.host!==t.internalHost||t.isCustomHost()||t.includeNamespaceInQueryParams}function yL(t,e,n){Ae(typeof e=="string","typeof type must == string"),Ae(typeof n=="object","typeof params must == object");let r;if(e===mL)r=(t.secure?"wss://":"ws://")+t.internalHost+"/.ws?";else if(e===gL)r=(t.secure?"https://":"http://")+t.internalHost+"/.lp?";else throw new Error("Unknown connection type: "+e);Cz(t)&&(n.ns=t.namespace);const o=[];return yr(n,(i,s)=>{o.push(i+"="+s)}),r+o.join("&")}/** 3475 * @license 3476 * Copyright 2017 Google LLC 3477 * 3478 * Licensed under the Apache License, Version 2.0 (the "License");
3479 * you may not use this file except in compliance with the License. 3480 * You may obtain a copy of the License at 3481 * 3482 * http://www.apache.org/licenses/LICENSE-2.0 3483 * 3484 * Unless required by applicable law or agreed to in writing, software 3485 * distributed under the License is distributed on an "AS IS" BASIS, 3486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3487 * See the License for the specific language governing permissions and 3488 * limitations under the License. 3489 */class Pz{constructor(){this.counters_={}}incrementCounter(e,n=1){ls(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=n}get(){return S8(this.counters_)}}/** 3490 * @license 3491 * Copyright 2017 Google LLC 3492 * 3493 * Licensed under the Apache License, Version 2.0 (the "License"); 3494 * you may not use this file except in compliance with the License. 3495 * You may obtain a copy of the License at 3496 * 3497 * http://www.apache.org/licenses/LICENSE-2.0 3498 * 3499 * Unless required by applicable law or agreed to in writing, software 3500 * distributed under the License is distributed on an "AS IS" BASIS, 3501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3502 * See the License for the specific language governing permissions and 3503 * limitations under the License. 3504 */const T0={},A0={};function YE(t){const e=t.toString();return T0[e]||(T0[e]=new Pz),T0[e]}function Sz(t,e){const n=t.toString();return A0[n]||(A0[n]=e()),A0[n]}/** 3505 * @license 3506 * Copyright 2017 Google LLC 3507 * 3508 * Licensed under the Apache License, Version 2.0 (the "License"); 3509 * you may not use this file except in compliance with the License. 3510 * You may obtain a copy of the License at 3511 * 3512 * http://www.apache.org/licenses/LICENSE-2.0 3513 * 3514 * Unless required by applicable law or agreed to in writing, software 3515 * distributed under the License is distributed on an "AS IS" BASIS, 3516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3517 * See the License for the specific language governing permissions and 3518 * limitations under the License. 3519 */class Oz{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.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,n){for(this.pendingResponses[e]=n;this.pendingResponses[this.currentResponseNum];){const r=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let o=0;o<r.length;++o)r[o]&&Qd(()=>{this.onMessage_(r[o])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}/** 3520 * @license 3521 * Copyright 2017 Google LLC 3522 * 3523 * Licensed under the Apache License, Version 2.0 (the "License"); 3524 * you may not use this file except in compliance with the License. 3525 * You may obtain a copy of the License at 3526 * 3527 * http://www.apache.org/licenses/LICENSE-2.0 3528 * 3529 * Unless required by applicable law or agreed to in writing, software 3530 * distributed under the License is distributed on an "AS IS" BASIS, 3531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3532 * See the License for the specific language governing permissions and 3533 * limitations under the License. 3534 */const xx="start",Dz="close",Lz="pLPCommand",kz="pRTLPCB",vL="id",EL="pw",bL="ser",Nz="cb",Vz="seg",Fz="ts",Mz="d",Bz="dframe",wL=1870,TL=30,Uz=wL-TL,$z=25e3,jz=3e4;class Rc{constructor(e,n,r,o,i,s,a){this.connId=e,this.repoInfo=n,this.applicationId=r,this.appCheckToken=o,this.authToken=i,this.transportSessionId=s,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Gd(e),this.stats_=YE(n),this.urlFn=c=>(this.appCheckToken&&(c[ty]=this.appCheckToken),yL(n,gL,c))}open(e,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new Oz(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(jz)),gz(()=>{if(this.isClosed_)return;this.scriptTagHolder=new XE((...i)=>{const[s,a,c,l,u]=i;if(this.incrementIncomingBytes_(i),!!this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,s===xx)this.id=a,this.password=c;else if(s===Dz)a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_();else throw new Error("Unrecognized command received: "+s)},(...i)=>{const[s,a]=i;this.incrementIncomingBytes_(i),this.myPacketOrderer.handleResponse(s,a)},()=>{this.onClosed_()},this.urlFn);const r={};
3534r[xx]="t",r[bL]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(r[Nz]=this.scriptTagHolder.uniqueCallbackIdentifier),r[lL]=QE,this.transportSessionId&&(r[uL]=this.transportSessionId),this.lastSessionId&&(r[pL]=this.lastSessionId),this.applicationId&&(r[_L]=this.applicationId),this.appCheckToken&&(r[ty]=this.appCheckToken),typeof location<"u"&&location.hostname&&fL.test(location.hostname)&&(r[dL]=hL);const o=this.urlFn(r);this.log_("Connecting via long-poll to "+o),this.scriptTagHolder.addTag(o,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Rc.forceAllow_=!0}static forceDisallow(){Rc.forceDisallow_=!0}static isAvailable(){return Rc.forceAllow_?!0:!Rc.forceDisallow_&&typeof document<"u"&&document.createElement!=null&&!vz()&&!Ez()}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=hn(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=tS(n),o=aL(r,Uz);for(let i=0;i<o.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,o.length,o[i]),this.curSegmentNum++}addDisconnectPingFrame(e,n){this.myDisconnFrame=document.createElement("iframe");const r={};r[Bz]="t",r[vL]=e,r[EL]=n,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){const n=hn(e).length;this.bytesReceived+=n,this.stats_.incrementCounter("bytes_received",n)}}class XE{constructor(e,n,r,o){this.onDisconnect=r,this.urlFn=o,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(Math.random()*1e8),this.sendNewPolls=!0;{this.uniqueCallbackIdentifier=pz(),window[Lz+this.uniqueCallbackIdentifier]=e,window[kz+this.uniqueCallbackIdentifier]=n,this.myIFrame=XE.createIFrame_();let i="";this.myIFrame.src&&this.myIFrame.src.substr(0,11)==="javascript:"&&(i='<script>document.domain="'+document.domain+'";<\/script>');const s="<html><body>"+i+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(a){Rn("frame writing exception"),a.stack&&Rn(a.stack),Rn(a)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",document.body){document.body.appendChild(e);try{e.contentWindow.document||Rn("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[vL]=this.myID,e[EL]=this.myPW,e[bL]=this.currentSerial;let n=this.urlFn(e),r="",o=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+TL+r.length<=wL;){const s=this.pendingSegs.shift();r=r+"&"+Vz+o+"="+s.seg+"&"+Fz+o+"="+s.ts+"&"+Mz+o+"="+s.d,o++}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_()},o=setTimeout(r,Math.floor($z)),i=()=>{clearTimeout(o),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 o=r.readyState;(!o||o==="loaded"||o==="complete")&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{Rn("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}/** 3535 * @license 3536 * Copyright 2017 Google LLC 3537 * 3538 * Licensed under the Apache License, Version 2.0 (the "License");
3539 * you may not use this file except in compliance with the License. 3540 * You may obtain a copy of the License at 3541 * 3542 * http://www.apache.org/licenses/LICENSE-2.0 3543 * 3544 * Unless required by applicable law or agreed to in writing, software 3545 * distributed under the License is distributed on an "AS IS" BASIS, 3546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3547 * See the License for the specific language governing permissions and 3548 * limitations under the License. 3549 */const Hz=16384,zz=45e3;let Zp=null;typeof MozWebSocket<"u"?Zp=MozWebSocket:typeof WebSocket<"u"&&(Zp=WebSocket);class Rr{constructor(e,n,r,o,i,s,a){this.connId=e,this.applicationId=r,this.appCheckToken=o,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Gd(this.connId),this.stats_=YE(n),this.connURL=Rr.connectionURL_(n,s,a,o,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(e,n,r,o,i){const s={};return s[lL]=QE,typeof location<"u"&&location.hostname&&fL.test(location.hostname)&&(s[dL]=hL),n&&(s[uL]=n),r&&(s[pL]=r),o&&(s[ty]=o),i&&(s[_L]=i),yL(e,mL,s)}open(e,n){this.onDisconnect=n,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,ba.set("previous_websocket_failure",!0);try{let r;j8(),this.mySock=new Zp(this.connURL,[],r)}catch(r){this.log_("Error instantiating WebSocket.");const o=r.message||r.data;o&&this.log_(o),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 o=r.message||r.data;o&&this.log_(o),this.onClosed_()}}start(){}static forceDisallow(){Rr.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&&Zp!==null&&!Rr.forceDisallow_}static previouslyFailed(){return ba.isInMemoryStorage||ba.get("previous_websocket_failure")===!0}markConnectionHealthy(){ba.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=rd(n);this.onMessage(r)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(Ae(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=hn(e);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=aL(n,Hz);r.length>1&&this.sendString_(String(r.length));for(let o=0;o<r.length;o++)this.sendString_(r[o])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(zz))}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)}}}Rr.responsesRequiredToBeHealthy=2;Rr.healthyTimeout=3e4;/** 3550 * @license 3551 * Copyright 2017 Google LLC 3552 * 3553 * Licensed under the Apache License, Version 2.0 (the "License");
3554 * you may not use this file except in compliance with the License. 3555 * You may obtain a copy of the License at 3556 * 3557 * http://www.apache.org/licenses/LICENSE-2.0 3558 * 3559 * Unless required by applicable law or agreed to in writing, software 3560 * distributed under the License is distributed on an "AS IS" BASIS, 3561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3562 * See the License for the specific language governing permissions and 3563 * limitations under the License. 3564 */class gd{constructor(e){this.initTransports_(e)}static get ALL_TRANSPORTS(){return[Rc,Rr]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(e){const n=Rr&&Rr.isAvailable();let r=n&&!Rr.previouslyFailed();if(e.webSocketOnly&&(n||ir("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[Rr];else{const o=this.transports_=[];for(const i of gd.ALL_TRANSPORTS)i&&i.isAvailable()&&o.push(i);gd.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}}gd.globalTransportInitialized_=!1;/** 3565 * @license 3566 * Copyright 2017 Google LLC 3567 * 3568 * Licensed under the Apache License, Version 2.0 (the "License"); 3569 * you may not use this file except in compliance with the License. 3570 * You may obtain a copy of the License at 3571 * 3572 * http://www.apache.org/licenses/LICENSE-2.0 3573 * 3574 * Unless required by applicable law or agreed to in writing, software 3575 * distributed under the License is distributed on an "AS IS" BASIS, 3576 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3577 * See the License for the specific language governing permissions and 3578 * limitations under the License. 3579 */const qz=6e4,Wz=5e3,Kz=10*1024,Gz=100*1024,x0="t",Ix="d",Qz="s",Rx="r",Yz="e",Cx="o",Px="a",Sx="n",Ox="p",Xz="h";class Jz{constructor(e,n,r,o,i,s,a,c,l,u){this.id=e,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=o,this.authToken_=i,this.onMessage_=s,this.onReady_=a,this.onDisconnect_=c,this.onKill_=l,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Gd("c:"+this.id+":"),this.transportManager_=new gd(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 o=e.healthyTimeout||0;o>0&&(this.healthyTimeout_=ku(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>Gz?(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>Kz?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(o)))}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(x0 in e){const n=e[x0];n===Px?this.upgradeIfSecondaryHealthy_():n===Rx?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):n===Cx&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const n=nu("t",e),r=nu("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
vendor: 4,262 bytes, lines 3579-3589
3579:"c",d:{t:Ox,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:Px,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:Sx,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const n=nu("t",e),r=nu("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=nu(x0,e);if(Ix in e){const r=e[Ix];if(n===Xz){const o=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(o.h=this.repoInfo_.host),this.onHandshake_(o)}else if(n===Sx){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let o=0;o<this.pendingDataMessages.length;++o)this.onDataMessage_(this.pendingDataMessages[o]);this.pendingDataMessages=[],this.tryCleanupConnection()}else n===Qz?this.onConnectionShutdown_(r):n===Rx?this.onReset_(r):n===Yz?ey("Server Error: "+r):n===Cx?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):ey("Unknown control packet command: "+n)}}onHandshake_(e){const n=e.ts,r=e.v,o=e.h;this.sessionId=e.s,this.repoInfo_.host=o,this.state_===0&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,n),QE!==r&&ir("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),ku(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(qz))}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):ku(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(Wz))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:Ox,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()&&(ba.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)}}/** 3580 * @license 3581 * Copyright 2017 Google LLC 3582 * 3583 * Licensed under the Apache License, Version 2.0 (the "License"); 3584 * you may not use this file except in compliance with the License. 3585 * You may obtain a copy of the License at 3586 * 3587 * http://www.apache.org/licenses/LICENSE-2.0 3588 * 3589 * Unless required by applicable law or agreed to in writing, softw
3589are 3590 * distributed under the License is distributed on an "AS IS" BASIS, 3591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3592 * See the License for the specific language governing permissions and 3593 * limitations under the License. 3594 */class AL{put(e,n,r,o){}merge(e,n,r,o){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,n,r){}onDisconnectMerge(e,n,r){}onDisconnectCancel(e,n){}reportStats(e){}}/** 3595 * @license 3596 * Copyright 2017 Google LLC 3597 * 3598 * Licensed under the Apache License, Version 2.0 (the "License"); 3599 * you may not use this file except in compliance with the License. 3600 * You may obtain a copy of the License at 3601 * 3602 * http://www.apache.org/licenses/LICENSE-2.0 3603 * 3604 * Unless required by applicable law or agreed to in writing, software 3605 * distributed under the License is distributed on an "AS IS" BASIS, 3606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3607 * See the License for the specific language governing permissions and 3608 * limitations under the License. 3609 */class xL{constructor(e){this.allowedEvents_=e,this.listeners_={},Ae(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...n){if(Array.isArray(this.listeners_[e])){const r=[...this.listeners_[e]];for(let o=0;o<r.length;o++)r[o].callback.apply(r[o].context,n)}}on(e,n,r){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:n,context:r});const o=this.getInitialEvent(e);o&&n.apply(r,o)}off(e,n,r){this.validateEventType_(e);const o=this.listeners_[e]||[];for(let i=0;i<o.length;i++)if(o[i].callback===n&&(!r||r===o[i].context)){o.splice(i,1);return}}validateEventType_(e){Ae(this.allowedEvents_.find(n=>n===e),"Unknown event: "+e)}}/** 3610 * @license 3611 * Copyright 2017 Google LLC 3612 * 3613 * Licensed under the Apache License, Version 2.0 (the "License"); 3614 * you may not use this file except in compliance with the License. 3615 * You may obtain a copy of the License at 3616 * 3617 * http://www.apache.org/licenses/LICENSE-2.0 3618 * 3619 * Unless required by applicable law or agreed to in writing, software 3620 * distributed under the License is distributed on an "AS IS" BASIS, 3621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3622 * See the License for the specific language governing permissions and 3623 * limitations under the License. 3624 */class e_ extends xL{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!Bv()&&(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 e_}getInitialEvent(e){return Ae(e==="online","Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}/** 3625 * @license 3626 * Copyright 2017 Google LLC 3627 * 3628 * Licensed under the Apache License, Version 2.0 (the "License"); 3629 * you may not use this file except in compliance with the License. 3630 * You may obtain a copy of the License at 3631 * 3632 * http://www.apache.org/licenses/LICENSE-2.0 3633 * 3634 * Unless required by applicable law or agreed to in writing, software 3635 * distributed under the License is distributed on an "AS IS" BASIS, 3636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3637 * See the License for the specific language governing permissions and 3638 * limitations under the License. 3639 */const Dx=32,Lx=768;class Ct{constructor(e,n){if(n===void 0){this.pieces_=e.split("/");let r=0;for(let o=0;o<this.pieces_.length;o++)this.pieces_[o].length>0&&(this.pieces_[r]=this.pieces_[o],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=n}toString(){let e="";for(let n=this.pieceNum_;n<this.pieces_.length;n++)this.pieces_[n]!==""&&(e+="/"+this.pieces_[n]);return e||"/"}}function pt(){return new Ct("")}function Qe(t){return t.pieceNum_>=t.pieces_.length?null:t.pieces_[t.pieceNum_]}function Gs(t){return t.pieces_.length-t.pieceNum_}function xt(t){let e=t.pieceNum_;return e<t.pieces_.length&&e++,new Ct(t.pieces_,e)}function IL(t){return t.pieceNum_<t.pieces_.length?t.pieces_[t.pieces_.length-1]:null}function Zz(t){let e="";for(let n=t.pieceNum_;n<t.pieces_.length;n++)t.pieces_[n]!==""&&(e+="/"+encodeURIComponent(String(t.pieces_[n])));return e||"/"}function RL(t,e=0){return t.pieces_.slice(t.pieceNum_+e)}function CL(t){if(t.pieceNum_>=t.pieces_.length)return null;const e=[];for(let n=t.pieceNum_;n<t.pieces_.length-1;n++)e.push(t.pieces_[n]);return new Ct(e,0)}function nn(t,e){const n=[];for(let r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);if(e instanceof Ct)for(let r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);else{const r=e.split("/");for(let o=0;o<r.length;o++)r[o].length>0&&n.push(r[o])}return new Ct(n,0)}function We(t){return t.pieceNum_>=t.pieces_.length}function dr(t,e){const n=Qe(t),r=Qe(e);if(n===null)return e;if(n===r)return dr(xt(t),xt(e));
vendor: 11,901 bytes, lines 3639-3670
3639throw new Error("INTERNAL ERROR: innerPath ("+e+") is not within outerPath ("+t+")")}function PL(t,e){if(Gs(t)!==Gs(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 Or(t,e){let n=t.pieceNum_,r=e.pieceNum_;if(Gs(t)>Gs(e))return!1;for(;n<t.pieces_.length;){if(t.pieces_[n]!==e.pieces_[r])return!1;++n,++r}return!0}class eq{constructor(e,n){this.errorPrefix_=n,this.parts_=RL(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let r=0;r<this.parts_.length;r++)this.byteLength_+=j_(this.parts_[r]);SL(this)}}function tq(t,e){t.parts_.length>0&&(t.byteLength_+=1),t.parts_.push(e),t.byteLength_+=j_(e),SL(t)}function nq(t){const e=t.parts_.pop();t.byteLength_-=j_(e),t.parts_.length>0&&(t.byteLength_-=1)}function SL(t){if(t.byteLength_>Lx)throw new Error(t.errorPrefix_+"has a key path longer than "+Lx+" bytes ("+t.byteLength_+").");if(t.parts_.length>Dx)throw new Error(t.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+Dx+") or object contains a cycle "+_a(t))}function _a(t){return t.parts_.length===0?"":"in property '"+t.parts_.join(".")+"'"}/** 3640 * @license 3641 * Copyright 2017 Google LLC 3642 * 3643 * Licensed under the Apache License, Version 2.0 (the "License"); 3644 * you may not use this file except in compliance with the License. 3645 * You may obtain a copy of the License at 3646 * 3647 * http://www.apache.org/licenses/LICENSE-2.0 3648 * 3649 * Unless required by applicable law or agreed to in writing, software 3650 * distributed under the License is distributed on an "AS IS" BASIS, 3651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3652 * See the License for the specific language governing permissions and 3653 * limitations under the License. 3654 */class JE extends xL{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 JE}getInitialEvent(e){return Ae(e==="visible","Unknown event type: "+e),[this.visible_]}}/** 3655 * @license 3656 * Copyright 2017 Google LLC 3657 * 3658 * Licensed under the Apache License, Version 2.0 (the "License"); 3659 * you may not use this file except in compliance with the License. 3660 * You may obtain a copy of the License at 3661 * 3662 * http://www.apache.org/licenses/LICENSE-2.0 3663 * 3664 * Unless required by applicable law or agreed to in writing, software 3665 * distributed under the License is distributed on an "AS IS" BASIS, 3666 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3667 * See the License for the specific language governing permissions and 3668 * limitations under the License. 3669 */const ru=1e3,rq=300*1e3,kx=30*1e3,oq=1.3,iq=3e4,sq="server_kill",Nx=3;class Qi extends AL{constructor(e,n,r,o,i,s,a,c){if(super(),this.repoInfo_=e,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=o,this.onServerInfoUpdate_=i,this.authTokenProvider_=s,this.appCheckTokenProvider_=a,this.authOverride_=c,this.id=Qi.nextPersistentConnectionId_++,this.log_=Gd("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_=ru,this.maxReconnectDelay_=rq,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,c)throw new Error("Auth override specified in options, but not supported on non Node.js platforms");JE.getInstance().on("visible",this.onVisible_,this),e.host.indexOf("fblocal")===-1&&e_.getInstance().on("online",this.onOnline_,this)}sendRequest(e,n,r){const o=++this.requestNumber_,i={r:o,a:e,b:n};this.log_(hn(i)),Ae(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),r&&(this.requestCBHash_[o]=r)}get(e){this.initConnection_();const n=new nd,o={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:s=>{const a=s.d;s.s==="ok"?n.resolve(a):n.reject(a)}};this.outstandingGets_.push(o),this.outstandingGetCount_++;const i=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(i),n.promise}listen(e,n,r,o){this.initConnection_();const i=e._queryIdentifier,s=e._path.toString();this.log_("Listen called for "+s+" "+i),this.listens.has(s)||this.listens.set(s,new Map),Ae(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Ae(!this.listens.get(s).has(i),"listen() called twice for same path/queryId.");const a={onComplete:o,hashFn:n,query:e,tag:r};this.listens.get(s).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(),o=n._queryIdentifier;this.log_("Listen on "+r+" for "+o);const i={p:r},s="q";e.tag&&(i.q=n._queryObject,i.t=e.tag),i.h=e.hashFn(),this.sendRequest(s,i,a=>{const c=a.d,l=a.s;Qi.warnOnListenWarnings_(c,n),(this.listens.get(r)&&this.listens.get(r).get(o))===e&&(this.log_("listen response",a),l!=="ok"&&this.removeListen_(r,o),e.onComplete&&e.onComplete(l,c))})}static warnOnListenWarnings_(e,n){if(e&&typeof e=="object"&&ls(e,"w")){const r=Qc(e,"w");if(Array.isArray(r)&&~r.indexOf("no_index")){const o='".indexOn": "'+n._queryParams.getIndex().toString()+'"',i=n._path.toString();ir(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${o} 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||Q8(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=kx)}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=G8(e)?"auth":"gauth",r={cred:e};this.authOverride_===null?r.noauth=!0:typeof this.authOverride_=="object"&&(r.authvar=this.authOverride_),this.sendRequest(n,r,o=>{const i=o.s,s=o.d||"error";this.authToken_===e&&(i==="ok"?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(i,s))})}}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(),o=e._queryIdentifier;this.log_("Unlisten called for "+r+" "+o),Ae(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(r,o)&&this.connected_&&this.sendUnlisten_(r,o,e._queryObject,n)}sendUnlisten_(e,n,r,o){this.log_("Unlisten on "+e+" for "+n);const i={p:e},s="n";o&&(i.q=r,i.t=o),this.sendRequest(s,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,o){const i={p:n,d:r};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,s=>{o&&setTimeout(()=>{o(s.s,s.d)},Math.floor(0))})}put(e,n,r,o){this.putInternal("p",e,n,r,o)}merge(e,n,r,o){this.putInternal("m",e,n,r,o)}putInternal(e,n,r,o,i){this.initConnection_();const s={p:n,d:r};i!==void 0&&(s.h=i),this.outstandingPuts_.push({action:e,request:s,onComplete:o}),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,o=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_=[]),o&&o(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: "+hn(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):ey("Unrecognized action received from server: "+hn(e)+` 3670Are 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){Ae(!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_=ru,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=ru,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_>iq&&(this.reconnectDelay_=ru),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);
3670n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*oq)}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),o=this.id+":"+Qi.nextConnectionId_++,i=this.lastSessionId;let s=!1,a=null;const c=function(){a?a.close():(s=!0,r())},l=function(d){Ae(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(d)};this.realtime_={close:c,sendRequest:l};const u=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[d,f]=await Promise.all([this.authTokenProvider_.getToken(u),this.appCheckTokenProvider_.getToken(u)]);s?Rn("getToken() completed but was canceled"):(Rn("getToken() completed. Creating connection."),this.authToken_=d&&d.accessToken,this.appCheckToken_=f&&f.token,a=new Jz(o,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,n,r,_=>{ir(_+" ("+this.repoInfo_.toString()+")"),this.interrupt(sq)},i))}catch(d){this.log_("Failed to get token: "+d),s||(this.repoInfo_.nodeAdmin&&ir(d),c())}}}interrupt(e){Rn("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){Rn("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Eg(this.interruptReasons_)&&(this.reconnectDelay_=ru,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const n=e-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:n})}cancelSentTransactions_(){for(let e=0;e<this.outstandingPuts_.length;e++){const n=this.outstandingPuts_[e];n&&"h"in n.request&&n.queued&&(n.onComplete&&n.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}this.outstandingPutCount_===0&&(this.outstandingPuts_=[])}onListenRevoked_(e,n){let r;n?r=n.map(i=>GE(i)).join("$"):r="default";const o=this.removeListen_(e,r);o&&o.onComplete&&o.onComplete("permission_denied")}removeListen_(e,n){const r=new Ct(e).toString();let o;if(this.listens.has(r)){const i=this.listens.get(r);o=i.get(n),i.delete(n),i.size===0&&this.listens.delete(r)}else o=void 0;return o}onAuthRevoked_(e,n){Rn("Auth token revoked: "+e+"/"+n),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(e==="invalid_token"||e==="permission_denied")&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=Nx&&(this.reconnectDelay_=kx,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,n){Rn("App check token revoked: "+e+"/"+n),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(e==="invalid_token"||e==="permission_denied")&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=Nx&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace(` 3671`,` 3672FIREBASE: `))}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;e<this.outstandingPuts_.length;e++)this.outstandingPuts_[e]&&this.sendPut_(e);for(;this.onDisconnectRequestQueue_.length;){const e=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(e.action,e.pathString,e.data,e.onComplete)}for(let e=0;e<this.outstandingGets_.length;e++)this.outstandingGets_[e]&&this.sendGet_(e)}sendConnectStats_(){const e={};let n="js";e["sdk."+n+"."+rL.replace(/\./g,"-")]=1,Bv()?e["framework.cordova"]=1:sS()&&(e["framework.reactnative"]=1),this.reportStats(e)}shouldReconnect_(){const e=e_.getInstance().currentlyOnline();return Eg(this.interruptReasons_)&&e}}Qi.nextPersistentConnectionId_=0;Qi.nextConnectionId_=0;/** 3673 * @license 3674 * Copyright 2017 Google LLC 3675 * 3676 * Licensed under the Apache License, Version 2.0 (the "License");
3677 * you may not use this file except in compliance with the License. 3678 * You may obtain a copy of the License at 3679 * 3680 * http://www.apache.org/licenses/LICENSE-2.0 3681 * 3682 * Unless required by applicable law or agreed to in writing, software 3683 * distributed under the License is distributed on an "AS IS" BASIS, 3684 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3685 * See the License for the specific language governing permissions and 3686 * limitations under the License. 3687 */class Ye{constructor(e,n){this.name=e,this.node=n}static Wrap(e,n){return new Ye(e,n)}}/** 3688 * @license 3689 * Copyright 2017 Google LLC 3690 * 3691 * Licensed under the Apache License, Version 2.0 (the "License"); 3692 * you may not use this file except in compliance with the License. 3693 * You may obtain a copy of the License at 3694 * 3695 * http://www.apache.org/licenses/LICENSE-2.0 3696 * 3697 * Unless required by applicable law or agreed to in writing, software 3698 * distributed under the License is distributed on an "AS IS" BASIS, 3699 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3700 * See the License for the specific language governing permissions and 3701 * limitations under the License. 3702 */class am{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,n){const r=new Ye(il,e),o=new Ye(il,n);return this.compare(r,o)!==0}minPost(){return Ye.MIN}}/** 3703 * @license 3704 * Copyright 2017 Google LLC 3705 * 3706 * Licensed under the Apache License, Version 2.0 (the "License"); 3707 * you may not use this file except in compliance with the License. 3708 * You may obtain a copy of the License at 3709 * 3710 * http://www.apache.org/licenses/LICENSE-2.0 3711 * 3712 * Unless required by applicable law or agreed to in writing, software 3713 * distributed under the License is distributed on an "AS IS" BASIS, 3714 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3715 * See the License for the specific language governing permissions and 3716 * limitations under the License. 3717 */let zh;class OL extends am{static get __EMPTY_NODE(){return zh}static set __EMPTY_NODE(e){zh=e}compare(e,n){return Ol(e.name,n.name)}isDefinedOn(e){throw El("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(e,n){return!1}minPost(){return Ye.MIN}maxPost(){return new Ye(ja,zh)}makePost(e,n){return Ae(typeof e=="string","KeyIndex indexValue must always be a string."),new Ye(e,zh)}toString(){return".key"}}const Bc=new OL;/** 3718 * @license 3719 * Copyright 2017 Google LLC 3720 * 3721 * Licensed under the Apache License, Version 2.0 (the "License"); 3722 * you may not use this file except in compliance with the License. 3723 * You may obtain a copy of the License at 3724 * 3725 * http://www.apache.org/licenses/LICENSE-2.0 3726 * 3727 * Unless required by applicable law or agreed to in writing, software 3728 * distributed under the License is distributed on an "AS IS" BASIS, 3729 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3730 * See the License for the specific language governing permissions and 3731 * limitations under the License. 3732 */class qh{constructor(e,n,r,o,i=null){this.isReverse_=o,this.resultGenerator_=i,this.nodeStack_=[];let s=1;for(;!e.isEmpty();)if(e=e,s=n?r(e.key,n):1,o&&(s*=-1),s<0)this.isReverse_?e=e.left:e=e.right;else if(s===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 en{constructor(e,n,r,o,i){this.key=e,this.value=n,this.color=r??en.RED,this.left=o??Kn.EMPTY_NODE,this.right=i??Kn.EMPTY_NODE}copy(e,n,r,o,i){return new en(e??this.key,n??this.value,r??this.color,o??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 o=this;const i=r(e,o.key);return i<0?o=o.copy(null,null,null,o.left.insert(e,n,r),null):i===0?o=o.copy(null,n,null,null,null):o=o.copy(null,null,null,null,o.right.insert(e,n,r)),o.fixUp_()}removeMin_(){if(this.left.isEmpty())return Kn.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,o;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 Kn.EMPTY_NODE;
vendor: 1,250 bytes, line 3732
3732o=r.right.min_(),r=r.copy(o.key,o.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,en.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,en.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+")");
3732if(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)}}en.RED=!0;en.BLACK=!1;class aq{copy(e,n,r,o,i){return this}insert(e,n,r){return new en(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 Kn{constructor(e,n=Kn.EMPTY_NODE){this.comparator_=e,this.root_=n}insert(e,n){return new Kn(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,en.BLACK,null,null))}remove(e){return new Kn(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,en.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_,o=null;for(;!r.isEmpty();)if(n=this.comparator_(e,r.key),n===0){if(r.left.isEmpty())return o?o.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}else n<0?r=r.left:n>0&&(o=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 qh(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,n){return new qh(this.root_,e,this.comparator_,!1,n)}getReverseIteratorFrom(e,n){return new qh(this.root_,e,this.comparator_,!0,n)}getReverseIterator(e){return new qh(this.root_,null,this.comparator_,!0,e)}}Kn.EMPTY_NODE=new aq;/** 3733 * @license 3734 * Copyright 2017 Google LLC 3735 * 3736 * Licensed under the Apache License, Version 2.0 (the "License"); 3737 * you may not use this file except in compliance with the License. 3738 * You may obtain a copy of the License at 3739 * 3740 * http://www.apache.org/licenses/LICENSE-2.0 3741 * 3742 * Unless required by applicable law or agreed to in writing, software 3743 * distributed under the License is distributed on an "AS IS" BASIS, 3744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3745 * See the License for the specific language governing permissions and 3746 * limitations under the License. 3747 */function cq(t,e){return Ol(t.name,e.name)}function ZE(t,e){return Ol(t,e)}/** 3748 * @license 3749 * Copyright 2017 Google LLC 3750 * 3751 * Licensed under the Apache License, Version 2.0 (the "License"); 3752 * you may not use this file except in compliance with the License. 3753 * You may obtain a copy of the License at 3754 * 3755 * http://www.apache.org/licenses/LICENSE-2.0 3756 * 3757 * Unless required by applicable law or agreed to in writing, software 3758 * distributed under the License is distributed on an "AS IS" BASIS, 3759 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3760 * See the License for the specific language governing permissions and 3761 * limitations under the License. 3762 */let ny;function lq(t){ny=t}const DL=function(t){return typeof t=="number"?"number:"+cL(t):"string:"+t},LL=function(t){if(t.isLeafNode()){const e=t.val();Ae(typeof e=="string"||typeof e=="number"||typeof e=="object"&&ls(e,".sv"),"Priority must be a string or number.")}else Ae(t===ny||t.isEmpty(),"priority of unexpected type.");Ae(t===ny||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};/** 3763 * @license 3764 * Copyright 2017 Google LLC 3765 * 3766 * Licensed under the Apache License, Version 2.0 (the "License"); 3767 * you may not use this file except in compliance with the License. 3768 * You may obtain a copy of the License at 3769 * 3770 * http://www.apache.org/licenses/LICENSE-2.0 3771 * 3772 * Unless required by applicable law or agreed to in writing, software 3773 * distributed under the License is distributed on an "AS IS" BASIS, 3774 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3775 * See the License for the specific language governing permissions and 3776 * limitations under the License. 3777 */let Vx;class Jt{constructor(e,n=Jt.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=n,this.lazyHash_=null,Ae(this.value_!==void 0&&this.value_!==null,"LeafNode shouldn't be created with null/undefined value."),LL(this.priorityNode_)}static set __childrenNodeConstructor(e){Vx=e}static get __childrenNodeConstructor(){return Vx}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new Jt(this.value_,e)}getImmediateChild(e){return e===".priority"?this.priorityNode_:Jt.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return We(e)?this:Qe(e)===".priority"?this.priorityNode_:Jt.__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:Jt.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)}updateChild(e,n){const r=Qe(e);return r===null?n:n.isEmpty()&&r!==".priority"?this:(Ae(r!==".priority"||Gs(e)===1,".priority must be the last token in a path"),this.updateImmediateChild(r,Jt.__childrenNodeConstructor.EMPTY_NODE.updateChild(xt(e),n)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,n){return!1}
3777val(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:"+DL(this.priorityNode_.val())+":");const n=typeof this.value_;e+=n+":",n==="number"?e+=cL(this.value_):e+=this.value_,this.lazyHash_=iL(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===Jt.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof Jt.__childrenNodeConstructor?-1:(Ae(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const n=typeof e.value_,r=typeof this.value_,o=Jt.VALUE_TYPE_ORDER.indexOf(n),i=Jt.VALUE_TYPE_ORDER.indexOf(r);return Ae(o>=0,"Unknown leaf type: "+n),Ae(i>=0,"Unknown leaf type: "+r),o===i?r==="object"?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:i-o}withIndex(){return this}isIndexed(){return!0}equals(e){if(e===this)return!0;if(e.isLeafNode()){const n=e;return this.value_===n.value_&&this.priorityNode_.equals(n.priorityNode_)}else return!1}}Jt.VALUE_TYPE_ORDER=["object","boolean","number","string"];/** 3778 * @license 3779 * Copyright 2017 Google LLC 3780 * 3781 * Licensed under the Apache License, Version 2.0 (the "License"); 3782 * you may not use this file except in compliance with the License. 3783 * You may obtain a copy of the License at 3784 * 3785 * http://www.apache.org/licenses/LICENSE-2.0 3786 * 3787 * Unless required by applicable law or agreed to in writing, software 3788 * distributed under the License is distributed on an "AS IS" BASIS, 3789 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3790 * See the License for the specific language governing permissions and 3791 * limitations under the License. 3792 */let kL,NL;function uq(t){kL=t}function dq(t){NL=t}class hq extends am{compare(e,n){const r=e.node.getPriority(),o=n.node.getPriority(),i=r.compareTo(o);return i===0?Ol(e.name,n.name):i}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,n){return!e.getPriority().equals(n.getPriority())}minPost(){return Ye.MIN}maxPost(){return new Ye(ja,new Jt("[PRIORITY-POST]",NL))}makePost(e,n){const r=kL(e);return new Ye(n,new Jt("[PRIORITY-POST]",r))}toString(){return".priority"}}const Dn=new hq;/** 3793 * @license 3794 * Copyright 2017 Google LLC 3795 * 3796 * Licensed under the Apache License, Version 2.0 (the "License"); 3797 * you may not use this file except in compliance with the License. 3798 * You may obtain a copy of the License at 3799 * 3800 * http://www.apache.org/licenses/LICENSE-2.0 3801 * 3802 * Unless required by applicable law or agreed to in writing, software 3803 * distributed under the License is distributed on an "AS IS" BASIS, 3804 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3805 * See the License for the specific language governing permissions and 3806 * limitations under the License. 3807 */const fq=Math.log(2);class pq{constructor(e){const n=i=>parseInt(Math.log(i)/fq,10),r=i=>parseInt(Array(i+1).join("1"),2);this.count=n(e+1),this.current_=this.count-1;const o=r(this.count);this.bits_=e+1&o}nextBitIsOne(){const e=!(this.bits_&1<<this.current_);return this.current_--,e}}const t_=function(t,e,n,r){t.sort(e);const o=function(c,l){const u=l-c;let d,f;if(u===0)return null;if(u===1)return d=t[c],f=n?n(d):d,new en(f,d.node,en.BLACK,null,null);{const _=parseInt(u/2,10)+c,m=o(c,_),y=o(_+1,l);return d=t[_],f=n?n(d):d,new en(f,d.node,en.BLACK,m,y)}},i=function(c){let l=null,u=null,d=t.length;const f=function(m,y){const v=d-m,T=d;d-=m;const w=o(v+1,T),g=t[v],E=n?n(g):g;_(new en(E,g.node,y,null,w))},_=function(m){l?(l.left=m,l=m):(u=m,l=m)};for(let m=0;m<c.count;++m){const y=c.nextBitIsOne(),v=Math.pow(2,c.count-(m+1));y?f(v,en.BLACK):(f(v,en.BLACK),f(v,en.RED))}return u},s=new pq(t.length),a=i(s);return new Kn(r||e,a)};/** 3808 * @license 3809 * Copyright 2017 Google LLC 3810 * 3811 * Licensed under the Apache License, Version 2.0 (the "License"); 3812 * you may not use this file except in compliance with the License. 3813 * You may obtain a copy of the License at 3814 * 3815 * http://www.apache.org/licenses/LICENSE-2.0 3816 * 3817 * Unless required by applicable law or agreed to in writing, softw
3817are 3818 * distributed under the License is distributed on an "AS IS" BASIS, 3819 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3820 * See the License for the specific language governing permissions and 3821 * limitations under the License. 3822 */let I0;const gc={};class ji{constructor(e,n){this.indexes_=e,this.indexSet_=n}static get Default(){return Ae(gc&&Dn,"ChildrenNode.ts has not been loaded"),I0=I0||new ji({".priority":gc},{".priority":Dn}),I0}get(e){const n=Qc(this.indexes_,e);if(!n)throw new Error("No index defined for "+e);return n instanceof Kn?n:null}hasIndex(e){return ls(this.indexSet_,e.toString())}addIndex(e,n){Ae(e!==Bc,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let o=!1;const i=n.getIterator(Ye.Wrap);let s=i.getNext();for(;s;)o=o||e.isDefinedOn(s.node),r.push(s),s=i.getNext();let a;o?a=t_(r,e.getCompare()):a=gc;const c=e.toString(),l=Object.assign({},this.indexSet_);l[c]=e;const u=Object.assign({},this.indexes_);return u[c]=a,new ji(u,l)}addToIndexes(e,n){const r=Dp(this.indexes_,(o,i)=>{const s=Qc(this.indexSet_,i);if(Ae(s,"Missing index implementation for "+i),o===gc)if(s.isDefinedOn(e.node)){const a=[],c=n.getIterator(Ye.Wrap);let l=c.getNext();for(;l;)l.name!==e.name&&a.push(l),l=c.getNext();return a.push(e),t_(a,s.getCompare())}else return gc;else{const a=n.get(e.name);let c=o;return a&&(c=c.remove(new Ye(e.name,a))),c.insert(e,e.node)}});return new ji(r,this.indexSet_)}removeFromIndexes(e,n){const r=Dp(this.indexes_,o=>{if(o===gc)return o;{const i=n.get(e.name);return i?o.remove(new Ye(e.name,i)):o}});return new ji(r,this.indexSet_)}}/** 3823 * @license 3824 * Copyright 2017 Google LLC 3825 * 3826 * Licensed under the Apache License, Version 2.0 (the "License"); 3827 * you may not use this file except in compliance with the License. 3828 * You may obtain a copy of the License at 3829 * 3830 * http://www.apache.org/licenses/LICENSE-2.0 3831 * 3832 * Unless required by applicable law or agreed to in writing, software 3833 * distributed under the License is distributed on an "AS IS" BASIS, 3834 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3835 * See the License for the specific language governing permissions and 3836 * limitations under the License. 3837 */let ou;class lt{constructor(e,n,r){this.children_=e,this.priorityNode_=n,this.indexMap_=r,this.lazyHash_=null,this.priorityNode_&&LL(this.priorityNode_),this.children_.isEmpty()&&Ae(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return ou||(ou=new lt(new Kn(ZE),null,ji.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||ou}updatePriority(e){return this.children_.isEmpty()?this:new lt(this.children_,e,this.indexMap_)}getImmediateChild(e){if(e===".priority")return this.getPriority();{const n=this.children_.get(e);return n===null?ou:n}}getChild(e){const n=Qe(e);return n===null?this:this.getImmediateChild(n).getChild(xt(e))}hasChild(e){return this.children_.get(e)!==null}updateImmediateChild(e,n){if(Ae(n,"We should always be passing snapshot nodes"),e===".priority")return this.updatePriority(n);{const r=new Ye(e,n);let o,i;n.isEmpty()?(o=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(r,this.children_)):(o=this.children_.insert(e,n),i=this.indexMap_.addToIndexes(r,this.children_));const s=o.isEmpty()?ou:this.priorityNode_;return new lt(o,s,i)}}updateChild(e,n){const r=Qe(e);if(r===null)return n;{Ae(Qe(e)!==".priority"||Gs(e)===1,".priority must be the last token in a path");const o=this.getImmediateChild(r).updateChild(xt(e),n);return this.updateImmediateChild(r,o)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const n={};let r=0,o=0,i=!0;if(this.forEachChild(Dn,(s,a)=>{n[s]=a.val(e),r++,i&<.INTEGER_REGEXP_.test(s)?o=Math.max(o,Number(s)):i=!1}),!e&&i&&o<2*r){const s=[];for(const a in n)s[a]=n[a];return s}else return e&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let e="";
3837this.getPriority().isEmpty()||(e+="priority:"+DL(this.getPriority().val())+":"),this.forEachChild(Dn,(n,r)=>{const o=r.hash();o!==""&&(e+=":"+n+":"+o)}),this.lazyHash_=e===""?"":iL(e)}return this.lazyHash_}getPredecessorChildName(e,n,r){const o=this.resolveIndex_(r);if(o){const i=o.getPredecessorKey(new Ye(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 Ye(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 Ye(n,this.children_.get(n)):null}forEachChild(e,n){const r=this.resolveIndex_(e);return r?r.inorderTraversal(o=>n(o.name,o.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,o=>o);{const o=this.children_.getIteratorFrom(e.name,Ye.Wrap);let i=o.peek();for(;i!=null&&n.compare(i,e)<0;)o.getNext(),i=o.peek();return o}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,n){const r=this.resolveIndex_(n);if(r)return r.getReverseIteratorFrom(e,o=>o);{const o=this.children_.getReverseIteratorFrom(e.name,Ye.Wrap);let i=o.peek();for(;i!=null&&n.compare(i,e)>0;)o.getNext(),i=o.peek();return o}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===Yd?-1:0}withIndex(e){if(e===Bc||this.indexMap_.hasIndex(e))return this;{const n=this.indexMap_.addIndex(e,this.children_);return new lt(this.children_,this.priorityNode_,n)}}isIndexed(e){return e===Bc||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(Dn),o=n.getIterator(Dn);let i=r.getNext(),s=o.getNext();for(;i&&s;){if(i.name!==s.name||!i.node.equals(s.node))return!1;i=r.getNext(),s=o.getNext()}return i===null&&s===null}else return!1;else return!1}}resolveIndex_(e){return e===Bc?null:this.indexMap_.get(e.toString())}}lt.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class _q extends lt{constructor(){super(new Kn(ZE),lt.EMPTY_NODE,ji.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return lt.EMPTY_NODE}isEmpty(){return!1}}const Yd=new _q;Object.defineProperties(Ye,{MIN:{value:new Ye(il,lt.EMPTY_NODE)},MAX:{value:new Ye(ja,Yd)}});OL.__EMPTY_NODE=lt.EMPTY_NODE;Jt.__childrenNodeConstructor=lt;lq(Yd);dq(Yd);/** 3838 * @license 3839 * Copyright 2017 Google LLC 3840 * 3841 * Licensed under the Apache License, Version 2.0 (the "License"); 3842 * you may not use this file except in compliance with the License. 3843 * You may obtain a copy of the License at 3844 * 3845 * http://www.apache.org/licenses/LICENSE-2.0 3846 * 3847 * Unless required by applicable law or agreed to in writing, software 3848 * distributed under the License is distributed on an "AS IS" BASIS, 3849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3850 * See the License for the specific language governing permissions and 3851 * limitations under the License. 3852 */const mq=!0;function Cn(t,e=null){if(t===null)return lt.EMPTY_NODE;if(typeof t=="object"&&".priority"in t&&(e=t[".priority"]),Ae(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 Jt(n,Cn(e))}if(!(t instanceof Array)&&mq){const n=[];let r=!1;if(yr(t,(s,a)=>{if(s.substring(0,1)!=="."){const c=Cn(a);c.isEmpty()||(r=r||!c.getPriority().isEmpty(),n.push(new Ye(s,c)))}}),n.length===0)return lt.EMPTY_NODE;const i=t_(n,cq,s=>s.name,ZE);if(r){const s=t_(n,Dn.getCompare());return new lt(i,Cn(e),new ji({".priority":s},{".priority":Dn}))}else return new lt(i,Cn(e),ji.Default)}else{let n=lt.EMPTY_NODE;return yr(t,(r,o)=>{if(ls(t,r)&&r.substring(0,1)!=="."){const i=Cn(o);(i.isLeafNode()||!i.isEmpty())&&(n=n.updateImmediateChild(r,i))}}),n.updatePriority(Cn(e))}}uq(Cn);/** 3853 * @license 3854 * Copyright 2017 Google LLC 3855 * 3856 * Licensed under the Apache License, Version 2.0 (the "License");
3857 * you may not use this file except in compliance with the License. 3858 * You may obtain a copy of the License at 3859 * 3860 * http://www.apache.org/licenses/LICENSE-2.0 3861 * 3862 * Unless required by applicable law or agreed to in writing, software 3863 * distributed under the License is distributed on an "AS IS" BASIS, 3864 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3865 * See the License for the specific language governing permissions and 3866 * limitations under the License. 3867 */class gq extends am{constructor(e){super(),this.indexPath_=e,Ae(!We(e)&&Qe(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),o=this.extractChild(n.node),i=r.compareTo(o);return i===0?Ol(e.name,n.name):i}makePost(e,n){const r=Cn(e),o=lt.EMPTY_NODE.updateChild(this.indexPath_,r);return new Ye(n,o)}maxPost(){const e=lt.EMPTY_NODE.updateChild(this.indexPath_,Yd);return new Ye(ja,e)}toString(){return RL(this.indexPath_,0).join("/")}}/** 3868 * @license 3869 * Copyright 2017 Google LLC 3870 * 3871 * Licensed under the Apache License, Version 2.0 (the "License"); 3872 * you may not use this file except in compliance with the License. 3873 * You may obtain a copy of the License at 3874 * 3875 * http://www.apache.org/licenses/LICENSE-2.0 3876 * 3877 * Unless required by applicable law or agreed to in writing, software 3878 * distributed under the License is distributed on an "AS IS" BASIS, 3879 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3880 * See the License for the specific language governing permissions and 3881 * limitations under the License. 3882 */class yq extends am{compare(e,n){const r=e.node.compareTo(n.node);return r===0?Ol(e.name,n.name):r}isDefinedOn(e){return!0}indexedValueChanged(e,n){return!e.equals(n)}
3882minPost(){return Ye.MIN}maxPost(){return Ye.MAX}makePost(e,n){const r=Cn(e);return new Ye(n,r)}toString(){return".value"}}const vq=new yq;/** 3883 * @license 3884 * Copyright 2017 Google LLC 3885 * 3886 * Licensed under the Apache License, Version 2.0 (the "License"); 3887 * you may not use this file except in compliance with the License. 3888 * You may obtain a copy of the License at 3889 * 3890 * http://www.apache.org/licenses/LICENSE-2.0 3891 * 3892 * Unless required by applicable law or agreed to in writing, software 3893 * distributed under the License is distributed on an "AS IS" BASIS, 3894 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3895 * See the License for the specific language governing permissions and 3896 * limitations under the License. 3897 */function Eq(t){return{type:"value",snapshotNode:t}}function bq(t,e){return{type:"child_added",snapshotNode:e,childName:t}}function wq(t,e){return{type:"child_removed",snapshotNode:e,childName:t}}function Fx(t,e,n){return{type:"child_changed",snapshotNode:e,childName:t,oldSnap:n}}function Tq(t,e){return{type:"child_moved",snapshotNode:e,childName:t}}/** 3898 * @license 3899 * Copyright 2017 Google LLC 3900 * 3901 * Licensed under the Apache License, Version 2.0 (the "License"); 3902 * you may not use this file except in compliance with the License. 3903 * You may obtain a copy of the License at 3904 * 3905 * http://www.apache.org/licenses/LICENSE-2.0 3906 * 3907 * Unless required by applicable law or agreed to in writing, software 3908 * distributed under the License is distributed on an "AS IS" BASIS, 3909 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3910 * See the License for the specific language governing permissions and 3911 * limitations under the License. 3912 */class eb{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_=Dn}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===""?this.startSet_:this.viewFrom_==="l"}getIndexStartValue(){return Ae(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return Ae(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:il}hasEnd(){return this.endSet_}getIndexEndValue(){return Ae(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return Ae(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:ja}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==""}getLimit(){return Ae(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_===Dn}copy(){const e=new eb;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 Mx(t){const e={};if(t.isDefault())return e;let n;if(t.index_===Dn?n="$priority":t.index_===vq?n="$value":t.index_===Bc?n="$key":(Ae(t.index_ instanceof gq,"Unrecognized index type!"),n=t.index_.toString()),e.orderBy=hn(n),t.startSet_){const r=t.startAfterSet_?"startAfter":"startAt";e[r]=hn(t.indexStartValue_),t.startNameSet_&&(e[r]+=","+hn(t.indexStartName_))}if(t.endSet_){const r=t.endBeforeSet_?"endBefore":"endAt";e[r]=hn(t.indexEndValue_),t.endNameSet_&&(e[r]+=","+hn(t.indexEndName_))}return t.limitSet_&&(t.isViewFromLeft()?e.limitToFirst=t.limit_:e.limitToLast=t.limit_),e}function Bx(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_!==Dn&&(e.i=t.index_.toString()),e}/** 3913 * @license 3914 * Copyright 2017 Google LLC 3915 * 3916 * Licensed under the Apache License, Version 2.0 (the "License");
3917 * you may not use this file except in compliance with the License. 3918 * You may obtain a copy of the License at 3919 * 3920 * http://www.apache.org/licenses/LICENSE-2.0 3921 * 3922 * Unless required by applicable law or agreed to in writing, software 3923 * distributed under the License is distributed on an "AS IS" BASIS, 3924 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3925 * See the License for the specific language governing permissions and 3926 * limitations under the License. 3927 */class n_ extends AL{constructor(e,n,r,o){super(),this.repoInfo_=e,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=o,this.log_=Gd("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,n){return n!==void 0?"tag$"+n:(Ae(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,n,r,o){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const s=n_.getListenId_(e,r),a={};this.listens_[s]=a;const c=Mx(e._queryParams);this.restRequest_(i+".json",c,(l,u)=>{let d=u;if(l===404&&(d=null,l=null),l===null&&this.onDataUpdate_(i,d,!1,r),Qc(this.listens_,s)===a){let f;l?l===401?f="permission_denied":f="rest_error:"+l:f="ok",o(f,null)}})}unlisten(e,n){const r=n_.getListenId_(e,n);delete this.listens_[r]}get(e){const n=Mx(e._queryParams),r=e._path.toString(),o=new nd;return this.restRequest_(r+".json",n,(i,s)=>{let a=s;i===404&&(a=null,i=null),i===null?(this.onDataUpdate_(r,a,!1,null),o.resolve(a)):o.reject(new Error(a))}),o.promise}refreshAuthToken(e){}restRequest_(e,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([o,i])=>{o&&o.accessToken&&(n.auth=o.accessToken),i&&i.token&&(n.ac=i.token);const s=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+wl(n);this.log_("Sending REST request for "+s);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&a.readyState===4){this.log_("REST Response for "+s+" received. status:",a.status,"response:",a.responseText);let c=null;if(a.status>=200&&a.status<300){try{c=rd(a.responseText)}catch{ir("Failed to parse JSON response for "+s+": "+a.responseText)}r(null,c)}else a.status!==401&&a.status!==404&&ir("Got unsuccessful REST response for "+s+" Status: "+a.status),r(a.status);r=null}},a.open("GET",s,!0),a.send()})}}/** 3928 * @license 3929 * Copyright 2017 Google LLC 3930 * 3931 * Licensed under the Apache License, Version 2.0 (the "License"); 3932 * you may not use this file except in compliance with the License. 3933 * You may obtain a copy of the License at 3934 * 3935 * http://www.apache.org/licenses/LICENSE-2.0 3936 * 3937 * Unless required by applicable law or agreed to in writing, software 3938 * distributed under the License is distributed on an "AS IS" BASIS, 3939 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3940 * See the License for the specific language governing permissions and 3941 * limitations under the License. 3942 */class Aq{constructor(){this.rootNode_=lt.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,n){this.rootNode_=this.rootNode_.updateChild(e,n)}}/** 3943 * @license 3944 * Copyright 2017 Google LLC 3945 * 3946 * Licensed under the Apache License, Version 2.0 (the "License"); 3947 * you may not use this file except in compliance with the License. 3948 * You may obtain a copy of the License at 3949 * 3950 * http://www.apache.org/licenses/LICENSE-2.0 3951 * 3952 * Unless required by applicable law or agreed to in writing, software 3953 * distributed under the License is distributed on an "AS IS" BASIS, 3954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3955 * See the License for the specific language governing permissions and 3956 * limitations under the License. 3957 */function r_(){return{value:null,children:new Map}}function VL(t,e,n){if(We(e))t.value=n,t.children.clear();else if(t.value!==null)t.value=t.value.updateChild(e,n);else{const r=Qe(e);t.children.has(r)||t.children.set(r,r_());const o=t.children.get(r);e=xt(e),VL(o,e,n)}}function ry(t,e,n){t.value!==null?n(e,t.value):xq(t,(r,o)=>{const i=new Ct(e.toString()+"/"+r);ry(o,i,n)})}
3957function xq(t,e){t.children.forEach((n,r)=>{e(r,n)})}/** 3958 * @license 3959 * Copyright 2017 Google LLC 3960 * 3961 * Licensed under the Apache License, Version 2.0 (the "License"); 3962 * you may not use this file except in compliance with the License. 3963 * You may obtain a copy of the License at 3964 * 3965 * http://www.apache.org/licenses/LICENSE-2.0 3966 * 3967 * Unless required by applicable law or agreed to in writing, software 3968 * distributed under the License is distributed on an "AS IS" BASIS, 3969 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3970 * See the License for the specific language governing permissions and 3971 * limitations under the License. 3972 */class Iq{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),n=Object.assign({},e);return this.last_&&yr(this.last_,(r,o)=>{n[r]=n[r]-o}),this.last_=e,n}}/** 3973 * @license 3974 * Copyright 2017 Google LLC 3975 * 3976 * Licensed under the Apache License, Version 2.0 (the "License"); 3977 * you may not use this file except in compliance with the License. 3978 * You may obtain a copy of the License at 3979 * 3980 * http://www.apache.org/licenses/LICENSE-2.0 3981 * 3982 * Unless required by applicable law or agreed to in writing, software 3983 * distributed under the License is distributed on an "AS IS" BASIS, 3984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3985 * See the License for the specific language governing permissions and 3986 * limitations under the License. 3987 */const Ux=10*1e3,Rq=30*1e3,Cq=300*1e3;class Pq{constructor(e,n){this.server_=n,this.statsToReport_={},this.statsListener_=new Iq(e);const r=Ux+(Rq-Ux)*Math.random();ku(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const e=this.statsListener_.get(),n={};let r=!1;yr(e,(o,i)=>{i>0&&ls(this.statsToReport_,o)&&(n[o]=i,r=!0)}),r&&this.server_.reportStats(n),ku(this.reportStats_.bind(this),Math.floor(Math.random()*2*Cq))}}/** 3988 * @license 3989 * Copyright 2017 Google LLC 3990 * 3991 * Licensed under the Apache License, Version 2.0 (the "License"); 3992 * you may not use this file except in compliance with the License. 3993 * You may obtain a copy of the License at 3994 * 3995 * http://www.apache.org/licenses/LICENSE-2.0 3996 * 3997 * Unless required by applicable law or agreed to in writing, software 3998 * distributed under the License is distributed on an "AS IS" BASIS, 3999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4000 * See the License for the specific language governing permissions and 4001 * limitations under the License. 4002 */var si;(function(t){t[t.OVERWRITE=0]="OVERWRITE",t[t.MERGE=1]="MERGE",t[t.ACK_USER_WRITE=2]="ACK_USER_WRITE",t[t.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"})(si||(si={}));function FL(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function ML(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function BL(t){return{fromUser:!1,fromServer:!0,queryId:t,tagged:!0}}/** 4003 * @license 4004 * Copyright 2017 Google LLC 4005 * 4006 * Licensed under the Apache License, Version 2.0 (the "License"); 4007 * you may not use this file except in compliance with the License. 4008 * You may obtain a copy of the License at 4009 * 4010 * http://www.apache.org/licenses/LICENSE-2.0 4011 * 4012 * Unless required by applicable law or agreed to in writing, software 4013 * distributed under the License is distributed on an "AS IS" BASIS, 4014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4015 * See the License for the specific language governing permissions and 4016 * limitations under the License. 4017 */class o_{constructor(e,n,r){this.path=e,this.affectedTree=n,this.revert=r,this.type=si.ACK_USER_WRITE,this.source=FL()}operationForChild(e){if(We(this.path)){if(this.affectedTree.value!=null)return Ae(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new Ct(e));return new o_(pt(),n,this.revert)}}else return Ae(Qe(this.path)===e,"operationForChild called for unrelated child."),new o_(xt(this.path),this.affectedTree,this.revert)}}/** 4018 * @license 4019 * Copyright 2017 Google LLC 4020 * 4021 * Licensed under the Apache License, Version 2.0 (the "License");
4022 * you may not use this file except in compliance with the License. 4023 * You may obtain a copy of the License at 4024 * 4025 * http://www.apache.org/licenses/LICENSE-2.0 4026 * 4027 * Unless required by applicable law or agreed to in writing, software 4028 * distributed under the License is distributed on an "AS IS" BASIS, 4029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4030 * See the License for the specific language governing permissions and 4031 * limitations under the License. 4032 */class Ha{constructor(e,n,r){this.source=e,this.path=n,this.snap=r,this.type=si.OVERWRITE}operationForChild(e){return We(this.path)?new Ha(this.source,pt(),this.snap.getImmediateChild(e)):new Ha(this.source,xt(this.path),this.snap)}}/** 4033 * @license 4034 * Copyright 2017 Google LLC 4035 * 4036 * Licensed under the Apache License, Version 2.0 (the "License"); 4037 * you may not use this file except in compliance with the License. 4038 * You may obtain a copy of the License at 4039 * 4040 * http://www.apache.org/licenses/LICENSE-2.0 4041 * 4042 * Unless required by applicable law or agreed to in writing, software 4043 * distributed under the License is distributed on an "AS IS" BASIS, 4044 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4045 * See the License for the specific language governing permissions and 4046 * limitations under the License. 4047 */class yd{constructor(e,n,r){this.source=e,this.path=n,this.children=r,this.type=si.MERGE}operationForChild(e){if(We(this.path)){const n=this.children.subtree(new Ct(e));return n.isEmpty()?null:n.value?new Ha(this.source,pt(),n.value):new yd(this.source,pt(),n)}else return Ae(Qe(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new yd(this.source,xt(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}/** 4048 * @license 4049 * Copyright 2017 Google LLC 4050 * 4051 * Licensed under the Apache License, Version 2.0 (the "License"); 4052 * you may not use this file except in compliance with the License. 4053 * You may obtain a copy of the License at 4054 * 4055 * http://www.apache.org/licenses/LICENSE-2.0 4056 * 4057 * Unless required by applicable law or agreed to in writing, software 4058 * distributed under the License is distributed on an "AS IS" BASIS, 4059 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4060 * See the License for the specific language governing permissions and 4061 * limitations under the License. 4062 */class tb{constructor(e,n,r){this.node_=e,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(We(e))return this.isFullyInitialized()&&!this.filtered_;const n=Qe(e);return this.isCompleteForChild(n)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}function Sq(t,e,n,r){const o=[],i=[];return e.forEach(s=>{s.type==="child_changed"&&t.index_.indexedValueChanged(s.oldSnap,s.snapshotNode)&&i.push(Tq(s.childName,s.snapshotNode))}),iu(t,o,"child_removed",e,r,n),iu(t,o,"child_added",e,r,n),iu(t,o,"child_moved",i,r,n),iu(t,o,"child_changed",e,r,n),iu(t,o,"value",e,r,n),o}function iu(t,e,n,r,o,i){const s=r.filter(a=>a.type===n);s.sort((a,c)=>Dq(t,a,c)),s.forEach(a=>{const c=Oq(t,a,i);o.forEach(l=>{l.respondsTo(a.type)&&e.push(l.createEvent(c,t.query_))})})}function Oq(t,e,n){return e.type==="value"||e.type==="child_removed"||(e.prevName=n.getPredecessorChildName(e.childName,e.snapshotNode,t.index_)),e}function Dq(t,e,n){if(e.childName==null||n.childName==null)throw El("Should only compare child_ events.");const r=new Ye(e.childName,e.snapshotNode),o=new Ye(n.childName,n.snapshotNode);return t.index_.compare(r,o)}/** 4063 * @license 4064 * Copyright 2017 Google LLC 4065 * 4066 * Licensed under the Apache License, Version 2.0 (the "License"); 4067 * you may not use this file except in compliance with the License. 4068 * You may obtain a copy of the License at 4069 * 4070 * http://www.apache.org/licenses/LICENSE-2.0 4071 * 4072 * Unless required by applicable law or agreed to in writing, software 4073 * distributed under the License is distributed on an "AS IS" BASIS, 4074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4075 * See the License for the specific language governing permissions and 4076 * limitations under the License. 4077 */function UL(t,e){return{eventCache:t,serverCache:e}}function Nu(t,e,n,r){return UL(new tb(e,n,r),t.serverCache)}function $L(t,e,n,r){return UL(t.eventCache,new tb(e,n,r))}function oy(t){return t.eventCache.isFullyInitialized()?t.eventCache.getNode():null}function za(t){return t.serverCache.isFullyInitialized()?t.serverCache.getNode():null}/** 4078 * @license 4079 * Copyright 2017 Google LLC 4080 * 4081 * Licensed under the Apache License, Version 2.0 (the "License");
4082 * you may not use this file except in compliance with the License. 4083 * You may obtain a copy of the License at 4084 * 4085 * http://www.apache.org/licenses/LICENSE-2.0 4086 * 4087 * Unless required by applicable law or agreed to in writing, software 4088 * distributed under the License is distributed on an "AS IS" BASIS, 4089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4090 * See the License for the specific language governing permissions and 4091 * limitations under the License. 4092 */let R0;const Lq=()=>(R0||(R0=new Kn(yz)),R0);class At{constructor(e,n=Lq()){this.value=e,this.children=n}static fromObject(e){let n=new At(null);return yr(e,(r,o)=>{n=n.set(new Ct(r),o)}),n}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,n){if(this.value!=null&&n(this.value))return{path:pt(),value:this.value};if(We(e))return null;{const r=Qe(e),o=this.children.get(r);if(o!==null){const i=o.findRootMostMatchingPathAndValue(xt(e),n);return i!=null?{path:nn(new Ct(r),i.path),value:i.value}:null}else return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(We(e))return this;{const n=Qe(e),r=this.children.get(n);return r!==null?r.subtree(xt(e)):new At(null)}}set(e,n){if(We(e))return new At(n,this.children);{const r=Qe(e),i=(this.children.get(r)||new At(null)).set(xt(e),n),s=this.children.insert(r,i);return new At(this.value,s)}}remove(e){if(We(e))return this.children.isEmpty()?new At(null):new At(null,this.children);{const n=Qe(e),r=this.children.get(n);if(r){const o=r.remove(xt(e));let i;return o.isEmpty()?i=this.children.remove(n):i=this.children.insert(n,o),this.value===null&&i.isEmpty()?new At(null):new At(this.value,i)}else return this}}get(e){if(We(e))return this.value;{const n=Qe(e),r=this.children.get(n);return r?r.get(xt(e)):null}}setTree(e,n){if(We(e))return n;{const r=Qe(e),i=(this.children.get(r)||new At(null)).setTree(xt(e),n);let s;return i.isEmpty()?s=this.children.remove(r):s=this.children.insert(r,i),new At(this.value,s)}}fold(e){return this.fold_(pt(),e)}fold_(e,n){const r={};return this.children.inorderTraversal((o,i)=>{r[o]=i.fold_(nn(e,o),n)}),n(e,this.value,r)}findOnPath(e,n){return this.findOnPath_(e,pt(),n)}findOnPath_(e,n,r){const o=this.value?r(n,this.value):!1;if(o)return o;if(We(e))return null;{const i=Qe(e),s=this.children.get(i);return s?s.findOnPath_(xt(e),nn(n,i),r):null}}foreachOnPath(e,n){return this.foreachOnPath_(e,pt(),n)}foreachOnPath_(e,n,r){if(We(e))return this;{this.value&&r(n,this.value);const o=Qe(e),i=this.children.get(o);return i?i.foreachOnPath_(xt(e),nn(n,o),r):new At(null)}}foreach(e){this.foreach_(pt(),e)}foreach_(e,n){this.children.inorderTraversal((r,o)=>{o.foreach_(nn(e,r),n)}),this.value&&n(e,this.value)}foreachChild(e){this.children.inorderTraversal((n,r)=>{r.value&&e(n,r.value)})}}/** 4093 * @license 4094 * Copyright 2017 Google LLC 4095 * 4096 * Licensed under the Apache License, Version 2.0 (the "License"); 4097 * you may not use this file except in compliance with the License. 4098 * You may obtain a copy of the License at 4099 * 4100 * http://www.apache.org/licenses/LICENSE-2.0 4101 * 4102 * Unless required by applicable law or agreed to in writing, software 4103 * distributed under the License is distributed on an "AS IS" BASIS, 4104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4105 * See the License for the specific language governing permissions and 4106 * limitations under the License. 4107 */class Mr{constructor(e){this.writeTree_=e}static empty(){return new Mr(new At(null))}}function Vu(t,e,n){if(We(e))return new Mr(new At(n));{const r=t.writeTree_.findRootMostValueAndPath(e);if(r!=null){const o=r.path;let i=r.value;const s=dr(o,e);return i=i.updateChild(s,n),new Mr(t.writeTree_.set(o,i))}else{const o=new At(n),i=t.writeTree_.setTree(e,o);return new Mr(i)}}}function $x(t,e,n){let r=t;return yr(n,(o,i)=>{r=Vu(r,nn(e,o),i)}),r}function jx(t,e){if(We(e))return Mr.empty();{const n=t.writeTree_.setTree(e,new At(null));return new Mr(n)}}function iy(t,e){return nc(t,e)!=null}function nc(t,e){const n=t.writeTree_.findRootMostValueAndPath(e);return n!=null?t.writeTree_.get(n.path).getChild(dr(n.path,e)):null}function Hx(t){const e=[],n=t.writeTree_.value;
4107return n!=null?n.isLeafNode()||n.forEachChild(Dn,(r,o)=>{e.push(new Ye(r,o))}):t.writeTree_.children.inorderTraversal((r,o)=>{o.value!=null&&e.push(new Ye(r,o.value))}),e}function $s(t,e){if(We(e))return t;{const n=nc(t,e);return n!=null?new Mr(new At(n)):new Mr(t.writeTree_.subtree(e))}}function sy(t){return t.writeTree_.isEmpty()}function sl(t,e){return jL(pt(),t.writeTree_,e)}function jL(t,e,n){if(e.value!=null)return n.updateChild(t,e.value);{let r=null;return e.children.inorderTraversal((o,i)=>{o===".priority"?(Ae(i.value!==null,"Priority writes must always be leaf nodes"),r=i.value):n=jL(nn(t,o),i,n)}),!n.getChild(t).isEmpty()&&r!==null&&(n=n.updateChild(nn(t,".priority"),r)),n}}/** 4108 * @license 4109 * Copyright 2017 Google LLC 4110 * 4111 * Licensed under the Apache License, Version 2.0 (the "License"); 4112 * you may not use this file except in compliance with the License. 4113 * You may obtain a copy of the License at 4114 * 4115 * http://www.apache.org/licenses/LICENSE-2.0 4116 * 4117 * Unless required by applicable law or agreed to in writing, software 4118 * distributed under the License is distributed on an "AS IS" BASIS, 4119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4120 * See the License for the specific language governing permissions and 4121 * limitations under the License. 4122 */function HL(t,e){return GL(e,t)}function kq(t,e,n,r,o){Ae(r>t.lastWriteId,"Stacking an older write on top of newer ones"),o===void 0&&(o=!0),t.allWrites.push({path:e,snap:n,writeId:r,visible:o}),o&&(t.visibleWrites=Vu(t.visibleWrites,e,n)),t.lastWriteId=r}function Nq(t,e){for(let n=0;n<t.allWrites.length;n++){const r=t.allWrites[n];if(r.writeId===e)return r}return null}function Vq(t,e){const n=t.allWrites.findIndex(a=>a.writeId===e);Ae(n>=0,"removeWrite called with nonexistent writeId.");const r=t.allWrites[n];t.allWrites.splice(n,1);let o=r.visible,i=!1,s=t.allWrites.length-1;for(;o&&s>=0;){const a=t.allWrites[s];a.visible&&(s>=n&&Fq(a,r.path)?o=!1:Or(r.path,a.path)&&(i=!0)),s--}if(o){if(i)return Mq(t),!0;if(r.snap)t.visibleWrites=jx(t.visibleWrites,r.path);else{const a=r.children;yr(a,c=>{t.visibleWrites=jx(t.visibleWrites,nn(r.path,c))})}return!0}else return!1}function Fq(t,e){if(t.snap)return Or(t.path,e);for(const n in t.children)if(t.children.hasOwnProperty(n)&&Or(nn(t.path,n),e))return!0;return!1}function Mq(t){t.visibleWrites=zL(t.allWrites,Bq,pt()),t.allWrites.length>0?t.lastWriteId=t.allWrites[t.allWrites.length-1].writeId:t.lastWriteId=-1}function Bq(t){return t.visible}function zL(t,e,n){let r=Mr.empty();for(let o=0;o<t.length;++o){const i=t[o];if(e(i)){const s=i.path;let a;if(i.snap)Or(n,s)?(a=dr(n,s),r=Vu(r,a,i.snap)):Or(s,n)&&(a=dr(s,n),r=Vu(r,pt(),i.snap.getChild(a)));else if(i.children){if(Or(n,s))a=dr(n,s),r=$x(r,a,i.children);else if(Or(s,n))if(a=dr(s,n),We(a))r=$x(r,pt(),i.children);else{const c=Qc(i.children,Qe(a));if(c){const l=c.getChild(xt(a));r=Vu(r,pt(),l)}}}else throw El("WriteRecord should have .snap or .children")}}return r}function qL(t,e,n,r,o){if(!r&&!o){const i=nc(t.visibleWrites,e);if(i!=null)return i;{const s=$s(t.visibleWrites,e);if(sy(s))return n;if(n==null&&!iy(s,pt()))return null;{const a=n||lt.EMPTY_NODE;return sl(s,a)}}}else{const i=$s(t.visibleWrites,e);if(!o&&sy(i))return n;if(!o&&n==null&&!iy(i,pt()))return null;{const s=function(l){return(l.visible||o)&&(!r||!~r.indexOf(l.writeId))&&(Or(l.path,e)||Or(e,l.path))},a=zL(t.allWrites,s,e),c=n||lt.EMPTY_NODE;return sl(a,c)}}}function Uq(t,e,n){let r=lt.EMPTY_NODE;const o=nc(t.visibleWrites,e);if(o)return o.isLeafNode()||o.forEachChild(Dn,(i,s)=>{r=r.updateImmediateChild(i,s)}),r;if(n){const i=$s(t.visibleWrites,e);return n.forEachChild(Dn,(s,a)=>{const c=sl($s(i,new Ct(s)),a);r=r.updateImmediateChild(s,c)}),Hx(i).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}else{const i=$s(t.visibleWrites,e);return Hx(i).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}}function $q(t,e,n,r,o){Ae(r||o,"Either existingEventSnap or existingServerSnap must exist");const i=nn(e,n);if(iy(t.visibleWrites,i))return null;{const s=$s(t.visibleWrites,i);return sy(s)?o.getChild(n):sl(s,o.getChild(n))}}function jq(t,e,n,r){const o=nn(e,n),i=nc(t.visibleWrites,o);if(i!=null)return i;if(r.isCompleteForChild(n)){const s=$s(t.visibleWrites,o);return sl(s,r.getNode().getImmediateChild(n))}else return null}function Hq(t,e){return nc(t.visibleWrites,e)}function zq(t,e,n,r,o,i,s){let a;const c=$s(t.visibleWrites,e),l=nc(c,pt());if(l!=null)a=l;else if(n!=null)a=sl(c,n);else return[];if(a=a.withIndex(s),!a.isEmpty()&&!a.isLeafNode()){const u=[],d=s.getCompare(),f=i?a.getReverseIteratorFrom(r,s):a.getIteratorFrom(r,s);let _=f.getNext();for(;_&&u.length<o;)d(_,r)!==0&&u.push(_),_=f.getNext();return u}else return[]}function qq(){return{visibleWrites:Mr.empty(),allWrites:[],lastWriteId:-1}}function ay(t,e,n,r){return qL(t.writeTree,t.treePath,e,n,r)}function WL(t,e){return Uq(t.writeTree,t.treePath,e)}function zx(t,e,n,r){return $q(t.writeTree,t.treePath,e,n,r)}function i_(t,e){return Hq(t.writeTree,nn(t.treePath,e))}function Wq(t,e,n,r,o,i){return zq(t.writeTree,t.treePath,e,n,r,o,i)}function nb(t,e,n){return jq(t.writeTree,t.treePath,e,n)}function KL(t,e){return GL(nn(t.treePath,e),t.writeTree)}function GL(t,e){return{treePath:t,writeTree:e}}/** 4123 * @license 4124 * Copyright 2017 Google LLC 4125 * 4126 * Licensed under the Apache License, Version 2.0 (the "License");
4127 * you may not use this file except in compliance with the License. 4128 * You may obtain a copy of the License at 4129 * 4130 * http://www.apache.org/licenses/LICENSE-2.0 4131 * 4132 * Unless required by applicable law or agreed to in writing, software 4133 * distributed under the License is distributed on an "AS IS" BASIS, 4134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4135 * See the License for the specific language governing permissions and 4136 * limitations under the License. 4137 */class Kq{constructor(){this.changeMap=new Map}trackChildChange(e){const n=e.type,r=e.childName;Ae(n==="child_added"||n==="child_changed"||n==="child_removed","Only child changes supported for tracking"),Ae(r!==".priority","Only non-priority child changes can be tracked.");const o=this.changeMap.get(r);if(o){const i=o.type;if(n==="child_added"&&i==="child_removed")this.changeMap.set(r,Fx(r,e.snapshotNode,o.snapshotNode));else if(n==="child_removed"&&i==="child_added")this.changeMap.delete(r);else if(n==="child_removed"&&i==="child_changed")this.changeMap.set(r,wq(r,o.oldSnap));else if(n==="child_changed"&&i==="child_added")this.changeMap.set(r,bq(r,e.snapshotNode));else if(n==="child_changed"&&i==="child_changed")this.changeMap.set(r,Fx(r,e.snapshotNode,o.oldSnap));else throw El("Illegal combination of changes: "+e+" occurred after "+o)}else this.changeMap.set(r,e)}getChanges(){return Array.from(this.changeMap.values())}}/** 4138 * @license 4139 * Copyright 2017 Google LLC 4140 * 4141 * Licensed under the Apache License, Version 2.0 (the "License"); 4142 * you may not use this file except in compliance with the License. 4143 * You may obtain a copy of the License at 4144 * 4145 * http://www.apache.org/licenses/LICENSE-2.0 4146 * 4147 * Unless required by applicable law or agreed to in writing, software 4148 * distributed under the License is distributed on an "AS IS" BASIS, 4149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4150 * See the License for the specific language governing permissions and 4151 * limitations under the License. 4152 */class Gq{getCompleteChild(e){return null}getChildAfterChild(e,n,r){return null}}const QL=new Gq;class rb{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 tb(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return nb(this.writes_,e,r)}}getChildAfterChild(e,n,r){const o=this.optCompleteServerCache_!=null?this.optCompleteServerCache_:za(this.viewCache_),i=Wq(this.writes_,o,n,1,r,e);return i.length===0?null:i[0]}}function Qq(t,e){Ae(e.eventCache.getNode().isIndexed(t.filter.getIndex()),"Event snap not indexed"),Ae(e.serverCache.getNode().isIndexed(t.filter.getIndex()),"Server snap not indexed")}function Yq(t,e,n,r,o){const i=new Kq;let s,a;if(n.type===si.OVERWRITE){const l=n;l.source.fromUser?s=cy(t,e,l.path,l.snap,r,o,i):(Ae(l.source.fromServer,"Unknown source."),a=l.source.tagged||e.serverCache.isFiltered()&&!We(l.path),s=s_(t,e,l.path,l.snap,r,o,a,i))}else if(n.type===si.MERGE){const l=n;l.source.fromUser?s=Jq(t,e,l.path,l.children,r,o,i):(Ae(l.source.fromServer,"Unknown source."),a=l.source.tagged||e.serverCache.isFiltered(),s=ly(t,e,l.path,l.children,r,o,a,i))}else if(n.type===si.ACK_USER_WRITE){const l=n;l.revert?s=tW(t,e,l.path,r,o,i):s=Zq(t,e,l.path,l.affectedTree,r,o,i)}else if(n.type===si.LISTEN_COMPLETE)s=eW(t,e,n.path,r,i);else throw El("Unknown operation type: "+n.type);const c=i.getChanges();return Xq(e,s,c),{viewCache:s,changes:c}}function Xq(t,e,n){const r=e.eventCache;if(r.isFullyInitialized()){const o=r.getNode().isLeafNode()||r.getNode().isEmpty(),i=oy(t);(n.length>0||!t.eventCache.isFullyInitialized()||o&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPriority()))&&n.push(Eq(oy(e)))}}function YL(t,e,n,r,o,i){const s=e.eventCache;if(i_(r,n)!=null)return e;{let a,c;if(We(n))if(Ae(e.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),e.serverCache.isFiltered()){const l=za(e),u=l instanceof lt?l:lt.EMPTY_NODE,d=WL(r,u);a=t.filter.updateFullNode(e.eventCache.getNode(),d,i)}else{const l=ay(r,za(e));a=t.filter.updateFullNode(e.eventCache.getNode(),l,i)}else{const l=Qe(n);if(l===".priority"){Ae(Gs(n)===1,"Can't have a priority with additional path components");const u=s.getNode();c=e.serverCache.getNode();const d=zx(r,n,u,c);d!=null?a=t.filter.updatePriority(u,d):a=s.getNode()}else{const u=xt(n);let d;if(s.isCompleteForChild(l)){c=e.serverCache.getNode();const f=zx(r,n,s.getNode(),c);f!=null?d=s.getNode().getImmediateChild(l).updateChild(u,f):d=s.getNode().getImmediateChild(l)}else d=nb(r,l,e.serverCache);d!=null?a=t.filter.updateChild(s.getNode(),l,d,u,o,i):a=s.getNode()}}return Nu(e,a,s.isFullyInitialized()||We(n),t.filter.filtersNodes())}}function s_(t,e,n,r,o,i,s,a){const c=e.serverCache;let l;const u=s?t.filter:t.filter.getIndexedFilter();if(We(n))l=u.updateFullNode(c.getNode(),r,null);else if(u.filtersNodes()&&!c.isFiltered()){const _=c.getNode().updateChild(n,r);l=u.updateFullNode(c.getNode(),_,null)}else{const _=Qe(n);if(!c.isCompleteForPath(n)&&Gs(n)>1)return e;const m=xt(n),v=c.getNode().getImmediateChild(_).updateChild(m,r);_===".priority"?l=u.updatePriority(c.getNode(),v):l=u.updateChild(c.getNode(),_,v,m,QL,null)}const d=$L(e,l,c.isFullyInitialized()||We(n),u.filtersNodes()),f=new rb(o,d,i);return YL(t,d,n,o,f,a)}function cy(t,e,n,r,o,i,s){const a=e.eventCache;let c,l;const u=new rb(o,e,i);if(We(n))l=t.filter.updateFullNode(e.eventCache.getNode(),r,s),c=Nu(e,l,!0,t.filter.filtersNodes());else{const d=Qe(n);if(d===".priority")l=t.filter.updatePriority(e.eventCache.getNode(),r),c=Nu(e,l,a.isFullyInitialized(),a.isFiltered());else{const f=xt(n),_=a.getNode().getImmediateChild(d);let m;if(We(f))m=r;else{const y=u.getCompleteChild(d);y!=null?IL(f)===".priority"&&y.getChild(CL(f)).isEmpty()?m=y:m=y.updateChild(f,r):m=lt.EMPTY_NODE}if(_.equals(m))c=e;else{const y=t.filter.updateChild(a.getNode(),d,m,f,u,s);c=Nu(e,y,a.isFullyInitialized(),t.filter.filtersNodes())}}}return c}function qx(t,e){return t.eventCache.isCompleteForChild(e)}function Jq(t,e,n,r,o,i,s){let a=e;return r.foreach((c,l)=>{const u=nn(n,c);qx(e,Qe(u))&&(a=cy(t,a,u,l,o,i,s))}),r.foreach((c,l)=>{const u=nn(n,c);qx(e,Qe(u))||(a=cy(t,a,u,l,o,i,s))}),a}function Wx(t,e,n){return n.foreach((r,o)=>{e=e.updateChild(r,o)}),e}function ly(t,e,n,r,o,i,s,a){if(e.serverCache.getNode().isEmpty()&&!e.serverCache.isFullyInitialized())return e;let c=e,l;We(n)?l=r:l=new At(null).setTree(n,r);const u=e.serverCache.getNode();return l.children.inorderTraversal((d,f)=>{if(u.hasChild(d)){const _=e.serverCache.getNode().getImmediateChild(d),m=Wx(t,_,f);c=s_(t,c,new Ct(d),m,o,i,s,a)}}),l.children.inorderTraversal((d,f)=>{const _=!e.serverCache.isCompleteForChild(d)&&f.value===null;if(!u.hasChild(d)&&!_){const m=e.serverCache.getNode().getImmediateChild(d),y=Wx(t,m,f);c=s_(t,c,new Ct(d),y,o,i,s,a)}}),c}function Zq(t,e,n,r,o,i,s){if(i_(o,n)!=null)return e;const a=e.serverCache.isFiltered(),c=e.serverCache;if(r.value!=null){if(We(n)&&c.isFullyInitialized()||c.isCompleteForPath(n))return s_(t,e,n,c.getNode().getChild(n),o,i,a,s);if(We(n)){let l=new At(null);
4152return c.getNode().forEachChild(Bc,(u,d)=>{l=l.set(new Ct(u),d)}),ly(t,e,n,l,o,i,a,s)}else return e}else{let l=new At(null);return r.foreach((u,d)=>{const f=nn(n,u);c.isCompleteForPath(f)&&(l=l.set(u,c.getNode().getChild(f)))}),ly(t,e,n,l,o,i,a,s)}}function eW(t,e,n,r,o){const i=e.serverCache,s=$L(e,i.getNode(),i.isFullyInitialized()||We(n),i.isFiltered());return YL(t,s,n,r,QL,o)}function tW(t,e,n,r,o,i){let s;if(i_(r,n)!=null)return e;{const a=new rb(r,e,o),c=e.eventCache.getNode();let l;if(We(n)||Qe(n)===".priority"){let u;if(e.serverCache.isFullyInitialized())u=ay(r,za(e));else{const d=e.serverCache.getNode();Ae(d instanceof lt,"serverChildren would be complete if leaf node"),u=WL(r,d)}u=u,l=t.filter.updateFullNode(c,u,i)}else{const u=Qe(n);let d=nb(r,u,e.serverCache);d==null&&e.serverCache.isCompleteForChild(u)&&(d=c.getImmediateChild(u)),d!=null?l=t.filter.updateChild(c,u,d,xt(n),a,i):e.eventCache.getNode().hasChild(u)?l=t.filter.updateChild(c,u,lt.EMPTY_NODE,xt(n),a,i):l=c,l.isEmpty()&&e.serverCache.isFullyInitialized()&&(s=ay(r,za(e)),s.isLeafNode()&&(l=t.filter.updateFullNode(l,s,i)))}return s=e.serverCache.isFullyInitialized()||i_(r,pt())!=null,Nu(e,l,s,t.filter.filtersNodes())}}function nW(t,e){const n=za(t.viewCache_);return n&&(t.query._queryParams.loadsAllData()||!We(e)&&!n.getImmediateChild(Qe(e)).isEmpty())?n.getChild(e):null}function Kx(t,e,n,r){e.type===si.MERGE&&e.source.queryId!==null&&(Ae(za(t.viewCache_),"We should always have a full cache before handling merges"),Ae(oy(t.viewCache_),"Missing event cache, even though we have a server cache"));const o=t.viewCache_,i=Yq(t.processor_,o,e,n,r);return Qq(t.processor_,i.viewCache),Ae(i.viewCache.serverCache.isFullyInitialized()||!o.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),t.viewCache_=i.viewCache,rW(t,i.changes,i.viewCache.eventCache.getNode())}function rW(t,e,n,r){const o=t.eventRegistrations_;return Sq(t.eventGenerator_,e,n,o)}/** 4153 * @license 4154 * Copyright 2017 Google LLC 4155 * 4156 * Licensed under the Apache License, Version 2.0 (the "License"); 4157 * you may not use this file except in compliance with the License. 4158 * You may obtain a copy of the License at 4159 * 4160 * http://www.apache.org/licenses/LICENSE-2.0 4161 * 4162 * Unless required by applicable law or agreed to in writing, software 4163 * distributed under the License is distributed on an "AS IS" BASIS, 4164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4165 * See the License for the specific language governing permissions and 4166 * limitations under the License. 4167 */let Gx;function oW(t){Ae(!Gx,"__referenceConstructor has already been defined"),Gx=t}function ob(t,e,n,r){const o=e.source.queryId;if(o!==null){const i=t.views.get(o);return Ae(i!=null,"SyncTree gave us an op for an invalid query."),Kx(i,e,n,r)}else{let i=[];for(const s of t.views.values())i=i.concat(Kx(s,e,n,r));return i}}function ib(t,e){let n=null;for(const r of t.views.values())n=n||nW(r,e);return n}/** 4168 * @license 4169 * Copyright 2017 Google LLC 4170 * 4171 * Licensed under the Apache License, Version 2.0 (the "License"); 4172 * you may not use this file except in compliance with the License. 4173 * You may obtain a copy of the License at 4174 * 4175 * http://www.apache.org/licenses/LICENSE-2.0 4176 * 4177 * Unless required by applicable law or agreed to in writing, software 4178 * distributed under the License is distributed on an "AS IS" BASIS, 4179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4180 * See the License for the specific language governing permissions and 4181 * limitations under the License. 4182 */let Qx;function iW(t){Ae(!Qx,"__referenceConstructor has already been defined"),Qx=t}class Yx{constructor(e){this.listenProvider_=e,this.syncPointTree_=new At(null),this.pendingWriteTree_=qq(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function sW(t,e,n,r,o){return kq(t.pendingWriteTree_,e,n,r,o),o?lm(t,new Ha(FL(),e,n)):[]}function Cc(t,e,n=!1){const r=Nq(t.pendingWriteTree_,e);if(Vq(t.pendingWriteTree_,e)){let i=new At(null);return r.snap!=null?i=i.set(pt(),!0):yr(r.children,s=>{i=i.set(new Ct(s),!0)}),lm(t,new o_(r.path,i,n))}else return[]}function cm(t,e,n){return lm(t,new Ha(ML(),e,n))}function aW(t,e,n){const r=At.fromObject(n);return lm(t,new yd(ML(),e,r))}function cW(t,e,n,r){const o=ek(t,r);if(o!=null){const i=tk(o),s=i.path,a=i.queryId,c=dr(s,e),l=new Ha(BL(a),c,n);return nk(t,s,l)}else return[]}function lW(t,e,n,r){const o=ek(t,r);if(o){const i=tk(o),s=i.path,a=i.queryId,c=dr(s,e),l=At.fromObject(n),u=new yd(BL(a),c,l);return nk(t,s,u)}else return[]}function XL(t,e,n){const o=t.pendingWriteTree_,i=t.syncPointTree_.findOnPath(e,(s,a)=>{const c=dr(s,e),l=ib(a,c);if(l)return l});return qL(o,e,i,n,!0)}function lm(t,e){return JL(e,t.syncPointTree_,null,HL(t.pendingWriteTree_,pt()))}function JL(t,e,n,r){if(We(t.path))return ZL(t,e,n,r);{const o=e.get(pt());
4182n==null&&o!=null&&(n=ib(o,pt()));let i=[];const s=Qe(t.path),a=t.operationForChild(s),c=e.children.get(s);if(c&&a){const l=n?n.getImmediateChild(s):null,u=KL(r,s);i=i.concat(JL(a,c,l,u))}return o&&(i=i.concat(ob(o,t,r,n))),i}}function ZL(t,e,n,r){const o=e.get(pt());n==null&&o!=null&&(n=ib(o,pt()));let i=[];return e.children.inorderTraversal((s,a)=>{const c=n?n.getImmediateChild(s):null,l=KL(r,s),u=t.operationForChild(s);u&&(i=i.concat(ZL(u,a,c,l)))}),o&&(i=i.concat(ob(o,t,r,n))),i}function ek(t,e){return t.tagToQueryMap.get(e)}function tk(t){const e=t.indexOf("$");return Ae(e!==-1&&e<t.length-1,"Bad queryKey."),{queryId:t.substr(e+1),path:new Ct(t.substr(0,e))}}function nk(t,e,n){const r=t.syncPointTree_.get(e);Ae(r,"Missing sync point for query tag that we're tracking");const o=HL(t.pendingWriteTree_,e);return ob(r,n,o,null)}/** 4183 * @license 4184 * Copyright 2017 Google LLC 4185 * 4186 * Licensed under the Apache License, Version 2.0 (the "License"); 4187 * you may not use this file except in compliance with the License. 4188 * You may obtain a copy of the License at 4189 * 4190 * http://www.apache.org/licenses/LICENSE-2.0 4191 * 4192 * Unless required by applicable law or agreed to in writing, software 4193 * distributed under the License is distributed on an "AS IS" BASIS, 4194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4195 * See the License for the specific language governing permissions and 4196 * limitations under the License. 4197 */class sb{constructor(e){this.node_=e}getImmediateChild(e){const n=this.node_.getImmediateChild(e);return new sb(n)}node(){return this.node_}}class ab{constructor(e,n){this.syncTree_=e,this.path_=n}getImmediateChild(e){const n=nn(this.path_,e);return new ab(this.syncTree_,n)}node(){return XL(this.syncTree_,this.path_)}}const uW=function(t){return t=t||{},t.timestamp=t.timestamp||new Date().getTime(),t},Xx=function(t,e,n){if(!t||typeof t!="object")return t;if(Ae(".sv"in t,"Unexpected leaf node or priority contents"),typeof t[".sv"]=="string")return dW(t[".sv"],e,n);if(typeof t[".sv"]=="object")return hW(t[".sv"],e);Ae(!1,"Unexpected server value: "+JSON.stringify(t,null,2))},dW=function(t,e,n){switch(t){case"timestamp":return n.timestamp;default:Ae(!1,"Unexpected server value: "+t)}},hW=function(t,e,n){t.hasOwnProperty("increment")||Ae(!1,"Unexpected server value: "+JSON.stringify(t,null,2));const r=t.increment;typeof r!="number"&&Ae(!1,"Unexpected increment value: "+r);const o=e.node();if(Ae(o!==null&&typeof o<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!o.isLeafNode())return r;const s=o.getValue();return typeof s!="number"?r:s+r},fW=function(t,e,n,r){return cb(e,new ab(n,t),r)},pW=function(t,e,n){return cb(t,new sb(e),n)};function cb(t,e,n){const r=t.getPriority().val(),o=Xx(r,e.getImmediateChild(".priority"),n);let i;if(t.isLeafNode()){const s=t,a=Xx(s.getValue(),e,n);return a!==s.getValue()||o!==s.getPriority().val()?new Jt(a,Cn(o)):t}else{const s=t;return i=s,o!==s.getPriority().val()&&(i=i.updatePriority(new Jt(o))),s.forEachChild(Dn,(a,c)=>{const l=cb(c,e.getImmediateChild(a),n);l!==c&&(i=i.updateImmediateChild(a,l))}),i}}/** 4198 * @license 4199 * Copyright 2017 Google LLC 4200 * 4201 * Licensed under the Apache License, Version 2.0 (the "License"); 4202 * you may not use this file except in compliance with the License. 4203 * You may obtain a copy of the License at 4204 * 4205 * http://www.apache.org/licenses/LICENSE-2.0 4206 * 4207 * Unless required by applicable law or agreed to in writing, software 4208 * distributed under the License is distributed on an "AS IS" BASIS, 4209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4210 * See the License for the specific language governing permissions and 4211 * limitations under the License. 4212 */class lb{constructor(e="",n=null,r={children:{},childCount:0}){this.name=e,this.parent=n,this.node=r}}function ub(t,e){let n=e instanceof Ct?e:new Ct(e),r=t,o=Qe(n);for(;o!==null;){const i=Qc(r.node.children,o)||{children:{},childCount:0};r=new lb(o,r,i),n=xt(n),o=Qe(n)}return r}function Dl(t){return t.node.value}function rk(t,e){t.node.value=e,uy(t)}function ok(t){return t.node.childCount>0}function _W(t){return Dl(t)===void 0&&!ok(t)}function um(t,e){yr(t.node.children,(n,r)=>{e(new lb(n,t,r))})}function ik(t,e,n,r){n&&e(t),um(t,o=>{ik(o,e,!0)})}function mW(t,e,n){let r=t.parent;for(;r!==null;){if(e(r))return!0;r=r.parent}return!1}function Xd(t){return new Ct(t.parent===null?t.name:Xd(t.parent)+"/"+t.name)}function uy(t){t.parent!==null&&gW(t.parent,t.name,t)}function gW(t,e,n){const r=_W(n),o=ls(t.node.children,e);r&&o?(delete t.node.children[e],t.node.childCount--,uy(t)):!r&&!o&&(t.no
vendor: 5,693 bytes, lines 4212-4257
4212de.children[e]=n.node,t.node.childCount++,uy(t))}/** 4213 * @license 4214 * Copyright 2017 Google LLC 4215 * 4216 * Licensed under the Apache License, Version 2.0 (the "License"); 4217 * you may not use this file except in compliance with the License. 4218 * You may obtain a copy of the License at 4219 * 4220 * http://www.apache.org/licenses/LICENSE-2.0 4221 * 4222 * Unless required by applicable law or agreed to in writing, software 4223 * distributed under the License is distributed on an "AS IS" BASIS, 4224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4225 * See the License for the specific language governing permissions and 4226 * limitations under the License. 4227 */const yW=/[\[\].#$\/\u0000-\u001F\u007F]/,vW=/[\[\].#$\u0000-\u001F\u007F]/,C0=10*1024*1024,sk=function(t){return typeof t=="string"&&t.length!==0&&!yW.test(t)},EW=function(t){return typeof t=="string"&&t.length!==0&&!vW.test(t)},bW=function(t){return t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),EW(t)},ak=function(t,e,n){const r=n instanceof Ct?new eq(n,t):n;if(e===void 0)throw new Error(t+"contains undefined "+_a(r));if(typeof e=="function")throw new Error(t+"contains a function "+_a(r)+" with contents = "+e.toString());if(sL(e))throw new Error(t+"contains "+e.toString()+" "+_a(r));if(typeof e=="string"&&e.length>C0/3&&j_(e)>C0)throw new Error(t+"contains a string greater than "+C0+" utf8 bytes "+_a(r)+" ('"+e.substring(0,50)+"...')");if(e&&typeof e=="object"){let o=!1,i=!1;if(yr(e,(s,a)=>{if(s===".value")o=!0;else if(s!==".priority"&&s!==".sv"&&(i=!0,!sk(s)))throw new Error(t+" contains an invalid key ("+s+") "+_a(r)+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);tq(r,s),ak(t,a,r),nq(r)}),o&&i)throw new Error(t+' contains ".value" child '+_a(r)+" in addition to actual children.")}},wW=function(t,e){const n=e.path.toString();if(typeof e.repoInfo.host!="string"||e.repoInfo.host.length===0||!sk(e.repoInfo.namespace)&&e.repoInfo.host.split(":")[0]!=="localhost"||n.length!==0&&!bW(n))throw new Error(e6(t,"url")+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)};/** 4228 * @license 4229 * Copyright 2017 Google LLC 4230 * 4231 * Licensed under the Apache License, Version 2.0 (the "License"); 4232 * you may not use this file except in compliance with the License. 4233 * You may obtain a copy of the License at 4234 * 4235 * http://www.apache.org/licenses/LICENSE-2.0 4236 * 4237 * Unless required by applicable law or agreed to in writing, software 4238 * distributed under the License is distributed on an "AS IS" BASIS, 4239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4240 * See the License for the specific language governing permissions and 4241 * limitations under the License. 4242 */let TW=class{constructor(){this.eventLists_=[],this.recursionDepth_=0}};function AW(t,e){let n=null;for(let r=0;r<e.length;r++){const o=e[r],i=o.getPath();n!==null&&!PL(i,n.path)&&(t.eventLists_.push(n),n=null),n===null&&(n={events:[],path:i}),n.events.push(o)}n&&t.eventLists_.push(n)}function rc(t,e,n){AW(t,n),xW(t,r=>Or(r,e)||Or(e,r))}function xW(t,e){t.recursionDepth_++;let n=!0;for(let r=0;r<t.eventLists_.length;r++){const o=t.eventLists_[r];if(o){const i=o.path;e(i)?(IW(t.eventLists_[r]),t.eventLists_[r]=null):n=!1}}n&&(t.eventLists_=[]),t.recursionDepth_--}function IW(t){for(let e=0;e<t.events.length;e++){const n=t.events[e];if(n!==null){t.events[e]=null;const r=n.getEventRunner();Lu&&Rn("event: "+n.toString()),Qd(r)}}}/** 4243 * @license 4244 * Copyright 2017 Google LLC 4245 * 4246 * Licensed under the Apache License, Version 2.0 (the "License"); 4247 * you may not use this file except in compliance with the License. 4248 * You may obtain a copy of the License at 4249 * 4250 * http://www.apache.org/licenses/LICENSE-2.0 4251 * 4252 * Unless required by applicable law or agreed to in writing, software 4253 * distributed under the License is distributed on an "AS IS" BASIS, 4254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4255 * See the License for the specific language governing permissions and 4256 * limitations under the License. 4257 */const RW="repo_interrupt",CW=25;class PW{constructor(e,n,r,o){this.repoInfo_=e,this.forceRestClient_=n,this.authTokenProvider_=r,this.appCheckProvider_=o,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new TW,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=r_(),this.transactionQueueTree_=new lb,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function SW(t,e,n){if(t.stats_=YE(t.repoInfo_),t.forceRestClient_||Az())t.server_=new n_(t.repoInfo_,(r,o,i,s)=>{Jx(t,r,o,i,s)},t.authTokenProvider_,t.appCheckProvider_),setTimeout(()=>Zx(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{hn(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}t.persistentConnection_=new Qi(t.repoInfo_,e,(r,o,i,s)=>{Jx(t,r,o,i,s)},r=>{Zx(t,r)},r=>{DW(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_=Sz(t.repoInfo_,()=>new Pq(t.stats_,t.server_)),t.infoData_=new Aq,t.infoSyncTree_=new Yx({startListening:(r,o,i,s)=>{let a=[];const c=t.infoData_.getNode(r._path);return c.isEmpty()||(a=cm(t.infoSyncTree_,r._path,c),setTimeout(()=>{s("ok")},0)),a},stopListening:()=>{}}),db(t,"connected",!1),t.serverSyncTree_=new Yx({startListening:(r,o,i,s)=>(t.server_.listen(r,i,o,(a,c)=>
4257{const l=s(a,c);rc(t.eventQueue_,r._path,l)}),[]),stopListening:(r,o)=>{t.server_.unlisten(r,o)}})}function OW(t){const n=t.infoData_.getNode(new Ct(".info/serverTimeOffset")).val()||0;return new Date().getTime()+n}function ck(t){return uW({timestamp:OW(t)})}function Jx(t,e,n,r,o){t.dataUpdateCount++;const i=new Ct(e);n=t.interceptServerDataCallback_?t.interceptServerDataCallback_(e,n):n;let s=[];if(o)if(r){const c=Dp(n,l=>Cn(l));s=lW(t.serverSyncTree_,i,c,o)}else{const c=Cn(n);s=cW(t.serverSyncTree_,i,c,o)}else if(r){const c=Dp(n,l=>Cn(l));s=aW(t.serverSyncTree_,i,c)}else{const c=Cn(n);s=cm(t.serverSyncTree_,i,c)}let a=i;s.length>0&&(a=fb(t,i)),rc(t.eventQueue_,a,s)}function Zx(t,e){db(t,"connected",e),e===!1&&kW(t)}function DW(t,e){yr(e,(n,r)=>{db(t,n,r)})}function db(t,e,n){const r=new Ct("/.info/"+e),o=Cn(n);t.infoData_.updateSnapshot(r,o);const i=cm(t.infoSyncTree_,r,o);rc(t.eventQueue_,r,i)}function LW(t){return t.nextWriteId_++}function kW(t){lk(t,"onDisconnectEvents");const e=ck(t),n=r_();ry(t.onDisconnect_,pt(),(o,i)=>{const s=fW(o,i,t.serverSyncTree_,e);VL(n,o,s)});let r=[];ry(n,pt(),(o,i)=>{r=r.concat(cm(t.serverSyncTree_,o,i));const s=MW(t,o);fb(t,s)}),t.onDisconnect_=r_(),rc(t.eventQueue_,pt(),r)}function NW(t){t.persistentConnection_&&t.persistentConnection_.interrupt(RW)}function lk(t,...e){let n="";t.persistentConnection_&&(n=t.persistentConnection_.id+":"),Rn(n,...e)}function uk(t,e,n){return XL(t.serverSyncTree_,e,n)||lt.EMPTY_NODE}function hb(t,e=t.transactionQueueTree_){if(e||dm(t,e),Dl(e)){const n=hk(t,e);Ae(n.length>0,"Sending zero length transaction queue"),n.every(o=>o.status===0)&&VW(t,Xd(e),n)}else ok(e)&&um(e,n=>{hb(t,n)})}function VW(t,e,n){const r=n.map(l=>l.currentWriteId),o=uk(t,e,r);let i=o;const s=o.hash();for(let l=0;l<n.length;l++){const u=n[l];Ae(u.status===0,"tryToSendTransactionQueue_: items in queue should all be run."),u.status=1,u.retryCount++;const d=dr(e,u.path);i=i.updateChild(d,u.currentOutputSnapshotRaw)}const a=i.val(!0),c=e;t.server_.put(c.toString(),a,l=>{lk(t,"transaction put response",{path:c.toString(),status:l});let u=[];if(l==="ok"){const d=[];for(let f=0;f<n.length;f++)n[f].status=2,u=u.concat(Cc(t.serverSyncTree_,n[f].currentWriteId)),n[f].onComplete&&d.push(()=>n[f].onComplete(null,!0,n[f].currentOutputSnapshotResolved)),n[f].unwatcher();dm(t,ub(t.transactionQueueTree_,e)),hb(t,t.transactionQueueTree_),rc(t.eventQueue_,e,u);for(let f=0;f<d.length;f++)Qd(d[f])}else{if(l==="datastale")for(let d=0;d<n.length;d++)n[d].status===3?n[d].status=4:n[d].status=0;else{ir("transaction at "+c.toString()+" failed: "+l);for(let d=0;d<n.length;d++)n[d].status=4,n[d].abortReason=l}fb(t,e)}},s)}function fb(t,e){const n=dk(t,e),r=Xd(n),o=hk(t,n);return FW(t,o,r),r}function FW(t,e,n){if(e.length===0)return;const r=[];let o=[];const s=e.filter(a=>a.status===0).map(a=>a.currentWriteId);for(let a=0;a<e.length;a++){const c=e[a],l=dr(n,c.path);let u=!1,d;if(Ae(l!==null,"rerunTransactionsUnderNode_: relativePath should not be null."),c.status===4)u=!0,d=c.abortReason,o=o.concat(Cc(t.serverSyncTree_,c.currentWriteId,!0));else if(c.status===0)if(c.retryCount>=CW)u=!0,d="maxretry",o=o.concat(Cc(t.serverSyncTree_,c.currentWriteId,!0));else{const f=uk(t,c.path,s);c.currentInputSnapshot=f;const _=e[a].update(f.val());if(_!==void 0){ak("transaction failed: Data returned ",_,c.path);let m=Cn(_);typeof _=="object"&&_!=null&&ls(_,".priority")||(m=m.updatePriority(f.getPriority()));const v=c.currentWriteId,T=ck(t),w=pW(m,f,T);c.currentOutputSnapshotRaw=m,c.currentOutputSnapshotResolved=w,c.currentWriteId=LW(t),s.splice(s.indexOf(v),1),o=o.concat(sW(t.serverSyncTree_,c.path,w,c.currentWriteId,c.applyLocally)),o=o.concat(Cc(t.serverSyncTree_,v,!0))}else u=!0,d="nodata",o=o.concat(Cc(t.serverSyncTree_,c.currentWriteId,!0))}rc(t.eventQueue_,n,o),o=[],u&&(e[a].status=2,(function(f){setTimeout(f,Math.floor(0))})(e[a].unwatcher),e[a].onComplete&&(d==="nodata"?r.push(()=>e[a].onComplete(null,!1,e[a].currentInputSnapshot)):r.push(()=>e[a].onComplete(new Error(d),!1,null))))}dm(t,t.transactionQueueTree_);for(let a=0;a<r.length;a++)Qd(r[a]);hb(t,t.transactionQueueTree_)}function dk(t,e){let n,r=t.transactionQueueTree_;
4257for(n=Qe(e);n!==null&&Dl(r)===void 0;)r=ub(r,n),e=xt(e),n=Qe(e);return r}function hk(t,e){const n=[];return fk(t,e,n),n.sort((r,o)=>r.order-o.order),n}function fk(t,e,n){const r=Dl(e);if(r)for(let o=0;o<r.length;o++)n.push(r[o]);um(e,o=>{fk(t,o,n)})}function dm(t,e){const n=Dl(e);if(n){let r=0;for(let o=0;o<n.length;o++)n[o].status!==2&&(n[r]=n[o],r++);n.length=r,rk(e,n.length>0?n:void 0)}um(e,r=>{dm(t,r)})}function MW(t,e){const n=Xd(dk(t,e)),r=ub(t.transactionQueueTree_,e);return mW(r,o=>{P0(t,o)}),P0(t,r),ik(r,o=>{P0(t,o)}),n}function P0(t,e){const n=Dl(e);if(n){const r=[];let o=[],i=-1;for(let s=0;s<n.length;s++)n[s].status===3||(n[s].status===1?(Ae(i===s-1,"All SENT items should be at beginning of queue."),i=s,n[s].status=3,n[s].abortReason="set"):(Ae(n[s].status===0,"Unexpected transaction status in abort"),n[s].unwatcher(),o=o.concat(Cc(t.serverSyncTree_,n[s].currentWriteId,!0)),n[s].onComplete&&r.push(n[s].onComplete.bind(null,new Error("set"),!1,null))));i===-1?rk(e,void 0):n.length=i+1,rc(t.eventQueue_,Xd(e),o);for(let s=0;s<r.length;s++)Qd(r[s])}}/** 4258 * @license 4259 * Copyright 2017 Google LLC 4260 * 4261 * Licensed under the Apache License, Version 2.0 (the "License"); 4262 * you may not use this file except in compliance with the License. 4263 * You may obtain a copy of the License at 4264 * 4265 * http://www.apache.org/licenses/LICENSE-2.0 4266 * 4267 * Unless required by applicable law or agreed to in writing, software 4268 * distributed under the License is distributed on an "AS IS" BASIS, 4269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4270 * See the License for the specific language governing permissions and 4271 * limitations under the License. 4272 */function BW(t){let e="";const n=t.split("/");for(let r=0;r<n.length;r++)if(n[r].length>0){let o=n[r];try{o=decodeURIComponent(o.replace(/\+/g," "))}catch{}e+="/"+o}return e}function UW(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]):ir(`Invalid query segment '${n}' in query '${t}'`)}return e}const eI=function(t,e){const n=$W(t),r=n.namespace;n.domain==="firebase.com"&&$a(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!r||r==="undefined")&&n.domain!=="localhost"&&$a("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||mz();const o=n.scheme==="ws"||n.scheme==="wss";return{repoInfo:new Rz(n.host,n.secure,r,o,e,"",r!==n.subdomain),path:new Ct(n.pathString)}},$W=function(t){let e="",n="",r="",o="",i="",s=!0,a="https",c=443;if(typeof t=="string"){let l=t.indexOf("//");l>=0&&(a=t.substring(0,l-1),t=t.substring(l+2));let u=t.indexOf("/");u===-1&&(u=t.length);let d=t.indexOf("?");d===-1&&(d=t.length),e=t.substring(0,Math.min(u,d)),u<d&&(o=BW(t.substring(u,d)));const f=UW(t.substring(Math.min(t.length,d)));l=e.indexOf(":"),l>=0?(s=a==="https"||a==="wss",c=parseInt(e.substring(l+1),10)):l=e.length;const _=e.slice(0,l);if(_.toLowerCase()==="localhost")n="localhost";else if(_.split(".").length<=2)n=_;else{const m=e.indexOf(".");r=e.substring(0,m).toLowerCase(),n=e.substring(m+1),i=r}"ns"in f&&(i=f.ns)}return{host:e,port:c,domain:n,subdomain:r,secure:s,scheme:a,pathString:o,namespace:i}};/** 4273 * @license 4274 * Copyright 2020 Google LLC 4275 * 4276 * Licensed under the Apache License, Version 2.0 (the "License"); 4277 * you may not use this file except in compliance with the License. 4278 * You may obtain a copy of the License at 4279 * 4280 * http://www.apache.org/licenses/LICENSE-2.0 4281 * 4282 * Unless required by applicable law or agreed to in writing, software 4283 * distributed under the License is distributed on an "AS IS" BASIS, 4284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4285 * See the License for the specific language governing permissions and 4286 * limitations under the License. 4287 */class pb{constructor(e,n,r,o){this._repo=e,this._path=n,this._queryParams=r,this._orderByCalled=o}get key(){return We(this._path)?null:IL(this._path)}get ref(){return new Ll(this._repo,this._path)}get _queryIdentifier(){const e=Bx(this._queryParams),n=GE(e);return n==="{}"?"default":n}
4287get _queryObject(){return Bx(this._queryParams)}isEqual(e){if(e=kn(e),!(e instanceof pb))return!1;const n=this._repo===e._repo,r=PL(this._path,e._path),o=this._queryIdentifier===e._queryIdentifier;return n&&r&&o}toJSON(){return this.toString()}toString(){return this._repo.toString()+Zz(this._path)}}class Ll extends pb{constructor(e,n){super(e,n,new eb,!1)}get parent(){const e=CL(this._path);return e===null?null:new Ll(this._repo,e)}get root(){let e=this;for(;e.parent!==null;)e=e.parent;return e}}oW(Ll);iW(Ll);/** 4288 * @license 4289 * Copyright 2020 Google LLC 4290 * 4291 * Licensed under the Apache License, Version 2.0 (the "License"); 4292 * you may not use this file except in compliance with the License. 4293 * You may obtain a copy of the License at 4294 * 4295 * http://www.apache.org/licenses/LICENSE-2.0 4296 * 4297 * Unless required by applicable law or agreed to in writing, software 4298 * distributed under the License is distributed on an "AS IS" BASIS, 4299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4300 * See the License for the specific language governing permissions and 4301 * limitations under the License. 4302 */const jW="FIREBASE_DATABASE_EMULATOR_HOST",dy={};let HW=!1;function zW(t,e,n,r,o){let i=r||t.options.databaseURL;i===void 0&&(t.options.projectId||$a("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),Rn("Using default host for project ",t.options.projectId),i=`${t.options.projectId}-default-rtdb.firebaseio.com`);let s=eI(i,o),a=s.repoInfo,c;typeof process<"u"&&Ex&&(c=Ex[jW]),c?(i=`http://${c}?ns=${a.namespace}`,s=eI(i,o),a=s.repoInfo):s.repoInfo.secure;const l=new Iz(t.name,t.options,e);wW("Invalid Firebase Database URL",s),We(s.path)||$a("Database URL must point to the root of a Firebase Database (not including a child path).");const u=WW(a,t,l,new xz(t.name,n));return new KW(u,t)}function qW(t,e){const n=dy[e];(!n||n[t.key]!==t)&&$a(`Database ${e}(${t.repoInfo_}) has already been deleted.`),NW(t),delete n[t.key]}function WW(t,e,n,r){let o=dy[e.name];o||(o={},dy[e.name]=o);let i=o[t.toURLString()];return i&&$a("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new PW(t,HW,n,r),o[t.toURLString()]=i,i}class KW{constructor(e,n){this._repoInternal=e,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(SW(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Ll(this._repo,pt())),this._rootInternal}_delete(){return this._rootInternal!==null&&(qW(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){this._rootInternal===null&&$a("Cannot call "+e+" on a deleted database.")}}/** 4303 * @license 4304 * Copyright 2021 Google LLC 4305 * 4306 * Licensed under the Apache License, Version 2.0 (the "License"); 4307 * you may not use this file except in compliance with the License. 4308 * You may obtain a copy of the License at 4309 * 4310 * http://www.apache.org/licenses/LICENSE-2.0 4311 * 4312 * Unless required by applicable law or agreed to in writing, software 4313 * distributed under the License is distributed on an "AS IS" BASIS, 4314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4315 * See the License for the specific language governing permissions and 4316 * limitations under the License. 4317 */function GW(t){uz(Ys),_i(new Br("database",(e,{instanceIdentifier:n})=>{const r=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return zW(r,o,i,n)},"PUBLIC").setMultipleInstances(!0)),or(bx,wx,t),or(bx,wx,"esm2017")}Qi.prototype.simpleListen=function(t,e){this.sendRequest("q",{p:t},e)};Qi.prototype.echo=function(t,e){this.sendRequest("echo",{d:t},e)};GW();/** 4318 * @license 4319 * Copyright 2017 Google LLC 4320 * 4321 * Licensed under the Apache License, Version 2.0 (the "License"); 4322 * you may not use this file except in compliance with the License. 4323 * You may obtain a copy of the License at 4324 * 4325 * http://www.apache.org/licenses/LICENSE-2.0 4326 * 4327 * Unless required by applicable law or agreed to in writing, softw
4327are 4328 * distributed under the License is distributed on an "AS IS" BASIS, 4329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4330 * See the License for the specific language governing permissions and 4331 * limitations under the License. 4332 */const pk="firebasestorage.googleapis.com",QW="storageBucket",YW=120*1e3,XW=600*1e3;/** 4333 * @license 4334 * Copyright 2017 Google LLC 4335 * 4336 * Licensed under the Apache License, Version 2.0 (the "License"); 4337 * you may not use this file except in compliance with the License. 4338 * You may obtain a copy of the License at 4339 * 4340 * http://www.apache.org/licenses/LICENSE-2.0 4341 * 4342 * Unless required by applicable law or agreed to in writing, software 4343 * distributed under the License is distributed on an "AS IS" BASIS, 4344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4345 * See the License for the specific language governing permissions and 4346 * limitations under the License. 4347 */class Ei extends yi{constructor(e,n,r=0){super(S0(e),`Firebase Storage: ${n} (${S0(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,Ei.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return S0(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 4348${this.customData.serverResponse}`:this.message=this._baseMessage}}var gi;(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"})(gi||(gi={}));function S0(t){return"storage/"+t}function JW(){const t="An unknown error occurred, please check the error payload for server response.";return new Ei(gi.UNKNOWN,t)}function ZW(){return new Ei(gi.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function eK(){return new Ei(gi.CANCELED,"User canceled the upload/download.")}function tK(t){return new Ei(gi.INVALID_URL,"Invalid URL '"+t+"'.")}function nK(t){return new Ei(gi.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function tI(t){return new Ei(gi.INVALID_ARGUMENT,t)}function _k(){return new Ei(gi.APP_DELETED,"The Firebase app was deleted.")}function rK(t){return new Ei(gi.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').")}/** 4349 * @license 4350 * Copyright 2017 Google LLC 4351 * 4352 * Licensed under the Apache License, Version 2.0 (the "License"); 4353 * you may not use this file except in compliance with the License. 4354 * You may obtain a copy of the License at 4355 * 4356 * http://www.apache.org/licenses/LICENSE-2.0 4357 * 4358 * Unless required by applicable law or agreed to in writing, software 4359 * distributed under the License is distributed on an "AS IS" BASIS, 4360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4361 * See the License for the specific language governing permissions and 4362 * limitations under the License. 4363 */class Dr{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=Dr.makeFromUrl(e,n)}catch{return new Dr(e,"")}if(r.path==="")return r;throw nK(e)}static makeFromUrl(e,n){let r=null;const o="([A-Za-z0-9.\\-_]+)";
4363function i(E){E.path.charAt(E.path.length-1)==="/"&&(E.path_=E.path_.slice(0,-1))}const s="(/(.*))?$",a=new RegExp("^gs://"+o+s,"i"),c={bucket:1,path:3};function l(E){E.path_=decodeURIComponent(E.path)}const u="v[A-Za-z0-9_]+",d=n.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",_=new RegExp(`^https?://${d}/${u}/b/${o}/o${f}`,"i"),m={bucket:1,path:3},y=n===pk?"(?:storage.googleapis.com|storage.cloud.google.com)":n,v="([^?#]*)",T=new RegExp(`^https?://${y}/${o}/${v}`,"i"),g=[{regex:a,indices:c,postModify:i},{regex:_,indices:m,postModify:l},{regex:T,indices:{bucket:1,path:2},postModify:l}];for(let E=0;E<g.length;E++){const C=g[E],L=C.regex.exec(e);if(L){const A=L[C.indices.bucket];let I=L[C.indices.path];I||(I=""),r=new Dr(A,I),C.postModify(r);break}}if(r==null)throw tK(e);return r}}class oK{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}/** 4364 * @license 4365 * Copyright 2017 Google LLC 4366 * 4367 * Licensed under the Apache License, Version 2.0 (the "License"); 4368 * you may not use this file except in compliance with the License. 4369 * You may obtain a copy of the License at 4370 * 4371 * http://www.apache.org/licenses/LICENSE-2.0 4372 * 4373 * Unless required by applicable law or agreed to in writing, software 4374 * distributed under the License is distributed on an "AS IS" BASIS, 4375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4376 * See the License for the specific language governing permissions and 4377 * limitations under the License. 4378 */function iK(t,e,n){let r=1,o=null,i=null,s=!1,a=0;function c(){return a===2}let l=!1;function u(...v){l||(l=!0,e.apply(null,v))}function d(v){o=setTimeout(()=>{o=null,t(_,c())},v)}function f(){i&&clearTimeout(i)}function _(v,...T){if(l){f();return}if(v){f(),u.call(null,v,...T);return}if(c()||s){f(),u.call(null,v,...T);return}r<64&&(r*=2);let g;a===1?(a=2,g=0):g=(r+Math.random())*1e3,d(g)}let m=!1;function y(v){m||(m=!0,f(),!l&&(o!==null?(v||(a=2),clearTimeout(o),d(0)):v||(a=1)))}return d(0),i=setTimeout(()=>{s=!0,y(!0)},n),y}function sK(t){t(!1)}/** 4379 * @license 4380 * Copyright 2017 Google LLC 4381 * 4382 * Licensed under the Apache License, Version 2.0 (the "License"); 4383 * you may not use this file except in compliance with the License. 4384 * You may obtain a copy of the License at 4385 * 4386 * http://www.apache.org/licenses/LICENSE-2.0 4387 * 4388 * Unless required by applicable law or agreed to in writing, software 4389 * distributed under the License is distributed on an "AS IS" BASIS, 4390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4391 * See the License for the specific language governing permissions and 4392 * limitations under the License. 4393 */function aK(t){return t!==void 0}function nI(t,e,n,r){if(r<e)throw tI(`Invalid value for '${t}'. Expected ${e} or greater.`);if(r>n)throw tI(`Invalid value for '${t}'. Expected ${n} or less.`)}function cK(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const o=e(r)+"="+e(t[r]);n=n+o+"&"}return n=n.slice(0,-1),n}var a_;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(a_||(a_={}));/** 4394 * @license 4395 * Copyright 2022 Google LLC 4396 * 4397 * Licensed under the Apache License, Version 2.0 (the "License"); 4398 * you may not use this file except in compliance with the License. 4399 * You may obtain a copy of the License at 4400 * 4401 * http://www.apache.org/licenses/LICENSE-2.0 4402 * 4403 * Unless required by applicable law or agreed to in writing, software 4404 * distributed under the License is distributed on an "AS IS" BASIS, 4405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4406 * See the License for the specific language governing permissions and 4407 * limitations under the License. 4408 */function lK(t,e){const n=t>=500&&t<600,o=[408,429].indexOf(t)!==-1,i=e.indexOf(t)!==-1;return n||o||i}/** 4409 * @license 4410 * Copyright 2017 Google LLC 4411 * 4412 * Licensed under the Apache License, Version 2.0 (the "License"); 4413 * you may not use this file except in compliance with the License. 4414 * You may obtain a copy of the License at 4415 * 4416 * http://www.apache.org/licenses/LICENSE-2.0 4417 * 4418 * Unless required by applicable law or agreed to in writing, softw
4418are 4419 * distributed under the License is distributed on an "AS IS" BASIS, 4420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4421 * See the License for the specific language governing permissions and 4422 * limitations under the License. 4423 */class uK{constructor(e,n,r,o,i,s,a,c,l,u,d,f=!0){this.url_=e,this.method_=n,this.headers_=r,this.body_=o,this.successCodes_=i,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=c,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((_,m)=>{this.resolve_=_,this.reject_=m,this.start_()})}start_(){const e=(r,o)=>{if(o){r(!1,new Wh(!1,null,!0));return}const i=this.connectionFactory_();this.pendingConnection_=i;const s=a=>{const c=a.loaded,l=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(c,l)};this.progressCallback_!==null&&i.addUploadProgressListener(s),i.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&i.removeUploadProgressListener(s),this.pendingConnection_=null;const a=i.getErrorCode()===a_.NO_ERROR,c=i.getStatus();if(!a||lK(c,this.additionalRetryCodes_)&&this.retry){const u=i.getErrorCode()===a_.ABORT;r(!1,new Wh(!1,null,u));return}const l=this.successCodes_.indexOf(c)!==-1;r(!0,new Wh(l,i))})},n=(r,o)=>{const i=this.resolve_,s=this.reject_,a=o.connection;if(o.wasSuccessCode)try{const c=this.callback_(a,a.getResponse());aK(c)?i(c):i()}catch(c){s(c)}else if(a!==null){const c=JW();c.serverResponse=a.getErrorText(),this.errorCallback_?s(this.errorCallback_(a,c)):s(c)}else if(o.canceled){const c=this.appDelete_?_k():eK();s(c)}else{const c=ZW();s(c)}};this.canceled_?n(!1,new Wh(!1,null,!0)):this.backoffId_=iK(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&sK(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class Wh{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function dK(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function hK(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function fK(t,e){e&&(t["X-Firebase-GMPID"]=e)}function pK(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}function _K(t,e,n,r,o,i,s=!0){const a=cK(t.urlParams),c=t.url+a,l=Object.assign({},t.headers);return fK(l,e),dK(l,n),hK(l,i),pK(l,r),new uK(c,t.method,l,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,o,s)}/** 4424 * @license 4425 * Copyright 2017 Google LLC 4426 * 4427 * Licensed under the Apache License, Version 2.0 (the "License"); 4428 * you may not use this file except in compliance with the License. 4429 * You may obtain a copy of the License at 4430 * 4431 * http://www.apache.org/licenses/LICENSE-2.0 4432 * 4433 * Unless required by applicable law or agreed to in writing, software 4434 * distributed under the License is distributed on an "AS IS" BASIS, 4435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4436 * See the License for the specific language governing permissions and 4437 * limitations under the License. 4438 */function mK(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function gK(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/** 4439 * @license 4440 * Copyright 2019 Google LLC 4441 * 4442 * Licensed under the Apache License, Version 2.0 (the "License"); 4443 * you may not use this file except in compliance with the License. 4444 * You may obtain a copy of the License at 4445 * 4446 * http://www.apache.org/licenses/LICENSE-2.0 4447 * 4448 * Unless required by applicable law or agreed to in writing, software 4449 * distributed under the License is distributed on an "AS IS" BASIS, 4450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4451 * See the License for the specific language governing permissions and 4452 * limitations under the License. 4453 */class c_{constructor(e,n){this._service=e,n instanceof Dr?this._location=n:this._location=Dr.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new c_(e,n)}get root(){const e=new Dr(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return gK(this._location.path)}get storage(){return this._service}get parent(){const e=mK(this._location.path);if(e===null)return null;const n=new Dr(this._location.bucket,e);return new c_(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw rK(e)}}function rI(t,e){const n=e?.[QW];return n==null?null:Dr.makeFromBucketSpec(n,t)}class yK{constructor(e,n,r,o,i){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=o,this._firebaseVersion=i,this._bucket=null,this._host=pk,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=YW,this._maxUploadRetryTime=XW,this._requests=new Set,o!=null?this._bucket=Dr.makeFromBucketSpec(o,this._host):this._bucket=rI(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=Dr.makeFromBucketSpec(this._url,e):this._bucket=rI(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){nI("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){nI("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});
4453return 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 c_(this,e)}_makeRequest(e,n,r,o,i=!0){if(this._deleted)return new oK(_k());{const s=_K(e,this._appId,r,o,n,this._firebaseVersion,i);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(e,n){const[r,o]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,o).getPromise()}}const oI="@firebase/storage",iI="0.13.2";/** 4454 * @license 4455 * Copyright 2020 Google LLC 4456 * 4457 * Licensed under the Apache License, Version 2.0 (the "License"); 4458 * you may not use this file except in compliance with the License. 4459 * You may obtain a copy of the License at 4460 * 4461 * http://www.apache.org/licenses/LICENSE-2.0 4462 * 4463 * Unless required by applicable law or agreed to in writing, software 4464 * distributed under the License is distributed on an "AS IS" BASIS, 4465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4466 * See the License for the specific language governing permissions and 4467 * limitations under the License. 4468 */const vK="storage";function EK(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),o=t.getProvider("app-check-internal");return new yK(n,r,o,e,Ys)}function bK(){_i(new Br(vK,EK,"PUBLIC").setMultipleInstances(!0)),or(oI,iI,""),or(oI,iI,"esm2017")}bK();const O0=new WeakMap;function mk(t,e){return O0.has(e)||O0.set(e,{f:{},r:{},s:{},u:{}}),O0.get(e)}function wK(t,e,n,r){if(!t)return n;const[o,i]=gk(t);if(!o)return n;const s=mk(void 0,r)[o]||{},a=e||i;return a&&a in s?s[a]:n}function TK(t,e,n,r){if(!t)return;const[o,i]=gk(t);if(!o)return;const s=mk(void 0,r)[o],a=e||i;if(a)return n.then(c=>{s[a]=c}).catch(ii),a}function gk(t){return tz(t)||nz(t)?["f",t.path]:rz(t)?["r",t.toString()]:oz(t)?["s",t.toString()]:[]}const D0=new WeakMap;function AK(t,e,n){const r=Wd();D0.has(r)||D0.set(r,new Map);const o=D0.get(r),i=TK(e,n,t,r);return i&&o.set(i,t),i?()=>o.delete(i):ii}const xK={toFirestore(t){return t},fromFirestore(t,e){return t.exists()?Object.defineProperties(t.data(e),{id:{value:t.id}}):null}};function hy(t,e,n,r){if(!ZH(t))return[t,{}];const o=[{},{}],i=Object.keys(n).reduce((a,c)=>{const l=n[c];return a[l.path]=l.data(),a},{});function s(a,c,l,u){c=c||{};const[d,f]=u;Object.getOwnPropertyNames(a).forEach(_=>{const m=Object.getOwnPropertyDescriptor(a,_);m&&!m.enumerable&&Object.defineProperty(d,_,m)});for(const _ in a){const m=a[_];if(m==null||m instanceof Date||m instanceof Bt||m instanceof jd)d[_]=m;else if(KE(m)){const y=l+_;d[_]=y in n?c[_]:m.path,f[y]=m.converter?m:m.withConverter(r.converter)}else if(Array.isArray(m)){d[_]=Array(m.length);for(let y=0;y<m.length;y++){const v=m[y];v&&v.path in i&&(d[_][y]=i[v.path])}s(m,c[_]||d[_],l+_+".",[d[_],f])}else tc(m)?(d[_]={},s(m,c[_],l+_+".",[d[_],f])):d[_]=m}}return s(t,e,"",o),o}const _b={reset:!1,wait:!0,maxRefDepth:2,converter:xK,snapshotOptions:{serverTimestamps:"estimate"}};function l_(t){for(const e in t)t[e].unsub()}function fy(t,e,n,r,o,i,s,a,c){const[l,u]=hy(r.data(t.snapshotOptions),WE(e,n),o,t);i.set(e,n,l),py(t,e,n,o,u,i,s,a,c)}function IK({ref:t,target:e,path:n,depth:r,resolve:o,reject:i,ops:s},a){const c=Object.create(null);let l=ii;return a.once?VO(t).then(u=>{u.exists()?fy(a,e,n,u,c,s,r,o,i):(s.set(e,n,null),o())}).catch(i):l=RE(t,u=>{u.exists()?fy(a,e,n,u,c,s,r,o,i):(s.set(e,n,null),o())},i),()=>{l(),l_(c)}}function py(t,e,n,r,o,i,s,a,c){const l=Object.keys(o);if(Object.keys(r).filter(y=>l.indexOf(y)<0).forEach(y=>{r[y].unsub(),delete r[y]}),!l.length||++s>t.maxRefDepth)return a(n);let d=0;const f=l.length,_=Object.create(null);function m(y){y in _&&++d>=f&&a(n)}l.forEach(y=>{const v=r[y],T=o[y],w=`${n}.${y}`;if(_[w]=!0,v)if(v.path!==T.path)v.unsub();else return;r[y]={data:()=>WE(e,w),unsub:IK({ref:T,target:e,path:w,depth:s,ops:i,resolve:m.bind(null,w),reject:c},t),path:T.path}})}function RK(t,e,n,r,o,i){const s=Object.assign({},_b,i),{snapshotListenOptions:a,snapshotOptions:c,wait:l,once:u}=s,d="value";let f=Te(l?[]:t.value);l||n.set(t,d,[]);const _=r;let m,y=ii;const v=[],T={added:({newIndex:g,doc:E})=>{v.splice(g,0,Object.create(null));const C=v[g],[L,A]=hy(E.data(c),void 0,C,s);n.add(Ar(f),g,L),py(s,f,`${d}.${g}`,C,A,n,0,r.bind(null,E),o)},modified:({oldIndex:g,newIndex:E,doc:C})=>{const L=Ar(f),A=v[g],I=L[g],[R,x]=hy(C.data(c),I,A,s);v.splice(E,0,A),n.remove(L,g),n.add(L,E,R),py(s,f,`${d}.${E}`,A,x,n,0,r,o)},removed:({oldIndex:g})=>{const E=Ar(f);n.remove(E,g),l_(v.splice(g,1)[0])}};function w(g){const E=g.docChanges(a);if(!m&&E.length){m=!0;let C=0;const L=E.length,A=Object.create(null);for(let I=0;I<L;I++)A[E[I].doc.id]=!0;r=I=>{I&&I.id in A&&++C>=L&&(l&&(n.set(t,d,Ar(f)),f=t),_(Ar(f)),r=ii)}}E.forEach(C=>{T[C.type](C)}),E.length||(l&&(n.set(t,d,Ar(f)),f=t),r(Ar(f)))}return u?s9(e).then(w).catch(o):y=RE(e,w,o),g=>{if(y(),g){const E=typeof g=="function"?g():[];n.set(t,d,E)}v.forEach(l_)}}function CK(t,e,n,r,o,i){const s=Object.assign({},_b,i),a="value",c=Object.create(null);r=iz(r,()=>WE(t,a));let l=ii;function u(d){d.exists()?fy(s,t,a,d,c,n,0,r,o):(n.set(t,a,null),r(null))}return s.once?VO(e).then(u).catch(o):l=RE(e,u,o),d=>{if(l(),d){const f=typeof d=="function"?d():null;n.set(t,a,f)}l_(c)}}const sI=Symbol();function PK(t,e){let n=ii;const r=Object.assign({},_b,e),o=Ar(t),i=r.target||Te();az()&&(r.once=!0);const s=wK(o,r.ssrKey,sI,Wd()),a=s!==sI;a&&(i.value=s);let c=!a;const l=Te(!1),u=Te(),d=fi(),f=Ya();let _=ii;function m(){let T=Ar(t);const w=new Promise((g,E)=>{if(n(r.reset),!T)return n=ii,g(null);l.value=c,c=!0,T.converter||(T=T.withConverter(r.converter)),n=(KE(T)?CK:RK)(i,T,SK,g,E,r)}).catch(g=>(d.value===w&&(u.value=g),Promise.reject(g))).finally(()=>{d.value===w&&(l.value=!1)});d.value=w}let y=ii;(nt(t)||typeof t=="function")&&(y=Kt(t,m)),m(),o&&(_=AK(d.value,o,r.ssrKey)),Ut()&&Ev(()=>d.value),f&&jc(v);
4468function v(T=r.reset){y(),_(),n(T)}return Object.defineProperties(i,{error:{get:()=>u},data:{get:()=>i},pending:{get:()=>l},promise:{get:()=>d},stop:{get:()=>v}})}const SK={set:(t,e,n)=>XH(t,e,n),add:(t,e,n)=>t.splice(e,0,n),remove:(t,e)=>t.splice(e,1)};function rce(t,e){return PK(t,e)}function oce(t){return GU(Wd(t))}const mb=Symbol("VueFireAuth");function OK({dependencies:t,initialUser:e}){return(n,r)=>{const[o,i]=DK(n,r,e,t);lz(o,i)}}function DK(t,e,n,r,o=SD(t,r)){const i=cz(t,e).run(()=>Te(n));return eL.set(t,i),e.provide(mb,o),[i,o]}function LK(t){return YH?Rt(mb):null}function kK(t,{firebaseApp:e,modules:n=[]}){t.provide(ZD,e);for(const r of n)r(e,t)}const NK=()=>rt().$firebaseApp,VK=t=>nL(NK().name);/*! 4469 * pinia v2.3.1 4470 * (c) 2025 Eduardo San Martin Morote 4471 * @license MIT 4472 */let yk;const Jd=t=>yk=t,vk=Symbol();function _y(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Fu;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Fu||(Fu={}));function FK(){const t=Qa(!0),e=t.run(()=>Te({}));let n=[],r=[];const o=Hc({install(i){Jd(o),o._a=i,i.provide(vk,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return o}const Ek=()=>{};function aI(t,e,n,r=Ek){t.push(e);const o=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),r())};return!n&&Ya()&&jc(o),o}function yc(t,...e){t.slice().forEach(n=>{n(...e)})}const MK=t=>t(),cI=Symbol(),L0=Symbol();function my(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],o=t[n];_y(o)&&_y(r)&&t.hasOwnProperty(n)&&!nt(r)&&!Nr(r)?t[n]=my(o,r):t[n]=r}return t}const BK=Symbol();function UK(t){return!_y(t)||!t.hasOwnProperty(BK)}const{assign:bs}=Object;function $K(t){return!!(nt(t)&&t.effect)}function jK(t,e,n,r){const{state:o,actions:i,getters:s}=e,a=n.state.value[t];let c;function l(){a||(n.state.value[t]=o?o():{});const u=u1(n.state.value[t]);return bs(u,i,Object.keys(s||{}).reduce((d,f)=>(d[f]=Hc(xe(()=>{Jd(n);const _=n._s.get(t);return s[f].call(_,_)}
4472)),d),{}))}return c=bk(t,l,e,n,r,!0),c}function bk(t,e,n={},r,o,i){let s;const a=bs({actions:{}},n),c={deep:!0};let l,u,d=[],f=[],_;const m=r.state.value[t];!i&&!m&&(r.state.value[t]={}),Te({});let y;function v(I){let R;l=u=!1,typeof I=="function"?(I(r.state.value[t]),R={type:Fu.patchFunction,storeId:t,events:_}):(my(r.state.value[t],I),R={type:Fu.patchObject,payload:I,storeId:t,events:_});const x=y=Symbol();sr().then(()=>{y===x&&(l=!0)}),u=!0,yc(d,R,r.state.value[t])}const T=i?function(){const{state:R}=n,x=R?R():{};this.$patch(D=>{bs(D,x)})}:Ek;function w(){s.stop(),d=[],f=[],r._s.delete(t)}const g=(I,R="")=>{if(cI in I)return I[L0]=R,I;const x=function(){Jd(r);const D=Array.from(arguments),S=[],O=[];function ae(j){S.push(j)}function le(j){O.push(j)}yc(f,{args:D,name:x[L0],store:C,after:ae,onError:le});let B;try{B=I.apply(this&&this.$id===t?this:C,D)}catch(j){throw yc(O,j),j}return B instanceof Promise?B.then(j=>(yc(S,j),j)).catch(j=>(yc(O,j),Promise.reject(j))):(yc(S,B),B)};return x[cI]=!0,x[L0]=R,x},E={_p:r,$id:t,$onAction:aI.bind(null,f),$patch:v,$reset:T,$subscribe(I,R={}){const x=aI(d,I,R.detached,()=>D()),D=s.run(()=>Kt(()=>r.state.value[t],S=>{(R.flush==="sync"?u:l)&&I({storeId:t,type:Fu.direct,events:_},S)},bs({},c,R)));return x},$dispose:w},C=Er(E);r._s.set(t,C);const A=(r._a&&r._a.runWithContext||MK)(()=>r._e.run(()=>(s=Qa()).run(()=>e({action:g}))));for(const I in A){const R=A[I];if(nt(R)&&!$K(R)||Nr(R))i||(m&&UK(R)&&(nt(R)?R.value=m[I]:my(R,m[I])),r.state.value[t][I]=R);else if(typeof R=="function"){const x=g(R,I);A[I]=x,a.actions[I]=R}}return bs(C,A),bs(je(C),A),Object.defineProperty(C,"$state",{get:()=>r.state.value[t],set:I=>{v(R=>{bs(R,I)})}}),r._p.forEach(I=>{bs(C,s.run(()=>I({store:C,app:r._a,pinia:r,options:a})))}),m&&i&&n.hydrate&&n.hydrate(C.$state,m),l=!0,u=!0,C}/*! #__NO_SIDE_EFFECTS__ */function hm(t,e,n){let r,o;const i=typeof e=="function";typeof t=="string"?(r=t,o=i?n:e):(o=t,r=t.id);function s(a,c){const l=yl();return a=a||(l?Rt(vk,null):null),a&&Jd(a),a=yk,a._s.has(r)||(i?bk(r,e,o,a):jK(r,o,a)),a._s.get(r)}return s.$id=r,s}function ice(t){{const e=je(t),n={};for(const r in e){const o=e[r];o.effect?n[r]=xe({get:()=>t[r],set(i){t[r]=i}}):(nt(o)||Nr(o))&&(n[r]=P_(t,r))}return n}}var HK=Object.defineProperty,zK=(t,e,n)=>e in t?HK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Vn=(t,e,n)=>zK(t,typeof e!="symbol"?e+"":e,n);function qK(t){if(typeof document>"u")return;function e(){let n=document.head||document.getElementsByTagName("head")[0];if(!n)return;let r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}qK("
vendor: 13,512 bytes, line 4472
4472:where([data-sonner-toaster][dir=ltr]),:where(html[dir=ltr]){--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}:where([data-sonner-toaster][dir=rtl]),:where(html[dir=rtl]){--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);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;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted=true]){transform:translateY(-10px)}@media (hover:none) and (pointer:coarse){:where([data-sonner-toaster][data-lifted=true]){transform:none}}:where([data-sonner-toaster][data-x-position=right]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position=left]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position=center]){left:50%;transform:translateX(-50%)}:where([data-sonner-toaster][data-y-position=top]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position=bottom]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled=true]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast][data-y-position=top]){top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position=bottom]){bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise=true]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]){background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}:where([data-sonner-toast]) :where([data-disabled=true]){cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping=true])::before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping=false][data-removed=true])::before{content:'';position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast])::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted=true]){--y:translateY(0);opacity:1}:where([data-sonner-toast][data-expanded=false][data-front=false]){--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true])>*{opacity:0}:where([data-sonner-toast][data-visible=false]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted=true][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]){--y:translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]){--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]){--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed=true][data-front=false])::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
4472");let gy=0;class WK{constructor(){Vn(this,"subscribers"),Vn(this,"toasts"),Vn(this,"subscribe",e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)})),Vn(this,"publish",e=>
4472{this.subscribers.forEach(n=>n(e))}),Vn(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),Vn(this,"create",e=>{var n;const{message:r,...o}=e,i=typeof e.id=="number"||e.id&&((n=e.id)==null?void 0:n.length)>0?e.id:gy++,s=this.toasts.find(c=>c.id===i),a=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...e,id:i,title:r}),{...c,...e,id:i,dismissible:a,title:r}):c):this.addToast({title:r,...o,dismissible:a,id:i}),i}),Vn(this,"dismiss",e=>(e||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:e,dismiss:!0})),e)),Vn(this,"message",(e,n)=>this.create({...n,message:e,type:"default"})),Vn(this,"error",(e,n)=>this.create({...n,type:"error",message:e})),Vn(this,"success",(e,n)=>this.create({...n,type:"success",message:e})),Vn(this,"info",(e,n)=>this.create({...n,type:"info",message:e})),Vn(this,"warning",(e,n)=>this.create({...n,type:"warning",message:e})),Vn(this,"loading",(e,n)=>this.create({...n,type:"loading",message:e})),Vn(this,"promise",(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=e instanceof Promise?e:e();let i=r!==void 0,s;const a=o.then(async l=>{if(s=["resolve",l],GK(l)&&!l.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${l.status}`):n.error,d=typeof n.description=="function"?await n.description(`HTTP error! status: ${l.status}`):n.description;this.create({id:r,type:"error",message:u,description:d})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(l):n.success,d=typeof n.description=="function"?await n.description(l):n.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(l):n.error,d=typeof n.description=="function"?await n.description(l):n.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=n.finally)==null||l.call(n)}),c=()=>new Promise((l,u)=>a.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})}),Vn(this,"custom",(e,n)=>{const r=n?.id||gy++;return this.publish({component:e,id:r,...n}),r}),this.subscribers=[],this.toasts=[]}}const Zn=new WK;function KK(t,e){const n=e?.id||gy++;return Zn.create({message:t,id:n,type:"default",...e}),n}const GK=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",QK=KK,YK=()=>Zn.toasts,Rs=Object.assign(QK,{success:Zn.success,info:Zn.info,warning:Zn.warning,error:Zn.error,custom:Zn.custom,message:Zn.message,promise:Zn.promise,dismiss:Zn.dismiss,loading:Zn.loading},{getHistory:YK});function Kh(t){return t.label!==void 0}function XK(){const t=Te(!1);return Ds(()=>{const e=()=>{t.value=document.hidden};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),{isDocumentHidden:t}}const JK=["aria-live","data-rich-colors","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],ZK=["aria-label","data-disabled"],lI=4e3,eG=20,tG=200,nG=on({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function},defaultRichColors:{type:Boolean}},emits:["update:heights","removeToast"],setup(t,{emit:e}
4472){const n=t,r=e,o=Te(!1),i=Te(!1),s=Te(!1),a=Te(!1),c=Te(!1),l=Te(0),u=Te(0),d=Te(n.toast.duration||n.duration||lI),f=Te(null),_=Te(null),m=xe(()=>n.index===0),y=xe(()=>n.index+1<=n.visibleToasts),v=xe(()=>n.toast.type),T=xe(()=>n.toast.dismissible!==!1),w=xe(()=>n.toast.class||""),g=xe(()=>n.descriptionClass||""),E=n.toast.style||{},C=xe(()=>n.heights.findIndex(q=>q.toastId===n.toast.id)||0),L=xe(()=>n.toast.closeButton??n.closeButton);xe(()=>n.toast.duration||n.duration||lI);const A=Te(0),I=Te(0),R=Te(null),x=xe(()=>n.position.split("-")),D=xe(()=>x.value[0]),S=xe(()=>x.value[1]),O=xe(()=>typeof n.toast.title!="string"),ae=xe(()=>typeof n.toast.description!="string"),le=xe(()=>n.heights.reduce((q,be,Y)=>Y>=C.value?q:q+be.height,0)),B=XK(),j=xe(()=>n.toast.invert||n.invert),H=xe(()=>v.value==="loading"),ce=xe(()=>C.value*n.gap+le.value||0);es(()=>{if(!o.value)return;const q=_.value,be=q?.style.height;q.style.height="auto";const Y=q.getBoundingClientRect().height;q.style.height=be,u.value=Y;let ie;n.heights.find(he=>he.toastId===n.toast.id)?ie=n.heights.map(he=>he.toastId===n.toast.id?{...he,height:Y}:he):ie=[{toastId:n.toast.id,height:Y,position:n.toast.position},...n.heights],r("update:heights",ie)});function ue(){i.value=!0,l.value=ce.value;const q=n.heights.filter(be=>be.toastId!==n.toast.id);r("update:heights",q),setTimeout(()=>{r("removeToast",n.toast)},tG)}function W(){var q,be;if(H.value||!T.value)return{};ue(),(be=(q=n.toast).onDismiss)==null||be.call(q,n.toast)}function J(q){H.value||!T.value||(f.value=new Date,l.value=ce.value,q.target.setPointerCapture(q.pointerId),q.target.tagName!=="BUTTON"&&(s.value=!0,R.value={x:q.clientX,y:q.clientY}))}function ee(){var q,be,Y,ie,he;if(a.value||!T)return;R.value=null;const ge=Number(((q=_.value)==null?void 0:q.style.getPropertyValue("--swipe-amount").replace("px",""))||0),K=new Date().getTime()-((be=f.value)==null?void 0:be.getTime()),pe=Math.abs(ge)/K;if(Math.abs(ge)>=eG||pe>.11){l.value=ce.value,(ie=(Y=n.toast).onDismiss)==null||ie.call(Y,n.toast),ue(),a.value=!0,c.value=!1;return}(he=_.value)==null||he.style.setProperty("--swipe-amount","0px"),s.value=!1}function ne(q){var be,Y;if(!R.value||!T.value)return;const ie=q.clientY-R.value.y,he=((be=window.getSelection())==null?void 0:be.toString().length)>0,ge=D.value==="top"?Math.min(0,ie):Math.max(0,ie);Math.abs(ge)>0&&(c.value=!0),!he&&((Y=_.value)==null||Y.style.setProperty("--swipe-amount",`${ge}px`))}return Ds(q=>{if(n.toast.promise&&v.value==="loading"||n.toast.duration===1/0||n.toast.type==="loading")return;let be;const Y=()=>{if(I.value<A.value){const he=new Date().getTime()-A.value;d.value=d.value-he}I.value=new Date().getTime()},ie=()=>{d.value!==1/0&&(A.value=new Date().getTime(),be=setTimeout(()=>{var he,ge;(ge=(he=n.toast).onAutoClose)==null||ge.call(he,n.toast),ue()},d.value))};n.expanded||n.interacting||n.pauseWhenPageIsHidden&&B?Y():ie(),q(()=>{clearTimeout(be)})}),Kt(()=>n.toast.delete,()=>{n.toast.delete&&ue()},{deep:!0}),es(()=>{if(o.value=!0,_.value){const q=_.value.getBoundingClientRect().height;u.value=q;const be=[{toastId:n.toast.id,height:q,position:n.toast.position},...n.heights];r("update:heights",be)}}),Ja(()=>{if(_.value){const q=n.heights.filter(be=>be.toastId!==n.toast.id);r("update:heights",q)}}),(q,be)=>{var Y,ie,he,ge,K,pe,k,F,$,se,G,N,M,z,X,re,fe,U,Z,_e,ve,Ne,Me,it,st,gt,Vt;return Be(),Pt("li",{ref_key:"toastRef",ref:_,"aria-live":q.toast.important?"assertive":"polite","aria-atomic":"true",role:"status",tabindex:"0","data-sonner-toast":"true",class:Mn(q.cn(n.class,w.value,(Y=q.classes)==null?void 0:Y.toast,(ie=q.toast.classes)==null?void 0:ie.toast,(he=q.classes)==null?void 0:he[v.value],(K=(ge=q.toast)==null?void 0:ge.classes)==null?void 0:K[v.value])),"data-rich-colors":q.toast.richColors??q.defaultRichColors,"data-styled":!(q.toast.component||(pe=q.toast)!=null&&pe.unstyled||q.unstyled),"data-mounted":o.value,"data-promise":!!q.toast.promise,"data-removed":i.value,"data-visible":y.value,"data-y-position":D.value,"data-x-position":S.value,"data-index":q.index,"data-front":m.value,"data-swiping":s.value,"data-dismissible":T.value,"data-type":v.value,"data-invert":j.value,"data-swipe-out":a.value,"data-expanded":!!(q.expanded||q.expandByDefault&&o.value),style:ai({"--index":q.index,"--toasts-before":q.index,"--z-index":q.toasts.length-q.index,"--offset":`${i.value?l.value:ce.value}px`,"--initial-height":q.expandByDefault?"auto":`${u.value}px`,...q.style,...De(E)}),onPointerdown:J,onPointerup:ee,onPointermove:ne},[L.value&&!q.toast.component?(Be(),Pt("button",{key:0,"aria-label":q.closeButtonAriaLabel||"Close toast","data-disabled":H.value,"data-close-button":"true",class:Mn(q.cn((k=q.classes)==null?void 0:k.closeButton,($=(F=q.toast)==null?void 0:F.classes)==null?void 0:$.closeButton)),onClick:W},[(se=q.icons)!=null&&se.close?(Be(),tn(ga((G=q.icons)==null?void 0:G.close),{key:0})):tr(q.$slots,"close-icon",{key:1})],10,ZK)):ha("",!0),q.toast.component?(Be(),tn(ga(q.toast.component),Vs({key:1},q.toast.componentProps,{onCloseToast:W}),null,16)):(Be(),Pt(ft,{key:2},[v.value!=="default"||q.toast.icon||q.toast.promise?(Be(),Pt("div",{key:0,"data-icon":"",class:Mn(q.cn((N=q.classes)==null?void 0:N.icon,(z=(M=q.toast)==null?void 0:M.classes)==null?void 0:z.icon))}
4472,[q.toast.icon?(Be(),tn(ga(q.toast.icon),{key:0})):(Be(),Pt(ft,{key:1},[v.value==="loading"?tr(q.$slots,"loading-icon",{key:0}):v.value==="success"?tr(q.$slots,"success-icon",{key:1}):v.value==="error"?tr(q.$slots,"error-icon",{key:2}):v.value==="warning"?tr(q.$slots,"warning-icon",{key:3}):v.value==="info"?tr(q.$slots,"info-icon",{key:4}):ha("",!0)],64))],2)):ha("",!0),mr("div",{"data-content":"",class:Mn(q.cn((X=q.classes)==null?void 0:X.content,(fe=(re=q.toast)==null?void 0:re.classes)==null?void 0:fe.content))},[mr("div",{"data-title":"",class:Mn(q.cn((U=q.classes)==null?void 0:U.title,(Z=q.toast.classes)==null?void 0:Z.title))},[O.value?(Be(),tn(ga(q.toast.title),Hu(Vs({key:0},q.toast.componentProps)),null,16)):(Be(),Pt(ft,{key:1},[Zu(ya(q.toast.title),1)],64))],2),q.toast.description?(Be(),Pt("div",{key:0,"data-description":"",class:Mn(q.cn(q.descriptionClass,g.value,(_e=q.classes)==null?void 0:_e.description,(ve=q.toast.classes)==null?void 0:ve.description))},[ae.value?(Be(),tn(ga(q.toast.description),Hu(Vs({key:0},q.toast.componentProps)),null,16)):(Be(),Pt(ft,{key:1},[Zu(ya(q.toast.description),1)],64))],2)):ha("",!0)],2),q.toast.cancel?(Be(),Pt("button",{key:1,style:ai(q.toast.cancelButtonStyle||q.cancelButtonStyle),class:Mn(q.cn((Ne=q.classes)==null?void 0:Ne.cancelButton,(Me=q.toast.classes)==null?void 0:Me.cancelButton)),"data-button":"","data-cancel":"",onClick:be[0]||(be[0]=an=>{var Nn,Ot;De(Kh)(q.toast.cancel)&&T.value&&((Ot=(Nn=q.toast.cancel).onClick)==null||Ot.call(Nn,an),ue())})},ya(De(Kh)(q.toast.cancel)?(it=q.toast.cancel)==null?void 0:it.label:q.toast.cancel),7)):ha("",!0),q.toast.action?(Be(),Pt("button",{key:2,style:ai(q.toast.actionButtonStyle||q.actionButtonStyle),class:Mn(q.cn((st=q.classes)==null?void 0:st.actionButton,(gt=q.toast.classes)==null?void 0:gt.actionButton)),"data-button":"","data-action":"",onClick:be[1]||(be[1]=an=>{var Nn,Ot;De(Kh)(q.toast.action)&&(an.defaultPrevented||((Ot=(Nn=q.toast.action).onClick)==null||Ot.call(Nn,an),!an.defaultPrevented&&ue()))})},ya(De(Kh)(q.toast.action)?(Vt=q.toast.action)==null?void 0:Vt.label:q.toast.action),7)):ha("",!0)],64))],46,JK)}}}),Zd=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},rG={},oG={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};function iG(t,e){return Be(),Pt("svg",oG,e[0]||(e[0]=[mr("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),mr("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}const sG=Zd(rG,[["render",iG]]),aG=["data-visible"],cG={class:"sonner-spinner"},lG=on({__name:"Loader",props:{visible:{type:Boolean}},setup(t){const e=Array(12).fill(0);return(n,r)=>(Be(),Pt("div",{class:"sonner-loading-wrapper","data-visible":n.visible},[mr("div",cG,[(Be(!0),Pt(ft,null,mp(De(e),o=>(Be(),Pt("div",{key:`spinner-bar-${o}`,class:"sonner-loading-bar"}))),128))])],8,aG))}}),uG={},dG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function hG(t,e){return Be(),Pt("svg",dG,e[0]||(e[0]=[mr("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}const fG=Zd(uG,[["render",hG]]),pG={},_G={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function mG(t,e){return Be(),Pt("svg",_G,e[0]||(e[0]=[mr("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}const gG=Zd(pG,[["render",mG]]),yG={},vG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};function EG(t,e){return Be(),Pt("svg",vG,e[0]||(e[0]=[mr("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}
4472const bG=Zd(yG,[["render",EG]]),wG={},TG={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function AG(t,e){return Be(),Pt("svg",TG,e[0]||(e[0]=[mr("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}const xG=Zd(wG,[["render",AG]]),IG=["aria-label"],RG=["dir","data-theme","data-rich-colors","data-y-position","data-x-position","data-lifted"],CG=3,uI="32px",PG=356,SG=14,OG=typeof window<"u"&&typeof document<"u";function DG(...t){return t.filter(Boolean).join(" ")}const LG=on({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:SG},visibleToasts:{default:CG},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{default:()=>({})},offset:{default:uI},dir:{default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{type:Function,default:DG}},setup(t){const e=t;function n(){if(typeof window>"u"||typeof document>"u")return"ltr";const g=document.documentElement.getAttribute("dir");return g==="auto"||!g?window.getComputedStyle(document.documentElement).direction:g}const r=D1(),o=Te([]),i=xe(()=>(g,E)=>o.value.filter(C=>!C.position&&E===0||C.position===g)),s=xe(()=>{const g=o.value.filter(E=>E.position).map(E=>E.position);return g.length>0?Array.from(new Set([e.position].concat(g))):[e.position]}),a=Te([]),c=Te(!1),l=Te(!1),u=Te(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=Te(null),f=Te(null),_=Te(!1),m=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function y(g){var E;(E=o.value.find(C=>C.id===g.id))!=null&&E.delete||Zn.dismiss(g.id),o.value=o.value.filter(({id:C})=>C!==g.id)}function v(g){var E,C;_.value&&!((C=(E=g.currentTarget)==null?void 0:E.contains)!=null&&C.call(E,g.relatedTarget))&&(_.value=!1,f.value&&(f.value.focus({preventScroll:!0}),f.value=null))}function T(g){g.target instanceof HTMLElement&&g.target.dataset.dismissible==="false"||_.value||(_.value=!0,f.value=g.relatedTarget)}function w(g){g.target&&g.target instanceof HTMLElement&&g.target.dataset.dismissible==="false"||(l.value=!0)}return Ds(g=>{const E=Zn.subscribe(C=>{if(C.dismiss){o.value=o.value.map(L=>L.id===C.id?{...L,delete:!0}:L);return}sr(()=>{const L=o.value.findIndex(A=>A.id===C.id);L!==-1?o.value=[...o.value.slice(0,L),{...o.value[L],...C},...o.value.slice(L+1)]:o.value=[C,...o.value]})});g(E)}),Kt(()=>e.theme,g=>{if(g!=="system"){u.value=g;return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u.value="dark":u.value="light"),typeof window>"u")return;const E=window.matchMedia("(prefers-color-scheme: dark)");try{E.addEventListener("change",({matches:C})=>{C?u.value="dark":u.value="light"})}catch{E.addListener(({matches:C})=>{try{C?u.value="dark":u.value="light"}catch(L){console.error(L)}})}}),Ds(()=>{d.value&&f.value&&(f.value.focus({preventScroll:!0}),f.value=null,_.value=!1)}),Ds(()=>{o.value.length<=1&&(c.value=!1)}),Ds(g=>{function E(C){const L=e.hotkey.every(R=>C[R]||C.code===R),A=Array.isArray(d.value)?d.value[0]:d.value;L&&(c.value=!0,A?.focus());const I=document.activeElement===d.value||A?.contains(document.activeElement);C.code==="Escape"&&I&&(c.value=!1)}OG&&(document.addEventListener("keydown",E),g(()=>{document.removeEventListener("keydown",E)}))}),(g,E)=>(Be(),Pt("section",{"aria-label":`${g.containerAriaLabel} ${De(m)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(Be(!0),Pt(ft,null,mp(s.value,(C,L)=>{var A;return Be(),Pt("ol",Vs({key:C,ref_for:!0,ref_key:"listRef",ref:d,"data-sonner-toaster":"",class:e.class,dir:g.dir==="auto"?n():g.dir,tabIndex:-1,"data-theme":g.theme,"data-rich-colors":g.richColors,"data-y-position":C.split("-")[0],"data-x-position":C.split("-")[1],"data-lifted":c.value&&o.value.length>1&&!g.expand,style:{"--front-toast-height":`${(A=a.value[0])==null?void 0:A.height}px`,"--offset":typeof g.offset=="number"?`${g.offset}px`:g.offset||uI,"--width":`${PG}px`,"--gap":`${g.gap}px`,...g.style,...De(r).style}},g.$attrs,{onBlur:v,onFocus:T,onMouseenter:E[1]||(E[1]=()=>c.value=!0),onMousemove:E[2]||(E[2]=()=>c.value=!0),onMouseleave:E[3]||(E[3]=()=>{l.value||(c.value=!1)}),onPointerdown:w,onPointerup:E[4]||(E[4]=()=>l.value=!1)}),[(Be(!0),Pt(ft,null,mp(i.value(C,L),(I,R)=>{var x,D,S,O,ae,le,B,j,H;return Be(),tn(nG,{key:I.id,heights:a.value.filter(ce=>ce.position===I.position),icons:g.icons,index:R,toast:I,defaultRichColors:g.richColors,duration:((x=g.toastOptions)==null?void 0:x.duration)??g.duration,class:Mn(((D=g.toastOptions)==null?void 0:D.class)??""),descriptionClass:(S=g.toastOptions)==null?void 0:S.descriptionClass,invert:g.invert,visibleToasts:g.visibleToasts,closeButton:((O=g.toastOptions)==null?void 0:O.closeButton)??g.closeButton,interacting:l.value,position:C,style:ai((ae=g.toastOptions)==null?void 0:ae.style),unstyled:(le=g.toastOptions)==null?void 0:le.unstyled,classes:(B=g.toastOptions)==null?void 0:B.classes,cancelButtonStyle:(j=g.toastOptions)==null?void 0:j.cancelButtonStyle,actionButtonStyle:(H=g.toastOptions)==null?void 0:H.actionButtonStyle,toasts:o.value.filter(ce=>ce.position===I.position),expandByDefault:g.expand,gap:g.gap,expanded:c.value,pauseWhenPageIsHidden:g.pauseWhenPageIsHidden,cn:g.cn,"onUpdate:heights":E[0]||(E[0]=ce=>{a.value=ce}),onRemoveToast:y},{"close-icon":xr(()=>[tr(g.$slots,"close-icon",{},()=>[ot(sG)])]),"loading-icon":xr(()=>[tr(g.$slots,"loading-icon",{},()=>[ot(lG,{visible:I.type==="loading"},null,8,["visible"])])]),"success-icon":xr(()=>[tr(g.$slots,"success-icon",{},()=>[ot(fG)])]),"error-icon":xr(()=>[tr(g.$slots,"error-icon",{},()=>[ot(xG)])]),"warning-icon":xr(()=>[tr(g.$slots,"warning-icon",{},()=>[ot(bG)])]),"info-icon":xr(()=>[tr(g.$slots,"info-icon",{},()=>[ot(gG)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn"])}),128))],16,RG)}),128))],8,IG))}});function kG(){const t=mn(),e=LK(),n=s=>{if(!s)return!1;const a=s.message||s.data?.message||s.statusMessage||"";return a.includes("Firebase ID token has expired")||a.includes("auth/id-token-expired")||a.includes("ID token has expired")},r=async()=>{console.warn("[AuthenticatedFetch] Token expired, logging out...");try{e&&await m7(e),Rs.error("Your session has expired. Please log in again."),await t.push("/auth/login")}catch(s){console.error("[AuthenticatedFetch] Error during logout:",s),window.location.href="/auth/login"}},o=async(s,a={})=>{const c=await nL();if(!c)throw new Error("User not authenticated");const l=await c.getIdToken();try{return await $fetch(s,{...a,headers:{...a.headers,Authorization:`Bearer ${l}`}})}catch(u){throw n(u)?(await r(),new Error("Session expired")):u}};return{authenticatedFetch:o,authFetch:o}}const NG=["admin","admin-automation"];function k0(t){return t!==null&&NG.includes(t)}const al=hm("user",()=>{const{authenticatedFetch:t}=kG(),e=Te(null),n=Te(null),r=Te(null),o=Te(""),i=Te({}
4472),s=Te("idle"),a=Te(null),c=Te(!1),l=Te(null),u=xe(()=>!1),d=xe(()=>{const A=a.value;return A?k0(A.roleStaging)||k0(A.roleProduction):!1}),f=xe(()=>a.value?.roleStaging??null),_=xe(()=>a.value?.roleProduction??null),m=xe(()=>k0(a.value?.roleProduction??null));function y(A){o.value=A}function v(A){i.value=A}function T(A){e.value=A,A||(a.value=null,l.value=null)}async function w(){c.value=!0,l.value=null;try{const A=await t("/api/auth/me");return a.value=A,A}catch(A){return a.value=null,l.value=A instanceof Error?A:new Error(String(A)),null}finally{c.value=!1}}function g(){console.log("fetchUserData")}function E(A){n.value=A}function C(A){r.value=A}function L(A){s.value=A}return{setCerebroId:y,cerebroId:o,setConfig:v,userConfig:i,setUser:T,user:e,userData:n,onboardingUserData:r,paymentStatus:s,setUserData:E,setOnboardingData:C,fetchUserData:g,setPaymentStatus:L,isUserPro:u,authMe:a,authMeLoading:c,authMeError:l,fetchAuthMe:w,isAdmin:d,isProdAdmin:m,roleStaging:f,roleProduction:_}}),VG=async t=>{let e,n;if(!t.path.startsWith("/dashboard"))return;if(!([e,n]=Wn(()=>VK()),e=await e,n(),e))return Li({path:"/auth/login",query:{redirect:t.fullPath}});const o=al();if(!o.authMe&&!o.authMeLoading&&([e,n]=Wn(()=>o.fetchAuthMe()),await e,n()),o.authMeLoading)for(let s=0;s<50&&o.authMeLoading;s++)[e,n]=Wn(()=>new Promise(a=>setTimeout(a,100))),await e,n();if(!o.isAdmin)return Li("/")},FG=async t=>{let e,n;const r=([e,n]=Wn(()=>GO({path:t.path})),e=await e,n(),e);if(r.redirect)return cs(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},MG=[gj,VG,FG],yy={authenticated:()=>p(()=>import("./N5QvXC9e.js"),[],import.meta.url)};function BG(t,e,n){const{pathname:r,search:o,hash:i}=e,s=t.indexOf("#");if(s>-1){const l=i.includes(t.slice(s))?t.slice(s).length:1;let u=i.slice(l);return u[0]!=="/"&&(u="/"+u),_T(u,"")}const a=_T(r,t),c=!n||PB(a,n)?a:n;return c+(c.includes("?")?"":o)+i}const UG=$t({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,r=br().app.baseURL;const o=gs.history?.(r)??L$(r),i=gs.routes?([e,n]=Wn(()=>gs.routes(E0)),e=await e,n(),e??E0):E0;let s;const a=rj({...gs,scrollBehavior:(v,T,w)=>{if(T===cr){s=w;return}if(gs.scrollBehavior){if(a.options.scrollBehavior=gs.scrollBehavior,"scrollRestoration"in window.history){const g=a.beforeEach(()=>{g(),window.history.scrollRestoration="manual"})}return gs.scrollBehavior(v,cr,s||w)}},history:o,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const c=fi(a.currentRoute.value);a.afterEach((v,T)=>{c.value=T}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>c.value});const l=BG(r,window.location,t.payload.path),u=fi(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};t.hook("page:finish",d),a.afterEach((v,T)=>{v.matched[v.matched.length-1]?.components?.default===T.matched[T.matched.length-1]?.components?.default&&d()});const f={};for(const v in u.value)Object.defineProperty(f,v,{get:()=>u.value[v],enumerable:!0});t._route=Cr(f),t._middleware||={global:[],named:{}};const _=B_();a.afterEach(async(v,T,w)=>{delete t._processingMiddleware,!t.isHydrating&&_.value&&await t.runWithContext(R8),w&&await t.callHook("page:loading:end")});try{[e,n]=Wn(()=>a.isReady()),await e,n()}catch(v){[e,n]=Wn(()=>t.runWithContext(()=>fa(v))),await e,n()}const m=l!==a.currentRoute.value.fullPath?a.resolve(l):a.currentRoute.value;d();const y=t.payload.state._layout;return a.beforeEach(async(v,T)=>{await t.callHook("page:loading:start"),v.meta=Er(v.meta),t.isHydrating&&y&&!hi(v.meta.layout)&&(v.meta.layout=y),t._processingMiddleware=!0;{const w=new Set([...MG,...t._middleware.global]);for(const g of v.matched){const E=g.meta.middleware;if(E)for(const C of kE(E))w.add(C)}{const g=await t.runWithContext(()=>GO({path:v.path}));if(g.appMiddleware)for(const E in g.appMiddleware)g.appMiddleware[E]?w.add(E):w.delete(E)}for(const g of w){const E=typeof g=="string"?t._middleware.named[g]||await yy[g]?.().then(C=>C.default||C):g;if(!E)throw new Error(`Unknown route middleware: '${g}'.`);try{const C=await t.runWithContext(()=>E(v,T));if(!t.payload.serverRendered&&t.isHydrating&&(C===!1||C instanceof Error)){const L=C||Oa({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await t.runWithContext(()=>fa(L)),!1}if(C===!0)continue;if(C===!1)return C;if(C)return JP(C)&&C.fatal&&await t.runWithContext(()=>fa(C)),C}catch(C){const L=Oa(C);return L.fatal&&await t.runWithContext(()=>fa(L)),L}}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),a.afterEach(v=>{if(v.matched.length===0)return t.runWithContext(()=>fa(Oa({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>
4472{try{"name"in m&&(m.name=void 0),await a.replace({...m,force:!0}),a.options.scrollBehavior=gs.scrollBehavior}catch(v){await t.runWithContext(()=>fa(v))}}),{provide:{router:a}}}}),dI=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),sce=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),wk=t=>{const e=rt();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{dI(()=>t())}):dI(()=>t())},$G=$t(()=>{const t=mn();wk(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),jG=$t(t=>{let e;async function n(){let r;try{r=await KO()}catch(o){const i=o;if(!("status"in i&&(i.status===404||i.status===403)))throw i}e&&clearTimeout(e),e=setTimeout(n,wT);try{const o=await $fetch(Fv("builds/latest.json")+`?${Date.now()}`);o.id!==r?.id&&(t.hooks.callHook("app:manifest:update",o),e&&clearTimeout(e))}catch{}}wk(()=>{e=setTimeout(n,wT)})});function HG(t={}){const e=t.path||window.location.pathname;let n={};try{n=ed(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||n?.path!==e||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:rt().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const zG=$t({name:"nuxt:chunk-reload",setup(t){const e=mn(),n=br(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s=vl(n.app.baseURL,i.fullPath);HG({path:s,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(o)}),e.onError((i,s)=>{r.has(i)&&o(s)})}});/*! 4473 * shared v10.0.8 4474 * (c) 2025 kazuya kawaguchi 4475 * Released under the MIT License. 4476 */function qG(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const u_=typeof window<"u",Xs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),WG=(t,e,n)=>KG({l:t,k:e,s:n}),KG=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),qt=t=>typeof t=="number"&&isFinite(t),GG=t=>pm(t)==="[object Date]",d_=t=>pm(t)==="[object RegExp]",fm=t=>Xe(t)&&Object.keys(t).length===0,St=Object.assign,QG=Object.create,_t=(t=null)=>QG(t);let hI;const gb=()=>hI||(hI=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:_t());function fI(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function pI(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function YG(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,o,i)=>`${o}="${pI(i)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,o,i)=>`${o}='${pI(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{t=t.replace(r,"$1javascript:")}),t}const XG=Object.prototype.hasOwnProperty;function Lr(t,e){return XG.call(t,e)}const kt=Array.isArray,vt=t=>typeof t=="function",we=t=>typeof t=="string",Dt=t=>typeof t=="boolean",Je=t=>t!==null&&typeof t=="object",JG=t=>Je(t)&&vt(t.then)&&vt(t.catch),Tk=Object.prototype.toString,pm=t=>Tk.call(t),Xe=t=>pm(t)==="[object Object]",ZG=t=>t==null?"":kt(t)||Xe(t)&&t.toString===Tk?JSON.stringify(t,null,2):String(t);function yb(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const Gh=t=>!Je(t)||kt(t);function Uc(t,e){if(Gh(t)||Gh(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Je(r[i])&&!Je(o[i])&&(o[i]=Array.isArray(r[i])?[]:_t()),Gh(o[i])||Gh(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}const js=["en","fr","es","pt-BR","de","ja","ru","zh-CN","tr","it"],vy={en:[],fr:[],es:[],"pt-BR":[],de:[],ja:[],ru:[],"zh-CN":[],tr:[],it:[]},eQ=[],cl=[{language:"en",code:"en"},{language:"fr",code:"fr"},{language:"es",code:"es"},{language:"pt-BR",code:"pt-BR"},{language:"de",code:"de"},{language:"ja",code:"ja"},{language:"ru",code:"ru"},{language:"zh-CN",code:"zh-CN"},{language:"tr",code:"tr"},{language:"it",code:"it"}],Ak="@nuxtjs/i18n",tQ=!1,nQ="i18n_redirected",rQ="nuxtI18nInternal",_I="nuxt-i18n-slp";function mI(t){return typeof t=="string"?`'${t}'`:new oQ().serialize(t)}const oQ=(function(){class t{#e=new Map;compare(n,r){const o=typeof n,i=typeof r;
4476return o==="string"&&i==="string"?n.localeCompare(r):o==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const o=n.constructor,i=o===Object||o===void 0?"":o.name;if(i!==""&&globalThis[i]===o)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const s=n.toJSON();return i+(s!==null&&typeof s=="object"?this.$object(s):`(${this.serialize(s)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const o=this["$"+n];if(o)return o.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const o=Array.from(r).sort((s,a)=>this.compare(s[0],a[0]));let i=`${n}{`;for(let s=0;s<o.length;s++){const[a,c]=o[s];i+=`${this.serialize(a,!0)}:${this.serialize(c)}`,s<o.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let o=0;o<n.length;o++)r+=this.serialize(n[o]),o<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,o)=>this.compare(r,o)))}`}
4476$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(n){return`${e}(${n})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function iQ(t,e){return t===e||mI(t)===mI(e)}const sQ="$s";function eh(...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 o=sQ+n,i=rt(),s=P_(i.payload.state,o);if(s.value===void 0&&r){const a=r();if(nt(a))return i.payload.state[o]=a,a;s.value=a}return s}function aQ(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},r=e||{},o=r.decode||cQ;let i=0;for(;i<t.length;){const s=t.indexOf("=",i);if(s===-1)break;let a=t.indexOf(";",i);if(a===-1)a=t.length;else if(a<s){i=t.lastIndexOf(";",s-1)+1;continue}const c=t.slice(i,s).trim();if(r?.filter&&!r?.filter(c)){i=a+1;continue}if(n[c]===void 0){let l=t.slice(s+1,a).trim();l.codePointAt(0)===34&&(l=l.slice(1,-1)),n[c]=lQ(l,o)}i=a+1}return n}function cQ(t){return t.includes("%")?decodeURIComponent(t):t}function lQ(t,e){try{return e(t)}catch{return t}}const Qh=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function gI(t,e,n){const r=n||{},o=r.encode||encodeURIComponent;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!Qh.test(t))throw new TypeError("argument name is invalid");const i=o(e);if(i&&!Qh.test(i))throw new TypeError("argument val is invalid");let s=t+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Qh.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Qh.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(!uQ(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
4476d");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s}function uQ(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function Tr(t){if(typeof t!="object")return t;var e,n,r=Object.prototype.toString.call(t);if(r==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(e in t)t.hasOwnProperty(e)&&n[e]!==t[e]&&(n[e]=Tr(t[e]))}else{n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:Tr(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=Tr(t[e])}return n}if(r==="[object Array]"){for(e=t.length,n=Array(e);e--;)n[e]=Tr(t[e]);return n}return r==="[object Set]"?(n=new Set,t.forEach(function(o){n.add(Tr(o))}),n):r==="[object Map]"?(n=new Map,t.forEach(function(o,i){n.set(Tr(i),Tr(o))}),n):r==="[object Date]"?new Date(+t):r==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):r==="[object DataView]"?new t.constructor(Tr(t.buffer)):r==="[object ArrayBuffer]"?t.slice(0):r.slice(-6)==="Array]"?new t.constructor(t):t}const dQ={path:"/",watch:!0,decode:t=>ed(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Yh=globalThis.cookieStore;function hQ(t,e){const n={...dQ,...e};n.filter??=l=>l===t;const r=yI(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const i=o!==void 0&&o<=0,s=i||r[t]===void 0||r[t]===null,a=Tr(i?void 0:r[t]??n.default?.()),c=o&&!i?_Q(a,o,n.watch&&n.watch!=="shallow"):Te(a);{let l=null;try{!Yh&&typeof BroadcastChannel<"u"&&(l=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const u=(m=!1)=>{!m&&(n.readonly||iQ(c.value,r[t]))||(pQ(t,c.value,n),r[t]=Tr(c.value),l?.postMessage({value:n.encode(c.value)}))},d=m=>{const y=m.refresh?yI(n)?.[t]:n.decode(m.value);f=!0,c.value=y,r[t]=Tr(y),sr(()=>{f=!1})};let f=!1;const _=!!Ya();if(_&&jc(()=>{f=!0,u(),l?.close()}),Yh){const m=y=>{const v=y.changed.find(w=>w.name===t),T=y.deleted.find(w=>w.name===t);v&&d({value:v.value}),T&&d({value:null})};Yh.addEventListener("change",m),_&&jc(()=>Yh.removeEventListener("change",m))}else l&&(l.onmessage=({data:m})=>d(m));n.watch&&Kt(c,()=>{f||u()},{deep:n.watch!=="shallow"}),s&&u(s)}return c}function yI(t={}){return aQ(document.cookie,t)}function fQ(t,e,n={}){return e==null?gI(t,e,{...n,maxAge:-1}):gI(t,e,n)}function pQ(t,e,n={}){document.cookie=fQ(t,e,n)}const vI=2147483647;function _Q(t,e,n){let r,o,i=0;const s=n?Te(t):{value:t};return Ya()&&jc(()=>{o?.(),clearTimeout(r)}),hv((a,c)=>{n&&(o=Kt(s,c));function l(){i=0,clearTimeout(r);const u=e-i,d=u<vI?u:vI;r=setTimeout(()=>{if(i+=d,i<e)return l();s.value=void 0,c()},d)}return{get(){return a(),s.value},set(u){l(),s.value=u,c()}}})}function mQ(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}async function gQ(t,e=mn()){const{path:n,matched:r}=e.resolve(t);if(!r.length||(e._routePreloaded||=new Set,e._routePreloaded.has(n)))return;const o=e._preloadPromises||=[];if(o.length>4)return Promise.all(o).then(()=>gQ(t,e));e._routePreloaded.add(n);for(const i of r){const s=i.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}function _m(t){return we(t)?t:t!=null?t.toString():"(null)"}function EI(t,e,n){const{defaultLocale:r,strategy:o,routesNameSeparator:i,defaultLocaleRouteNameSuffix:s,differentDomains:a}=n,c=o!=="no_prefix"||a,l=_m(t)+(c?i+e:"");return e===r&&o==="prefix_and_default"?l+i+s:l}function yQ(t,e){const n=[];for(const[r,o]of e.entries()){const i=t.find(s=>
4476s.language?.toLowerCase()===o.toLowerCase());if(i){n.push({code:i.code,score:1-r/e.length});break}}for(const[r,o]of e.entries()){const i=o.split("-")[0].toLowerCase(),s=t.find(a=>a.language?.split("-")[0].toLowerCase()===i);if(s){n.push({code:s.code,score:.999-r/e.length});break}}return n}function vQ(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}function EQ(t,e){const n=t.map(o=>({code:o.code,language:o.language||o.code})),r=yQ(n,e);return r.length===0?"":(r.length>1&&r.sort(vQ),r[0].code)}function xk(t){return new RegExp(`^/(${t.join("|")})(?:/|$)`,"i")}const bQ=`(${js.join("|")})`,Ey=xk(js);function wQ(){const{routesNameSeparator:t,defaultLocaleRouteNameSuffix:e}=br().public.i18n,n=`(?:${t}${e})?`,r=new RegExp(`${t}${bQ}${n}$`,"i");return o=>we(o)?o.match(Ey)?.[1]??"":o.name?_m(o.name).match(r)?.[1]??"":o.path?o.path.match(Ey)?.[1]??"":""}function TQ(t){return t!=null&&"global"in t&&"mode"in t}function AQ(t){return t!=null&&!("__composer"in t)&&"locale"in t&&nt(t.locale)}function Ik(t){return t!=null&&"__composer"in t}function h_(t){return TQ(t)?t.global:t}function vu(t){const e=h_(t);return AQ(e)?e:Ik(e)?e.__composer:e}function mm(){return window.location.host}function xQ(t,e,n){const r=mm();if(!r)return r;const o=we(n)?n:n.path,i=t.filter(a=>a.domain?(cs(a.domain)?a.domain.replace(/(http|https):\/\//,""):a.domain)===r:kt(a?.domains)?a.domains.includes(r):!1);if(i.length===0)return"";if(i.length===1)return i[0]?.code??"";if(e==="no_prefix")return console.warn(Pk("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),i[0]?.code??"";if(n&&o){const a=o.match(xk(i.map(c=>c.code)))?.at(1);if(a)return i.find(l=>l.code===a)?.code??""}return i.find(a=>a.defaultForDomains?.includes(r)??a.domainDefault)?.code??""}function Rk(t){rt();const e=mm(),{domainLocales:n}=br().public.i18n,r=cl.find(s=>s.code===t),o=n?.[t]?.domain||r?.domain||r?.domains?.find(s=>s===e);if(!o){console.warn(Pk("Could not find domain name for locale "+t));return}return cs(o,{strict:!0})?o:new URL(window.location.origin).protocol+"//"+o}function IQ(t,e){const{multiDomainLocales:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:i}=t;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const s=mn(),a=[o,i].join("");for(const c of s.getRoutes()){const l=_m(c.name);if(l.endsWith(a)){s.removeRoute(l);continue}const u=l.split(o)[1];u===e&&s.addRoute({...c,path:c.path===`/${u}`?"/":c.path.replace(`/${u}`,"")})}}function RQ(t){const{locales:e,domainLocales:n,defaultLocale:r,multiDomainLocales:o}=t,i=mm();return o?e.some(s=>!we(s)&&s.defaultForDomains!=null)?e.find(a=>!we(a)&&!!a.defaultForDomains?.includes(i))?.code??"":r||"":cl.find(a=>{const c=we(a)?a:a.code,l=cl.find(d=>d.code===c);return(n?.[c]?.domain??l?.domain)===i})?.code??r??""}const Mu=new Map;async function CQ(t,e){const n={messages:{}};for(const r of t){const{default:o}=await r(),i=vt(o)?await e.runWithContext(()=>o()):o;Uc(i,n)}return n}function Ck(t,e){if(t===!1)return[];if(kt(t))return t;let n=[];if(we(t))return e.every(o=>o!==t)&&n.push(t),n;const r=[...e,"default"];for(const o of r)o in t&&(n=[...n,...t[o].filter(Boolean)]);return n}const PQ=t=>pm(t)==="[object Module]";async function SQ(t,{key:e,load:n},r){let o=null;try{const i=await n().then(s=>PQ(s)?s.default:s);vt(i)?o=await r.runWithContext(()=>i(t)):(o=i,o!=null&&Mu&&Mu.set(e,o))}catch(i){console.error("Failed locale loading: "+i.message)}return o}async function by(t,e,n,r){const o=e[t];if(o==null)return;const i={};for(const s of o){let a=null;Mu&&Mu.has(s.key)&&s.cache?a=Mu.get(s.key):a=await r.runWithContext(()=>
4476SQ(t,s,r)),a!=null&&Uc(a,i)}n(t,i)}function ll(t,e){const n=De(e),r=Je(n)?n?.name:n;if(!(n==null||!r))return _m(r).split(t.runtimeConfig.public.i18n.routesNameSeparator)[0]}function vb(t,e,n){if(we(e)&&cs(e,{acceptRelative:!0}))return e;const r=Eb(t,e,n);return r==null?"":r.redirectedFrom?.fullPath||r.fullPath}function gm(t,e,n){return Eb(t,e,n)??void 0}function OQ(t){if(!we(t))return St({},t);if(t[0]==="/"){const{pathname:e,search:n,hash:r}=_g(t);return{path:e,query:Nv(n),hash:r}}return{name:t}}const DQ=t=>!!t.path&&!t.name;function LQ(t,e,n){const r=t.runtimeConfig.public.i18n;if(DQ(e)){const i=NQ(t,e,n),s=ll(t,i);return s?(i.name=EI(s,n,r),i):(!r.differentDomains&&MQ(n,r.defaultLocale,r.strategy)&&(e.path="/"+n+e.path),e.path=(r.trailingSlash?Rp:td)(e.path,!0),e)}e.name||=ll(t,t.router.currentRoute.value);const o=EI(e.name,n,r);return t.router.hasRoute(o)&&(e.name=o),e}function Eb(t,e,n){try{const r=n||De(h_(t.i18n).locale),o=OQ(e),i=t.router.resolve(LQ(t,o,r));return i.name?i:t.router.resolve(e)}catch(r){if(ni(r,1))return null}}function kQ(t,e){if(t.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return De(t.metaState.value);const n=e.meta||{};return De(n)?.[rQ]||{}}function bb(t,e,n){const r=n??t.router.currentRoute.value,o=ll(t,r);if(!o)return"";const i=kQ(t,r)[e],s={name:o,params:St({},r.params,i),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},a=vb(t,s,e);if(t.runtimeConfig.public.i18n.differentDomains){const c=Rk(e);return c&&vl(c,a)||a}return a}function NQ(t,e,n){if(t.runtimeConfig.public.i18n.strategy==="no_prefix")return e;if(t.runtimeConfig.public.i18n.strategy!=="prefix")return t.router.resolve(e);const r=e.path.slice(1),o=e.path[0]+n+(r&&"/"+r),i=t.router.options.routes.find(s=>s.path===o);return i==null?e:t.router.resolve(St({},e,i,{path:o}))}function Pk(t){return`[${Ak}]: ${t}`}function Sk(t){return{i18n:t??rt().$i18n,router:mn(),runtimeConfig:br(),metaState:eh("nuxt-i18n-meta",()=>({}))}}async function Ok(t,e,n=!1){const{differentDomains:r,skipSettingLocaleOnNavigate:o}=t.$config.public.i18n,i=th(t.$config.public.i18n),s=De(t.$i18n.locale),a=De(t.$i18n.localeCodes);function c(f=s){i===!1||!i.useCookie||o||t.$i18n.setLocaleCookie(f)}const l=await t.$i18n.onBeforeLanguageSwitch(s,e,n,t);if(l&&a.includes(l)){if(s===l)return c(),!1;e=l}if(!e||!n&&r||s===e)return c(),!1;const u=De(t.$i18n.fallbackLocale),d=t.$i18n.mergeLocaleMessage.bind(t.$i18n);if(u){const f=Ck(u,[e]);await Promise.all(f.map(_=>by(_,vy,d,t)))}return await by(e,vy,d,t),o?!1:(c(e),t._vueI18n.__setLocale(e),await t.$i18n.onLanguageSwitched(s,e),!0)}function VQ(t,e,n,r,o){const{strategy:i,defaultLocale:s,differentDomains:a,multiDomainLocales:c}=t.$config.public.i18n,l=th(),u=zQ(t,e,o,r);if(u.locale&&u.from!=null&&js.includes(u.locale))return u.locale;let d="";a||c?d||=xQ(cl,i,e):i!=="no_prefix"&&(d||=n);const f=(js.includes(u.locale)||o&&js.includes(o))&&l&&l.useCookie&&o;return d||=f||r||s||"",d}function Dk({to:t,nuxtApp:e,from:n,locale:r,routeLocale:o},i=!1){if(o===r||e.$i18n.strategy==="no_prefix")return"";const s=Sk();let a=bb(s,r,t);return i&&!a&&(a=vb(s,t.fullPath,r)),mT(a,t.fullPath)||n&&mT(a,n.fullPath)?"":a}const FQ=()=>eh(Ak+":redirect",()=>"");async function Lk({nuxt:t,locale:e,route:n,redirectPath:r},o=!1){const{rootRedirect:i,differentDomains:s,multiDomainLocales:a,skipSettingLocaleOnNavigate:c,locales:l,strategy:u}=t.$config.public.i18n;if(n.path==="/"&&i)return we(i)?r="/"+i:(r="/"+i.path,i.statusCode),r=t.$localePath(r,e),Li(r,{});if(!(c&&(t._vueI18n.__pendingLocale=e,t._vueI18n.__pendingLocalePromise=new Promise(d=>{t._vueI18n.__resolvePendingLocalePromise=()=>d()}),!o))){if(a&&u==="prefix_except_default"){const d=mm(),f=l.find(m=>{if(!we(m))return m.defaultForDomains?.find(y=>y===d)}),_=we(f)?void 0:f?.code;if(n.path.startsWith(`/${_}`))return Li(n.path.replace(`/${_}`,""));if(!n.path.startsWith(`/${e}`)&&e!==_){const m=t._vueI18n.__localeFromRoute(n.path);return Li(m!==""?`/${e+n.path.replace(`/${m}`,"")}`:`/${e+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?Li(r):void 0}if(s){const d=FQ();d.value&&d.value!==r&&(d.value="",window.location.assign(r))}else if(r)return Li(r)}
4476}function MQ(t,e,n){return n!=="no_prefix"&&!(t===e&&(n==="prefix_and_default"||n==="prefix_except_default"))}function BQ(t){const{baseUrl:e,defaultLocale:n,differentDomains:r}=t.$config.public.i18n;if(vt(e))return()=>e(t);const o=vt(n)?n():n;return()=>{if(r&&o){const i=Rk(o);if(i)return i}return e??""}}function UQ(t){return kt(t)?t:[t]}function qa(t,e=Sk()){return(...n)=>t(e,...n)}function $Q(){const t=navigator.languages;return EQ(cl,t)||void 0}function jQ(){const t=th(),e=t&&t.cookieKey||nQ,n=new Date,r={path:"/",readonly:!1,expires:new Date(n.setDate(n.getDate()+365)),sameSite:t&&t.cookieCrossOrigin?"none":"lax",domain:t&&t.cookieDomain||void 0,secure:t&&t.cookieCrossOrigin||t&&t.cookieSecure};return hQ(e,r)}function HQ(t,e,n){if(e===!1||!e.useCookie)return;const r=t.value??void 0;if(r!=null){if(js.includes(r))return r;if(n)return t.value=n,n;t.value=void 0}}function zQ(t,e,n,r=""){const o=th();if(!o)return{locale:"",error:"disabled"};const i=t.$i18n.strategy;if(!t._vueI18n.__firstAccess)return{locale:i==="no_prefix"?r:"",error:"first_access_only"};if(i!=="no_prefix"){const l=we(e)?e:e.path;if(o.redirectOn==="root"&&l!=="/")return{locale:"",error:"not_redirect_on_root"};if(o.redirectOn==="no prefix"&&!o.alwaysRedirect&&l.match(Ey))return{locale:"",error:"not_redirect_on_no_prefix"}}const a=o.useCookie&&n||void 0;if(a)return{locale:a,from:"cookie"};const c=t.$i18n.getBrowserLocale();return c?{locale:c,from:"navigator_or_header"}:{locale:o.fallbackLocale||"",from:"fallback"}}function th(t=br().public.i18n){return t?.detectBrowserLanguage===!1?!1:t?.detectBrowserLanguage}function qQ(t){const e=rt(),n=De(e.$i18n.locale),r=De(e.$i18n.locales).map(a=>we(a)?{code:a}:a),o=r.find(a=>a.code===n)||{code:n},i=vl(De(vu(e.$i18n).baseUrl),e.$config.app.baseURL),s=e.$config.public.i18n;return i||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{dir:t.dir,lang:t.lang,key:t.key,seo:t.seo,locale:n,locales:r,currentDir:o.dir||s.defaultDirection,currentLocale:o,currentLanguage:o.language,baseUrl:i,runtimeI18n:s}}function WQ(t,{dir:e=!0,lang:n=!0,seo:r=!0,key:o="hid"}){return KQ(t,{dir:e,lang:n,seo:r,key:o})}function KQ(t,e){const n={htmlAttrs:{},link:[],meta:[]},r=qQ(e);return r.baseUrl==null||(r.dir&&(n.htmlAttrs.dir=r.currentDir),r.lang&&r.currentLanguage&&(n.htmlAttrs.lang=r.currentLanguage),r.seo&&(n.link=n.link.concat(GQ(t,r),QQ(t,r)),n.meta=n.meta.concat(YQ(t,r),XQ(r),JQ(r)))),n}function GQ(t,e){const{defaultLocale:n,strategy:r,differentDomains:o}=e.runtimeI18n,i=[];if(r==="no_prefix"&&!o)return i;const s=new Map;for(const l of e.locales){if(!l.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[u,d]=l.language.split("-");u&&d&&(l.isCatchallLocale||!s.has(u))&&s.set(u,l),s.set(l.language,l)}const a=e.runtimeI18n.experimental.alternateLinkCanonicalQueries===!0,c=a?t.router.resolve({query:{}}):void 0;!e.runtimeI18n.experimental.switchLocalePathLinkSSR&&a&&(c.meta=t.router.currentRoute.value.meta);for(const[l,u]of s.entries()){const d=bb(t,u.code,c);if(!d)continue;const f=o&&u.domain?d:vl(e.baseUrl,d),_=M_(f,a?Nk(t,e):{});i.push({[e.key]:`i18n-alt-${l}`,rel:"alternate",href:_,hreflang:l}),n&&n===u.code&&i.unshift({[e.key]:"i18n-xd",rel:"alternate",href:_,hreflang:"x-default"})}return i}function kk(t,e){const n=t.router.currentRoute.value,r=gm(t,St({},n,{path:void 0,name:ll(t,n)}));return r?M_(vl(e.baseUrl,r.path),Nk(t,e)):""}function QQ(t,e){const n=kk(t,e);return n?[{[e.key]:"i18n-can",rel:"canonical",href:n}]:[]}function Nk(t,e){const n=t.router.currentRoute.value,r=gm(t,St({},n,{path:void 0,name:ll(t,n)})),o=Je(e.seo)&&e.seo?.canonicalQueries||[],i=r?.query||{},s={};for(const a of o.filter(c=>c in i)){s[a]??=[];for(const c of UQ(i[a]))s[a].push(c||"")}return s}function YQ(t,e){const n=kk(t,e);return n?[{[e.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function XQ(t){return t.currentLanguage?[{[t.key]:"i18n-og",property:"og:locale",content:Vk(t.currentLanguage)}]:[]}function JQ(t){return t.locales.filter(n=>n.language&&n.language!==t.currentLanguage).map(n=>({[t.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:Vk(n.language)}))}function Vk(t=""){return t.replace(/-/g,"_")}/*! 4477 * message-compiler v11.1.12 4478 * (c) 2025 kazuya kawaguchi 4479 * Released under the MIT License. 4480 */function ZQ(t,e,n){return{line:t,column:e,offset:n}}function wy(t,e,n){return{start:t,end:e}}const ct={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,UNTE
4480RMINATED_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},eY=17;function ym(t,e,n={}){const{domain:r,messages:o,args:i}=n,s=t,a=new SyntaxError(String(s));return a.code=t,e&&(a.location=e),a.domain=r,a}function tY(t){throw t}const Jo=" ",nY="\r",bn=` 4481`,rY="\u2028",oY="\u2029";function iY(t){const e=t;let n=0,r=1,o=1,i=0;const s=A=>e[A]===nY&&e[A+1]===bn,a=A=>e[A]===bn,c=A=>e[A]===oY,l=A=>e[A]===rY,u=A=>s(A)||a(A)||c(A)||l(A),d=()=>n,f=()=>r,_=()=>o,m=()=>i,y=A=>s(A)||c(A)||l(A)?bn:e[A],v=()=>y(n),T=()=>y(n+i);function w(){return i=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function g(){return s(n+i)&&i++,i++,e[n+i]}function E(){n=0,r=1,o=1,i=0}function C(A=0){i=A}function L(){const A=n+i;for(;A!==n;)w();i=0}return{index:d,line:f,column:_,peekOffset:m,charAt:y,currentChar:v,currentPeek:T,next:w,peek:g,reset:E,resetPeek:C,skipToPeek:L}}const Ri=void 0,sY=".",bI="'",aY="tokenizer";function cY(t,e={}){const n=e.location!==!1,r=iY(t),o=()=>r.index(),i=()=>ZQ(r.line(),r.column(),r.index()),s=i(),a=o(),c={currentType:13,offset:a,startLoc:s,endLoc:s,lastType:13,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:u}=e;function d(N,M,z,...X){const re=l();if(M.column+=z,M.offset+=z,u){const fe=n?wy(re.startLoc,M):null,U=ym(N,fe,{domain:aY,args:X});u(U)}}function f(N,M,z){N.endLoc=i(),N.currentType=M;const X={type:M};return n&&(X.loc=wy(N.startLoc,N.endLoc)),z!=null&&(X.value=z),X}const _=N=>f(N,13);function m(N,M){return N.currentChar()===M?(N.next(),M):(d(ct.EXPECTED_TOKEN,i(),0,M),"")}function y(N){let M="";for(;N.currentPeek()===Jo||N.currentPeek()===bn;)M+=N.currentPeek(),N.peek();return M}function v(N){const M=y(N);return N.skipToPeek(),M}function T(N){if(N===Ri)return!1;const M=N.charCodeAt(0);return M>=97&&M<=122||M>=65&&M<=90||M===95}function w(N){if(N===Ri)return!1;const M=N.charCodeAt(0);return M>=48&&M<=57}function g(N,M){const{currentType:z}=M;if(z!==2)return!1;y(N);const X=T(N.currentPeek());return N.resetPeek(),X}function E(N,M){const{currentType:z}=M;if(z!==2)return!1;y(N);const X=N.currentPeek()==="-"?N.peek():N.currentPeek(),re=w(X);return N.resetPeek(),re}function C(N,M){const{currentType:z}=M;if(z!==2)return!1;y(N);const X=N.currentPeek()===bI;return N.resetPeek(),X}function L(N,M){const{currentType:z}=M;if(z!==7)return!1;y(N);const X=N.currentPeek()===".";return N.resetPeek(),X}function A(N,M){const{currentType:z}=M;if(z!==8)return!1;y(N);const X=T(N.currentPeek());return N.resetPeek(),X}function I(N,M){const{currentType:z}=M;if(!(z===7||z===11))return!1;y(N);const X=N.currentPeek()===":";return N.resetPeek(),X}function R(N,M){const{currentType:z}=M;if(z!==9)return!1;const X=()=>{const fe=N.currentPeek();return fe==="{"?T(N.peek()):fe==="@"||fe==="|"||fe===":"||fe==="."||fe===Jo||!fe?!1:fe===bn?(N.peek(),X()):D(N,!1)},re=X();return N.resetPeek(),re}function x(N){y(N);const M=N.currentPeek()==="|";return N.resetPeek(),M}function D(N,M=!0){const z=(re=!1,fe="")=>{const U=N.currentPeek();return U==="{"||U==="@"||!U?re:U==="|"?!(fe===Jo||fe===bn):U===Jo?(N.peek(),z(!0,Jo)):U===bn?(N.peek(),z(!0,bn)):!0},X=z();return M&&N.resetPeek(),X}function S(N,M){const z=N.currentChar();return z===Ri?Ri:M(z)?(N.next(),z):null}function O(N){const M=N.charCodeAt(0);return M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===95||M===36}function ae(N){return S(N,O)}function le(N){const M=N.charCodeAt(0);return M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===95||M===36||M===45}function B(N){return S(N,le)}function j(N){const M=N.charCodeAt(0);return M>=48&&M<=57}function H(N){return S(N,j)}function ce(N){const M=N.charCodeAt(0);return M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102}function ue(N){return S(N,ce)}function W(N){let M="",z="";for(;M=H(N);)z+=M;return z}function J(N){let M="";for(;;){const z=N.currentChar();if(z==="{"||z==="}"||z==="@"||z==="|"||!z)break;if(z===Jo||z===bn)if(D(N))M+=z,N.next();else{if(x(N))break;M+=z,N.next()}else M+=z,N.next()}return M}function ee(N){v(N);let M="",z="";for(;M=B(N);)z+=M;const X=N.currentChar();if(X&&X!=="}"&&X!==Ri&&X!==Jo&&X!==bn&&X!=="ã"){const re=ge(N);return d(ct.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,z+re),z+re}return N.currentChar()===Ri&&d(ct.UNTERMINATED_CLOSING_BRACE,i(),0),z}function ne(N){v(N);let M="";return N.currentChar()==="-"?(N.next(),M+=`-${W(N)}`):M+=W(N),N.currentChar()===Ri&&d(ct.UNTERMINATED_CLOSING_BRACE,i(),0),M}function q(N){return N!==bI&&N!==bn}function be(N){v(N),m(N,"'");let M="",z="";for(;M=S(N,q);)M==="\\"?z+=Y(N):z+=M;const X=N.currentChar();return X===bn||X===Ri?(d(ct.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),X===bn&&(N.next(),m(N,"'")),z):(m(N,"'"),z)}function Y(N){const M=N.currentChar();switch(M){case"\\":case"'":return N.next(),`\\${M}`;case"u":return ie(N,M,4);case"U":return ie(N,M,6);default:return d(ct.UNKNOWN_ESCAPE_SEQUENCE,i(),0,M),""}}function ie(N,M,z){m(N,M);let X="";for(let re=0;re<z;re++){const fe=ue(N);if(!fe){d(ct.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${M}${X}${N.currentChar()}`);break}X+=fe}return`\\${M}${X}`}function he(N){return N!=="{"&&N!=="}"&&N!==Jo&&N!==bn}function ge(N){v(N);let M="",z="";for(;M=S(N,he);)z+=M;return z}function K(N){let M="",z="";for(;M=ae(N);)z+=M;return z}function pe(N){const M=z=>{const X=N.currentChar();return X==="{"||X==="@"||X==="|"||X==="("||X===")"||!X||X===Jo?z:(z
vendor: 6,673 bytes, line 4481
4481+=X,N.next(),M(z))};return M("")}function k(N){v(N);const M=m(N,"|");return v(N),M}function F(N,M){let z=null;switch(N.currentChar()){case"{":return M.braceNest>=1&&d(ct.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),N.next(),z=f(M,2,"{"),v(N),M.braceNest++,z;case"}":return M.braceNest>0&&M.currentType===2&&d(ct.EMPTY_PLACEHOLDER,i(),0),N.next(),z=f(M,3,"}"),M.braceNest--,M.braceNest>0&&v(N),M.inLinked&&M.braceNest===0&&(M.inLinked=!1),z;case"@":return M.braceNest>0&&d(ct.UNTERMINATED_CLOSING_BRACE,i(),0),z=$(N,M)||_(M),M.braceNest=0,z;default:{let re=!0,fe=!0,U=!0;if(x(N))return M.braceNest>0&&d(ct.UNTERMINATED_CLOSING_BRACE,i(),0),z=f(M,1,k(N)),M.braceNest=0,M.inLinked=!1,z;if(M.braceNest>0&&(M.currentType===4||M.currentType===5||M.currentType===6))return d(ct.UNTERMINATED_CLOSING_BRACE,i(),0),M.braceNest=0,se(N,M);if(re=g(N,M))return z=f(M,4,ee(N)),v(N),z;if(fe=E(N,M))return z=f(M,5,ne(N)),v(N),z;if(U=C(N,M))return z=f(M,6,be(N)),v(N),z;if(!re&&!fe&&!U)return z=f(M,12,ge(N)),d(ct.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,z.value),v(N),z;break}}return z}function $(N,M){const{currentType:z}=M;let X=null;const re=N.currentChar();switch((z===7||z===8||z===11||z===9)&&(re===bn||re===Jo)&&d(ct.INVALID_LINKED_FORMAT,i(),0),re){case"@":return N.next(),X=f(M,7,"@"),M.inLinked=!0,X;case".":return v(N),N.next(),f(M,8,".");case":":return v(N),N.next(),f(M,9,":");default:return x(N)?(X=f(M,1,k(N)),M.braceNest=0,M.inLinked=!1,X):L(N,M)||I(N,M)?(v(N),$(N,M)):A(N,M)?(v(N),f(M,11,K(N))):R(N,M)?(v(N),re==="{"?F(N,M)||X:f(M,10,pe(N))):(z===7&&d(ct.INVALID_LINKED_FORMAT,i(),0),M.braceNest=0,M.inLinked=!1,se(N,M))}}function se(N,M){let z={type:13};if(M.braceNest>0)return F(N,M)||_(M);if(M.inLinked)return $(N,M)||_(M);switch(N.currentChar()){case"{":return F(N,M)||_(M);case"}":return d(ct.UNBALANCED_CLOSING_BRACE,i(),0),N.next(),f(M,3,"}");case"@":return $(N,M)||_(M);default:{if(x(N))return z=f(M,1,k(N)),M.braceNest=0,M.inLinked=!1,z;if(D(N))return f(M,0,J(N));break}}return z}function G(){const{currentType:N,offset:M,startLoc:z,endLoc:X}=c;return c.lastType=N,c.lastOffset=M,c.lastStartLoc=z,c.lastEndLoc=X,c.offset=o(),c.startLoc=i(),r.currentChar()===Ri?f(c,13):se(r,c)}return{nextToken:G,currentOffset:o,currentPosition:i,context:l}}const lY="parser",uY=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function dY(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 hY(t={}){const e=t.location!==!1,{onError:n}=t;function r(T,w,g,E,...C){const L=T.currentPosition();if(L.offset+=E,L.column+=E,n){const A=e?wy(g,L):null,I=ym(w,A,{domain:lY,args:C});n(I)}}function o(T,w,g){const E={type:T};return e&&(E.start=w,E.end=w,E.loc={start:g,end:g}),E}function i(T,w,g,E){e&&(T.end=w,T.loc&&(T.loc.end=g))}function s(T,w){const g=T.context(),E=o(3,g.offset,g.startLoc);return E.value=w,i(E,T.currentOffset(),T.currentPosition()),E}function a(T,w){const g=T.context(),{lastOffset:E,lastStartLoc:C}=g,L=o(5,E,C);return L.index=parseInt(w,10),T.nextToken(),i(L,T.currentOffset(),T.currentPosition()),L}function c(T,w){const g=T.context(),{lastOffset:E,lastStartLoc:C}=g,L=o(4,E,C);return L.key=w,T.nextToken(),i(L,T.currentOffset(),T.currentPosition()),L}function l(T,w){const g=T.context(),{lastOffset:E,lastStartLoc:C}=g,L=o(9,E,C);return L.value=w.replace(uY,dY),T.nextToken(),i(L,T.currentOffset(),T.currentPosition()),L}function u(T){const w=T.nextToken(),g=T.context(),{lastOffset:E,lastStartLoc:C}=g,L=o(8,E,C);return w.type!==11?(r(T,ct.UNEXPECTED_EMPTY_LINKED_MODIFIER,g.lastStartLoc,0),L.value="",i(L,E,C),{nextConsumeToken:w,node:L}):(w.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Zo(w)),L.value=w.value||"",i(L,T.currentOffset(),T.currentPosition()),{node:L})}function d(T,w){const g=T.context(),E=o(7,g.offset,g.startLoc);return E.value=w,i(E,T.currentOffset(),T.currentPosition()),E}function f(T){const w=T.context(),g=o(6,w.offset,w.startLoc);let E=T.nextToken();if(E.type===8){const C=u(T);g.modifier=C.node,E=C.nextConsumeToken||T.nextToken()}switch(E.type!==9&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(E)),E=T.nextToken(),E.type===2&&(E=T.nextToken()),E.type){case 10:E.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(E)),g.key=d(T,E.value||"");break;case 4:E.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(E)),g.key=c(T,E.value||"");break;case 5:E.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(E)),g.key=a(T,E.value||"");break;case 6:E.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(E)),g.key=l(T,E.value||"");break;default:{r(T,ct.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const C=T.context(),L=o(7,C.offset,C.startLoc);return L.value="",i(L,C.offset,C.startLoc),g.key=L,i(g,C.offset,C.startLoc),{nextConsumeToken:E,node:g}}}return i(g,T.currentOffset(),T.currentPosition()),{node:g}}function _(T){const w=T.context(),g=w.currentType===1?T.currentOffset():w.offset,E=w.currentType===1?w.endLoc:w.startLoc,C=o(2,g,E);C.items=[];let L=null;do{const R=L||T.nextToken();switch(L=null,R.type){case 0:R.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(R)),C.items.push(s(T,R.value||""));break;case 5:R.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(R)),C.items.push(a(T,R.value||""));break;case 4:R.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(R)),C.items.push(c(T,R.value||""));break;case 6:R.value==null&&r(T,ct.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Zo(R)),C.items.push(l(T,R.value||""));break;case 7:{const x=f(T);C.items.push(x.node),L=x.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const A=w.currentType===1?w.lastOffset:T.currentOffset(),I=w.currentType===1?w.lastEndLoc:T.currentPosition();return i(C,A,I),C}function m(T,w,g,E){const C=T.context();let L=E.items.length===0;const A=o(1,w,g);A.cases=[],A.cases.push(E);do{const I=_(T);L||(L=I.items.length===0),A.cases.push(I)}while(C.currentType!==13);return L&&r(T,ct.MUST_HAVE_MESSAGES_IN_PLURAL,g,0),i(A,T.currentOffset(),T.currentPosition()),A}function y(T){const w=T.context(),{offset:g,startLoc:E}=w,C=_(T);return w.currentType===13?C:m(T,g,E,C)}function v(T){const w=cY(T,St({},t)),g=w.context(),E=o(0,g.offset,g.startLoc);return e&&E.loc&&(E.loc.source=T),E.body=y(w),t.onCacheKey&&(E.cacheKey=t.onCacheKey(T)),g.currentType!==13&&r(w,ct.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,T[g.offset]||""),i(E,w.currentOffset(),w.currentPosition()),E}return{parse:v}}function Zo(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>
448110?e.slice(0,9)+"â¦":e}function fY(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function wI(t,e){for(let n=0;n<t.length;n++)wb(t[n],e)}function wb(t,e){switch(t.type){case 1:wI(t.cases,e),e.helper("plural");break;case 2:wI(t.items,e);break;case 6:{wb(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function pY(t,e={}){const n=fY(t);n.helper("normalize"),t.body&&wb(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function _Y(t){const e=t.body;return e.type===2?TI(e):e.cases.forEach(n=>TI(n)),t}function TI(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;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=yb(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function xc(t){switch(t.t=t.type,t.type){case 0:{const e=t;xc(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)xc(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)xc(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;xc(e.key),e.k=e.key,delete e.key,e.modifier&&(xc(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}}delete t.type}function mY(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,i=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};i&&t.loc&&(s.source=t.loc.source);const a=()=>s;function c(y,v){s.code+=y}function l(y,v=!0){const T=v?r:"";c(o?T+" ".repeat(y):T)}function u(y=!0){const v=++s.indentLevel;y&&l(v)}function d(y=!0){const v=--s.indentLevel;y&&l(v)}function f(){l(s.indentLevel)}return{context:a,push:c,indent:u,deindent:d,newline:f,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function gY(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),ul(t,e.key),e.modifier?(t.push(", "),ul(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function yY(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let i=0;i<o&&(ul(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function vY(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let i=0;i<o&&(ul(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function EY(t,e){e.body?ul(t,e.body):t.push("null")}function ul(t,e){const{helper:n}=t;switch(e.type){case 0:EY(t,e);break;case 1:vY(t,e);break;case 2:yY(t,e);break;case 6:gY(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const bY=(t,e={})=>{const n=we(e.mode)?e.mode:"normal",r=we(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":` 4482`,i=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],a=mY(t,{filename:r,breakLineCode:o,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),s.length>0&&(a.push(`const { ${yb(s.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),ul(a,t),a.deindent(i),a.push("}"),delete t.helpers;const{code:c,map:l}=a.context();return{ast:t,code:c,map:l?l.toJSON():void 0}};function wY(t,e={}){const n=St({},e),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,a=hY(n).parse(t);return r?(i&&_Y(a),o&&xc(a),{ast:a,code:""}):(pY(a,n),bY(a,n))}/*! 4483 * core-base v10.0.8 4484 * (c) 2025 kazuya kawaguchi 4485 * Released under the MIT License. 4486 */function TY(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(gb().__INTLIFY_PROD_DEVTOOLS__=!1)}function di(t){return Je(t)&&Tb(t)===0&&(Lr(t,"b")||Lr(t,"body"))}const Fk=["b","body"];function AY(t){return Js(t,Fk)}const Mk=["c","cases"];function xY(t){return Js(t,Mk,[])}const Bk=["s","static"];function IY(t){return Js(t,Bk)}const Uk=["i","items"];function RY(t){return Js(t,Uk,[])}const $k=["t","type"];function Tb(t){return Js(t,$k)}const jk=["v","value"];function Xh(t,e){const n=Js(t,jk);if(n!=null)return n;throw vd(e)}const Hk=["m","modifier"];function CY(t){return Js(t,Hk)}const zk=["k","key"];function PY(t){const e=Js(t,zk);if(e)return e;throw vd(6)}function Js(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(Lr(t,o)&&t[o]!=null)return t[o]}return n}const qk=[...Fk,...Mk,...Bk,...Uk,...zk,...Hk,...jk,...$k];function vd(t){return new Error(`unhandled node type: ${t}`)}function N0(t){return n=>SY(n,t)}function SY(t,e){const n=AY(e);if(n==null)throw vd(0);if(Tb(n)===1){const i=xY(n);return t.plural(i.reduce((s,a)=>[...s,AI(t,a)],[]))}else return AI(t,n)}function AI(t,e){const n=IY(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);
4486{const r=RY(e).reduce((o,i)=>[...o,Ty(t,i)],[]);return t.normalize(r)}}function Ty(t,e){const n=Tb(e);switch(n){case 3:return Xh(e,n);case 9:return Xh(e,n);case 4:{const r=e;if(Lr(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(Lr(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw vd(n)}case 5:{const r=e;if(Lr(r,"i")&&qt(r.i))return t.interpolate(t.list(r.i));if(Lr(r,"index")&&qt(r.index))return t.interpolate(t.list(r.index));throw vd(n)}case 6:{const r=e,o=CY(r),i=PY(r);return t.linked(Ty(t,i),o?Ty(t,o):void 0,t.type)}case 7:return Xh(e,n);case 8:return Xh(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const OY=t=>t;let Jh=_t();function DY(t,e={}){let n=!1;const r=e.onError||tY;return e.onError=o=>{n=!0,r(o)},{...wY(t,e),detectError:n}}function LY(t,e){if(we(t)){Dt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||OY)(t),o=Jh[r];if(o)return o;const{ast:i,detectError:s}=DY(t,{...e,location:!1,jit:!0}),a=N0(i);return s?a:Jh[r]=a}else{const n=t.cacheKey;if(n){const r=Jh[n];return r||(Jh[n]=N0(t))}else return N0(t)}}let Ed=null;function kY(t){Ed=t}function NY(t,e,n){Ed&&Ed.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const VY=FY("function:translate");function FY(t){return e=>Ed&&Ed.emit(t,e)}const Hi={INVALID_ARGUMENT:eY,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},MY=24;function zi(t){return ym(t,null,void 0)}function Ab(t,e){return e.locale!=null?xI(e.locale):xI(t.locale)}let V0;function xI(t){if(we(t))return t;if(vt(t)){if(t.resolvedOnce&&V0!=null)return V0;if(t.constructor.name==="Function"){const e=t();if(JG(e))throw zi(Hi.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return V0=e}else throw zi(Hi.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw zi(Hi.NOT_SUPPORT_LOCALE_TYPE)}function BY(t,e,n){return[...new Set([n,...kt(e)?e:Je(e)?Object.keys(e):we(e)?[e]:[n]])]}function Wk(t,e,n){const r=we(n)?n:f_,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;kt(s);)s=II(i,s,e);const a=kt(e)||!Xe(e)?e:e.default?e.default:null;s=we(a)?[a]:a,kt(s)&&II(i,s,!1),o.__localeChainCache.set(r,i)}return i}function II(t,e,n){let r=!0;for(let o=0;o<e.length&&Dt(r);o++){const i=e[o];we(i)&&(r=UY(t,e[o],n))}return r}function UY(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=$Y(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function $Y(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(kt(n)||Xe(n))&&n[o]&&(r=n[o])}return r}const Zs=[];Zs[0]={w:[0],i:[3,0],"[":[4],o:[7]};Zs[1]={w:[1],".":[2],"[":[4],o:[7]};Zs[2]={w:[2],i:[3,0],0:[3,0]};Zs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Zs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Zs[5]={"'":[4,0],o:8,l:[5,0]};Zs[6]={'"':[4,0],o:8,l:[6,0]};const jY=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function HY(t){return jY.test(t)}function zY(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 qY(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:HY(e)?zY(e):"*"+e}function KY(t){const e=[];let n=-1,r=0,o=0,i,s,a,c,l,u,d;const f=[];f[0]=()=>{s===void 0?s=a:s+=a},f[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,r=4,f[0]();else{if(o=0,s===void 0||(s=WY(s),s===!1))return!1;f[1]()}};function _(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,a="\\"+m,f[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&_())){if(c=qY(i),d=Zs[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(a=i,u()===!1))))return;if(r===7)return e}}const RI=new Map;function GY(t,e){return Je(t)?t[e]:null}function QY(t,e){if(!Je(t))return null;let n=RI.get(e);if(n||(n=KY(e),n&&RI.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(qk.includes(s)&&di(o))return null;const a=o[s];if(a===void 0||vt(o))return null;o=a,i++}return o}const YY="10.0.8",vm=-1,f_="en-US",CI="",PI=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function XY(){return{upper:(t,e)=>e==="text"&&we(t)?t.toUpperCase():e==="vnode"&&Je(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&we(t)?t.toLowerCase():e==="vnode"&&Je(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&we(t)?PI(t):e==="vnode"&&Je(t)&&"__v_isVNode"in t?PI(t.children):t}}let Kk;function JY(t){Kk=t}let Gk;function ZY(t){Gk=t}let Qk;function eX(t){Qk=t}let Yk=null;const tX=t=>{Yk=t},nX=()=>Yk;let Xk=null;const SI=t=>{Xk=t},rX=()=>Xk;let OI=0;function oX(t={}){const e=vt(t.onWarn)?t.onWarn:qG,n=we(t.version)?t.version:YY,r=we(t.locale)||vt(t.locale)?t.locale:f_,o=vt(r)?f_:r,i=kt(t.fallbackLocale)||Xe(t.fallbackLocale)||we(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=Xe(t.messages)?t.messages:F0(o),a=Xe(t.datetimeFormats)?t.datetimeFormats:F0(o),c=Xe(t.numberFormats)?t.numberFormats:F0(o),l=St(_t(),t.modifiers,XY()),u=t.pluralRules||_t(),d=vt(t.missing)?t.missing:null,f=Dt(t.missingWarn)||d_(t.missingWarn)?t.missingWarn:!0,_=Dt(t.fallbackWarn)||d_(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,y=!!t.unresolving,v=vt(t.postTranslation)?t.postTranslation:null,T=Xe(t.processor)?t.processor:null,w=Dt
4486(t.warnHtmlMessage)?t.warnHtmlMessage:!0,g=!!t.escapeParameter,E=vt(t.messageCompiler)?t.messageCompiler:Kk,C=vt(t.messageResolver)?t.messageResolver:Gk||GY,L=vt(t.localeFallbacker)?t.localeFallbacker:Qk||BY,A=Je(t.fallbackContext)?t.fallbackContext:void 0,I=t,R=Je(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,x=Je(I.__numberFormatters)?I.__numberFormatters:new Map,D=Je(I.__meta)?I.__meta:{};OI++;const S={version:n,cid:OI,locale:r,fallbackLocale:i,messages:s,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:_,fallbackFormat:m,unresolving:y,postTranslation:v,processor:T,warnHtmlMessage:w,escapeParameter:g,messageCompiler:E,messageResolver:C,localeFallbacker:L,fallbackContext:A,onWarn:e,__meta:D};return S.datetimeFormats=a,S.numberFormats=c,S.__datetimeFormatters=R,S.__numberFormatters=x,__INTLIFY_PROD_DEVTOOLS__&&NY(S,n,D),S}const F0=t=>({[t]:_t()});function xb(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(i!==null){const a=i(t,n,e,o);return we(a)?a:e}else return e}function su(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function iX(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function sX(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(iX(t,e[r]))return!0;return!1}function DI(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:a}=t,[c,l,u,d]=Ay(...e),f=Dt(u.missingWarn)?u.missingWarn:t.missingWarn;Dt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const _=!!u.part,m=Ab(t,u),y=s(t,o,m);if(!we(c)||c==="")return new Intl.DateTimeFormat(m,d).format(l);let v={},T,w=null;const g="datetime format";for(let L=0;L<y.length&&(T=y[L],v=n[T]||{},w=v[c],!Xe(w));L++)xb(t,c,T,f,g);if(!Xe(w)||!we(T))return r?vm:c;let E=`${T}__${c}`;fm(d)||(E=`${E}__${JSON.stringify(d)}`);let C=a.get(E);return C||(C=new Intl.DateTimeFormat(T,St({},w,d)),a.set(E,C)),_?C.formatToParts(l):C.format(l)}const Jk=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ay(...t){const[e,n,r,o]=t,i=_t();let s=_t(),a;if(we(e)){const c=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw zi(Hi.INVALID_ISO_DATE_ARGUMENT);const l=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(l);try{a.toISOString()}catch{throw zi(Hi.INVALID_ISO_DATE_ARGUMENT)}}else if(GG(e)){if(isNaN(e.getTime()))throw zi(Hi.INVALID_DATE_ARGUMENT);a=e}else if(qt(e))a=e;else throw zi(Hi.INVALID_ARGUMENT);return we(n)?i.key=n:Xe(n)&&Object.keys(n).forEach(c=>{Jk.includes(c)?s[c]=n[c]:i[c]=n[c]}),we(r)?i.locale=r:Xe(r)&&(s=r),Xe(o)&&(s=o),[i.key||"",a,i,s]}function LI(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function kI(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:a}=t,[c,l,u,d]=xy(...e),f=Dt(u.missingWarn)?u.missingWarn:t.missingWarn;Dt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const _=!!u.part,m=Ab(t,u),y=s(t,o,m);if(!we(c)||c==="")return new Intl.NumberFormat(m,d).format(l);let v={},T,w=null;const g="number format";for(let L=0;L<y.length&&(T=y[L],v=n[T]||{},w=v[c],!Xe(w));L++)xb(t,c,T,f,g);if(!Xe(w)||!we(T))return r?vm:c;let E=`${T}__${c}`;fm(d)||(E=`${E}__${JSON.stringify(d)}`);let C=a.get(E);return C||(C=new Intl.NumberFormat(T,St({},w,d)),a.set(E,C)),_?C.formatToParts(l):C.format(l)}const Zk=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function xy(...t){const[e,n,r,o]=t,i=_t();let s=_t();if(!qt(e))throw zi(Hi.INVALID_ARGUMENT);const a=e;
4486return we(n)?i.key=n:Xe(n)&&Object.keys(n).forEach(c=>{Zk.includes(c)?s[c]=n[c]:i[c]=n[c]}),we(r)?i.locale=r:Xe(r)&&(s=r),Xe(o)&&(s=o),[i.key||"",a,i,s]}function NI(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const aX=t=>t,cX=t=>"",lX="text",uX=t=>t.length===0?"":yb(t),dX=ZG;function VI(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function hX(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 fX(t,e){e.count||(e.count=t),e.n||(e.n=t)}function pX(t={}){const e=t.locale,n=hX(t),r=Je(t.pluralRules)&&we(e)&&vt(t.pluralRules[e])?t.pluralRules[e]:VI,o=Je(t.pluralRules)&&we(e)&&vt(t.pluralRules[e])?VI:void 0,i=T=>T[r(n,T.length,o)],s=t.list||[],a=T=>s[T],c=t.named||_t();qt(t.pluralIndex)&&fX(n,c);const l=T=>c[T];function u(T,w){const g=vt(t.messages)?t.messages(T,!!w):Je(t.messages)?t.messages[T]:!1;return g||(t.parent?t.parent.message(T):cX)}const d=T=>t.modifiers?t.modifiers[T]:aX,f=Xe(t.processor)&&vt(t.processor.normalize)?t.processor.normalize:uX,_=Xe(t.processor)&&vt(t.processor.interpolate)?t.processor.interpolate:dX,m=Xe(t.processor)&&we(t.processor.type)?t.processor.type:lX,v={list:a,named:l,plural:i,linked:(T,...w)=>{const[g,E]=w;let C="text",L="";w.length===1?Je(g)?(L=g.modifier||L,C=g.type||C):we(g)&&(L=g||L):w.length===2&&(we(g)&&(L=g||L),we(E)&&(C=E||C));const A=u(T,!0)(v),I=C==="vnode"&&kt(A)&&L?A[0]:A;return L?d(L)(I,C):I},message:u,type:m,interpolate:_,normalize:f,values:St(_t(),s,c)};return v}const FI=()=>"",lr=t=>vt(t);function MI(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:a}=t,[c,l]=Iy(...e),u=Dt(l.missingWarn)?l.missingWarn:t.missingWarn,d=Dt(l.fallbackWarn)?l.fallbackWarn:t.fallbackWarn,f=Dt(l.escapeParameter)?l.escapeParameter:t.escapeParameter,_=!!l.resolvedMessage,m=we(l.default)||Dt(l.default)?Dt(l.default)?i?c:()=>c:l.default:n?i?c:()=>c:null,y=n||m!=null&&(we(m)||vt(m)),v=Ab(t,l);f&&_X(l);let[T,w,g]=_?[c,v,a[v]||_t()]:eN(t,c,v,s,d,u),E=T,C=c;if(!_&&!(we(E)||di(E)||lr(E))&&y&&(E=m,C=E),!_&&(!(we(E)||di(E)||lr(E))||!we(w)))return o?vm:c;let L=!1;const A=()=>{L=!0},I=lr(E)?E:tN(t,c,w,E,C,A);if(L)return E;const R=yX(t,w,g,l),x=pX(R),D=mX(t,I,x);let S=r?r(D,c):D;if(f&&we(S)&&(S=YG(S)),__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:we(c)?c:lr(E)?E.key:"",locale:w||(lr(E)?E.locale:""),format:we(E)?E:lr(E)?E.source:"",message:S};O.meta=St({},t.__meta,nX()||{}),VY(O)}return S}function _X(t){kt(t.list)?t.list=t.list.map(e=>we(e)?fI(e):e):Je(t.named)&&Object.keys(t.named).forEach(e=>{we(t.named[e])&&(t.named[e]=fI(t.named[e]))})}function eN(t,e,n,r,o,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:l}=t,u=l(t,r,n);let d=_t(),f,_=null;const m="translate";for(let y=0;y<u.length&&(f=u[y],d=s[f]||_t(),(_=c(d,e))===null&&(_=d[e]),!(we(_)||di(_)||lr(_)));y++)if(!sX(f,u)){const v=xb(t,e,f,i,m);v!==e&&(_=v)}return[_,f,d]}function tN(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:a}=t;if(lr(r)){const l=r;return l.locale=l.locale||n,l.key=l.key||e,l}if(s==null){const l=(()=>r);return l.locale=n,l.key=e,l}const c=s(r,gX(t,n,o,r,a,i));return c.locale=n,c.key=e,c.source=r,c}function mX(t,e,n){return e(n)}function Iy(...t){const[e,n,r]=t,o=_t();if(!we(e)&&!qt(e)&&!lr(e)&&!di(e))throw zi(Hi.INVALID_ARGUMENT);const i=qt(e)?String(e):(lr(e),e);return qt(n)?o.plural=n:we(n)?o.default=n:Xe(n)&&!fm(n)?o.named=n:kt(n)&&(o.list=n),qt(r)?o.plural=r:we(r)?o.default=r:Xe(r)&&St(o,r),[i,o]}function gX(t,e,n,r,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:s=>{throw i&&i(s),s},onCacheKey:s=>WG(e,n,s)}}function yX(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:u}=t,f={locale:e,modifiers:o,pluralRules:i,messages:(_,m)=>{let y=s(n,_);if(y==null&&(u||m)){const[,,v]=eN(u||t,_,e,a,c,l);y=s(v,_)}if(we(y)||di(y)){let v=!1;const w=tN(t,_,e,y,_,()=>{v=!0});return v?FI:w}else return lr(y)?y:FI}};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}TY();/*! 4487 * vue-i18n v10.0.8 4488 * (c) 2025 kazuya kawaguchi 4489 * Released under the MIT License. 4490 */const vX="10.0.8";function EX(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(gb().__INTLIFY_PROD_DEVTOOLS__=!1)}const vr={UNEXPECTED_RETURN_TYPE:MY,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Hr(t,...e){return ym(t,null,void 0)}const Ry=Xs("__translateVNode"),Cy=Xs("__datetimeParts"),Py=Xs("__numberParts"),bX=Xs("__setPluralRules"),wX=Xs("__injectWithOption"),Sy=Xs("__dispose");function bd(t){if(!Je(t)||di(t))return t;for(const e in t)if(Lr(t,e))if(!e.includes("."))Je(t[e])&&bd(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=_t()),!Je(o[n[s]])){i=!0;break}o=o[n[s]]}if(i||(di(o)?qk.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!di(o)){const s=o[n[r]];Je(s)&&bd(s)}}return t}function nN(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=Xe(n)?n:kt(r)?_t():{[t]:_t()};if(kt(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;c?(s[c]=s[c]||_t(),Uc(l,s[c])):Uc(l,s)}else we(a)&&Uc(JSON.parse(a),s)}),o==null&&i)for(const a in s)Lr(s,a)&&bd(s[a]);return s}function rN(t){return t.type}function TX(t,e,n){let r=Je(e.messages)?e.messages:_t();"__i18nGlobal"in n&&(r=nN(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>
4490{t.mergeLocaleMessage(i,r[i])});{if(Je(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Je(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function BI(t){return ot(Wi,null,t,0)}const UI="__INTLIFY_META__",$I=()=>[],AX=()=>!1;let jI=0;function HI(t){return((e,n,r,o)=>t(n,r,Ut()||void 0,o))}const xX=()=>{const t=Ut();let e=null;return t&&(e=rN(t)[UI])?{[UI]:e}:null};function oN(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,i=u_?Te:fi;let s=Dt(t.inheritLocale)?t.inheritLocale:!0;const a=i(e&&s?e.locale.value:we(t.locale)?t.locale:f_),c=i(e&&s?e.fallbackLocale.value:we(t.fallbackLocale)||kt(t.fallbackLocale)||Xe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),l=i(nN(a.value,t)),u=i(Xe(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),d=i(Xe(t.numberFormats)?t.numberFormats:{[a.value]:{}});let f=e?e.missingWarn:Dt(t.missingWarn)||d_(t.missingWarn)?t.missingWarn:!0,_=e?e.fallbackWarn:Dt(t.fallbackWarn)||d_(t.fallbackWarn)?t.fallbackWarn:!0,m=e?e.fallbackRoot:Dt(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,v=vt(t.missing)?t.missing:null,T=vt(t.missing)?HI(t.missing):null,w=vt(t.postTranslation)?t.postTranslation:null,g=e?e.warnHtmlMessage:Dt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const C=e?e.modifiers:Xe(t.modifiers)?t.modifiers:{};let L=t.pluralRules||e&&e.pluralRules,A;A=(()=>{r&&SI(null);const U={version:vX,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:C,pluralRules:L,missing:T===null?void 0:T,missingWarn:f,fallbackWarn:_,fallbackFormat:y,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:g,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=u.value,U.numberFormats=d.value,U.__datetimeFormatters=Xe(A)?A.__datetimeFormatters:void 0,U.__numberFormatters=Xe(A)?A.__numberFormatters:void 0;const Z=oX(U);return r&&SI(Z),Z})(),su(A,a.value,c.value);function R(){return[a.value,c.value,l.value,u.value,d.value]}const x=xe({get:()=>a.value,set:U=>{a.value=U,A.locale=a.value}}),D=xe({get:()=>c.value,set:U=>{c.value=U,A.fallbackLocale=c.value,su(A,a.value,U)}}),S=xe(()=>l.value),O=xe(()=>u.value),ae=xe(()=>d.value);function le(){return vt(w)?w:null}function B(U){w=U,A.postTranslation=U}function j(){return v}function H(U){U!==null&&(T=HI(U)),v=U,A.missing=T}const ce=(U,Z,_e,ve,Ne,Me)=>{R();let it;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=e?rX():void 0),it=U(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(_e!=="translate exists"&&qt(it)&&it===vm||_e==="translate exists"&&!it){const[st,gt]=Z();return e&&m?ve(e):Ne(st)}else{if(Me(it))return it;throw Hr(vr.UNEXPECTED_RETURN_TYPE)}};function ue(...U){return ce(Z=>Reflect.apply(MI,null,[Z,...U]),()=>Iy(...U),"translate",Z=>Reflect.apply(Z.t,Z,[...U]),Z=>Z,Z=>we(Z))}function W(...U){const[Z,_e,ve]=U;if(ve&&!Je(ve))throw Hr(vr.INVALID_ARGUMENT);return ue(Z,_e,St({resolvedMessage:!0},ve||{}))}function J(...U){return ce(Z=>Reflect.apply(DI,null,[Z,...U]),()=>Ay(...U),"datetime format",Z=>Reflect.apply(Z.d,Z,[...U]),()=>CI,Z=>we(Z))}function ee(...U){return ce(Z=>Reflect.apply(kI,null,[Z,...U]),()=>xy(...U),"number format",Z=>Reflect.apply(Z.n,Z,[...U]),()=>CI,Z=>we(Z))}function ne(U){return U.map(Z=>we(Z)||qt(Z)||Dt(Z)?BI(String(Z)):Z)}const be={normalize:ne,interpolate:U=>U,type:"vnode"};function Y(...U){return ce(Z=>{let _e;const ve=Z;try{ve.processor=be,_e=Reflect.apply(MI,null,[ve,...U])}finally{ve.processor=null}return _e},()=>Iy(...U),"translate",Z=>Z[Ry](...U),Z=>[BI(Z)],Z=>kt(Z))}function ie(...U){return ce(Z=>Reflect.apply(kI,null,[Z,...U]),()=>xy(...U),"number format",Z=>Z[Py](...U),$I,Z=>we(Z)||kt(Z))}function he(...U){return ce(Z=>Reflect.apply(DI,null,[Z,...U]),()=>Ay(...U),"datetime format",Z=>Z[Cy](...U),$I,Z=>we(Z)||kt(Z))}function ge(U){L=U,A.pluralRules=L}function K(U,Z){return ce(()=>{if(!U)return!1;const _e=we(Z)?Z:a.value,ve=F(_e),Ne=A.messageResolver(ve,U);return di(Ne)||lr(Ne)||we(Ne)},()=>[U],"translate exists",_e=>Reflect.apply(_e.te,_e,[U,Z]),AX,_e=>Dt(_e))}function pe(U){let Z=null;const _e=Wk(A,c.value,a.value);for(let ve=0;ve<_e.length;ve++){const Ne=l.value[_e[ve]]||{},Me=A.messageResolver(Ne,U);if(Me!=null){Z=Me;break}}return Z}function k(U){const Z=pe(U);return Z??(e?e.tm(U)||{}:{})}function F(U){return l.value[U]||{}}function $(U,Z){if(o){const _e={[U]:Z};for(const ve in _e)Lr(_e,ve)&&bd(_e[ve]);Z=_e[U]}l.value[U]=Z,A.messages=l.value}function se(U,Z){l.value[U]=l.value[U]||{};const _e={[U]:Z};if(o)for(const ve in _e)Lr(_e,ve)&&bd(_e[ve]);Z=_e[U],Uc(Z,l.value[U]),A.messages=l.value}function G(U){return u.value[U]||{}}function N(U,Z){u.value[U]=Z,A.datetimeFormats=u.value,LI(A,U,Z)}function M(U,Z){u.value[U]=St(u.value[U]||{},Z),A.datetimeFormats=u.value,LI(A,U,Z)}function z(U){return d.value[U]||{}}function X(U,Z){d.value[U]=Z,A.numberFormats=d.value,NI(A,U,Z)}function re(U,Z){d.value[U]=St(d.value[U]||{},Z),A.numberFormats=d.value,NI(A,U,Z)}jI++,e&&u_&&(Kt(e.locale,U=>{s&&(a.value=U,A.locale=U,su(A,a.value,c.value))}),Kt(e.fallbackLocale,U=>{s&&(c.value=U,A.fallbackLocale=U,su(A,a.value,c.value))}));const fe={id:jI,locale:x,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(U){s=U,U&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,su(A,a.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:S,get modifiers(){return C},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(U){f=U,A.missingWarn=f},get fallbackWarn(){return _},set fallbackWarn(U){_=U,A.fallbackWarn=_},get fallbackRoot(){return m},set fallbackRoot(U){m=U},get fallbackFormat(){return y},set fallbackFormat(U){y=U,A.fallbackFormat=y},get warnHtmlMessage(){return g},set warnHtmlMessage(U){g=U,A.warnHtmlMessage=U},get escapeParameter(){return E},set escapeParameter(U){E=U,A.escapeParameter=U},t:ue,getLocaleMessage:F,setLocaleMessage:$,mergeLocaleMessage:se,getPostTranslationHandler:le,setPostTranslationHandler:B,getMissingHandler:j,setMissingHandler:H,[bX]:ge};return fe.datetimeFormats=O,fe.numberFormats=ae,fe.rt=W,fe.te=K,fe.tm=k,fe.d=J,fe.n=ee,fe.getDateTimeFormat=G,fe.setDateTimeFormat=N,fe.mergeDateTimeFormat=M,fe.getNumberFormat=z,fe.setNumberFormat=X,fe.mergeNumberFormat=re,fe[wX]=n,fe[Ry]=Y,fe[Cy]=he,fe[Py]=ie,fe}const Ib={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function IX({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===ft?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},_t())}function iN(){return ft}const RX=on({name:"i18n-t",props:St({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>qt(t)||!isNaN(t)}},Ib),setup(t,e){const{slots:n,attrs:r}=e,o=t.i18n||Em({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),s=_t();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=we(t.plural)?+t.plural:t.plural);const a=IX(e,i),c=o[Ry](t.keypath,a,s),l=St(_t(),r),u=we(t.tag)||Je(t.tag)?t.tag:iN();return Xt(u,l,c)}}}),zI=RX;function CX(t){return kt(t)&&!we(t[0])}function sN(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let a=_t();t.locale&&(s.locale=t.locale),we(t.format)?s.key=t.format:Je(t.format)&&(we(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((f,_)=>n.includes(_)?St(_t(),f,{[_]:t.format[_]}):f,_t()));const c=r(t.value,s,a);let l=[s.key];kt(c)?l=c.map((f,_)=>{const m=o[f.type],y=m?m({[f.type]:f.value,index:_,parts:c}):[f.value];return CX(y)&&(y[0].key=`${f.type}-${_}`),y}):we(c)&&(l=[c]);const u=St(_t(),i),d=we(t.tag)||Je(t.tag)?t.tag:iN();return Xt(d,u,l)}}const PX=on({name:"i18n-n",props:St({value:{type:Number,required:!0},format:{type:[String,Object]}},Ib),setup(t,e){const n=t.i18n||Em({useScope:t.scope,__useComponent:!0});return sN(t,e,Zk,(...r)=>n[Py](...r))}}),qI=PX,SX=on({name:"i18n-d",props:St({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ib),setup(t,e){const n=t.i18n||Em({useScope:t.scope,__useComponent:!0});return sN(t,e,Jk,(...r)=>n[Cy](...r))}}),WI=SX;function OX(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 DX(t){const e=s=>{const{instance:a,value:c}=s;if(!a||!a.$)throw Hr(vr.UNEXPECTED_ERROR);const l=OX(t,a.$),u=KI(c);return[Reflect.apply(l.t,l,[...GI(u)]),l]};return{created:(s,a)=>{const[c,l]=e(a);u_&&t.global===l&&(s.__i18nWatcher=Kt(l.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=l,s.textContent=c},unmounted:s=>{u_&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const c=s.__composer,l=KI(a);s.textContent=Reflect.apply(c.t,c,[...GI(l)])}},getSSRProps:s=>{const[a]=e(s);return{textContent:a}}}}function KI(t){if(we(t))return{path:t};if(Xe(t)){if(!("path"in t))throw Hr(vr.REQUIRED_VALUE,"path");return t}else throw Hr(vr.INVALID_VALUE)}function GI(t){const{path:e,locale:n,args:r,choice:o,plural:i}=t,s={},a=r||{};return we(n)&&(s.locale=n),qt(o)&&(s.plural=o),qt(i)&&(s.plural=i),[e,a,s]}function LX(t,e,...n){const r=Xe(n[0])?n[0]:{};(Dt(r.globalInstall)?r.globalInstall:!0)&&([zI.name,"I18nT"].forEach(i=>
4490t.component(i,zI)),[qI.name,"I18nN"].forEach(i=>t.component(i,qI)),[WI.name,"I18nD"].forEach(i=>t.component(i,WI))),t.directive("t",DX(e))}const kX=Xs("global-vue-i18n");function NX(t={},e){const n=Dt(t.globalInjection)?t.globalInjection:!0,r=new Map,[o,i]=VX(t),s=Xs("");function a(d){return r.get(d)||null}function c(d,f){r.set(d,f)}function l(d){r.delete(d)}const u={get mode(){return"composition"},async install(d,...f){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,u),Xe(f[0])){const y=f[0];u.__composerExtend=y.__composerExtend,u.__vueI18nExtend=y.__vueI18nExtend}let _=null;n&&(_=zX(d,u.global)),LX(d,u,...f);const m=d.unmount;d.unmount=()=>{_&&_(),u.dispose(),m()}},get global(){return i},dispose(){o.stop()},__instances:r,__getInstance:a,__setInstance:c,__deleteInstance:l};return u}function Em(t={}){const e=Ut();if(e==null)throw Hr(vr.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Hr(vr.NOT_INSTALLED);const n=FX(e),r=BX(n),o=rN(e),i=MX(t,o);if(i==="global")return TX(r,t,o),r;if(i==="parent"){let c=UX(n,e,t.__useComponent);return c==null&&(c=r),c}const s=n;let a=s.__getInstance(e);if(a==null){const c=St({},t);"__i18n"in o&&(c.__i18n=o.__i18n),r&&(c.__root=r),a=oN(c),s.__composerExtend&&(a[Sy]=s.__composerExtend(a)),jX(s,e,a),s.__setInstance(e,a)}return a}function VX(t,e,n){const r=Qa(),o=r.run(()=>oN(t));if(o==null)throw Hr(vr.UNEXPECTED_ERROR);return[r,o]}function FX(t){const e=Rt(t.isCE?kX:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Hr(t.isCE?vr.NOT_INSTALLED_WITH_PROVIDE:vr.UNEXPECTED_ERROR);return e}function MX(t,e){return fm(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function BX(t){return t.mode==="composition"?t.global:t.global.__composer}function UX(t,e,n=!1){let r=null;const o=e.root;let i=$X(e,n);for(;i!=null;){const s=t;if(t.mode==="composition"&&(r=s.__getInstance(i)),r!=null||o===i)break;i=i.parent}return r}function $X(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function jX(t,e,n){es(()=>{},e),Dd(()=>{const r=n;t.__deleteInstance(e);const o=r[Sy];o&&(o(),delete r[Sy])},e)}const HX=["locale","fallbackLocale","availableLocales"],QI=["t","rt","d","n","tm","te"];function zX(t,e){const n=Object.create(null);return HX.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i)throw Hr(vr.UNEXPECTED_ERROR);const s=nt(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,o,s)}),t.config.globalProperties.$i18n=n,QI.forEach(o=>{const i=Object.getOwnPropertyDescriptor(e,o);if(!i||!i.value)throw Hr(vr.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,i)}),()=>{delete t.config.globalProperties.$i18n,QI.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}EX();JY(LY);ZY(QY);eX(Wk);if(__INTLIFY_PROD_DEVTOOLS__){const t=gb();t.__INTLIFY__=!0,kY(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function qX(){return qa(ll)}function aN(){return qa(vb)}function WX(){return qa(gm)}function KX(){return qa(gm)}function cN(){return qa(bb)}const GX=$t({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(t){const e=rt(t._id);if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const n=cN(),r=new RegExp([`<!--${_I}-\\[(\\w+)\\]-->`,".+?",`<!--/${_I}-->`].join(""),"g");e.hook("app:rendered",o=>{o.renderResult?.html!=null&&(o.renderResult.html=o.renderResult.html.replaceAll(r,(i,s)=>i.replace(/href="([^"]+)"/,`href="${encodeURI(n(s??""))}"`)))})}}),QX=$t({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(t){let e,n;const r=rt(t._id),o=r.$router.currentRoute;async function i(a){let c=VQ(r,a,r._vueI18n.__localeFromRoute(a),De(r.$i18n.locale),r.$i18n.getLocaleCookie());if(r._vueI18n.__firstAccess){r._vueI18n.__setLocale(c);const u=Ck(De(r._vueI18n.global.fallbackLocale),[c]);await Promise.all(u.map(d=>r.$i18n.loadLocaleMessages(d))),await r.$i18n.loadLocaleMessages(c)}return await r.runWithContext(()=>Ok(r,c,r._vueI18n.__firstAccess))&&(c=De(r.$i18n.locale)),c}[e,n]=Wn(()=>i(o.value)),await e,n(),A8("locale-changing",async(a,c)=>{let l,u;const d=([l,u]=Wn(()=>r.runWithContext(()=>i(a))),l=await l,u(),l),f=([l,u]=Wn(()=>r.runWithContext(()=>
4490Dk({to:a,nuxtApp:r,from:c,locale:d,routeLocale:r._vueI18n.__localeFromRoute(a)},!0))),l=await l,u(),l);return r._vueI18n.__firstAccess=!1,[l,u]=Wn(()=>r.runWithContext(()=>Lk({nuxt:r,redirectPath:f,locale:d,route:a}))),l=await l,u(),l},{global:!0})}});function YX(t,{extendComposer:e,extendComposerInstance:n}){const r=Qa(),o=t.install.bind(t);t.install=(i,...s)=>{const a=St({},s[0]);a.__composerExtend=l=>(n(l,vu(t)),()=>{}),t.mode==="legacy"&&(a.__vueI18nExtend=l=>(n(l,vu(l)),()=>{})),Reflect.apply(o,t,[i,a]);const c=vu(t);if(r.run(()=>{e(c),t.mode==="legacy"&&Ik(t.global)&&n(t.global,vu(t.global))}),t.mode==="composition"&&i.config.globalProperties.$i18n!=null&&n(i.config.globalProperties.$i18n,c),i.unmount){const l=i.unmount.bind(i);i.unmount=()=>{r.stop(),l()}}}}const XX=$t({name:"i18n:plugin",parallel:tQ,async setup(t){let e,n;const r=rt(t._id);Object.defineProperty(t.versions,"nuxtI18n",{get:()=>"9.5.6"});const o=r.$config.public.i18n,i=RQ(o);IQ(o,i),r.$config.public.i18n.defaultLocale=i;const s={...o,defaultLocale:i,baseUrl:BQ(r)},a=([e,n]=Wn(()=>CQ(eQ,rt())),e=await e,n(),e);a.messages||={},a.fallbackLocale??=!1,i&&(a.locale=i);for(const d of js)a.messages[d]??={};const c=NX(a);r._vueI18n=c,c.__localeFromRoute=wQ(),c.__firstAccess=!0,c.__setLocale=d=>{const f=h_(c);nt(f.locale)?f.locale.value=d:f.locale=d};const l=jQ(),u=th();return YX(c,{extendComposer(d){const f=Te(s.locales);d.locales=xe(()=>f.value);const _=Te(js);d.localeCodes=xe(()=>_.value);const m=Te(s.baseUrl());d.baseUrl=xe(()=>m.value),Kt(d.locale,()=>m.value=s.baseUrl()),d.strategy=s.strategy,d.localeProperties=xe(()=>cl.find(y=>y.code===d.locale.value)||{code:d.locale.value}),d.setLocale=async y=>{if(await Ok(r,y,c.__firstAccess),d.strategy==="no_prefix"){await d.loadLocaleMessages(y),c.__setLocale(y);return}const v=r.$router.currentRoute.value,T=await r.runWithContext(()=>Dk({to:v,nuxtApp:r,locale:y,routeLocale:c.__localeFromRoute(v)}));await r.runWithContext(()=>Lk({nuxt:r,redirectPath:T,locale:y,route:v},!0))},d.loadLocaleMessages=async y=>await by(y,vy,d.mergeLocaleMessage.bind(d),r),d.differentDomains=s.differentDomains,d.defaultLocale=s.defaultLocale,d.getBrowserLocale=()=>$Q(),d.getLocaleCookie=()=>HQ(l,u,d.defaultLocale),d.setLocaleCookie=y=>{!u||!u.useCookie||(l.value=y)},d.onBeforeLanguageSwitch=(y,v,T,w)=>r.callHook("i18n:beforeLocaleSwitch",{oldLocale:y,newLocale:v,initialSetup:T,context:w}),d.onLanguageSwitched=(y,v)=>r.callHook("i18n:localeSwitched",{oldLocale:y,newLocale:v}),d.finalizePendingLocaleChange=async()=>{c.__pendingLocale&&(c.__setLocale(c.__pendingLocale),c.__resolvePendingLocalePromise?.(),c.__pendingLocale=void 0)},d.waitForPendingLocaleChange=async()=>{c.__pendingLocale&&c.__pendingLocalePromise&&await c.__pendingLocalePromise}},extendComposerInstance(d,f){const _=[["locales",()=>f.locales],["localeCodes",()=>f.localeCodes],["baseUrl",()=>f.baseUrl],["strategy",()=>f.strategy],["localeProperties",()=>f.localeProperties],["setLocale",()=>async m=>Reflect.apply(f.setLocale,f,[m])],["loadLocaleMessages",()=>async m=>Reflect.apply(f.loadLocaleMessages,f,[m])],["differentDomains",()=>f.differentDomains],["defaultLocale",()=>f.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(f.getBrowserLocale,f,[])],["getLocaleCookie",()=>()=>Reflect.apply(f.getLocaleCookie,f,[])],["setLocaleCookie",()=>m=>Reflect.apply(f.setLocaleCookie,f,[m])],["onBeforeLanguageSwitch",()=>(m,y,v,T)=>Reflect.apply(f.onBeforeLanguageSwitch,f,[m,y,v,T])],["onLanguageSwitched",()=>(m,y)=>Reflect.apply(f.onLanguageSwitched,f,[m,y])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(f.finalizePendingLocaleChange,f,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(f.waitForPendingLocaleChange,f,[])]];for(const[m,y]of _)Object.defineProperty(d,m,{get:y})}}),r.vueApp.use(c),Object.defineProperty(r,"$i18n",{get:()=>h_(c)}),{provide:{localeHead:qa(WQ),localePath:aN(),localeRoute:WX(),getRouteBaseName:qX(),switchLocalePath:cN(),resolveRoute:qa(Eb),localeLocation:KX()}}}}),JX=$t({name:"pinia",setup(t){const e=FK();return t.vueApp.use(e),Jd(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}}),ZX=Se(()=>p(()=>import("./CRYD58nz.js"),__vite__mapDeps([145,13,146]),import.meta.url).then(t=>t.default||t.default||t)),eJ=Se(()=>p(()=>import("./DBeewoir.js"),__vite__mapDeps([117,38,6,3,4,39,13,118]),import.meta.url).then(t=>t.default||t.default||t)),tJ=Se(()=>p(()=>import("./DtN-goD6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),nJ=Se(()=>p(()=>import("./Coq5Jy7Y.js"),__vite__mapDeps([123,14,73,13,124]),import.meta.url).then(t=>t.default||t.default||t)),rJ=Se(()=>p(()=>import("./6Uif6j__.js"),__vite__mapDeps([231,14,12,73,13,232]),import.meta.url).then(t=>t.default||t.default||t)),oJ=Se(()=>p(()=>import("./CakTeUWy.js"),__vite__mapDeps([106,73,13]),import.meta.url).then(t=>t.default||t.default||t)),iJ=Se(()=>p(()=>import("./CAaY2wp0.js"),__vite__mapDeps([72,5,6,7,4,3,73]),import.meta.url).then(t=>t.default||t.default||t)),sJ=Se(()=>p(()=>import("./Dt4kH8JH.js"),[],import.meta.url).then(t=>t.default||t.default||t)),aJ=Se(()=>p(()=>import("./DzhN8Ubo.js"),__vite__mapDeps([129,12,49,13,130]),import.meta.url).then(t=>t.default||t.default||t)),cJ=Se(()=>p(()=>import("./JXdj-L5x.js"),__vite__mapDeps([92,1,2,3,4,5,6,7,73,52,51,93]),import.meta.url).then(t=>t.default||t.default||t)),lJ=Se(()=>p(()=>import("./BIQHGg8C.js"),[],import.meta.url).then(t=>t.default||t.default||t)),uJ=Se(()=>p(()=>import("./CKNUYFc-.js"),__vite__mapDeps([107,108,20,4,27,28,6,3,2,5,7,52,51]),import.meta.url).then(t=>t.default||t.default||t)),dJ=Se(()=>p(()=>import("./CDAttP3V.js"),__vite__mapDeps([108,20,4]),import.meta.url).then(t=>t.default||t.default||t)),hJ=Se(()=>p(()=>import("./CalJKBMG.js"),__vite__mapDeps([64,12,5,6,7,4,3,13,65]),import.meta.url).then(t=>t.default||t.default||t)),fJ=Se(()=>p(()=>import("./CgGuOkZj.js"),__vite__mapDeps([317,5,6,7,4,3]),import.meta.url).then(t=>t.default||t.default||t)),pJ=Se(()=>p(()=>import("./BzEncshO.js"),__vite__mapDeps([143,28,6,3,4,78,79,80,5,7,13,144]),import.meta.url).then(t=>t.default||t.default||t)),_J=Se(()=>p(()=>import("./DFcPj0FS.js"),__vite__mapDeps([121,13,122]),import.meta.url).then(t=>t.default||t.default||t)),mJ=Se(()=>p(()=>import("./oYNpiOyq.js"),__vite__mapDeps([47,12]),import.meta.url).then(t=>t.default||t.default||t)),gJ=Se(()=>p(()=>import("./BoG2sNHB.js"),__vite__mapDeps([119,13,120]),import.meta.url).then(t=>t.default||t.default||t)),yJ=Se(()=>p(()=>import("./BQ1shXYz.js"),__vite__mapDeps([109,110,111,12,13,112,113,114]),import.meta.url).then(t=>t.default||t.default||t)),vJ=Se(()=>p(()=>import("./CPd_Yagj.js"),__vite__mapDeps([115,116]),import.meta.url).then(t=>t.default||t.default||t)),EJ=Se(()=>p(()=>import("./BOhocEGZ.js"),__vite__mapDeps([318,73]),import.meta.url).then(t=>t.default||t.default||t)),bJ=Se(()=>p(()=>import("./DkQ6Rt--.js"),__vite__mapDeps([148,5,6,7,4,3,1,2,149,29,30,31,32,60,150,151,152,153,79,28,80,154,155,156,157,158,51,54,52,159,160,161,162,163,164,165,13,166]
4490),import.meta.url).then(t=>t.default||t.default||t)),wJ=Se(()=>p(()=>import("./Co7Zmrqt.js"),__vite__mapDeps([174,12,5,6,7,4,3,13,175]),import.meta.url).then(t=>t.default||t.default||t)),TJ=Se(()=>p(()=>import("./4PsfmXfG.js"),__vite__mapDeps([177,12,31,3,4,29,13,178]),import.meta.url).then(t=>t.default||t.default||t)),AJ=Se(()=>p(()=>import("./gVOTRgHV.js"),__vite__mapDeps([319,5,6,7,4,3,77,176,31,29,174,12,13,175]),import.meta.url).then(t=>t.default||t.default||t)),xJ=Se(()=>p(()=>import("./3inA0bAG.js"),__vite__mapDeps([176,31,3,4,29]),import.meta.url).then(t=>t.default||t.default||t)),IJ=Se(()=>p(()=>import("./B8JJpMjl.js"),__vite__mapDeps([168,13,169]),import.meta.url).then(t=>t.default||t.default||t)),RJ=Se(()=>p(()=>import("./CGR2jMrB.js"),__vite__mapDeps([320,13,321]),import.meta.url).then(t=>t.default||t.default||t)),CJ=Se(()=>p(()=>import("./BmaIRQMm.js"),__vite__mapDeps([172,12,5,6,7,4,3,13,173]),import.meta.url).then(t=>t.default||t.default||t)),PJ=Se(()=>p(()=>import("./YO86q1wn.js"),__vite__mapDeps([170,12,5,6,7,4,3,171]),import.meta.url).then(t=>t.default||t.default||t)),SJ=Se(()=>p(()=>import("./DVM2htH0.js"),__vite__mapDeps([186,28,6,3,4,187,19,39,5,7,181,188,51,52]),import.meta.url).then(t=>t.default||t.default||t)),OJ=Se(()=>p(()=>import("./M6STGhye.js"),__vite__mapDeps([167,5,6,7,4,3,11,12,13,168,169,170,171,172,173,174,175,176,31,29,177,178,179,51,180]),import.meta.url).then(t=>t.default||t.default||t)),DJ=Se(()=>p(()=>import("./CX27KUUi.js"),__vite__mapDeps([37,23,7,4,3,38,6,39]),import.meta.url).then(t=>t.default||t.default||t)),LJ=Se(()=>p(()=>import("./CzHwiiBz.js"),__vite__mapDeps([22,12,23,7,4,3,5,6]),import.meta.url).then(t=>t.default||t.default||t)),kJ=Se(()=>p(()=>import("./BrJ_eAuA.js"),__vite__mapDeps([40,14,13]),import.meta.url).then(t=>t.default||t.default||t)),NJ=Se(()=>p(()=>import("./D-3Sew4f.js"),__vite__mapDeps([21,12,5,6,7,4,3,14,13]),import.meta.url).then(t=>t.default||t.default||t)),VJ=Se(()=>p(()=>import("./8s2fkapj.js"),__vite__mapDeps([24,23,7,4,3,12]),import.meta.url).then(t=>t.default||t.default||t)),FJ=Se(()=>p(()=>import("./D_Vqyi7Q.js"),__vite__mapDeps([34,11,12,13,35,5,6,7,4,3,36]),import.meta.url).then(t=>t.default||t.default||t)),MJ=Se(()=>p(()=>import("./DnauLnJJ.js"),__vite__mapDeps([10,11,12,13,14,15,5,6,7,4,3,16,17,18,19,20]),import.meta.url).then(t=>t.default||t.default||t)),BJ=Se(()=>p(()=>import("./B8kYVhZZ.js"),__vite__mapDeps([25,23,7,4,3,26,6,12,27,28,2,5,29,30,31,32]),import.meta.url).then(t=>t.default||t.default||t)),UJ=Se(()=>p(()=>import("./CrWtMChu.js"),__vite__mapDeps([33,29,3,4,30,31,32]),import.meta.url).then(t=>t.default||t.default||t)),$J=[["OnboardingExampleSlider",ZX],["OnboardingFAQ",eJ],["OnboardingFilterSelection",tJ],["OnboardingFooter",nJ],["OnboardingFooter2",rJ],["OnboardingHeader",oJ],["OnboardingImageInformation",iJ],["OnboardingImageReaction",sJ],["OnboardingImageUploader",aJ],["OnboardingLoginForm",cJ],["OnboardingMultiSelect",lJ],["OnboardingPaymentCard",uJ],["OnboardingPriceItem",dJ],["OnboardingRenderer",hJ],["OnboardingScaleStep",fJ],["OnboardingTaskProgressWithQuestions",pJ],["OnboardingTestimonials",_J],["OnboardingUploadTips",mJ],["OnboardingUsedByMillions",gJ],["OnboardingWatermarkedExamples",yJ],["OnboardingWhatYouGet",vJ],["OnboardingYesNoQuestion",EJ],["QuizEditor",bJ],["QuizEmojiChoice",wJ],["QuizImageText",TJ],["QuizMarketingQuiz",AJ],["QuizMultipleChoice",xJ],["QuizProgress",IJ],["QuizResulltDev",RJ],["QuizResultProd",CJ],["QuizStarter",PJ],["QuizTranslateDialog",SJ],["QuizViewer",OJ],["LandingFAQSection",DJ],["LandingFeaturesSection",LJ],["LandingFooterSection",kJ],["LandingHeroSection",NJ],["LandingHowItWorks",VJ],["LandingMagicRetake",FJ],["LandingNavbar",MJ],["LandingPricingSection",BJ],["LandingTestimonialsSection",UJ]],jJ=$t({name:"nuxt:global-components",setup(t){for(const[e,n]of $J)t.vueApp.component(e,n),t.vueApp.component("Lazy"+e,n)}}),ks={"dashboard-backup":Se(()=>p(()=>import("./DoljYPvs.js"),__vite__mapDeps([322,323,14,5,6,7,4,3,11,12,13,23,15,16,17,18,19,249,2,95,52,51,273,251,264,283,53,284,54,98,324]),import.meta.url).then(t=>t.default||t)),dashboard:Se(()=>p(()=>import("./TY1x6H3V.js"),__vite__mapDeps([325,323,14,5,6,7,4,3,11,12,13,23,275,26,15,16,17,18,19,2,95,273,51,250,97,96,100,52,179,238,326]),import.meta.url).then(t=>t.default||t)),default:Se(()=>p(()=>import("./Wn_ZzRlG.js"),__vite__mapDeps([327,13]),import.meta.url).then(t=>t.default||t)),home:Se(()=>p(()=>import("./CQ6MzgR1.js"),__vite__mapDeps([328,14,13]),import.meta.url).then(t=>t.default||t)),"none-layout":Se(()=>p(()=>import("./Da15L_6Z.js"),__vite__mapDeps([329,13]),import.meta.url).then(t=>t.default||t)),"onboarding-layout":Se(()=>p(()=>
4490import("./DFxdUlh1.js"),[],import.meta.url).then(t=>t.default||t)),onboarding:Se(()=>p(()=>import("./B4rvuLda.js"),__vite__mapDeps([330,13]),import.meta.url).then(t=>t.default||t)),polaroid:Se(()=>p(()=>import("./BvGrUJH2.js"),__vite__mapDeps([331,28,6,3,4,78,79,80,29,30,31,32,5,7,23,198,51,101,228,96,204,205,203]),import.meta.url).then(t=>t.default||t)),"quiz-mobile":Se(()=>p(()=>import("./DSKUy6St.js"),__vite__mapDeps([332,13]),import.meta.url).then(t=>t.default||t))},HJ=$t({name:"nuxt:prefetch",setup(t){const e=mn();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof ks[r]=="function"&&await ks[r]()})}),t.hooks.hook("link:prefetch",n=>{if(cs(n))return;const r=e.resolve(n);if(!r)return;const o=r.meta.layout;let i=kE(r.meta.middleware);i=i.filter(s=>typeof s=="string");for(const s of i)typeof yy[s]=="function"&&yy[s]();typeof o=="string"&&o in ks&&mQ(ks[o])})}}),zJ="__NUXT_COLOR_MODE__",M0="nuxt-color-mode",qJ="localStorage",Ci=window[zJ]||{},WJ=$t(t=>{const e=eh("color-mode",()=>Er({preference:Ci.preference,value:Ci.value,unknown:!1,forced:!1})).value;mn().afterEach(i=>{const s=i.meta.colorMode;s&&s!=="system"?(e.value=s,e.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?Ci.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=Ci.getColorScheme())}))}function o(i,s){switch(i){case"cookie":window.document.cookie=M0+"="+s;break;case"sessionStorage":window.sessionStorage?.setItem(M0,s);break;case"localStorage":default:window.localStorage?.setItem(M0,s)}}Kt(()=>e.preference,i=>{e.forced||(i==="system"?(e.value=Ci.getColorScheme(),r()):e.value=i,o(qJ,i))},{immediate:!0}),Kt(()=>e.value,(i,s)=>{Ci.removeColorScheme(s),Ci.addColorScheme(i)}),e.preference==="system"&&r(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=Ci.preference,e.value=Ci.value,e.unknown=!1)}),t.provide("colorMode",e)}),KJ=$t(()=>({provide:{firebaseApp:dS(br().public.vuefire.config)}})),GJ=$t(t=>{const e=t.$firebaseApp;return OK({initialUser:t.payload.vuefireUser,dependencies:{errorMap:hD,persistence:[WD,BD],popupRedirectResolver:YD}})(e,t.vueApp),{provide:{firebaseAuth:t.vueApp.runWithContext(()=>Rt(mb))}}}),QJ=$t(t=>{const e=t.$firebaseApp;t.vueApp.use(kK,{firebaseApp:e})}),p_={EVENT:"/log/web",USER:"/user/web",CONFIG:"/web"},wa={STAGING:"STAGING",PRODUCTION:"PRODUCTION"}
4490,dl={staging:"https://gateway.staging.cerebroapi.com",production:"https://gateway.cerebroapi.com"},Oy={staging:"https://config-api.staging.cdwapi.com",production:"https://config-api.cdwapi.com"},Bu={debug:!1,batchSize:10,flushInterval:5e3,maxRetries:3,environment:wa.STAGING,baseUrl:dl.staging,configUrl:Oy.staging,autoTrackingConfig:{trackErrors:!1,trackPerformance:!1,trackPageVisibility:!0},initialTasks:{sendInitialUserEvent:!0},version:"1.0.0"};class lN{constructor(e={}){this.debug=e.debug||!1,this.prefix=e.prefix||"[Cerebro]"}setDebug(e){this.debug=e}setPrefix(e){this.prefix=e}log(...e){this.debug&&console.log(this.prefix,...e)}warn(...e){this.debug&&console.warn(this.prefix,...e)}error(...e){this.debug&&console.error(this.prefix,...e)}info(...e){this.debug&&console.info(this.prefix,...e)}}const ye=new lN;function YJ(t){return new lN(t)}function uN(t){ye.setDebug(t)}class dN{constructor(e,n){this.queue=[],this.flushTimer=null,this.httpClient=e,this.flushInterval=n?.flushInterval||Bu.flushInterval,this.batchSize=n?.batchSize||Bu.batchSize,this.maxRetries=n?.maxRetries||Bu.maxRetries,this.appId=n?.appId||"cerebro-web-sdk",this.version=n?.version||"1.0.0",this.debug=n?.debug||!1,this.startFlushTimer()}add(e){this.queue.push(e),ye.log(`Added event to queue: ${e.event_name}`,e),ye.log(`Queue size: ${this.queue.length}/${this.batchSize}`),this.flush()}startFlushTimer(){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>this.flush(),this.flushInterval),ye.log(`Started flush timer with interval: ${this.flushInterval}ms`)}async flush(){if(this.queue.length===0)return;ye.log(`Flushing ${this.queue.length} events`);const e=this.queue.splice(0,this.batchSize),r={event_logs:e.map(o=>this.convertToLegacyEvent(o))};ye.log(`Sending events to ${p_.EVENT}:`,r);try{const o=await this.httpClient.post(p_.EVENT,r);ye.log("Events sent successfully:",o)}catch(o){ye.error("Failed to send events:",o),this.queue.unshift(...e),ye.log(`Events added back to queue for retry. Queue size: ${this.queue.length}`)}}convertToLegacyEvent(e){const n={user_id:e.user_id,type:"event",app_id:this.appId,version:this.version,result:e.result||"success",session_id:e.session_id,event_group:e.event_group||null,event_name:e.event_name,event_time:e.timestamp||Date.now(),duration:e.duration||null,event_category:e.event_category||null,page:e.page||"",properties:this.convertToLegacyFormat(e.properties)};return ye.log("Converted event to legacy format:",n),n}destroy(){this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,ye.log("Flush timer stopped")),this.queue.length>0&&(ye.log(`Flushing ${this.queue.length} remaining events before destroy`),this.flush())}convertToLegacyFormat(e){return e.map(n=>({key:n.name,value:n.value}))}}class hN{get(e){try{return typeof window<"u"&&window.localStorage?window.localStorage.getItem(e):(ye.warn("LocalStorage is not available."),null)}catch(n){return ye.error("LocalStorage error on get:",n),null}}set(e,n){try{typeof window<"u"&&window.localStorage?window.localStorage.setItem(e,n):ye.warn("LocalStorage is not available. Cannot set item.")}catch(r){throw ye.error("LocalStorage error on set:",r),r}}remove(e){try{typeof window<"u"&&window.localStorage?window.localStorage.removeItem(e):ye.warn("LocalStorage is not available. Cannot remove item.")}catch(n){throw ye.error("LocalStorage error on remove:",n),n}}}const ws={UTM_PARAMS:"cerebro_utm",TRACKER_NAME:"cdw_tracker"};class fN{constructor(e){this.cachedAttribution=null,this.storage=e?.storage||new hN}getAttribution(){try{if(this.cachedAttribution)return this.cachedAttribution;const e=this.storage.get(ws.UTM_PARAMS);if(e)try{return this.cachedAttribution=JSON.parse(e),this.cachedAttribution||{}}catch{}const n={},r=new URLSearchParams(window.location.search);for(const[i,s]of r.entries())i.startsWith("utm_")&&(n[i]=s);const o=this.getTrackerName();return o&&(n.tracker_name=o),Object.keys(n).length>0&&(this.cachedAttribution=n,this.storage.set(ws.UTM_PARAMS,JSON.stringify(n))),o&&this.storage.set(ws.TRACKER_NAME,o),this.cachedAttribution||{}}catch(e){return ye.error("Failed to get attribution:",e),{}}}clearAttribution(){this.cachedAttribution=null,this.storage.remove(ws.UTM_PARAMS),this.storage.remove(ws.TRACKER_NAME)}getTrackerName(){const e=new URLSearchParams(window.location.search),n=e.get("utm_source"),r=e.get("utm_medium"),o=e.get("utm_campaign"),i=e.get("utm_term"),s=e.get("utm_content"),a=[];let c="";return(n||r)&&(n?r?c=`${n}_${r}`:c=n:r&&(c=r)),c&&a.push(c),o&&a.push(o),s&&a.push(s),i&&a.push(i),a.join("::")}getStoredTrackerName(){return this.storage.get(ws.TRACKER_NAME)||""}setTrackerName(e){e&&(this.storage.set(ws.TRACKER_NAME,e),this.cachedAttribution&&(this.cachedAttribution.tracker_name=e))}}class XJ{get(e){try{return typeof window<"u"&&window.sessionStorage?window.sessionStorage.getItem(e):(ye.warn("SessionStorage is not available."),null)}catch(n){return ye.error("SessionStorage error on get:",n),null}}set(e,n){try{typeof window<"u"&&window.sessionStorage?window.sessionStorage.setItem(e,n):ye.warn("SessionStorage is not available. Cannot set item.")}catch(r){throw ye.error("SessionStorage error on set:",r),r}}remove(e){try{typeof window<"u"&&window.sessionStorage?window.sessionStorage.removeItem(e):ye.warn("SessionStorage is not available. Cannot remove item.")}catch(n){throw ye.error("SessionStorage error on remove:",n),n}}}const wf={SESSION_ID:"cdw_sid"};class bm{constructor(e={}){this.storage=e.storage||new XJ,this.cerebroId=e.cerebroId}static async _sha256(e){if(typeof crypto>"u"||!crypto.subtle)throw new Error("Web Crypto API (crypto.subtle) is not available in this environment.");const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
4490n);return Array.from(new Uint8Array(r)).map(s=>s.toString(16).padStart(2,"0")).join("")}async _generateSessionId(e,n=Date.now()){return await bm._sha256(n.toString()+e)}setCerebroId(e){this.cerebroId=e}async getCurrentSession(){if(!this.cerebroId)throw new Error("CerebroId must be set before getting the session.");const e=wf.SESSION_ID;let n=this.storage.get(e);if(!n||n==="undefined")try{n=await this._generateSessionId(this.cerebroId),this.setSessionId(n)}catch(r){throw ye.error("Failed to generate or set session ID:",r),new Error(`Failed to initialize session: ${r instanceof Error?r.message:String(r)}`)}return n}setSessionId(e){this.storage.set(wf.SESSION_ID,e)}async updateSession(){await this.getCurrentSession()}clearSession(){this.storage.remove(wf.SESSION_ID)}}const YI={_Rixits:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-",fromNumber(t){if(Number.isNaN(Number(t))||t===null||t===Number.POSITIVE_INFINITY)throw new Error("The input is not valid");if(t<0)throw new Error("Can't represent negative numbers now");let e,n=Math.floor(t),r="";for(;n!==0;)e=n%64,r=this._Rixits.charAt(e)+r,n=Math.floor(n/64);return r},toNumber(t){let e=0;const n=t.split("");for(let r=0;r<n.length;r++)e=e*64+this._Rixits.indexOf(n[r]);return e}},ma={CEREBRO_ID:"cdw_cid"};class pN{constructor(e){this.currentCerebroId=null,this.storage=e?.storage||new hN}identify(e){this.currentCerebroId=e;try{this.storage.set(ma.CEREBRO_ID,e)}catch(n){ye.error("Error saving identified user ID:",n)}}setCerebroId(e){this.currentCerebroId=e;try{this.storage.set(ma.CEREBRO_ID,e)}catch(n){ye.error("Error saving set user ID:",n)}}getCurrentUserId(){if(this.currentCerebroId)return this.currentCerebroId;try{const e=this.storage.get(ma.CEREBRO_ID);if(e)return this.currentCerebroId=e,e}catch(e){ye.error("Error getting current user ID from storage:",e)}return null}clearUser(){this.currentCerebroId=null;try{this.storage.remove(ma.CEREBRO_ID)}catch(e){ye.error("Error removing user ID from storage:",e)}}generateCerebroId(){const e=Date.now(),n=Math.floor(Math.random()*258047)+4096;return`web_${YI.fromNumber(n)}${YI.fromNumber(e)}`}getCerebroId(){if(this.currentCerebroId)return this.currentCerebroId;try{const n=this.storage.get(ma.CEREBRO_ID);if(n)return this.currentCerebroId=n,n}catch(n){ye.error("Error getting Cerebro ID from storage:",n)}const e=this.generateCerebroId();this.currentCerebroId=e;try{this.storage.set(ma.CEREBRO_ID,e)}catch(n){ye.error("Error saving newly generated Cerebro ID:",n)}return e}}const JJ=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","bytespider"],XI=function(t,e){if(!t)return!1;const n=t.toLowerCase();return JJ.concat(e||[]).some(r=>{const o=r.toLowerCase();return n.indexOf(o)!==-1})};function ZJ(t,e=[]){if(ye.log("Checking if likely bot..."),!t)return ye.log("Navigator is undefined, returning false"),!1;const n=t.userAgent;if(ye.log("User Agent:",n),n&&XI(n,e))return ye.log("Blocked UA detected:",n),!0;try{const r=t.userAgentData;if(ye.log("User Agent Data:",r),r?.brands&&r.brands.some(o=>XI(o?.brand,e)))return ye.log("uaData.brands",JSON.stringify(r.brands,null,2)),ye.log("Blocked brand detected in UA data"),!0}catch(r){ye.log("Error accessing UA data:",r)}return ye.log("Navigator webdriver:",t.webdriver),!!t.webdriver}class _N{constructor(e){this.cryptoJsInstance=null,this.webCryptoAvailable=!1,e.baseUrl?this.baseUrl=e.baseUrl:e.environment===wa.PRODUCTION?this.baseUrl=dl.production:this.baseUrl=dl.staging,this.apiKey=e.apiKey,this.appId=e.appId,this.passphrase=e.passphrase,this.debug=e.debug||!1,this.blockedUserAgents=e.blockedUserAgents||[],this.webCryptoAvailable=typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof crypto.subtle.importKey=="function",ye.log(`HttpClient initialized with baseUrl: ${this.baseUrl}`),ye.log(`Web Crypto API available: ${this.webCryptoAvailable}`)}async loadCryptoJS(){if(this.cryptoJsInstance)return this.cryptoJsInstance;try{if(typeof window<"u"&&window.CryptoJS)return this.cryptoJsInstance=window.CryptoJS,ye.log("Using CryptoJS from global scope"),this.cryptoJsInstance;try{const e=await p(()=>Promise.resolve().then(()=>Wte),void 0,import.meta.url);return this.cryptoJsInstance=e.default||e,ye.log("CryptoJS dynamically imported"),this.cryptoJsInstance}catch{throw new Error("[Cerebro] Failed to load CryptoJS. Please install crypto-js package or include it via CDN.")}}catch(e){throw ye.error("Error loading CryptoJS:",e),e}}async createSecureSignature(e){if(this.webCryptoAvailable)try{return await this.createSignatureWebCryptoApi(e)}catch(n){ye.warn("Web Crypto API failed, falling back to CryptoJS:",n)}try{const n=await this.loadCryptoJS();return this.createSignatureWithCryptoJS(e,n)}catch(n){throw ye.error("Failed to create signature:",n),new Error("[Cerebro] Could not create request signature. Signature creation failed with both Web Crypto API and CryptoJS.")}}createSignatureWithCryptoJS(e,n){const r=n.HmacSHA256(e,this.passphrase||"").toString(n.enc.Hex);return ye.log(`Created signature with CryptoJS for: ${e}`),r}async createSignatureWebCryptoApi(e){const n=new TextEncoder,r=n.encode(this.passphrase||""),o=n.encode(e),i=await crypto.subtle.importKey("raw",r,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await crypto.subtle.sign("HMAC",i,o),a=Array.from(new Uint8Array(s)).map(c=>c.toString(16).padStart(2,"0")).join("");return ye.log(`Created signature with Web Crypto API for: ${e}`),a}async post(e,n,r){const o=Date.now(),i={"Content-Type":"application/json",authorization:this.apiKey};if(this.passphrase){const a=[JSON.stringify(n),this.apiKey,o,e].join("_"),c=await this.createSecureSignature(a);i.ts=o.toString(),i.rs=c}else ye.warn("No passphrase provided for signature creation. Requests may be rejected.");
4490if(this._isLikelyBot())throw ye.warn("Request blocked due to likely bot activity."),new Error("Request blocked due to likely bot activity.");const s=`${this.baseUrl}${e}`;ye.log(`Sending POST request to: ${s}`),ye.log("Request headers:",i),ye.log("Request body:",n);try{const a={method:"POST",headers:i,body:JSON.stringify(n)};r?.keepAlive&&(a.keepalive=!0,ye.log("Using keepAlive for critical event"));const c=await fetch(s,a);if(!c.ok){const u=`HTTP error! status: ${c.status}`;throw ye.error("Request failed:",u),new Error(u)}const l=await c.json();return ye.log("Response received:",l),l}catch(a){throw ye.error("Request error:",a),a}}async get(e){const n=`${e}`;return await fetch(n)}_isLikelyBot(){return ZJ(navigator,this.blockedUserAgents)}}class mN{constructor(e){this.analytics=e,this.errorHandler=null,this.rejectionHandler=null,this.popStateHandler=null,this.loadHandler=null,this.visibilityChangeHandler=null,this.pageHideHandler=null,this.beforeUnloadHandler=null,this.lastUrl=null,this.initialized=!1,this.pageStartTime=null,this.isUnloading=!1,this.config={trackPageViews:!0,trackErrors:!0,trackPerformance:!0,trackPageVisibility:!0},this.originalPushState=history.pushState,this.originalReplaceState=history.replaceState}initialize(e){this.initialized&&this.cleanup(),this.config={...this.config,...e},this.config.trackPageViews&&(this.setupPageTracking(),setTimeout(()=>{this.lastUrl!==window.location.href&&this.trackPageView()},50)),this.config.trackPageVisibility&&(this.setupPageVisibilityTracking(),this.pageStartTime=Date.now()),this.config.trackErrors&&this.setupErrorTracking(),this.config.trackPerformance&&this.setupPerformanceTracking(),this.initialized=!0}cleanup(){history.pushState=this.originalPushState,history.replaceState=this.originalReplaceState,this.popStateHandler&&(window.removeEventListener("popstate",this.popStateHandler),this.popStateHandler=null),this.errorHandler&&(window.removeEventListener("error",this.errorHandler),this.errorHandler=null),this.rejectionHandler&&(window.removeEventListener("unhandledrejection",this.rejectionHandler),this.rejectionHandler=null),this.loadHandler&&(window.removeEventListener("load",this.loadHandler),this.loadHandler=null),this.visibilityChangeHandler&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=null),this.pageHideHandler&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null),this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=null),this.lastUrl=null,this.pageStartTime=null,this.isUnloading=!1,this.initialized=!1}setupPageTracking(){this.popStateHandler=()=>{window.location.href!==this.lastUrl&&this.trackPageView()},window.addEventListener("popstate",this.popStateHandler),history.pushState=(e,n,r)=>{this.originalPushState.apply(history,[e,n,r]),window.location.href!==this.lastUrl&&this.trackPageView()},history.replaceState=(e,n,r)=>{this.originalReplaceState.apply(history,[e,n,r]),window.location.href!==this.lastUrl&&this.trackPageView()}}setupErrorTracking(){this.errorHandler=e=>{this.analytics.sendEvent({eventName:"error_occurred",event_category:"qa",properties:{error_type:"js_error",error_message:e.message,error_filename:e.filename,error_lineno:e.lineno,error_colno:e.colno,error_stack:e.error?.stack}})},window.addEventListener("error",this.errorHandler),this.rejectionHandler=e=>{this.analytics.sendEvent({eventName:"error_occurred",event_category:"qa",properties:{error_type:"unhandled_rejection",error_message:e.reason?.message||"Unhandled Promise Rejection",error_stack:e.reason?.stack}})},window.addEventListener("unhandledrejection",this.rejectionHandler)}setupPerformanceTracking(){"performance"in window&&(this.loadHandler=()=>{setTimeout(()=>{this.trackNavigationTiming(),this.trackResourceTiming(),this.trackWebVitals(),this.trackMemoryUsage()},0)},window.addEventListener("load",this.loadHandler))}trackNavigationTiming(){if(window.performance&&window.performance.getEntriesByType)try{const e=window.performance.getEntriesByType("navigation");if(e.length>0){const n=e[0],r=n.responseStart-n.startTime,o=window.performance.getEntriesByName("first-contentful-paint")[0];this.analytics.sendEvent({eventName:"performance_metrics",event_category:"performance",properties:{dns_lookup_time:n.domainLookupEnd-n.domainLookupStart,tcp_connect_time:n.connectEnd-n.connectStart,request_time:n.responseStart-n.requestStart,response_time:n.responseEnd-n.responseStart,dom_processing_time:n.domContentLoadedEventEnd-n.domContentLoadedEventStart,load_event_time:n.loadEventEnd-n.loadEventStart,total_load_time:n.loadEventEnd-n.fetchStart,rating:this.getRating("ttfb",r)}}),o&&this.analytics.sendEvent({eventName:"performance_metrics",event_category:"performance",properties:{rating:this.getRating("fcp",o.startTime)}}),new PerformanceObserver(s=>{const a=s.getEntries(),c=a[a.length-1];this.analytics.sendEvent({eventName:"performance_metrics",event_category:"performance",properties:{rating:this.getRating("lcp",c.startTime)}})}).observe({type:"largest-contentful-paint",buffered:!0})}}catch(e){ye.error("Error tracking navigation timing",e)}}trackResourceTiming(){if(window.performance&&window.performance.getEntriesByType)try{window.performance.getEntriesByType("resource").forEach(n=>{["script","css","img"].includes(n.initiatorType)&&this.analytics.sendEvent({eventName:"resource_performance",event_category:"performance",properties:{name:n.name,duration:Math.round(n.duration),size:n.transferSize||0,type:n.initiatorType}})})}catch(e){ye.error("Error tracking resource timing",e)}}trackWebVitals(){try{new PerformanceObserver(r=>
4490{r.getEntries().forEach(i=>{i.hadRecentInput||this.analytics.sendEvent({eventName:"performance_metrics",event_category:"performance",properties:{rating:this.getRating("cls",i.value)}})})}).observe({type:"layout-shift",buffered:!0});const n=new PerformanceObserver(r=>{const o=r.getEntries()[0];this.analytics.sendEvent({eventName:"performance_metrics",event_category:"performance",properties:{rating:this.getRating("fid",o.processingStart-o.startTime)}}),n.disconnect()});n.observe({type:"first-input",buffered:!0})}catch(e){ye.error("Error tracking web vitals",e)}}trackMemoryUsage(){if("performance"in window&&"memory"in window.performance)try{const e=performance.memory;this.analytics.sendEvent({eventName:"memory_usage",event_category:"performance",properties:{total_js_heap_size:Math.round(e.totalJSHeapSize/1048576),used_js_heap_size:Math.round(e.usedJSHeapSize/1048576),js_heap_size_limit:Math.round(e.jsHeapSizeLimit/1048576)}})}catch(e){ye.error("Error tracking memory usage",e)}}getRating(e,n){switch(e){case"LCP":return n<=2500?"good":n<=4e3?"needs-improvement":"poor";case"FID":return n<=100?"good":n<=300?"needs-improvement":"poor";case"CLS":return n<=.1?"good":n<=.25?"needs-improvement":"poor";default:return"unknown"}}setupPageVisibilityTracking(){this.visibilityChangeHandler=()=>{const n=document.visibilityState;n==="hidden"?this.sendPageVisibilityEvent("web_page_hidden"):n==="visible"&&this.sendPageVisibilityEvent("web_page_visible")},document.addEventListener("visibilitychange",this.visibilityChangeHandler);const e=()=>{this.isUnloading=!0,this.sendPageVisibilityEvent("web_page_leave",!0)};"onpagehide"in window?(this.pageHideHandler=e,window.addEventListener("pagehide",this.pageHideHandler)):(this.pageHideHandler=e,window.addEventListener("unload",this.pageHideHandler)),this.beforeUnloadHandler=()=>{this.isUnloading=!0},window.addEventListener("beforeunload",this.beforeUnloadHandler)}sendPageVisibilityEvent(e,n=!1){const r={visibility_state:e==="web_page_leave"?"closed":document.visibilityState,result:"success"};document.referrer&&(r.referrer=document.referrer),e==="web_page_leave"&&this.pageStartTime&&(r.is_unloading=this.isUnloading,r.page_session_duration=Date.now()-this.pageStartTime),this.analytics.sendEvent({eventName:e,page:window.location.pathname,properties:r},n)}trackPageView(){const e=window.location.href;this.lastUrl=e,this.analytics.sendEvent({eventName:"web_page_open",eventGroup:"Web",page:window.location.pathname})}}function eZ(t){if(!t||Object.keys(t).length===0)return[];const e=[];return Object.entries(t).forEach(([n,r])=>{let o="string_value";typeof r=="number"?Number.isInteger(r)?o="int_value":o="float_value":r=String(r),e.push({key:n,value:{[o]:r}})}),e}class Wt{constructor(){this.debug=!1,this.initialized=!1,this.sdkVersion="0.2.0"}async initialize(e){if(this.initialized)return;if(!e.apiKey)throw new Error("[Cerebro] API key is required");if(!e.appId)throw new Error("[Cerebro] App ID is required");if(!e.passphrase)throw new Error("[Cerebro] Passphrase is required for secure API communication");this.config={...Bu,...e},this.debug=this.config.debug||!1,ye.log(`SDK Version: ${this.sdkVersion}, App Version: ${this.config.version||"1.0.0"}`),this.httpClient=new _N({...this.config}),this.eventQueue=new dN(this.httpClient,{flushInterval:this.config.flushInterval,batchSize:this.config.batchSize,appId:this.config.appId,version:this.config.version||"1.0.0",debug:this.debug}),this.userManager=new pN({});const n=this.userManager.getCerebroId();this.sessionManager=new bm({cerebroId:n}),this.marketingManager=new fN({}),this.initialized=!0,this.config.initialTasks?.sendInitialUserEvent!==!1&&(ye.log("Sending initial user event for identification"),await this.sendUserEvent()),this.autoTracker=new mN(this),ye.log("Initialized with config:",this.config),setTimeout(()=>{const o={trackPageViews:!0,trackErrors:!1,trackPerformance:!1,trackPageVisibility:!0,...this.config.autoTrackingConfig};this.autoTracker.initialize(o),ye.log("Auto tracking initialized with config:",o)},0)}static getInstance(){return Wt.instance||(Wt.instance=new Wt),Wt.instance}ensureInitialized(){if(!this.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.")}async sendEvent(e,n){this.ensureInitialized();const{eventName:r,properties:o,eventGroup:i,event_category:s,page:a}=e,c=i??(o&&"event_group"in o?o.event_group:void 0),l=this.marketingManager.getAttribution(),u=await this.sessionManager.getCurrentSession(),d={...this.config.globalProperties,...this.getDeviceProperties(),...o,...l,cerebroSdkVersion:this.sdkVersion};i&&Object.prototype.hasOwnProperty.call(d,"event_group")&&delete d.event_group;const f=eZ(d).map(m=>({name:m.key,value:m.value})),_={event_name:r,properties:f,timestamp:Date.now(),page:a||this.getCurrentPage(),user_id:this.userManager.getCurrentUserId()||void 0,session_id:u||void 0};if(c&&(_.event_group=c),s&&(_.event_category=s),e.result&&(_.result=e.result),n){ye.log(`Sending critical event with keepAlive: ${r}`);const y={event_logs:[{user_id:_.user_id,type:"event",app_id:this.config.appId,version:this.config.version||"1.0.0",result:_.result||"success",session_id:_.session_id,event_group:_.event_group||null,event_name:_.event_name,event_time:_.timestamp||Date.now(),duration:_.duration||null,event_category:_.event_category||null,page:_.page||"",properties:_.properties.map(v=>({key:v.name,value:v.value}))}]};try{await this.httpClient.post("/log/web",y,{keepAlive:!0}),ye.log("Critical event sent successfully with keepAlive")}catch(v){ye.error("Failed to send critical event:",v)}}else this.eventQueue.add(_);ye.log(`Tracked event: ${r}`,_)}getDeviceProperties(){const n=(()=>{let i="Unknown OS";return navigator?.userAgent?.includes("Win")&&(i="Windows"),navigator?.userAgent?.includes("Mac")&&(i="Mac OS"),navigator?.userAgent?.includes("Linux")&&(i="Linux"),navigator?.userAgent?.includes("Android")&&(i="Android"),navigator?.userAgent?.includes("like Mac")&&(i="iOS"),i})(),r=navigator.userAgent;return{screen_size:`${screen.width} x ${screen.height}`,viewport_size:`${window.innerWidth} x ${window.innerHeight}`,user_agent:r,operating_system:n,is_direct:!document.referrer,referrer:document.referrer,browser_language:navigator.language,platform:n==="iOS"||n==="Android"?"mobile":"desktop",browser:this.getBrowserNameFromUserAgent(navigator.userAgent)}}getBrowserNameFromUserAgent(e){return e.indexOf("Opera")!=-1||e.indexOf("OPR")!=-1?"Opera":e.indexOf("Edg")!=-1?"E
4490dge":e.indexOf("Chrome")!=-1||window.chrome||e.indexOf("CriOS")!=-1?"Chrome":e.indexOf("Firefox")!=-1||e.indexOf("FxiOS")!=-1?"Firefox":e.indexOf("Safari")!=-1?"Safari":e.indexOf("MSIE")!=-1||document.documentMode?"IE":"unknown"}getCurrentPage(){return window.location.pathname}async sendUserEvent(e){this.ensureInitialized();const n=e||{};n.user_id||(n.user_id=this.userManager.getCerebroId()),n.operating_system=this.getDeviceProperties().operating_system;const r=this.marketingManager.getAttribution();r.tracker_name&&(n.tracker_name=r.tracker_name,this.marketingManager.setTrackerName(r.tracker_name)),n.properties={...n.properties,userAgent:navigator.userAgent},n.account_id&&(n.account_id=n.account_id.toString());const o={user_id:n.user_id,app_id:this.config.appId,version:this.config.version||"1.0.0",...n};try{const i=await this.httpClient.post(p_.USER,o);ye.log("User event sent successfully:",JSON.stringify(i,null,2))}catch(i){ye.error("Failed to send user event:",i)}n.account_id&&await this.sendAttributionUserEvent(n)}async sendAttributionUserEvent(e){if(!e)return;const n={...e};n.properties&&(Object.assign(n,n.properties),delete n.properties),await this.sendEvent({eventName:"user_attribution",properties:n}),ye.log("Attribution event sent:",n)}setCerebroId(e){this.ensureInitialized(),this.userManager.setCerebroId(e),this.sessionManager.setCerebroId(e),ye.log(`Set Cerebro ID: ${e}`)}getCerebroId(){return this.ensureInitialized(),this.userManager.getCerebroId()}async getSessionId(){return this.ensureInitialized(),this.sessionManager.getCurrentSession()}setSessionId(e){this.ensureInitialized(),this.sessionManager.setSessionId(e)}enableAutoTracking(e){if(this.ensureInitialized(),!this.autoTracker)throw new Error("[Cerebro] AutoTracker not initialized");const n={trackPageViews:!0,trackErrors:!0,trackPerformance:!0,trackPageVisibility:!0,...this.config.autoTrackingConfig,...e};this.config.autoTrackingConfig=n,this.autoTracker.initialize(n),ye.log("Auto tracking enabled with config:",n)}disableAutoTracking(){if(this.ensureInitialized(),!this.autoTracker)throw new Error("[Cerebro] AutoTracker not initialized");this.autoTracker.cleanup(),this.config.autoTrackingConfig={trackPageViews:!1,trackErrors:!1,trackPerformance:!1,trackPageVisibility:!1},ye.log("All automatic tracking disabled")}async getConfig(){this.ensureInitialized();const e=this.userManager.getCerebroId();ye.log(`Fetching config with cerebroId: ${e}`);try{const n=`${this.config.configUrl||this.config.baseUrl}${p_.CONFIG}?aid=${this.config.appId}&id=${e}&version=${this.config.version||"1.0.0"}&language=${navigator.language.split("-")[0]}`;ye.log(`Fetching config from URL: ${n}`);const r=await this.httpClient.get(n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const o=await r.json();return o&&o.status&&o.status.code===200?(await this.sendEvent({eventName:"config_result",result:"1"}),ye.log("Config fetched successfully:",o.payload),o.payload):(await this.sendEvent({eventName:"config_result",result:"0"}),ye.log("Config fetch failed:",o),{configFailed:!0})}catch(n){return ye.error("Error fetching config:",n),await this.sendEvent({eventName:"config_result",result:"0"}),{configFailed:!0}}}getSDKVersion(){return this.sdkVersion}getTrackerName(){return this.ensureInitialized(),this.marketingManager.getStoredTrackerName()}}const tZ=["web_page_open","web_page_hidden","web_page_visible","web_page_leave","session_started","session_ended","app_launched","error_occurred","performance_metrics","route_changed","js_error","network_error","user_event","user_attribution","slowest_resources","long_tasks","web_vitals"];function gN(t){ye.log("initializing with config",t),t.debug!==void 0&&uN(t.debug);const e=Wt.getInstance();if(e.initialized)return t.debug&&ye.warn("SDK already initialized. Ignoring repeated initialization call."),e;const n=typeof t.environment=="string"?t.environment==="PRODUCTION"?wa.PRODUCTION:wa.STAGING:t.environment,r=t.baseUrl||(n===wa.PRODUCTION?dl.production:dl.staging),o=t.configUrl||(n===wa.PRODUCTION?Oy.production:Oy.staging),i={...t,environment:n,baseUrl:r,configUrl:o};return e.initialize(i),e}function $c(t){return Wt.getInstance().sendEvent(t)}function yN(){return Wt.getInstance().getTrackerName()}function vN(t){const e=Wt.getInstance();if(!e.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");e.setCerebroId(t)}function __(){const t=Wt.getInstance();if(!t.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");return t.getCerebroId()}async function EN(){const t=Wt.getInstance();if(!t.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");return t.getSessionId()}function nZ(t){const e=Wt.getInstance();if(!e.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");e.setSessionId(t)}function bN(t){return Wt.getInstance().sendUserEvent(t)}function wN(t){const e=Wt.getInstance();if(!e.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");return e.enableAutoTracking(t)}function TN(){const t=Wt.getInstance();if(!t.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");return t.disableAutoTracking()}function AN(){const t=Wt.getInstance();if(!t.initialized)throw new Error("[Cerebro] SDK not initialized. Call initialize() with config first.");return t.getConfig()}function Dy(){return!!Wt.getInstance().initialized}function xN(){return Wt.getInstance().getSDKVersion()}const IN=Wt.getInstance(),ace=Object.freeze(Object.defineProperty({__proto__:null,Analytics:Wt,AutoTracker:mN,BASE_EVENT_NAMES:tZ,BASE_URLS:dl,DEFAULT_CONFIG:Bu,ENVIRONMENTS:wa,EventQueue:dN,HttpClient:_N,MARKETING_STORAGE_KEYS:ws,MarketingManager:fN,SESSION_STORAGE_KEYS:wf,SessionManager:bm,USER_STORAGE_KEYS:ma,UserManager:pN,analytics:IN,createLogger:YJ,disableAutoTracking:TN,enableAutoTracking:wN,getCerebroId:__,getConfig:AN,getSDKVersion:xN,get
4490SessionId:EN,getTrackerName:yN,initialize:gN,isInitialized:Dy,logger:ye,sendEvent:$c,sendUserEvent:bN,setCerebroId:vN,setGlobalDebug:uN,setSessionId:nZ},Symbol.toStringTag,{value:"Module"})),Tf={ONB_STARTED:"onboarding_started",PAGE_DISPLAYED:"page_displayed",PAGE_COMPLETED:"page_completed",USER_EXISTS:"user_exists",SIGNUP_SUCCESS:"signup_success",SIGNIN_SUCCESS:"signin_success",SIGNUP_ERROR:"signup_error",SIGNIN_ERROR:"signin_error",UPLOAD_STARTED:"upload_started",PHOTO_UPLOADED:"photo_uploaded",UPLOAD_COMPLETED:"upload_completed",PHOTO_REPLACED:"photo_replaced",PHOTO_ADDED_REVIEW:"photo_added_review",IMAGE_DELETED:"image_deleted",POLAROID_FIRST_IMAGE_UPLOADED:"polaroid_first_image_uploaded",POLAROID_SECOND_IMAGE_UPLOADED:"polaroid_second_image_uploaded",POLAROID_IMAGE_REPLACED:"polaroid_image_replaced",POLAROID_IMAGE_UPLOAD_FAILED:"polaroid_image_upload_failed",POLAROID_GENERATION_STARTED:"polaroid_generation_started",POLAROID_GENERATION_COMPLETED:"polaroid_generation_completed",POLAROID_GENERATION_FAILED:"polaroid_generation_failed",POLAROID_GENERATING_VIEW_DISPLAYED:"polaroid_generating_view_displayed",POLAROID_REGENERATION_STARTED:"polaroid_regeneration_started",POLAROID_REGENERATION_COMPLETED:"polaroid_regeneration_completed",POLAROID_REGENERATION_FAILED:"polaroid_regeneration_failed",PAYMENT_INITIATED:"payment_initiated",PRICING_TIER_SELECTED:"pricing_tier_selected",DOWNLOAD_APP_CLICKED:"download_app_clicked",UPLOAD_SCREEN_DISPLAYED:"upload_screen_displayed",MEDIA_UPLOAD_AGREEMENT_SHOWN:"media_upload_agreement_shown",MEDIA_UPLOAD_AGREEMENT_ACCEPTED:"media_upload_agreement_accepted",MEDIA_UPLOAD_AGREEMENT_DECLINED:"media_upload_agreement_declined",POLAROID_CREATE_NEW_CLICKED:"polaroid_create_new_clicked",POLAROID_DOWNLOAD_IMAGE_CLICKED:"polaroid_download_image_clicked",POLAROID_INSUFFICIENT_CREDITS:"polaroid_insufficient_credits",POLAROID_UNAUTHORIZED_DOWNLOAD_ATTEMPT:"polaroid_unauthorized_download_attempt",POLAROID_PAYMENT_PAGE_DISPLAYED:"polaroid_payment_page_displayed",POLAROID_PRICING_PLAN_SELECTED:"select_plan",POLAROID_CONTINUE_TO_PAYMENT_CLICKED:"purchase_started",POLAROID_PAYMENT_MODAL_OPENED:"payment_modal_opened",POLAROID_PAYMENT_MODAL_CLOSED:"payment_modal_closed",POLAROID_IMAGE_PROCESSING_APPLIED:"polaroid_image_processing_applied",POLAROID_HEIC_CONVERSION:"polaroid_heic_conversion",UPLOAD_ERROR:"upload_error",NAVIGATION_ERROR:"navigation_error",POLAROID_FAQ_ITEM_OPENED:"faq_item_opened",POLAROID_FAQ_ITEM_CLOSED:"faq_item_closed",POLAROID_SOCIAL_LINK_CLICKED:"social_link_clicked",POLAROID_WATERMARK_PROTECTION_TRIGGERED:"polaroid_watermark_protection_triggered",POLAROID_IMAGE_CONTEXT_MENU_BLOCKED:"polaroid_image_context_menu_blocked",POLAROID_FORGOT_PASSWORD_CLICKED:"polaroid_forgot_password_clicked",POLAROID_FORGOT_PASSWORD_MODAL_OPENED:"polaroid_forgot_password_modal_opened",POLAROID_FORGOT_PASSWORD_EMAIL_SENT:"polaroid_forgot_password_email_sent",POLAROID_FORGOT_PASSWORD_ERROR:"polaroid_forgot_password_error",POLAROID_FORGOT_PASSWORD_MODAL_CLOSED:"polaroid_forgot_password_modal_closed",USER_LOGOUT:"user_logout",LOGOUT_ERROR:"logout_error",ACCOUNT_DELETE_INITIATED:"account_delete_initiated",ACCOUNT_DELETE_COMPLETED:"account_delete_completed",ACCOUNT_DELETE_ERROR:"account_delete_error",ACCOUNT_DATA_EXPORT_INITIATED:"account_data_export_initiated",ACCOUNT_DATA_EXPORT_COMPLETED:"account_data_export_completed",ACCOUNT_DATA_EXPORT_ERROR:"account_data_export_error"},cce=Object.freeze(Object.defineProperty({__proto__:null,CEREBRO_EVENTS:Tf},Symbol.toStringTag,{value:"Module"})),rZ=$t(()=>{const t=br(),e=t.public.env==="prod"||t.public.env==="production";return{provide:{cerebro:gN({apiKey:t.public.cerebroApiKey,appId:t.public.cerebroAppId,passphrase:t.public.cerebroPassphrase,environment:e?"PRODUCTION":"STAGING",debug:!1,autoTrackingConfig:{trackPageViews:!1,trackErrors:!1,trackPerformance:!1},initialTasks:{sendInitialUserEvent:!0},version:"0.0.34"})}}});function RN(t,e){return function(){return t.apply(e,arguments)}}const{toString:oZ}=Object.prototype,{getPrototypeOf:Rb}=Object,{iterator:wm,toStringTag:CN}=Symbol,Tm=(t=>e=>{const n=oZ.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zr=t=>(t=t.toLowerCase(),e=>Tm(e)===t),Am=t=>e=>typeof e===t,{isArray:kl}=Array,hl=Am("undefined");function nh(t){return t!==null&&!hl(t)&&t.constructor!==null&&!hl(t.constructor)&&Gn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const PN=zr("ArrayBuffer");function iZ(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&PN(t.buffer),e}const sZ=Am("string"),Gn=Am("function"),SN=Am("number"),rh=t=>t!==null&&typeof t=="object",aZ=t=>t===!0||t===!1,Af=t=>{if(Tm(t)!=="object")return!1;const e=Rb(t);
vendor: 4,471 bytes, line 4490
4490return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(CN in t)&&!(wm in t)},cZ=t=>{if(!rh(t)||nh(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},lZ=zr("Date"),uZ=zr("File"),dZ=zr("Blob"),hZ=zr("FileList"),fZ=t=>rh(t)&&Gn(t.pipe),pZ=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Gn(t.append)&&((e=Tm(t))==="formdata"||e==="object"&&Gn(t.toString)&&t.toString()==="[object FormData]"))},_Z=zr("URLSearchParams"),[mZ,gZ,yZ,vZ]=["ReadableStream","Request","Response","Headers"].map(zr),EZ=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oh(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),kl(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(nh(t))return;const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function ON(t,e){if(nh(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,DN=t=>!hl(t)&&t!==Ta;function Ly(){const{caseless:t,skipUndefined:e}=DN(this)&&this||{},n={},r=(o,i)=>{const s=t&&ON(n,i)||i;Af(n[s])&&Af(o)?n[s]=Ly(n[s],o):Af(o)?n[s]=Ly({},o):kl(o)?n[s]=o.slice():(!e||!hl(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&oh(arguments[o],r);return n}const bZ=(t,e,n,{allOwnKeys:r}={})=>(oh(e,(o,i)=>{n&&Gn(o)?t[i]=RN(o,n):t[i]=o},{allOwnKeys:r}),t),wZ=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),TZ=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},AZ=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Rb(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},xZ=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},IZ=t=>{if(!t)return null;if(kl(t))return t;let e=t.length;if(!SN(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},RZ=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rb(Uint8Array)),CZ=(t,e)=>{const r=(t&&t[wm]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},PZ=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},SZ=zr("HTMLFormElement"),OZ=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),JI=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),DZ=zr("RegExp"),LN=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};oh(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},LZ=t=>{LN(t,(e,n)=>{if(Gn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Gn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kZ=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return kl(t)?r(t):r(String(t).split(e)),n},NZ=()=>{},VZ=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function FZ(t){return!!(t&&Gn(t.append)&&t[CN]==="FormData"&&t[wm])}const MZ=t=>{const e=new Array(10),n=(r,o)=>{if(rh(r)){if(e.indexOf(r)>=0)return;if(nh(r))return r;if(!("toJSON"in r)){e[o]=r;const i=kl(r)?[]:{};return oh(r,(s,a)=>{const c=n(s,o+1);!hl(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},BZ=zr("AsyncFunction"),UZ=t=>t&&(rh(t)||Gn(t))&&Gn(t.then)&&Gn(t.catch),kN=((t,e)=>t?setImmediate:e?((n,r)=>(Ta.addEventListener("message",({source:o,data:i})=>{o===Ta&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ta.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Ta.postMessage)),$Z=typeof queueMicrotask<"u"?queueMicrotask.bind(Ta):typeof process<"u"&&process.nextTick||kN,jZ=t=>t!=null&&Gn(t[wm]),te={isArray:kl,isArrayBuffer:PN,isBuffer:nh,isFormData:pZ,isArrayBufferView:iZ,isString:sZ,isNumber:SN,isBoolean:aZ,isObject:rh,isPlainObject:Af,isEmptyObject:cZ,isReadableStream:mZ,isRequest:gZ,isResponse:yZ,isHeaders:vZ,isUndefined:hl,isDate:lZ,isFile:uZ,isBlob:dZ,isRegExp:DZ,isFunction:Gn,isStream:fZ,isURLSearchParams:_Z,isTypedArray:RZ,isFileList:hZ,forEac
vendor: 3,603 bytes, line 4490
4490h:oh,merge:Ly,extend:bZ,trim:EZ,stripBOM:wZ,inherits:TZ,toFlatObject:AZ,kindOf:Tm,kindOfTest:zr,endsWith:xZ,toArray:IZ,forEachEntry:CZ,matchAll:PZ,isHTMLForm:SZ,hasOwnProperty:JI,hasOwnProp:JI,reduceDescriptors:LN,freezeMethods:LZ,toObjectSet:kZ,toCamelCase:OZ,noop:NZ,toFiniteNumber:VZ,findKey:ON,global:Ta,isContextDefined:DN,isSpecCompliantForm:FZ,toJSONObject:MZ,isAsyncFn:BZ,isThenable:UZ,setImmediate:kN,asap:$Z,isIterable:jZ};function Ue(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}te.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:te.toJSONObject(this.config),code:this.code,status:this.status}}});const NN=Ue.prototype,VN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{VN[t]={value:t}});Object.defineProperties(Ue,VN);Object.defineProperty(NN,"isAxiosError",{value:!0});Ue.from=(t,e,n,r,o,i)=>{const s=Object.create(NN);te.toFlatObject(t,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const a=t&&t.message?t.message:"Error",c=e==null&&t?t.code:e;return Ue.call(s,a,c,n,r,o),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",i&&Object.assign(s,i),s};const HZ=null;function ky(t){return te.isPlainObject(t)||te.isArray(t)}function FN(t){return te.endsWith(t,"[]")?t.slice(0,-2):t}function ZI(t,e,n){return t?t.concat(e).map(function(o,i){return o=FN(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function zZ(t){return te.isArray(t)&&!t.some(ky)}const qZ=te.toFlatObject(te,{},null,function(e){return/^is[A-Z]/.test(e)});function xm(t,e,n){if(!te.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!te.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&te.isSpecCompliantForm(e);if(!te.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(te.isDate(m))return m.toISOString();if(te.isBoolean(m))return m.toString();if(!c&&te.isBlob(m))throw new Ue("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(m)||te.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,y,v){let T=m;if(m&&!v&&typeof m=="object"){if(te.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(te.isArray(m)&&zZ(m)||(te.isFileList(m)||te.endsWith(y,"[]"))&&(T=te.toArray(m)))return y=FN(y),T.forEach(function(g,E){!(te.isUndefined(g)||g===null)&&e.append(s===!0?ZI([y],E,i):s===null?y:y+"[]",l(g))}),!1}return ky(m)?!0:(e.append(ZI(v,y,i),l(m)),!1)}const d=[],f=Object.assign(qZ,{defaultVisitor:u,convertValue:l,isVisitable:ky});function _(m,y){if(!te.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),te.forEach(m,function(T,w){(!(te.isUndefined(T)||T===null)&&o.call(e,T,te.isString(w)?w.trim():w,y,f))===!0&&_(T,y?y.concat(w):[w])}),d.pop()}}if(!te.isObject(t))throw new TypeError("data must be an object");return _(t),e}
vendor: 5,421 bytes, lines 4490-4491
4490function eR(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Cb(t,e){this._pairs=[],t&&xm(t,this,e)}const MN=Cb.prototype;MN.append=function(e,n){this._pairs.push([e,n])};MN.toString=function(e){const n=e?function(r){return e.call(this,r,eR)}:eR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function WZ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function BN(t,e,n){if(!e)return t;const r=n&&n.encode||WZ;te.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(e,n):i=te.isURLSearchParams(e)?e.toString():new Cb(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class tR{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){te.forEach(this.handlers,function(r){r!==null&&e(r)})}}const UN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KZ=typeof URLSearchParams<"u"?URLSearchParams:Cb,GZ=typeof FormData<"u"?FormData:null,QZ=typeof Blob<"u"?Blob:null,YZ={isBrowser:!0,classes:{URLSearchParams:KZ,FormData:GZ,Blob:QZ},protocols:["http","https","file","blob","url","data"]},Pb=typeof window<"u"&&typeof document<"u",Ny=typeof navigator=="object"&&navigator||void 0,XZ=Pb&&(!Ny||["ReactNative","NativeScript","NS"].indexOf(Ny.product)<0),JZ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZZ=Pb&&window.location.href||"http://localhost",eee=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pb,hasStandardBrowserEnv:XZ,hasStandardBrowserWebWorkerEnv:JZ,navigator:Ny,origin:ZZ},Symbol.toStringTag,{value:"Module"})),Sn={...eee,...YZ};function tee(t,e){return xm(t,new Sn.classes.URLSearchParams,{visitor:function(n,r,o,i){return Sn.isNode&&te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function nee(t){return te.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ree(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function $N(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&te.isArray(o)?o.length:s,c?(te.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!te.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&te.isArray(o[s])&&(o[s]=ree(o[s])),!a)}if(te.isFormData(t)&&te.isFunction(t.entries)){const n={};return te.forEachEntry(t,(r,o)=>{e(nee(r),o,n,0)}),n}return null}function oee(t,e,n){if(te.isString(t))try{return(e||JSON.parse)(t),te.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const ih={transitional:UN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=te.isObject(e);if(i&&te.isHTMLForm(e)&&(e=new FormData(e)),te.isFormData(e))return o?JSON.stringify($N(e)):e;if(te.isArrayBuffer(e)||te.isBuffer(e)||te.isStream(e)||te.isFile(e)||te.isBlob(e)||te.isReadableStream(e))return e;if(te.isArrayBufferView(e))return e.buffer;if(te.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tee(e,this.formSerializer).toString();if((a=te.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return xm(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),oee(e)):e}],transformResponse:[function(e){const n=this.transitional||ih.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(te.isResponse(e)||te.isReadableStream(e))return e;if(e&&te.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?Ue.from(a,Ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sn.classes.FormData,Blob:Sn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],t=>{ih.headers[t]={}});const iee=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),see=t=>{const e={};let n,r,o;return t&&t.split(` 4491`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&iee[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},nR=Symbol("internals");function au(t){return t&&String(t).trim().toLowerCase()}function xf(t){return t===!1||t==null?t:te.isArray(t)?t.map(xf):String(t)}function aee(t){const e=Object.create(null),n=/([^\s,;
4491=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const cee=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function B0(t,e,n,r,o){if(te.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!te.isString(e)){if(te.isString(r))return e.indexOf(r)!==-1;if(te.isRegExp(r))return r.test(e)}}function lee(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function uee(t,e){const n=te.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}let Qn=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,l){const u=au(c);if(!u)throw new Error("header name must be a non-empty string");const d=te.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=xf(a))}const s=(a,c)=>te.forEach(a,(l,u)=>i(l,u,c));if(te.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(te.isString(e)&&(e=e.trim())&&!cee(e))s(see(e),n);else if(te.isObject(e)&&te.isIterable(e)){let a={},c,l;for(const u of e){if(!te.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[l=u[0]]=(c=a[l])?te.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}s(a,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=au(e),e){const r=te.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return aee(o);if(te.isFunction(n))return n.call(this,o,r);if(te.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=au(e),e){const r=te.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||B0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=au(s),s){const a=te.findKey(r,s);a&&(!n||B0(r,r[a],a,n))&&(delete r[a],o=!0)}}return te.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||B0(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return te.forEach(this,(o,i)=>{const s=te.findKey(r,i);if(s){n[s]=xf(o),delete n[i];return}const a=e?lee(i):String(i).trim();a!==i&&delete n[i],n[a]=xf(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return te.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 4492`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[nR]=this[nR]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=au(s);r[a]||(uee(o,s),r[a]=!0)}return te.isArray(e)?e.forEach(i):i(e),this}};Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);te.reduceDescriptors(Qn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});te.freezeMethods(Qn);function U0(t,e){const n=this||ih,r=e||n,o=Qn.from(r.headers);let i=r.data;return te.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function jN(t){return!!(t&&t.__CANCEL__)}function Nl(t,e,n){Ue.call(this,t??"canceled",Ue.ERR_CANCELED,e,n),this.name="CanceledError"}te.inherits(Nl,Ue,{__CANCEL__:!0});function HN(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dee(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function hee(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),u=r[i];s||(s=l),n[o]=c,r[o]=l;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s<e)return;const _=u&&l-u;return _?Math.round(f*1e3/_):void 0}}function fee(t,e){let n=0,r=1e3/e,o,i;const s=(l,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?s(l,u):(o=l,i||(i=setTimeout(()=>
vendor: 8,127 bytes, line 4492
4492{i=null,s(o)},r-d)))},()=>o&&s(o)]}const m_=(t,e,n=3)=>{let r=0;const o=hee(50,250);return fee(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,l=o(c),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-s)/l:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},n)},rR=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},oR=t=>(...e)=>te.asap(()=>t(...e)),pee=Sn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Sn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Sn.origin),Sn.navigator&&/(msie|trident)/i.test(Sn.navigator.userAgent)):()=>!0,_ee=Sn.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];te.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),te.isString(r)&&s.push("path="+r),te.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mee(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gee(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function zN(t,e,n){let r=!mee(e);return t&&(r||n==!1)?gee(t,e):e}const iR=t=>t instanceof Qn?{...t}:t;function Wa(t,e){e=e||{};const n={};function r(l,u,d,f){return te.isPlainObject(l)&&te.isPlainObject(u)?te.merge.call({caseless:f},l,u):te.isPlainObject(u)?te.merge({},u):te.isArray(u)?u.slice():u}function o(l,u,d,f){if(te.isUndefined(u)){if(!te.isUndefined(l))return r(void 0,l,d,f)}else return r(l,u,d,f)}function i(l,u){if(!te.isUndefined(u))return r(void 0,u)}function s(l,u){if(te.isUndefined(u)){if(!te.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function a(l,u,d){if(d in e)return r(l,u);if(d in t)return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u,d)=>o(iR(l),iR(u),d,!0)};return te.forEach(Object.keys({...t,...e}),function(u){const d=c[u]||o,f=d(t[u],e[u],u);te.isUndefined(f)&&d!==a||(n[u]=f)}),n}const qN=t=>{const e=Wa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;if(e.headers=s=Qn.from(s),e.url=BN(zN(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),te.isFormData(n)){if(Sn.hasStandardBrowserEnv||Sn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(te.isFunction(n.getHeaders)){const c=n.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,d])=>{l.includes(u.toLowerCase())&&s.set(u,d)})}}if(Sn.hasStandardBrowserEnv&&(r&&te.isFunction(r)&&(r=r(e)),r||r!==!1&&pee(e.url))){const c=o&&i&&_ee.read(i);c&&s.set(o,c)}return e},yee=typeof XMLHttpRequest<"u",vee=yee&&function(t){return new Promise(function(n,r){const o=qN(t);let i=o.data;const s=Qn.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,_,m;function y(){_&&_(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function T(){if(!v)return;const g=Qn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:g,config:t,request:v};HN(function(A){n(A),y()},function(A){r(A),y()},C),v=null}"onloadend"in v?v.onloadend=T:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(T)},v.onabort=function(){v&&(r(new Ue("Request aborted",Ue.ECONNABORTED,t,v)),v=null)},v.onerror=function(E){const C=E&&E.message?E.message:"Network Error",L=new Ue(C,Ue.ERR_NETWORK,t,v);L.event=E||null,r(L),v=null},v.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||UN;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new Ue(E,C.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,t,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&te.forEach(s.toJSON(),function(E,C){v.setRequestHeader(C,E)}),te.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),l&&([f,m]=m_(l,!0),v.addEventListener("progress",f)),c&&v.upload&&([d,_]=m_(c),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(u=g=>{v&&(r(!g||g.type?new Nl(null,t,v):g),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=dee(o.url);if(w&&Sn.protocols.indexOf(w)===-1){r(new Ue("Unsupported protocol "+w+":",Ue.ERR_BAD_REQUEST,t));return}v.send(i||null)})},Eee=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const i=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof Ue?u:new Nl(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,i(new Ue(`timeout ${e} of ms exceeded`,Ue.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>te.asap(a),c}},bee=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},wee=async function*(t,e){for await(const n of Tee(t))yield*bee(n,e)},Tee=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},sR=(t,e,n,r)=>{const o=wee(t,e);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},aR=64*1024,{isFunction:Zh}=te,Aee=(({Request:t,Response:e})=>({Request:t,Response:e}))(te.global),{ReadableStream:cR,TextEncoder:lR}=te.global,uR=(t,...e)=>{try{return!!t(...e)}catch{return!1}},xee=t=>{t=te.merge.call({skipUndefined:!0},Aee,t);const{fetch:e,Request:n,Response:r}=t,o=e?Zh(e):typeof fetch=="function",i=Zh(n),s=Zh(r);if(!o)return!1;const a=o&&Zh(cR),c=o&&(typeof lR=="function"?(m=>y=>m.encode(y))(new lR):async m=>new Uint8Array(await new n(m).arrayBuffer())),l=i&&a&&uR(()=>{let m=!1;const y=new n(Sn.origin,{body:new cR,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),u=s&&a&&uR(()=>te.isReadableStream(new r("").body)),d={stream:u&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!d[m]&&(d[m]=(y,v)=>{let T=y&&y[m];if(T)return T.call(y);throw new Ue(`Response type '${m}' is not supported`,Ue.ERR_NOT_SUPPORT,v)})});const f=async m=>{if(m==null)return 0;if(te.isBlob(m))return m.size;if(te.isSpecCompliantForm(m))return(await new n(Sn.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(te.isArrayBufferView(m)||te.isArrayBuffer(m))return m.byteLength;if(te.isURLSearchParams(m)&&(m=m+""),te.isString(m))return(await c(m)).byteLength},_=async(m,y)=>{const v=te.toFiniteNumber(m.getContentLength());return v??f(y)};return async m=>{let{url:y,method:v,data:T,signal:w,cancelToken:g,timeout:E,onDownloadProgress:C,onUploadProgress:L,responseType:A,headers:I,withCredentials:R="same-origin",fetchOptions:x}
vendor: 7,805 bytes, lines 4492-4495
4492=qN(m),D=e||fetch;A=A?(A+"").toLowerCase():"text";let S=Eee([w,g&&g.toAbortSignal()],E),O=null;const ae=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let le;try{if(L&&l&&v!=="get"&&v!=="head"&&(le=await _(I,T))!==0){let W=new n(y,{method:"POST",body:T,duplex:"half"}),J;if(te.isFormData(T)&&(J=W.headers.get("content-type"))&&I.setContentType(J),W.body){const[ee,ne]=rR(le,m_(oR(L)));T=sR(W.body,aR,ee,ne)}}te.isString(R)||(R=R?"include":"omit");const B=i&&"credentials"in n.prototype,j={...x,signal:S,method:v.toUpperCase(),headers:I.normalize().toJSON(),body:T,duplex:"half",credentials:B?R:void 0};O=i&&new n(y,j);let H=await(i?D(O,x):D(y,j));const ce=u&&(A==="stream"||A==="response");if(u&&(C||ce&&ae)){const W={};["status","statusText","headers"].forEach(q=>{W[q]=H[q]});const J=te.toFiniteNumber(H.headers.get("content-length")),[ee,ne]=C&&rR(J,m_(oR(C),!0))||[];H=new r(sR(H.body,aR,ee,()=>{ne&&ne(),ae&&ae()}),W)}A=A||"text";let ue=await d[te.findKey(d,A)||"text"](H,m);return!ce&&ae&&ae(),await new Promise((W,J)=>{HN(W,J,{data:ue,headers:Qn.from(H.headers),status:H.status,statusText:H.statusText,config:m,request:O})})}catch(B){throw ae&&ae(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,m,O),{cause:B.cause||B}):Ue.from(B,B&&B.code,m,O)}}},Iee=new Map,WN=t=>{let e=t?t.env:{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let s=i.length,a=s,c,l,u=Iee;for(;a--;)c=i[a],l=u.get(c),l===void 0&&u.set(c,l=a?new Map:xee(e)),u=l;return l};WN();const Vy={http:HZ,xhr:vee,fetch:{get:WN}};te.forEach(Vy,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const dR=t=>`- ${t}`,Ree=t=>te.isFunction(t)||t===null||t===!1,KN={getAdapter:(t,e)=>{t=te.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let s=0;s<n;s++){r=t[s];let a;if(o=r,!Ree(r)&&(o=Vy[(a=String(r)).toLowerCase()],o===void 0))throw new Ue(`Unknown adapter '${a}'`);if(o&&(te.isFunction(o)||(o=o.get(e))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since : 4493`+s.map(dR).join(` 4494`):" "+dR(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Vy};function $0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Nl(null,t)}function hR(t){return $0(t),t.headers=Qn.from(t.headers),t.data=U0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),KN.getAdapter(t.adapter||ih.adapter,t)(t).then(function(r){return $0(t),r.data=U0.call(t,t.transformResponse,r),r.headers=Qn.from(r.headers),r},function(r){return jN(r)||($0(t),r&&r.response&&(r.response.data=U0.call(t,t.transformResponse,r.response),r.response.headers=Qn.from(r.response.headers))),Promise.reject(r)})}const GN="1.12.2",Im={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Im[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const fR={};Im.transitional=function(e,n,r){function o(i,s){return"[Axios v"+GN+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new Ue(o(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!fR[s]&&(fR[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};Im.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Cee(t,e,n){if(typeof t!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new Ue("option "+i+" must be "+c,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}const If={assertOptions:Cee,validators:Im},ei=If.validators;let La=class{constructor(e){this.defaults=e||{},this.interceptors={request:new tR,response:new tR}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` 4495`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Wa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&If.assertOptions(r,{silentJSONParsing:ei.transitional(ei.boolean),forcedJSONParsing:ei.transitional(ei.boolean),clarifyTimeoutError:ei.transitional(ei.boolean)},!1),o!=null&&(te.isFunction(o)?n.paramsSerializer={serialize:o}:If.assertOptions(o,{encode:ei.function,serialize:ei.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),If.assertOptions(n,{baseUrl:ei.spelling("baseURL"),withXsrfToken:ei.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&te.merge(i.common,i[n.method]);i&&te.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Qn.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!c){const m=[hR.bind(this),void 0];for(m.unshift(...a),m.push(...l),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=a.length;let _=n;for(;d<f;){const m=a[d++],y=a[d++];try{_=m(_)}catch(v){y.call(this,v);break}}try{u=hR.call(this,_)}catch(m){return Promise.reject(m)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(e){e=Wa(this.defaults,e);const n=zN(e.baseURL,e.url,e.allowAbsoluteUrls);return BN(n,e.params,e.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(e){La.prototype[e]=function(n,r){return this.request(Wa(r||{},{method:e,url:n,data:(r||{}).data}))}});te.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(Wa(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}La.prototype[e]=n(),La.prototype[e+"Form"]=n(!0)});let Pee=class QN{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Nl(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new QN(function(o){e=o}),cancel:e}}};function See(t){return function(n){return t.apply(null,n)}}function Oee(t){return te.isObject(t)&&t.isAxiosError===!0}const Fy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
4495alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fy).forEach(([t,e])=>{Fy[e]=t});function YN(t){const e=new La(t),n=RN(La.prototype.request,e);return te.extend(n,La.prototype,e,{allOwnKeys:!0}),te.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return YN(Wa(t,o))},n}const Nt=YN(ih);Nt.Axios=La;Nt.CanceledError=Nl;Nt.CancelToken=Pee;Nt.isCancel=jN;Nt.VERSION=GN;Nt.toFormData=xm;Nt.AxiosError=Ue;Nt.Cancel=Nt.CanceledError;Nt.all=function(e){return Promise.all(e)};Nt.spread=See;Nt.isAxiosError=Oee;Nt.mergeConfig=Wa;Nt.AxiosHeaders=Qn;Nt.formToJSON=t=>$N(te.isHTMLForm(t)?new FormData(t):t);Nt.getAdapter=KN.getAdapter;Nt.HttpStatusCode=Fy;Nt.default=Nt;const{Axios:dce,AxiosError:hce,CanceledError:fce,isCancel:pce,CancelToken:_ce,VERSION:mce,all:gce,Cancel:yce,isAxiosError:vce,spread:Ece,toFormData:bce,AxiosHeaders:wce,HttpStatusCode:Tce,formToJSON:Ace,getAdapter:xce,mergeConfig:Ice}=Nt;var j0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dee(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lee(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?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 o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var Rf={exports:{}};function kee(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cf={exports:{}};const Nee={},Vee=Object.freeze(Object.defineProperty({__proto__:null,default:Nee},Symbol.toStringTag,{value:"Module"})),Fee=Lee(Vee);var Mee=Cf.exports,pR;function Ke(){return pR||(pR=1,(function(t,e){(function(n,r){t.exports=r()})(Mee,function(){var n=n||(function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof j0<"u"&&j0.crypto&&(i=j0.crypto),!i&&typeof kee=="function")try{i=Fee}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||(function(){function w(){}return function(g){var E;return w.prototype=g,E=new w,w.prototype=null,E}})(),c={},l=c.lib={},u=l.Base=(function(){return{extend:function(w){var g=a(this);return w&&g.mixIn(w),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var g in w)w.hasOwnProperty(g)&&(this[g]=w[g]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),d=l.WordArray=u.extend({init:function(w,g){w=this.words=w||[],g!=o?this.sigBytes=g:this.sigBytes=w.length*4},toString:function(w){return(w||_).stringify(this)},concat:function(w){var g=this.words,E=w.words,C=this.sigBytes,L=w.sigBytes;if(this.clamp(),C%4)for(var A=0;A<L;A++){var I=E[A>>>2]>>>24-A%4*8&255;g[C+A>>>2]|=I<<24-(C+A)%4*8}else for(var R=0;R<L;R+=4)g[C+R>>>2]=E[R>>>2];return this.sigBytes+=L,this},clamp:function(){var w=this.words,g=this.sigBytes;w[g>>>2]&=4294967295<<32-g%4*8,w.length=r.ceil(g/4)},clone:function(){var w=u.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var g=[],E=0;E<w;E+=4)g.push(s());return new d.init(g,w)}}),f=c.enc={},_=f.Hex={stringify:function(w){for(var g=w.words,E=w.sigBytes,C=[],L=0;L<E;L++){var A=g[L>>>2]>>>24-L%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(w){for(var g=w.length,E=[],C=0;C<g;C+=2)E[C>>>3]|=parseInt(w.substr(C,2),16)<<24-C%8*4;return new d.init(E,g/2)}},m=f.Latin1={stringify:function(w){for(var g=w.words,E=w.sigBytes,C=[],L=0;L<E;L++){var A=g[L>>>2]>>>24-L%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(w){for(var g=w.length,E=[],C=0;C<g;C++)E[C>>>2]|=(w.charCodeAt(C)&255)<<24-C%4*8;return new d.init(E,g)}},y=f.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},v=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=y.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var g,E=this._data,C=E.words,L=E.sigBytes,A=this.blockSize,I=A*4,R=L/I;w?R=r.ceil(R):R=r.max((R|0)-this._minBufferSize,0);var x=R*A,D=r.min(x*4,L);if(x){for(var S=0;S<x;S+=A)this._doProcessBlock(C,S);g=C.splice(0,x),E.sigBytes-=D}return new d.init(g,D)},clone:function(){var w=u.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});l.Hasher=v.extend({cfg:u.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this}
vendor: 35,167 bytes, lines 4495-4508
4495,finalize:function(w){w&&this._append(w);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(w){return function(g,E){return new w.init(E).finalize(g)}},_createHmacHelper:function(w){return function(g,E){return new T.HMAC.init(w,E).finalize(g)}}});var T=c.algo={};return c})(Math);return n})})(Cf)),Cf.exports}var Pf={exports:{}},Bee=Pf.exports,_R;function Rm(){return _R||(_R=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(Bee,function(n){return(function(r){var o=n,i=o.lib,s=i.Base,a=i.WordArray,c=o.x64={};c.Word=s.extend({init:function(l,u){this.high=l,this.low=u}}),c.WordArray=s.extend({init:function(l,u){l=this.words=l||[],u!=r?this.sigBytes=u:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,u=l.length,d=[],f=0;f<u;f++){var _=l[f];d.push(_.high),d.push(_.low)}return a.create(d,this.sigBytes)},clone:function(){for(var l=s.clone.call(this),u=l.words=this.words.slice(0),d=u.length,f=0;f<d;f++)u[f]=u[f].clone();return l}})})(),n})})(Pf)),Pf.exports}var Sf={exports:{}},Uee=Sf.exports,mR;function $ee(){return mR||(mR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(Uee,function(n){return(function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,i=o.WordArray,s=i.init,a=i.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var l=c.byteLength,u=[],d=0;d<l;d++)u[d>>>2]|=c[d]<<24-d%4*8;s.call(this,u,l)}else s.apply(this,arguments)};a.prototype=i}})(),n.lib.WordArray})})(Sf)),Sf.exports}var Of={exports:{}},jee=Of.exports,gR;function Hee(){return gR||(gR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(jee,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var l=c.words,u=c.sigBytes,d=[],f=0;f<u;f+=2){var _=l[f>>>2]>>>16-f%4*8&65535;d.push(String.fromCharCode(_))}return d.join("")},parse:function(c){for(var l=c.length,u=[],d=0;d<l;d++)u[d>>>1]|=c.charCodeAt(d)<<16-d%2*16;return i.create(u,l*2)}},s.Utf16LE={stringify:function(c){for(var l=c.words,u=c.sigBytes,d=[],f=0;f<u;f+=2){var _=a(l[f>>>2]>>>16-f%4*8&65535);d.push(String.fromCharCode(_))}return d.join("")},parse:function(c){for(var l=c.length,u=[],d=0;d<l;d++)u[d>>>1]|=a(c.charCodeAt(d)<<16-d%2*16);return i.create(u,l*2)}};function a(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(Of)),Of.exports}var Df={exports:{}},zee=Df.exports,yR;function oc(){return yR||(yR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(zee,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64={stringify:function(c){var l=c.words,u=c.sigBytes,d=this._map;c.clamp();for(var f=[],_=0;_<u;_+=3)for(var m=l[_>>>2]>>>24-_%4*8&255,y=l[_+1>>>2]>>>24-(_+1)%4*8&255,v=l[_+2>>>2]>>>24-(_+2)%4*8&255,T=m<<16|y<<8|v,w=0;w<4&&_+w*.75<u;w++)f.push(d.charAt(T>>>6*(3-w)&63));var g=d.charAt(64);if(g)for(;f.length%4;)f.push(g);return f.join("")},parse:function(c){var l=c.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var _=u.charAt(64);if(_){var m=c.indexOf(_);m!==-1&&(l=m)}return a(c,l,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,l,u){for(var d=[],f=0,_=0;_<l;_++)if(_%4){var m=u[c.charCodeAt(_-1)]<<_%4*2,y=u[c.charCodeAt(_)]>>>6-_%4*2,v=m|y;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}})(),n.enc.Base64})})(Df)),Df.exports}var Lf={exports:{}},qee=Lf.exports,vR;function Wee(){return vR||(vR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(qee,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=r.enc;s.Base64url={stringify:function(c,l){l===void 0&&(l=!0);var u=c.words,d=c.sigBytes,f=l?this._safe_map:this._map;c.clamp();for(var _=[],m=0;m<d;m+=3)for(var y=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,T=u[m+2>>>2]>>>24-(m+2)%4*8&255,w=y<<16|v<<8|T,g=0;g<4&&m+g*.75<d;g++)_.push(f.charAt(w>>>6*(3-g)&63));var E=f.charAt(64);if(E)for(;_.length%4;)_.push(E);return _.join("")},parse:function(c,l){l===void 0&&(l=!0);var u=c.length,d=l?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var _=0;_<d.length;_++)f[d.charCodeAt(_)]=_}var m=d.charAt(64);if(m){var y=c.indexOf(m);y!==-1&&(u=y)}return a(c,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(c,l,u){for(var d=[],f=0,_=0;_<l;_++)if(_%4){var m=u[c.charCodeAt(_-1)]<<_%4*2,y=u[c.charCodeAt(_)]>>>6-_%4*2,v=m|y;d[f>>>2]|=v<<24-f%4*8,f++}return i.create(d,f)}})(),n.enc.Base64url})})(Lf)),Lf.exports}var kf={exports:{}},Kee=kf.exports,ER;function ic(){return ER||(ER=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(Kee,function(n){return(function(r){var o=n,i=o.lib,s=i.WordArray,a=i.Hasher,c=o.algo,l=[];(function(){for(var y=0;y<64;y++)l[y]=r.abs(r.sin(y+1))*4294967296|0})();var u=c.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,v){for(var T=0;T<16;T++){var w=v+T,g=y[w];y[w]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,C=y[v+0],L=y[v+1],A=y[v+2],I=y[v+3],R=y[v+4],x=y[v+5],D=y[v+6],S=y[v+7],O=y[v+8],ae=y[v+9],le=y[v+10],B=y[v+11],j=y[v+12],H=y[v+13],ce=y[v+14],ue=y[v+15],W=E[0],J=E[1],ee=E[2],ne=E[3];W=d(W,J,ee,ne,C,7,l[0]),ne=d(ne,W,J,ee,L,12,l[1]),ee=d(ee,ne,W,J,A,17,l[2]),J=d(J,ee,ne,W,I,22,l[3]),W=d(W,J,ee,ne,R,7,l[4]),ne=d(ne,W,J,ee,x,12,l[5]),ee=d(ee,ne,W,J,D,17,l[6]),J=d(J,ee,ne,W,S,22,l[7]),W=d(W,J,ee,ne,O,7,l[8]),ne=d(ne,W,J,ee,ae,12,l[9]),ee=d(ee,ne,W,J,le,17,l[10]),J=d(J,ee,ne,W,B,22,l[11]),W=d(W,J,ee,ne,j,7,l[12]),ne=d(ne,W,J,ee,H,12,l[13]),ee=d(ee,ne,W,J,ce,17,l[14]),J=d(J,ee,ne,W,ue,22,l[15]),W=f(W,J,ee,ne,L,5,l[16]),ne=f(ne,W,J,ee,D,9,l[17]),ee=f(ee,ne,W,J,B,14,l[18]),J=f(J,ee,ne,W,C,20,l[19]),W=f(W,J,ee,ne,x,5,l[20]),ne=f(ne,W,J,ee,le,9,l[21]),ee=f(ee,ne,W,J,ue,14,l[22]),J=f(J,ee,ne,W,R,20,l[23]),W=f(W,J,ee,ne,ae,5,l[24]),ne=f(ne,W,J,ee,ce,9,l[25]),ee=f(ee,ne,W,J,I,14,l[26]),J=f(J,ee,ne,W,O,20,l[27]),W=f(W,J,ee,ne,H,5,l[28]),ne=f(ne,W,J,ee,A,9,l[29]),ee=f(ee,ne,W,J,S,14,l[30]),J=f(J,ee,ne,W,j,20,l[31]),W=_(W,J,ee,ne,x,4,l[32]),ne=_(ne,W,J,ee,O,11,l[33]),ee=_(ee,ne,W,J,B,16,l[34]),J=_(J,ee,ne,W,ce,23,l[35]),W=_(W,J,ee,ne,L,4,l[36]),ne=_(ne,W,J,ee,R,11,l[37]),ee=_(ee,ne,W,J,S,16,l[38]),J=_(J,ee,ne,W,le,23,l[39]),W=_(W,J,ee,ne,H,4,l[40]),ne=_(ne,W,J,ee,C,11,l[41]),ee=_(ee,ne,W,J,I,16,l[42]),J=_(J,ee,ne,W,D,23,l[43]),W=_(W,J,ee,ne,ae,4,l[44]),ne=_(ne,W,J,ee,j,11,l[45]),ee=_(ee,ne,W,J,ue,16,l[46]),J=_(J,ee,ne,W,A,23,l[47]),W=m(W,J,ee,ne,C,6,l[48]),ne=m(ne,W,J,ee,S,10,l[49]),ee=m(ee,ne,W,J,ce,15,l[50]),J=m(J,ee,ne,W,x,21,l[51]),W=m(W,J,ee,ne,j,6,l[52]),ne=m(ne,W,J,ee,I,10,l[53]),ee=m(ee,ne,W,J,le,15,l[54]),J=m(J,ee,ne,W,L,21,l[55]),W=m(W,J,ee,ne,O,6,l[56]),ne=m(ne,W,J,ee,ue,10,l[57]),ee=m(ee,ne,W,J,D,15,l[58]),J=m(J,ee,ne,W,H,21,l[59]),W=m(W,J,ee,ne,R,6,l[60]),ne=m(ne,W,J,ee,B,10,l[61]),ee=m(ee,ne,W,J,A,15,l[62]),J=m(J,ee,ne,W,ae,21,l[63]),E[0]=E[0]+W|0,E[1]=E[1]+J|0,E[2]=E[2]+ee|0,E[3]=E[3]+ne|0},_doFinalize:function(){var y=this._data,v=y.words,T=this._nDataBytes*8,w=y.sigBytes*8;v[w>>>5]|=128<<24-w%32;var g=r.floor(T/4294967296),E=T;v[(w+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,v[(w+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,y.sigBytes=(v.length+1)*4,this._process();for(var C=this._hash,L=C.words,A=0;A<4;A++){var I=L[A];L[A]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return C},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});function d(y,v,T,w,g,E,C){var L=y+(v&T|~v&w)+g+C;return(L<<E|L>>>32-E)+v}function f(y,v,T,w,g,E,C){var L=y+(v&w|T&~w)+g+C;return(L<<E|L>>>32-E)+v}function _(y,v,T,w,g,E,C){var L=y+(v^T^w)+g+C;return(L<<E|L>>>32-E)+v}function m(y,v,T,w,g,E,C){var L=y+(T^(v|~w))+g+C;return(L<<E|L>>>32-E)+v}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)})(Math),n.MD5})})(kf)),kf.exports}var Nf={exports:{}},Gee=Nf.exports,bR;function XN(){return bR||(bR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(Gee,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=o.Hasher,a=r.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var f=this._hash.words,_=f[0],m=f[1],y=f[2],v=f[3],T=f[4],w=0;w<80;w++){if(w<16)c[w]=u[d+w]|0;else{var g=c[w-3]^c[w-8]^c[w-14]^c[w-16];c[w]=g<<1|g>>>31}var E=(_<<5|_>>>27)+T+c[w];w<20?E+=(m&y|~m&v)+1518500249:w<40?E+=(m^y^v)+1859775393:w<60?E+=(m&y|m&v|y&v)-1894007588:E+=(m^y^v)-899497514,T=v,v=y,y=m<<30|m>>>2,m=_,_=E}f[0]=f[0]+_|0,f[1]=f[1]+m|0,f[2]=f[2]+y|0,f[3]=f[3]+v|0,f[4]=f[4]+T|0},_doFinalize:function(){var u=this._data,d=u.words,f=this._nDataBytes*8,_=u.sigBytes*8;return d[_>>>5]|=128<<24-_%32,d[(_+64>>>9<<4)+14]=Math.floor(f/4294967296),d[(_+64>>>9<<4)+15]=f,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=s._createHelper(l),r.HmacSHA1=s._createHmacHelper(l)})(),n.SHA1})})(Nf)),Nf.exports}var Vf={exports:{}},Qee=Vf.exports,wR;function Sb(){return wR||(wR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(Qee,function(n){return(function(r){var o=n,i=o.lib,s=i.WordArray,a=i.Hasher,c=o.algo,l=[],u=[];(function(){function _(T){for(var w=r.sqrt(T),g=2;g<=w;g++)if(!(T%g))return!1;return!0}function m(T){return(T-(T|0))*4294967296|0}for(var y=2,v=0;v<64;)_(y)&&(v<8&&(l[v]=m(r.pow(y,1/2))),u[v]=m(r.pow(y,1/3)),v++),y++})();var d=[],f=c.SHA256=a.extend({_doReset:function(){this._hash=new s.init(l.slice(0))},_doProcessBlock:function(_,m){for(var y=this._hash.words,v=y[0],T=y[1],w=y[2],g=y[3],E=y[4],C=y[5],L=y[6],A=y[7],I=0;I<64;I++){if(I<16)d[I]=_[m+I]|0;else{var R=d[I-15],x=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,D=d[I-2],S=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;d[I]=x+d[I-7]+S+d[I-16]}var O=E&C^~E&L,ae=v&T^v&w^T&w,le=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),B=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),j=A+B+O+u[I]+d[I],H=le+ae;A=L,L=C,C=E,E=g+j|0,g=w,w=T,T=v,v=j+H|0}y[0]=y[0]+v|0,y[1]=y[1]+T|0,y[2]=y[2]+w|0,y[3]=y[3]+g|0,y[4]=y[4]+E|0,y[5]=y[5]+C|0,y[6]=y[6]+L|0,y[7]=y[7]+A|0},_doFinalize:function(){var _=this._data,m=_.words,y=this._nDataBytes*8,v=_.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=r.floor(y/4294967296),m[(v+64>>>9<<4)+15]=y,_.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var _=a.clone.call(this);return _._hash=this._hash.clone(),_}});o.SHA256=a._createHelper(f),o.HmacSHA256=a._createHmacHelper(f)})(Math),n.SHA256})})(Vf)),Vf.exports}var Ff={exports:{}},Yee=Ff.exports,TR;function Xee(){return TR||(TR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Sb())})(Yee,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=r.algo,a=s.SHA256,c=s.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=a._doFinalize.call(this);return l.sigBytes-=4,l}});r.SHA224=a._createHelper(c),r.HmacSHA224=a._createHmacHelper(c)})(),n.SHA224})})(Ff)),Ff.exports}var Mf={exports:{}},Jee=Mf.exports,AR;function JN(){return AR||(AR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Rm())})(Jee,function(n){return(function(){var r=n,o=r.lib,i=o.Hasher,s=r.x64,a=s.Word,c=s.WordArray,l=r.algo;function u(){return a.create.apply(a,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var _=l.SHA512=i.extend({_doReset:function(){this._hash=new c.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,y){for(var v=this._hash.words,T=v[0],w=v[1],g=v[2],E=v[3],C=v[4],L=v[5],A=v[6],I=v[7],R=T.high,x=T.low,D=w.high,S=w.low,O=g.high,ae=g.low,le=E.high,B=E.low,j=C.high,H=C.low,ce=L.high,ue=L.low,W=A.high,J=A.low,ee=I.high,ne=I.low,q=R,be=x,Y=D,ie=S,he=O,ge=ae,K=le,pe=B,k=j,F=H,$=ce,se=ue,G=W,N=J,M=ee,z=ne,X=0;X<80;X++){var re,fe,U=f[X];if(X<16)fe=U.high=m[y+X*2]|0,re=U.low=m[y+X*2+1]|0;else{var Z=f[X-15],_e=Z.high,ve=Z.low,Ne=(_e>>>1|ve<<31)^(_e>>>8|ve<<24)^_e>>>7,Me=(ve>>>1|_e<<31)^(ve>>>8|_e<<24)^(ve>>>7|_e<<25),it=f[X-2],st=it.high,gt=it.low,Vt=(st>>>19|gt<<13)^(st<<3|gt>>>29)^st>>>6,an=(gt>>>19|st<<13)^(gt<<3|st>>>29)^(gt>>>6|st<<26),Nn=f[X-7],Ot=Nn.high,jn=Nn.low,wi=f[X-16],na=wi.high,Ml=wi.low;re=Me+jn,fe=Ne+Ot+(re>>>0<Me>>>0?1:0),re=re+an,fe=fe+Vt+(re>>>0<an>>>0?1:0),re=re+Ml,fe=fe+na+(re>>>0<Ml>>>0?1:0),U.high=fe,U.low=re}var ra=k&$^~k&G,uc=F&se^~F&N,Bl=q&Y^q&he^Y&he,Ti=be&ie^be&ge^ie&ge,ah=(q>>>28|be<<4)^(q<<30|be>>>2)^(q<<25|be>>>7),oa=(be>>>28|q<<4)^(be<<30|q>>>2)^(be<<25|q>>>7),ch=(k>>>14|F<<18)^(k>>>18|F<<14)^(k<<23|F>>>9),ia=(F>>>14|k<<18)^(F>>>18|k<<14)^(F<<23|k>>>9),Ul=d[X],cn=Ul.high,$l=Ul.low,Qt=z+ia,Hn=M+ch+(Qt>>>0<z>>>0?1:0),Qt=Qt+uc,Hn=Hn+ra+(Qt>>>0<uc>>>0?1:0),Qt=Qt+$l,Hn=Hn+cn+(Qt>>>0<$l>>>0?1:0),Qt=Qt+re,Hn=Hn+fe+(Qt>>>0<re>>>0?1:0),lh=oa+Ti,Lm=ah+Bl+(lh>>>0<oa>>>0?1:0);M=G,z=N,G=$,N=se,$=k,se=F,F=pe+Qt|0,k=K+Hn+(F>>>0<pe>>>0?1:0)|0,K=he,pe=ge,he=Y,ge=ie,Y=q,ie=be,be=Qt+lh|0,q=Hn+Lm+(be>>>0<Qt>>>0?1:0)|0}x=T.low=x+be,T.high=R+q+(x>>>0<be>>>0?1:0),S=w.low=S+ie,w.high=D+Y+(S>>>0<ie>>>0?1:0),ae=g.low=ae+ge,g.high=O+he+(ae>>>0<ge>>>0?1:0),B=E.low=B+pe,E.high=le+K+(B>>>0<pe>>>0?1:0),H=C.low=H+F,C.high=j+k+(H>>>0<F>>>0?1:0),ue=L.low=ue+se,L.high=ce+$+(ue>>>0<se>>>0?1:0),J=A.low=J+N,A.high=W+G+(J>>>0<N>>>0?1:0),ne=I.low=ne+z,I.high=ee+M+(ne>>>0<z>>>0?1:0)},_doFinalize:function(){var m=this._data,y=m.words,v=this._nDataBytes*8,T=m.sigBytes*8;y[T>>>5]|=128<<24-T%32,y[(T+128>>>10<<5)+30]=Math.floor(v/4294967296),y[(T+128>>>10<<5)+31]=v,m.sigBytes=y.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=i._createHelper(_),r.HmacSHA512=i._createHmacHelper(_)})(),n.SHA512})})(Mf)),Mf.exports}var Bf={exports:{}},Zee=Bf.exports,xR;function ete(){return xR||(xR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Rm(),JN())})(Zee,function(n){return(function(){var r=n,o=r.x64,i=o.Word,s=o.WordArray,a=r.algo,c=a.SHA512,l=a.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=c._doFinalize.call(this);return u.sigBytes-=16,u}});r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l)})(),n.SHA384})})(Bf)),Bf.exports}var Uf={exports:{}},tte=Uf.exports,IR;function nte(){return IR||(IR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Rm())})(tte,function(n){return(function(r){var o=n,i=o.lib,s=i.WordArray,a=i.Hasher,c=o.x64,l=c.Word,u=o.algo,d=[],f=[],_=[];(function(){for(var v=1,T=0,w=0;w<24;w++){d[v+5*T]=(w+1)*(w+2)/2%64;var g=T%5,E=(2*v+3*T)%5;v=g,T=E}for(var v=0;v<5;v++)for(var T=0;T<5;T++)f[v+5*T]=T+(2*v+3*T)%5*5;for(var C=1,L=0;L<24;L++){for(var A=0,I=0,R=0;R<7;R++){if(C&1){var x=(1<<R)-1;x<32?I^=1<<x:A^=1<<x-32}C&128?C=C<<1^113:C<<=1}_[L]=l.create(A,I)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=l.create()})();var y=u.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],T=0;T<25;T++)v[T]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,T){for(var w=this._state,g=this.blockSize/2,E=0;E<g;E++){var C=v[T+2*E],L=v[T+2*E+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360;var A=w[E];A.high^=L,A.low^=C}for(var I=0;I<24;I++){for(var R=0;R<5;R++){for(var x=0,D=0,S=0;S<5;S++){var A=w[R+5*S];x^=A.high,D^=A.low}var O=m[R];O.high=x,O.low=D}for(var R=0;R<5;R++)for(var ae=m[(R+4)%5],le=m[(R+1)%5],B=le.high,j=le.low,x=ae.high^(B<<1|j>>>31),D=ae.low^(j<<1|B>>>31),S=0;S<5;S++){var A=w[R+5*S];A.high^=x,A.low^=D}for(var H=1;H<25;H++){var x,D,A=w[H],ce=A.high,ue=A.low,W=d[H];W<32?(x=ce<<W|ue>>>32-W,D=ue<<W|ce>>>32-W):(x=ue<<W-32|ce>>>64-W,D=ce<<W-32|ue>>>64-W);var J=m[f[H]];J.high=x,J.low=D}var ee=m[0],ne=w[0];ee.high=ne.high,ee.low=ne.low;for(var R=0;R<5;R++)for(var S=0;S<5;S++){var H=R+5*S,A=w[H],q=m[H],be=m[(R+1)%5+5*S],Y=m[(R+2)%5+5*S];A.high=q.high^~be.high&Y.high,A.low=q.low^~be.low&Y.low}var A=w[0],ie=_[I];A.high^=ie.high,A.low^=ie.low}},_doFinalize:function(){var v=this._data,T=v.words;this._nDataBytes*8;var w=v.sigBytes*8,g=this.blockSize*32;T[w>>>5]|=1<<24-w%32,T[(r.ceil((w+1)/g)*g>>>5)-1]|=128,v.sigBytes=T.length*4,this._process();for(var E=this._state,C=this.cfg.outputLength/8,L=C/8,A=[],I=0;I<L;I++){var R=E[I],x=R.high,D=R.low;x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,A.push(D),A.push(x)}return new s.init(A,C)},clone:function(){for(var v=a.clone.call(this),T=v._state=this._state.slice(0),w=0;w<25;w++)T[w]=T[w].clone();return v}});o.SHA3=a._createHelper(y),o.HmacSHA3=a._createHmacHelper(y)})(Math),n.SHA3})})(Uf)),Uf.exports}var $f={exports:{}},rte=$f.exports,RR;function ote(){return RR||(RR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(rte,function(n){/** @preserve 4496 (c) 2012 by Cédric Mesnil. All rights reserved. 4497 4498 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 4499 4500 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 4501 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 4502 4503 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 4504 */return(function(r){var o=n,i=o.lib,s=i.WordArray,a=i.Hasher,c=o.algo,l=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),y=c.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(L,A){for(var I=0;I<16;I++){var R=A+I,x=L[R];L[R]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var D=this._hash.words,S=_.words,O=m.words,ae=l.words,le=u.words,B=d.words,j=f.words,H,ce,ue,W,J,ee,ne,q,be,Y;ee=H=D[0],ne=ce=D[1],q=ue=D[2],be=W=D[3],Y=J=D[4];for(var ie,I=0;I<80;I+=1)ie=H+L[A+ae[I]]|0,I<16?ie+=v(ce,ue,W)+S[0]:I<32?ie+=T(ce,ue,W)+S[1]:I<48?ie+=w(ce,ue,W)+S[2]:I<64?ie+=g(ce,ue,W)+S[3]:ie+=E(ce,ue,W)+S[4],ie=ie|0,ie=C(ie,B[I]),ie=ie+J|0,H=J,J=W,W=C(ue,10),ue=ce,ce=ie,ie=ee+L[A+le[I]]|0,I<16?ie+=E(ne,q,be)+O[0]:I<32?ie+=g(ne,q,be)+O[1]:I<48?ie+=w(ne,q,be)+O[2]:I<64?ie+=T(ne,q,be)+O[3]:ie+=v(ne,q,be)+O[4],ie=ie|0,ie=C(ie,j[I]),ie=ie+Y|0,ee=Y,Y=be,be=C(q,10),q=ne,ne=ie;ie=D[1]+ue+be|0,D[1]=D[2]+W+Y|0,D[2]=D[3]+J+ee|0,D[3]=D[4]+H+ne|0,D[4]=D[0]+ce+q|0,D[0]=ie},_doFinalize:function(){var L=this._data,A=L.words,I=this._nDataBytes*8,R=L.sigBytes*8;A[R>>>5]|=128<<24-R%32,A[(R+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,L.sigBytes=(A.length+1)*4,this._process();for(var x=this._hash,D=x.words,S=0;S<5;S++){var O=D[S];D[S]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return x},clone:function(){var L=a.clone.call(this);return L._hash=this._hash.clone(),L}});function v(L,A,I){return L^A^I}function T(L,A,I){return L&A|~L&I}function w(L,A,I){return(L|~A)^I}function g(L,A,I){return L&I|A&~I}function E(L,A,I){return L^(A|~I)}function C(L,A){return L<<A|L>>>32-A}o.RIPEMD160=a._createHelper(y),o.HmacRIPEMD160=a._createHmacHelper(y)})(),n.RIPEMD160})})($f)),$f.exports}var jf={exports:{}},ite=jf.exports,CR;function Ob(){return CR||(CR=1,(function(t,e){(function(n,r){t.exports=r(Ke())})(ite,function(n){(function(){var r=n,o=r.lib,i=o.Base,s=r.enc,a=s.Utf8,c=r.algo;c.HMAC=i.extend({init:function(l,u){l=this._hasher=new l.init,typeof u=="string"&&(u=a.parse(u));var d=l.blockSize,f=d*4;u.sigBytes>f&&(u=l.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),m=this._iKey=u.clone(),y=_.words,v=m.words,T=0;T<d;T++)y[T]^=1549556828,v[T]^=909522486;_.sigBytes=m.sigBytes=f,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var u=this._hasher,d=u.finalize(l);u.reset();var f=u.finalize(this._oKey.clone().concat(d));return f}})})()})})(jf)),jf.exports}var Hf={exports:{}},ste=Hf.exports,PR;function ate(){return PR||(PR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Sb(),Ob())})(ste,function(n){return(function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,a=r.algo,c=a.SHA256,l=a.HMAC,u=a.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var _=this.cfg,m=l.create(_.hasher,d),y=s.create(),v=s.create([1]),T=y.words,w=v.words,g=_.keySize,E=_.iterations;T.length<g;){var C=m.update(f).finalize(v);m.reset();for(var L=C.words,A=L.length,I=C,R=1;R<E;R++){I=m.finalize(I),m.reset();for(var x=I.words,D=0;D<A;D++)L[D]^=x[D]}y.concat(C),w[0]++}return y.sigBytes=g*4,y}});r.PBKDF2=function(d,f,_){return u.create(_).compute(d,f)}})(),n.PBKDF2})})(Hf)),Hf.exports}var zf={exports:{}},cte=zf.exports,SR;function ea(){return SR||(SR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),XN(),Ob())})(cte,function(n){return(function(){var r=n,o=r.lib,i=o.Base,s=o.WordArray,a=r.algo,c=a.MD5,l=a.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:c,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,d){for(var f,_=this.cfg,m=_.hasher.create(),y=s.create(),v=y.words,T=_.keySize,w=_.iterations;v.length<T;){f&&m.update(f),f=m.update(u).finalize(d),m.reset();for(var g=1;g<w;g++)f=m.finalize(f),m.reset();y.concat(f)}return y.sigBytes=T*4,y}});r.EvpKDF=function(u,d,f){return l.create(f).compute(u,d)}})(),n.EvpKDF})})(zf)),zf.exports}var qf={exports:{}},lte=qf.exports,OR;function sn(){return OR||(OR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),ea())})(lte,function(n){n.lib.Cipher||(function(r){var o=n,i=o.lib,s=i.Base,a=i.WordArray,c=i.BufferedBlockAlgorithm,l=o.enc;l.Utf8;var u=l.Base64,d=o.algo,f=d.EvpKDF,_=i.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(x,D){return this.create(this._ENC_XFORM_MODE,x,D)},createDecryptor:function(x,D){return this.create(this._DEC_XFORM_MODE,x,D)},init:function(x,D,S){this.cfg=this.cfg.extend(S),this._xformMode=x,this._key=D,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(x){return this._append(x),this._process()},finalize:function(x){x&&this._append(x);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function x(D){return typeof D=="string"?R:L}return function(D){return{encrypt:function(S,O,ae){return x(O).encrypt(D,S,O,ae)},decrypt:function(S,O,ae){return x(O).decrypt(D,S,O,ae)}}}})()});i.StreamCipher=_.extend({_doFinalize:function(){var x=this._process(!0);return x},blockSize:1});var m=o.mode={},y=i.BlockCipherMode=s.extend({createEncryptor:function(x,D){return this.Encryptor.create(x,D)},createDecryptor:function(x,D){return this.Decryptor.create(x,D)},init:function(x,D){this._cipher=x,this._iv=D}}),v=m.CBC=(function(){var x=y.extend();x.Encryptor=x.extend({processBlock:function(S,O){var ae=this._cipher,le=ae.blockSize;D.call(this,S,O,le),ae.encryptBlock(S,O),this._prevBlock=S.slice(O,O+le)}}),x.Decryptor=x.extend({processBlock:function(S,O){var ae=this._cipher,le=ae.blockSize,B=S.slice(O,O+le);ae.decryptBlock(S,O),D.call(this,S,O,le),this._prevBlock=B}});function D(S,O,ae){var le,B=this._iv;B?(le=B,this._iv=r):le=this._prevBlock;for(var j=0;j<ae;j++)S[O+j]^=le[j]}return x})(),T=o.pad={},w=T.Pkcs7={pad:function(x,D){for(var S=D*4,O=S-x.sigBytes%S,ae=O<<24|O<<16|O<<8|O,le=[],B=0;B<O;B+=4)le.push(ae);var j=a.create(le,O);x.concat(j)},unpad:function(x){var D=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=D}};i.BlockCipher=_.extend({cfg:_.cfg.extend({mode:v,padding:w}),reset:function(){var x;_.reset.call(this);var D=this.cfg,S=D.iv,O=D.mode;this._xformMode==this._ENC_XFORM_MODE?x=O.createEncryptor:(x=O.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==x?this._mode.init(this,S&&S.words):(this._mode=x.call(O,this,S&&S.words),this._mode.__creator=x)},_doProcessBlock:function(x,D){this._mode.processBlock(x,D)},_doFinalize:function(){var x,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),x=this._process(!0)):(x=this._process(!0),D.unpad(x)),x},blockSize:128/32});var g=i.CipherParams=s.extend({init:function(x){this.mixIn(x)},toString:function(x){return(x||this.formatter).stringify(this)}}),E=o.format={},C=E.OpenSSL={stringify:function(x){var D,S=x.ciphertext,O=x.salt;return O?D=a.create([1398893684,1701076831]).concat(O).concat(S):D=S,D.toString(u)},parse:function(x){var D,S=u.parse(x),O=S.words;return O[0]==1398893684&&O[1]==1701076831&&(D=a.create(O.slice(2,4)),O.splice(0,4),S.sigBytes-=16),g.create({ciphertext:S,salt:D})}},L=i.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(x,D,S,O){O=this.cfg.extend(O);var ae=x.createEncryptor(S,O),le=ae.finalize(D),B=ae.cfg;return g.create({ciphertext:le,key:S,iv:B.iv,algorithm:x,mode:B.mode,padding:B.padding,blockSize:x.blockSize,formatter:O.format})},decrypt:function(x,D,S,O){O=this.cfg.extend(O),D=this._parse(D,O.format);var ae=x.createDecryptor(S,O).finalize(D.ciphertext);return ae},_parse:function(x,D){return typeof x=="string"?D.parse(x,this):x}}),A=o.kdf={},I=A.OpenSSL={execute:function(x,D,S,O,ae){if(O||(O=a.random(64/8)),ae)var le=f.create({keySize:D+S,hasher:ae}).compute(x,O);else var le=f.create({keySize:D+S}).compute(x,O);var B=a.create(le.words.slice(D),S*4);return le.sigBytes=D*4,g.create({key:le,iv:B,salt:O})}},R=i.PasswordBasedCipher=L.extend({cfg:L.cfg.extend({kdf:I}),encrypt:function(x,D,S,O){O=this.cfg.extend(O);var ae=O.kdf.execute(S,x.keySize,x.ivSize,O.salt,O.hasher);O.iv=ae.iv;var le=L.encrypt.call(this,x,D,ae.key,O);return le.mixIn(ae),le},decrypt:function(x,D,S,O){O=this.cfg.extend(O),D=this._parse(D,O.format);var ae=O.kdf.execute(S,x.keySize,x.ivSize,D.salt,O.hasher);O.iv=ae.iv;var le=L.decrypt.call(this,x,D,ae.key,O);return le}})})()})})(qf)),qf.exports}var Wf={exports:{}},ute=Wf.exports,DR;function dte(){return DR||(DR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(ute,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(i,s){var a=this._cipher,c=a.blockSize;o.call(this,i,s,c,a),this._prevBlock=i.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(i,s){var a=this._cipher,c=a.blockSize,l=i.slice(s,s+c);o.call(this,i,s,c,a),this._prevBlock=l}});function o(i,s,a,c){var l,u=this._iv;u?(l=u.slice(0),this._iv=void 0):l=this._prevBlock,c.encryptBlock(l,0);for(var d=0;d<a;d++)i[s+d]^=l[d]}return r})(),n.mode.CFB})})(Wf)),Wf.exports}var Kf={exports:{}},hte=Kf.exports,LR;function fte(){return LR||(LR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(hte,function(n){return n.mode.CTR=(function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var a=this._cipher,c=a.blockSize,l=this._iv,u=this._counter;l&&(u=this._counter=l.slice(0),this._iv=void 0);var d=u.slice(0);a.encryptBlock(d,0),u[c-1]=u[c-1]+1|0;for(var f=0;f<c;f++)i[s+f]^=d[f]}});return r.Decryptor=o,r})(),n.mode.CTR})})(Kf)),Kf.exports}var Gf={exports:{}},pte=Gf.exports,kR;function _te(){return kR||(kR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(pte,function(n){/** @preserve 4505 * Counter block mode compatible with Dr Brian Gladman fileenc.c 4506 * derived from CryptoJS.mode.CTR 4507 * Jan Hruby [email protected] 4508 */return n.mode.CTRGladman=(function(){var r=n.lib.BlockCipherMode.extend();function o(a){if((a>>24&255)===255){var c=a>>16&255,l=a>>8&255,u=a&255;c===255?(c=0,l===255?(l=0,u===255?u=0:++u):++l):++c,a=0,a+=c<<16,a+=l<<8,a+=u}else a+=1<<24;return a}function i(a){return(a[0]=o(a[0]))===0&&(a[1]=o(a[1])),a}var s=r.Encryptor=r.extend({processBlock:function(a,c){var l=this._cipher,u=l.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),i(f);var _=f.slice(0);l.encryptBlock(_,0);for(var m=0;m<u;m++)a[c+m]^=_[m]}});return r.Decryptor=s,r})(),n.mode.CTRGladman})})(Gf)),Gf.exports}var Qf={exports:{}},mte=Qf.exports,NR;function gte(){return NR||(NR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(mte,function(n){return n.mode.OFB=(function(){var r=n.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(i,s){var a=this._cipher,c=a.blockSize,l=this._iv,u=this._keystream;l&&(u=this._keystream=l.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var d=0;d<c;d++)i[s+d]^=u[d]}});return r.Decryptor=o,r})(),n.mode.OFB})})(Qf)),Qf.exports}var Yf={exports:{}},yte=Yf.exports,VR;function vte(){return VR||(VR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(yte,function(n){return n.mode.ECB=(function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),r.Decryptor=r.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),r})(),n.mode.ECB})})(Yf)),Yf.exports}var Xf={exports:{}},Ete=Xf.exports,FR;function bte(){return FR||(FR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(Ete,function(n){return n.pad.AnsiX923={pad:function(r,o){var i=r.sigBytes,s=o*4,a=s-i%s,c=i+a-1;r.clamp(),r.words[c>>>2]|=a<<24-c%4*8,r.sigBytes+=a},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})})(Xf)),Xf.exports}var Jf={exports:{}},wte=Jf.exports,MR;function Tte(){return MR||(MR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(wte,function(n){return n.pad.Iso10126={pad:function(r,o){var i=o*4,s=i-r.sigBytes%i;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})})(Jf)),Jf.exports}var Zf={exports:{}},Ate=Zf.exports,BR;function xte(){return BR||(BR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(Ate,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(Zf)),Zf.exports}var ep={exports:{}},Ite=ep.exports,UR;function Rte(){return UR||(UR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(Ite,function(n){return n.pad.ZeroPadding={pad:function(r,o){var i=o*4;r.clamp(),r.sigBytes+=i-(r.sigBytes%i||i)},unpad:function(r){for(var o=r.words,i=r.sigBytes-1,i=r.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){r.sigBytes=i+1;break}}},n.pad.ZeroPadding})})(ep)),ep.exports}var tp={exports:{}},Cte=tp.exports,$R;function Pte(){return $R||($R=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(Cte,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(tp)),tp.exports}
4508var np={exports:{}},Ste=np.exports,jR;function Ote(){return jR||(jR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),sn())})(Ste,function(n){return(function(r){var o=n,i=o.lib,s=i.CipherParams,a=o.enc,c=a.Hex,l=o.format;l.Hex={stringify:function(u){return u.ciphertext.toString(c)},parse:function(u){var d=c.parse(u);return s.create({ciphertext:d})}}})(),n.format.Hex})})(np)),np.exports}var rp={exports:{}},Dte=rp.exports,HR;function Lte(){return HR||(HR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(Dte,function(n){return(function(){var r=n,o=r.lib,i=o.BlockCipher,s=r.algo,a=[],c=[],l=[],u=[],d=[],f=[],_=[],m=[],y=[],v=[];(function(){for(var g=[],E=0;E<256;E++)E<128?g[E]=E<<1:g[E]=E<<1^283;for(var C=0,L=0,E=0;E<256;E++){var A=L^L<<1^L<<2^L<<3^L<<4;A=A>>>8^A&255^99,a[C]=A,c[A]=C;var I=g[C],R=g[I],x=g[R],D=g[A]*257^A*16843008;l[C]=D<<24|D>>>8,u[C]=D<<16|D>>>16,d[C]=D<<8|D>>>24,f[C]=D;var D=x*16843009^R*65537^I*257^C*16843008;_[A]=D<<24|D>>>8,m[A]=D<<16|D>>>16,y[A]=D<<8|D>>>24,v[A]=D,C?(C=I^g[g[g[x^I]]],L^=g[g[L]]):C=L=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=i.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var E=this._keyPriorReset=this._key,C=E.words,L=E.sigBytes/4,A=this._nRounds=L+6,I=(A+1)*4,R=this._keySchedule=[],x=0;x<I;x++)x<L?R[x]=C[x]:(g=R[x-1],x%L?L>6&&x%L==4&&(g=a[g>>>24]<<24|a[g>>>16&255]<<16|a[g>>>8&255]<<8|a[g&255]):(g=g<<8|g>>>24,g=a[g>>>24]<<24|a[g>>>16&255]<<16|a[g>>>8&255]<<8|a[g&255],g^=T[x/L|0]<<24),R[x]=R[x-L]^g);for(var D=this._invKeySchedule=[],S=0;S<I;S++){var x=I-S;if(S%4)var g=R[x];else var g=R[x-4];S<4||x<=4?D[S]=g:D[S]=_[a[g>>>24]]^m[a[g>>>16&255]]^y[a[g>>>8&255]]^v[a[g&255]]}}},encryptBlock:function(g,E){this._doCryptBlock(g,E,this._keySchedule,l,u,d,f,a)},decryptBlock:function(g,E){var C=g[E+1];
vendor: 1,484 bytes, line 4508
4508g[E+1]=g[E+3],g[E+3]=C,this._doCryptBlock(g,E,this._invKeySchedule,_,m,y,v,c);var C=g[E+1];g[E+1]=g[E+3],g[E+3]=C},_doCryptBlock:function(g,E,C,L,A,I,R,x){for(var D=this._nRounds,S=g[E]^C[0],O=g[E+1]^C[1],ae=g[E+2]^C[2],le=g[E+3]^C[3],B=4,j=1;j<D;j++){var H=L[S>>>24]^A[O>>>16&255]^I[ae>>>8&255]^R[le&255]^C[B++],ce=L[O>>>24]^A[ae>>>16&255]^I[le>>>8&255]^R[S&255]^C[B++],ue=L[ae>>>24]^A[le>>>16&255]^I[S>>>8&255]^R[O&255]^C[B++],W=L[le>>>24]^A[S>>>16&255]^I[O>>>8&255]^R[ae&255]^C[B++];S=H,O=ce,ae=ue,le=W}var H=(x[S>>>24]<<24|x[O>>>16&255]<<16|x[ae>>>8&255]<<8|x[le&255])^C[B++],ce=(x[O>>>24]<<24|x[ae>>>16&255]<<16|x[le>>>8&255]<<8|x[S&255])^C[B++],ue=(x[ae>>>24]<<24|x[le>>>16&255]<<16|x[S>>>8&255]<<8|x[O&255])^C[B++],W=(x[le>>>24]<<24|x[S>>>16&255]<<16|x[O>>>8&255]<<8|x[ae&255])^C[B++];g[E]=H,g[E+1]=ce,g[E+2]=ue,g[E+3]=W},keySize:256/32});r.AES=i._createHelper(w)})(),n.AES})})(rp)),rp.exports}var op={exports:{}},kte=op.exports,zR;function Nte(){return zR||(zR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(kte,function(n){return(function(){var r=n,o=r.lib,i=o.WordArray,s=o.BlockCipher,a=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d
vendor: 7,629 bytes, line 4508
4508=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 3,168 bytes, line 4508
4508f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=a.DES=s.extend({_doReset:function(){for(var T=this._key,w=T.words,g=[],E=0;E<56;E++){var C=c[E]-1;g[E]=w[C>>>5]>>>31-C%32&1}for(var L=this._subKeys=[],A=0;A<16;A++){for(var I=L[A]=[],R=u[A],E=0;E<24;E++)I[E/6|0]|=g[(l[E]-1+R)%28]<<31-E%6,I[4+(E/6|0)]|=g[28+(l[E+24]-1+R)%28]<<31-E%6;I[0]=I[0]<<1|I[0]>>>31;for(var E=1;E<7;E++)I[E]=I[E]>>>(E-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var x=this._invSubKeys=[],E=0;E<16;E++)x[E]=L[15-E]},encryptBlock:function(T,w){this._doCryptBlock(T,w,this._subKeys)},decryptBlock:function(T,w){this._doCryptBlock(T,w,this._invSubKeys)},_doCryptBlock:function(T,w,g){this._lBlock=T[w],this._rBlock=T[w+1],m.call(this,4,252645135),m.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),m.call(this,1,1431655765);for(var E=0;E<16;E++){for(var C=g[E],L=this._lBlock,A=this._rBlock,I=0,R=0;R<8;R++)I|=d[R][((A^C[R])&f[R])>>>0];this._lBlock=A,this._rBlock=L^I}var x=this._lBlock;this._lBlock=this._rBlock,this._rBlock=x,m.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),T[w]=this._lBlock,T[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(T,w){var g=(this._lBlock>>>T^this._rBlock)&w;this._rBlock^=g,this._lBlock^=g<<T}function y(T,w){var g=(this._rBlock>>>T^this._lBlock)&w;this._lBlock^=g,this._rBlock^=g<<T}r.DES=s._createHelper(_);var v=a.TripleDES=s.extend({_doReset:function(){var T=this._key,w=T.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=w.slice(0,2),E=w.length<4?w.slice(0,2):w.slice(2,4),C=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=_.createEncryptor(i.create(g)),this._des2=_.createEncryptor(i.create(E)),this._des3=_.createEncryptor(i.create(C))},encryptBlock:function(T,w){this._des1.encryptBlock(T,w),this._des2.decryptBlock(T,w),this._des3.encryptBlock(T,w)},decryptBlock:function(T,w){this._des3.decryptBlock(T,w),this._des2.encryptBlock(T,w),this._des1.decryptBlock(T,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(v)})(),n.TripleDES})})(op)),op.exports}var ip={exports:{}},Vte=ip.exports,qR;function Fte(){return qR||(qR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(Vte,function(n){return(function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,a=s.RC4=i.extend({_doReset:function(){for(var u=this._key,d=u.words,f=u.sigBytes,_=this._S=[],m=0;m<256;m++)_[m]=m;for(var m=0,y=0;m<256;m++){var v=m%f,T=d[v>>>2]>>>24-v%4*8&255;y=(y+_[m]+T)%256;var w=_[m];_[m]=_[y],_[y]=w}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var u=this._S,d=this._i,f=this._j,_=0,m=0;m<4;m++){d=(d+1)%256,f=(f+u[d])%256;var y=u[d];u[d]=u[f],u[f]=y,_|=u[(u[d]+u[f])%256]<<24-m*8}return this._i=d,this._j=f,_}r.RC4=i._createHelper(a);var l=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)c.call(this)}});r.RC4Drop=i._createHelper(l)})(),n.RC4})})(ip)),ip.exports}
vendor: 5,076 bytes, line 4508
4508var sp={exports:{}},Mte=sp.exports,WR;function Bte(){return WR||(WR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(Mte,function(n){return(function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,a=[],c=[],l=[],u=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,_=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var y=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)v[m]^=y[m+4&7];if(_){var T=_.words,w=T[0],g=T[1],E=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,L=E>>>16|C&4294901760,A=C<<16|E&65535;v[0]^=E,v[1]^=L,v[2]^=C,v[3]^=A,v[4]^=E,v[5]^=L,v[6]^=C,v[7]^=A;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(f,_){var m=this._X;d.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var y=0;y<4;y++)a[y]=(a[y]<<8|a[y]>>>24)&16711935|(a[y]<<24|a[y]>>>8)&4278255360,f[_+y]^=a[y]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,_=this._C,m=0;m<8;m++)c[m]=_[m];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var m=0;m<8;m++){var y=f[m]+_[m],v=y&65535,T=y>>>16,w=((v*v>>>17)+v*T>>>15)+T*T,g=((y&4294901760)*y|0)+((y&65535)*y|0);l[m]=w^g}f[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,f[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,f[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,f[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,f[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,f[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,f[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,f[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.Rabbit=i._createHelper(u)})(),n.Rabbit})})(sp)),sp.exports}var ap={exports:{}},Ute=ap.exports,KR;function $te(){return KR||(KR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(Ute,function(n){return(function(){var r=n,o=r.lib,i=o.StreamCipher,s=r.algo,a=[],c=[],l=[],u=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,_=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],y=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)y[v]^=m[v+4&7];if(_){var T=_.words,w=T[0],g=T[1],E=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,L=E>>>16|C&4294901760,A=C<<16|E&65535;y[0]^=E,y[1]^=L,y[2]^=C,y[3]^=A,y[4]^=E,y[5]^=L,y[6]^=C,y[7]^=A;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(f,_){var m=this._X;d.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var y=0;y<4;y++)a[y]=(a[y]<<8|a[y]>>>24)&16711935|(a[y]<<24|a[y]>>>8)&4278255360,f[_+y]^=a[y]},blockSize:128/32,ivSize:64/32});function d(){for(var f=this._X,_=this._C,m=0;m<8;m++)c[m]=_[m];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var m=0;m<8;m++){var y=f[m]+_[m],v=y&65535,T=y>>>16,w=((v*v>>>17)+v*T>>>15)+T*T,g=((y&4294901760)*y|0)+((y&65535)*y|0);l[m]=w^g}f[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,f[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,f[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,f[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,f[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,f[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,f[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,f[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.RabbitLegacy=i._createHelper(u)})(),n.RabbitLegacy})})(ap)),ap.exports}var cp={exports:{}},jte=cp.exports,GR;function Hte(){return GR||(GR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),oc(),ic(),ea(),sn())})(jte,function(n){return(function(){var r=n,o=r.lib,i=o.BlockCipher,s=r.algo;const a=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l
vendor: 11,033 bytes, line 4508
4508=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
vendor: 1,466 bytes, line 4508
4508;var u={pbox:[],sbox:[]};function d(v,T){let w=T>>24&255,g=T>>16&255,E=T>>8&255,C=T&255,L=v.sbox[0][w]+v.sbox[1][g];return L=L^v.sbox[2][E],L=L+v.sbox[3][C],L}function f(v,T,w){let g=T,E=w,C;for(let L=0;L<a;++L)g=g^v.pbox[L],E=d(v,g)^E,C=g,g=E,E=C;return C=g,g=E,E=C,E=E^v.pbox[a],g=g^v.pbox[a+1],{left:g,right:E}}function _(v,T,w){let g=T,E=w,C;for(let L=a+1;L>1;--L)g=g^v.pbox[L],E=d(v,g)^E,C=g,g=E,E=C;return C=g,g=E,E=C,E=E^v.pbox[1],g=g^v.pbox[0],{left:g,right:E}}function m(v,T,w){for(let A=0;A<4;A++){v.sbox[A]=[];for(let I=0;I<256;I++)v.sbox[A][I]=l[A][I]}let g=0;for(let A=0;A<a+2;A++)v.pbox[A]=c[A]^T[g],g++,g>=w&&(g=0);let E=0,C=0,L=0;for(let A=0;A<a+2;A+=2)L=f(v,E,C),E=L.left,C=L.right,v.pbox[A]=E,v.pbox[A+1]=C;for(let A=0;A<4;A++)for(let I=0;I<256;I+=2)L=f(v,E,C),E=L.left,C=L.right,v.sbox[A][I]=E,v.sbox[A][I+1]=C;return!0}var y=s.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,T=v.words,w=v.sigBytes/4;m(u,T,w)}},encryptBlock:function(v,T){var w=f(u,v[T],v[T+1]);v[T]=w.left,v[T+1]=w.right},decryptBlock:function(v,T){var w=_(u,v[T],v[T+1]);v[T]=w.left,v[T+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=i._createHelper(y)})(),n.Blowfish})})(cp)),cp.exports}var zte=Rf.exports,QR;function qte(){return QR||(QR=1,(function(t,e){(function(n,r,o){t.exports=r(Ke(),Rm(),$ee(),Hee(),oc(),Wee(),ic(),XN(),Sb(),Xee(),JN(),ete(),nte(),ote(),Ob(),ate(),ea(),sn(),dte(),fte
4508(),_te(),gte(),vte(),bte(),Tte(),xte(),Rte(),Pte(),Ote(),Lte(),Nte(),Fte(),Bte(),$te(),Hte())})(zte,function(n){return n})})(Rf)),Rf.exports}var ZN=qte();const My=Dee(ZN),Wte=nV({__proto__:null,default:My},[ZN]),By={_Rixits:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-",fromNumber(t){if(Number.isNaN(Number(t))||t===null||t===Number.POSITIVE_INFINITY)throw new Error("The input is not valid");if(t<0)throw new Error("Can't represent negative numbers now");let e,n=Math.floor(t),r="";for(;n!==0;)e=n%64,r=this._Rixits.charAt(e)+r,n=Math.floor(n/64);return r},toNumber(t){let e=0;const n=t.split("");for(let r=0;r<n.length;r++)e=e*64+this._Rixits.indexOf(n[r]);return e}};async function Kte(t){const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}const YR="";function Gte(){const t=mn();return t&&t.currentRoute.value.name?.toString()||YR}const Db="staging",Qte=Db==="staging",Yte=Db==="prod",Xte={isStaging:Qte,isProd:Yte,currentEnvironment:Db},Jte="/log/web",Zte="/user/web",ene={staging:"https://gateway.staging.cerebroapi.com"},tne={staging:"https://config-api.staging.cdwapi.com"},nne="com.codeway.magicretakeweb",rne="X6zMIfLzPzSX4Jy32Zl3",one="0QA4vDaP3auW5YhUzB2L",Jn={BASE_URL:ene.staging,CONF_BASE:tne.staging,API_KEY:rne,PASSPHRASE:one,USER_PATH:Zte,EVENT_PATH:Jte,app_id:nne},H0="0.0.1";async function ine(t){return await Kte(By.fromNumber(Date.now())+t)}async function sne(t){let e=sessionStorage.getItem("cdw_sid");return(!e||e==="undefined")&&(e=await ine(t),sessionStorage.setItem("cdw_sid",e)),e}class Pc{axiosInstance;static instance;constructor(){this.axiosInstance=Nt.create({baseURL:Jn.BASE_URL,headers:{authorization:Jn.API_KEY,"Content-Type":"application/json"}})}static getInstance(){return Pc.instance||(Pc.instance=new Pc),Pc.instance}getCerebroId(){const e=al();if(e.cerebroId)return localStorage.setItem("cdw_cid",e.cerebroId),e.cerebroId;const n=localStorage.getItem("cdw_cid");if(n)return e.setCerebroId(n),n;const r=this.generateCerebroId();return localStorage.setItem("cdw_cid",r),e.setCerebroId(r),r}getOSName(){let e="Unknown OS";return navigator.userAgent.includes("Win")&&(e="Windows"),navigator.userAgent.includes("Mac")&&(e="Mac OS"),navigator.userAgent.includes("Linux")&&(e="Linux"),navigator.userAgent.includes("Android")&&(e="Android"),navigator.userAgent.includes("like Mac")&&(e="iOS"),e}generateCerebroId(){const e=Date.now(),n=Math.floor(Math.random()*258047)+4096;return`web_${By.fromNumber(n)}${By.fromNumber(e)}`}async sendEvent({eventName:e,eventGroup:n,duration:r,page:o,properties:i={},result:s}){i=this.addDeviceProperties(i);const c={event_logs:[{user_id:this.getCerebroId(),type:"event",app_id:Jn.app_id,version:H0,result:s||"success",session_id:await sne(this.getCerebroId()),event_group:n||null,event_name:e,event_time:Date.now(),duration:r||null,page:o||Gte(),properties:this.formatProperties(i)}]};console.log(`Sending event ${e}`,c);const l=Date.now(),u=[JSON.stringify(c),Jn.API_KEY,l,Jn.EVENT_PATH].join("_"),d=this.createRS(u);await this.axiosInstance.post(Jn.EVENT_PATH,c,{headers:{ts:l,rs:d}})}createRS(e){return My.HmacSHA256(e,Jn.PASSPHRASE).toString(My.enc.Hex)}sendUserEvent(e){e||(e={}),e.user_id||(e.user_id=this.getCerebroId()),e.operating_system=this.getOSName();const n=this.getTrackerName();n&&(e.tracker_name=n),e.properties={userAgent:navigator.userAgent},window.cerebroUserEvents===void 0&&(window.cerebroUserEvents=[]),window.cerebroUserEvents.push(e),this.triggerCerebroUserEventSender()}async triggerCerebroUserEventSender(){if(window?.cerebroUserEventSender===void 0||window?.cerebroEventSenderStatus==="idle"){window.cerebroEventSenderStatus="working";const e=window.cerebroUserEvents;if(e){for(;e.length>0;){const n=e.shift();try{Xte.isStaging&&console.log("Sending user event",n),await this.sendUserDataToCerebro(n)}catch(r){console.log(r),e.push(n)}}await this.getConfig()}window.cerebroEventSenderStatus="idle"}}async sendUserDataToCerebro(e){const n={user_id:e.user_id||this.getCerebroId(),app_id:Jn.app_id,version:H0,...e},r=Date.now(),o=[JSON.stringify(n),Jn.API_KEY,r,Jn.USER_PATH].join("_"),i=this.createRS(o);await this.axiosInstance.post(Jn.USER_PATH,n,{headers:{ts:r,rs:i}})}getTrackerName(){const e=new URLSearchParams(window.location.search),n=e.get("utm_source"),r=e.get("utm_medium"),o=e.get("utm_campaign"),i=e.get("utm_term"),s=e.get("utm_content"),a=[];let c="";return(n||r)&&(n?r?c=`${n}_${r}`:c=n:r&&(c=r)),a.push(c),o&&a.push(o),s&&a.push(s),i&&a.push(i),a.join("::")}async getConfig(){const e=this.getCerebroId();try{const n=await Nt.get(`${Jn.CONF_BASE}/web`,{params:{aid:Jn.app_id,id:e,version:H0,language:navigator.language.split("-")[0]}});return n&&n.data&&n.data.status&&n.data.status.code===200?(await this.sendEvent({eventName:"config_result",result:"1",properties:{}}),n.data?.payload):(await this.sendEvent({eventName:"config_result",result:"0",properties:{}}),{configFailed:!0})}catch(n){return console.log(n),await this.sendEvent({eventName:"config_result",result:"0",properties:{}}),{configFailed:!0}}}writeToUserStore(e){al().setConfig(e)}addDeviceProperties(e={}){const n={...e},r=this.getOSName();return n.platform=r==="iOS"||r==="Android"?"mobile":"desktop",n.operating_system=r,n.screen_size=`${screen.width} x ${screen.height}`,n.viewport_size=`${window.innerWidth} x ${window.innerHeight}`,n.browser_language=navigator.language,n.referrer=document.referrer,n}formatProperties(e){if(!e||Object.keys(e).length===0)return[];const n=[];return Object.entries(e).forEach(([r,o])=>{let i="string_value";typeof o=="number"?Number.isInteger(o)?i="int_value":i="float_value":o=String(o),n.push({key:r,value:{[i]:o}})}),n}}const XR=Pc.getInstance();async function JR(t,e){try{return await Li(t,e),!0}catch(n){return console.error("[Navigation] Failed to navigate:",n),Rs.error("Navigation failed. Please try again."),!1}}var e2=typeof global=="object"&&global&&global.Object===Object&&global,ane=typeof self=="object"&&self&&self.Object===Object&&self,bi=e2||ane||Function("return this")(),fl=bi.Symbol,t2=Object.prototype,cne=t2.hasOwnProperty,lne=t2.toString,cu=fl?fl.toStringTag:void 0;function une(t){var e=cne.call(t,cu),n=t[cu];try{t[cu]=void 0;var r=!0}catch{}var o=lne.call(t);return r&&(e?t[cu]=n:delete t[cu]),o}var dne=Object.prototype,hne=dne.toString;function fne(t){return hne.call(t)}
4508var pne="[object Null]",_ne="[object Undefined]",ZR=fl?fl.toStringTag:void 0;function Vl(t){return t==null?t===void 0?_ne:pne:ZR&&ZR in Object(t)?une(t):fne(t)}function sc(t){return t!=null&&typeof t=="object"}var wd=Array.isArray;function ta(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function n2(t){return t}var mne="[object AsyncFunction]",gne="[object Function]",yne="[object GeneratorFunction]",vne="[object Proxy]";function Lb(t){if(!ta(t))return!1;var e=Vl(t);return e==gne||e==yne||e==mne||e==vne}var z0=bi["__core-js_shared__"],eC=(function(){var t=/[^.]+$/.exec(z0&&z0.keys&&z0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ene(t){return!!eC&&eC in t}var bne=Function.prototype,wne=bne.toString;function ac(t){if(t!=null){try{return wne.call(t)}catch{}try{return t+""}catch{}}return""}var Tne=/[\\^$.*+?()[\]{}|]/g,Ane=/^\[object .+?Constructor\]$/,xne=Function.prototype,Ine=Object.prototype,Rne=xne.toString,Cne=Ine.hasOwnProperty,Pne=RegExp("^"+Rne.call(Cne).replace(Tne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sne(t){if(!ta(t)||Ene(t))return!1;var e=Lb(t)?Pne:Ane;return e.test(ac(t))}function One(t,e){return t?.[e]}function cc(t,e){var n=One(t,e);return Sne(n)?n:void 0}var Uy=cc(bi,"WeakMap"),tC=Object.create,Dne=(function(){function t(){}return function(e){if(!ta(e))return{};
vendor: 4,842 bytes, line 4508
4508if(tC)return tC(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Lne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function kne(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Nne=800,Vne=16,Fne=Date.now;function Mne(t){var e=0,n=0;return function(){var r=Fne(),o=Vne-(r-n);if(n=r,o>0){if(++e>=Nne)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Bne(t){return function(){return t}}var g_=(function(){try{var t=cc(Object,"defineProperty");return t({},"",{}),t}catch{}})(),Une=g_?function(t,e){return g_(t,"toString",{configurable:!0,enumerable:!1,value:Bne(e),writable:!0})}:n2,$ne=Mne(Une);function jne(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Hne=9007199254740991,zne=/^(?:0|[1-9]\d*)$/;function r2(t,e){var n=typeof t;return e=e??Hne,!!e&&(n=="number"||n!="symbol"&&zne.test(t))&&t>-1&&t%1==0&&t<e}function kb(t,e,n){e=="__proto__"&&g_?g_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Cm(t,e){return t===e||t!==t&&e!==e}var qne=Object.prototype,Wne=qne.hasOwnProperty;function o2(t,e,n){var r=t[e];(!(Wne.call(t,e)&&Cm(r,n))||n===void 0&&!(e in t))&&kb(t,e,n)}function Kne(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=void 0;c===void 0&&(c=t[a]),o?kb(n,a,c):o2(n,a,c)}return n}var nC=Math.max;function Gne(t,e,n){return e=nC(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=nC(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),Lne(t,this,a)}}function Qne(t,e){return $ne(Gne(t,e,n2),t+"")}var Yne=9007199254740991;function i2(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Yne}function Pm(t){return t!=null&&i2(t.length)&&!Lb(t)}function Xne(t,e,n){if(!ta(n))return!1;var r=typeof e;return(r=="number"?Pm(n)&&r2(e,n.length):r=="string"&&e in n)?Cm(n[e],t):!1}function Jne(t){return Qne(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,s&&Xne(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e})}var Zne=Object.prototype;function Nb(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Zne;return t===n}function ere(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var tre="[object Arguments]";function rC(t){return sc(t)&&Vl(t)==tre}var s2=Object.prototype,nre=s2.hasOwnProperty,rre=s2.propertyIsEnumerable,$y=rC((function(){return arguments})())?rC:function(t){return sc(t)&&nre.call(t,"callee")&&!rre.call(t,"callee")};function ore(){return!1}var a2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oC=a2&&typeof module=="object"&&module&&!module.nodeType&&module,ire=oC&&oC.exports===a2,iC=ire?bi.Buffer:void 0,sre=iC?iC.isBuffer:void 0,Vb=sre||ore,are="[object Arguments]",cre="[object Array]",lre="[object Boolean]",ure="[object Date]",dre="[object Error]",hre="[object Function]",fre="[object Map]",pre="[object Number]",_re="[object Object]",mre="[object RegExp]",gre="[object Set]",yre="[object String]",vre="[object WeakMap]",Ere="[object ArrayBuffer]",bre="[object DataView]",wre="[object Float32Array]",Tre="[object Float64Array]",Are="[object Int8Array]",xre="[object Int16Array]",Ire="[object Int32Array]",Rre="[object Uint8Array]",Cre="[object Uint8ClampedArray]",Pre="[object Uint16Array]",Sre="[object Uint32Array]",Tt={};Tt[wre]=Tt[Tre]=Tt[Are]=Tt[xre]=Tt[Ire]=Tt[Rre]=Tt[Cre]=Tt[Pre]=Tt[Sre]=!0;Tt[are]=Tt[cre]=Tt[Ere]=Tt[lre]=Tt[bre]=Tt[ure]=Tt[dre]=Tt[hre]=Tt[fre]=Tt[pre]=Tt[_re]=Tt[mre]=Tt[gre]=Tt[yre]=Tt[vre]=!1;function Ore(t){return sc(t)&&i2(t.length)&&!!Tt[Vl(t)]}function Fb(t){return function(e){return t(e)}}var c2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uu=c2&&typeof module=="object"&&module&&!module.nodeType&&module,Dre=Uu&&Uu.exports===c2,q0=Dre&&e2.process,pl=(function(){try{var t=Uu&&Uu.require&&Uu.require("util").types;return t||q0&&q0.binding&&q0.binding("util")}catch{}})(),sC=pl&&pl.isTypedArray,l2=sC?Fb(sC):Ore,Lre=Object.prototype,kre=Lre.hasOwnProperty;function u2(t,e){var n=wd(t),r=!n&&$y(t),o=!n&&!r&&Vb(t),i=!n&&!r&&!o&&l2(t),s=n||r||o||i,a=s?ere(t.length,String):[],c=a.length;for(var l in t)(e||kre.call(t,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||r2(l,c)))&&a.push(l);return a}function d2(t,e){return function(n){return t(e(n))}}var Nre=d2(Object.keys,Object),Vre=Object.prototype,Fre=Vre.hasOwnProperty;function Mre(t){if(!Nb(t))return Nre(t);var e=[];for(var n in Object(t))Fre.call(t,n)&&n!="constructor"&&e.push(n);return e}function Bre(t){return Pm(t)?u2(t):Mre(t)}function Ure(t){var e=[];
vendor: 5,434 bytes, line 4508
4508if(t!=null)for(var n in Object(t))e.push(n);return e}var $re=Object.prototype,jre=$re.hasOwnProperty;function Hre(t){if(!ta(t))return Ure(t);var e=Nb(t),n=[];for(var r in t)r=="constructor"&&(e||!jre.call(t,r))||n.push(r);return n}function h2(t){return Pm(t)?u2(t,!0):Hre(t)}var Td=cc(Object,"create");function zre(){this.__data__=Td?Td(null):{},this.size=0}function qre(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Wre="__lodash_hash_undefined__",Kre=Object.prototype,Gre=Kre.hasOwnProperty;function Qre(t){var e=this.__data__;if(Td){var n=e[t];return n===Wre?void 0:n}return Gre.call(e,t)?e[t]:void 0}var Yre=Object.prototype,Xre=Yre.hasOwnProperty;function Jre(t){var e=this.__data__;return Td?e[t]!==void 0:Xre.call(e,t)}var Zre="__lodash_hash_undefined__";function eoe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Td&&e===void 0?Zre:e,this}function Ka(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ka.prototype.clear=zre;Ka.prototype.delete=qre;Ka.prototype.get=Qre;Ka.prototype.has=Jre;Ka.prototype.set=eoe;function toe(){this.__data__=[],this.size=0}function Sm(t,e){for(var n=t.length;n--;)if(Cm(t[n][0],e))return n;return-1}var noe=Array.prototype,roe=noe.splice;function ooe(t){var e=this.__data__,n=Sm(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():roe.call(e,n,1),--this.size,!0}function ioe(t){var e=this.__data__,n=Sm(e,t);return n<0?void 0:e[n][1]}function soe(t){return Sm(this.__data__,t)>-1}function aoe(t,e){var n=this.__data__,r=Sm(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function hs(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}hs.prototype.clear=toe;hs.prototype.delete=ooe;hs.prototype.get=ioe;hs.prototype.has=soe;hs.prototype.set=aoe;var Ad=cc(bi,"Map");function coe(){this.size=0,this.__data__={hash:new Ka,map:new(Ad||hs),string:new Ka}}function loe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Om(t,e){var n=t.__data__;return loe(e)?n[typeof e=="string"?"string":"hash"]:n.map}function uoe(t){var e=Om(this,t).delete(t);return this.size-=e?1:0,e}function doe(t){return Om(this,t).get(t)}function hoe(t){return Om(this,t).has(t)}function foe(t,e){var n=Om(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Fl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fl.prototype.clear=coe;Fl.prototype.delete=uoe;Fl.prototype.get=doe;Fl.prototype.has=hoe;Fl.prototype.set=foe;function poe(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var f2=d2(Object.getPrototypeOf,Object),_oe="[object Object]",moe=Function.prototype,goe=Object.prototype,p2=moe.toString,yoe=goe.hasOwnProperty,voe=p2.call(Object);function Eoe(t){if(!sc(t)||Vl(t)!=_oe)return!1;var e=f2(t);if(e===null)return!0;var n=yoe.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&p2.call(n)==voe}function boe(){this.__data__=new hs,this.size=0}function woe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Toe(t){return this.__data__.get(t)}function Aoe(t){return this.__data__.has(t)}var xoe=200;function Ioe(t,e){var n=this.__data__;if(n instanceof hs){var r=n.__data__;if(!Ad||r.length<xoe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fl(r)}return n.set(t,e),this.size=n.size,this}function lc(t){var e=this.__data__=new hs(t);this.size=e.size}lc.prototype.clear=boe;lc.prototype.delete=woe;lc.prototype.get=Toe;lc.prototype.has=Aoe;lc.prototype.set=Ioe;var _2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aC=_2&&typeof module=="object"&&module&&!module.nodeType&&module,Roe=aC&&aC.exports===_2,cC=Roe?bi.Buffer:void 0,lC=cC?cC.allocUnsafe:void 0;function m2(t,e){if(e)return t.slice();var n=t.length,r=lC?lC(n):new t.constructor(n);return t.copy(r),r}function Coe(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function Poe(){return[]}var Soe=Object.prototype,Ooe=Soe.propertyIsEnumerable,uC=Object.getOwnPropertySymbols,Doe=uC?function(t){return t==null?[]:(t=Object(t),Coe(uC(t),function(e){return Ooe.call(t,e)}))}:Poe;function Loe(t,e,n){var r=e(t);return wd(t)?r:poe(r,n(t))}function koe(t){return Loe(t,Bre,Doe)}var jy=cc(bi,"DataView"),Hy=cc(bi,"Promise"),zy=cc(bi,"Set"),dC="[object Map]",Noe="[object Object]",hC="[object Promise]",fC="[object Set]",pC="[object WeakMap]",_C="[object DataView]",Voe=ac(jy),Foe=ac(Ad),Moe=ac(Hy),Boe=ac(zy),Uoe=ac(Uy),ki=Vl;(jy&&ki(new jy(new ArrayBuffer(1)))!=_C||Ad&&ki(new Ad)!=dC||Hy&&ki(Hy.resolve())!=hC||zy&&ki(new zy)!=fC||Uy&&ki(new Uy)!=pC)&&(ki=function(t){var e=Vl(t),n=e==Noe?t.constructor:void 0,r=n?ac(n):"";if(r)switch(r){case Voe:return _C;case Foe:return dC;case Moe:return hC;case Boe:return fC;case Uoe:return pC}return e});var $oe=Object.prototype,joe=$oe.hasOwnProperty;function Hoe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&joe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var mC=bi.Uint8Array;function Mb(t){var e=new t.constructor(t.byteLength);return new mC(e).set(new mC(t)),e}function zoe(t,e){var n=Mb(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var qoe=/\w*$/;function Woe(t){var e=new t.constructor(t.source,qoe.exec(t));return e.lastIndex=t.lastIndex,e}
4508var gC=fl?fl.prototype:void 0,yC=gC?gC.valueOf:void 0;function Koe(t){return yC?Object(yC.call(t)):{}}function g2(t,e){var n=e?Mb(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Goe="[object Boolean]",Qoe="[object Date]",Yoe="[object Map]",Xoe="[object Number]",Joe="[object RegExp]",Zoe="[object Set]",eie="[object String]",tie="[object Symbol]",nie="[object ArrayBuffer]",rie="[object DataView]",oie="[object Float32Array]",iie="[object Float64Array]",sie="[object Int8Array]",aie="[object Int16Array]",cie="[object Int32Array]",lie="[object Uint8Array]",uie="[object Uint8ClampedArray]",die="[object Uint16Array]",hie="[object Uint32Array]";function fie(t,e,n){var r=t.constructor;switch(e){case nie:return Mb(t);case Goe:case Qoe:return new r(+t);case rie:return zoe(t);case oie:case iie:case sie:case aie:case cie:case lie:case uie:case die:case hie:return g2(t,n);case Yoe:return new r;case Xoe:case eie:return new r(t);case Joe:return Woe(t);case Zoe:return new r;case tie:return Koe(t)}}function y2(t){return typeof t.constructor=="function"&&!Nb(t)?Dne(f2(t)):{}}var pie="[object Map]";function _ie(t){return sc(t)&&ki(t)==pie}var vC=pl&&pl.isMap,mie=vC?Fb(vC):_ie,gie="[object Set]";function yie(t){return sc(t)&&ki(t)==gie}var EC=pl&&pl.isSet,vie=EC?Fb(EC):yie,Eie=1,v2="[object Arguments]",bie="[object Array]",wie="[object Boolean]",Tie="[object Date]",Aie="[object Error]",E2="[object Function]",xie="[object GeneratorFunction]",Iie="[object Map]",Rie="[object Number]",b2="[object Object]",Cie="[object RegExp]",Pie="[object Set]",Sie="[object String]",Oie="[object Symbol]",Die="[object WeakMap]",Lie="[object ArrayBuffer]",kie="[object DataView]",Nie="[object Float32Array]",Vie="[object Float64Array]",Fie="[object Int8Array]",Mie="[object Int16Array]",Bie="[object Int32Array]",Uie="[object Uint8Array]",$ie="[object Uint8ClampedArray]",jie="[object Uint16Array]",Hie="[object Uint32Array]",Et={};Et[v2]=Et[bie]=Et[Lie]=Et[kie]=Et[wie]=Et[Tie]=Et[Nie]=Et[Vie]=Et[Fie]=Et[Mie]=Et[Bie]=Et[Iie]=Et[Rie]=Et[b2]=Et[Cie]=Et[Pie]=Et[Sie]=Et[Oie]=Et[Uie]=Et[$ie]=Et[jie]=Et[Hie]=!0;Et[Aie]=Et[E2]=Et[Die]=!1;function lp(t,e,n,r,o,i){var s,a=e&Eie;if(s!==void 0)return s;if(!ta(t))return t;var c=wd(t);if(c)s=Hoe(t);else{var l=ki(t),u=l==E2||l==xie;if(Vb(t))return m2(t,a);if(l==b2||l==v2||u&&!o)s=u?{}:y2(t);else{if(!Et[l])return o?t:{};s=fie(t,l,a)}}i||(i=new lc);var d=i.get(t);if(d)return d;i.set(t,s),vie(t)?t.forEach(function(m){s.add(lp(m,e,n,m,t,i))}):mie(t)&&t.forEach(function(m,y){s.set(y,lp(m,e,n,y,t,i))});var f=koe,_=c?void 0:f(t);return jne(_||t,function(m,y){_&&(y=m,m=t[y]),o2(s,y,lp(m,e,n,y,t,i))}),s}var zie=1,qie=4;function W0(t){return lp(t,zie|qie)}function Wie(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),a=s.length;a--;){var c=s[++o];if(n(i[c],c,i)===!1)break}return e}}var Kie=Wie();function qy(t,e,n){(n!==void 0&&!Cm(t[e],n)||n===void 0&&!(e in t))&&kb(t,e,n)}function Gie(t){return sc(t)&&Pm(t)}function Wy(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Qie(t){return Kne(t,h2(t))}function Yie(t,e,n,r,o,i,s){var a=Wy(t,n),c=Wy(e,n),l=s.get(c);if(l){qy(t,n,l);return}var u=i?i(a,c,n+"",t,e,s):void 0,d=u===void 0;if(d){var f=wd(c),_=!f&&Vb(c),m=!f&&!_&&l2(c);u=c,f||_||m?wd(a)?u=a:Gie(a)?u=kne(a):_?(d=!1,u=m2(c,!0)):m?(d=!1,u=g2(c,!0)):u=[]:Eoe(c)||$y(c)?(u=a,$y(a)?u=Qie(a):(!ta(a)||Lb(a))&&(u=y2(c))):d=!1}d&&(s.set(c,u),o(u,c,r,i,s),s.delete(c)),qy(t,n,u)}function w2(t,e,n,r,o){t!==e&&Kie(e,function(i,s){if(o||(o=new lc),ta(i))Yie(t,e,s,n,w2,r,o);else{var a=r?r(Wy(t,s),i,s+"",t,e,o):void 0;a===void 0&&(a=i),qy(t,s,a)}},h2)}var ef=Jne(function(t,e,n){w2(t,e,n)});const Bb=()=>({getTrackerName:yN,getSDKVersion:xN,analytics:IN,initialized:Dy,initializing:!1,getConfig:AN,getCerebroId:__,sendEvent:$c,sendUserEvent:bN,setCerebroId:vN,isInitialized:Dy,enableAutoTracking:wN,disableAutoTracking:TN,getSessionId:EN});function Xie(t){return{privacy_policy:t.privacy,privacy_policy_tr:t.privacy,terms:t.terms,terms_tr:t.terms,app_share_url:t.share_app_url,instagram_web_url:t.ig_web,instagram_app_url:t.ig_app,twitter_web_url:t.twitter_web,twitter_app_url:t.twitter_app,tiktok_web_url:"",tiktok_app_url:"",facebook_web_url:"",facebook_app_url:"",codeway_web_url:"",codeway_app_url:"",support_mail_address:t.support_mail,i
4508os_store_page_url:t.store_ios,android_store_page_url:t.store_android,ios_rate_page_url:t.rate_ios,android_rate_page_url:t.rate_android,app_store_id:t.store_id_ios,google_play_id:t.store_id_android,faq_app_store_refund_url:t.faq_ios_refund,faq_play_store_refund_url:t.faq_android_refund}}function lu(t,e,n){if(typeof t=="string")try{return JSON.parse(t)}catch(r){return console.error(`[ConfigStore] Error parsing ${n}:`,r),e}return t}const tf={welcome:{title:"Welcome to",brand:"Magic Retake",subtitle:"Explore now your different versions!",startButton:"Start Now"},purpose:{question:"I want Magic Retakes for..",options:{entertainment:"ð Entertainment",socialMedia:"ð± Social Media",portrait:"ð¸ Portrait (ID Photo)",business:"ð¼ Business"},continueButton:"Continue"},photoUpload:{heading:"Try our AI on your photos",uploadTips:{heading:"Tips for good results",description:"Only one subject in the photo, face clearly showed and bright enough"},statusTexts:{needMore:"Upload {min} to {max} more photos (need {total} total).",canAddMore:"You have {current} photos. You can add up to {remaining} more.",atMaximum:"You've uploaded the maximum {max} photos.",loading:"Loading your photos...",error:"Error loading photos: {error}. Please try going back or refreshing.",redirecting:"Minimum photos uploaded. Redirecting to review..."},buttons:{uploading:"Uploading...",next:"Next",uploadMore:"Upload {count} more"}},photoReview:{heading:"Nice! Tell us more while AI works its magic â¨",subtitle:"A few quick questions to craft AI on your preferences and needs ð§",loading:"Loading your images...",error:"Error loading images: {error}. Please try refreshing.",buttons:{back:"Back",next:"Next",needMore:"Need {count} more"}},photoEditingPreference:{question:"I don't like it when photos look fake or too edited ð§âð»",subtitle:"How much do you agree with this statement?",scaleOptions:{stronglyDisagree:"ð",disagree:"ð",neutral:"ð¤·ââï¸",agree:"ð",stronglyAgree:"ð"}},agreement:{title:"We agree",emoji:"ð¤",subtitle:"Our cutting-edge technology ensures realistic results that are never too fake!",nextButton:"Next"},photoStyle:{question:"What's your pictures' vibe?",options:{quirky:"𤪠Quirky, I like to keep it fun",professional:"ð¨âð¼ Serious and professional",glamorous:"ð Stylish and glamorous"},continueButton:"Continue"},styleFlows:{fun:{intro:{title:"We have plenty of quirky content for you!",emoji:"ð¨âð¤",subtitle:"Go on and tell us what you like",nextButton:"Next"},evaluation:{question:`Check out this edit! ð 4509Yay or nay?`,yesButton:"Yes",noButton:"No"},filters:{heading:"Select the filters you like",options:{y2k:"ð Y2K",costumes:"ð¤ Costumes",halloween:"ð Halloween",summerVibes:"âï¸ Summer Vibes"},continueButton:"Continue"}},serious:{intro:{title:"Serious and professional?",emoji:"ð¨âð¼",subtitle:"Go on and tell us what you like",nextButton:"Next"},evaluation:{question:`Check out this edit! ð 4510Yay or nay?`,yesButton:"Yes",noButton:"No"},filters:{heading:"Select the filters you like",options:{oldMoney:"âï¸ Old Money",linkedin:"ð LinkedIn",business:"ð¼ Business",trending:"ð Trending"},continueButton:"Continue"}},stylish:{intro:{title:"We have plenty of glam content for you! ",emoji:"ð¨â",subtitle:"Go on and tell us what you like",nextButton:"Next"},evaluation:{question:`Check out this edit! ð 4511Yay or nay?`,yesButton:"Yes",noButton:"No"},filters:{heading:"Select the filters you like",options:{hot:"ð¥ Hot",travel:"ð Travel",cosyDay:"ð Cosy Day",beachTime:"ðï¸ Beach Time"},continueButton:"Continue"}}},signup:{initial:{title:"Your flair is unmatched!",subtitle:"Our AI definitely knows better. You're ready to know why millions like you choose Magic Retake ð¤©",button:"Let's Go!"},delayed:{title:"Welcome to Magic Retake!",subtitle:"We're so excited to have you here. Let's get started!",button:"Start Magic Retake"},success:{title:"Sign up Successful!",subtitle:"Please wait while we set up your account..."}},experience:{heading:"Creating your experience...",tasks:{preferences:"ð§© Adjust Preferences",aiModels:"ð¤ Defining AI Models",filters:"⨠Fine-tuning our filters"},letsGoButton:"Let's Go!"},payment:{discountBanner:"51% discount",heading:"People love the MagicRetake app",subtitle:"Become a member of our global community of million people"},congratulations:{badge:"MAGIC PRO",subtitle:"Welcome to Magicretake",heading:"What you need to do now",instructions:{step1:"Download the app tapping on our linksð",step2:"Download the app tapping on our linksð",step3:`You'll se a popup saying "Congratulations!" Your offer has been redeemed: let's start using Magicretake! Tap on "Let's Go!" and you're all set ð`},buttons:{downloadMagicLink:"Download Magic Link",letsGo:"Let's Go!"},popup:{title:"Congratulations!",message:"You are now a Pro member, enjoy access to all features of Retake."},separator:"or"},common:{header:"MagicRetake®",loading:"Loading your data...",tryAgainButton:"Try Again",stepIndicator:"Step {current} of {total}",errorNotFound:"Step not found"}},Oi=hm("configuration",()=>{const t=Te({experiments:[],isl_keys:"",metadata:{}}),e=xe(()=>t.value.url_params),n=xe(()=>t.value.pricing_catalog),r=xe(()=>t.value.active_pricing),o=xe(()=>t.value.onboarding_config),i=xe(()=>
4511t.value.user_location),s=Te(!0),a=Te("emailPassword"),c=Bb(),l={ENABLE_UPLOADS:"magicretake_enable_uploads",ONBOARDING_TEXTS:"magicretake_onboarding_texts"},u=Te(null),d=Te(null),f=Te(!1),_=xe(()=>o.value?.enableUploads??!1),m=xe(()=>t.value.user_location?.country??""),y=xe(()=>t.value.user_location?.city??""),v=xe(()=>t.value.user_location?.region??""),T=xe(()=>t.value.active_pricing?.paywall_version??1),w=xe(()=>o.value?.minImages??4),g=xe(()=>o.value?.maxImages??9),E=xe(()=>{let x=W0(tf);return f.value&&t.value.onboarding_config?.texts&&(console.log("[ConfigStore] Merging remote config texts:",t.value.onboarding_config.texts),x=ef(x,t.value.onboarding_config.texts)),d.value&&(console.log("[ConfigStore] Merging local storage texts:",d.value),x=ef(x,d.value)),console.log("[ConfigStore] Final onboarding texts:",x),console.log("[ConfigStore] useRemoteConfigTexts enabled:",f.value),x});return{appConfig:t,url_params:e,pricing_catalog:n,active_pricing:r,onboarding_config:o,user_location:i,fetchConfig:async()=>{try{const x=await c.getConfig();if(console.log("[ConfigStore] Raw Configuration:",x),console.log("[ConfigStore] Raw onboarding_config:",x.onboarding_config),t.value={experiments:[],isl_keys:"",metadata:{}},x.url_params){const S=lu(x.url_params,{},"url_params");t.value.url_params=Xie(S)}if(x.pricing_catalog&&(t.value.pricing_catalog=lu(x.pricing_catalog,[],"pricing_catalog")),x.active_pricing&&(t.value.active_pricing=lu(x.active_pricing,{},"active_pricing")),x.onboarding_config){const S=lu(x.onboarding_config,{enableUploads:!1,minImages:4,maxImages:9},"onboarding_config");if(S.texts)S.texts=lu(S.texts,tf,"onboarding_texts");else if(S.title||S.brand||S.subtitle||S.startButton){console.log("[ConfigStore] Detected flat onboarding config structure, restructuring...");const O={...S};delete O.enableUploads,delete O.minImages,delete O.maxImages,S.texts=ef(W0(tf),{welcome:O}),delete S.title,delete S.brand,delete S.subtitle,delete S.startButton}console.log("[ConfigStore] Final parsed onboarding config:",S),t.value.onboarding_config=S}(x._city||x._country||x._region)&&(t.value.user_location={city:x._city||"",country:x._country||"",region:x._region||""}),t.value.experiments=x.considered_experiments||[],t.value.isl_keys=x.isl_keys||"";const D=["url_params","pricing_catalog","active_pricing","onboarding_config","considered_experiments","isl_keys","_city","_country","_region","hello"];return t.value.metadata=Object.keys(x).filter(S=>!D.includes(S)).reduce((S,O)=>({...S,[O]:x[O]}),{}),console.log("[ConfigStore] Parsed Configuration:",{active_pricing:t.value.active_pricing,pricing_catalog:t.value.pricing_catalog?.length,url_params:t.value.url_params,onboarding_config:t.value.onboarding_config,user_location:t.value.user_location,experiments_count:t.value.experiments.length,metadata_keys:Object.keys(t.value.metadata)}),x}catch(x){throw console.error("[ConfigStore] Error fetching configuration:",x),x}},setOnboardingTexts:x=>{d.value=ef(W0(d.value||tf),x),localStorage.setItem(l.ONBOARDING_TEXTS,JSON.stringify(d.value))},resetOnboardingTexts:()=>{d.value=null,localStorage.removeItem(l.ONBOARDING_TEXTS)},clearAllLocalStorage:()=>{localStorage.removeItem(l.ONBOARDING_TEXTS),localStorage.removeItem(l.ENABLE_UPLOADS),d.value=null,u.value=null,console.log("[ConfigStore] Cleared all localStorage")},setUseRemoteConfigTexts:x=>{f.value=x,console.log("[ConfigStore] useRemoteConfigTexts set to:",x)},magicLinkEnabled:s,loginMethod:a,isUploadEnabled:_,userCountry:m,userCity:y,userRegion:v,selectedPricingVersion:T,minImages:w,maxImages:g,onboardingTexts:E,useRemoteConfigTexts:f}}),T2=hm("marketing-onboarding",()=>{const t=Te(0),e=Te("default"),n=12,r={ONBOARDING_DATA:"magicretake_onboarding_data",LOCAL_IMAGES:"magicretake_local_images"},o=Te({selectedPurposes:[],frequency:void 0,uploadedImageData:[],uploadedImageUrls:[],photoEditingPreference:null,photoStyle:null,selectedFilters:[],editFeedback:{},experienceAnswers:{adjustPreferences:!1,advancedAiModels:!1,selfReflection:!1}}),i=Te(!1),s=Te(null),a=Te(!1),c=Te(null),l=xe(()=>{const K=Math.min(t.value,n);return Math.round(K/n*100)}),u=xe(()=>f[Math.min(t.value,f.length-1)]||"/welcome"),d=xe(()=>t.value===n),f=["/welcome","/welcome/1","/welcome/2","/welcome/3","/welcome/4","/welcome/5","/welcome/signup","/welcome/experience","/welcome/payment","/welcome/congratulations"],_={afterPreference:K=>parseInt(K)>=4?"/welcome/agree":"/welcome/5",afterStyle:K=>
4511({quirky:"/welcome/fun",professional:"/welcome/serious",glamorous:"/welcome/stylish"})[K]||"/welcome/serious",afterStyleIntro:K=>({fun:"/welcome/fun-3",serious:"/welcome/serious-3",stylish:"/welcome/stylish-3"})[K]||"/welcome/serious-3"},m=Te(null),y=K=>{m.value=K,console.log(`[OnboardingStore] Current step ID set to: ${K}`)},v=K=>!m.value||!K?null:K.find(pe=>pe.id===m.value),T=(K,pe)=>{const k=pe.find(F=>F.id===K);return k?(y(K),k.routePath):(console.warn(`[OnboardingStore] Step with ID '${K}' not found in configuration`),null)},w=()=>t.value<f.length-1?(t.value++,console.log(`[OnboardingStore] Stepped forward to: ${t.value}`),!0):(console.log(`[OnboardingStore] Already at or beyond last step: ${t.value}`),!1),g=()=>t.value>0?(t.value--,console.log(`[OnboardingStore] Stepped back to: ${t.value}`),!0):(console.log(`[OnboardingStore] Already at first step: ${t.value}`),!1),E=K=>K>=0&&K<f.length?(t.value=K,console.log(`[OnboardingStore] Step set to: ${t.value}`),!0):(console.warn(`[OnboardingStore] Attempted to set invalid step: ${K}`),!1),C=()=>(w(),f[t.value]||"/welcome"),L=K=>{if(K==="/welcome/4")return _.afterPreference(o.value.photoEditingPreference||"3");if(K==="/welcome/agree")return"/welcome/5";if(K==="/welcome/5")return _.afterStyle(o.value.photoStyle||"professional");if(K==="/welcome/fun")return"/welcome/fun-1";if(K==="/welcome/serious")return"/welcome/serious-1";if(K==="/welcome/stylish")return"/welcome/stylish-1";if(K.includes("fun-1"))return"/welcome/fun-2";if(K.includes("fun-2"))return"/welcome/fun-3";if(K.includes("serious-1"))return"/welcome/serious-2";if(K.includes("serious-2"))return"/welcome/serious-3";if(K.includes("stylish-1"))return"/welcome/stylish-2";if(K.includes("stylish-2"))return"/welcome/stylish-3";if(K.includes("-3"))return"/welcome/signup";const pe=f.findIndex(k=>k===K);return pe>=0&&pe<f.length-1?f[pe+1]:"/welcome"},A=K=>{if(K==="/welcome/agree")return"/welcome/4";if(K==="/welcome/fun"||K==="/welcome/serious"||K==="/welcome/stylish")return"/welcome/5";if(K.includes("fun")||K.includes("serious")||K.includes("stylish")){if(K.includes("-3"))return K.replace("-3","-2");if(K.includes("-2"))return K.replace("-2","-1");if(K.includes("-1"))return K.replace("-1","")}const pe=f.findIndex(k=>k===K);return pe>0?f[pe-1]:"/welcome"},I=K=>{o.value.selectedPurposes=K,Oi().isUploadEnabled||le()},R=K=>{o.value.frequency=K,Oi().isUploadEnabled||le()},x=K=>{o.value.photoEditingPreference=K,Oi().isUploadEnabled||le()},D=K=>{o.value.photoStyle=K,Oi().isUploadEnabled||le()},S=K=>{o.value.selectedFilters=K,Oi().isUploadEnabled||le()},O=(K,pe)=>{K in o.value?o.value[K]=pe:console.warn(`[OnboardingStore] Unknown answer key: ${K}`)},ae=K=>{const k=!Oi().isUploadEnabled,F=K.map(G=>k?{id:G.id,imageUrl:G.url,originalFilename:G.name,storagePath:G.storagePath,uploadedAt:new Date().toISOString(),contentType:"image/jpeg",userId:o.value.userId||__()||"",isLocal:!0}:{id:G.id,imageUrl:G.url,originalFilename:G.name,storagePath:G.storagePath,uploadedAt:new Date().toISOString()}),$=new Set(o.value.uploadedImageData.map(G=>G.id)),se=F.filter(G=>!$.has(G.id));se.length>0?(o.value.uploadedImageData=[...o.value.uploadedImageData,...se],o.value.uploadedImageData.sort((G,N)=>new Date(N.uploadedAt).getTime()-new Date(G.uploadedAt).getTime()),o.value.uploadedImageUrls=o.value.uploadedImageData.map(G=>G.imageUrl),console.log(`[OnboardingStore] Added ${se.length} new images (${k?"local":"cloud"} mode).`),k&&le()):console.log("[OnboardingStore] No unique new images to add.")},le=()=>{try{const K=o.value.uploadedImageData.filter(k=>"isLocal"in k&&k.isLocal===!0);if(K.length>0){const k=K.map(F=>({id:F.id,originalFilename:F.originalFilename,storagePath:F.storagePath,uploadedAt:F.uploadedAt,contentType:F.contentType,userId:F.userId,isLocal:!0,hadBase64Data:!0}));try{localStorage.setItem(r.LOCAL_IMAGES,JSON.stringify(k)),console.log(`[OnboardingStore] Saved ${k.length} local image metadata to localStorage`)}catch{console.warn("[OnboardingStore] localStorage quota exceeded, attempting cleanup..."),localStorage.removeItem(r.LOCAL_IMAGES),localStorage.setItem(r.LOCAL_IMAGES,JSON.stringify(k))}K.forEach(F=>{try{const $=F.imageUrl.length*2;$<500*1024?(localStorage.setItem(`magicretake_image_${F.id}`,F.imageUrl),console.log(`[OnboardingStore] Stored compressed image ${F.id} (${($/1024).toFixed(1)}KB)`)):console.warn(`[OnboardingStore] Image ${F.id} too large for localStorage (${($/1024).toFixed(1)}KB)`)}catch($){console.warn(`[OnboardingStore] Could not store image ${F.id} in localStorage:`,$)}})}const pe={selectedPurposes:o.value.selectedPurposes,photoEditingPreference:o.value.photoEditingPreference,photoStyle:o.value.photoStyle,selectedFilters:o.value.selectedFilters,editFeedback:o.value.editFeedback,experienceAnswers:o.value.experienceAnswers,frequency:o.value.frequency,userId:o.value.userId,lastUpdated:new Date().toISOString()};localStorage.setItem(r.ONBOARDING_DATA,JSON.stringify(pe))}catch(K){console.error("[OnboardingStore] Error saving to localStorage:",K
4511)}},B=()=>{try{const K=localStorage.getItem(r.LOCAL_IMAGES);if(K){const k=JSON.parse(K);console.log(`[OnboardingStore] Found ${k.length} local image metadata in localStorage`);const F=k.map(G=>{let N=localStorage.getItem(`magicretake_image_${G.id}`);if(!N&&(N=sessionStorage.getItem(`magicretake_image_${G.id}`),N)){console.log(`[OnboardingStore] Found image ${G.id} in sessionStorage, migrating to localStorage`);try{localStorage.setItem(`magicretake_image_${G.id}`,N),sessionStorage.removeItem(`magicretake_image_${G.id}`)}catch{console.warn(`[OnboardingStore] Could not migrate image ${G.id} to localStorage`)}}return N?{...G,imageUrl:N}:(console.warn(`[OnboardingStore] Base64 data not found for image ${G.id}`),{...G,imageUrl:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9IjUwIiB5PSI1MCIgc3R5bGU9ImZpbGw6I2FhYTtmb250LXdlaWdodDpib2xkO2ZvbnQtc2l6ZToxMnB4O2ZvbnQtZmFtaWx5OkFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmO2RvbWluYW50LWJhc2VsaW5lOmNlbnRyYWwiPkltYWdlPC90ZXh0Pjwvc3ZnPg=="})}).filter(G=>G!==null);console.log(`[OnboardingStore] Reconstructed ${F.length} local images`);const $=new Set(o.value.uploadedImageData.map(G=>G.id)),se=F.filter(G=>!$.has(G.id));se.length>0&&(o.value.uploadedImageData=[...o.value.uploadedImageData,...se],o.value.uploadedImageUrls=o.value.uploadedImageData.map(G=>G.imageUrl))}const pe=localStorage.getItem(r.ONBOARDING_DATA);if(pe){const k=JSON.parse(pe);Object.assign(o.value,k),console.log("[OnboardingStore] Loaded onboarding data from localStorage")}}catch(K){console.error("[OnboardingStore] Error loading from localStorage:",K)}},j=()=>{try{localStorage.removeItem(r.LOCAL_IMAGES),localStorage.removeItem(r.ONBOARDING_DATA);const K=[];for(let k=0;k<localStorage.length;k++){const F=localStorage.key(k);F&&F.startsWith("magicretake_image_")&&K.push(F)}K.forEach(k=>localStorage.removeItem(k));const pe=[];for(let k=0;k<sessionStorage.length;k++){const F=sessionStorage.key(k);F&&F.startsWith("magicretake_image_")&&pe.push(F)}pe.forEach(k=>sessionStorage.removeItem(k)),console.log(`[OnboardingStore] Cleared localStorage (${K.length} images) and sessionStorage (${pe.length} images)`)}catch(K){console.error("[OnboardingStore] Error clearing storage:",K)}},H=K=>{const pe=o.value.uploadedImageData.length,k=o.value.uploadedImageData.find(F=>F.id===K);if(o.value.uploadedImageData=o.value.uploadedImageData.filter(F=>F.id!==K),o.value.uploadedImageData.length<pe){if(o.value.uploadedImageUrls=o.value.uploadedImageData.map(F=>F.imageUrl),console.log(`[OnboardingStore] Removed image data with ID: ${K}`),k&&"isLocal"in k&&k.isLocal){try{localStorage.removeItem(`magicretake_image_${K}`),console.log(`[OnboardingStore] Removed image from localStorage: ${K}`),sessionStorage.removeItem(`magicretake_image_${K}`)}catch(F){console.warn("[OnboardingStore] Error removing image from storage:",F)}le()}}else console.warn(`[OnboardingStore] Image data with ID ${K} not found for removal.`)},ce=async()=>{const K=XR.getCerebroId();if(!K){s.value="User not identified.",console.error(`[OnboardingStore] ${s.value}`);return}if(i.value)return;i.value=!0,s.value=null,console.log(`[OnboardingStore] Fetching data for user: ${K}...`);const pe=al();try{const k=await $fetch("/api/onboarding/get-onboarding-data",{method:"GET",query:{userId:K}});console.log("[OnboardingStore] Data fetched successfully:",k),console.log("ð ~ answers.value:",o.value),console.log("ð ~ response:",k),o.value={...o.value,uploadedImageData:k.personaImages||[],uploadedImageUrls:k.personaImages?.map(F=>F.imageUrl).filter(Boolean)||[],selectedPurposes:k.userData?.selectedPurposes||[],frequency:k.userData?.frequency,photoEditingPreference:k.userData?.photoEditingPreference||null,photoStyle:k.userData?.photoStyle||null,selectedFilters:k.userData?.selectedFilters||[],editFeedback:k.userData?.editFeedback||{},experienceAnswers:k.userData?.experienceAnswers||{adjustPreferences:null,advancedAiModels:null,selfReflection:null},lastUpdated:k.userData?.lastUpdated,userId:K},o.value.uploadedImageData.sort((F,$)=>new Date($.uploadedAt).getTime()-new Date(F.uploadedAt).getTime()),pe.setOnboardingData(k)}catch(k){console.error("[OnboardingStore] Error fetching onboarding data:",k),s.value=k.data?.message||k.message||"Failed to load onboarding data.",o.value.uploadedImageData=[],o.value.uploadedImageUrls=[]}finally{i.value=!1}},ue=async K=>{const pe=o.value.userId||XR.getCerebroId();if(!pe){c.value="User not identified.",console.error(`[OnboardingStore] ${c.value}`);return}if(a.value)return;a.value=!0,c.value=null;
4511const k={...K};k.uploadedImagesData&&(k.uploadedImagesData=k.uploadedImagesData.map(F=>F.imageUrl.startsWith("data:")||F.id.startsWith("local_")?{...F,imageUrl:"local://placeholder",isLocal:!0}:F)),console.log(`[OnboardingStore] Saving user data for ${pe}:`,k);try{await $fetch("/api/onboarding/save-user-data",{method:"POST",body:{userId:pe,...k}}),console.log(`[OnboardingStore] User data saved successfully for ${pe}.`),o.value.lastUpdated=new Date().toISOString()}catch(F){console.error(`[OnboardingStore] Error saving user data for ${pe}:`,F),c.value=F.data?.message||F.message||"Failed to save data."}finally{a.value=!1}},W=K=>{e.value=K},J=()=>e.value,ee=async(K,pe={})=>{const k=t.value;__()||o.value.userId;const $=Oi().onboardingTexts,G={welcome:{questions:""},purpose:{questions:$.purpose.question},upload_photos:{questions:$.photoUpload.heading},review_photos:{questions:$.photoReview.heading},photo_editing_preference:{questions:$.photoEditingPreference.question},photo_style:{questions:$.photoStyle.question},agreement_confirmation:{questions:$.agreement.title},fun_intro:{questions:$.styleFlows.fun.intro.title},serious_intro:{questions:$.styleFlows.serious.intro.title},stylish_intro:{questions:$.styleFlows.stylish.intro.title},fun_filters:{questions:$.styleFlows.fun.filters.heading},serious_filters:{questions:$.styleFlows.serious.filters.heading},stylish_filters:{questions:$.styleFlows.stylish.filters.heading},signup_info:{questions:$.signup.initial.title},signup_form:{questions:$.signup.delayed.title},experience_creation:{questions:$.experience.heading},payment:{questions:$.payment.heading},congratulations:{questions:$.congratulations.heading}}[K]||{};try{await $c({eventName:Tf.PAGE_DISPLAYED,eventGroup:"web2app",properties:{page_name:K,page_number:k,quiz_id:J(),page_language:"en",questions:G.questions||"",...pe}}),console.log(`[OnboardingStore] Tracked PAGE_DISPLAYED for ${K}`)}catch(N){console.error("[OnboardingStore] Failed to track page displayed:",N)}},ne=async(K,pe={})=>{const k=t.value;try{await $c({eventName:Tf.PAGE_COMPLETED,eventGroup:"web2app",properties:{page_name:K,page_number:k,quiz_id:J(),page_language:"en",input_format:"button",...pe}}),console.log(`[OnboardingStore] Tracked PAGE_COMPLETED for ${K}`)}catch(F){console.error("[OnboardingStore] Failed to track page completed:",F)}},q=Te(!1),be=async(K,pe,k={})=>{if(q.value)return console.warn("[OnboardingStore] Navigation already in progress"),!1;try{q.value=!0,await ne(K,k);const F=L(pe);return await JR(F),!0}catch(F){return console.error("[OnboardingStore] Navigation failed:",F),Rs.error("Failed to continue. Please try again."),!1}finally{q.value=!1}},Y=async K=>{if(q.value)return console.warn("[OnboardingStore] Navigation already in progress"),!1;try{q.value=!0;const pe=A(K);return await JR(pe),!0}catch(pe){return console.error("[OnboardingStore] Navigation failed:",pe),Rs.error("Failed to go back. Please try again."),!1}finally{q.value=!1}},ie=(K,pe=4)=>{switch(K){case"purpose":if(!o.value.selectedPurposes?.length)return{isValid:!1,error:"Please select at least one purpose"};break;case"upload":if((o.value.uploadedImageData?.length||0)<pe)return{isValid:!1,error:`Please upload at least ${pe} photos`};break;case"preference":if(!o.value.photoEditingPreference)return{isValid:!1,error:"Please select your editing preference"};break;case"style":if(!o.value.photoStyle)return{isValid:!1,error:"Please select a photo style"};break;case"filters":if(!o.value.selectedFilters?.length)return{isValid:!1,error:"Please select at least one filter"};break}return{isValid:!0}},he=async(K,pe=!1)=>{let k=0;const F=3,$=[1e3,2e3,4e3];for(;k<F;)try{await ue(K),pe&&Rs.success("Progress saved");return}catch(se){if(k++,k<F)console.log(`[OnboardingStore] Retrying save (attempt ${k+1}/${F})...`),await new Promise(G=>setTimeout(G,$[k-1]));else throw console.error("[OnboardingStore] Failed to save after retries:",se),Rs.error("Failed to save progress. Please try again."),se}},ge=async(K,pe="cloud")=>{try{await $c({eventName:Tf.IMAGE_DELETED,eventGroup:"web2app",properties:{page_name:"review_photos",page_number:t.value,quiz_id:J(),image_id:K,image_type:pe,remaining_photos:(o.value.uploadedImageData?.length||1)-1}}),H(K),await he({uploadedImagesData:o.value.uploadedImageData}),Rs.success("Photo removed")}catch(k){console.error("[OnboardingStore] Failed to delete image:",k),Rs.error("Failed to remove photo")}};return B(),{step:t,answers:o,isLoadingData:i,fetchError:s,isSavingData:a,saveError:c,isNavigating:q,totalSteps:n,progress:l,currentRoute:u,isLastOnboardingStep:d,nextStep:w,previousStep:g,setStep:E,navigateToNextStep:C,getNextRoute:L,getPreviousRoute:A,navigateNext:be,navigatePrevious:Y,currentStepId:m,setCurrentStepById:y,getCurrentStepConfig:v,navigateToStepById:T,updatePurposes:I,updateFrequency:R,updatePhotoEditingPreference:x,updatePhotoStyle:D,updateSelectedFilters:S,updateAnswer:O,addUploadedImagesData:ae,removeImageData:H,fetchOnboardingData:ce,saveUserData:ue,saveUserDataWithRetry:he,setQuizId:W,getQuizId:J,trackPageDisplayed:ee,trackPageCompleted:ne,validateCurrentStep:ie,handleImageDelete:ge,saveLocalImagesToStorage:le,loadLocalImagesFromStorage:B,clearLocalStorage:j}}),Rce=Object.freeze(Object.defineProperty({__proto__:null,useOnboardingStore:T2},Symbol.toStringTag,{value:"Module"})),Jie=$t(t=>{const e=ij(),n=T2(),r=o=>o.name&&o.name.split("___")[0]?o.name.split("___")[0]:o.fullPath;e.afterEach((o,i)=>{$c({eventName:"web_page_open",properties:{source:r(i)||"",fullPath:o.fullPath,path:o.path,page_language:o.name?.toString().split("___")[1]||"en",quiz_id:n.getQuizId()}})})});var Dm=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zie={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},ese=class{#e=Zie;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Ky=new ese;function tse(t){setTimeout(t,0)}var sh=typeof window>"u"||"Deno"in globalThis;function er(){}function nse(t,e){return typeof t=="function"?t(e):t}function rse(t){return typeof t=="number"&&t>=0&&t!==1/0}function ose(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Gy(t,e){return typeof t=="function"?t(e):t}function ise(t,e){return typeof t=="function"?t(e):t}function bC(t,e){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=t;if(s){if(r){if(e.queryHash!==Ub(s,e.options))return!1}else if(!Id(e.queryKey,s))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||o&&o!==e.state.fetchStatus||i&&!i(e))}function wC(t,e){const{exact:n,status:r,predicate:o,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(xd(e.options.mutationKey)!==xd(i))return!1}else if(!Id(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function Ub(t,e){return(e?.queryKeyHashFn||xd)(t)}function xd(t){return JSON.stringify(t,(e,n)=>Qy(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Id(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Id(t[n],e[n])):!1}var sse=Object.prototype.hasOwnProperty;function A2(t,e){if(t===e)return t;const n=TC(t)&&TC(e);if(!n&&!(Qy(t)&&Qy(e)))return e;const o=(n?t:Object.keys(t)).length,i=n?e:Object.keys(e),s=i.length,a=n?
4511new Array(s):{};let c=0;for(let l=0;l<s;l++){const u=n?l:i[l],d=t[u],f=e[u];if(d===f){a[u]=d,(n?l<o:sse.call(t,u))&&c++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){a[u]=f;continue}const _=A2(d,f);a[u]=_,_===d&&c++}return o===s&&c===o?t:a}function Cce(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function TC(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Qy(t){if(!AC(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!AC(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function AC(t){return Object.prototype.toString.call(t)==="[object Object]"}function ase(t){return new Promise(e=>{Ky.setTimeout(e,t)})}function cse(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?A2(t,e):e}function lse(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function use(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var $b=Symbol();function x2(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===$b?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Pce(t,e){return typeof t=="function"?t(...e):!!t}var dse=class extends Dm{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!sh&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},I2=new dse;function hse(){let t,e;const n=new Promise((o,i)=>{t=o,e=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),t(o)},n.reject=o=>{r({status:"rejected",reason:o}),e(o)},n}function fse(t){let e;if(t.then(n=>(e=n,n),er)?.catch(er),e!==void 0)return{data:e}}function pse(t){return t}function _se(t,e,n){if(typeof e!="object"||e===null)return;const r=t.getMutationCache(),o=t.getQueryCache(),i=t.getDefaultOptions().hydrate?.deserializeData??pse,s=e.mutations||[],a=e.queries||[];s.forEach(({state:c,...l})=>{r.build(t,{...t.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...l},c)}),a.forEach(({queryKey:c,state:l,queryHash:u,meta:d,promise:f,dehydratedAt:_})=>{const m=f?fse(f):void 0,y=l.data===void 0?m?.data:l.data,v=y===void 0?y:i(y);let T=o.get(u);const w=T?.state.status==="pending",g=T?.state.fetchStatus==="fetching";if(T){const E=m&&_!==void 0&&_>T.state.dataUpdatedAt;if(l.dataUpdatedAt>T.state.dataUpdatedAt||E){const{fetchStatus:C,...L}=l;T.setState({...L,data:v})}}else T=o.build(t,{...t.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:c,queryHash:u,meta:d},{...l,data:v,fetchStatus:"idle",status:v!==void 0?"success":l.status});f&&!w&&!g&&(_===void 0||_>T.state.dataUpdatedAt)&&T.fetch(void 0,{initialPromise:Promise.resolve(f).then(i)})})}var mse=tse;function gse(){let t=[],e=0,n=a=>{a()},r=a=>{a()},o=mse;const i=a=>{e?t.push(a):o(()=>{n(a)})},s=()=>{const a=t;t=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||s()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Un=gse(),yse=class extends Dm{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!sh&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n
vendor: 17,276 bytes, line 4511
4511)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},y_=new yse;function vse(t){return Math.min(1e3*2**t,3e4)}function R2(t){return(t??"online")==="online"?y_.isOnline():!0}var Yy=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function C2(t){let e=!1,n=0,r;const o=hse(),i=()=>o.status!=="pending",s=y=>{if(!i()){const v=new Yy(y);f(v),t.onCancel?.(v)}},a=()=>{e=!0},c=()=>{e=!1},l=()=>I2.isFocused()&&(t.networkMode==="always"||y_.isOnline())&&t.canRun(),u=()=>R2(t.networkMode)&&t.canRun(),d=y=>{i()||(r?.(),o.resolve(y))},f=y=>{i()||(r?.(),o.reject(y))},_=()=>new Promise(y=>{r=v=>{(i()||l())&&y(v)},t.onPause?.()}).then(()=>{r=void 0,i()||t.onContinue?.()}),m=()=>{if(i())return;let y;const v=n===0?t.initialPromise:void 0;try{y=v??t.fn()}catch(T){y=Promise.reject(T)}Promise.resolve(y).then(d).catch(T=>{if(i())return;const w=t.retry??(sh?0:3),g=t.retryDelay??vse,E=typeof g=="function"?g(n,T):g,C=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,T);if(e||!C){f(T);return}n++,t.onFail?.(n,T),ase(E).then(()=>l()?void 0:_()).then(()=>{e?f(T):m()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():_().then(m),o)}}var P2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rse(this.gcTime)&&(this.#e=Ky.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(sh?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ky.clearTimeout(this.#e),this.#e=void 0)}},Ese=class extends P2{#e;#t;#n;#o;#r;#s;#a;constructor(t){super(),this.#a=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#o=t.client,this.#n=this.#o.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=xC(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=xC(this.options);e.data!==void 0&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=cse(this.state.data,t,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#i({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(er).catch(er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>ise(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$b||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Gy(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ose(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#a?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const a=this.observers.find(c=>c.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const a=x2(this.options,e),l=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,l,this):a(l)},s=(()=>{const a={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=C2({initialPromise:e?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof Yy&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,c)=>{this.#i({type:"failed",failureCount:a,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof Yy){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...bse(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const o=t.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Un.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function bse(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R2(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function xC(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function IC(t){return{onFetch:(e,n)=>{const r=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],s=e.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const d=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(e.signal.aborted?u=!0:e.signal.addEventListener("abort",()=>{u=!0}),e.signal)})},f=x2(e.options,e.fetchOptions),_=async(m,y,v)=>{if(u)return Promise.reject();if(y==null&&m.pages.length)return Promise.resolve(m);const w=(()=>{const L={client:e.client,queryKey:e.queryKey,pageParam:y,direction:v?"backward":"forward",meta:e.options.meta};return d(L),L})(),g=await f(w),{maxPages:E}=e.options,C=v?use:lse;return{pages:C(m.pages,g,E),pageParams:C(m.pageParams,y,E)}};if(o&&i.length){const m=o==="backward",y=m?wse:RC,v={pages:i,pageParams:s},T=y(r,v);a=await _(v,T,m)}else{const m=t??i.length;do{const y=c===0?s[0]??r.initialPageParam:RC(r,a);if(c>0&&y==null)break;a=await _(a,y),c++}while(c<m)}return a};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=l}}}function RC(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function wse(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var Tse=class extends P2{#e;#t;#n;#o;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Ase(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=C2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#r({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#o.canStart();try{if(r)e();else{this.#r({type:"pending",variables:t,isPaused:o}),await this.#n.config.onMutate?.(t,this,n);const s=await this.options.onMutate?.(t,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:t,isPaused:o})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,n),await this.options.onSuccess?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,t,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,t,this.state.context,this,n),await this.options.onError?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,t,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Un.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Ase(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var S2=class extends Dm{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const o=new Tse({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(o),o}add(e){this.#e.add(e);const n=nf(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=nf(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=nf(e);if(typeof n=="string"){const o=this.#t.get(n)?.find(i=>i.state.status==="pending");return!o||o===e}else return!0}runNext(e){const n=nf(e);return typeof n=="string"?this.#t.get(n)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Un.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>wC(n,r))}findAll(e={}){return this.getAll().filter(n=>wC(e,n))}notify(e){Un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Un.batch(()=>Promise.all(e.map(n=>n.continue().catch(er))))}};function nf(t){return t.options.scope?.id}var O2=class extends Dm{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const o=n.queryKey,i=n.queryHash??Ub(o,n);let s=this.get(i);return s||(s=new Ese({client:e,queryKey:o,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Un.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>bC(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>bC(e,r)):n}notify(e){Un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xse=class{#e;#t;#n;#o;#r;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new O2,this.#t=e.mutationCache||new S2,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=I2.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=y_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Gy(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(o))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(e,n,r){const o=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(o.queryHash)?.state.data,a=nse(n,s);if(a!==void 0)return this.#e.build(this,o).setData(a,{...r,manual:!0})}setQueriesData(e,n,r){return Un.batch(()=>this.#e.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Un.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Un.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},o=Un.batch(()=>this.#e.findAll(e).map(i=>i.cancel(r)));return Promise.all(o).then(er).catch(er)}invalidateQueries(e,n={}){return Un.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},o=Un.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(er)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(o).then(er)}fetchQuery(e){const n=this.defaultQueryOptions(e);
4511n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Gy(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(er).catch(er)}fetchInfiniteQuery(e){return e.behavior=IC(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(er).catch(er)}ensureInfiniteQueryData(e){return e.behavior=IC(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return y_.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#o.set(xd(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#o.values()],r={};return n.forEach(o=>{Id(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(xd(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(o=>{Id(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Ub(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===$b&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ise="VUE_QUERY_CLIENT";function Rse(t){const e=t?`:${t}`:"";return`${Ise}${e}`}function Lce(t,e){Object.keys(t).forEach(n=>{t[n]=e[n]})}function Xy(t,e,n="",r=0){if(e){const o=e(t,n,r);if(o===void 0&&nt(t)||o!==void 0)return o}if(Array.isArray(t))return t.map((o,i)=>Xy(o,e,String(i),r+1));if(typeof t=="object"&&Pse(t)){const o=Object.entries(t).map(([i,s])=>[i,Xy(s,e,i,r+1)]);return Object.fromEntries(o)}return t}function Cse(t,e){return Xy(t,e)}function $e(t,e=!1){return Cse(t,(n,r,o)=>{if(o===1&&r==="queryKey")return $e(n,!0);if(e&&Sse(n))return $e(n(),e);if(nt(n))return $e(De(n),e)})}function Pse(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Sse(t){return typeof t=="function"}var Ose=class extends O2{find(t){return super.find($e(t))}findAll(t={}){return super.findAll($e(t))}},Dse=class extends S2{find(t){return super.find($e(t))}findAll(t={}){return super.findAll($e(t))}},D2=class extends xse{constructor(t={}){const e={defaultOptions:t.defaultOptions,queryCache:t.queryCache||new Ose,mutationCache:t.mutationCache||new Dse};super(e),this.isRestoring=Te(!1)}isFetching(t={}){return super.isFetching($e(t))}isMutating(t={}){return super.isMutating($e(t))}getQueryData(t){return super.getQueryData($e(t))}ensureQueryData(t){return super.ensureQueryData($e(t))}getQueriesData(t){return super.getQueriesData($e(t))}setQueryData(t,e,n={}){return super.setQueryData($e(t),e,$e(n))}setQueriesData(t,e,n={}){return super.setQueriesData($e(t),e,$e(n))}getQueryState(t){return super.getQueryState($e(t))}removeQueries(t={}){return super.removeQueries($e(t))}resetQueries(t={},e={}){return super.resetQueries($e(t),$e(e))}cancelQueries(t={},e={}){return super.cancelQueries($e(t),$e(e))}invalidateQueries(t={},e={}){const n=$e(t),r=$e(e);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const o={...n,type:n.refetchType??n.type??"active"};return sr().then(()=>super.refetchQueries(o,r))}refetchQueries(t={},e={}){return super.refetchQueries($e(t),$e(e))}fetchQuery(t){return super.fetchQuery($e(t))}prefetchQuery(t){return super.prefetchQuery($e(t))}fetchInfiniteQuery(t){return super.fetchInfiniteQuery($e(t))}prefetchInfiniteQuery(t){return super.prefetchInfiniteQuery($e(t))}setDefaultOptions(t){super.setDefaultOptions($e(t))}setQueryDefaults(t,e){super.setQueryDefaults($e(t),$e(e))}getQueryDefaults(t){return super.getQueryDefaults($e(t))}setMutationDefaults(t,e){super.setMutationDefaults($e(t),$e(e))}getMutationDefaults(t){return super.getMutationDefaults($e(t))}},Lse={install:(t,e={})=>{const n=Rse(e.queryClientKey);let r;if("queryClient"in e&&e.queryClient)r=e.queryClient;else{const s="queryClientConfig"in e?e.queryClientConfig:void 0;r=new D2(s)}sh||r.mount();let o=()=>{};if(e.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[s,a]=e.clientPersister(r);o=s,a.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),e.clientPersisterOnSuccess?.(r)})}const i=()=>{r.unmount(),o()};if(t.onUnmount)t.onUnmount(i);else{const s=t.unmount;t.unmount=function(){i(),s()}}t.provide(n,r)}};const kse=$t(t=>{const e=new D2({defaultOptions:{queries:{staleTime:3e5,gcTime:864e5,retry:3,refetchOnWindowFocus:!0}}}),n=eh("vue-query"),r={queryClient:e};return t.vueApp.use(Lse,r),t.hooks.hook("app:created",()=>{n.value&&_se(e,n.value)}),{provide:{queryClient:e}}}),Nse=$t({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(t){rt(t._id)}}),Vse=[Q9,X9,n$,UG,$G,jG,zG,GX,QX,XX,JX,jJ,HJ,WJ,KJ,GJ,QJ,rZ,Jie,kse,Nse],L2=(t="RouteProvider")=>on({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const n=e.renderKey,r=e.route,o={};for(const i in e.route)Object.defineProperty(o,i,{get:()=>n===e.renderKey?e.route[i]:r[i],enumerable:!0});return qi(Va,Cr(o)),()=>e.vnode?Xt(e.vnode,{ref:e.vnodeRef}):e.vnode}}),Fse=L2(),CC=new WeakMap,Mse=on({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,slots:n,expose:r}){const o=rt(),i=Te(),s=Rt(Va,null);let a;r({pageRef:i});const c=Rt(YP,null);let l;const u=o.deferHydration();if(o.isHydrating){const f=o.hooks.hookOnce("app:error",u);mn().beforeEach(f)}t.pageKey&&Kt(()=>t.pageKey,(f,_)=>{f!==_&&o.callHook("page:loading:start")});let d=!1;{const f=mn().beforeResolve(()=>{d=!1});Ja(()=>{f()})}return()=>Xt(aD,{name:t.name,route:t.route,...e},{default:f=>{const _=Use(s,f.route,f.Component),m=s&&s.matched.length===f.route.matched.length;if(!f.Component){if(l&&!m)return l;u();return}if(l&&c&&!c.isCurrent(f.route))return l;if(_&&s&&(!c||c?.isCurrent(s)))return m?l:null;const y=Kg(f,t.pageKey),v=$se(s,f.route,f.Component);!o.isHydrating&&a===y&&!v&&sr(()=>{d=!0,o.callHook("page:loading:end")}),a=y;const T=!!(t.transition??f.route.meta.pageTransition??ET),w=T&&Bse([t.transition,f.route.meta.pageTransition,ET,{onAfterLeave(){delete o._runningTransition,o.callHook("page:transition:finish",f.Component)}}]),g=t.keepalive??f.route.meta.keepalive??s8;return l=lD(T&&w,uj(g,Xt(V_,{suspensible:!0,onPending:()=>{T&&(o._runningTransition=!0),o.callHook("page:start",f.Component)}
4511,onResolve:()=>{sr(()=>o.callHook("page:finish",f.Component).then(()=>{if(delete o._runningTransition,!d&&!v)return d=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const E={key:y||void 0,vnode:n.default?jse(n.default,f):f.Component,route:f.route,renderKey:y||void 0,trackRootNodes:T,vnodeRef:i};if(!g)return Xt(Fse,E);const C=f.Component.type,L=C;let A=CC.get(L);return A||(A=L2(C.name||C.__name),CC.set(L,A)),Xt(A,E)}}))).default(),l}})}});function Bse(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?kE(n.onAfterLeave):void 0});return GP(...e)}function Use(t,e,n){if(!t)return!1;const r=e.matched.findIndex(o=>o.components?.default===n?.type);return!r||r===-1?!1:e.matched.slice(0,r).some((o,i)=>o.components?.default!==t.matched[i]?.components?.default)||n&&Kg({route:e,Component:n})!==Kg({route:t,Component:n})}function $se(t,e,n){return t?e.matched.findIndex(o=>o.components?.default===n?.type)<e.matched.length-1:!1}function jse(t,e){const n=t(e);return n.length===1?Xt(n[0]):Xt(ft,void 0,n)}const Hse=on({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Xt(ks[t.name],t.layoutProps,e.slots)}}),zse={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},qse=on({name:"NuxtLayout",inheritAttrs:!1,props:zse,setup(t,e){const n=rt(),r=Rt(Va),i=!r||r===Mv()?cD():r,s=xe(()=>{let u=De(t.name)??i?.meta.layout??"default";return u&&!(u in ks)&&t.fallback&&(u=De(t.fallback)),u}),a=fi();e.expose({layoutRef:a});const c=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",c);mn().beforeEach(u)}let l;return()=>{const u=s.value&&s.value in ks,d=i?.meta.layoutTransition??i8,f=l;return l=s.value,lD(u&&d,{default:()=>Xt(V_,{suspensible:!0,onResolve:()=>{sr(c)}},{default:()=>Xt(Wse,{layoutProps:Vs(e.attrs,{ref:a}),key:s.value||void 0,name:s.value,shouldProvide:!t.name,isRenderingNewLayout:_=>_!==f&&_===s.value,hasTransition:!!d},e.slots)})}).default()}}}),Wse=on({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,e){const n=t.name;t.shouldProvide&&qi(YP,{isCurrent:i=>n===(i.meta.layout??"default")});const r=Rt(Va);if(r&&r===Mv()){const i=cD(),s={};for(const a in i){const c=a;Object.defineProperty(s,c,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?i[c]:r[c]})}qi(Va,Cr(s))}return()=>!n||typeof n=="string"&&!(n in ks)?e.slots.default?.():Xt(Hse,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}),vs={title:"MagicRetake AI",description:'Say goodbye to ordinary photo editing apps, and hello to "MagicRetake" â the game-changer in photography apps. No longer worry about capturing the perfect shot on the first try; "MagicRetake" transforms any snap, be it from three years ago or from your upcoming birthday bash, into a photo youâll absolutely adore, all with a single tap.',ogTitle:"MagicRetake AI: Face & Photo Editor",ogDescription:'Say goodbye to ordinary photo editing apps, and hello to "Retake" â the game-changer in photography apps. No longer worry about capturing the perfect shot on the first try; "Retake" transforms any snap, be it from three years ago or from your upcoming birthday bash, into a photo youâll absolutely adore, all with a single tap.',ogImage:"https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/83/17/c9/8317c9c4-78f2-a688-33a0-d47ba73f1892/retake4-0-0-1x_U007emarketing-0-10-0-0-85-220.png/230x0w.webp",twitterCard:"summary",ogLocale:"en_US"},Kse=on({__name:"Sonner",props:{invert:{type:Boolean},theme:{},position:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},dir:{},icons:{},containerAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},setup(t){const e=t;return(n,r)=>(Be(),tn(De(LG),Vs({class:"toaster group"},e,{"toast-options":{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),null,16))}}),Gse=Object.assign(Kse,{__name:"Sonner"});function PC(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(l){return void n(l)}a.done?e(c):Promise.resolve(c).then(r,o)}function Qse(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(c){PC(i,r,o,s,a,"next",c)}function a(c){PC(i,r,o,s,a,"throw",c)}s(void 0)})}}function Yse(t,e,n){return(e=Zse(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Jy(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 5,254 bytes, line 4511
4511e%2?SC(Object(n),!0).forEach(function(r){Yse(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SC(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k2(t,e){if(t==null)return{};var n,r,o=Xse(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Xse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function Zy(){Zy=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(B,j,H){B[j]=H.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(B,j,H){return Object.defineProperty(B,j,{value:H,enumerable:!0,configurable:!0,writable:!0}),B[j]}try{l({},"")}catch{l=function(j,H,ce){return j[H]=ce}}function u(B,j,H,ce){var ue=j&&j.prototype instanceof T?j:T,W=Object.create(ue.prototype),J=new ae(ce||[]);return o(W,"_invoke",{value:x(B,H,J)}),W}function d(B,j,H){try{return{type:"normal",arg:B.call(j,H)}}catch(ce){return{type:"throw",arg:ce}}}e.wrap=u;var f="suspendedStart",_="suspendedYield",m="executing",y="completed",v={};function T(){}function w(){}function g(){}var E={};l(E,s,function(){return this});var C=Object.getPrototypeOf,L=C&&C(C(le([])));L&&L!==n&&r.call(L,s)&&(E=L);var A=g.prototype=T.prototype=Object.create(E);function I(B){["next","throw","return"].forEach(function(j){l(B,j,function(H){return this._invoke(j,H)})})}function R(B,j){function H(ue,W,J,ee){var ne=d(B[ue],B,W);if(ne.type!=="throw"){var q=ne.arg,be=q.value;return be&&typeof be=="object"&&r.call(be,"__await")?j.resolve(be.__await).then(function(Y){H("next",Y,J,ee)},function(Y){H("throw",Y,J,ee)}):j.resolve(be).then(function(Y){q.value=Y,J(q)},function(Y){return H("throw",Y,J,ee)})}ee(ne.arg)}var ce;o(this,"_invoke",{value:function(ue,W){function J(){return new j(function(ee,ne){H(ue,W,ee,ne)})}return ce=ce?ce.then(J,J):J()}})}function x(B,j,H){var ce=f;return function(ue,W){if(ce===m)throw Error("Generator is already running");if(ce===y){if(ue==="throw")throw W;return{value:t,done:!0}}for(H.method=ue,H.arg=W;;){var J=H.delegate;if(J){var ee=D(J,H);if(ee){if(ee===v)continue;return ee}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ce===f)throw ce=y,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ce=m;var ne=d(B,j,H);if(ne.type==="normal"){if(ce=H.done?y:_,ne.arg===v)continue;return{value:ne.arg,done:H.done}}ne.type==="throw"&&(ce=y,H.method="throw",H.arg=ne.arg)}}}function D(B,j){var H=j.method,ce=B.iterator[H];if(ce===t)return j.delegate=null,H==="throw"&&B.iterator.return&&(j.method="return",j.arg=t,D(B,j),j.method==="throw")||H!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+H+"' method")),v;var ue=d(ce,B.iterator,j.arg);if(ue.type==="throw")return j.method="throw",j.arg=ue.arg,j.delegate=null,v;var W=ue.arg;return W?W.done?(j[B.resultName]=W.value,j.next=B.nextLoc,j.method!=="return"&&(j.method="next",j.arg=t),j.delegate=null,v):W:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,v)}function S(B){var j={tryLoc:B[0]};1 in B&&(j.catchLoc=B[1]),2 in B&&(j.finallyLoc=B[2],j.afterLoc=B[3]),this.tryEntries.push(j)}function O(B){var j=B.completion||{};j.type="normal",delete j.arg,B.completion=j}function ae(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(S,this),this.reset(!0)}function le(B){if(B||B===""){var j=B[s];if(j)return j.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,ce=function ue(){for(;++H<B.length;)if(r.call(B,H))return ue.value=B[H],ue.done=!1,ue;return ue.value=t,ue.done=!0,ue};return ce.next=ce}}throw new TypeError(typeof B+" is not iterable")}return w.prototype=g,o(A,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:w,configurable:!0}),w.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(B){var j=typeof B=="function"&&B.constructor;return!!j&&(j===w||(j.displayName||j.name)==="GeneratorFunction")},e.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,g):(B.__proto__=g,l(B,c,"GeneratorFunction")),B.prototype=Object.create(A),B},e.awrap=function(B){return{__await:B}},I(R.prototype),l(R.prototype,a,function(){return this}),e.AsyncIterator=R,e.async=function(B,j,H,ce,ue){ue===void 0&&(ue=Promise);var W=new R(u(B,j,H,ce),ue);return e.isGeneratorFunction(j)?W:W.next().then(function(J){return J.done?J.value:W.next()})},I(A),l(A,c,"Generator"),l(A,s,function(){return this}),l(A,"toString",function(){return"[object Generator]"}),e.keys=function(B){var j=Object(B),H=[];for(var ce in j)H.push(ce);return H.reverse(),function ue(){for(;H.length;){var W=H.pop();if(W in j)return ue.value=W,ue.done=!1,ue}return ue.done=!0,ue}},e.values=le,ae.prototype={constructor:ae,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
4511h(O),!B)for(var j in this)j.charAt(0)==="t"&&r.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=t)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var j=this;function H(ne,q){return W.type="throw",W.arg=B,j.next=ne,q&&(j.method="next",j.arg=t),!!q}for(var ce=this.tryEntries.length-1;ce>=0;--ce){var ue=this.tryEntries[ce],W=ue.completion;if(ue.tryLoc==="root")return H("end");if(ue.tryLoc<=this.prev){var J=r.call(ue,"catchLoc"),ee=r.call(ue,"finallyLoc");if(J&&ee){if(this.prev<ue.catchLoc)return H(ue.catchLoc,!0);if(this.prev<ue.finallyLoc)return H(ue.finallyLoc)}else if(J){if(this.prev<ue.catchLoc)return H(ue.catchLoc,!0)}else{if(!ee)throw Error("try statement without catch or finally");if(this.prev<ue.finallyLoc)return H(ue.finallyLoc)}}}},abrupt:function(B,j){for(var H=this.tryEntries.length-1;H>=0;--H){var ce=this.tryEntries[H];if(ce.tryLoc<=this.prev&&r.call(ce,"finallyLoc")&&this.prev<ce.finallyLoc){var ue=ce;break}}ue&&(B==="break"||B==="continue")&&ue.tryLoc<=j&&j<=ue.finallyLoc&&(ue=null);var W=ue?ue.completion:{};return W.type=B,W.arg=j,ue?(this.method="next",this.next=ue.finallyLoc,v):this.complete(W)},complete:function(B,j){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&j&&(this.next=j),v},finish:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===B)return this.complete(H.completion,H.afterLoc),O(H),v}},catch:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===B){var ce=H.completion;if(ce.type==="throw"){var ue=ce.arg;O(H)}return ue}}throw Error("illegal catch attempt")},delegateYield:function(B,j,H){return this.delegate={iterator:le(B),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=t),v}},e}function Jse(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zse(t){var e=Jse(t,"string");return typeof e=="symbol"?e:e+""}var Rd={CLASSIC:"classic",V1:"v1"},eae=Rd.V1,tae="https://cdn.paddle.com/paddle/paddle.js",nae="https://cdn.paddle.com/paddle/v2/paddle.js",rae={url:tae},oae={url:nae};function iae(t){return document.querySelector('script[src="'.concat(t,'"]'))||void 0}function sae(t){var e=document.createElement("script");e.src=t;var n=document.head||document.body;if(!n)throw new Error("Cannot inject Paddle.js. It needs a <head> or <body> element.");return n.appendChild(e),e}var K0={classic:void 0,v1:void 0},aae={classic:"PaddleClassic",v1:"PaddleBillingV1"};function cae(t){var e,n=(e=lae(t))===null||e===void 0?void 0:e.url;if(n){var r=K0[t],o=aae[t];return r!==void 0?r:(K0[t]=new Promise(function(i,s){if(typeof window>"u"){i(void 0);return}if(window[o]){i(window[o]);return}try{var a=iae(n);a||(a=sae(n)),a.addEventListener("load",function(){window[o]?i(window[o]):s(new Error("Paddle.js not available"))}),a.addEventListener("error",function(){s(new Error("Failed to load Paddle.js - ".concat(t)))})}catch(c){s(c);return}}),K0[t])}}function lae(t){if(t===Rd.CLASSIC)return rae;if(t===Rd.V1)return oae;console.error("[Paddle] Unknown Paddle Version")}var uae=["environment","version"],dae=["environment","version"];function hae(t,e){var n=t.environment;t.version;var r=k2(t,uae);try{n&&e.Environment.set(n),e.Initialized?e.Update(Jy({},r)):e.Initialize(Jy({},r))}catch(o){console.warn("[Paddle] Paddle Initialization failed. Please check the inputs",o)}}function fae(t,e){var n=t.environment;t.version;var r=k2(t,dae);try{n&&e.Environment.set(n),e.Setup(Jy({},r))}catch(o){console.warn("[Paddle] Paddle Initialization failed. Please check the inputs",o)}}var OC;(function(t){t.CHECKOUT_LOADED="checkout.loaded",t.CHECKOUT_CLOSED="checkout.closed",t.CHECKOUT_UPDATED="checkout.updated",t.CHECKOUT_COMPLETED="checkout.completed",t.CHECKOUT_ERROR="checkout.error",t.CHECKOUT_FAILED="checkout.failed",t.CHECKOUT_ITEMS_UPDATED="checkout.items.updated",t.CHECKOUT_ITEMS_REMOVED="checkout.items.removed",t.CHECKOUT_CUSTOMER_CREATED="checkout.customer.created",t.CHECKOUT_CUSTOMER_UPDATED="checkout.customer.updated",t.CHECKOUT_CUSTOMER_REMOVED="checkout.customer.removed",t.CHECKOUT_PAYMENT_SELECTED="checkout.payment.selected",t.CHECKOUT_PAYMENT_INITIATED="checkout.payment.initiated",t.CHECKOUT_PAYMENT_FAILED="checkout.payment.failed",t.CHECKOUT_DISCOUNT_APPLIED="checkout.discount.applied",t.CHECKOUT_DISCOUNT_REMOVED="checkout.discount.removed"})(OC||(OC={}));var DC;(function(t){t.DAY="day",t.WEEK="week",t.MONTH="month",t.YEAR="year"})(DC||(DC={}));var LC;(function(t){t.ALIPAY="alipay",t.APPLE_PAY="apple-pay",t.CARD="card",t.GOOGLE_PAY="google-pay",t.IDEAL="ideal",t.PAYPAL="paypal",t.WIRE_TRANSFER="wire-transfer",t.NONE="none"})(LC||(LC={}));var kC;(function(t){t.AMERICAN_EXPRESS="american_express",t.DINERS_CLUB="diners_club",t.DISCOVER="discover",t.JCB="jcb",t.MADA="mada",t.MAESTRO="maestro",t.MASTER_CARD="mastercard",t.UNION_PAY="union_pay",t.VISA="visa",t.UNKNOWN="unknown"})(kC||(kC={}));var NC;(function(t){t.DRAFT="draft",t.READY="ready",t.COMPLETED="completed",t.BILLED="billed",t.canceled="canceled",t.PAST_DUE="past_due"})(NC||(NC={}));function pae(t){return ev.apply(this,arguments)}function ev(){return ev=Qse(Zy().mark(function t(e){var n,r;return Zy().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=e?.version||eae,i.next=3,cae(n);case 3:if(r=i.sent,!r){i.next=9;break}return e&&(n===Rd.V1?hae(e,r):n===Rd.CLASSIC&&fae(e,r)),i.abrupt("return",r);case 9:return console.error("[Paddle] Error Loading Paddle"),i.abrupt("return");case 11:case"end":return i.stop()}},t)})),ev.apply(this,arguments)}const _ae=()=>eh("color-mode").value;let rf;async function mae(){aN();const t=_ae(),e=br(),n=rt();return rf||(rf=await pae({environment:e.public.env==="prod"||e.public.env==="production"?"production":"sandbox",token:e.public.paddleClientToken,checkout:{settings:{displayMode:"inline",locale:n.$i18n.locale.value,theme:t.value==="dark"?"dark":"light",frameInitialHeight:500,frameStyle:"width: 100%; min-width: 120px; background-color: transparent; border: none;"}},eventCallback:async r=>{const o=al(),i=Bb();switch(r.name){case"checkout.items.updated":case"checkout.loaded":{i.sendEvent({eventName:"purchase_started",eventGroup:"web-paddle-subscription",properties:{paddleEventName:r.name,productId:r.data?.items[0]?.product?.id??"",productName:r.data?.items[0]?.product?.name??"",priceId:r.data?.items[0]?.price_id??"",priceName:r.data?.items[0]?.price_name??"",currency:r.data?.currency_code??"",totalAmount:r.data?.totals?.total??0,recurringAmount:r.data?.recurring_totals?.total??0,oneTimeAmount:(r.data?.totals?.total??0)-(r.data?.recurring_totals?.total??0),billingCycle:`${r.data?.items[0]?.billing_cycle?.frequency??""} ${r.data?.items[0]?.billing_cycle?.interval??""}`,customerCountry:r.data?.customer?.address?.country_code??"",customerId:r.data?.customer?.id??"",customerEmail:r.data?.customer?.email??"",subtotal:r.data?.totals?.subtotal??0,tax:r.data?.totals?.tax??0,discount:r.data?.totals?.discount??0}});break}case"checkout.payment.initiated":break;case"checkout.payment.failed":case"checkout.failed":case"checkout.error":{o.setPaymentStatus("fail");try{i.sendEvent({eventName:"payment_failed",eventGroup:"web-paddle-subscription",properties:{paddleEventName:r.name,productId:r.data?.items[0]?.product?.id??"",productName:r.data?.items[0]?.product?.name??"",priceId:r.data?.items[0]?.price_id??"",priceName:r.data?.items[0]?.price_name??"",currency:r.data?.currency_code??"",totalAmount:r.data?.totals?.total??0,cardType:r.data?.payment?.method_details?.card?.type??"",customerCountry:r.data?.customer?.address?.country_code??"",paymentMethod:r.data?.payment?.method_details?.type??"",billingCycle:`${r.data?.items[0]?.billing_cycle?.frequency??""} ${r.data?.items[0]?.billing_cycle?.interval??""}`}}),window.gtag("event","purchase_failed",{value:r.data?.totals?.total??0,price:r.data?.totals?.total??0,items:[{item_id:r.data?.items[0]?.product?.id??"",item_name:r.data?.items[0]?.product?.name??"",price:r.data?.totals?.total??0}]})}catch(s){console.error("Error sending event",s)}break}case"checkout.completed":{const s=r?.data?.totals?.total,a=r?.data?.recurring_totals?.total,c=s===0?a:s;o.setPaymentStatus("success"),o.fetchUserData();const l={price:c??0,product_id:r.data?.items[0]?.product?.id??"",product_name:r.data?.items[0]?.product?.name??"",price_id:r.data?.items[0]?.price_id??"",price_name:r.data?.items[0]?.price_name??"",currency:r.data?.currency_code??"",customer_country:r.data?.customer?.address?.country_code??""};window.gtag("event","purchase_success",l);const u={paddleEventName:r.name,price:c??0,productId:r.data?.items[0]?.product?.id??"",productName:r.data?.items[0]?.product?.name??"",priceId:r.data?.items[0]?.price_id??"",priceName:r.data?.items[0]?.price_name??"",currency:r.data?.currency_code??"",customerId:r.data?.customer?.id??"",customerEmail:r.data?.customer?.email??"",customerCountry:r.data?.customer?.address?.country_code??"",transactionId:r.data?.transaction_id??"",paymentMethod:r.data?.payment?.method_details?.type??"",cardType:r.data?.payment?.method_details?.card?.type??"",billingCycle:`${r.data?.items[0]?.billing_cycle?.frequency??""} ${r.data?.items[0]?.billing_cycle?.interval??""}`,subtotal:r.data?.totals?.subtotal??0,tax:r.data?.totals?.tax??0,discount:r.data?.totals?.discount??0};console.log("cerebroPayload",u),i.sendEvent({eventName:"purchase_completed",eventGroup:"web-paddle-subscription",properties:{paddleEventName:r.name,price:c??0,productId:r.data?.items[0]?.product?.id??"",productName:r.data?.items[0]?.product?.name??"",priceId:r.data?.items[0]?.price_id??"",priceName:r.data?.items[0]?.price_name??"",currency:r.data?.currency_code??"",customerId:r.data?.customer?.id??"",customerEmail:r.data?.customer?.email??"",customerCountry:r.data?.customer?.address?.country_code??"",transactionId:r.data?.transaction_id??"",paymentMethod:r.data?.payment?.method_details?.type??"",cardType:r.data?.payment?.method_details?.card?.type??"",billingCycle:`${r.data?.items[0]?.billing_cycle?.frequency??""} ${r.data?.items[0]?.billing_cycle?.interval??""}`,subtotal:r.data?.totals?.subtotal??0,tax:r.data?.totals?.tax??0,discount:r.data?.totals?.discount??0}});break}case"checkout.customer.created":case"checkout.customer.updated":{if(!r?.data?.customer?.id||!r?.data?.customer?.email){console.error("Customer ID or email not found in the event data.");return}const s={customerId:r?.data?.customer.id,paddleCustomerEmail:r?.data?.customer.email,cerebroId:i.getCerebroId()};i.sendEvent({eventName:"paddle_customer_update",eventGroup:"web-paddle-subscription",properties:{...s,paddleEventName:r.name}});break}}}}),rf)}const gae=[{priceId:"pri_01jaanyxag84cbh7t0jmqr171h",price:12.99,currency:"USD",billingCycle:"weekly",productId:"pro_01jaanxqgn9a2j8hzrsgw2kyks",price_key:"t8",quantity:1,priceCode:"t8.weekly"}],yae=[{priceId:"pri_01jaanzm2k1ywsdez9r7nn0bpw",price:89.99,currency:"USD",billingCycle:"yearly",productId:"pro_01jaanxqgn9a2j8hzrsgw2kyks",price_key:"t9",quantity:1,priceCode:"t9.yearly"}],vae=[...gae,...yae],Eae=[{priceId:"pri_01jaanyxag84cbh7t0jmqr171h",price:12.99,currency:"USD",billingCycle:"weekly",productId:"pro_01jaanxqgn9a2j8hzrsgw2kyks",price_key:"t8",quantity:1,priceCode:"t8.weekly"}],bae=[{priceId:"pri_01jaanzm2k1ywsdez9r7nn0bpw",price:89.99,currency:"USD",billingCycle:"yearly",productId:"pro_01jaanxqgn9a2j8hzrsgw2kyks",price_key:"t9",quantity:1,priceCode:"t9.yearly"}],wae=[...Eae,...bae];function VC(){const t=br(),e=t.public.env==="prod"||t.public.env==="production"?wae:vae,n=e.f
4511ilter(r=>["t8.weekly","t9.yearly"].includes(r.priceCode))||[e[0]];return{prices:e,defaultPrices:n}}const Tae=[{priceId:"pri_01k5gsttrrrs69vn7678hjpdmc",price:4.99,currency:"USD",billingCycle:"one-time",productId:"pro_01k5gssagtkyte4a3b99s6hzt1",price_key:"polaroid_10",quantity:1,priceCode:"polaroid.10",customData:{polaroidCount:10,isPopular:"no"}},{priceId:"pri_01k5gst1x1pkjvte5n424mvhtr",price:9.99,currency:"USD",billingCycle:"one-time",productId:"pro_01k5gssagtkyte4a3b99s6hzt1",price_key:"polaroid_25",quantity:1,priceCode:"polaroid.25",customData:{polaroidCount:25,isPopular:"yes"}}],Aae=[{priceId:"pri_01k6n9c9w689w94gchzecnn2g8",price:4.99,currency:"USD",billingCycle:"one-time",productId:"pro_01k6n98vjtyf76p94sr2g6q029",price_key:"polaroid_10",quantity:1,priceCode:"polaroid.10",customData:{polaroidCount:10,isPopular:"no"}},{priceId:"pri_01k6n99jg2zrx97dq60mcsvggz",price:19.99,currency:"USD",billingCycle:"one-time",productId:"pro_01k6n98vjtyf76p94sr2g6q029",price_key:"polaroid_50",quantity:1,priceCode:"polaroid.50",customData:{polaroidCount:50,isPopular:"yes"}}];function kce(){const e=br().public.env,n=e==="prod"||e==="production"?Aae:Tae;return{prices:n,defaultPrices:n}}const xae=t=>{if(!t)return"$";switch(t){case"USD":return"$";case"MXN":return"M$";case"BRL":return"R$";case"AUD":return"A$";case"CAD":return"C$";case"EUR":return"â¬";case"GBP":return"£";case"HKD":return"HK$";case"THB":return"฿";case"CNY":return"CNÂ¥";case"KRW":return"â©";case"TWD":return"NT$";case"SGD":return"S$";case"INR":return"â¹";case"CHF":return"CHF";case"NOK":return"kr";case"NZD":return"NZ$";case"JPY":return"Â¥";case"TRY":return"âº";case"COP":return"$";default:return"$"}};function Iae(t,e){const r=rt().$i18n.t;if(t==="one-time")return r("time.lifetime");if(t==="week"&&e===1)return r("time.weekly");if(t==="year"&&e===1)return r("time.yearly");const o=e===1?`time.${t}`:`time.${t}s`;return r(o,{count:e})}const Rae=hm("product",()=>{const t=Oi(),e=Bb(),n=Te(VC().prices),r=Te(null),o=Te(),i=Te(null),s=Te(null),a=Er({percentage:51,isActive:!0}),c=v=>{i.value=v};async function l(v=["t8.weekly","t9.yearly"]){const T=await mae();o.value=T,await m(v)}const u=xe(()=>{if(!r.value)return[];const v=(T,w,g=1)=>{switch(w){case"day":return T/g;case"week":return T/(7*g);case"month":return T/(30*g);case"year":return T/(365*g);case"one-time":return T/(365*40);default:return T}};return r.value.data.details.lineItems.map(T=>{const w=T.price.billingCycle?.interval||"one-time",g=T.price.billingCycle?.frequency||1,E=r.value?.data.currencyCode||"USD",C=T.price.unitPriceOverrides?.find(S=>S.unitPrice.currencyCode===E)?.unitPrice.amount||T.price.unitPrice.amount,L=Number(C)/100,A=Iae(w,g);console.log("ð ~ returnprices.value.data.details.lineItems.map ~ billingPeriod:",A);const I=Number(T.unitTotals.total)/100,R=v(I,w,g),x=v(L,w,g),D=T.price.customData?.isPopular==="yes";return{id:T.price.id,name:T.product.name,price:I,currency:E,currencySymbol:xae(E),renewalInterval:w,saveAmount:24,previousPrice:L.toFixed(2),discountedPrice:I.toFixed(2),isPopular:D,features:[],dailyPrice:R.toFixed(2),dailyPreviousPrice:x.toFixed(2),billingPeriod:A}}).sort((T,w)=>T.price-w.price)}),d=xe(()=>r.value?r.value.data.details.lineItems.map(w=>({name:w.product.name,id:w.price.id,priceMonthly:w.formattedUnitTotals.total,billingCycle:w.price.billingCycle?.interval,description:w.product.description,features:[],featured:!1,priceId:w.price.id,price:Number(w.price.unitPrice.amount)})).sort((w,g)=>w.price-g.price):[]),f=xe(()=>i.value?_(i.value):null);function _(v){return d.value.find(T=>T.id===v)}async function m(v=["t5.yearly","t3.weekly"]){const T=v||t.active_pricing?.prices,g=t.pricing_catalog?.filter(A=>T?.includes(A.priceCode)),E=g?.find(A=>A.priceCode===t.active_pricing?.selected)?.priceId,L=g?.map(A=>({priceId:A.priceId,quantity:1}))||VC().defaultPrices;if(o.value)try{r.value=await o.value.PricePreview({items:L});const[A,I]=r.value.data.details.lineItems.sort((R,x)=>Number(R.price.unitPrice.amount)-Number(x.price.unitPrice.amount));c(E||I?.price?.id||A?.price?.id||"t9.yearly"),await e.sendEvent({eventGroup:"web-paddle-subscription",eventName:"checkout_paddle_price_preview_loaded",result:"1"})}catch(A){console.error("Error fetching products:",A),await e.sendEvent({eventGroup:"web-paddle-subscription",eventName:"checkout_paddle_price_preview_loaded",result:"0",properties:{error:A instanceof Error?A.message:String(A)}})}}return{products:n,initializePaddle:l,prices:r,fetchProducts:m,paddleInstance:o,pricingTiers:d,setSelectedTierId:c,selectedTierId:i,selectedTier:f,pricingTiersV2:u,discount:a,setActiveTransaction:async v=>{s.value=v},activeTransaction:s}}),Cae=on({__name:"app",setup(t){const{locale:e}=Em();j9({title:vs.title,ogTitle:vs.ogTitle,description:vs.description,ogDescription:vs.ogDescription,ogImage:vs.ogImage,twitterCard:vs.twitterCard,ogLocale:vs.ogLocale,robots:{index:!0,follow:!0,maxImagePreview:"large",maxSnippet:160,maxVideoPreview:0,notranslate:!1,noimageindex:!1}
4511}),$9({title:vs.title,htmlAttrs:{lang:e.value}});const n=al(),r=Oi();return Rae(),es(async()=>{const o=await r.fetchConfig();n.setConfig(o)}),(o,i)=>{const s=Mse,a=qse;return Be(),tn(a,null,{default:xr(()=>[ot(s),ot(De(Gse),{"rich-colors":"",position:"top-center"})]),_:1})}}}),Pae={__name:"nuxt-error-page",props:{error:Object},setup(t){const n=t.error;n.stack&&n.stack.split(` 4512`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`<span class="stack${d.internal?" internal":""}">${d.text}</span>`).join(` 4513`);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),s=n.message||n.toString(),a=void 0,u=o?Se(()=>p(()=>import("./CPXmRALJ.js"),__vite__mapDeps([333,14,13,334]),import.meta.url)):Se(()=>p(()=>import("./CZjqdef_.js"),__vite__mapDeps([335,13,336]),import.meta.url));return(d,f)=>(Be(),tn(De(u),Hu(Pv({statusCode:De(r),statusMessage:De(i),description:De(s),stack:De(a)})),null,16))}},Sae={key:0},FC={__name:"nuxt-root",setup(t){const e=()=>null,n=rt(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);mn().beforeEach(l)}const o=!1;qi(Va,Mv()),n.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const i=B_(),s=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;bv((l,u,d)=>{if(n.hooks.callHook("vue:error",l,u,d).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",l),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,l),!1;if(JP(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>fa(l)),!1});const c=!1;return(l,u)=>(Be(),tn(V_,{onResolve:De(r)},{default:xr(()=>[De(s)?(Be(),Pt("div",Sae)):De(i)?(Be(),tn(De(Pae),{key:1,error:De(i)},null,8,["error"])):De(c)?(Be(),tn(De(e),{key:2,context:De(c)},null,8,["context"])):De(o)?(Be(),tn(ga(De(o)),{key:3})):(Be(),tn(De(Cae),{key:4}))]),_:1},8,["onResolve"]))}};let MC;{let t;MC=async function(){if(t)return t;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Lv(FC):Ip(FC),o=d8({vueApp:r});async function i(s){await o.callHook("app:error",s),o.payload.error||=Oa(s)}r.config.errorHandler=i,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)}),!n&&bT.id&&o.hook("app:suspense:resolve",()=>{document.getElementById(bT.id)?.remove()});try{await p8(o,Vse)}catch(s){i(s)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(c8),await o.hooks.callHook("app:mounted",r),await sr()}catch(s){i(s)}return r},t=MC().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{gF as $,Em as A,aN as B,XR as C,tce as D,al as E,ft as F,ice as G,cD as H,Jae as I,LK as J,Rs as K,tn as L,ij as M,tF as N,Ps as O,Zae as P,vf as Q,Li as R,ai as S,ga as T,$P as U,Mv as V,$c as W,Tf as X,JR as Y,Er as Z,sr as _,mr as a,__ as a$,nL as a0,p as a1,fi as a2,rt as a3,wk as a4,Ja as a5,Xt as a6,Nv as a7,I8 as a8,gQ as a9,JM as aA,Sc as aB,Rt as aC,YM as aD,fF as aE,C1 as aF,V4 as aG,M4 as aH,oF as aI,X1 as aJ,EP as aK,Qa as aL,vv as aM,L_ as aN,Hc as aO,hv as aP,pF as aQ,DF as aR,qi as aS,Rae as aT,GP as aU,pT as aV,BP as aW,gB as aX,D1 as aY,_ae as aZ,EN as a_,cs as aa,vl as ab,br as ac,Rp as ad,td as ae,dI as af,sce as ag,Lae as ah,xp as ai,tr as aj,Lee as ak,Ya as al,jc as am,uv as an,Ut as ao,Ds as ap,je as aq,d4 as ar,u1 as as,Vs as at,Hu as au,Pv as av,Mt as aw,pi as ax,P_ as ay,rn as az,ot as b,oV as b$,yN as b0,Se as b1,mP as b2,Qae as b3,kG as b4,VK as b5,hm as b6,$M as b7,mI as b8,Ar as b9,yl as bA,Rse as bB,$e as bC,Cr as bD,Lce as bE,Pce as bF,Yae as bG,Xae as bH,kce as bI,xae as bJ,mae as bK,Kae as bL,zae as bM,Hae as bN,qae as bO,s9 as bP,Wae as bQ,Gae as bR,kF as bS,tf as bT,bv as bU,V_ as bV,nr as bW,mt as bX,dt as bY,tv as bZ,pr as b_,Nae as ba,Cd as bb,kae as bc,Oa as bd,vN as be,nZ as bf,ece as bg,m7 as bh,oce as bi,KU as bj,rce as bk,Dee as bl,Dm as bm,hse as bn,ise as bo,Cce as bp,Gy as bq,er as br,sh as bs,rse as bt,ose as bu,Ky as bv,I2 as bw,bse as bx,cse as by,Un as bz,Pt as c,ml as c0,ze as c1,ht as c2,Re as c3,_l as c4,Ia as c5,IV as c6,RV as c7,CV as c8,PV as c9,$C as ca,Yn as cb,gV as cc,Dae as cd,Oae as ce,rF as cf,RE as cg,_F as ch,Vae as ci,Wn as cj,kee as ck,j0 as cl,ace as cm,cce as cn,Rce as co,Zu as d,on as e,es as f,ha as g,De as h,nt as i,k4 as j,mp as k,Bb as l,QF as m,mn as n,Be as o,T2 as p,Oi as q,Te as r,xe as s,ya as t,$9 as u,IP as v,xr as w,Kt as x,Dd as y,Mn as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.